@docx-editor.dev/core 2.31.0 → 2.32.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 +24 -0
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +16 -16
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +17 -15
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-BWvaVEhD.d.ts → chrome-print-CznJ0ucN.d.ts} +58 -23
- package/dist/chunk-25EXMBV2.cjs +5 -0
- package/dist/chunk-2CWQY27B.cjs +1 -0
- package/dist/chunk-3IEXDEFH.cjs +7 -0
- package/dist/chunk-65XBN67F.cjs +2 -0
- package/dist/{chunk-5JPIEN54.cjs → chunk-6NVZNB7O.cjs} +2 -2
- package/dist/chunk-6UDJUI3W.cjs +2 -0
- package/dist/chunk-ACLR4DMK.js +1 -0
- package/dist/{chunk-2E2RPEKX.js → chunk-B2BEELUE.js} +1 -1
- package/dist/chunk-DDFHKQFU.js +30 -0
- package/dist/{chunk-MOYYRVFV.cjs → chunk-E4IAO4CY.cjs} +1 -1
- package/dist/chunk-ETDZFNMI.js +2 -0
- package/dist/chunk-FDSL5OJU.cjs +30 -0
- package/dist/chunk-FS7CMYLT.js +4 -0
- package/dist/chunk-GDS24SZN.js +30 -0
- package/dist/chunk-GIY6NT2X.js +5 -0
- package/dist/chunk-GWM3AKUD.js +18 -0
- package/dist/chunk-HDOXACHP.js +2 -0
- package/dist/chunk-IILEENID.js +1 -0
- package/dist/chunk-L5TYBFDB.js +1 -0
- package/dist/chunk-MNF2K7NN.cjs +30 -0
- package/dist/chunk-O324RB6R.cjs +1 -0
- package/dist/chunk-OKMEMSKB.cjs +1 -0
- package/dist/chunk-QXJKYNYZ.js +1 -0
- package/dist/chunk-RALTVLB6.js +2 -0
- package/dist/chunk-SRVKFUFI.js +3 -0
- package/dist/chunk-TELQ52LG.cjs +1 -0
- package/dist/chunk-TJHE5EET.cjs +1 -0
- package/dist/chunk-UMMRURPE.js +7 -0
- package/dist/chunk-WN7ICTA5.js +1 -0
- package/dist/{chunk-XSTGE3NI.cjs → chunk-XJYZVGQR.cjs} +1 -1
- package/dist/chunk-ZGTIE3QJ.cjs +4 -0
- package/dist/chunk-ZOZI27AW.cjs +18 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +20 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.cjs +1 -1
- package/dist/collaboration.d.ts +5 -5
- package/dist/collaboration.js +1 -1
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +13 -9
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.d.ts +15 -12
- package/dist/contracts/types.d.ts +135 -2
- package/dist/{custom-node-writes-TeUvMP13.d.ts → custom-node-writes-CLJKGD9t.d.ts} +7 -2
- package/dist/{diagnostic-context-DJ0P1uZE.d.ts → diagnostic-context-BtDUY3v2.d.ts} +1 -1
- package/dist/{diagnostic-hints-C9JlLz1L.d.ts → diagnostic-hints-DK8-V0fk.d.ts} +2 -2
- package/dist/{document-protection-C8x3P2J6.d.ts → document-protection-NaniLHWF.d.ts} +1 -1
- package/dist/{editor-B2ShlO23.d.ts → editor-DZwOTmlR.d.ts} +104 -239
- package/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
- package/dist/{editor-scope-C7ke1KJG.d.ts → editor-scope-B3L-1ALc.d.ts} +1 -1
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +2 -2
- package/dist/editor.d.ts +74 -30
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +9 -15
- package/dist/export.js +1 -1
- package/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
- package/dist/{font-resolver-CWh40DYp.d.ts → font-resolver-BlQNGdvR.d.ts} +1 -1
- package/dist/{headless-document-view-qOpaCF82.d.ts → headless-document-view-Bcz9_Qva.d.ts} +115 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +27 -25
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-CWS3j0Xr.d.ts → layout-shaping-E5J4Z1Gf.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +24 -17
- package/dist/layout.js +1 -1
- package/dist/{note-properties-QsKh24sM.d.ts → note-properties-Ds5R2_3F.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +11 -7
- package/dist/output.js +1 -1
- package/dist/{protocol-COZJUKUY.d.ts → protocol-DKa4qt7F.d.ts} +75 -5
- package/dist/{review-paragraph-order-C_QbCKcH.d.ts → review-paragraph-order-Dc17w_6v.d.ts} +1 -1
- package/dist/revision-projection-Cn6rZJ7H.d.ts +258 -0
- package/dist/{semantic-cell-selection-Cub9FDa8.d.ts → semantic-cell-selection-BaUR0iJ4.d.ts} +2 -2
- package/dist/{semantic-interaction-dApRIYpt.d.ts → semantic-interaction-CJoHLoOl.d.ts} +1 -1
- package/dist/{semantic-paint-DLzA8sjP.d.ts → semantic-paint-BPw_n0li.d.ts} +7 -4
- package/dist/{semantic-record-queries-3yp9o11g.d.ts → semantic-record-queries-C0rJ3sB4.d.ts} +1 -1
- package/dist/{semantic-records-B-akgRch.d.ts → semantic-records-BvN-WWst.d.ts} +216 -406
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +13 -14
- package/dist/store.js +1 -1
- package/dist/{types-barrel-CkF2JbU4.d.ts → tree-op-types-C_S2niXW.d.ts} +117 -26
- package/dist/{tree-package-store-B8l8DX3Z.d.ts → tree-package-store-CRHvMyNj.d.ts} +2 -2
- package/dist/{tree-session-contract-DeLRqohz.d.ts → tree-session-contract-D1awo_dA.d.ts} +5 -5
- package/dist/unsupported-elements-CVos5cqe.d.ts +23 -0
- package/docs/accept-reject-without-scrolling.md +95 -0
- package/docs/comment-on-found-text.md +72 -0
- package/docs/custom-review-cards.md +178 -0
- package/docs/highlight-ranges.md +48 -0
- package/docs/index.md +36 -0
- package/docs/propose-rewrite.md +247 -0
- package/docs/tracked-replacement.md +68 -0
- package/package.json +3 -2
- package/dist/chunk-243W4WW2.cjs +0 -2
- package/dist/chunk-4S24UOPG.js +0 -30
- package/dist/chunk-5SO5QDMV.cjs +0 -2
- package/dist/chunk-6IDOVU6L.cjs +0 -1
- package/dist/chunk-6JIJOZDW.js +0 -1
- package/dist/chunk-BTQKU64Q.cjs +0 -1
- package/dist/chunk-DBOOTED4.cjs +0 -30
- package/dist/chunk-EOTAXOJY.cjs +0 -5
- package/dist/chunk-FDAKJ2SJ.cjs +0 -30
- package/dist/chunk-FNNOJNGY.js +0 -3
- package/dist/chunk-FT33HRZP.js +0 -5
- package/dist/chunk-HC6YNKUI.cjs +0 -1
- package/dist/chunk-HZ66UCIS.js +0 -2
- package/dist/chunk-IBRBNT37.cjs +0 -1
- package/dist/chunk-IVIN7X43.js +0 -30
- package/dist/chunk-LZY6B6IV.js +0 -4
- package/dist/chunk-N6B3BXCL.js +0 -1
- package/dist/chunk-Q5K2GGNG.js +0 -2
- package/dist/chunk-R2XINWVE.js +0 -7
- package/dist/chunk-SUEXVBPR.js +0 -1
- package/dist/chunk-T2QQHG5C.js +0 -18
- package/dist/chunk-VWIJKH4A.js +0 -1
- package/dist/chunk-WO4V6PNS.cjs +0 -18
- package/dist/chunk-XMJKFURD.cjs +0 -4
- package/dist/chunk-YQWMI6J5.cjs +0 -7
- package/dist/chunk-ZCJS7D7S.js +0 -2
- package/dist/omml-equation-BsLAa2lX.d.ts +0 -115
package/dist/layout.d.ts
CHANGED
|
@@ -11,23 +11,24 @@
|
|
|
11
11
|
* @packageDocumentation
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
15
|
-
export {
|
|
14
|
+
import { u as NumberingLevel, v as NumberingIndex, S as SemanticLayout, b as LayoutBox, D as DrawingPoint, w as DrawingInsets, g as StyleSpanRecord, I as InlineDrawingRecord, M as ModelRange, x as TableBorderSide, y as TableFloatXSpec, z as TableFloatYSpec, P as ParagraphFragmentRecord, B as BlockFragmentRecord, A as AnchoredDrawingRecord, a as PageRecord, E as NumberingLevelIndent, G as ResolvedListItem, J as RefFieldContext, T as TextMeasurer, K as InlineDrawingLayoutContext, O as CellBorderBox, Q as TableBorderBox, W as TableCellStyleFormatting, X as TableFloatPosition, Y as StyleCascadeTable, C as ContentControlBoundaryRecord$1, n as FixedPointRoundingMode, Z as FixedPoint, V as VersionedShapingLibrary, k as TextShaper, _ as FontByteValidator, s as ShapedRun, L as LineRecord, $ as SourceRange, a0 as HyperlinkProjector, a1 as FieldLinkProjector, a2 as StoryPageFieldNeeds, a3 as HyperlinkFieldSpec, a4 as SpanLinkRecord, a5 as PageGeometry, a6 as SectionColumns, a7 as SectionPageBorders, a8 as PageBorderFrameRecord, a9 as ParagraphBorderStrokeRecord, aa as StrikeoutStrokePt } from './semantic-records-BvN-WWst.js';
|
|
15
|
+
export { ab as AUTO_PARAGRAPH_SPACING_PT, ac as AbstractNumDefinition, ad as AnchoredDrawingLayoutFallback, ae as BidiEmbeddingLevels, af as BorderGridGeometry, ag as CascadedParagraphFormatting, ah as CjkTypographySettings, ai as ContentControlGeometryFragment, aj as ContentControlLevel, d as ContentControlLock, ak as ContentControlMappedType, al as ContentControlModelRange, am as DEFAULT_PAGE_GEOMETRY, an as DEFAULT_RUN_STYLE, ao as DEFAULT_SECTION_PROPERTIES, ap as DEFAULT_TAB_INTERVAL_PT, aq as DEFAULT_TAB_INTERVAL_TWIPS, ar as DeclaredFontSubstitution, as as DocumentSection, at as DocumentSectionsEnumeration, au as DrawingClipFallback, av as DrawingGeometry, aw as DrawingGroupPictureRecord, ax as DrawingTextArtRecord, ay as EMPTY_NUMBERING_INDEX, az as EMPTY_TAB_STOPS, aA as EquationBarGeometry, aB as EquationFractionGeometry, aC as EquationGeometry, aD as EquationNaryGeometry, aE as EquationRadicalGeometry, aF as EquationRowGeometry, aG as EquationScriptGeometry, aH as EquationSpanRecord, aI as EquationTextGeometry, aJ as FieldAtomMarker, aK as FontFingerprintInputs, o as FontRequest, aL as FontResolutionError, aM as FontResolutionErrorCode, aN as FontResourceDefinition, aO as FontResourceInstrumentation, F as FontResourceSnapshot, aP as FontResourceSnapshotOptions, aQ as FontSlot, r as FontSubstitution, aR as FontValidationResult, aS as GlyphOutline, aT as GroupTextboxStoryRecord, aU as HARD_MAX_AGGREGATE_FONT_BYTES, aV as HARD_MAX_FONT_BYTES, aW as HARD_MAX_FONT_SOURCES, H as HeaderFooterStoryRecord, aX as LevelOverride, aY as LineSpacingRule, aZ as ListMarkerAlign, q as ListMarkerPictureRecord, a_ as ListMarkerRecord, a$ as ListSuffix, b0 as MAX_BORDER_SPACE_PT, b1 as MAX_BORDER_WIDTH_PT, b2 as MAX_DOCUMENT_SECTIONS, b3 as MAX_LVL_OVERRIDES, b4 as MAX_NUMBERING_DEFINITIONS, b5 as MAX_PARAGRAPH_SPACING_PT, b6 as MAX_SHAPING_CONTEXT, b7 as MAX_STYLE_DEFINITIONS, b8 as MAX_TABLE_BORDER_STROKES, b9 as MAX_TAB_POSITION_TWIPS, ba as MAX_TAB_STOPS, m as NormalizationPolicy, N as NoteAreaRecord, c as NoteStoryRecord, bb as NumDefinition, bc as NumberingPictureBullet, bd as PAGE_BORDER_SIDES, be as PARAGRAPH_BORDER_SIDES, bf as PageBorderDisplay, bg as PageBorderOffsetFrom, bh as PageBorderSide, bi as PageBorderStrokeRecord, bj as PageBorderZOrder, bk as PageRefCalibrationCell, bl as PageRefFieldProjection, bm as ParagraphAutoSpacingContext, bn as ParagraphBorderEdge, bo as ParagraphBorderSide, bp as ParagraphBorders, bq as ParagraphBottomBorderRecord, br as ParagraphIndent, bs as ParagraphLayoutInputs, bt as ParagraphLineSpacing, bu as ParagraphSpacing, bv as RefFieldSpec, bw as RefNoteParts, bx as ResolvedCellBorders, l as ResolvedFont, by as ResolvedPictureBullet, R as ResolvedRunStyle, bz as ResolvedTabStops, bA as ResolvedTableBorderEdge, bB as ResolvedTableBorderEdgeSegment, bC as ResolvedUnderline, bD as SINGLE_LINE_SPACING, bE as ScriptItem, bF as SectionBreakMarkRecord, bG as SectionBreakType, bH as SectionColumnDefinition, bI as SectionMargins, bJ as SectionPageNumbering, t as SectionProperties, bK as SemanticArtifactRootStoryKind, bL as SemanticArtifactStoryKind, bM as SemanticCommentArtifactRecord, bN as SemanticReviewArtifactOccurrence, bO as SemanticReviewArtifactOccurrenceGeometry, bP as SemanticReviewArtifactPosition, p as SemanticReviewArtifactRecord, bQ as SemanticReviewArtifactSource, bR as SemanticTrackedChangeArtifactRecord, bS as ShapeInput, bT as ShapedCluster, bU as ShapedFontSpan, bV as ShapedGlyph, bW as ShapedRunComparatorInputs, bX as ShapedVerticalMetrics, bY as ShapingContext, bZ as ShapingEnvironment, b_ as ShapingEnvironmentFingerprintInputs, j as ShapingEnvironmentInput, b$ as StyleDefinition, c0 as TAB_LEADER_GLYPH, c1 as TabAlignment, c2 as TabDestination, c3 as TabLeader, c4 as TabStop, c5 as TableBorderSideName, c6 as TableBorderStrokeRecord, i as TableCellFragmentRecord, c7 as TableFragmentRecord, h as TableRowFragmentRecord, c8 as TextArtFit, c9 as TextDirection, ca as TextOutline, cb as TextboxStoryFallbackReason, cc as TextboxStoryLayout, U as UnsupportedElement, e as UnsupportedElementLayout, f as UnsupportedElementRule, cd as UnsupportedScriptError, ce as VerticalAlign, cf as appliedSpaceBefore, cg as applyLineSpacing, ch as baselineShiftPtOf, ci as borderExtentPt, cj as borderWeight, ck as bottomBorderExtentPt, cl as boundedStructuralFontValidator, cm as buildNumberingIndex, cn as buildStyleCascadeTable, co as cascadeParagraphFormatting, cp as cascadeRunProperties, cq as cascadedBottomBorder, cr as cascadedParagraphBorders, cs as cascadedTabStops, ct as collapsedSpaceBefore, cu as createFontResourceSnapshot, cv as createShapedRun, cw as createShapingEnvironment, cx as createUnsupportedContentProjector, cy as defaultTabIntervalFromSettings, cz as displayText, cA as enumerateDocumentSections, cB as enumerateDocumentSectionsBounded, cC as fixedPoint, cD as fontRequestKey, cE as geometryOfSection, cF as glyphSizeFactorOf, cG as isValidStyleId, cH as itemizeScriptFontSlots, cI as layoutEquation, cJ as measureDisplayText, cK as nextTabDestination, cL as pageBordersFingerprint, cM as paragraphBorderExtentPt, cN as paragraphBorderStrokeWidthPt, cO as paragraphBorders, cP as paragraphBordersFingerprint, cQ as paragraphBreaksBefore, cR as paragraphContextualSpacing, cS as paragraphLineSpacing, cT as paragraphSectionNode, cU as paragraphSpacing, cV as paragraphTabStops, cW as parsePageBorders, cX as parsePageNumbering, cY as parseRefInstruction, cZ as parseSectionProperties, c_ as projectedSectionSourceIndexes, c$ as readBorderSide, d0 as readCellBorders, d1 as readNumPr, d2 as readSectionProperties, d3 as readTableBorders, d4 as resolveBorderConflict, d5 as resolveNumberingLevel, d6 as resolveParagraphLayoutInputs, d7 as resolveRunStyle, d8 as resolveStoryListItems, d9 as resolveStoryRefFields, da as resolveTableCellBorderGrid, db as runStylesEqual, dc as shapedRunComparatorInputs, dd as shapingEnvironmentFingerprint, de as shapingEnvironmentFingerprintInputs, df as styleForFontSlot, dg as tabAdvanceWidth, dh as tabStopsFingerprint, di as withDefaultTabInterval, dj as withNumberingStyleLinks, dk as withResolvedListItems } from './semantic-records-BvN-WWst.js';
|
|
16
16
|
export { F as FontShapingOptions } from './font-shaping-policy-BvpkrfxM.js';
|
|
17
|
-
export { C as CacheLookup, b as CacheMiss, c as CacheProvenance, e as LayoutEnvironmentShapedMeasurerOptions, f as LayoutFontConfiguration, g as LayoutFontSource, h as LayoutFontSubstitution, i as LayoutShapingConfigurationError, j as LayoutShapingEnvironment, L as LayoutShapingInstrumentation, a as LayoutShapingOptions, O as OperationSnapshot, k as OperationSnapshotField, l as OperationSnapshotGuard, P as PreparedLayoutFontConfiguration, R as ResolvedCache, m as ResourceDependencyProvenance, S as ShapedMeasurerOptions, n as captureOperationSnapshot, o as createLayoutShapedMeasurer, p as createLayoutShaping, q as createShapedMeasurer, d as disposeLayoutShaping, r as guardOperationSnapshot, s as layoutFontConfigurationFingerprint, t as prepareLayoutFontConfiguration } from './layout-shaping-
|
|
18
|
-
import { a as SemanticStoryKind, S as SemanticRootStoryKind, b as SemanticStoryVisit, T as TextboxOwnerRecord } from './semantic-record-queries-
|
|
19
|
-
export { c as SemanticDrawingLayer, d as SemanticDrawingVisit, e as StoryDrawingContext, f as StoryDrawingHost, g as StoryParagraphFragmentContext, h as contentControlsOfLayout, i as effectiveContentControlLock, j as forEachSemanticDrawing, k as forEachSemanticStory, l as forEachStoryParagraphFragment, m as fragmentsOfParagraph, n as lineAtPosition, o as linesOf, p as paragraphFragmentsOf, q as paragraphFragmentsOfBlocks, u as unionLayoutBoxes } from './semantic-record-queries-
|
|
20
|
-
import { aK as ImpactClass,
|
|
21
|
-
export { bo as CommentAnchor, bp as CommentPosition, C as CommentRecord, bi as CommentThreadState, b4 as DrawingAccessibility,
|
|
22
|
-
import { D as DocumentProperties, H as HeadlessDocumentView,
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
export { C as CacheLookup, b as CacheMiss, c as CacheProvenance, e as LayoutEnvironmentShapedMeasurerOptions, f as LayoutFontConfiguration, g as LayoutFontSource, h as LayoutFontSubstitution, i as LayoutShapingConfigurationError, j as LayoutShapingEnvironment, L as LayoutShapingInstrumentation, a as LayoutShapingOptions, O as OperationSnapshot, k as OperationSnapshotField, l as OperationSnapshotGuard, P as PreparedLayoutFontConfiguration, R as ResolvedCache, m as ResourceDependencyProvenance, S as ShapedMeasurerOptions, n as captureOperationSnapshot, o as createLayoutShapedMeasurer, p as createLayoutShaping, q as createShapedMeasurer, d as disposeLayoutShaping, r as guardOperationSnapshot, s as layoutFontConfigurationFingerprint, t as prepareLayoutFontConfiguration } from './layout-shaping-E5J4Z1Gf.js';
|
|
18
|
+
import { a as SemanticStoryKind, S as SemanticRootStoryKind, b as SemanticStoryVisit, T as TextboxOwnerRecord } from './semantic-record-queries-C0rJ3sB4.js';
|
|
19
|
+
export { c as SemanticDrawingLayer, d as SemanticDrawingVisit, e as StoryDrawingContext, f as StoryDrawingHost, g as StoryParagraphFragmentContext, h as contentControlsOfLayout, i as effectiveContentControlLock, j as forEachSemanticDrawing, k as forEachSemanticStory, l as forEachStoryParagraphFragment, m as fragmentsOfParagraph, n as lineAtPosition, o as linesOf, p as paragraphFragmentsOf, q as paragraphFragmentsOfBlocks, u as unionLayoutBoxes } from './semantic-record-queries-C0rJ3sB4.js';
|
|
20
|
+
import { aK as ImpactClass, a4 as OoxmlNode, az as OoxmlProperty, av as OoxmlElement, O as OoxmlPart, au as TreeDocOp, a5 as OoxmlPackage, bw as ContentControlKind, bx as ContentControlLevel, bz as ContentControlLock, bt as ContentControlDataBinding, a as ReviewItem } from './tree-op-types-C_S2niXW.js';
|
|
21
|
+
export { bo as CommentAnchor, bp as CommentPosition, C as CommentRecord, bi as CommentThreadState, b4 as DrawingAccessibility, a7 as DrawingHorizontalReferenceFrame, b5 as DrawingImageEffects, b2 as DrawingTransform, ab as DrawingVerticalReferenceFrame, ag as ImageWrapTarget, c as ReviewCommentItem, d as ReviewCustomItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, aT as SourceCrop, b3 as TableBorderStyle, eg as VectorShapeComponent, b6 as VectorShapeProjection, cZ as W15_NAMESPACE_URI, eh as activeReviewItem, du as firstReviewRange, e3 as reviewItemKey, ei as reviewItemPositionRank, e4 as reviewItemRanges, ej as reviewItemsAt, ek as reviewThreadRootOf } from './tree-op-types-C_S2niXW.js';
|
|
22
|
+
import { D as DocumentProperties, H as HeadlessDocumentView, s as relationshipTargetIn } from './headless-document-view-Bcz9_Qva.js';
|
|
23
|
+
import { q as RevisionAttribution, b as RevisionDisplayMode, p as RevisionAuthorFilter } from './revision-projection-Cn6rZJ7H.js';
|
|
24
|
+
export { s as DEFAULT_REVISION_DISPLAY_MODE, t as RevisionFilter, u as RevisionKind, v as formatRevisionOf, w as markRevisionRemovesMark, x as paragraphMarkFormatRevisionOf, y as paragraphMarkRevisionOf, z as paragraphMarkRevisionsOf, A as revisionAuthorFilter, B as revisionsAreDeletion, C as revisionsVisible, E as shownMarkRevision } from './revision-projection-Cn6rZJ7H.js';
|
|
25
|
+
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties } from './note-properties-Ds5R2_3F.js';
|
|
26
|
+
import { e as TreeModelChange, N as NoteKind, aK as noteTypeOf, F as FieldResultsMode } from './tree-package-store-CRHvMyNj.js';
|
|
27
|
+
export { M as MAX_SDT_NESTING, c as collectFlowBlocks, a as commentBodyText, b as commentInitials, j as contentControlContentChildren, i as isContentControl, f as isContentControlContent, p as paragraphOrderOfPart } from './review-paragraph-order-Dc17w_6v.js';
|
|
28
|
+
import { S as SemanticPosition, b as SelectionRect, a as SemanticSelection, C as CaretGeometry } from './semantic-interaction-CJoHLoOl.js';
|
|
29
|
+
export { c as CaretAtOptions, M as MoveCaretOptions, N as NavigationCommand, d as caretAt, e as caretStops, f as caretStopsForBlocks, g as compositionAnchor, h as contentControlsInLayout, i as deletedTextBoundaries, m as moveCaret, p as paragraphTextFromLayout, s as spansInSelection } from './semantic-interaction-CJoHLoOl.js';
|
|
30
|
+
export { C as CellSelection, D as DEFAULT_VERTICAL_WEIGHT, a as DrawingOverlayFrame, H as HitPoint, b as HitTestOptions, P as PlacedCell, S as SemanticHit, c as SemanticHitDrawing, T as TableCellAddress, d as TableCellContext, e as caretBoxOnLine, f as cellSelectionBetween, g as cellSelectionRects, h as cellSelectionText, i as contentControlAtPoint, j as findDrawingOverlayFrameInLayout, k as hitTestPage, l as hitTestSheet, m as isFurniturePoint, n as lineEndOffset, p as pageAtY, o as paragraphsInCells, s as spanOffsetX, q as spansInCells, t as tableContextAt } from './semantic-cell-selection-BaUR0iJ4.js';
|
|
31
|
+
import './editor-scope-B3L-1ALc.js';
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* The result of counting ONE list paragraph: the level that applied, the counter vector after it,
|
|
@@ -2579,7 +2580,7 @@ interface SemanticLayoutOptions {
|
|
|
2579
2580
|
readonly sectionFurniture?: readonly (PageFurniture | undefined)[];
|
|
2580
2581
|
/**
|
|
2581
2582
|
* `w:evenAndOddHeaders` from settings.xml. A section that restarts its page numbering then
|
|
2582
|
-
*
|
|
2583
|
+
* aligns its continued numbering with the required break or restart parity. When absent,
|
|
2583
2584
|
* layout reads the flag from the section furniture.
|
|
2584
2585
|
*/
|
|
2585
2586
|
readonly evenAndOddHeaders?: boolean;
|
|
@@ -2678,6 +2679,12 @@ interface SemanticLayoutOptions {
|
|
|
2678
2679
|
* @internal
|
|
2679
2680
|
*/
|
|
2680
2681
|
readonly pageBottomReservesFromPreviousPass?: boolean;
|
|
2682
|
+
/**
|
|
2683
|
+
* With a seed: each page reads its reserve where its content stood in the previous pass, and
|
|
2684
|
+
* the pass reports what it read (`takeReadReserves`); see `note-first-round.ts`.
|
|
2685
|
+
* @internal
|
|
2686
|
+
*/
|
|
2687
|
+
readonly pageBottomReservesFollowFlow?: boolean;
|
|
2681
2688
|
/** Derived note marks for body/note projection (provisional or final). */
|
|
2682
2689
|
readonly noteMarks?: NoteMarkContext;
|
|
2683
2690
|
/** Inline drawing projection for typed `w:drawing` / `wp:inline` nodes. */
|
package/dist/layout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{R as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,k as LayoutShapingConfigurationError,K as ResolvedCache,z as WORD_SEGMENTER_LOCALE,$ as anchorLineY,C as boundedFallbackWordSegments,I as captureOperationSnapshot,ia as cellSelectionBetween,ma as cellSelectionRects,na as cellSelectionText,_ 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,U as isCanvasMeasurementAvailable,x as isCumulativeGeometryTrustedFromLineOrigin,w as isGeometryTrustedCaretOffset,d as isHarfBuzzInitialized,A as isIntlWordSegmenterAvailable,v as isWholeGraphemeHorizontalBoundary,q as layoutFontConfigurationFingerprint,X as pageRefPageNumbersFromLayout,ga as pagesToMaterialize,ka as paragraphsInCells,Y as planRefFieldResultRefresh,o as prepareLayoutFontConfiguration,W as resolveDefaultSurfaceMeasurer,F as resolveDefaultWordBoundary,aa as reviewAnchorIndex,ba as reviewItemGeometry,a as roundFontUnitToFixedPoint,G as segmentWords,y as semanticHorizontalBoundaries,u as shapedHorizontalBoundaries,la as spansInCells,ra as tabLeaderPattern,oa as tableContextAt,V as tryCreateCanvasMeasurer,N as vectorShapeInkClip,H as wordSegmentsToGraphemeRecords}from'./chunk-
|
|
1
|
+
export{R as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,k as LayoutShapingConfigurationError,K as ResolvedCache,z as WORD_SEGMENTER_LOCALE,$ as anchorLineY,C as boundedFallbackWordSegments,I as captureOperationSnapshot,ia as cellSelectionBetween,ma as cellSelectionRects,na as cellSelectionText,_ 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,U as isCanvasMeasurementAvailable,x as isCumulativeGeometryTrustedFromLineOrigin,w as isGeometryTrustedCaretOffset,d as isHarfBuzzInitialized,A as isIntlWordSegmenterAvailable,v as isWholeGraphemeHorizontalBoundary,q as layoutFontConfigurationFingerprint,X as pageRefPageNumbersFromLayout,ga as pagesToMaterialize,ka as paragraphsInCells,Y as planRefFieldResultRefresh,o as prepareLayoutFontConfiguration,W as resolveDefaultSurfaceMeasurer,F as resolveDefaultWordBoundary,aa as reviewAnchorIndex,ba as reviewItemGeometry,a as roundFontUnitToFixedPoint,G as segmentWords,y as semanticHorizontalBoundaries,u as shapedHorizontalBoundaries,la as spansInCells,ra as tabLeaderPattern,oa as tableContextAt,V as tryCreateCanvasMeasurer,N as vectorShapeInkClip,H as wordSegmentsToGraphemeRecords}from'./chunk-SRVKFUFI.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';export{O as AUTO_PARAGRAPH_SPACING_PT,_d as AUTO_PREFERRED_WIDTH,$d as CELL_PAD,I as COMPOUND_BORDER_MIN_GAP_PT,H as COMPOUND_BORDER_MIN_STROKE_PT,ae as DEFAULT_CELL_MARGINS,ya as DEFAULT_PAGE_GEOMETRY,ab as DEFAULT_REVISION_DISPLAY_MODE,ca as DEFAULT_RUN_STYLE,Sc as DEFAULT_SECTION_PROPERTIES,yb as DEFAULT_TAB_INTERVAL_PT,xb as DEFAULT_TAB_INTERVAL_TWIPS,ge as DEFAULT_VERTICAL_WEIGHT,xc as EMPTY_NUMBERING_INDEX,Ab as EMPTY_TAB_STOPS,d as FontResolutionError,la as GRAPHEME_SEGMENTER_LOCALE,c as HARD_MAX_AGGREGATE_FONT_BYTES,a as HARD_MAX_FONT_BYTES,b as HARD_MAX_FONT_SOURCES,N as MAX_BORDER_SPACE_PT,M as MAX_BORDER_WIDTH_PT,Rc as MAX_DOCUMENT_SECTIONS,Qf as MAX_EACH_PAGE_MARK_CANDIDATES,uc as MAX_LVL_OVERRIDES,Sb as MAX_LVL_TEXT_LENGTH,Rb as MAX_MARKER_TEXT_LENGTH,xf as MAX_NOTES_LAID_OUT,yf as MAX_NOTE_FRAGMENTS,Pf as MAX_NOTE_OVERFLOW_PAGES,Of as MAX_NOTE_REFLOW_ATTEMPTS,tc as MAX_NUMBERING_DEFINITIONS,L as MAX_PARAGRAPH_SPACING_PT,o as MAX_SHAPING_CONTEXT,Pb as MAX_STYLE_BASED_ON_DEPTH,sd as MAX_STYLE_DEFINITIONS,Sd as MAX_TABLE_BORDER_STROKES,ce as MAX_TABLE_NESTING,ef as MAX_TABLE_ROW_FRAGMENTS,de as MAX_TABLE_ROW_HEIGHT_PT,wb as MAX_TAB_POSITION_TWIPS,vb as MAX_TAB_STOPS,Nc as PAGE_BORDER_SIDES,Q as PARAGRAPH_BORDER_SIDES,P as SINGLE_LINE_SPACING,zb as TAB_LEADER_GLYPH,ff as TablePaginationError,va as UnsupportedScriptError,ba as appliedSpaceBefore,U as applyLineSpacing,Vf as attachNotesToLayout,ha as baselineShiftPtOf,Zd as borderExtentPt,Wd as borderWeight,_ as bottomBorderExtentPt,l as boundedStructuralFontValidator,vc as buildNumberingIndex,Sf as buildPageRefIndex,td as buildStyleCascadeTable,ze as caretAt,qe as caretBoxOnLine,xe as caretStops,ye as caretStopsForBlocks,ud as cascadeParagraphFormatting,xd as cascadeRunProperties,wd as cascadedBottomBorder,X as cascadedParagraphBorders,Bb as cascadedTabStops,Tb as clampListValue,aa as collapsedSpaceBefore,Ee as compositionAnchor,J as computeDoubleBorderMetricsPt,Uf as computeFootnoteReserves,ne as contentControlAtPoint,we as contentControlAtSemantic,qf as contentControlHoldingParagraph,pf as contentControlRecordsInPart,Ae as contentControlsInLayout,La as contentControlsOfLayout,jf as createDocumentFurnitureSource,mf as createDocumentLinkProjectors,kf as createDocumentNotesInput,Xe as createDocumentStyleDependencies,nf as createFieldLinkRegistry,ka as createFixedMeasurer,m as createFontResourceSnapshot,_f as createLayoutSession,zc as createListCounterState,Te as createParagraphLayoutCache,u as createShapedRun,r as createShapingEnvironment,ob as createUnsupportedContentProjector,Ef as defaultNoteSeparatorRuleStyle,Eb as defaultTabIntervalFromSettings,Ce as deletedTextBoundaries,Kc as deriveNoteDisplayMarks,Lc as deriveNoteDisplayMarksResolved,ea as displayText,Ua as documentOrder,lf as documentRelationshipTargetIn,Rd as effectiveBorderSide,Na as effectiveContentControlLock,rb as emptyTocPlaceholderParagraphIds,sb as emptyTocSuppressedResultParagraphIds,Yc as enumerateDocumentSections,_c as enumerateDocumentSectionsBounded,Va as everyStoryOrder,$b as expandLvlText,Tf as filterRefsOnPage,re as findDrawingOverlayFrameInLayout,Bf as findSeparatorNote,n as fixedPoint,h as fontRequestKey,Ha as forEachSemanticDrawing,Fa as forEachSemanticStory,Ia as forEachStoryParagraphFragment,Ub as formatDecimal,Vb as formatDecimalZero,Zb as formatLowerLetter,Xb as formatLowerRoman,_b as formatNumFmt,oc as formatPageNumber,kb as formatRevisionOf,Yb as formatUpperLetter,Wb as formatUpperRoman,Rf as fragmentOwnsAtomOffset,Ja as fragmentsOfParagraph,$c as geometryOfSection,ia as glyphSizeFactorOf,oa as graphemeBoundaryEpoch,sa as graphemeCount,ua as graphemeOffsetToUtf16,ke as hitTestPage,ve as hitTestSemantic,me as hitTestSheet,na as intlGraphemeBoundary,ie as isFurniturePoint,ma as isIntlSegmenterAvailable,Ff as isMarkerOnlySeparatorNote,Lb as isValidStyleId,wa as itemizeScriptFontSlots,Je as keyedRangeRects,ld as layoutEquation,if as layoutHeaderFooterStory,Df as layoutNoteById,Gf as layoutNoteSeparator,Cf as layoutNoteStory,$f as layoutSemanticDocument,Ka as lineAtPosition,oe as lineEndOffset,Oa as lineSegments,Ca as linesOf,Ec as listMarkerBox,ib as markRevisionRemovesMark,fa as measureDisplayText,yc as mergeListIndent,De as moveCaret,Fb as nextTabDestination,Af as normalNotesOf,Mc as noteDisplayMarkMap,zf as noteLineIdPrefix,hd as noteMarkKey,If as noteSeparatorAreaBox,wf as noteSeparatorRuleBox,Dd as noteStoryBlocks,he as pageAtY,vf as pageBorderFrame,Pc as pageBordersFingerprint,Z as paragraphBorderExtentPt,Y as paragraphBorderStrokeWidthPt,W as paragraphBorders,$ as paragraphBordersFingerprint,K as paragraphBreaksBefore,V as paragraphContextualSpacing,Aa as paragraphFragmentsOf,Ba as paragraphFragmentsOfBlocks,Se as paragraphLayoutKey,T as paragraphLineSpacing,Ac as paragraphMarkDeleted,gb as paragraphMarkFormatRevisionOf,jb as paragraphMarkRevisionOf,fb as paragraphMarkRevisionsOf,Wc as paragraphSectionNode,C as paragraphShading,D as paragraphShadingBox,S as paragraphSpacing,Cb as paragraphTabStops,Be as paragraphTextFromLayout,jc as parseAutonumInstruction,Oc as parsePageBorders,Tc as parsePageNumbering,ic as parseRefInstruction,Uc as parseSectionProperties,Id as positionPastDeletion,id as projectedNoteMarkText,Zc as projectedSectionSourceIndexes,Wf as provisionalNoteMarks,Td as readBorderSide,Vd as readCellBorders,Gc as readNumPr,Xc as readSectionProperties,Ud as readTableBorders,ee as readTableStructure,ra as resetGraphemeBoundary,Xd as resolveBorderConflict,wc as resolveNumberingLevel,A as resolveOoxmlShadingFill,yd as resolveParagraphLayoutInputs,da as resolveRunStyle,Ic as resolveStoryListItems,cd as resolveStoryRefFields,z as resolveStrictHexFill,Yd as resolveTableCellBorderGrid,db as revisionAuthorFilter,Cc as revisionRemovesParagraph,lb as revisionsAreDeletion,eb as revisionsVisible,Kb as runBorderStrokesForLine,ga as runStylesEqual,pa as segmentGraphemes,Ge as selectionRects,qa as setGraphemeBoundary,B as shadingFillFromElement,v as shapedRunComparatorInputs,t as shapingEnvironmentFingerprint,s as shapingEnvironmentFingerprintInputs,hb as shownMarkRevision,pe as spanOffsetX,Fe as spansInSelection,Cd as storyBlocks,xa as styleForFontSlot,Hf as syntheticSeparatorBox,Gb as tabAdvanceWidth,Hb as tabStopsFingerprint,be as tableOriginX,qb as tocFieldChromeParagraphIds,Ma as unionLayoutBoxes,ta as utf16OffsetToGrapheme,kc as walkStoryParagraphs,Db as withDefaultTabInterval,Hc as withNumberingStyleLinks,Jc as withResolvedListItems,te as wordBoundary}from'./chunk-DDFHKQFU.js';import'./chunk-ACLR4DMK.js';import'./chunk-HDOXACHP.js';export{Xc as MAX_SDT_NESTING,Zk as MAX_TABLE_COLUMNS,mi as W15_NAMESPACE_URI,Pj as activeReviewItem,ad as collectFlowBlocks,Yj as commentBodyText,_j as commentInitials,$c as contentControlContentChildren,Lj as firstReviewRange,Yc as isContentControl,Zc as isContentControlContent,d as mapSymbolPuaText,qj as paragraphOrderOfPart,Fj as reviewItemKey,Mj as reviewItemPositionRank,Kj as reviewItemRanges,Nj as reviewItemsAt,Qj as reviewThreadRootOf,f as sha256FontBytes}from'./chunk-GWM3AKUD.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OoxmlPart,
|
|
1
|
+
import { O as OoxmlPart, a4 as OoxmlNode, a5 as OoxmlPackage } from './tree-op-types-C_S2niXW.js';
|
|
2
2
|
|
|
3
3
|
/** `w:pos` — where a section's footnotes are laid out. */
|
|
4
4
|
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
package/dist/output.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZGTIE3QJ_cjs=require('./chunk-ZGTIE3QJ.cjs');require('./chunk-6NVZNB7O.cjs'),require('./chunk-FDSL5OJU.cjs'),require('./chunk-TJHE5EET.cjs'),require('./chunk-65XBN67F.cjs'),require('./chunk-ZOZI27AW.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunkZGTIE3QJ_cjs.p}});Object.defineProperty(exports,"collectPageChangeBars",{enumerable:true,get:function(){return chunkZGTIE3QJ_cjs.j}});Object.defineProperty(exports,"lumTransfer",{enumerable:true,get:function(){return chunkZGTIE3QJ_cjs.k}});Object.defineProperty(exports,"observeUnsupportedElements",{enumerable:true,get:function(){return chunkZGTIE3QJ_cjs.a}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunkZGTIE3QJ_cjs.u}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunkZGTIE3QJ_cjs.s}});
|
package/dist/output.d.ts
CHANGED
|
@@ -8,13 +8,17 @@
|
|
|
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,
|
|
13
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import './
|
|
17
|
-
import './
|
|
11
|
+
import { R as ReviewAuthorInfo } from './semantic-paint-BPw_n0li.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-BPw_n0li.js';
|
|
13
|
+
import { S as SemanticLayout } from './semantic-records-BvN-WWst.js';
|
|
14
|
+
export { U as UnsupportedElement, e as UnsupportedElementLayout, f as UnsupportedElementRule } from './semantic-records-BvN-WWst.js';
|
|
15
|
+
export { U as UnsupportedElementHost, o as observeUnsupportedElements } from './unsupported-elements-CVos5cqe.js';
|
|
16
|
+
import './revision-projection-Cn6rZJ7H.js';
|
|
17
|
+
import './tree-op-types-C_S2niXW.js';
|
|
18
|
+
import './editor-scope-B3L-1ALc.js';
|
|
19
|
+
import './semantic-record-queries-C0rJ3sB4.js';
|
|
20
|
+
import './headless-document-view-Bcz9_Qva.js';
|
|
21
|
+
import './tree-package-store-CRHvMyNj.js';
|
|
18
22
|
|
|
19
23
|
/** A rectangle in page-content coordinates, on a named page. */
|
|
20
24
|
interface OverlayRect {
|
package/dist/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{p as DEFAULT_FIELD_SHADING,j as collectPageChangeBars,k as lumTransfer,a as observeUnsupportedElements,u as paintSelectionOverlay,s as paintSemanticLayout}from'./chunk-FS7CMYLT.js';import'./chunk-SRVKFUFI.js';import'./chunk-RIYSCEFQ.js';import'./chunk-DDFHKQFU.js';import'./chunk-ACLR4DMK.js';import'./chunk-HDOXACHP.js';import'./chunk-GWM3AKUD.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as HeaderFooterVariant, N as NoteKind } from './tree-package-store-
|
|
1
|
+
import { aE as AutomationTableMutation, Q as RevisionBatchResult, K as RevisionAuthorResult } from './tree-op-types-C_S2niXW.js';
|
|
2
|
+
import { c as HeaderFooterVariant, N as NoteKind } from './tree-package-store-CRHvMyNj.js';
|
|
3
3
|
|
|
4
4
|
/** Word's shape types, as `Word.ShapeType` spells them. */
|
|
5
5
|
type AutomationShapeType = 'TextBox' | 'GeometricShape' | 'Picture' | 'Group' | 'Canvas' | 'Unsupported';
|
|
@@ -162,6 +162,25 @@ type AutomationAuthoringOperation = {
|
|
|
162
162
|
readonly op: 'setFieldCode';
|
|
163
163
|
readonly field: AutomationHandle;
|
|
164
164
|
readonly code: string;
|
|
165
|
+
}
|
|
166
|
+
/** The text of a field's cached result, read as a range over the field reads it. */
|
|
167
|
+
| {
|
|
168
|
+
readonly op: 'getFieldResult';
|
|
169
|
+
readonly field: AutomationHandle;
|
|
170
|
+
readonly projection?: AutomationTextProjection;
|
|
171
|
+
}
|
|
172
|
+
/** Replace a field's cached result with plain text. The instruction never changes. */
|
|
173
|
+
| {
|
|
174
|
+
readonly op: 'setFieldResult';
|
|
175
|
+
readonly field: AutomationHandle;
|
|
176
|
+
readonly text: string;
|
|
177
|
+
}
|
|
178
|
+
/** Insert the one equation a Flat OPC package holds. See `equation-snippet.ts`. */
|
|
179
|
+
| {
|
|
180
|
+
readonly op: 'insertOoxml';
|
|
181
|
+
readonly span: AutomationSpanRef;
|
|
182
|
+
readonly location: 'Before' | 'After' | 'Start' | 'End' | 'Replace';
|
|
183
|
+
readonly ooxml: string;
|
|
165
184
|
} | {
|
|
166
185
|
readonly op: 'insertField';
|
|
167
186
|
readonly span: AutomationSpanRef;
|
|
@@ -189,6 +208,15 @@ type AutomationAuthoringOperation = {
|
|
|
189
208
|
readonly table: AutomationHandle;
|
|
190
209
|
readonly rowIndex: number;
|
|
191
210
|
readonly cellIndex: number;
|
|
211
|
+
}
|
|
212
|
+
/** The cell a merge of this rectangle merges into, read before the merge applies. */
|
|
213
|
+
| {
|
|
214
|
+
readonly op: 'getMergedTableCell';
|
|
215
|
+
readonly table: AutomationHandle;
|
|
216
|
+
readonly topRow: number;
|
|
217
|
+
readonly firstCell: number;
|
|
218
|
+
readonly bottomRow: number;
|
|
219
|
+
readonly lastCell: number;
|
|
192
220
|
} | {
|
|
193
221
|
readonly op: 'getTableCellProperties' | 'getTableCellBody';
|
|
194
222
|
readonly cell: AutomationHandle;
|
|
@@ -199,6 +227,8 @@ type AutomationAuthoringOperation = {
|
|
|
199
227
|
kind: 'cell';
|
|
200
228
|
} | {
|
|
201
229
|
kind: 'insertRows';
|
|
230
|
+
} | {
|
|
231
|
+
kind: 'splitCell';
|
|
202
232
|
}>;
|
|
203
233
|
} | {
|
|
204
234
|
readonly op: 'updateTableCell';
|
|
@@ -208,6 +238,13 @@ type AutomationAuthoringOperation = {
|
|
|
208
238
|
} | {
|
|
209
239
|
kind: 'insertRows';
|
|
210
240
|
}>, 'kind' | 'cellId'>;
|
|
241
|
+
}
|
|
242
|
+
/** Split one cell into `rowCount` by `columnCount` cells. */
|
|
243
|
+
| {
|
|
244
|
+
readonly op: 'splitTableCell';
|
|
245
|
+
readonly cell: AutomationHandle;
|
|
246
|
+
readonly rowCount: number;
|
|
247
|
+
readonly columnCount: number;
|
|
211
248
|
} | {
|
|
212
249
|
readonly op: 'insertTable';
|
|
213
250
|
readonly span: AutomationSpanRef;
|
|
@@ -344,16 +381,20 @@ type AutomationSpanRef = {
|
|
|
344
381
|
readonly body: AutomationHandle;
|
|
345
382
|
};
|
|
346
383
|
/**
|
|
347
|
-
* Where to look for content controls: a whole story,
|
|
384
|
+
* Where to look for content controls: a whole story, inside one control, or across a span.
|
|
348
385
|
*
|
|
349
386
|
* A control's own scope is how nesting is expressed. Listing every control of a story flat
|
|
350
387
|
* would answer a form field and the group wrapping it as siblings, which is not what either of
|
|
351
|
-
* them is.
|
|
388
|
+
* them is. A SPAN scope is the exception on purpose: it answers every control the span
|
|
389
|
+
* overlaps, at any depth, including a control that holds the whole span, because a caller asks
|
|
390
|
+
* a range for its controls to learn what an edit through it would touch.
|
|
352
391
|
*/
|
|
353
392
|
type AutomationContentControlScope = {
|
|
354
393
|
readonly body: AutomationHandle;
|
|
355
394
|
} | {
|
|
356
395
|
readonly contentControl: AutomationHandle;
|
|
396
|
+
} | {
|
|
397
|
+
readonly span: AutomationSpanRef;
|
|
357
398
|
};
|
|
358
399
|
/** The value a control accepts, by what kind of control it is. */
|
|
359
400
|
type AutomationContentControlValue = {
|
|
@@ -496,6 +537,35 @@ type AutomationOperation = AutomationAuthoringOperation | {
|
|
|
496
537
|
readonly span: AutomationSpanRef;
|
|
497
538
|
readonly projection?: AutomationTextProjection;
|
|
498
539
|
}
|
|
540
|
+
/**
|
|
541
|
+
* A span split into ranges that each end after one of `endingMarks`, or at a paragraph end.
|
|
542
|
+
*
|
|
543
|
+
* Boundaries come from the model text, so a field, an equation, or another atom is never
|
|
544
|
+
* split. `trimSpacing` removes spaces, tabs, and column breaks from each range's edges and
|
|
545
|
+
* drops a range left empty. A range the projection shows no character of is not answered.
|
|
546
|
+
*/
|
|
547
|
+
| {
|
|
548
|
+
readonly op: 'getTextRanges';
|
|
549
|
+
readonly scope: AutomationSpanRef;
|
|
550
|
+
readonly endingMarks: readonly string[];
|
|
551
|
+
readonly trimSpacing?: boolean;
|
|
552
|
+
readonly projection?: AutomationTextProjection;
|
|
553
|
+
}
|
|
554
|
+
/** The smallest span covering both spans. Both must be in one story. */
|
|
555
|
+
| {
|
|
556
|
+
readonly op: 'expandSpan';
|
|
557
|
+
readonly span: AutomationSpanRef;
|
|
558
|
+
readonly to: AutomationSpanRef;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* A span's text as if every pending revision were accepted (`current`) or rejected
|
|
562
|
+
* (`original`), with a carriage return at each paragraph mark that view keeps.
|
|
563
|
+
*/
|
|
564
|
+
| {
|
|
565
|
+
readonly op: 'getReviewedText';
|
|
566
|
+
readonly span: AutomationSpanRef;
|
|
567
|
+
readonly version: 'original' | 'current';
|
|
568
|
+
}
|
|
499
569
|
/**
|
|
500
570
|
* A paragraph's own identity as the DOCUMENT writes it (`w14:paraId`).
|
|
501
571
|
*
|
|
@@ -1740,4 +1810,4 @@ interface AutomationHost {
|
|
|
1740
1810
|
dispose(): void;
|
|
1741
1811
|
}
|
|
1742
1812
|
|
|
1743
|
-
export type { AutomationOperation as A,
|
|
1813
|
+
export type { AutomationOperation as A, AutomationOperationKind as B, AutomationOperationResult as C, AutomationPageOrientation as D, AutomationPageSetupRead as E, AutomationPageSetupWrite as F, AutomationParagraphFormatRead as G, AutomationParagraphFormatWrite as H, AutomationParagraphRef as I, AutomationPoint as J, AutomationReadingOrder as K, AutomationSaveResult as L, AutomationSearchOptions as M, AutomationSelectionMode as N, AutomationShapeRead as O, AutomationShapeType as P, AutomationSpan as Q, AutomationSpanRef as R, AutomationTextProjection as S, AutomationUnsubscribe as T, AutomationValue as U, AutomationCapabilities as a, AutomationHost as b, AutomationAlignment as c, AutomationAuthoringOperation as d, AutomationBatchRequest as e, AutomationBatchResponse as f, AutomationChangeEvent as g, AutomationContentControlLock as h, AutomationContentControlRangeLocation as i, AutomationContentControlScope as j, AutomationContentControlSubtype as k, AutomationContentControlValue as l, AutomationCustomNodePayload as m, AutomationEndpoint as n, AutomationError as o, AutomationErrorCode as p, AutomationFontRead as q, AutomationFontWrite as r, AutomationHandle as s, AutomationHandleRef as t, AutomationInlinePictureRead as u, AutomationInlinePictureWrite as v, AutomationListBullet as w, AutomationListLevelFormat as x, AutomationListNumbering as y, AutomationObjectKind as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-C_S2niXW.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;
|