@docx-editor.dev/core 2.14.0 → 2.15.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/README.md +42 -0
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +6 -5
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +16 -10
- package/dist/binding.js +1 -1
- package/dist/chunk-24APKZAN.cjs +11 -0
- package/dist/chunk-2YH4MSHX.cjs +2 -0
- package/dist/chunk-5Y7AADI6.js +1 -0
- package/dist/chunk-AREFLNUP.js +11 -0
- package/dist/chunk-AS7YZNQE.cjs +2 -0
- package/dist/chunk-AVGCKH6A.cjs +20 -0
- package/dist/chunk-CDYVDQRI.cjs +5 -0
- package/dist/chunk-FGBADUSK.cjs +1 -0
- package/dist/chunk-HOEWFH5U.cjs +1 -0
- package/dist/chunk-KFELX7CN.js +2 -0
- package/dist/{chunk-OKEDGR65.js → chunk-KXPVOPR5.js} +1 -1
- package/dist/chunk-LGFKIF4M.cjs +1 -0
- package/dist/chunk-M52QXFKI.js +1 -0
- package/dist/chunk-MNUKSXRO.js +1 -0
- package/dist/chunk-PBOIGBDO.js +2 -0
- package/dist/chunk-PMHGONET.cjs +1 -0
- package/dist/chunk-PXKZUTHX.cjs +2 -0
- package/dist/chunk-Q4AB7E4O.cjs +1 -0
- package/dist/chunk-QJYH6AYD.js +1 -0
- package/dist/chunk-QRC37MWG.cjs +20 -0
- package/dist/chunk-RJSB6RJ7.js +20 -0
- package/dist/chunk-SB54HLFJ.js +20 -0
- package/dist/chunk-VP7SDFCM.js +1 -0
- package/dist/chunk-XCESLTJL.js +2 -0
- package/dist/{chunk-KIAP7PFQ.cjs → chunk-YL4Q5LZP.cjs} +1 -1
- package/dist/chunk-Z4527AXR.js +5 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +4 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +4 -3
- package/dist/contracts/editor.d.ts +7 -7
- package/dist/contracts/interaction.d.ts +7 -7
- package/dist/contracts/modules.d.ts +8 -7
- package/dist/{custom-node-writes-DntmaAVW.d.ts → custom-node-writes-C9ArIlJh.d.ts} +2 -2
- package/dist/{editor-a6VvsfYU.d.ts → editor-sRxrFJd8.d.ts} +29 -21
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.ts +27 -58
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -0
- package/dist/export.d.ts +337 -0
- package/dist/export.js +2 -0
- package/dist/font-resolver-BYEHQGTw.d.ts +251 -0
- package/dist/headless-document-view-DELC4E5v.d.ts +134 -0
- package/dist/hf-references-DTrHkktY.d.ts +70 -0
- package/dist/{index-C5ZnSRkF.d.ts → index-C3Gvq4jN.d.ts} +55 -246
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -16
- package/dist/index.js +1 -1
- package/dist/{shaped-measurer-CFPnXFs9.d.cts → layout-shaping-DoGR5cf8.d.ts} +86 -12
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +1106 -729
- package/dist/layout.js +1 -1
- package/dist/{note-properties-CDFiNXcD.d.ts → note-properties-DSe8igrz.d.ts} +2 -2
- package/dist/{omml-equation-BY49UOIF.d.ts → omml-equation-BpRmfDAf.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +6 -6
- package/dist/output.js +1 -1
- package/dist/{protocol-gOY5GA8K.d.cts → protocol-DZzKxH5r.d.ts} +18 -12
- package/dist/{review-items-CCS1h93f.d.ts → review-items-DYRx187i.d.ts} +2 -2
- package/dist/{review-reads-BjZYeMd4.d.ts → review-reads-LbGUdNzn.d.ts} +22 -25
- package/dist/{revision-projection-BeXVrSSV.d.ts → revision-projection-DHRJH48u.d.ts} +1 -1
- package/dist/{semantic-cell-selection-BK91NCCG.d.ts → semantic-cell-selection-BXVWCBYm.d.ts} +4 -4
- package/dist/{semantic-interaction-BmQ7h2cq.d.ts → semantic-interaction-DZsDmPg5.d.ts} +1 -1
- package/dist/{semantic-paint-WJD2KeG1.d.ts → semantic-paint-f7SqN4oW.d.ts} +2 -2
- package/dist/{semantic-records-BpozY7-j.d.cts → semantic-records-EIdwId-a.d.ts} +301 -205
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +15 -65
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-D6HzlPR4.d.ts → tree-op-types-egdarvH_.d.ts} +7 -3
- package/dist/{tree-package-fragment-CWFjgH6a.d.ts → tree-package-fragment-DjkH4ESI.d.ts} +4 -70
- package/dist/{tree-session-contract-B2HfGt79.d.ts → tree-session-contract-CGOOgPjW.d.ts} +29 -23
- package/dist/{tree-store-APgWx6qn.d.ts → tree-store-DKJB0IcA.d.ts} +2 -2
- package/package.json +7 -2
- package/dist/automation.d.cts +0 -82
- package/dist/binding.d.cts +0 -153
- package/dist/chunk-2PIHW2QM.cjs +0 -1
- package/dist/chunk-2QTY5S6T.js +0 -1
- package/dist/chunk-4Z5MODAE.cjs +0 -2
- package/dist/chunk-5TKAPFZT.cjs +0 -2
- package/dist/chunk-DRQHIQ4R.cjs +0 -1
- package/dist/chunk-F2K6SDHA.cjs +0 -20
- package/dist/chunk-FBA57EUJ.js +0 -2
- package/dist/chunk-KTAQ7BRQ.js +0 -20
- package/dist/chunk-LBAHXZCU.cjs +0 -5
- package/dist/chunk-MCDUQYWP.js +0 -5
- package/dist/chunk-MQP26KCF.js +0 -1
- package/dist/chunk-NDJGSR6M.cjs +0 -19
- package/dist/chunk-NJNFJPGB.cjs +0 -11
- package/dist/chunk-O5M4CR4P.cjs +0 -2
- package/dist/chunk-UKUOZXUD.js +0 -19
- package/dist/chunk-VQ4R5LTU.js +0 -2
- package/dist/chunk-ZBEJHJN2.js +0 -11
- package/dist/chunk-ZVTW7RGD.js +0 -2
- package/dist/collaboration/replication.d.cts +0 -216
- package/dist/collaboration.d.cts +0 -176
- package/dist/contracts/document.d.cts +0 -273
- package/dist/contracts/editor.d.cts +0 -10
- package/dist/contracts/interaction.d.cts +0 -10
- package/dist/contracts/modules.d.cts +0 -130
- package/dist/contracts/types.d.cts +0 -562
- package/dist/custom-node-writes-C46r3_5O.d.cts +0 -310
- package/dist/document-properties-D6Ahr8D6.d.cts +0 -28
- package/dist/document-properties-D6Ahr8D6.d.ts +0 -28
- package/dist/editor-AJ06hyyg.d.cts +0 -1994
- package/dist/editor.d.cts +0 -393
- package/dist/failure-BnGjoXf0.d.cts +0 -64
- package/dist/index-Cbw4lkOt.d.cts +0 -3391
- package/dist/index.d.cts +0 -23
- package/dist/layout.d.cts +0 -2486
- package/dist/note-properties-Y6qYh2Hv.d.cts +0 -67
- package/dist/omml-equation-DB8d-jCq.d.cts +0 -84
- package/dist/output.d.cts +0 -74
- package/dist/protocol-BsmQgblT.d.ts +0 -1358
- package/dist/review-items-CaAkgi5s.d.cts +0 -360
- package/dist/review-reads-DEsV0OOW.d.cts +0 -163
- package/dist/revision-projection-DXbrfNGD.d.cts +0 -156
- package/dist/semantic-cell-selection-BMhku3B1.d.cts +0 -451
- package/dist/semantic-interaction-DUAnxbgf.d.cts +0 -160
- package/dist/semantic-paint-DufNL1Zr.d.cts +0 -247
- package/dist/semantic-records-92UnKeU_.d.ts +0 -2821
- package/dist/shaped-measurer-BWbindlI.d.ts +0 -168
- package/dist/store.d.cts +0 -2500
- package/dist/tree-op-types-BUulYD5y.d.cts +0 -3099
- package/dist/tree-package-fragment-Dhyw7oPm.d.cts +0 -732
- package/dist/tree-session-contract-BY9xd7s_.d.cts +0 -613
- package/dist/tree-store-DEEQ9wz_.d.cts +0 -416
package/dist/layout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Xb as AUTO_PARAGRAPH_SPACING_PT,Ic as AUTO_PREFERRED_WIDTH,Jc as CELL_PAD,Rb as COMPOUND_BORDER_MIN_GAP_PT,Qb as COMPOUND_BORDER_MIN_STROKE_PT,Ge as DEFAULT_CANVAS_FONT_STACK,Kc as DEFAULT_CELL_MARGINS,Ma as DEFAULT_PAGE_GEOMETRY,mb as DEFAULT_REVISION_DISPLAY_MODE,P as DEFAULT_RUN_STYLE,hd as DEFAULT_SECTION_PROPERTIES,Gb as DEFAULT_TAB_INTERVAL_PT,Fb as DEFAULT_TAB_INTERVAL_TWIPS,Ed as DEFAULT_VERTICAL_WEIGHT,Bd as EMPTY_NUMBERING_INDEX,Ib as EMPTY_TAB_STOPS,d as FontResolutionError,Y as GRAPHEME_SEGMENTER_LOCALE,c as HARD_MAX_AGGREGATE_FONT_BYTES,a as HARD_MAX_FONT_BYTES,b as HARD_MAX_FONT_SOURCES,q as HARFBUZZ_SHAPING_LIBRARY,t as HarfBuzzShapingError,A as LayoutShapingConfigurationError,Wb as MAX_BORDER_SPACE_PT,Vb as MAX_BORDER_WIDTH_PT,gd as MAX_DOCUMENT_SECTIONS,xe as MAX_EACH_PAGE_MARK_CANDIDATES,yd as MAX_LVL_OVERRIDES,cb as MAX_LVL_TEXT_LENGTH,bb as MAX_MARKER_TEXT_LENGTH,je as MAX_NOTES_LAID_OUT,ke as MAX_NOTE_FRAGMENTS,we as MAX_NOTE_OVERFLOW_PAGES,ve as MAX_NOTE_REFLOW_ATTEMPTS,xd as MAX_NUMBERING_DEFINITIONS,Ub as MAX_PARAGRAPH_SPACING_PT,sc as MAX_STYLE_BASED_ON_DEPTH,tc as MAX_STYLE_DEFINITIONS,Ac as MAX_TABLE_BORDER_STROKES,Mc as MAX_TABLE_NESTING,Ud as MAX_TABLE_ROW_FRAGMENTS,Nc as MAX_TABLE_ROW_HEIGHT_PT,Eb as MAX_TAB_POSITION_TWIPS,Db as MAX_TAB_STOPS,Zb as PARAGRAPH_BORDER_SIDES,wa as ResolvedCache,Yb as SINGLE_LINE_SPACING,Hb as TAB_LEADER_GLYPH,Vd as TablePaginationError,V as UnsupportedScriptError,la as WORD_SEGMENTER_LOCALE,Pe as anchorLineY,kc as appliedSpaceBefore,bc as applyLineSpacing,Ce as attachNotesToLayout,U as baselineShiftPtOf,Hc as borderExtentPt,Ec as borderWeight,hc as bottomBorderExtentPt,oa as boundedFallbackWordSegments,i as boundedStructuralFontValidator,zd as buildNumberingIndex,ze as buildPageRefIndex,uc as buildStyleCascadeTable,ua as captureOperationSnapshot,jf as caretAt,Nd as caretBoxOnLine,hf as caretStops,if as caretStopsForBlocks,vc as cascadeParagraphFormatting,xc as cascadeRunProperties,wc as cascadedBottomBorder,ec as cascadedParagraphBorders,Jb as cascadedTabStops,sf as cellSelectionBetween,wf as cellSelectionRects,xf as cellSelectionText,db as clampListValue,jc as collapsedSpaceBefore,qf as compositionAnchor,Sb as computeDoubleBorderMetricsPt,Be as computeFootnoteReserves,Kd as contentControlAtPoint,lf as contentControlAtSemantic,Oe as contentControlBoundaries,ie as contentControlHoldingParagraph,he as contentControlRecordsInPart,mf as contentControlsInLayout,Ja as contentControlsOfLayout,pa as createBoundedFallbackWordBoundary,qa as createDefaultWordBoundary,Zd as createDocumentFurnitureSource,ae as createDocumentLinkProjectors,_d as createDocumentNotesInput,Cd as createDocumentStyleDependencies,be as createFieldLinkRegistry,y as createFixedMeasurer,j as createFontResourceSnapshot,w as createHarfBuzzTextShaper,na as createIntlWordBoundary,Xe as createLayoutScheduler,Ee as createLayoutSession,Ve as createLayoutShapedMeasurer,H as createLayoutShaping,Wc as createListCounterState,Vc as createParagraphLayoutCache,Ue as createShapedMeasurer,o as createShapedRun,l as createShapingEnvironment,qe as defaultNoteSeparatorRuleStyle,Mb as defaultTabIntervalFromSettings,of as deletedTextBoundaries,dd as deriveNoteDisplayMarks,ed as deriveNoteDisplayMarksResolved,R as displayText,J as disposeLayoutShaping,Ra as documentOrder,$d as documentRelationshipTargetIn,zc as effectiveBorderSide,La as effectiveContentControlLock,ee as emptyTocPlaceholderParagraphIds,fe as emptyTocSuppressedResultParagraphIds,nd as enumerateDocumentSections,pd as enumerateDocumentSectionsBounded,Sa as everyStoryOrder,lb as expandLvlText,Ta as exportSourceRangeOf,Ae as filterRefsOnPage,Od as findDrawingOverlayFrameInLayout,ne as findSeparatorNote,k as fixedPoint,g as fontRequestKey,Fa as forEachSemanticDrawing,Ua as forEachSemanticSpan,Da as forEachSemanticStory,Ga as forEachStoryParagraphFragment,eb as formatDecimal,fb as formatDecimalZero,jb as formatLowerLetter,hb as formatLowerRoman,kb as formatNumFmt,Qc as formatPageNumber,vb as formatRevisionOf,ib as formatUpperLetter,gb as formatUpperRoman,ye as fragmentOwnsAtomOffset,Ha as fragmentsOfParagraph,qd as geometryOfSection,$ as graphemeBoundaryEpoch,da as graphemeCount,fa as graphemeOffsetToUtf16,va as guardOperationSnapshot,u as harfBuzzFontValidator,Hd as hitTestPage,kf as hitTestSemantic,Jd as hitTestSheet,r as initializeHarfBuzz,_ as intlGraphemeBoundary,Ie as isCanvasMeasurementAvailable,ja as isCumulativeGeometryTrustedFromLineOrigin,Gd as isFurniturePoint,ia as isGeometryTrustedCaretOffset,s as isHarfBuzzInitialized,Z as isIntlSegmenterAvailable,ma as isIntlWordSegmenterAvailable,re as isMarkerOnlySeparatorNote,rc as isValidStyleId,ha as isWholeGraphemeHorizontalBoundary,W as itemizeScriptFontSlots,$e as keyedRangeRects,oc as layoutEquation,G as layoutFontConfigurationFingerprint,Yd as layoutHeaderFooterStory,pe as layoutNoteById,se as layoutNoteSeparator,oe as layoutNoteStory,Fe as layoutSemanticDocument,Ia as lineAtPosition,Ld as lineEndOffset,Na as lineSegments,Aa as linesOf,cd as listMarkerBox,tb as markRevisionRemovesMark,S as measureDisplayText,_c as mergeListIndent,pf as moveCaret,Nb as nextTabDestination,me as normalNotesOf,fd as noteDisplayMarkMap,le as noteLineIdPrefix,vd as noteMarkKey,ue as noteSeparatorAreaBox,Cb as noteStoryBlocks,Fd as pageAtY,Le as pageRefPageNumbersFromLayout,We as pagesToMaterialize,gc as paragraphBorderExtentPt,fc as paragraphBorderStrokeWidthPt,dc as paragraphBorders,ic as paragraphBordersFingerprint,Tb as paragraphBreaksBefore,cc as paragraphContextualSpacing,ya as paragraphFragmentsOf,za as paragraphFragmentsOfBlocks,Uc as paragraphLayoutKey,ac as paragraphLineSpacing,xb as paragraphMarkDeleted,rb as paragraphMarkFormatRevisionOf,ub as paragraphMarkRevisionOf,qb as paragraphMarkRevisionsOf,ld as paragraphSectionNode,N as paragraphShading,O as paragraphShadingBox,$b as paragraphSpacing,Kb as paragraphTabStops,nf as paragraphTextFromLayout,uf as paragraphsInCells,Sc as parseAutonumInstruction,id as parsePageNumbering,Tc as parseRefInstruction,jd as parseSectionProperties,Me as planRefFieldResultRefresh,ff as positionPastDeletion,E as prepareLayoutFontConfiguration,wd as projectedNoteMarkText,od as projectedSectionSourceIndexes,De as provisionalNoteMarks,Bc as readBorderSide,Dc as readCellBorders,Yc as readNumPr,md as readSectionProperties,Cc as readTableBorders,Pc as readTableStructure,ca as resetGraphemeBoundary,Fc as resolveBorderConflict,Ke as resolveDefaultSurfaceMeasurer,ra as resolveDefaultWordBoundary,Ad as resolveNumberingLevel,L as resolveOoxmlShadingFill,yc as resolveParagraphLayoutInputs,Q as resolveRunStyle,ad as resolveStoryListItems,rd as resolveStoryRefFields,K as resolveStrictHexFill,Gc as resolveTableCellBorderGrid,Qe as reviewAnchorIndex,Re as reviewItemGeometry,ob as revisionAuthorFilter,zb as revisionRemovesParagraph,wb as revisionsAreDeletion,pb as revisionsVisible,v as roundFontUnitToFixedPoint,T as runStylesEqual,aa as segmentGraphemes,sa as segmentWords,Ze as selectionRects,ka as semanticHorizontalBoundaries,ba as setGraphemeBoundary,M as shadingFillFromElement,ga as shapedHorizontalBoundaries,p as shapedRunComparatorInputs,n as shapingEnvironmentFingerprint,m as shapingEnvironmentFingerprintInputs,sb as shownMarkRevision,Md as spanOffsetX,vf as spansInCells,rf as spansInSelection,Bb as storyBlocks,X as styleForFontSlot,te as syntheticSeparatorBox,Ob as tabAdvanceWidth,Pb as tabStopsFingerprint,yf as tableContextAt,Oc as tableOriginX,de as tocFieldChromeParagraphIds,Je as tryCreateCanvasMeasurer,Ka as unionLayoutBoxes,ea as utf16OffsetToGrapheme,$c as walkStoryParagraphs,Lb as withDefaultTabInterval,Zc as withNumberingStyleLinks,bd as withResolvedListItems,gf as wordBoundary,ta as wordSegmentsToGraphemeRecords}from'./chunk-RJSB6RJ7.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';import'./chunk-VP7SDFCM.js';import'./chunk-PBOIGBDO.js';export{Ea as activeReviewItem,Ga as commentBodyText,Ha as commentInitials,Ba as firstReviewRange,wa as paragraphOrderOfPart,za as reviewItemKey,Ca as reviewItemPositionRank,Aa as reviewItemRanges,Da as reviewItemsAt,Fa as reviewThreadRootOf}from'./chunk-KFELX7CN.js';export{nc as MAX_SDT_NESTING,Ng as MAX_TABLE_COLUMNS,tf as W15_NAMESPACE_URI,sc as collectFlowBlocks,rc as contentControlContentChildren,oc as isContentControl,pc as isContentControlContent,a as sha256FontBytes}from'./chunk-AREFLNUP.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OoxmlPart, a as OoxmlNode, b as OoxmlPackage } from './tree-op-types-
|
|
1
|
+
import { O as OoxmlPart, a as OoxmlNode, b as OoxmlPackage } from './tree-op-types-egdarvH_.js';
|
|
2
2
|
|
|
3
3
|
/** `w:pos` — where a section's footnotes are laid out. */
|
|
4
4
|
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
@@ -64,4 +64,4 @@ declare function isLegalFootnotePosition(pos: string): pos is FootnotePosition;
|
|
|
64
64
|
/** Whether a file-supplied string is a legal `w:numRestart` value. Narrows the type. */
|
|
65
65
|
declare function isLegalNumRestart(value: string): value is NoteNumRestart;
|
|
66
66
|
|
|
67
|
-
export { type AuthoredNoteProperties as A, DEFAULT_ENDNOTE_PROPERTIES as D, type EndnotePosition as E, type FootnotePosition as F, type NoteNumRestart as N, type
|
|
67
|
+
export { type AuthoredNoteProperties as A, DEFAULT_ENDNOTE_PROPERTIES as D, type EndnotePosition as E, type FootnotePosition as F, type NoteNumRestart as N, type ResolvedEndnoteProperties as R, DEFAULT_FOOTNOTE_PROPERTIES as a, type ResolvedFootnoteProperties as b, authoredDocumentEndnoteProperties as c, authoredDocumentFootnoteProperties as d, authoredEndnotePropertiesFromSectPr as e, authoredFootnotePropertiesFromSectPr as f, isLegalFootnotePosition as g, isLegalNumRestart as h, isLegalEndnotePosition as i, resolveFootnoteProperties as j, parseAuthoredNoteProperties as p, resolveEndnoteProperties as r, settingsPartOf as s };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as OoxmlNodeId, e as OoxmlGenericElementNode, a as OoxmlNode } from './tree-op-types-egdarvH_.js';
|
|
2
2
|
|
|
3
3
|
/** Office Math Markup Language namespace. */
|
|
4
4
|
declare const OFFICE_MATH_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/math";
|
package/dist/output.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkAS7YZNQE_cjs=require('./chunk-AS7YZNQE.cjs');require('./chunk-AVGCKH6A.cjs'),require('./chunk-FGBADUSK.cjs'),require('./chunk-PXKZUTHX.cjs'),require('./chunk-2YH4MSHX.cjs'),require('./chunk-24APKZAN.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunkAS7YZNQE_cjs.j}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunkAS7YZNQE_cjs.o}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunkAS7YZNQE_cjs.m}});
|
package/dist/output.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
4
|
-
import './tree-op-types-
|
|
1
|
+
import { R as ReviewAuthorInfo } from './semantic-paint-f7SqN4oW.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-f7SqN4oW.js';
|
|
3
|
+
import { S as SemanticLayout } from './semantic-records-EIdwId-a.js';
|
|
4
|
+
import './tree-op-types-egdarvH_.js';
|
|
5
5
|
import './contracts/types.js';
|
|
6
|
-
import './revision-projection-
|
|
7
|
-
import './omml-equation-
|
|
6
|
+
import './revision-projection-DHRJH48u.js';
|
|
7
|
+
import './omml-equation-BpRmfDAf.js';
|
|
8
8
|
|
|
9
9
|
/** A rectangle in page-content coordinates, on a named page. */
|
|
10
10
|
interface OverlayRect {
|
package/dist/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{j as DEFAULT_FIELD_SHADING,o as paintSelectionOverlay,m as paintSemanticLayout}from'./chunk-XCESLTJL.js';import'./chunk-RJSB6RJ7.js';import'./chunk-RIYSCEFQ.js';import'./chunk-VP7SDFCM.js';import'./chunk-PBOIGBDO.js';import'./chunk-KFELX7CN.js';import'./chunk-AREFLNUP.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HeaderFooterVariant } from './
|
|
2
|
-
import { N as NoteKind } from './tree-store-
|
|
1
|
+
import { H as HeaderFooterVariant } from './hf-references-DTrHkktY.js';
|
|
2
|
+
import { N as NoteKind } from './tree-store-DKJB0IcA.js';
|
|
3
3
|
|
|
4
4
|
/** Alignment as this protocol publishes it. `Mixed`/`Unknown` are read-only answers. */
|
|
5
5
|
type AutomationAlignment = 'Mixed' | 'Unknown' | 'Left' | 'Centered' | 'Right' | 'Justified';
|
|
@@ -203,7 +203,7 @@ type AutomationParagraphRef = {
|
|
|
203
203
|
interface AutomationSearchOptions {
|
|
204
204
|
readonly matchCase?: boolean;
|
|
205
205
|
readonly matchWholeWord?: boolean;
|
|
206
|
-
/**
|
|
206
|
+
/** Display or raw model text to search. `allMarkup` preserves the historical behavior. */
|
|
207
207
|
readonly projection?: AutomationTextProjection;
|
|
208
208
|
/** Not supported; `true` is refused. Punctuation-insensitive matching is not implemented. */
|
|
209
209
|
readonly ignorePunct?: boolean;
|
|
@@ -215,12 +215,14 @@ interface AutomationSearchOptions {
|
|
|
215
215
|
readonly limit?: number;
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
|
-
* Which
|
|
218
|
+
* Which text an automation read exposes.
|
|
219
219
|
*
|
|
220
220
|
* `allMarkup` includes pending insertions, deletions, and both sides of replacements. `original`
|
|
221
221
|
* matches Word's Original review view: deletions remain visible and insertions are hidden.
|
|
222
|
+
* Both are display text and expand saved field results. `model` returns raw model text with
|
|
223
|
+
* atomic fields represented by `U+FFFC`. Only `model` shares the protocol's offset vocabulary.
|
|
222
224
|
*/
|
|
223
|
-
type AutomationTextProjection = 'allMarkup' | 'original';
|
|
225
|
+
type AutomationTextProjection = 'allMarkup' | 'original' | 'model';
|
|
224
226
|
/** Where a selection lands. `start`/`end` collapse it to one edge of the span. */
|
|
225
227
|
type AutomationSelectionMode = 'select' | 'start' | 'end';
|
|
226
228
|
/**
|
|
@@ -260,14 +262,18 @@ type AutomationOperation =
|
|
|
260
262
|
* Text of a body or a paragraph.
|
|
261
263
|
*
|
|
262
264
|
* A story reads as its paragraphs joined by a carriage return — one paragraph mark, one
|
|
263
|
-
* `\r` — which is the separator Word's own text property uses.
|
|
265
|
+
* `\r` — which is the separator Word's own text property uses. Display projections expand
|
|
266
|
+
* fields, so clients must not derive model offsets from this text.
|
|
264
267
|
*/
|
|
265
268
|
| {
|
|
266
269
|
readonly op: 'getText';
|
|
267
270
|
readonly target: AutomationHandle;
|
|
268
271
|
readonly projection?: AutomationTextProjection;
|
|
269
272
|
}
|
|
270
|
-
/**
|
|
273
|
+
/**
|
|
274
|
+
* Display text between two endpoints, with a carriage return at each paragraph boundary.
|
|
275
|
+
* Use the `model` projection when a client needs text in the endpoint offset vocabulary.
|
|
276
|
+
*/
|
|
271
277
|
| {
|
|
272
278
|
readonly op: 'getSpanText';
|
|
273
279
|
readonly span: AutomationSpanRef;
|
|
@@ -1170,11 +1176,11 @@ interface AutomationError {
|
|
|
1170
1176
|
/**
|
|
1171
1177
|
* One end of a stretch of a story: a paragraph, and a UTF-16 offset in it.
|
|
1172
1178
|
*
|
|
1173
|
-
* The only addressing vocabulary in this protocol. A stable paragraph handle plus a model
|
|
1174
|
-
* offset is what
|
|
1175
|
-
*
|
|
1176
|
-
*
|
|
1177
|
-
*
|
|
1179
|
+
* The only addressing vocabulary in this protocol. A stable paragraph handle plus a raw model
|
|
1180
|
+
* offset is what tree operations, selection, and layout use. Display text reads can expand field
|
|
1181
|
+
* atoms and apply a review view. A client must not calculate offsets from display text. It can
|
|
1182
|
+
* request the `model` projection when it needs text in this offset vocabulary. Painted DOM
|
|
1183
|
+
* indices and document-wide character counters appear nowhere.
|
|
1178
1184
|
*/
|
|
1179
1185
|
interface AutomationEndpoint {
|
|
1180
1186
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as OoxmlElement, O as OoxmlPart, b as OoxmlPackage, R as RevisionAddress } from './tree-op-types-egdarvH_.js';
|
|
2
2
|
|
|
3
3
|
/** The `w15` namespace: `commentsExtended.xml` — thread parent and resolved state. */
|
|
4
4
|
declare const W15_NAMESPACE_URI = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
@@ -357,4 +357,4 @@ declare function activeReviewItem(items: readonly ReviewItem[], position: Review
|
|
|
357
357
|
*/
|
|
358
358
|
declare function reviewThreadRootOf(items: readonly ReviewItem[], comment: ReviewCommentItem): ReviewItem;
|
|
359
359
|
|
|
360
|
-
export { type CommentRecord as C, type ReviewModelInput as R, W15_NAMESPACE_URI as W, type ReviewItem as a, type ReviewRevisionItem as b, type ReviewCommentItem as c, type ReviewCustomItem as d, type ReviewPosition as e, type ReviewRange as f, type ReviewRevisionKind as g, type CommentThreadState as h, type CommentAnchor as i, type CommentPosition as j,
|
|
360
|
+
export { type CommentRecord as C, type ReviewModelInput as R, W15_NAMESPACE_URI as W, type ReviewItem as a, type ReviewRevisionItem as b, type ReviewCommentItem as c, type ReviewCustomItem as d, type ReviewPosition as e, type ReviewRange as f, type ReviewRevisionKind as g, type CommentThreadState as h, type CommentAnchor as i, type CommentPosition as j, commentAnchorsOfStory as k, commentsOfPart as l, firstReviewRange as m, hasAnyComment as n, reviewItemRanges as o, activeReviewItem as p, reviewItemPositionRank as q, reviewItemKey as r, reviewItemsAt as s, threadStateOfPart as t, reviewThreadRootOf as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as OoxmlNode,
|
|
2
|
-
import { C as CommentRecord, f as ReviewRange, R as ReviewModelInput, a as ReviewItem, e as ReviewPosition, h as CommentThreadState, c as ReviewCommentItem, b as ReviewRevisionItem } from './review-items-
|
|
1
|
+
import { a as OoxmlNode, c as OoxmlElement, r as OoxmlContentControlNode, e as OoxmlGenericElementNode, s as OoxmlContentControlContentNode, O as OoxmlPart } from './tree-op-types-egdarvH_.js';
|
|
2
|
+
import { C as CommentRecord, f as ReviewRange, R as ReviewModelInput, a as ReviewItem, e as ReviewPosition, h as CommentThreadState, c as ReviewCommentItem, b as ReviewRevisionItem } from './review-items-DYRx187i.js';
|
|
3
3
|
|
|
4
4
|
/** Nested content-control wrappers deeper than this stop flattening; content stays preserved. */
|
|
5
5
|
declare const MAX_CONTENT_CONTROL_NESTING = 32;
|
|
@@ -47,12 +47,28 @@ declare function walkStoryBlocks(children: readonly OoxmlNode[], depth: number,
|
|
|
47
47
|
*/
|
|
48
48
|
declare function walkAllStoryParagraphs(children: readonly OoxmlNode[], sdtDepth: number, visit: (paragraph: OoxmlElement) => void): void;
|
|
49
49
|
/**
|
|
50
|
-
* Paragraph-level inline sequence — runs
|
|
50
|
+
* Paragraph-level inline sequence — runs and their bounded containers in document order.
|
|
51
51
|
*
|
|
52
52
|
* `visit` receives each direct `w:r` and any other inline node the caller treats as opaque
|
|
53
|
-
* (bookmarks, drawings, …). Hyperlinks and
|
|
53
|
+
* (bookmarks, drawings, …). Hyperlinks and controls are descended transparently. Callers
|
|
54
|
+
* that address the runs inside tracked revisions can opt into descending those wrappers too.
|
|
54
55
|
*/
|
|
55
|
-
declare function walkParagraphInline(children: readonly OoxmlNode[], depth: number, visit: (child: OoxmlNode) => void
|
|
56
|
+
declare function walkParagraphInline(children: readonly OoxmlNode[], depth: number, visit: (child: OoxmlNode) => void, options?: {
|
|
57
|
+
readonly descendRevisions?: boolean;
|
|
58
|
+
}): void;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Paragraph node id → document position, from the tree rather than from layout.
|
|
62
|
+
*
|
|
63
|
+
* Memoized on the immutable root: a derivation pass can ask repeatedly, and the shared answer
|
|
64
|
+
* stays read-only so a caller cannot poison later readers.
|
|
65
|
+
*/
|
|
66
|
+
declare function paragraphOrderOfPart(part: OoxmlPart): ReadonlyMap<string, number>;
|
|
67
|
+
/**
|
|
68
|
+
* Like {@link paragraphOrderOfPart}, but descends into paragraphs so textbox paragraphs rank
|
|
69
|
+
* immediately after their host. Shallow order remains available for separate-story walks.
|
|
70
|
+
*/
|
|
71
|
+
declare function deepParagraphOrderOfPart(part: OoxmlPart): ReadonlyMap<string, number>;
|
|
56
72
|
|
|
57
73
|
/** Plain text of a comment's body, so a card never re-implements the run walk. */
|
|
58
74
|
declare function commentBodyText(comment: CommentRecord): string;
|
|
@@ -140,24 +156,5 @@ interface LinkableReviewItem {
|
|
|
140
156
|
* retain stale `parentRevisionId` values after edits move a revision.
|
|
141
157
|
*/
|
|
142
158
|
declare function linkRevisionReplies<T extends LinkableReviewItem>(items: readonly T[]): T[];
|
|
143
|
-
/**
|
|
144
|
-
* Paragraph node id → document position, from the TREE rather than from a layout.
|
|
145
|
-
*
|
|
146
|
-
* Memoized on the immutable root: one full derivation pass asks this question three times
|
|
147
|
-
* (replacement pairing, the queue's merged order, the session's cached order), and each
|
|
148
|
-
* answer was a fresh full-tree walk. The instance is SHARED, so the return type is
|
|
149
|
-
* ReadonlyMap: a caller mutating it would poison every later reader of this root.
|
|
150
|
-
*/
|
|
151
|
-
declare function paragraphOrderOfPart(part: OoxmlPart): ReadonlyMap<string, number>;
|
|
152
|
-
/**
|
|
153
|
-
* Like {@link paragraphOrderOfPart}, but descends INTO paragraphs, so paragraphs nested
|
|
154
|
-
* in a run's content — a textbox's `w:txbxContent` — rank right after their host.
|
|
155
|
-
*
|
|
156
|
-
* A separate function on purpose: the shallow order feeds the review queue's card
|
|
157
|
-
* ordering, and re-ranking nested paragraphs there would move cards. This one exists for
|
|
158
|
-
* position containment tests ("is the caret inside this range"), where a paragraph the
|
|
159
|
-
* shallow order cannot see is a position that can never match.
|
|
160
|
-
*/
|
|
161
|
-
declare function deepParagraphOrderOfPart(part: OoxmlPart): ReadonlyMap<string, number>;
|
|
162
159
|
|
|
163
|
-
export { type LinkableReviewItem as L, MAX_CONTENT_CONTROL_NESTING as M,
|
|
160
|
+
export { type LinkableReviewItem as L, MAX_CONTENT_CONTROL_NESTING as M, collectReviewItems as a, commentBodyText as b, collectFlowBlocks as c, commentInitials as d, commentItemsOf as e, contentControlContentOf as f, deepParagraphOrderOfPart as g, isContentControlContent as h, isContentControl as i, walkParagraphInline as j, walkStoryBlocks as k, linkRevisionReplies as l, contentControlContentChildren as m, paragraphOrderOfPart as p, revisionItemsOf as r, walkAllStoryParagraphs as w };
|
package/dist/{semantic-cell-selection-BK91NCCG.d.ts → semantic-cell-selection-BXVWCBYm.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { O as OoxmlPart,
|
|
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, a as RevisionAuthorFilter } from './revision-projection-
|
|
4
|
-
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-
|
|
1
|
+
import { O as OoxmlPart, c as OoxmlElement, a as OoxmlNode } from './tree-op-types-egdarvH_.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, b as TableRowFragmentRecord, c as TableCellFragmentRecord } from './semantic-records-EIdwId-a.js';
|
|
3
|
+
import { R as RevisionDisplayMode, a as RevisionAuthorFilter } from './revision-projection-DHRJH48u.js';
|
|
4
|
+
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-DZsDmPg5.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Hard ceiling on sections enumerated from a document (matches write-path
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-
|
|
1
|
+
import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-EIdwId-a.js';
|
|
2
2
|
|
|
3
3
|
/** A caret position in the model. */
|
|
4
4
|
interface SemanticPosition {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-
|
|
2
|
-
import { V as ValidatedImageBytesHandle, t as RenderableImageMime } from './tree-op-types-
|
|
1
|
+
import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-EIdwId-a.js';
|
|
2
|
+
import { V as ValidatedImageBytesHandle, t as RenderableImageMime } from './tree-op-types-egdarvH_.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Everything a host can say about ONE author's presentation. Every field is optional and
|