@stll/docx-core 0.44.0 → 0.45.1
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 → archive-D5kFLipm.js} +1 -1
- package/dist/{document-f4_h6JMT.d.ts → document-BKejiFuk.d.ts} +32 -9
- package/dist/docx_kernel_bg.wasm +0 -0
- package/dist/{format-DXPXB02u.js → format-DKTCMfac.js} +36 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -141
- package/dist/model/document.d.ts +2 -2
- package/dist/ops/documentOps.d.ts +76 -6
- package/dist/ops/documentOps.js +3087 -296
- package/dist/schemaAttributes-e8whSQjO.js +142 -0
- package/dist/zip/archive.js +2 -2
- package/dist/zip/stream.js +1 -1
- package/package.json +1 -1
package/dist/model/document.d.ts
CHANGED
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
* - content.ts — Content model (runs, images, shapes, tables, paragraphs, sections)
|
|
12
12
|
* - styles.ts — Styles, theme, fonts, relationships, media
|
|
13
13
|
*/
|
|
14
|
-
import { $ as lockedControlViolation, $i as ParagraphAlignment, $n as Shape, $r as LevelSuffix, $t as ImageWrap, A as ThemeColorScheme, Aa as isBorderNil, Ai as ParagraphNumberingReference, An as ParagraphMarkDeletion, Ar as Watermark, At as EndnotePosition, B as finalizeParagraphFormatting, Bi as resolveParagraphNumbering, Bn as PropertyRevisionKind, Br as PreviewShape, Bt as HeaderFooter, C as Relationship, Ca as SchemeColorValue, Ci as TableWidthType, Cn as PARAGRAPH_MARK_CHANGE_KINDS, Cr as TextBox, Ct as DocumentBody, D as StyleDefinitions, Da as UnrecognisedBorderStyle, Di as NO_NUMBERING_NUM_ID, Dn as ParagraphContent, Dr as TrackedRunChange, Dt as DrawingRawXmlMode, E as Style, Ea as BorderStyleValue, Ei as UnderlineStyle, En as Paragraph, Er as TrackedChangeInfo, Et as DrawingGroupChild, F as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, Fa as BorderStyle, Fi as paragraphNumberingFromSlots, Fn as PreservedBlock, Fr as normalizeRevisionId, Ft as FoldedListNumber, G as ContentControlChange, Gi as OutlineLevel, Gn as RunPropertyChange, Gr as presetLineDashToken, Gt as Image, H as paragraphSpacingExplicit, Hi as sameStatedParagraphNumbering, Hn as ReviewCarrier, Hr as UnrecognisedPresetLineDash, Ht as HeaderReference, I as PARSE_WARNING_CODES, Ii as paragraphNumberingLevel, In as PreservedInline, Ir as RelationshipId, It as FooterReference, J as LockedControlTouch, Ji as outlineLevelFromStatedValue, Jn as SdtType, Jr as AbstractNumbering, Jt as ImageFrameLocks, K as ContentControlLock, Ki as headingLevelOf, Kn as SdtEndProperties, Kr as PRESET_LINE_DASH_VALS, Kt as ImageCrop, L as ParseWarning, Li as paragraphNumberingReference, Ln as PreservedXmlContent, Lr as mintRelationshipId, Lt as Footnote, M as ThemeFontScheme, Ma as isBorderStyle, Mi as ResolvedParagraphNumbering, Mn as PictureWatermark, Mr as WrapDistances, Mt as Field, N as IMPORTED_ID_COLLISION_KINDS, Na as statesNoBorder, Ni as isNumberingReference, Nn as PositionalTab, Nr as WrapPolygonPoint, Nt as FieldCharContent, O as StyleType, Oa as borderStyleFrom, Oi as NO_PARAGRAPH_NUMBERING, On as ParagraphMarkChange, Or as TrackedRunContent, Ot as EffectExtentSlots, P as ImportedIdCollisionKind, Pa as BORDER_STYLES, Pi as mergeParagraphNumbering, Pn as PositionedBookmarkMarker, Pr as isOoxmlSymbolCharacter, Pt as FieldType, Q as lockedControlMessage, Qi as PARAGRAPH_ALIGNMENTS, Qn as SectionStart, Qr as LevelOverride, Qt as ImageTransform, R as ParseWarningCode, Ri as paragraphNumberingReferenceId, Rn as PropertyChange, Rr as relationshipIdOf, Rt as FootnotePosition, S as MediaFile, Sa as SchemeColorSlot, Si as TableRowFormatting, Sn as NoteReferenceContent, Sr as TableStructuralChangeInfo, St as DocumentBackgroundDrawing, T as RelationshipType, Ta as ThemeColor, Ti as TextFormatting, Tn as PageOrientation, Tr as TextWatermark, Tt as DrawingContent, U as setDocumentBodyComments, Ui as BODY_TEXT_OUTLINE_LEVEL, Un as Run, Ur as isPresetLineDashVal, Ut as Hyperlink, V as isCanonicallyEmptyParagraphFormatting, Vi as sameEffectiveParagraphNumbering, Vn as REVIEW_CARRIERS, Vr as PresetLineDashValue, Vt as HeaderFooterType, W as CONTENT_CONTROL_LOCK, Wi as HeadingOutlineLevel, Wn as RunContent, Wr as presetLineDashFrom, X as contentControlLockAllows, Xi as NUMBER_FORMATS, Xn as SectionProperties, Xr as CounterFormat, Xt as ImagePosition, Y as LockedControlViolation, Yi as outlineLevelStatedValue, Yn as Section, Yr as COUNTER_FORMATS, Yt as ImagePadding, Z as firstLockedControlViolation, Zi as NumberFormat, Zn as SectionPropertyChange, Zr as LevelLegacy, Zt as ImageSize, _ as DocDefaults, _a as isThemeColor, _i as TableFormatting, _n as MoveToRangeStart, _r as TablePreservedMarkup, _t as ComplexField, a as DocumentSettings, aa as TabStopAlignment, ai as CellMargins, an as KeptCut, ar as ShapeTextBody, at as BlockContent, b as FontInfo, ba as themeColorSlot, bi as TableMeasurement, bn as NoteMarkerContent, br as TableRow, bt as DisplacedByCustomXml, c as NumberingLevelEntry, ca as TextDirectionFlow, ci as FloatingTableProperties, cn as MAX_REVISION_ID, cr as SoftHyphenContent, ct as BookmarkEnd, d as numberingInstanceResolves, da as ShadingProperties, di as SpacingExplicit, dn as MoveBookmarkMarker, dr as Table, dt as BreakContent, ea as TABLE_ALIGNMENTS, ei as ListLevel, en as ImageWrapPolygon, er as ShapeAlternateContent, et as locksContent, f as numberingLevelEntries, fa as SCHEME_COLOR_VALUE_BY_THEME_COLOR, fi as TabLeader, fn as MoveFrom, fr as TableCell, ft as Column, g as ExhaustiveFields, ga as isSchemeColorValue, gi as TableCellFormatting, gn as MoveToRangeEnd, gr as TableCustomXmlWrapper, gt as CommentReference, h as isNumberingLevel, ha as UnrecognisedThemeColor, hi as TableCellBorders, hn as MoveTo, hr as TableContentCarrier, ht as CommentRangeStart, i as Document, ia as TEXT_DIRECTION_FLOW_BY_TOKEN, ii as NumberingInstance, in as InstrTextContent, ir as ShapeOutline, it as BidiControl, j as ThemeFont, ja as isBorderNone, ji as ParagraphNumberingSlots, jn as ParagraphPropertyChange, jr as WrapDistanceSlots, jt as EndnoteProperties, k as Theme, ka as borderStyleToken, ki as ParagraphNumberingOverride, kn as ParagraphMarkChangeKind, kr as VerticalAlign, kt as Endnote, l as NumberingLevelResolution, la as BorderSpec, li as LineSpacingRule, ln as MarkupRangeMarker, lr as SymbolContent, lt as BookmarkRangeMarker, m as resolveNumberingLevel, ma as ThemeColorValue, mi as TableBorders, mn as MoveFromRangeStart, mr as TableCellPropertyChange, mt as CommentRangeEnd, n as DEFAULT_TAB_STOP_TWIPS, na as TEXT_DIRECTIONS, ni as ListRendering, nn as InlineWrapper, nr as ShapeFill, nt as getSingularRunPropertyChange, o as DocxConformanceClass, oa as TableAlignment, oi as ConditionalFormatStyle, on as
|
|
14
|
+
import { $ as lockedControlViolation, $i as ParagraphAlignment, $n as Shape, $r as LevelSuffix, $t as ImageWrap, A as ThemeColorScheme, Aa as isBorderNil, Ai as ParagraphNumberingReference, An as ParagraphMarkDeletion, Ar as Watermark, At as EndnotePosition, B as finalizeParagraphFormatting, Bi as resolveParagraphNumbering, Bn as PropertyRevisionKind, Br as PreviewShape, Bt as HeaderFooter, C as Relationship, Ca as SchemeColorValue, Ci as TableWidthType, Cn as PARAGRAPH_MARK_CHANGE_KINDS, Cr as TextBox, Ct as DocumentBody, D as StyleDefinitions, Da as UnrecognisedBorderStyle, Di as NO_NUMBERING_NUM_ID, Dn as ParagraphContent, Dr as TrackedRunChange, Dt as DrawingRawXmlMode, E as Style, Ea as BorderStyleValue, Ei as UnderlineStyle, En as Paragraph, Er as TrackedChangeInfo, Et as DrawingGroupChild, F as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, Fa as BorderStyle, Fi as paragraphNumberingFromSlots, Fn as PreservedBlock, Fr as normalizeRevisionId, Ft as FoldedListNumber, G as ContentControlChange, Gi as OutlineLevel, Gn as RunPropertyChange, Gr as presetLineDashToken, Gt as Image, H as paragraphSpacingExplicit, Hi as sameStatedParagraphNumbering, Hn as ReviewCarrier, Hr as UnrecognisedPresetLineDash, Ht as HeaderReference, I as PARSE_WARNING_CODES, Ii as paragraphNumberingLevel, In as PreservedInline, Ir as RelationshipId, It as FooterReference, J as LockedControlTouch, Ji as outlineLevelFromStatedValue, Jn as SdtType, Jr as AbstractNumbering, Jt as ImageFrameLocks, K as ContentControlLock, Ki as headingLevelOf, Kn as SdtEndProperties, Kr as PRESET_LINE_DASH_VALS, Kt as ImageCrop, L as ParseWarning, Li as paragraphNumberingReference, Ln as PreservedXmlContent, Lr as mintRelationshipId, Lt as Footnote, M as ThemeFontScheme, Ma as isBorderStyle, Mi as ResolvedParagraphNumbering, Mn as PictureWatermark, Mr as WrapDistances, Mt as Field, N as IMPORTED_ID_COLLISION_KINDS, Na as statesNoBorder, Ni as isNumberingReference, Nn as PositionalTab, Nr as WrapPolygonPoint, Nt as FieldCharContent, O as StyleType, Oa as borderStyleFrom, Oi as NO_PARAGRAPH_NUMBERING, On as ParagraphMarkChange, Or as TrackedRunContent, Ot as EffectExtentSlots, P as ImportedIdCollisionKind, Pa as BORDER_STYLES, Pi as mergeParagraphNumbering, Pn as PositionedBookmarkMarker, Pr as isOoxmlSymbolCharacter, Pt as FieldType, Q as lockedControlMessage, Qi as PARAGRAPH_ALIGNMENTS, Qn as SectionStart, Qr as LevelOverride, Qt as ImageTransform, R as ParseWarningCode, Ri as paragraphNumberingReferenceId, Rn as PropertyChange, Rr as relationshipIdOf, Rt as FootnotePosition, S as MediaFile, Sa as SchemeColorSlot, Si as TableRowFormatting, Sn as NoteReferenceContent, Sr as TableStructuralChangeInfo, St as DocumentBackgroundDrawing, T as RelationshipType, Ta as ThemeColor, Ti as TextFormatting, Tn as PageOrientation, Tr as TextWatermark, Tt as DrawingContent, U as setDocumentBodyComments, Ui as BODY_TEXT_OUTLINE_LEVEL, Un as Run, Ur as isPresetLineDashVal, Ut as Hyperlink, V as isCanonicallyEmptyParagraphFormatting, Vi as sameEffectiveParagraphNumbering, Vn as REVIEW_CARRIERS, Vr as PresetLineDashValue, Vt as HeaderFooterType, W as CONTENT_CONTROL_LOCK, Wi as HeadingOutlineLevel, Wn as RunContent, Wr as presetLineDashFrom, X as contentControlLockAllows, Xi as NUMBER_FORMATS, Xn as SectionProperties, Xr as CounterFormat, Xt as ImagePosition, Y as LockedControlViolation, Yi as outlineLevelStatedValue, Yn as Section, Yr as COUNTER_FORMATS, Yt as ImagePadding, Z as firstLockedControlViolation, Zi as NumberFormat, Zn as SectionPropertyChange, Zr as LevelLegacy, Zt as ImageSize, _ as DocDefaults, _a as isThemeColor, _i as TableFormatting, _n as MoveToRangeStart, _r as TablePreservedMarkup, _t as ComplexField, a as DocumentSettings, aa as TabStopAlignment, ai as CellMargins, an as KeptCut, ar as ShapeTextBody, at as BlockContent, b as FontInfo, ba as themeColorSlot, bi as TableMeasurement, bn as NoteMarkerContent, br as TableRow, bt as DisplacedByCustomXml, c as NumberingLevelEntry, ca as TextDirectionFlow, ci as FloatingTableProperties, cn as MAX_REVISION_ID, cr as SoftHyphenContent, ct as BookmarkEnd, d as numberingInstanceResolves, da as ShadingProperties, di as SpacingExplicit, dn as MoveBookmarkMarker, dr as Table, dt as BreakContent, ea as TABLE_ALIGNMENTS, ei as ListLevel, en as ImageWrapPolygon, er as ShapeAlternateContent, et as locksContent, f as numberingLevelEntries, fa as SCHEME_COLOR_VALUE_BY_THEME_COLOR, fi as TabLeader, fn as MoveFrom, fr as TableCell, ft as Column, g as ExhaustiveFields, ga as isSchemeColorValue, gi as TableCellFormatting, gn as MoveToRangeEnd, gr as TableCustomXmlWrapper, gt as CommentReference, h as isNumberingLevel, ha as UnrecognisedThemeColor, hi as TableCellBorders, hn as MoveTo, hr as TableContentCarrier, ht as CommentRangeStart, i as Document, ia as TEXT_DIRECTION_FLOW_BY_TOKEN, ii as NumberingInstance, in as InstrTextContent, ir as ShapeOutline, it as BidiControl, j as ThemeFont, ja as isBorderNone, ji as ParagraphNumberingSlots, jn as ParagraphPropertyChange, jr as WrapDistanceSlots, jt as EndnoteProperties, k as Theme, ka as borderStyleToken, ki as ParagraphNumberingOverride, kn as ParagraphMarkChangeKind, kr as VerticalAlign, kt as Endnote, l as NumberingLevelResolution, la as BorderSpec, li as LineSpacingRule, ln as MarkupRangeMarker, lr as SymbolContent, lt as BookmarkRangeMarker, m as resolveNumberingLevel, ma as ThemeColorValue, mi as TableBorders, mn as MoveFromRangeStart, mr as TableCellPropertyChange, mt as CommentRangeEnd, n as DEFAULT_TAB_STOP_TWIPS, na as TEXT_DIRECTIONS, ni as ListRendering, nn as InlineWrapper, nr as ShapeFill, nt as getSingularRunPropertyChange, o as DocxConformanceClass, oa as TableAlignment, oi as ConditionalFormatStyle, on as KeptCutHolders, or as ShapeType, ot as BlockCustomXml, p as numberingLevelHasMarkerSlot, pa as THEME_COLOR_BY_SCHEME_COLOR_VALUE, pi as TabStop, pn as MoveFromRangeEnd, pr as TableCellBlock, pt as Comment, q as LockedControlSpan, qi as headingOutlineLevel, qn as SdtProperties, qr as PresetLineDashVal, qt as ImageDocPrLink, r as DOCX_CONFORMANCE_CLASSES, ra as TEXT_DIRECTION_FLOWS, ri as NumberingDefinitions, rn as Insertion, rr as ShapeGeometryAdjustment, rt as BIDI_CONTROLS, s as DocxPackage, sa as TextDirection, si as EmphasisMark, sn as LineNumberRestart, sr as SimpleField, st as BlockSdt, t as COMMENT_PART_RELATIONSHIPS, ta as TAB_STOP_ALIGNMENTS, ti as ListMarkerFormatting, tn as InlineSdt, tr as ShapeContent, tt as locksControl, u as levelShowsMarker, ua as ColorValue, ui as ParagraphFormatting, un as MathEquation, ur as TabContent, ut as BookmarkStart, v as EmbeddedFontRef, va as knownThemeColor, vi as TableGridChange, vn as NoBreakHyphenContent, vr as TablePropertyChange, vt as DRAWING_RAW_XML_MODES, w as RelationshipMap, wa as THEME_COLORS, wi as TextEffect, wn as PROPERTY_REVISION_KINDS, wr as TextContent, wt as DrawingAnchor, x as FontTable, xa as themeColorToken, xi as TablePropertyExceptionFormatting, xn as NoteNumberRestart, xr as TableRowPropertyChange, xt as DocumentBackground, y as FontCharset, ya as readThemeColor, yi as TableLook, yn as NonVisualDrawingNames, yr as TablePropertyExceptionChange, yt as Deletion, z as ParseWarningLocation, zi as paragraphNumberingSlots, zn as PropertyChangeInfo, zr as PreviewDescriptor, zt as FootnoteProperties } from "../document-BKejiFuk.js";
|
|
15
15
|
import { a as DeepReadonly, i as preservedChildGap, n as PreservedChild, o as RecordField, r as PreservedMarkup, s as WritableRecord, t as PreservedAttribute } from "../preservedMarkup-BWpGhchw.js";
|
|
16
|
-
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, CONTENT_CONTROL_LOCK, COUNTER_FORMATS, type CellMargins, type ColorValue, type Column, type Comment, type CommentRangeEnd, type CommentRangeStart, type CommentReference, type ComplexField, type ConditionalFormatStyle, type ContentControlChange, type ContentControlLock, type CounterFormat, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, type DeepReadonly, 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 KeptCut, type
|
|
16
|
+
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, CONTENT_CONTROL_LOCK, COUNTER_FORMATS, type CellMargins, type ColorValue, type Column, type Comment, type CommentRangeEnd, type CommentRangeStart, type CommentReference, type ComplexField, type ConditionalFormatStyle, type ContentControlChange, type ContentControlLock, type CounterFormat, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, type DeepReadonly, 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 KeptCut, type KeptCutHolders, type LevelLegacy, type LevelOverride, type LevelSuffix, type LineNumberRestart, type LineSpacingRule, type ListLevel, type ListMarkerFormatting, type ListRendering, type LockedControlSpan, type LockedControlTouch, type LockedControlViolation, 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 ParagraphMarkDeletion, 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 RecordField, 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, type WritableRecord, borderStyleFrom, borderStyleToken, contentControlLockAllows, finalizeParagraphFormatting, firstLockedControlViolation, getSingularRunPropertyChange, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isCanonicallyEmptyParagraphFormatting, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, levelShowsMarker, lockedControlMessage, lockedControlViolation, locksContent, locksControl, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, numberingInstanceResolves, numberingLevelEntries, numberingLevelHasMarkerSlot, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, paragraphSpacingExplicit, preservedChildGap, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveNumberingLevel, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, setDocumentBodyComments, statesNoBorder, themeColorSlot, themeColorToken };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as HeaderFooter, C as Relationship, Ct as DocumentBody, D as StyleDefinitions, Dn as ParagraphContent, En as Paragraph, Er as TrackedChangeInfo, Jr as AbstractNumbering, Lt as Footnote, On as ParagraphMarkChange, S as MediaFile, Si as TableRowFormatting, Ti as TextFormatting, Un as Run, Vt as HeaderFooterType, Wi as HeadingOutlineLevel, Wn as RunContent, Wt as INSERTION_SEAM_POLICIES, Xn as SectionProperties, Yn as Section, Zn as SectionPropertyChange, _i as TableFormatting, a as DocumentSettings, an as KeptCut, at as BlockContent, br as TableRow, ct as BookmarkEnd, dr as Table, dt as BreakContent, g as ExhaustiveFields, gi as TableCellFormatting, i as Document, ii as NumberingInstance, jn as ParagraphPropertyChange, kt as Endnote, pt as Comment, qn as SdtProperties, ri as NumberingDefinitions, s as DocxPackage, st as BlockSdt, ui as ParagraphFormatting, ur as TabContent } from "../document-
|
|
1
|
+
import { Bt as HeaderFooter, C as Relationship, Ct as DocumentBody, D as StyleDefinitions, Dn as ParagraphContent, En as Paragraph, Er as TrackedChangeInfo, Jr as AbstractNumbering, Lt as Footnote, On as ParagraphMarkChange, S as MediaFile, Si as TableRowFormatting, Ti as TextFormatting, Un as Run, Vt as HeaderFooterType, Wi as HeadingOutlineLevel, Wn as RunContent, Wt as INSERTION_SEAM_POLICIES, Xn as SectionProperties, Yn as Section, Zn as SectionPropertyChange, _i as TableFormatting, a as DocumentSettings, an as KeptCut, at as BlockContent, br as TableRow, ct as BookmarkEnd, dr as Table, dt as BreakContent, g as ExhaustiveFields, gi as TableCellFormatting, i as Document, ii as NumberingInstance, jn as ParagraphPropertyChange, kt as Endnote, pt as Comment, qn as SdtProperties, ri as NumberingDefinitions, s as DocxPackage, st as BlockSdt, ui as ParagraphFormatting, ur as TabContent } from "../document-BKejiFuk.js";
|
|
2
2
|
import { a as DeepReadonly, n as PreservedChild, o as RecordField } from "../preservedMarkup-BWpGhchw.js";
|
|
3
3
|
import { Result, TaggedErrorClass } from "better-result";
|
|
4
4
|
/** JSON-safe map presence, including an explicitly undefined section map. */
|
|
@@ -1026,7 +1026,10 @@ type SplitCellOp = TableEditTarget & {
|
|
|
1026
1026
|
type: typeof DOCUMENT_OP_TYPES.SPLIT_CELL;
|
|
1027
1027
|
newBlockIds: readonly string[];
|
|
1028
1028
|
};
|
|
1029
|
-
/**
|
|
1029
|
+
/**
|
|
1030
|
+
* Resize the existing logical grid without changing its topology. No widths
|
|
1031
|
+
* leaves the grid unmeasured, for a table laid out from its contents.
|
|
1032
|
+
*/
|
|
1030
1033
|
type SetTableGridOp = TableEditTarget & {
|
|
1031
1034
|
type: typeof DOCUMENT_OP_TYPES.SET_TABLE_GRID;
|
|
1032
1035
|
columnWidths: readonly number[];
|
|
@@ -1592,6 +1595,13 @@ type TrackedWrapper = Extract<InlineNode, {
|
|
|
1592
1595
|
}>;
|
|
1593
1596
|
/** The review fields a paragraph states, each only when present. */
|
|
1594
1597
|
export declare const reviewFieldsOf: (paragraph: ParagraphReviewFields) => ParagraphReviewFields;
|
|
1598
|
+
/**
|
|
1599
|
+
* The side of a kept marker whose pending change holds a piece of its cut,
|
|
1600
|
+
* as its holders name it: `both` where changes either side hold one. Derived
|
|
1601
|
+
* from {@link KeptCutHolders}; never stored.
|
|
1602
|
+
*/
|
|
1603
|
+
type KeptCutPiece = "before" | "after" | "both";
|
|
1604
|
+
export declare const isKeptCutPiece: (value: unknown) => value is KeptCutPiece;
|
|
1595
1605
|
type SeamJoins = NonNullable<TrackedWrapper["resolutionJoins"]>;
|
|
1596
1606
|
/**
|
|
1597
1607
|
* Kept markers a change's joins name in review history version 1: the
|
|
@@ -1612,13 +1622,14 @@ type VersionOneKept = {
|
|
|
1612
1622
|
groups: readonly (VersionOneKeptMarkers | undefined)[];
|
|
1613
1623
|
};
|
|
1614
1624
|
/** {@link withKeptCutsFromChanges} over a paragraph's content. */
|
|
1615
|
-
export declare const paragraphKeptCutsFromChanges: (content: readonly ParagraphContent[], writtenOnChange: (joins: SeamJoins) => VersionOneKept | undefined) => ParagraphContent[];
|
|
1625
|
+
export declare const paragraphKeptCutsFromChanges: (content: readonly ParagraphContent[], writtenOnChange: (joins: SeamJoins) => VersionOneKept | undefined, legacyPiece?: LegacyKeptCutPiece) => ParagraphContent[];
|
|
1616
1626
|
/**
|
|
1617
1627
|
* Whether `cut` is a well-formed kept cut: exactly its fields, kept from a
|
|
1618
|
-
* dated revision, naming
|
|
1619
|
-
* review history reader share it.
|
|
1628
|
+
* dated revision, naming the revisions holding its piece if any. The
|
|
1629
|
+
* contract and the review history reader share it.
|
|
1620
1630
|
*/
|
|
1621
1631
|
export declare const isKeptCut: (cut: unknown) => cut is KeptCut;
|
|
1632
|
+
type LegacyKeptCutPiece = (cut: KeptCut) => KeptCutPiece | undefined;
|
|
1622
1633
|
type NoteDeletionOpsOptions = {
|
|
1623
1634
|
/** The document before the tracked edit. */
|
|
1624
1635
|
before: Document;
|
|
@@ -1685,6 +1696,16 @@ type WithParagraphRenderingsOptions = {
|
|
|
1685
1696
|
export declare const withParagraphRenderings: ({ document, story, renderings }: WithParagraphRenderingsOptions) => Document | undefined;
|
|
1686
1697
|
/** Capture only fields owned by the lifecycle delta; absent values survive JSON as null. */
|
|
1687
1698
|
export declare const captureStoryParts: (document: Document, owned: StoryParts) => StoryParts;
|
|
1699
|
+
type StoryPartsOpOptions = {
|
|
1700
|
+
before: Document;
|
|
1701
|
+
after: Document;
|
|
1702
|
+
};
|
|
1703
|
+
/**
|
|
1704
|
+
* The operation that turns `before`'s story parts (body, sections, headers,
|
|
1705
|
+
* footers, notes and settings) into `after`'s, for an edit computed on the
|
|
1706
|
+
* whole document; it is stale-checked against `before`.
|
|
1707
|
+
*/
|
|
1708
|
+
export declare const storyPartsOpOf: ({ before, after }: StoryPartsOpOptions) => RestoreStoryPartsOp;
|
|
1688
1709
|
export declare const sectionPropertiesAt: (document: Document, sectionIndex: number) => SectionProperties | undefined;
|
|
1689
1710
|
/**
|
|
1690
1711
|
* A text box's `w:txbxContent`: a story drawn in a paragraph of another
|
|
@@ -1819,6 +1840,13 @@ export declare const paragraphContentVerdict: ({ width, zeroWidthItems }: {
|
|
|
1819
1840
|
width: number;
|
|
1820
1841
|
zeroWidthItems: Iterable<ZeroWidthItem>;
|
|
1821
1842
|
}) => ParagraphContentVerdict;
|
|
1843
|
+
/** Whether a paragraph holds content its mark must not take away. */
|
|
1844
|
+
export declare const paragraphHoldsContent: (paragraph: Paragraph) => ParagraphContentVerdict;
|
|
1845
|
+
/**
|
|
1846
|
+
* Whether a paragraph still holds content once every change in it is
|
|
1847
|
+
* accepted: what its pending deletions and moves away hold does not count.
|
|
1848
|
+
*/
|
|
1849
|
+
export declare const paragraphHoldsContentOnceAccepted: (paragraph: Paragraph) => ParagraphContentVerdict;
|
|
1822
1850
|
/** The number of logical units in a paragraph: its largest valid offset. */
|
|
1823
1851
|
export declare const paragraphLength: (paragraph: Paragraph) => number;
|
|
1824
1852
|
/** A comment reference and the offset of the unit it takes. */
|
|
@@ -2080,6 +2108,11 @@ type HyperlinkEditorIntent = {
|
|
|
2080
2108
|
href: string;
|
|
2081
2109
|
tooltip?: string;
|
|
2082
2110
|
};
|
|
2111
|
+
/** The notes and comments pasted references and markers name, by those ids. */
|
|
2112
|
+
type PasteAnnotations = {
|
|
2113
|
+
notes: readonly (Footnote | Endnote)[];
|
|
2114
|
+
comments: readonly Comment[];
|
|
2115
|
+
};
|
|
2083
2116
|
/** Accepted-view text without changing the canonical paragraph or its offset space. */
|
|
2084
2117
|
export declare const paragraphVisibleText: (paragraph: Paragraph) => string;
|
|
2085
2118
|
type SplitParagraphIntent = {
|
|
@@ -2200,6 +2233,25 @@ type EditorIntent = HyperlinkEditorIntent | GenerateTOCIntent | {
|
|
|
2200
2233
|
paragraphs: readonly Paragraph[];
|
|
2201
2234
|
openStart: 0 | 1;
|
|
2202
2235
|
openEnd: 0 | 1;
|
|
2236
|
+
} | {
|
|
2237
|
+
/**
|
|
2238
|
+
* Clipboard blocks, tables among them, over a range: the range is
|
|
2239
|
+
* cleared, an open first or last paragraph joins the text at its edge,
|
|
2240
|
+
* and the blocks between go in before the caret's paragraph, split at
|
|
2241
|
+
* the caret when text stands before it. Without a table it is
|
|
2242
|
+
* `replaceFragment`.
|
|
2243
|
+
*/
|
|
2244
|
+
type: "pasteBlocks";
|
|
2245
|
+
from: TextPosition;
|
|
2246
|
+
to: TextPosition;
|
|
2247
|
+
blocks: readonly (Paragraph | Table)[];
|
|
2248
|
+
openStart: 0 | 1;
|
|
2249
|
+
openEnd: 0 | 1;
|
|
2250
|
+
/**
|
|
2251
|
+
* The notes and comments the blocks' references and markers name, by
|
|
2252
|
+
* those ids: each is copied under a fresh id where its reference lands.
|
|
2253
|
+
*/
|
|
2254
|
+
annotations?: PasteAnnotations;
|
|
2203
2255
|
} | {
|
|
2204
2256
|
type: "moveFragment";
|
|
2205
2257
|
from: TextPosition;
|
|
@@ -2700,6 +2752,24 @@ type SequencedOpEffect = {
|
|
|
2700
2752
|
to: Gap;
|
|
2701
2753
|
keptMark?: Gap;
|
|
2702
2754
|
}[];
|
|
2755
|
+
} | {
|
|
2756
|
+
type: "insertBlocks";
|
|
2757
|
+
/**
|
|
2758
|
+
* For an insertion before or after a paragraph: the revisions of the
|
|
2759
|
+
* marks of that paragraph and of the paragraph before it in reading
|
|
2760
|
+
* order (the mark itself, a deletion it holds, and the mark it took
|
|
2761
|
+
* over), and of the table rows and cells holding it. Resolving one
|
|
2762
|
+
* joins or removes a paragraph beside the insertion, or the row or
|
|
2763
|
+
* cell around it, which comes out differently with and without the
|
|
2764
|
+
* inserted paragraphs; a concurrent decision naming none passes a
|
|
2765
|
+
* direct insertion.
|
|
2766
|
+
*
|
|
2767
|
+
* Compatibility: a journal sequenced before this effect recorded
|
|
2768
|
+
* {@link NO_SEQUENCED_EFFECT} for such an insertion, which still reads
|
|
2769
|
+
* and replays; a decision rebased over one is refused, since it names
|
|
2770
|
+
* no bordering revisions.
|
|
2771
|
+
*/
|
|
2772
|
+
borderingRevisionIds: readonly number[];
|
|
2703
2773
|
} | {
|
|
2704
2774
|
type: "touchedBlocks";
|
|
2705
2775
|
/** Paragraphs the operation changed, inserted or removed. */
|
|
@@ -3089,4 +3159,4 @@ export declare const preservedCommentRangeMarkersAt: (children: readonly Preserv
|
|
|
3089
3159
|
export declare const storyBody: (document: Document, story: OpStory) => DocumentBody;
|
|
3090
3160
|
export declare const findStoryBody: (document: Document, story: OpStory) => DocumentBody | undefined;
|
|
3091
3161
|
export declare const sameStory: (left: OpStory, right: OpStory) => boolean;
|
|
3092
|
-
export type { AddNoteOp, AppliedDocumentOp, BatchAck, BatchAnnotationKind, BatchBlockAccess, BatchOrderAddress, BatchReject, BatchRejectionReason, BatchSubmission, BlockBoundary, BlockInsertionPoint, BoundaryOccurrence, ClientDocumentChange, ClientNotice, CommentAnchor, CommentExhaustionInput, CommentReferenceOffset, CommentState, CopyOriginAncestorList, CreateCommentOp, CreateHeaderFooterOp, CreateNumberingInstanceOp, DeleteBlocksOp, DeleteColumnOp, DeleteCommentOp, DeleteNumberingInstanceOp, DeleteRangeOp, DeleteRowOp, DeleteTableOp, DocumentBatch, DocumentOp, DocumentOpEnvelope, DocumentOpRefusalReason, DocumentOpType, EditorIntent, EditorIntentMode, EmptyPropertySet, ExclusivePart, FinalBreakCandidate, FinalBreakCarrier, FormattingPatch, HeaderFooterStory, IdBlock, IdLease, IdLeaseGrant, IdLeaseKind, IdLeaseMinted, IdLeaseRefusalReason, IdLeaseState, InlineSlice, InsertBlocksOp, InsertColumnOp, InsertContentOp, InsertRowOp, InsertTableOp, InsertTextOp, InsertedRunProps, JoinBlocksOp, JoinInlineOp, LeasedId, LeasedIdCensus, MergeCellsOp, NewIds, NewListInstance, NoteStory, NumberingPartState, OpStory, PackageResourceEntry, PackageResourceEntryChange, PackageResourceMapChange, PackageResourceMedia, PackageResourcePart, PackageResources, ParagraphAbsorption, ParagraphContentVerdict, ParagraphPropsPatch, ParagraphReviewFields, PlanTrackedDeletionOptions, PlanTrackedReplaceOptions, PreservedCommentRangeMarker, RecordedRevisionIds, RemoveHeaderFooterOp, RemoveNoteOp, ReplaceBlocksOp, ReplaceInlineOp, ResolveRevisionOp, ResolvedDocumentView, RestoreCommentStateOp, RestoreStoryPartsOp, RevisionAbsorption, RevisionDecision, RevisionStamp, RunPropsPatch, SectionEndpoint, SectionMapState, SectionPropertiesState, SectionViewEntry, SectionViewState, SequencedBatch, SequencerOptions, SetCellPropsOp, SetCommentResolutionOp, SetContainerBlocksOp, SetContentControlOp, SetPackageResourcesOp, SetParagraphPropsOp, SetParagraphReviewOp, SetRowPropsOp, SetRunPropsOp, SetSectionEndpointOp, SetSectionPropsOp, SetTableGridOp, SetTableOp, SetTablePropsOp, SetTableRowsOp, SplitBlockOp, SplitCellOp, SplitHalf, SplitInlineOp, SplitParagraphFields, StoryParts, TableBlockIntentOperation, TableEditOp, TableInsertionPoint, TableIntentOperation, TableRowIntentOperation, TextPosition, TouchedBlocks, UpdateCommentContentOp, VersionOneKept, VersionOneKeptMarkers, WellFormedRangePlan, ZeroWidthItem };
|
|
3162
|
+
export type { AddNoteOp, AppliedDocumentOp, BatchAck, BatchAnnotationKind, BatchBlockAccess, BatchOrderAddress, BatchReject, BatchRejectionReason, BatchSubmission, BlockBoundary, BlockInsertionPoint, BoundaryOccurrence, ClientDocumentChange, ClientNotice, CommentAnchor, CommentExhaustionInput, CommentReferenceOffset, CommentState, CopyOriginAncestorList, CreateCommentOp, CreateHeaderFooterOp, CreateNumberingInstanceOp, DeleteBlocksOp, DeleteColumnOp, DeleteCommentOp, DeleteNumberingInstanceOp, DeleteRangeOp, DeleteRowOp, DeleteTableOp, DocumentBatch, DocumentOp, DocumentOpEnvelope, DocumentOpRefusalReason, DocumentOpType, EditorIntent, EditorIntentMode, EmptyPropertySet, ExclusivePart, FinalBreakCandidate, FinalBreakCarrier, FormattingPatch, HeaderFooterStory, IdBlock, IdLease, IdLeaseGrant, IdLeaseKind, IdLeaseMinted, IdLeaseRefusalReason, IdLeaseState, InlineSlice, InsertBlocksOp, InsertColumnOp, InsertContentOp, InsertRowOp, InsertTableOp, InsertTextOp, InsertedRunProps, JoinBlocksOp, JoinInlineOp, KeptCutPiece, LeasedId, LeasedIdCensus, MergeCellsOp, NewIds, NewListInstance, NoteStory, NumberingPartState, OpStory, PackageResourceEntry, PackageResourceEntryChange, PackageResourceMapChange, PackageResourceMedia, PackageResourcePart, PackageResources, ParagraphAbsorption, ParagraphContentVerdict, ParagraphPropsPatch, ParagraphReviewFields, PasteAnnotations, PlanTrackedDeletionOptions, PlanTrackedReplaceOptions, PreservedCommentRangeMarker, RecordedRevisionIds, RemoveHeaderFooterOp, RemoveNoteOp, ReplaceBlocksOp, ReplaceInlineOp, ResolveRevisionOp, ResolvedDocumentView, RestoreCommentStateOp, RestoreStoryPartsOp, RevisionAbsorption, RevisionDecision, RevisionStamp, RunPropsPatch, SectionEndpoint, SectionMapState, SectionPropertiesState, SectionViewEntry, SectionViewState, SequencedBatch, SequencerOptions, SetCellPropsOp, SetCommentResolutionOp, SetContainerBlocksOp, SetContentControlOp, SetPackageResourcesOp, SetParagraphPropsOp, SetParagraphReviewOp, SetRowPropsOp, SetRunPropsOp, SetSectionEndpointOp, SetSectionPropsOp, SetTableGridOp, SetTableOp, SetTablePropsOp, SetTableRowsOp, SplitBlockOp, SplitCellOp, SplitHalf, SplitInlineOp, SplitParagraphFields, StoryParts, TableBlockIntentOperation, TableEditOp, TableInsertionPoint, TableIntentOperation, TableRowIntentOperation, TextPosition, TouchedBlocks, UpdateCommentContentOp, VersionOneKept, VersionOneKeptMarkers, WellFormedRangePlan, ZeroWidthItem };
|