@docx-editor.dev/core 2.15.0 → 2.16.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 +9 -15
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +11 -9
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +12 -16
- package/dist/binding.js +1 -1
- package/dist/{chunk-Q4AB7E4O.cjs → chunk-4MIFIUEV.cjs} +1 -1
- package/dist/chunk-66DTF4TD.cjs +2 -0
- package/dist/chunk-67U2OZS7.cjs +2 -0
- package/dist/chunk-6EGMDUL7.js +21 -0
- package/dist/chunk-ABXCIZVW.js +2 -0
- package/dist/chunk-AEIAYDCG.js +1 -0
- package/dist/{chunk-YL4Q5LZP.cjs → chunk-BPSGGVP5.cjs} +1 -1
- package/dist/chunk-CMV2MTDE.js +5 -0
- package/dist/chunk-DYPT6YDY.js +1 -0
- package/dist/chunk-EWV5JMJY.cjs +21 -0
- package/dist/chunk-FAD7DH6Q.cjs +1 -0
- package/dist/chunk-GHNTGVKG.cjs +11 -0
- package/dist/chunk-GQVKCK33.js +2 -0
- package/dist/chunk-I4ENGOOZ.js +1 -0
- package/dist/chunk-IZHDCQUC.js +20 -0
- package/dist/chunk-KEXMDQ2Z.js +1 -0
- package/dist/chunk-KQEUFAAG.cjs +20 -0
- package/dist/chunk-QVJO5FUR.js +11 -0
- package/dist/chunk-SIUUTE5M.js +2 -0
- package/dist/chunk-TDHR2QLH.cjs +1 -0
- package/dist/{chunk-PXKZUTHX.cjs → chunk-WGHVIB6B.cjs} +2 -2
- package/dist/chunk-XKQTITOJ.cjs +5 -0
- package/dist/{chunk-KXPVOPR5.js → chunk-YKDRBDI2.js} +1 -1
- package/dist/chunk-YRTRPSSA.cjs +1 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +4 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +4 -4
- package/dist/contracts/editor.d.ts +9 -7
- package/dist/contracts/interaction.d.ts +73 -10
- package/dist/contracts/modules.d.ts +8 -8
- package/dist/{custom-node-writes-C9ArIlJh.d.ts → custom-node-writes-4WOL8JB_.d.ts} +2 -2
- package/dist/{editor-sRxrFJd8.d.ts → editor-PDx0fqSo.d.ts} +26 -125
- package/dist/editor-scope-DZJT4ukT.d.ts +53 -0
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -1
- package/dist/editor.d.ts +32 -26
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +24 -12
- package/dist/export.js +2 -2
- package/dist/{font-resolver-BYEHQGTw.d.ts → font-resolver-CdqOugwZ.d.ts} +2 -2
- package/dist/{headless-document-view-DELC4E5v.d.ts → headless-document-view-C9ONlGtf.d.ts} +2 -2
- package/dist/{hf-references-DTrHkktY.d.ts → hf-references-BZVHctVD.d.ts} +1 -1
- package/dist/{index-C3Gvq4jN.d.ts → index-BVb4a6O3.d.ts} +74 -28
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +20 -18
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-DoGR5cf8.d.ts → layout-shaping-D_U5z-Qh.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +270 -459
- package/dist/layout.js +1 -1
- package/dist/{note-properties-DSe8igrz.d.ts → note-properties-BosjbkGC.d.ts} +1 -1
- package/dist/{omml-equation-BpRmfDAf.d.ts → omml-equation-oLlbPpVy.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-DZzKxH5r.d.ts → protocol-CUsqt13U.d.ts} +28 -6
- package/dist/{review-items-DYRx187i.d.ts → review-items-kC-YI70C.d.ts} +1 -1
- package/dist/{review-reads-LbGUdNzn.d.ts → review-reads-DdvADsmp.d.ts} +8 -7
- package/dist/{revision-projection-DHRJH48u.d.ts → revision-projection-CN_DiOl_.d.ts} +1 -1
- package/dist/{semantic-cell-selection-BXVWCBYm.d.ts → semantic-cell-selection-BMrXDniV.d.ts} +4 -4
- package/dist/{semantic-interaction-DZsDmPg5.d.ts → semantic-interaction-NGeYzYCN.d.ts} +1 -1
- package/dist/{semantic-paint-f7SqN4oW.d.ts → semantic-paint-CM8F-8pH.d.ts} +2 -2
- package/dist/{semantic-records-EIdwId-a.d.ts → semantic-records-BreR44Ki.d.ts} +1231 -947
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +80 -20
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-egdarvH_.d.ts → tree-op-types-C5rZzoAz.d.ts} +131 -53
- package/dist/{tree-package-fragment-DjkH4ESI.d.ts → tree-package-fragment-DDQHk8sv.d.ts} +3 -3
- package/dist/{tree-session-contract-CGOOgPjW.d.ts → tree-session-contract-dKgbKH9A.d.ts} +18 -8
- package/dist/{tree-store-DKJB0IcA.d.ts → tree-store-DU192chS.d.ts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-24APKZAN.cjs +0 -11
- package/dist/chunk-2YH4MSHX.cjs +0 -2
- package/dist/chunk-5Y7AADI6.js +0 -1
- package/dist/chunk-AREFLNUP.js +0 -11
- package/dist/chunk-AS7YZNQE.cjs +0 -2
- package/dist/chunk-AVGCKH6A.cjs +0 -20
- package/dist/chunk-CDYVDQRI.cjs +0 -5
- package/dist/chunk-HOEWFH5U.cjs +0 -1
- package/dist/chunk-KFELX7CN.js +0 -2
- package/dist/chunk-LGFKIF4M.cjs +0 -1
- package/dist/chunk-M52QXFKI.js +0 -1
- package/dist/chunk-MNUKSXRO.js +0 -1
- package/dist/chunk-PBOIGBDO.js +0 -2
- package/dist/chunk-PMHGONET.cjs +0 -1
- package/dist/chunk-QJYH6AYD.js +0 -1
- package/dist/chunk-QRC37MWG.cjs +0 -20
- package/dist/chunk-RJSB6RJ7.js +0 -20
- package/dist/chunk-SB54HLFJ.js +0 -20
- package/dist/chunk-XCESLTJL.js +0 -2
- package/dist/chunk-Z4527AXR.js +0 -5
package/dist/layout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cc as AUTO_PARAGRAPH_SPACING_PT,wd as AUTO_PREFERRED_WIDTH,xd as CELL_PAD,Yb as COMPOUND_BORDER_MIN_GAP_PT,Xb as COMPOUND_BORDER_MIN_STROKE_PT,Ge as DEFAULT_CANVAS_FONT_STACK,yd as DEFAULT_CELL_MARGINS,Ma as DEFAULT_PAGE_GEOMETRY,qb as DEFAULT_REVISION_DISPLAY_MODE,P as DEFAULT_RUN_STYLE,Sc as DEFAULT_SECTION_PROPERTIES,Nb as DEFAULT_TAB_INTERVAL_PT,Mb as DEFAULT_TAB_INTERVAL_TWIPS,Ed as DEFAULT_VERTICAL_WEIGHT,kd as EMPTY_NUMBERING_INDEX,Pb as EMPTY_TAB_STOPS,d as FontResolutionError,V 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,bc as MAX_BORDER_SPACE_PT,ac as MAX_BORDER_WIDTH_PT,Rc as MAX_DOCUMENT_SECTIONS,xe as MAX_EACH_PAGE_MARK_CANDIDATES,hd 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,gd as MAX_NUMBERING_DEFINITIONS,$b as MAX_PARAGRAPH_SPACING_PT,zc as MAX_STYLE_BASED_ON_DEPTH,Ac as MAX_STYLE_DEFINITIONS,od as MAX_TABLE_BORDER_STROKES,Bd as MAX_TABLE_NESTING,Ud as MAX_TABLE_ROW_FRAGMENTS,Cd as MAX_TABLE_ROW_HEIGHT_PT,Lb as MAX_TAB_POSITION_TWIPS,Kb as MAX_TAB_STOPS,ec as PARAGRAPH_BORDER_SIDES,wa as ResolvedCache,dc as SINGLE_LINE_SPACING,Ob as TAB_LEADER_GLYPH,Vd as TablePaginationError,da as UnsupportedScriptError,la as WORD_SEGMENTER_LOCALE,Pe as anchorLineY,rc as appliedSpaceBefore,ic as applyLineSpacing,Ce as attachNotesToLayout,U as baselineShiftPtOf,vd as borderExtentPt,sd as borderWeight,oc as bottomBorderExtentPt,oa as boundedFallbackWordSegments,i as boundedStructuralFontValidator,id as buildNumberingIndex,ze as buildPageRefIndex,Bc as buildStyleCascadeTable,ua as captureOperationSnapshot,jf as caretAt,Nd as caretBoxOnLine,hf as caretStops,if as caretStopsForBlocks,Cc as cascadeParagraphFormatting,Ec as cascadeRunProperties,Dc as cascadedBottomBorder,lc as cascadedParagraphBorders,Qb as cascadedTabStops,sf as cellSelectionBetween,wf as cellSelectionRects,xf as cellSelectionText,db as clampListValue,qc as collapsedSpaceBefore,qf as compositionAnchor,Zb 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,ld 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,Jb as createListCounterState,Ib as createParagraphLayoutCache,Ue as createShapedMeasurer,o as createShapedRun,l as createShapingEnvironment,qe as defaultNoteSeparatorRuleStyle,Tb as defaultTabIntervalFromSettings,of as deletedTextBoundaries,Oc as deriveNoteDisplayMarks,Pc as deriveNoteDisplayMarksResolved,R as displayText,J as disposeLayoutShaping,Ra as documentOrder,$d as documentRelationshipTargetIn,nd as effectiveBorderSide,La as effectiveContentControlLock,ee as emptyTocPlaceholderParagraphIds,fe as emptyTocSuppressedResultParagraphIds,Yc as enumerateDocumentSections,_c 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,mb as formatPageNumber,zb as formatRevisionOf,ib as formatUpperLetter,gb as formatUpperRoman,ye as fragmentOwnsAtomOffset,Ha as fragmentsOfParagraph,$c as geometryOfSection,Y as graphemeBoundaryEpoch,aa as graphemeCount,ca as graphemeOffsetToUtf16,va as guardOperationSnapshot,u as harfBuzzFontValidator,Hd as hitTestPage,kf as hitTestSemantic,Jd as hitTestSheet,r as initializeHarfBuzz,X as intlGraphemeBoundary,Ie as isCanvasMeasurementAvailable,ja as isCumulativeGeometryTrustedFromLineOrigin,Gd as isFurniturePoint,ia as isGeometryTrustedCaretOffset,s as isHarfBuzzInitialized,W as isIntlSegmenterAvailable,ma as isIntlWordSegmenterAvailable,re as isMarkerOnlySeparatorNote,yc as isValidStyleId,ha as isWholeGraphemeHorizontalBoundary,ea as itemizeScriptFontSlots,$e as keyedRangeRects,vc 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,Nc as listMarkerBox,xb as markRevisionRemovesMark,S as measureDisplayText,Jc as mergeListIndent,pf as moveCaret,Ub as nextTabDestination,me as normalNotesOf,Qc as noteDisplayMarkMap,le as noteLineIdPrefix,ed as noteMarkKey,ue as noteSeparatorAreaBox,Gb as noteStoryBlocks,Fd as pageAtY,Le as pageRefPageNumbersFromLayout,We as pagesToMaterialize,nc as paragraphBorderExtentPt,mc as paragraphBorderStrokeWidthPt,kc as paragraphBorders,pc as paragraphBordersFingerprint,_b as paragraphBreaksBefore,jc as paragraphContextualSpacing,ya as paragraphFragmentsOf,za as paragraphFragmentsOfBlocks,Hb as paragraphLayoutKey,hc as paragraphLineSpacing,Bb as paragraphMarkDeleted,vb as paragraphMarkFormatRevisionOf,yb as paragraphMarkRevisionOf,ub as paragraphMarkRevisionsOf,Wc as paragraphSectionNode,N as paragraphShading,O as paragraphShadingBox,gc as paragraphSpacing,Rb as paragraphTabStops,nf as paragraphTextFromLayout,uf as paragraphsInCells,ob as parseAutonumInstruction,Tc as parsePageNumbering,pb as parseRefInstruction,Uc as parseSectionProperties,Me as planRefFieldResultRefresh,ff as positionPastDeletion,E as prepareLayoutFontConfiguration,fd as projectedNoteMarkText,Zc as projectedSectionSourceIndexes,De as provisionalNoteMarks,pd as readBorderSide,rd as readCellBorders,Hc as readNumPr,Xc as readSectionProperties,qd as readTableBorders,Dd as readTableStructure,$ as resetGraphemeBoundary,td as resolveBorderConflict,Ke as resolveDefaultSurfaceMeasurer,ra as resolveDefaultWordBoundary,jd as resolveNumberingLevel,L as resolveOoxmlShadingFill,Fc as resolveParagraphLayoutInputs,Q as resolveRunStyle,Lc as resolveStoryListItems,ad as resolveStoryRefFields,K as resolveStrictHexFill,ud as resolveTableCellBorderGrid,Qe as reviewAnchorIndex,Re as reviewItemGeometry,sb as revisionAuthorFilter,Db as revisionRemovesParagraph,Ab as revisionsAreDeletion,tb as revisionsVisible,v as roundFontUnitToFixedPoint,T as runStylesEqual,Z as segmentGraphemes,sa as segmentWords,Ze as selectionRects,ka as semanticHorizontalBoundaries,_ as setGraphemeBoundary,M as shadingFillFromElement,ga as shapedHorizontalBoundaries,p as shapedRunComparatorInputs,n as shapingEnvironmentFingerprint,m as shapingEnvironmentFingerprintInputs,wb as shownMarkRevision,Md as spanOffsetX,vf as spansInCells,rf as spansInSelection,Fb as storyBlocks,fa as styleForFontSlot,te as syntheticSeparatorBox,Vb as tabAdvanceWidth,Wb as tabStopsFingerprint,yf as tableContextAt,Ad as tableOriginX,de as tocFieldChromeParagraphIds,Je as tryCreateCanvasMeasurer,Ka as unionLayoutBoxes,ba as utf16OffsetToGrapheme,Kc as walkStoryParagraphs,Sb as withDefaultTabInterval,Ic as withNumberingStyleLinks,Mc as withResolvedListItems,gf as wordBoundary,ta as wordSegmentsToGraphemeRecords}from'./chunk-6EGMDUL7.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';import'./chunk-VP7SDFCM.js';import'./chunk-ABXCIZVW.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-GQVKCK33.js';export{Bd as MAX_SDT_NESTING,nh as MAX_TABLE_COLUMNS,gg as W15_NAMESPACE_URI,Gd as collectFlowBlocks,Fd as contentControlContentChildren,Cd as isContentControl,Dd as isContentControlContent,a as sha256FontBytes}from'./chunk-QVJO5FUR.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-C5rZzoAz.js';
|
|
2
2
|
|
|
3
3
|
/** `w:pos` — where a section's footnotes are laid out. */
|
|
4
4
|
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as OoxmlNodeId, e as OoxmlGenericElementNode, a as OoxmlNode } from './tree-op-types-
|
|
1
|
+
import { d as OoxmlNodeId, e as OoxmlGenericElementNode, a as OoxmlNode } from './tree-op-types-C5rZzoAz.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 chunk66DTF4TD_cjs=require('./chunk-66DTF4TD.cjs');require('./chunk-EWV5JMJY.cjs'),require('./chunk-FGBADUSK.cjs'),require('./chunk-WGHVIB6B.cjs'),require('./chunk-67U2OZS7.cjs'),require('./chunk-GHNTGVKG.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunk66DTF4TD_cjs.j}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunk66DTF4TD_cjs.o}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunk66DTF4TD_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-CM8F-8pH.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-CM8F-8pH.js';
|
|
3
|
+
import { S as SemanticLayout } from './semantic-records-BreR44Ki.js';
|
|
4
|
+
import './tree-op-types-C5rZzoAz.js';
|
|
5
5
|
import './contracts/types.js';
|
|
6
|
-
import './revision-projection-
|
|
7
|
-
import './omml-equation-
|
|
6
|
+
import './revision-projection-CN_DiOl_.js';
|
|
7
|
+
import './omml-equation-oLlbPpVy.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{j as DEFAULT_FIELD_SHADING,o as paintSelectionOverlay,m as paintSemanticLayout}from'./chunk-
|
|
1
|
+
export{j as DEFAULT_FIELD_SHADING,o as paintSelectionOverlay,m as paintSemanticLayout}from'./chunk-SIUUTE5M.js';import'./chunk-6EGMDUL7.js';import'./chunk-RIYSCEFQ.js';import'./chunk-VP7SDFCM.js';import'./chunk-ABXCIZVW.js';import'./chunk-GQVKCK33.js';import'./chunk-QVJO5FUR.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HeaderFooterVariant } from './hf-references-
|
|
2
|
-
import { N as NoteKind } from './tree-store-
|
|
1
|
+
import { H as HeaderFooterVariant } from './hf-references-BZVHctVD.js';
|
|
2
|
+
import { N as NoteKind } from './tree-store-DU192chS.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';
|
|
@@ -232,9 +232,15 @@ type AutomationSelectionMode = 'select' | 'start' | 'end';
|
|
|
232
232
|
* Reads never open a transaction; commands in one batch commit together. Handles are NAMES the
|
|
233
233
|
* host minted, never pointers, so an operation is plain transport data.
|
|
234
234
|
*/
|
|
235
|
-
type AutomationOperation =
|
|
235
|
+
type AutomationOperation = {
|
|
236
|
+
readonly op: 'getChangeTrackingMode';
|
|
237
|
+
} | {
|
|
238
|
+
readonly op: 'setChangeTrackingMode';
|
|
239
|
+
readonly mode: 'Off' | 'TrackAll' | 'TrackMineOnly';
|
|
240
|
+
readonly author?: string;
|
|
241
|
+
}
|
|
236
242
|
/** The document itself — the root every other handle is reached through. */
|
|
237
|
-
{
|
|
243
|
+
| {
|
|
238
244
|
readonly op: 'getDocument';
|
|
239
245
|
}
|
|
240
246
|
/** The main story of a document. */
|
|
@@ -311,7 +317,23 @@ type AutomationOperation =
|
|
|
311
317
|
* the ones it was planned with. Addressing distinct paragraphs keeps a batch
|
|
312
318
|
* order-independent.
|
|
313
319
|
*/
|
|
320
|
+
/** Explicit inline Word revision, independent of a browser's editing mode. */
|
|
314
321
|
| {
|
|
322
|
+
readonly op: 'proposeInsertion';
|
|
323
|
+
readonly span: AutomationSpanRef;
|
|
324
|
+
readonly text: string;
|
|
325
|
+
readonly where: 'Before' | 'After';
|
|
326
|
+
readonly author: string;
|
|
327
|
+
} | {
|
|
328
|
+
readonly op: 'proposeDeletion';
|
|
329
|
+
readonly span: AutomationSpanRef;
|
|
330
|
+
readonly author: string;
|
|
331
|
+
} | {
|
|
332
|
+
readonly op: 'proposeReplacement';
|
|
333
|
+
readonly span: AutomationSpanRef;
|
|
334
|
+
readonly text: string;
|
|
335
|
+
readonly author: string;
|
|
336
|
+
} | {
|
|
315
337
|
readonly op: 'insertText';
|
|
316
338
|
readonly at: AutomationPoint;
|
|
317
339
|
readonly text: string;
|
|
@@ -1038,9 +1060,9 @@ interface AutomationCustomNodePayload {
|
|
|
1038
1060
|
/** Just the `op` discriminants of {@link AutomationOperation}, for dispatch tables. */
|
|
1039
1061
|
type AutomationOperationKind = AutomationOperation['op'];
|
|
1040
1062
|
/** Operations that read. They never open a transaction. */
|
|
1041
|
-
declare const AUTOMATION_QUERY_OPERATIONS: readonly ["getDocument", "getBody", "getParagraphs", "getSpanParagraphs", "getText", "getSpanText", "getParagraphId", "search", "getFont", "getParagraphFormat", "getStyle", "getSections", "getPageSetup", "getFurniture", "getNotes", "getNoteBody", "getNoteText", "getNoteKind", "getLists", "getListId", "getListById", "getListParagraphs", "getParagraphList", "getListLevel", "getHyperlink", "getBookmarks", "getBookmarkName", "getBookmarkRange", "getComments", "getCommentReplies", "getCommentId", "getCommentAuthor", "getCommentDate", "getCommentText", "getCommentRange", "getCommentResolved", "getRevisions", "getRevisionType", "getRevisionAuthor", "getRevisionDate", "getRevisionRange", "getContentControls", "getContentControlById", "getContentControlsByTag", "getContentControlsByTitle", "getContentControlTag", "getContentControlTitle", "getContentControlFileId", "getContentControlSubtype", "getContentControlLock", "getContentControlIsBound", "getContentControlPlaceholderShown", "getContentControlTemporary", "getContentControlText", "getContentControlParagraphs", "getContentControlRange"];
|
|
1063
|
+
declare const AUTOMATION_QUERY_OPERATIONS: readonly ["getChangeTrackingMode", "getDocument", "getBody", "getParagraphs", "getSpanParagraphs", "getText", "getSpanText", "getParagraphId", "search", "getFont", "getParagraphFormat", "getStyle", "getSections", "getPageSetup", "getFurniture", "getNotes", "getNoteBody", "getNoteText", "getNoteKind", "getLists", "getListId", "getListById", "getListParagraphs", "getParagraphList", "getListLevel", "getHyperlink", "getBookmarks", "getBookmarkName", "getBookmarkRange", "getComments", "getCommentReplies", "getCommentId", "getCommentAuthor", "getCommentDate", "getCommentText", "getCommentRange", "getCommentResolved", "getRevisions", "getRevisionType", "getRevisionAuthor", "getRevisionDate", "getRevisionRange", "getContentControls", "getContentControlById", "getContentControlsByTag", "getContentControlsByTitle", "getContentControlTag", "getContentControlTitle", "getContentControlFileId", "getContentControlSubtype", "getContentControlLock", "getContentControlIsBound", "getContentControlPlaceholderShown", "getContentControlTemporary", "getContentControlText", "getContentControlParagraphs", "getContentControlRange"];
|
|
1042
1064
|
/** Operations that write. Every one of these goes through the single transaction path. */
|
|
1043
|
-
declare const AUTOMATION_COMMAND_OPERATIONS: readonly ["insertText", "replaceSpan", "replaceStoryBlocks", "insertParagraph", "splitParagraph", "deleteParagraph", "selectSpan", "selectBookmark", "setFont", "setParagraphFormat", "setStyle", "setPageSetup", "deleteNote", "setListLevel", "insertListParagraph", "setHyperlink", "insertComment", "setCommentResolved", "replyToComment", "deleteComment", "acceptRevision", "rejectRevision", "acceptAllRevisions", "rejectAllRevisions", "setContentControlValue", "setContentControlProperties", "deleteContentControl", "insertContentControlText", "insertContentControl", "insertCustomNode"];
|
|
1065
|
+
declare const AUTOMATION_COMMAND_OPERATIONS: readonly ["setChangeTrackingMode", "proposeInsertion", "proposeDeletion", "proposeReplacement", "insertText", "replaceSpan", "replaceStoryBlocks", "insertParagraph", "splitParagraph", "deleteParagraph", "selectSpan", "selectBookmark", "setFont", "setParagraphFormat", "setStyle", "setPageSetup", "deleteNote", "setListLevel", "insertListParagraph", "setHyperlink", "insertComment", "setCommentResolved", "replyToComment", "deleteComment", "acceptRevision", "rejectRevision", "acceptAllRevisions", "rejectAllRevisions", "setContentControlValue", "setContentControlProperties", "deleteContentControl", "insertContentControlText", "insertContentControl", "insertCustomNode"];
|
|
1044
1066
|
/**
|
|
1045
1067
|
* Commands that commit as a PACKAGE transaction and therefore share a batch with nothing.
|
|
1046
1068
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as OoxmlElement, O as OoxmlPart, b as OoxmlPackage, R as RevisionAddress } from './tree-op-types-
|
|
1
|
+
import { c as OoxmlElement, O as OoxmlPart, b as OoxmlPackage, R as RevisionAddress } from './tree-op-types-C5rZzoAz.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as OoxmlNode, c as OoxmlElement, r as OoxmlContentControlNode, e as OoxmlGenericElementNode, s as OoxmlContentControlContentNode, O as OoxmlPart } from './tree-op-types-
|
|
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-C5rZzoAz.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-kC-YI70C.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;
|
|
@@ -24,12 +24,13 @@ declare function contentControlContentOf(node: OoxmlNode): readonly OoxmlNode[]
|
|
|
24
24
|
/**
|
|
25
25
|
* Children of every `w:sdtContent` under a control, in document order.
|
|
26
26
|
*
|
|
27
|
-
* Does not recurse into nested controls
|
|
28
|
-
*
|
|
27
|
+
* Does not recurse into nested controls. Block callers use
|
|
28
|
+
* {@link MAX_CONTENT_CONTROL_NESTING}; paragraph callers use
|
|
29
|
+
* {@link MAX_INLINE_CONTAINER_DEPTH} across all transparent containers.
|
|
29
30
|
*/
|
|
30
31
|
declare function contentControlContentChildren(control: OoxmlNode): readonly OoxmlNode[];
|
|
31
32
|
/**
|
|
32
|
-
* Collect paragraph and table blocks from a sibling list, flattening through
|
|
33
|
+
* Collect paragraph and table blocks from a sibling list, flattening through transparent block
|
|
33
34
|
* wrappers up to {@link MAX_CONTENT_CONTROL_NESTING}.
|
|
34
35
|
*
|
|
35
36
|
* `accept` filters which typed blocks are kept (e.g. skip revision-removed paragraphs). When
|
|
@@ -38,8 +39,8 @@ declare function contentControlContentChildren(control: OoxmlNode): readonly Oox
|
|
|
38
39
|
*/
|
|
39
40
|
declare function collectFlowBlocks(children: readonly OoxmlNode[], depth?: number, accept?: (block: OoxmlElement) => boolean): OoxmlElement[];
|
|
40
41
|
/**
|
|
41
|
-
* Story blocks in document order, flattening block
|
|
42
|
-
*
|
|
42
|
+
* Story blocks in document order, flattening transparent block wrappers — same shape as layout's
|
|
43
|
+
* `storyBlocks` and store `bodyBlocks`.
|
|
43
44
|
*/
|
|
44
45
|
declare function walkStoryBlocks(children: readonly OoxmlNode[], depth: number, visit: (block: OoxmlElement) => void): void;
|
|
45
46
|
/**
|
package/dist/{semantic-cell-selection-BXVWCBYm.d.ts → semantic-cell-selection-BMrXDniV.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { O as OoxmlPart, c as OoxmlElement, a as OoxmlNode } from './tree-op-types-
|
|
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-
|
|
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-C5rZzoAz.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-BreR44Ki.js';
|
|
3
|
+
import { R as RevisionDisplayMode, a as RevisionAuthorFilter } from './revision-projection-CN_DiOl_.js';
|
|
4
|
+
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-NGeYzYCN.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-BreR44Ki.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-BreR44Ki.js';
|
|
2
|
+
import { V as ValidatedImageBytesHandle, t as RenderableImageMime } from './tree-op-types-C5rZzoAz.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Everything a host can say about ONE author's presentation. Every field is optional and
|