@docx-editor.dev/core 2.33.0 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +11 -11
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +13 -13
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-CrPI9ZQc.d.ts → chrome-print-DY0xsXm_.d.ts} +163 -112
- package/dist/{chunk-X34QRAUU.cjs → chunk-37IYWENL.cjs} +1 -1
- package/dist/chunk-37RNWL45.js +4 -0
- package/dist/chunk-5HUVQXET.cjs +4 -0
- package/dist/chunk-5JP3QQF7.js +7 -0
- package/dist/chunk-5KOLFKOB.cjs +5 -0
- package/dist/chunk-6MF5PN2E.js +236 -0
- package/dist/chunk-77JT2AU7.js +2 -0
- package/dist/{chunk-2F2UEAE2.js → chunk-7FUORGCW.js} +1 -1
- package/dist/chunk-A5BTVPET.cjs +236 -0
- package/dist/chunk-AFXFH2T2.js +3 -0
- package/dist/chunk-AVCYP7OY.js +5 -0
- package/dist/chunk-BL2E4QRA.js +1 -0
- package/dist/chunk-DB7X4Y6O.js +4 -0
- package/dist/chunk-DR6W23TB.cjs +2 -0
- package/dist/{chunk-2DR4TH6B.js → chunk-DYLB5U42.js} +1 -1
- package/dist/chunk-E5BKDHIP.cjs +1 -0
- package/dist/chunk-IWXBRUPG.cjs +4 -0
- package/dist/{chunk-L3YXJDPX.js → chunk-KCUXXO3Q.js} +1 -1
- package/dist/chunk-KYA4Y2YB.js +1 -0
- package/dist/{chunk-PXMTQ73F.cjs → chunk-L74TCGVH.cjs} +1 -1
- package/dist/chunk-NBSSQSKY.js +30 -0
- package/dist/{chunk-RFUNFTGV.cjs → chunk-NEM774E3.cjs} +1 -1
- package/dist/chunk-NKZVMMHU.cjs +1 -0
- package/dist/chunk-TXIO5WYQ.cjs +32 -0
- package/dist/chunk-UKG2TXWH.cjs +7 -0
- package/dist/chunk-V7CO55DO.cjs +3 -0
- package/dist/chunk-VLQDQNSS.js +1 -0
- package/dist/chunk-VQOAC3VI.cjs +30 -0
- package/dist/chunk-YWJSQA2O.js +32 -0
- package/dist/chunk-ZJ74LCFI.cjs +1 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +3 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +2 -2
- package/dist/contracts/document.d.ts +2 -2
- package/dist/contracts/editor.d.ts +9 -9
- package/dist/contracts/modules.d.ts +11 -11
- package/dist/contracts/types.d.ts +3 -3
- package/dist/{custom-node-writes-AqY5KpVx.d.ts → custom-node-writes-DparEcZK.d.ts} +45 -7
- package/dist/{diagnostic-context-CuzhOX0g.d.ts → diagnostic-context-CkZKkKvB.d.ts} +1 -1
- package/dist/{diagnostic-hints-BtCaCqQC.d.ts → diagnostic-hints-BTyb8yzX.d.ts} +1 -1
- package/dist/{document-protection-BvbpSXbQ.d.ts → document-protection-DdWxihIN.d.ts} +1 -1
- package/dist/{drawing-graphic-kind-CXYGYbB3.d.ts → drawing-graphic-kind-CK0cMc7H.d.ts} +91 -18
- package/dist/{drawing-preview-package-B9lSLRg4.d.ts → drawing-preview-package-fFjXpOMS.d.ts} +1 -1
- package/dist/{editor-B7OOAAie.d.ts → editor-DDCkWqfD.d.ts} +47 -15
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +2 -2
- package/dist/editor.d.ts +200 -75
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +8 -8
- package/dist/export.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +20 -20
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-Ci_BTnSU.d.ts → layout-shaping-Byj-TwsI.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +289 -129
- package/dist/layout.js +1 -1
- package/dist/{metafile-drawing-DtMFyMKq.d.ts → metafile-drawing-Ce6TuWLm.d.ts} +9 -1
- package/dist/{note-properties-DCIJUKIy.d.ts → note-properties-BiunaIQa.d.ts} +31 -7
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +76 -12
- package/dist/output.js +1 -1
- package/dist/{protocol-Cp_QzVxS.d.ts → protocol-Dn44dL4M.d.ts} +184 -120
- package/dist/{review-paragraph-order-BJQ43_r0.d.ts → review-paragraph-order-BWMXAKuA.d.ts} +1 -1
- package/dist/{revision-projection-OVusTS77.d.ts → revision-projection-DwFhgIR0.d.ts} +1 -1
- package/dist/{semantic-cell-selection-CoI5hHBm.d.ts → semantic-cell-selection-DhalxEBH.d.ts} +2 -2
- package/dist/{semantic-interaction-BbA4dgEo.d.ts → semantic-interaction-QeuzEtAk.d.ts} +2 -4
- package/dist/{semantic-paint-B5JcIv9c.d.ts → semantic-paint-BYDZbTiY.d.ts} +4 -4
- package/dist/{semantic-record-queries-DnO8J5_j.d.ts → semantic-record-queries-Bf5bgQL3.d.ts} +1 -1
- package/dist/{semantic-records-DoK0lNjS.d.ts → semantic-records-CzZiWMY8.d.ts} +99 -94
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +31 -16
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-Df4oY2u4.d.ts → tree-op-types-DKvJSH8T.d.ts} +204 -147
- package/dist/{tree-package-store-DXhX1PE-.d.ts → tree-package-store-Cl3BkWXF.d.ts} +1 -1
- package/dist/{tree-session-contract-CF2625mv.d.ts → tree-session-contract-BL50pqs8.d.ts} +14 -7
- package/dist/{unsupported-elements-CUojsaCr.d.ts → unsupported-elements-Bra4QTOM.d.ts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-23MKR33J.js +0 -4
- package/dist/chunk-2DEY5NUC.cjs +0 -32
- package/dist/chunk-2GPGAFOJ.cjs +0 -5
- package/dist/chunk-ALD626VU.cjs +0 -2
- package/dist/chunk-AU33YWEJ.js +0 -236
- package/dist/chunk-AXU63LYW.cjs +0 -1
- package/dist/chunk-CM5VZRBV.js +0 -32
- package/dist/chunk-D7FAFFTN.js +0 -1
- package/dist/chunk-DYUVJNDD.cjs +0 -1
- package/dist/chunk-ESYUKD5D.js +0 -2
- package/dist/chunk-F7TGQMVR.js +0 -5
- package/dist/chunk-FLW7KIQX.js +0 -30
- package/dist/chunk-JG4A6W6I.js +0 -7
- package/dist/chunk-JNGLSBPH.js +0 -2
- package/dist/chunk-KE6ZWRIY.cjs +0 -236
- package/dist/chunk-LI42N7OW.cjs +0 -4
- package/dist/chunk-PLKDS4JT.js +0 -1
- package/dist/chunk-R4R3AAE4.js +0 -1
- package/dist/chunk-SVM6PGMS.js +0 -3
- package/dist/chunk-SZURLHR3.cjs +0 -3
- package/dist/chunk-UYCGCVZ2.cjs +0 -1
- package/dist/chunk-XNBYG4XJ.cjs +0 -30
- package/dist/chunk-ZDFJW5XS.cjs +0 -2
- package/dist/chunk-ZWO4JHNN.cjs +0 -7
package/dist/layout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
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-AFXFH2T2.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-YWJSQA2O.js';import'./chunk-VLQDQNSS.js';import'./chunk-DB7X4Y6O.js';export{bd as MAX_SDT_NESTING,Hm as MAX_TABLE_COLUMNS,Ij as W15_NAMESPACE_URI,ql as activeReviewItem,gd as collectFlowBlocks,Tl as commentBodyText,Vl as commentInitials,fd as contentControlContentChildren,ml as firstReviewRange,cd as isContentControl,dd as isContentControlContent,d as mapSymbolPuaText,Lk as paragraphOrderOfPart,gl as reviewItemKey,nl as reviewItemPositionRank,ll as reviewItemRanges,ol as reviewItemsAt,rl as reviewThreadRootOf,f as sha256FontBytes}from'./chunk-6MF5PN2E.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
|
-
/**
|
|
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-
|
|
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
|
-
/**
|
|
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
|
|
52
|
-
*
|
|
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
|
|
62
|
+
declare function resolveFootnoteProperties(section?: AuthoredNoteProperties): ResolvedFootnoteProperties;
|
|
55
63
|
/**
|
|
56
|
-
* Resolve
|
|
57
|
-
*
|
|
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
|
|
1
|
+
'use strict';var chunkIWXBRUPG_cjs=require('./chunk-IWXBRUPG.cjs');require('./chunk-V7CO55DO.cjs'),require('./chunk-TXIO5WYQ.cjs'),require('./chunk-E5BKDHIP.cjs'),require('./chunk-5HUVQXET.cjs'),require('./chunk-A5BTVPET.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.r}});Object.defineProperty(exports,"collectPageChangeBars",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.l}});Object.defineProperty(exports,"followingGapPaint",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.a}});Object.defineProperty(exports,"lumTransfer",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.m}});Object.defineProperty(exports,"observeUnsupportedElements",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.c}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.w}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunkIWXBRUPG_cjs.u}});Object.defineProperty(exports,"paintedGapBetween",{enumerable:true,get:function(){return chunkIWXBRUPG_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-
|
|
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-
|
|
13
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
14
|
-
export { U as UnsupportedElement,
|
|
15
|
-
export { U as UnsupportedElementHost, o as observeUnsupportedElements } from './unsupported-elements-
|
|
16
|
-
export { D as DrawingGraphicKind, a as DrawingSupport, b as DrawingSupportIssue } from './drawing-graphic-kind-
|
|
17
|
-
import './revision-projection-
|
|
18
|
-
import './tree-op-types-
|
|
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-
|
|
21
|
-
import './tree-package-store-
|
|
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{
|
|
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-37RNWL45.js';import'./chunk-AFXFH2T2.js';import'./chunk-RIYSCEFQ.js';import'./chunk-YWJSQA2O.js';import'./chunk-VLQDQNSS.js';import'./chunk-DB7X4Y6O.js';import'./chunk-6MF5PN2E.js';
|
|
@@ -1,122 +1,5 @@
|
|
|
1
|
-
import { aB as AutomationTableMutation, Q as RevisionBatchResult, K as RevisionAuthorResult } from './tree-op-types-
|
|
2
|
-
import { H as HeaderFooterVariant, N as NoteKind } from './tree-package-store-
|
|
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,
|
|
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-
|
|
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-
|
|
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'];
|
package/dist/{semantic-cell-selection-CoI5hHBm.d.ts → semantic-cell-selection-DhalxEBH.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-
|
|
2
|
-
import { I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord,
|
|
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,
|
|
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,
|
|
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 };
|