@stll/docx-core 0.39.1 → 0.40.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/archive-yBR7X-Qc.js +456 -0
- package/dist/{document-BkGU2ctn.d.ts → document-BWDHON3T.d.ts} +1 -47
- package/dist/{document-oU-dz9zs.js → document-NtScxyHH.js} +18 -36
- package/dist/docx_kernel_bg.wasm +0 -0
- package/dist/errors-Dm3jsb5q.d.ts +57 -0
- package/dist/format-DXPXB02u.js +378 -0
- package/dist/{href-2XSCK-T8.js → href-ogmJmncc.js} +2 -4
- package/dist/index.d.ts +1 -34
- package/dist/index.js +125 -228
- package/dist/model/document.d.ts +2 -2
- package/dist/model/document.js +1 -1
- package/dist/ops/documentOps.d.ts +1 -61
- package/dist/ops/documentOps.js +55 -108
- package/dist/{preservedMarkup-G8XjWhs2.d.ts → preservedMarkup-9L4lbGnE.d.ts} +0 -2
- package/dist/projection.d.ts +0 -4
- package/dist/projection.js +2 -4
- package/dist/schema/sequenceChildren.d.ts +1 -5
- package/dist/schema/sequenceChildren.js +1 -1
- package/dist/{sequenceChildren-9SUK1Tm1.js → sequenceChildren-CrMcryEF.js} +2 -4
- package/dist/zip/archive.d.ts +114 -0
- package/dist/zip/archive.js +3 -0
- package/dist/zip/stream.d.ts +30 -0
- package/dist/zip/stream.js +117 -0
- package/package.json +10 -6
- package/dist/zip/writeZipPart.d.ts +0 -12
- package/dist/zip/writeZipPart.js +0 -17
package/dist/model/document.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as Column, $i as UnrecognisedThemeColor, $n as TableContentCarrier, $r as TableCellBorders, $t as MoveFromRangeStart, A as ThemeColorScheme, Ai as headingLevelOf, An as SdtEndProperties, Ar as PRESET_LINE_DASH_VALS, At as Hyperlink, B as finalizeParagraphFormatting, Bi as TEXT_DIRECTIONS, Bn as ShapeFill, Br as ListRendering, Bt as ImageWrap, C as Relationship, Ci as paragraphNumberingSlots, Cn as PropertyChangeInfo, Cr as PreviewDescriptor, Ct as FooterReference, D as StyleDefinitions, Di as BODY_TEXT_OUTLINE_LEVEL, Dn as Run, Dr as isPresetLineDashVal, Dt as HeaderFooter, E as Style, Ei as sameStatedParagraphNumbering, En as ReviewCarrier, Er as UnrecognisedPresetLineDash, Et as FootnoteProperties, F as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, Fi as NumberFormat, Fn as SectionPropertyChange, Fr as LevelLegacy, Ft as ImageFrameLocks, G as BidiControl, Gi as TextDirection, Gn as SimpleField, Gr as EmphasisMark, Gt as InstrTextContent, H as setDocumentBodyComments, Hi as TEXT_DIRECTION_FLOW_BY_TOKEN, Hn as ShapeOutline, Hr as NumberingInstance, Ht as InlineSdt, I as PARSE_WARNING_CODES, Ii as PARAGRAPH_ALIGNMENTS, In as SectionStart, Ir as LevelOverride, It as ImagePadding, J as BlockSdt, Ji as ColorValue, Jn as TabContent, Jr as ParagraphFormatting, Jt as MarkupRangeMarker, K as BlockContent, Ki as TextDirectionFlow, Kn as SoftHyphenContent, Kr as FloatingTableProperties, Kt as LineNumberRestart, L as ParseWarning, Li as ParagraphAlignment, Ln as Shape, Lr as LevelSuffix, Lt as ImagePosition, M as ThemeFontScheme, Mi as outlineLevelFromStatedValue, Mn as SdtType, Mr as AbstractNumbering, Mt as Image, N as IMPORTED_ID_COLLISION_KINDS, Ni as outlineLevelStatedValue, Nn as Section, Nr as COUNTER_FORMATS, Nt as ImageCrop, O as StyleType, Oi as HeadingOutlineLevel, On as RunContent, Or as presetLineDashFrom, Ot as HeaderFooterType, P as ImportedIdCollisionKind, Pi as NUMBER_FORMATS, Pn as SectionProperties, Pr as CounterFormat, Pt as ImageDocPrLink, Q as BreakContent, Qi as ThemeColorValue, Qn as TableCellPropertyChange, Qr as TableBorders, Qt as MoveFromRangeEnd, R as ParseWarningCode, Ri as TABLE_ALIGNMENTS, Rn as ShapeAlternateContent, Rr as ListLevel, Rt as ImageSize, S as MediaFile, Si as paragraphNumberingReferenceId, Sn as PropertyChange, Sr as relationshipIdOf, St as FoldedListNumber, T as RelationshipType, Ti as sameEffectiveParagraphNumbering, Tn as REVIEW_CARRIERS, Tr as PresetLineDashValue, Tt as FootnotePosition, U as getSingularRunPropertyChange, Ui as TabStopAlignment, Un as ShapeTextBody, Ur as CellMargins, Ut as InlineWrapper, V as isCanonicallyEmptyParagraphFormatting, Vi as TEXT_DIRECTION_FLOWS, Vn as ShapeGeometryAdjustment, Vr as NumberingDefinitions, Vt as ImageWrapPolygon, W as BIDI_CONTROLS, Wi as TableAlignment, Wn as ShapeType, Wr as ConditionalFormatStyle, Wt as Insertion, X as BookmarkRangeMarker, Xi as SCHEME_COLOR_VALUE_BY_THEME_COLOR, Xn as TableCell, Xr as TabLeader, Xt as MoveBookmarkMarker, Y as BookmarkEnd, Yi as ShadingProperties, Yn as Table, Yr as SpacingExplicit, Yt as MathEquation, Z as BookmarkStart, Zi as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Zn as TableCellBlock, Zr as TabStop, Zt as MoveFrom, _ as DocDefaults, _a as statesNoBorder, _i as isNumberingReference, _n as PositionalTab, _r as WrapPolygonPoint, _t as EndnotePosition, a as DocumentSettings, aa as themeColorToken, ai as TablePropertyExceptionFormatting, an as NoteMarkerContent, ar as TableRowPropertyChange, at as DRAWING_RAW_XML_MODES, b as FontInfo, bi as paragraphNumberingLevel, bn as PreservedInline, br as RelationshipId, bt as FieldCharContent, c as NumberingLevelEntry, ca as THEME_COLORS, ci as TextEffect, cn as PARAGRAPH_MARK_CHANGE_KINDS, cr as TextContent, ct as DocumentBackground, d as numberingInstanceResolves, da as UnrecognisedBorderStyle, di as NO_NUMBERING_NUM_ID, dn as Paragraph, dr as TrackedRunChange, dt as DrawingAnchor, ea as isSchemeColorValue, ei as TableCellFormatting, en as MoveTo, er as TableCustomXmlWrapper, et as Comment, f as numberingLevelEntries, fa as borderStyleFrom, fi as NO_PARAGRAPH_NUMBERING, fn as ParagraphContent, fr as TrackedRunContent, ft as DrawingContent, g as ExhaustiveFields, ga as isBorderStyle, gi as ResolvedParagraphNumbering, gn as PictureWatermark, gr as WrapDistances, gt as Endnote, h as isNumberingLevel, ha as isBorderNone, hi as ParagraphNumberingSlots, hn as ParagraphPropertyChange, hr as WrapDistanceSlots, ht as EffectExtentSlots, i as Document, ia as themeColorSlot, ii as TableMeasurement, in as NonVisualDrawingNames, ir as TableRow, it as ComplexField, j as ThemeFont, ji as headingOutlineLevel, jn as SdtProperties, jr as PresetLineDashVal, k as Theme, ki as OutlineLevel, kn as RunPropertyChange, kr as presetLineDashToken, kt as HeaderReference, l as NumberingLevelResolution, la as ThemeColor, li as TextFormatting, ln as PROPERTY_REVISION_KINDS, lr as TextWatermark, lt as DocumentBackgroundDrawing, m as resolveNumberingLevel, ma as isBorderNil, mi as ParagraphNumberingReference, mn as ParagraphMarkChangeKind, mr as Watermark, mt as DrawingRawXmlMode, n as DEFAULT_TAB_STOP_TWIPS, na as knownThemeColor, ni as TableGridChange, nn as MoveToRangeStart, nr as TablePropertyChange, nt as CommentRangeStart, o as DocxConformanceClass, oa as SchemeColorSlot, oi as TableRowFormatting, on as NoteNumberRestart, or as TableStructuralChangeInfo, ot as Deletion, p as numberingLevelHasMarkerSlot, pa as borderStyleToken, pi as ParagraphNumberingOverride, pn as ParagraphMarkChange, pr as VerticalAlign, pt as DrawingGroupChild, q as BlockCustomXml, qi as BorderSpec, qn as SymbolContent, qr as LineSpacingRule, qt as MAX_REVISION_ID, r as DOCX_CONFORMANCE_CLASSES, ra as readThemeColor, ri as TableLook, rn as NoBreakHyphenContent, rr as TablePropertyExceptionChange, rt as CommentReference, s as DocxPackage, sa as SchemeColorValue, si as TableWidthType, sn as NoteReferenceContent, sr as TextBox, st as DisplacedByCustomXml, t as COMMENT_PART_RELATIONSHIPS, ta as isThemeColor, ti as TableFormatting, tn as MoveToRangeEnd, tr as TablePreservedMarkup, tt as CommentRangeEnd, u as levelShowsMarker, ua as BorderStyleValue, ui as UnderlineStyle, un as PageOrientation, ur as TrackedChangeInfo, ut as DocumentBody, v as EmbeddedFontRef, va as BORDER_STYLES, vi as mergeParagraphNumbering, vn as PositionedBookmarkMarker, vr as isOoxmlSymbolCharacter, vt as EndnoteProperties, w as RelationshipMap, wi as resolveParagraphNumbering, wn as PropertyRevisionKind, wr as PreviewShape, wt as Footnote, x as FontTable, xi as paragraphNumberingReference, xn as PreservedXmlContent, xr as mintRelationshipId, xt as FieldType, y as FontCharset, ya as BorderStyle, yi as paragraphNumberingFromSlots, yn as PreservedBlock, yr as normalizeRevisionId, yt as Field, z as ParseWarningLocation, zi as TAB_STOP_ALIGNMENTS, zn as ShapeContent, zr as ListMarkerFormatting, zt as ImageTransform } from "../document-
|
|
2
|
-
import { n as PreservedChild, r as PreservedMarkup, t as PreservedAttribute } from "../preservedMarkup-
|
|
1
|
+
import { $ as Column, $i as UnrecognisedThemeColor, $n as TableContentCarrier, $r as TableCellBorders, $t as MoveFromRangeStart, A as ThemeColorScheme, Ai as headingLevelOf, An as SdtEndProperties, Ar as PRESET_LINE_DASH_VALS, At as Hyperlink, B as finalizeParagraphFormatting, Bi as TEXT_DIRECTIONS, Bn as ShapeFill, Br as ListRendering, Bt as ImageWrap, C as Relationship, Ci as paragraphNumberingSlots, Cn as PropertyChangeInfo, Cr as PreviewDescriptor, Ct as FooterReference, D as StyleDefinitions, Di as BODY_TEXT_OUTLINE_LEVEL, Dn as Run, Dr as isPresetLineDashVal, Dt as HeaderFooter, E as Style, Ei as sameStatedParagraphNumbering, En as ReviewCarrier, Er as UnrecognisedPresetLineDash, Et as FootnoteProperties, F as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, Fi as NumberFormat, Fn as SectionPropertyChange, Fr as LevelLegacy, Ft as ImageFrameLocks, G as BidiControl, Gi as TextDirection, Gn as SimpleField, Gr as EmphasisMark, Gt as InstrTextContent, H as setDocumentBodyComments, Hi as TEXT_DIRECTION_FLOW_BY_TOKEN, Hn as ShapeOutline, Hr as NumberingInstance, Ht as InlineSdt, I as PARSE_WARNING_CODES, Ii as PARAGRAPH_ALIGNMENTS, In as SectionStart, Ir as LevelOverride, It as ImagePadding, J as BlockSdt, Ji as ColorValue, Jn as TabContent, Jr as ParagraphFormatting, Jt as MarkupRangeMarker, K as BlockContent, Ki as TextDirectionFlow, Kn as SoftHyphenContent, Kr as FloatingTableProperties, Kt as LineNumberRestart, L as ParseWarning, Li as ParagraphAlignment, Ln as Shape, Lr as LevelSuffix, Lt as ImagePosition, M as ThemeFontScheme, Mi as outlineLevelFromStatedValue, Mn as SdtType, Mr as AbstractNumbering, Mt as Image, N as IMPORTED_ID_COLLISION_KINDS, Ni as outlineLevelStatedValue, Nn as Section, Nr as COUNTER_FORMATS, Nt as ImageCrop, O as StyleType, Oi as HeadingOutlineLevel, On as RunContent, Or as presetLineDashFrom, Ot as HeaderFooterType, P as ImportedIdCollisionKind, Pi as NUMBER_FORMATS, Pn as SectionProperties, Pr as CounterFormat, Pt as ImageDocPrLink, Q as BreakContent, Qi as ThemeColorValue, Qn as TableCellPropertyChange, Qr as TableBorders, Qt as MoveFromRangeEnd, R as ParseWarningCode, Ri as TABLE_ALIGNMENTS, Rn as ShapeAlternateContent, Rr as ListLevel, Rt as ImageSize, S as MediaFile, Si as paragraphNumberingReferenceId, Sn as PropertyChange, Sr as relationshipIdOf, St as FoldedListNumber, T as RelationshipType, Ti as sameEffectiveParagraphNumbering, Tn as REVIEW_CARRIERS, Tr as PresetLineDashValue, Tt as FootnotePosition, U as getSingularRunPropertyChange, Ui as TabStopAlignment, Un as ShapeTextBody, Ur as CellMargins, Ut as InlineWrapper, V as isCanonicallyEmptyParagraphFormatting, Vi as TEXT_DIRECTION_FLOWS, Vn as ShapeGeometryAdjustment, Vr as NumberingDefinitions, Vt as ImageWrapPolygon, W as BIDI_CONTROLS, Wi as TableAlignment, Wn as ShapeType, Wr as ConditionalFormatStyle, Wt as Insertion, X as BookmarkRangeMarker, Xi as SCHEME_COLOR_VALUE_BY_THEME_COLOR, Xn as TableCell, Xr as TabLeader, Xt as MoveBookmarkMarker, Y as BookmarkEnd, Yi as ShadingProperties, Yn as Table, Yr as SpacingExplicit, Yt as MathEquation, Z as BookmarkStart, Zi as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Zn as TableCellBlock, Zr as TabStop, Zt as MoveFrom, _ as DocDefaults, _a as statesNoBorder, _i as isNumberingReference, _n as PositionalTab, _r as WrapPolygonPoint, _t as EndnotePosition, a as DocumentSettings, aa as themeColorToken, ai as TablePropertyExceptionFormatting, an as NoteMarkerContent, ar as TableRowPropertyChange, at as DRAWING_RAW_XML_MODES, b as FontInfo, bi as paragraphNumberingLevel, bn as PreservedInline, br as RelationshipId, bt as FieldCharContent, c as NumberingLevelEntry, ca as THEME_COLORS, ci as TextEffect, cn as PARAGRAPH_MARK_CHANGE_KINDS, cr as TextContent, ct as DocumentBackground, d as numberingInstanceResolves, da as UnrecognisedBorderStyle, di as NO_NUMBERING_NUM_ID, dn as Paragraph, dr as TrackedRunChange, dt as DrawingAnchor, ea as isSchemeColorValue, ei as TableCellFormatting, en as MoveTo, er as TableCustomXmlWrapper, et as Comment, f as numberingLevelEntries, fa as borderStyleFrom, fi as NO_PARAGRAPH_NUMBERING, fn as ParagraphContent, fr as TrackedRunContent, ft as DrawingContent, g as ExhaustiveFields, ga as isBorderStyle, gi as ResolvedParagraphNumbering, gn as PictureWatermark, gr as WrapDistances, gt as Endnote, h as isNumberingLevel, ha as isBorderNone, hi as ParagraphNumberingSlots, hn as ParagraphPropertyChange, hr as WrapDistanceSlots, ht as EffectExtentSlots, i as Document, ia as themeColorSlot, ii as TableMeasurement, in as NonVisualDrawingNames, ir as TableRow, it as ComplexField, j as ThemeFont, ji as headingOutlineLevel, jn as SdtProperties, jr as PresetLineDashVal, k as Theme, ki as OutlineLevel, kn as RunPropertyChange, kr as presetLineDashToken, kt as HeaderReference, l as NumberingLevelResolution, la as ThemeColor, li as TextFormatting, ln as PROPERTY_REVISION_KINDS, lr as TextWatermark, lt as DocumentBackgroundDrawing, m as resolveNumberingLevel, ma as isBorderNil, mi as ParagraphNumberingReference, mn as ParagraphMarkChangeKind, mr as Watermark, mt as DrawingRawXmlMode, n as DEFAULT_TAB_STOP_TWIPS, na as knownThemeColor, ni as TableGridChange, nn as MoveToRangeStart, nr as TablePropertyChange, nt as CommentRangeStart, o as DocxConformanceClass, oa as SchemeColorSlot, oi as TableRowFormatting, on as NoteNumberRestart, or as TableStructuralChangeInfo, ot as Deletion, p as numberingLevelHasMarkerSlot, pa as borderStyleToken, pi as ParagraphNumberingOverride, pn as ParagraphMarkChange, pr as VerticalAlign, pt as DrawingGroupChild, q as BlockCustomXml, qi as BorderSpec, qn as SymbolContent, qr as LineSpacingRule, qt as MAX_REVISION_ID, r as DOCX_CONFORMANCE_CLASSES, ra as readThemeColor, ri as TableLook, rn as NoBreakHyphenContent, rr as TablePropertyExceptionChange, rt as CommentReference, s as DocxPackage, sa as SchemeColorValue, si as TableWidthType, sn as NoteReferenceContent, sr as TextBox, st as DisplacedByCustomXml, t as COMMENT_PART_RELATIONSHIPS, ta as isThemeColor, ti as TableFormatting, tn as MoveToRangeEnd, tr as TablePreservedMarkup, tt as CommentRangeEnd, u as levelShowsMarker, ua as BorderStyleValue, ui as UnderlineStyle, un as PageOrientation, ur as TrackedChangeInfo, ut as DocumentBody, v as EmbeddedFontRef, va as BORDER_STYLES, vi as mergeParagraphNumbering, vn as PositionedBookmarkMarker, vr as isOoxmlSymbolCharacter, vt as EndnoteProperties, w as RelationshipMap, wi as resolveParagraphNumbering, wn as PropertyRevisionKind, wr as PreviewShape, wt as Footnote, x as FontTable, xi as paragraphNumberingReference, xn as PreservedXmlContent, xr as mintRelationshipId, xt as FieldType, y as FontCharset, ya as BorderStyle, yi as paragraphNumberingFromSlots, yn as PreservedBlock, yr as normalizeRevisionId, yt as Field, z as ParseWarningLocation, zi as TAB_STOP_ALIGNMENTS, zn as ShapeContent, zr as ListMarkerFormatting, zt as ImageTransform } from "../document-BWDHON3T.js";
|
|
2
|
+
import { n as PreservedChild, r as PreservedMarkup, t as PreservedAttribute } from "../preservedMarkup-9L4lbGnE.js";
|
|
3
3
|
export { type AbstractNumbering, BIDI_CONTROLS, BODY_TEXT_OUTLINE_LEVEL, BORDER_STYLES, type BidiControl, type BlockContent, type BlockCustomXml, type BlockSdt, type BookmarkEnd, type BookmarkRangeMarker, type BookmarkStart, type BorderSpec, type BorderStyle, type BorderStyleValue, type BreakContent, COMMENT_PART_RELATIONSHIPS, COUNTER_FORMATS, type CellMargins, type ColorValue, type Column, type Comment, type CommentRangeEnd, type CommentRangeStart, type CommentReference, type ComplexField, type ConditionalFormatStyle, type CounterFormat, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, type Deletion, type DisplacedByCustomXml, type DocDefaults, Document, type DocumentBackground, type DocumentBackgroundDrawing, type DocumentBody, DocumentSettings, DocxConformanceClass, DocxPackage, type DrawingAnchor, type DrawingContent, type DrawingGroupChild, type DrawingRawXmlMode, type EffectExtentSlots, type EmbeddedFontRef, type EmphasisMark, type Endnote, type EndnotePosition, type EndnoteProperties, type ExhaustiveFields, type Field, type FieldCharContent, type FieldType, type FloatingTableProperties, type FoldedListNumber, type FontCharset, type FontInfo, type FontTable, type FooterReference, type Footnote, type FootnotePosition, type FootnoteProperties, type HeaderFooter, type HeaderFooterType, type HeaderReference, type HeadingOutlineLevel, type Hyperlink, IMPORTED_ID_COLLISION_KINDS, type Image, type ImageCrop, type ImageDocPrLink, type ImageFrameLocks, type ImagePadding, type ImagePosition, type ImageSize, type ImageTransform, type ImageWrap, type ImageWrapPolygon, type ImportedIdCollisionKind, type InlineSdt, type InlineWrapper, type Insertion, type InstrTextContent, type LevelLegacy, type LevelOverride, type LevelSuffix, type LineNumberRestart, type LineSpacingRule, type ListLevel, type ListMarkerFormatting, type ListRendering, MAX_RETAINED_PARSE_WARNINGS_PER_CODE, MAX_REVISION_ID, type MarkupRangeMarker, type MathEquation, type MediaFile, type MoveBookmarkMarker, type MoveFrom, type MoveFromRangeEnd, type MoveFromRangeStart, type MoveTo, type MoveToRangeEnd, type MoveToRangeStart, NO_NUMBERING_NUM_ID, NO_PARAGRAPH_NUMBERING, NUMBER_FORMATS, type NoBreakHyphenContent, type NonVisualDrawingNames, type NoteMarkerContent, type NoteNumberRestart, type NoteReferenceContent, type NumberFormat, type NumberingDefinitions, type NumberingInstance, type NumberingLevelEntry, type NumberingLevelResolution, type OutlineLevel, PARAGRAPH_ALIGNMENTS, PARAGRAPH_MARK_CHANGE_KINDS, PARSE_WARNING_CODES, PRESET_LINE_DASH_VALS, PROPERTY_REVISION_KINDS, type PageOrientation, type Paragraph, type ParagraphAlignment, type ParagraphContent, type ParagraphFormatting, type ParagraphMarkChange, type ParagraphMarkChangeKind, type ParagraphNumberingOverride, type ParagraphNumberingReference, type ParagraphNumberingSlots, type ParagraphPropertyChange, type ParseWarning, type ParseWarningCode, type ParseWarningLocation, type PictureWatermark, type PositionalTab, type PositionedBookmarkMarker, type PreservedAttribute, type PreservedBlock, type PreservedChild, type PreservedInline, type PreservedMarkup, type PreservedXmlContent, type PresetLineDashVal, type PresetLineDashValue, type PreviewDescriptor, type PreviewShape, type PropertyChange, type PropertyChangeInfo, type PropertyRevisionKind, REVIEW_CARRIERS, type Relationship, type RelationshipId, type RelationshipMap, type RelationshipType, type ResolvedParagraphNumbering, type ReviewCarrier, type Run, type RunContent, type RunPropertyChange, SCHEME_COLOR_VALUE_BY_THEME_COLOR, type SchemeColorSlot, type SchemeColorValue, type SdtEndProperties, type SdtProperties, type SdtType, type Section, type SectionProperties, type SectionPropertyChange, type SectionStart, type ShadingProperties, type Shape, type ShapeAlternateContent, type ShapeContent, type ShapeFill, type ShapeGeometryAdjustment, type ShapeOutline, type ShapeTextBody, type ShapeType, type SimpleField, type SoftHyphenContent, type SpacingExplicit, type Style, type StyleDefinitions, type StyleType, type SymbolContent, TABLE_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TEXT_DIRECTIONS, TEXT_DIRECTION_FLOWS, TEXT_DIRECTION_FLOW_BY_TOKEN, THEME_COLORS, THEME_COLOR_BY_SCHEME_COLOR_VALUE, type TabContent, type TabLeader, type TabStop, type TabStopAlignment, type Table, type TableAlignment, type TableBorders, type TableCell, type TableCellBlock, type TableCellBorders, type TableCellFormatting, type TableCellPropertyChange, type TableContentCarrier, type TableCustomXmlWrapper, type TableFormatting, type TableGridChange, type TableLook, type TableMeasurement, type TablePreservedMarkup, type TablePropertyChange, type TablePropertyExceptionChange, type TablePropertyExceptionFormatting, type TableRow, type TableRowFormatting, type TableRowPropertyChange, type TableStructuralChangeInfo, type TableWidthType, type TextBox, type TextContent, type TextDirection, type TextDirectionFlow, type TextEffect, type TextFormatting, type TextWatermark, type Theme, type ThemeColor, type ThemeColorScheme, type ThemeColorValue, type ThemeFont, type ThemeFontScheme, type TrackedChangeInfo, type TrackedRunChange, type TrackedRunContent, type UnderlineStyle, type UnrecognisedBorderStyle, type UnrecognisedPresetLineDash, type UnrecognisedThemeColor, type VerticalAlign, type Watermark, type WrapDistanceSlots, type WrapDistances, type WrapPolygonPoint, borderStyleFrom, borderStyleToken, finalizeParagraphFormatting, getSingularRunPropertyChange, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isCanonicallyEmptyParagraphFormatting, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, levelShowsMarker, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, numberingInstanceResolves, numberingLevelEntries, numberingLevelHasMarkerSlot, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveNumberingLevel, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, setDocumentBodyComments, statesNoBorder, themeColorSlot, themeColorToken };
|
package/dist/model/document.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as BIDI_CONTROLS, Y as BODY_TEXT_OUTLINE_LEVEL, A as BORDER_STYLES, t as COMMENT_PART_RELATIONSHIPS, y as COUNTER_FORMATS, n as DEFAULT_TAB_STOP_TWIPS, r as DOCX_CONFORMANCE_CLASSES, a as DRAWING_RAW_XML_MODES, pt as IMPORTED_ID_COLLISION_KINDS, mt as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, s as MAX_REVISION_ID, tt as NO_NUMBERING_NUM_ID, nt as NO_PARAGRAPH_NUMBERING, j as NUMBER_FORMATS, M as PARAGRAPH_ALIGNMENTS, c as PARAGRAPH_MARK_CHANGE_KINDS, ht as PARSE_WARNING_CODES, C as PRESET_LINE_DASH_VALS, l as PROPERTY_REVISION_KINDS, u as REVIEW_CARRIERS, R as SCHEME_COLOR_VALUE_BY_THEME_COLOR, N as TABLE_ALIGNMENTS, P as TAB_STOP_ALIGNMENTS, F as TEXT_DIRECTIONS, I as TEXT_DIRECTION_FLOWS, L as TEXT_DIRECTION_FLOW_BY_TOKEN, K as THEME_COLORS, z as THEME_COLOR_BY_SCHEME_COLOR_VALUE, w as borderStyleFrom, T as borderStyleToken, gt as finalizeParagraphFormatting, yt as getSingularRunPropertyChange, X as headingLevelOf, Z as headingOutlineLevel, E as isBorderNil, D as isBorderNone, O as isBorderStyle, _t as isCanonicallyEmptyParagraphFormatting, et as isNumberingLevel, rt as isNumberingReference, f as isOoxmlSymbolCharacter, b as isPresetLineDashVal, B as isSchemeColorValue, V as isThemeColor, H as knownThemeColor, m as levelShowsMarker, it as mergeParagraphNumbering, q as mintRelationshipId, p as normalizeRevisionId, h as numberingInstanceResolves, g as numberingLevelEntries, _ as numberingLevelHasMarkerSlot, Q as outlineLevelFromStatedValue, $ as outlineLevelStatedValue, at as paragraphNumberingFromSlots, ot as paragraphNumberingLevel, st as paragraphNumberingReference, ct as paragraphNumberingReferenceId, lt as paragraphNumberingSlots, x as presetLineDashFrom, S as presetLineDashToken, U as readThemeColor, J as relationshipIdOf, v as resolveNumberingLevel, ut as resolveParagraphNumbering, dt as sameEffectiveParagraphNumbering, ft as sameStatedParagraphNumbering, vt as setDocumentBodyComments, k as statesNoBorder, W as themeColorSlot, G as themeColorToken } from "../document-
|
|
1
|
+
export { i as BIDI_CONTROLS, Y as BODY_TEXT_OUTLINE_LEVEL, A as BORDER_STYLES, t as COMMENT_PART_RELATIONSHIPS, y as COUNTER_FORMATS, n as DEFAULT_TAB_STOP_TWIPS, r as DOCX_CONFORMANCE_CLASSES, a as DRAWING_RAW_XML_MODES, pt as IMPORTED_ID_COLLISION_KINDS, mt as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, s as MAX_REVISION_ID, tt as NO_NUMBERING_NUM_ID, nt as NO_PARAGRAPH_NUMBERING, j as NUMBER_FORMATS, M as PARAGRAPH_ALIGNMENTS, c as PARAGRAPH_MARK_CHANGE_KINDS, ht as PARSE_WARNING_CODES, C as PRESET_LINE_DASH_VALS, l as PROPERTY_REVISION_KINDS, u as REVIEW_CARRIERS, R as SCHEME_COLOR_VALUE_BY_THEME_COLOR, N as TABLE_ALIGNMENTS, P as TAB_STOP_ALIGNMENTS, F as TEXT_DIRECTIONS, I as TEXT_DIRECTION_FLOWS, L as TEXT_DIRECTION_FLOW_BY_TOKEN, K as THEME_COLORS, z as THEME_COLOR_BY_SCHEME_COLOR_VALUE, w as borderStyleFrom, T as borderStyleToken, gt as finalizeParagraphFormatting, yt as getSingularRunPropertyChange, X as headingLevelOf, Z as headingOutlineLevel, E as isBorderNil, D as isBorderNone, O as isBorderStyle, _t as isCanonicallyEmptyParagraphFormatting, et as isNumberingLevel, rt as isNumberingReference, f as isOoxmlSymbolCharacter, b as isPresetLineDashVal, B as isSchemeColorValue, V as isThemeColor, H as knownThemeColor, m as levelShowsMarker, it as mergeParagraphNumbering, q as mintRelationshipId, p as normalizeRevisionId, h as numberingInstanceResolves, g as numberingLevelEntries, _ as numberingLevelHasMarkerSlot, Q as outlineLevelFromStatedValue, $ as outlineLevelStatedValue, at as paragraphNumberingFromSlots, ot as paragraphNumberingLevel, st as paragraphNumberingReference, ct as paragraphNumberingReferenceId, lt as paragraphNumberingSlots, x as presetLineDashFrom, S as presetLineDashToken, U as readThemeColor, J as relationshipIdOf, v as resolveNumberingLevel, ut as resolveParagraphNumbering, dt as sameEffectiveParagraphNumbering, ft as sameStatedParagraphNumbering, vt as setDocumentBodyComments, k as statesNoBorder, W as themeColorSlot, G as themeColorToken } from "../document-NtScxyHH.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { C as Relationship, D as StyleDefinitions, Dn as Run, Dt as HeaderFooter, Hr as NumberingInstance, Jn as TabContent, Jr as ParagraphFormatting, K as BlockContent, Mr as AbstractNumbering, Nn as Section, Oi as HeadingOutlineLevel, On as RunContent, Ot as HeaderFooterType, Pn as SectionProperties, Q as BreakContent, S as MediaFile, Vr as NumberingDefinitions, Y as BookmarkEnd, Yn as Table, a as DocumentSettings, dn as Paragraph, ei as TableCellFormatting, et as Comment, fn as ParagraphContent, g as ExhaustiveFields, gt as Endnote, hn as ParagraphPropertyChange, i as Document, ir as TableRow, jt as INSERTION_SEAM_POLICIES, li as TextFormatting, oi as TableRowFormatting, pn as ParagraphMarkChange, s as DocxPackage, ti as TableFormatting, ut as DocumentBody, wt as Footnote } from "../document-
|
|
1
|
+
import { C as Relationship, D as StyleDefinitions, Dn as Run, Dt as HeaderFooter, Hr as NumberingInstance, Jn as TabContent, Jr as ParagraphFormatting, K as BlockContent, Mr as AbstractNumbering, Nn as Section, Oi as HeadingOutlineLevel, On as RunContent, Ot as HeaderFooterType, Pn as SectionProperties, Q as BreakContent, S as MediaFile, Vr as NumberingDefinitions, Y as BookmarkEnd, Yn as Table, a as DocumentSettings, dn as Paragraph, ei as TableCellFormatting, et as Comment, fn as ParagraphContent, g as ExhaustiveFields, gt as Endnote, hn as ParagraphPropertyChange, i as Document, ir as TableRow, jt as INSERTION_SEAM_POLICIES, li as TextFormatting, oi as TableRowFormatting, pn as ParagraphMarkChange, s as DocxPackage, ti as TableFormatting, ut as DocumentBody, wt as Footnote } from "../document-BWDHON3T.js";
|
|
2
2
|
import { Result, TaggedErrorClass } from "better-result";
|
|
3
|
-
//#region src/ops/types.d.ts
|
|
4
3
|
/** JSON-safe map presence, including an explicitly undefined section map. */
|
|
5
4
|
type SectionMapState = {
|
|
6
5
|
type: "omitted";
|
|
@@ -1007,8 +1006,6 @@ type TouchedBlocks = {
|
|
|
1007
1006
|
inserted: readonly string[];
|
|
1008
1007
|
removed: readonly string[];
|
|
1009
1008
|
};
|
|
1010
|
-
//#endregion
|
|
1011
|
-
//#region src/ops/edits.d.ts
|
|
1012
1009
|
/** What applying operations produced: the document, its inverse, and the blocks it changed. */
|
|
1013
1010
|
type DocumentEdit = {
|
|
1014
1011
|
document: Document;
|
|
@@ -1018,8 +1015,6 @@ type DocumentEdit = {
|
|
|
1018
1015
|
};
|
|
1019
1016
|
/** Edits made in turn, starting from `document`, as one edit. */
|
|
1020
1017
|
export declare const combineEdits: (document: Document, edits: readonly DocumentEdit[]) => DocumentEdit;
|
|
1021
|
-
//#endregion
|
|
1022
|
-
//#region src/ops/refusal.d.ts
|
|
1023
1018
|
declare const DocumentOpRefusalBase: TaggedErrorClass<"DocumentOpRefusal">;
|
|
1024
1019
|
/**
|
|
1025
1020
|
* Why an operation was not applied. A refused operation changes nothing: the
|
|
@@ -1127,8 +1122,6 @@ export declare class DocumentOpRefusal extends DocumentOpRefusalBase<{
|
|
|
1127
1122
|
reason: DocumentOpRefusalReason;
|
|
1128
1123
|
opType: DocumentOpType | undefined;
|
|
1129
1124
|
}> {}
|
|
1130
|
-
//#endregion
|
|
1131
|
-
//#region src/ops/leaves.d.ts
|
|
1132
1125
|
/** A place between two leaves. */
|
|
1133
1126
|
type Gap = {
|
|
1134
1127
|
offset: number;
|
|
@@ -1163,8 +1156,6 @@ export declare const inlineLeafSpans: (items: readonly InlineNode[]) => {
|
|
|
1163
1156
|
}[];
|
|
1164
1157
|
/** Gaps in document order: by offset, then by the zero-width leaves before them. */
|
|
1165
1158
|
export declare const compareGaps: (left: Gap, right: Gap) => number;
|
|
1166
|
-
//#endregion
|
|
1167
|
-
//#region src/ops/comments.d.ts
|
|
1168
1159
|
type CommentExhaustionInput = {
|
|
1169
1160
|
type: "document";
|
|
1170
1161
|
document: Document;
|
|
@@ -1189,8 +1180,6 @@ export declare const commentDocumentIssue: (document: Document, allowedOrphans?:
|
|
|
1189
1180
|
export declare const freshCommentId: (document: Document) => Result<number, DocumentOpRefusal>;
|
|
1190
1181
|
/** Reconcile modeled comment and numbering parts with their document relationships. */
|
|
1191
1182
|
export declare const reconcileDocumentPartRelationships: (document: Document) => Document;
|
|
1192
|
-
//#endregion
|
|
1193
|
-
//#region src/ops/copyOriginAncestors.d.ts
|
|
1194
1183
|
type CopyOriginAncestorList = NonNullable<BookmarkEnd["copyOriginAncestors"]>;
|
|
1195
1184
|
export declare const isCopyOriginAncestors: (value: unknown) => value is CopyOriginAncestorList;
|
|
1196
1185
|
export declare const shiftCopyOriginAncestors: (origins: CopyOriginAncestorList | undefined, insertedOrdinal: number) => CopyOriginAncestorList | undefined;
|
|
@@ -1203,28 +1192,18 @@ type RejectedCopyOriginAncestors = {
|
|
|
1203
1192
|
copyOriginAncestors?: CopyOriginAncestorList;
|
|
1204
1193
|
};
|
|
1205
1194
|
export declare const rejectCopyOriginAncestors: (origins: CopyOriginAncestorList | undefined, removedAddedAncestors: number) => RejectedCopyOriginAncestors;
|
|
1206
|
-
//#endregion
|
|
1207
|
-
//#region src/ops/noteMarks.d.ts
|
|
1208
1195
|
export declare const noteUsesCustomMark: (document: Document, note: Footnote | Endnote) => boolean;
|
|
1209
|
-
//#endregion
|
|
1210
|
-
//#region src/ops/storyLifecycle.d.ts
|
|
1211
1196
|
export declare const sectionPropertiesAt: (document: Document, sectionIndex: number) => SectionProperties | undefined;
|
|
1212
|
-
//#endregion
|
|
1213
|
-
//#region src/ops/stories.d.ts
|
|
1214
1197
|
export declare const sameStory: (left: OpStory, right: OpStory) => boolean;
|
|
1215
1198
|
export declare const findStoryBody: (document: Document, story: OpStory) => DocumentBody | undefined;
|
|
1216
1199
|
export declare const storyBody: (document: Document, story: OpStory) => DocumentBody;
|
|
1217
1200
|
export declare const documentStories: (document: Document) => OpStory[];
|
|
1218
|
-
//#endregion
|
|
1219
|
-
//#region src/ops/blocks.d.ts
|
|
1220
1201
|
/**
|
|
1221
1202
|
* A body holding other blocks, its section view derived from them. A view
|
|
1222
1203
|
* that does not line up with the blocks (a different section count) is left
|
|
1223
1204
|
* for {@link sectionsInStep} to report.
|
|
1224
1205
|
*/
|
|
1225
1206
|
export declare const withBodyContent: (body: DocumentBody, content: BlockContent[]) => DocumentBody;
|
|
1226
|
-
//#endregion
|
|
1227
|
-
//#region src/ops/offsets.d.ts
|
|
1228
1207
|
/**
|
|
1229
1208
|
* The zero-width items a paragraph can hold, and whether each is content its
|
|
1230
1209
|
* mark must not take away. None is. A range boundary is a position, not
|
|
@@ -1273,8 +1252,6 @@ export declare const OBJECT_REPLACEMENT_CHARACTER = "";
|
|
|
1273
1252
|
* the string is unit `i` of the paragraph.
|
|
1274
1253
|
*/
|
|
1275
1254
|
export declare const paragraphLogicalText: (paragraph: Paragraph) => string;
|
|
1276
|
-
//#endregion
|
|
1277
|
-
//#region src/ops/blockDeletion.d.ts
|
|
1278
1255
|
/** The single structural outcome of resolving a paragraph mark. */
|
|
1279
1256
|
export declare const paragraphMarkOutcome: ({ follows, holdsContent, markWasAdded, containerStillEndsWithParagraph, followingTableCanReceiveRunIn, needsFollowingCommentHost, tableRemovalIsTrackable, removedSectionProperties, precedingSectionOwner, followingHasSectionProperties }: {
|
|
1280
1257
|
follows: "paragraph" | "table" | "nothing";
|
|
@@ -1308,8 +1285,6 @@ export declare const paragraphMarkOutcome: ({ follows, holdsContent, markWasAdde
|
|
|
1308
1285
|
type SectionTransfer = {
|
|
1309
1286
|
sectionDestination: "none" | "preceding" | "following";
|
|
1310
1287
|
};
|
|
1311
|
-
//#endregion
|
|
1312
|
-
//#region src/ops/rangeBoundaries.d.ts
|
|
1313
1288
|
declare const BOUNDARY_SIDES: {
|
|
1314
1289
|
readonly bookmarkStart: {
|
|
1315
1290
|
readonly family: "bookmark";
|
|
@@ -1402,12 +1377,8 @@ type WellFormedRangePlan = {
|
|
|
1402
1377
|
* still with more than one start or end is left as it is.
|
|
1403
1378
|
*/
|
|
1404
1379
|
export declare const planWellFormedRanges: (occurrences: readonly BoundaryOccurrence[]) => WellFormedRangePlan;
|
|
1405
|
-
//#endregion
|
|
1406
|
-
//#region src/ops/wire.d.ts
|
|
1407
1380
|
/** Capture own undefined fields before an operation enters its JSON journal. */
|
|
1408
1381
|
export declare const captureDocumentOp: (op: DocumentOp) => DocumentOp;
|
|
1409
|
-
//#endregion
|
|
1410
|
-
//#region src/ops/hyperlinkIntent.d.ts
|
|
1411
1382
|
type HyperlinkEditorIntent = {
|
|
1412
1383
|
type: "setHyperlink";
|
|
1413
1384
|
from: TextPosition;
|
|
@@ -1427,8 +1398,6 @@ type HyperlinkEditorIntent = {
|
|
|
1427
1398
|
href: string;
|
|
1428
1399
|
tooltip?: string;
|
|
1429
1400
|
};
|
|
1430
|
-
//#endregion
|
|
1431
|
-
//#region src/ops/editorIntent.d.ts
|
|
1432
1401
|
type SplitParagraphIntent = {
|
|
1433
1402
|
type: "splitParagraph";
|
|
1434
1403
|
at: TextPosition;
|
|
@@ -1551,8 +1520,6 @@ export declare const editorPositionAtPhysicalPosition: (document: Document, at:
|
|
|
1551
1520
|
export declare const physicalPositionAtEditorOffset: (document: Document, at: TextPosition) => TextPosition;
|
|
1552
1521
|
/** Compile one batch; the caller applies it atomically and journals its exact inverse. */
|
|
1553
1522
|
export declare const compileEditorIntent: (document: Document, { intent, mode, firstBlockId }: CompileEditorIntentOptions) => Result<CompiledEditorIntent, DocumentOpRefusal>;
|
|
1554
|
-
//#endregion
|
|
1555
|
-
//#region src/ops/tocIntent.d.ts
|
|
1556
1523
|
type TocHeading = {
|
|
1557
1524
|
blockId: string;
|
|
1558
1525
|
text: string;
|
|
@@ -1570,24 +1537,18 @@ type GenerateTOCIntent = {
|
|
|
1570
1537
|
};
|
|
1571
1538
|
/** Map original endpoints through the bookmark wrappers emitted by TOC compilation. */
|
|
1572
1539
|
export declare const mapTocBookmarkPosition: (position: TextPosition, ops: readonly DocumentOp[]) => TextPosition;
|
|
1573
|
-
//#endregion
|
|
1574
|
-
//#region src/ops/packageResources.d.ts
|
|
1575
1540
|
type PackageResourcesOpOptions = {
|
|
1576
1541
|
before: Document;
|
|
1577
1542
|
after: Document;
|
|
1578
1543
|
};
|
|
1579
1544
|
/** Describe the package resource difference as one operation carrying only changed entries. */
|
|
1580
1545
|
export declare const packageResourcesOpOf: ({ before, after }: PackageResourcesOpOptions) => SetPackageResourcesOp;
|
|
1581
|
-
//#endregion
|
|
1582
|
-
//#region src/ops/paragraphPropertySnapshot.d.ts
|
|
1583
1546
|
type RegisterParagraphPropertySnapshotOptions = {
|
|
1584
1547
|
paragraph: Paragraph;
|
|
1585
1548
|
snapshot: ParagraphFormatting | undefined;
|
|
1586
1549
|
};
|
|
1587
1550
|
/** Bind effective formatting to the authored properties a review must record. */
|
|
1588
1551
|
export declare const registerParagraphPropertySnapshot: ({ paragraph, snapshot }: RegisterParagraphPropertySnapshotOptions) => void;
|
|
1589
|
-
//#endregion
|
|
1590
|
-
//#region src/ops/apply.d.ts
|
|
1591
1552
|
/** A document an operation produced, the operations that undo it, and what it changed. */
|
|
1592
1553
|
type AppliedDocumentOp = {
|
|
1593
1554
|
document: Document;
|
|
@@ -1614,8 +1575,6 @@ export declare const applyDocumentOpEnvelope: (document: Document, envelope: {
|
|
|
1614
1575
|
* `revisions` lists each operation's in turn.
|
|
1615
1576
|
*/
|
|
1616
1577
|
export declare const applyDocumentOps: (document: Document, ops: readonly DocumentOp[]) => Result<AppliedDocumentOp, DocumentOpRefusal>;
|
|
1617
|
-
//#endregion
|
|
1618
|
-
//#region src/ops/runMerge.d.ts
|
|
1619
1578
|
/**
|
|
1620
1579
|
* Every `TextFormatting` field, named so the comparison below is total.
|
|
1621
1580
|
*
|
|
@@ -1662,8 +1621,6 @@ export declare function runsMergeable(a: MergeDecidedRun, b: MergeDecidedRun): b
|
|
|
1662
1621
|
* Merge the content of two runs into a single content array
|
|
1663
1622
|
*/
|
|
1664
1623
|
export declare function mergeRunContent(content1: RunContent[], content2: RunContent[]): RunContent[];
|
|
1665
|
-
//#endregion
|
|
1666
|
-
//#region src/ops/contract.d.ts
|
|
1667
1624
|
declare const DocumentOpsContractErrorBase: TaggedErrorClass<"DocumentOpsContractError">;
|
|
1668
1625
|
/** A document that does not meet the seed contract. */
|
|
1669
1626
|
export declare class DocumentOpsContractError extends DocumentOpsContractErrorBase<{
|
|
@@ -1677,8 +1634,6 @@ export declare const validateOpsDocument: (document: Document) => Result<Documen
|
|
|
1677
1634
|
* removed, and its section view derived again. Nothing else changes.
|
|
1678
1635
|
*/
|
|
1679
1636
|
export declare const normalizeForOps: (document: Document) => Document;
|
|
1680
|
-
//#endregion
|
|
1681
|
-
//#region src/ops/ids.d.ts
|
|
1682
1637
|
/** Every `paraId` of every paragraph in a value, nested ones included, in document order. */
|
|
1683
1638
|
export declare const paragraphIdsIn: (value: unknown) => string[];
|
|
1684
1639
|
/** Every paragraph id of a package, each story walked once. */
|
|
@@ -1689,8 +1644,6 @@ export declare const packageParagraphIds: (pkg: DocxPackage) => string[];
|
|
|
1689
1644
|
* paragraph ids goes through this.
|
|
1690
1645
|
*/
|
|
1691
1646
|
export declare const idKey: (id: string) => string;
|
|
1692
|
-
//#endregion
|
|
1693
|
-
//#region src/ops/plan.d.ts
|
|
1694
1647
|
/** Package-aware explicit pools for every semantic comment anchor cut, including replies. */
|
|
1695
1648
|
export declare const allocateCommentAnchorIds: (document: Document, op: CreateCommentOp) => Result<NewIds, DocumentOpRefusal>;
|
|
1696
1649
|
/**
|
|
@@ -1715,8 +1668,6 @@ type PlanTrackedDeletionOptions = {
|
|
|
1715
1668
|
* All physical revision ids come from one pool for the complete batch.
|
|
1716
1669
|
*/
|
|
1717
1670
|
export declare const planTrackedDeletion: (document: Document, options: PlanTrackedDeletionOptions) => Result<DocumentOp[], DocumentOpRefusal>;
|
|
1718
|
-
//#endregion
|
|
1719
|
-
//#region src/ops/rangeReplacement.d.ts
|
|
1720
1671
|
/**
|
|
1721
1672
|
* A range replacement fragment: newly identified paragraphs before its last
|
|
1722
1673
|
* paragraph, and the inline tail inserted into the retained original paragraph.
|
|
@@ -1742,8 +1693,6 @@ type PlanTrackedReplaceOptions = PlanTrackedDeletionOptions & {
|
|
|
1742
1693
|
* All physical revision ids come from one pool for the complete batch.
|
|
1743
1694
|
*/
|
|
1744
1695
|
export declare const planTrackedReplace: (document: Document, options: PlanTrackedReplaceOptions) => Result<DocumentOp[], DocumentOpRefusal>;
|
|
1745
|
-
//#endregion
|
|
1746
|
-
//#region src/ops/sequencing/envelope.d.ts
|
|
1747
1696
|
/** A batch applies atomically, in array order, against its stated revision. */
|
|
1748
1697
|
type DocumentBatch = {
|
|
1749
1698
|
schema: typeof DOCUMENT_OP_SCHEMA_VERSION;
|
|
@@ -1800,15 +1749,11 @@ export declare const validateDocumentBatch: (value: unknown) => Result<DocumentB
|
|
|
1800
1749
|
export declare const validateSequencedBatch: (value: unknown) => Result<SequencedBatch, BatchRejection>;
|
|
1801
1750
|
/** Parse the wire representation without propagating parser exceptions. */
|
|
1802
1751
|
export declare const parseDocumentBatch: (json: string) => Result<DocumentBatch, BatchRejection>;
|
|
1803
|
-
//#endregion
|
|
1804
|
-
//#region src/ops/sequencing/transform.d.ts
|
|
1805
1752
|
type TransformOptions = {
|
|
1806
1753
|
order?: "before" | "after";
|
|
1807
1754
|
};
|
|
1808
1755
|
/** Rebase an atomic batch over an ordered journal tail. */
|
|
1809
1756
|
export declare const transformBatch: (batch: DocumentBatch, over: readonly SequencedBatch[], options?: TransformOptions) => Result<DocumentBatch, BatchRejection>;
|
|
1810
|
-
//#endregion
|
|
1811
|
-
//#region src/ops/sequencing/sequencer.d.ts
|
|
1812
1757
|
type BatchAck = {
|
|
1813
1758
|
type: "ack";
|
|
1814
1759
|
opId: string;
|
|
@@ -1828,8 +1773,6 @@ export declare const createSequencer: (document: Document) => {
|
|
|
1828
1773
|
readonly headRev: number;
|
|
1829
1774
|
readonly broadcasts: readonly SequencedBatch[];
|
|
1830
1775
|
};
|
|
1831
|
-
//#endregion
|
|
1832
|
-
//#region src/ops/sequencing/client.d.ts
|
|
1833
1776
|
type ClientNotice = {
|
|
1834
1777
|
opId: string;
|
|
1835
1778
|
reason: BatchRejection;
|
|
@@ -1847,8 +1790,6 @@ export declare const createClient: (document: Document) => {
|
|
|
1847
1790
|
readonly pending: readonly DocumentBatch[];
|
|
1848
1791
|
readonly notices: readonly ClientNotice[];
|
|
1849
1792
|
};
|
|
1850
|
-
//#endregion
|
|
1851
|
-
//#region src/ops/batchOrder.d.ts
|
|
1852
1793
|
/**
|
|
1853
1794
|
* The execution coordinates of an operation resolved against a batch's
|
|
1854
1795
|
* pre-state. Positions and table coordinates are ordered from right to left;
|
|
@@ -1907,5 +1848,4 @@ export declare const orderBatchOperations: <T>(operations: readonly T[], address
|
|
|
1907
1848
|
* requested sequence, which no series of single edits produces.
|
|
1908
1849
|
*/
|
|
1909
1850
|
export declare const groupInsertionRuns: <T>(operations: readonly T[], insertionPositionOf: (operation: T) => number | null, keepsGap?: (operation: T) => boolean) => T[][];
|
|
1910
|
-
//#endregion
|
|
1911
1851
|
export type { AddNoteOp, AppliedDocumentOp, BatchOrderAddress, BatchRejectionReason, BlockInsertionPoint, BoundaryOccurrence, CommentAnchor, CommentExhaustionInput, CommentState, CopyOriginAncestorList, CreateCommentOp, CreateHeaderFooterOp, CreateNumberingInstanceOp, DeleteBlocksOp, DeleteColumnOp, DeleteCommentOp, DeleteNumberingInstanceOp, DeleteRangeOp, DeleteRowOp, DeleteTableOp, DocumentBatch, DocumentOp, DocumentOpEnvelope, DocumentOpRefusalReason, DocumentOpType, EditorIntent, EditorIntentMode, EmptyPropertySet, FormattingPatch, HeaderFooterStory, InlineSlice, InsertBlocksOp, InsertColumnOp, InsertContentOp, InsertRowOp, InsertTableOp, InsertTextOp, InsertedRunProps, JoinBlocksOp, JoinInlineOp, MergeCellsOp, NewIds, NoteStory, NumberingPartState, OpStory, PackageResourceEntry, PackageResourceEntryChange, PackageResourceMapChange, PackageResourceMedia, PackageResourcePart, PackageResources, ParagraphContentVerdict, ParagraphPropsPatch, ParagraphReviewFields, PlanTrackedDeletionOptions, PlanTrackedReplaceOptions, RemoveHeaderFooterOp, RemoveNoteOp, ReplaceBlocksOp, ReplaceInlineOp, ResolveRevisionOp, RestoreCommentStateOp, RestoreStoryPartsOp, RevisionDecision, RevisionStamp, RunPropsPatch, SectionEndpoint, SectionMapState, SectionPropertiesState, SectionViewEntry, SectionViewState, SequencedBatch, SetCellPropsOp, SetCommentResolutionOp, SetContainerBlocksOp, SetPackageResourcesOp, SetParagraphPropsOp, SetParagraphReviewOp, SetRowPropsOp, SetRunPropsOp, SetSectionEndpointOp, SetSectionPropsOp, SetTableGridOp, SetTableOp, SetTablePropsOp, SetTableRowsOp, SplitBlockOp, SplitCellOp, SplitHalf, SplitInlineOp, SplitParagraphFields, TableEditOp, TableIntentOperation, TextPosition, TouchedBlocks, UpdateCommentContentOp, WellFormedRangePlan, ZeroWidthItem };
|