@stll/docx-core 0.36.3 → 0.38.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/{document-CQ0oovh0.js → document-C02Ulybe.js} +27 -1
- package/dist/{document-YlRuGzLX.d.ts → document-wNmygRXS.d.ts} +23 -1
- package/dist/docx_kernel_bg.wasm +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -14
- package/dist/model/document.d.ts +2 -2
- package/dist/model/document.js +2 -2
- package/dist/ops/documentOps.d.ts +43 -37
- package/dist/ops/documentOps.js +1149 -996
- package/dist/zip/writeZipPart.js +8 -3
- package/package.json +14 -7
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { panic } from "better-result";
|
|
2
|
+
//#region src/model/runPropertyReview.ts
|
|
3
|
+
/** A run-property container has one pending formatting revision. */
|
|
4
|
+
const getSingularRunPropertyChange = (propertyChanges) => {
|
|
5
|
+
const propertyChangeCount = propertyChanges?.length ?? 0;
|
|
6
|
+
if (propertyChangeCount > 1) panic("A run-property container cannot serialize more than one w:rPrChange", {
|
|
7
|
+
elementName: "w:rPrChange",
|
|
8
|
+
propertyChangeCount
|
|
9
|
+
});
|
|
10
|
+
return propertyChanges?.at(0);
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
2
13
|
//#region src/model/parseWarning.ts
|
|
3
14
|
/**
|
|
4
15
|
* What folio normalised to open a document, as data rather than as prose.
|
|
@@ -31,6 +42,8 @@ const PARSE_WARNING_CODES = {
|
|
|
31
42
|
documentModelIssue: "document-model-issue",
|
|
32
43
|
/** A later `w:comment` repeating a `w:id` an earlier one defines. */
|
|
33
44
|
duplicateCommentId: "duplicate-comment-id",
|
|
45
|
+
/** A source definition repeats an identity in its part or package scope. */
|
|
46
|
+
duplicateImportedId: "duplicate-imported-id",
|
|
34
47
|
/** A `w:comment` with no readable `w:id`; it can anchor nothing. */
|
|
35
48
|
missingCommentId: "missing-comment-id",
|
|
36
49
|
/** A later `w:footnote`/`w:endnote` repeating an id an earlier one defines. */
|
|
@@ -76,6 +89,19 @@ const PARSE_WARNING_CODES = {
|
|
|
76
89
|
/** A row nested where the table model can only preserve it as opaque markup. */
|
|
77
90
|
nestedRowOpaque: "nested-row-opaque"
|
|
78
91
|
};
|
|
92
|
+
const IMPORTED_ID_COLLISION_KINDS = {
|
|
93
|
+
bookmark: "bookmark",
|
|
94
|
+
comment: "comment",
|
|
95
|
+
footnote: "footnote",
|
|
96
|
+
endnote: "endnote",
|
|
97
|
+
revision: "revision",
|
|
98
|
+
paraId: "paraId",
|
|
99
|
+
textId: "textId",
|
|
100
|
+
numId: "numId",
|
|
101
|
+
abstractNumId: "abstractNumId",
|
|
102
|
+
drawing: "drawing",
|
|
103
|
+
relationship: "relationship"
|
|
104
|
+
};
|
|
79
105
|
/**
|
|
80
106
|
* The cap on retained warnings per code.
|
|
81
107
|
*
|
|
@@ -1237,4 +1263,4 @@ const COMMENT_PART_RELATIONSHIPS = {
|
|
|
1237
1263
|
}
|
|
1238
1264
|
};
|
|
1239
1265
|
//#endregion
|
|
1240
|
-
export { mergeParagraphNumbering as $, TEXT_DIRECTIONS as A, themeColorToken as B, isBorderStyle as C, PARAGRAPH_ALIGNMENTS as D, NUMBER_FORMATS as E, isSchemeColorValue as F, headingLevelOf as G, mintRelationshipId as H, isThemeColor as I, outlineLevelStatedValue as J, headingOutlineLevel as K, knownThemeColor as L, TEXT_DIRECTION_FLOW_BY_TOKEN as M, SCHEME_COLOR_VALUE_BY_THEME_COLOR as N, TABLE_ALIGNMENTS as O, THEME_COLOR_BY_SCHEME_COLOR_VALUE as P, isNumberingReference as Q, readThemeColor as R, isBorderNone as S, BORDER_STYLES as T, relationshipIdOf as U, THEME_COLORS as V, BODY_TEXT_OUTLINE_LEVEL as W, NO_NUMBERING_NUM_ID as X, isNumberingLevel as Y, NO_PARAGRAPH_NUMBERING as Z, presetLineDashToken as _, DRAWING_RAW_XML_MODES as a, resolveParagraphNumbering as at, borderStyleToken as b, PARAGRAPH_MARK_CHANGE_KINDS as c,
|
|
1266
|
+
export { mergeParagraphNumbering as $, TEXT_DIRECTIONS as A, themeColorToken as B, isBorderStyle as C, PARAGRAPH_ALIGNMENTS as D, NUMBER_FORMATS as E, isSchemeColorValue as F, headingLevelOf as G, mintRelationshipId as H, isThemeColor as I, outlineLevelStatedValue as J, headingOutlineLevel as K, knownThemeColor as L, TEXT_DIRECTION_FLOW_BY_TOKEN as M, SCHEME_COLOR_VALUE_BY_THEME_COLOR as N, TABLE_ALIGNMENTS as O, THEME_COLOR_BY_SCHEME_COLOR_VALUE as P, isNumberingReference as Q, readThemeColor as R, isBorderNone as S, BORDER_STYLES as T, relationshipIdOf as U, THEME_COLORS as V, BODY_TEXT_OUTLINE_LEVEL as W, NO_NUMBERING_NUM_ID as X, isNumberingLevel as Y, NO_PARAGRAPH_NUMBERING as Z, presetLineDashToken as _, DRAWING_RAW_XML_MODES as a, resolveParagraphNumbering as at, borderStyleToken as b, PARAGRAPH_MARK_CHANGE_KINDS as c, IMPORTED_ID_COLLISION_KINDS as ct, isNoteReferenceId as d, getSingularRunPropertyChange as dt, paragraphNumberingFromSlots as et, isOoxmlSymbolCharacter as f, presetLineDashFrom as g, isPresetLineDashVal as h, BIDI_CONTROLS as i, paragraphNumberingSlots as it, TEXT_DIRECTION_FLOWS as j, TAB_STOP_ALIGNMENTS as k, PROPERTY_REVISION_KINDS as l, MAX_RETAINED_PARSE_WARNINGS_PER_CODE as lt, COUNTER_FORMATS as m, DEFAULT_TAB_STOP_TWIPS as n, paragraphNumberingReference as nt, INSERTION_SEAM_POLICIES as o, sameEffectiveParagraphNumbering as ot, normalizeRevisionId as p, outlineLevelFromStatedValue as q, DOCX_CONFORMANCE_CLASSES as r, paragraphNumberingReferenceId as rt, MAX_REVISION_ID as s, sameStatedParagraphNumbering as st, COMMENT_PART_RELATIONSHIPS as t, paragraphNumberingLevel as tt, REVIEW_CARRIERS as u, PARSE_WARNING_CODES as ut, PRESET_LINE_DASH_VALS as v, statesNoBorder as w, isBorderNil as x, borderStyleFrom as y, themeColorSlot as z };
|
|
@@ -3738,6 +3738,10 @@ type DocumentBody = {
|
|
|
3738
3738
|
comments?: Comment[];
|
|
3739
3739
|
};
|
|
3740
3740
|
//#endregion
|
|
3741
|
+
//#region src/model/runPropertyReview.d.ts
|
|
3742
|
+
/** A run-property container has one pending formatting revision. */
|
|
3743
|
+
declare const getSingularRunPropertyChange: (propertyChanges: readonly RunPropertyChange[] | undefined) => RunPropertyChange | undefined;
|
|
3744
|
+
//#endregion
|
|
3741
3745
|
//#region src/model/parseWarning.d.ts
|
|
3742
3746
|
/**
|
|
3743
3747
|
* What folio normalised to open a document, as data rather than as prose.
|
|
@@ -3770,6 +3774,8 @@ declare const PARSE_WARNING_CODES: {
|
|
|
3770
3774
|
readonly documentModelIssue: "document-model-issue";
|
|
3771
3775
|
/** A later `w:comment` repeating a `w:id` an earlier one defines. */
|
|
3772
3776
|
readonly duplicateCommentId: "duplicate-comment-id";
|
|
3777
|
+
/** A source definition repeats an identity in its part or package scope. */
|
|
3778
|
+
readonly duplicateImportedId: "duplicate-imported-id";
|
|
3773
3779
|
/** A `w:comment` with no readable `w:id`; it can anchor nothing. */
|
|
3774
3780
|
readonly missingCommentId: "missing-comment-id";
|
|
3775
3781
|
/** A later `w:footnote`/`w:endnote` repeating an id an earlier one defines. */
|
|
@@ -3815,6 +3821,20 @@ declare const PARSE_WARNING_CODES: {
|
|
|
3815
3821
|
/** A row nested where the table model can only preserve it as opaque markup. */
|
|
3816
3822
|
readonly nestedRowOpaque: "nested-row-opaque";
|
|
3817
3823
|
};
|
|
3824
|
+
declare const IMPORTED_ID_COLLISION_KINDS: {
|
|
3825
|
+
readonly bookmark: "bookmark";
|
|
3826
|
+
readonly comment: "comment";
|
|
3827
|
+
readonly footnote: "footnote";
|
|
3828
|
+
readonly endnote: "endnote";
|
|
3829
|
+
readonly revision: "revision";
|
|
3830
|
+
readonly paraId: "paraId";
|
|
3831
|
+
readonly textId: "textId";
|
|
3832
|
+
readonly numId: "numId";
|
|
3833
|
+
readonly abstractNumId: "abstractNumId";
|
|
3834
|
+
readonly drawing: "drawing";
|
|
3835
|
+
readonly relationship: "relationship";
|
|
3836
|
+
};
|
|
3837
|
+
type ImportedIdCollisionKind = (typeof IMPORTED_ID_COLLISION_KINDS)[keyof typeof IMPORTED_ID_COLLISION_KINDS];
|
|
3818
3838
|
type ParseWarningCode = (typeof PARSE_WARNING_CODES)[keyof typeof PARSE_WARNING_CODES];
|
|
3819
3839
|
/** Where a warning happened, as precisely as the part can say. */
|
|
3820
3840
|
type ParseWarningLocation = {
|
|
@@ -3831,6 +3851,8 @@ type ParseWarningLocation = {
|
|
|
3831
3851
|
};
|
|
3832
3852
|
type ParseWarning = {
|
|
3833
3853
|
code: ParseWarningCode;
|
|
3854
|
+
/** The identity domain, for imported collision diagnostics. */
|
|
3855
|
+
identityKind?: ImportedIdCollisionKind;
|
|
3834
3856
|
location: ParseWarningLocation;
|
|
3835
3857
|
/** The value folio declined to read, exactly as the source wrote it. */
|
|
3836
3858
|
value?: string;
|
|
@@ -4293,4 +4315,4 @@ declare const COMMENT_PART_RELATIONSHIPS: {
|
|
|
4293
4315
|
};
|
|
4294
4316
|
};
|
|
4295
4317
|
//#endregion
|
|
4296
|
-
export {
|
|
4318
|
+
export { DocumentBackgroundDrawing as $, ThemeColor as $i, TextWatermark as $n, TextFormatting as $r, PROPERTY_REVISION_KINDS as $t, ParseWarning as A, TEXT_DIRECTIONS as Ai, ShapeFill as An, ListRendering as Ar, ImageWrap as At, BookmarkRangeMarker as B, SCHEME_COLOR_VALUE_BY_THEME_COLOR as Bi, TableCell as Bn, TabLeader as Br, MoveBookmarkMarker as Bt, ThemeColorScheme as C, outlineLevelStatedValue as Ci, Section as Cn, COUNTER_FORMATS as Cr, ImageCrop as Ct, ImportedIdCollisionKind as D, ParagraphAlignment as Di, Shape as Dn, LevelSuffix as Dr, ImagePosition as Dt, IMPORTED_ID_COLLISION_KINDS as E, PARAGRAPH_ALIGNMENTS as Ei, SectionStart as En, LevelOverride as Er, ImagePadding as Et, BidiControl as F, TextDirection as Fi, SimpleField as Fn, EmphasisMark as Fr, InstrTextContent as Ft, CommentRangeEnd as G, isThemeColor as Gi, TablePreservedMarkup as Gn, TableFormatting as Gr, MoveToRangeEnd as Gt, BreakContent as H, ThemeColorValue as Hi, TableCellPropertyChange as Hn, TableBorders as Hr, MoveFromRangeEnd as Ht, BlockContent as I, TextDirectionFlow as Ii, SoftHyphenContent as In, FloatingTableProperties as Ir, LineNumberRestart as It, ComplexField as J, themeColorSlot as Ji, TableRow as Jn, TableMeasurement as Jr, NonVisualDrawingNames as Jt, CommentRangeStart as K, knownThemeColor as Ki, TablePropertyChange as Kn, TableGridChange as Kr, MoveToRangeStart as Kt, BlockCustomXml as L, BorderSpec as Li, SymbolContent as Ln, LineSpacingRule as Lr, MAX_REVISION_ID as Lt, ParseWarningLocation as M, TEXT_DIRECTION_FLOW_BY_TOKEN as Mi, ShapeOutline as Mn, NumberingInstance as Mr, InlineSdt as Mt, getSingularRunPropertyChange as N, TabStopAlignment as Ni, ShapeTextBody as Nn, CellMargins as Nr, InlineWrapper as Nt, MAX_RETAINED_PARSE_WARNINGS_PER_CODE as O, TABLE_ALIGNMENTS as Oi, ShapeAlternateContent as On, ListLevel as Or, ImageSize as Ot, BIDI_CONTROLS as P, TableAlignment as Pi, ShapeType as Pn, ConditionalFormatStyle as Pr, Insertion as Pt, DocumentBackground as Q, THEME_COLORS as Qi, TextContent as Qn, TextEffect as Qr, PARAGRAPH_MARK_CHANGE_KINDS as Qt, BlockSdt as R, ColorValue as Ri, TabContent as Rn, ParagraphFormatting as Rr, MarkupRangeMarker as Rt, Theme as S, outlineLevelFromStatedValue as Si, SdtType as Sn, AbstractNumbering as Sr, Image as St, ThemeFontScheme as T, NumberFormat as Ti, SectionPropertyChange as Tn, LevelLegacy as Tr, ImageFrameLocks as Tt, Column as U, UnrecognisedThemeColor as Ui, TableContentCarrier as Un, TableCellBorders as Ur, MoveFromRangeStart as Ut, BookmarkStart as V, THEME_COLOR_BY_SCHEME_COLOR_VALUE as Vi, TableCellBlock as Vn, TabStop as Vr, MoveFrom as Vt, Comment as W, isSchemeColorValue as Wi, TableCustomXmlWrapper as Wn, TableCellFormatting as Wr, MoveTo as Wt, Deletion as X, SchemeColorSlot as Xi, TableStructuralChangeInfo as Xn, TableRowFormatting as Xr, NoteNumberRestart as Xt, DRAWING_RAW_XML_MODES as Y, themeColorToken as Yi, TableRowPropertyChange as Yn, TablePropertyExceptionFormatting as Yr, NoteMarkerContent as Yt, DisplacedByCustomXml as Z, SchemeColorValue as Zi, TextBox as Zn, TableWidthType as Zr, NoteReferenceContent as Zt, RelationshipMap as _, BODY_TEXT_OUTLINE_LEVEL as _i, Run as _n, RelationshipId as _r, HeaderFooter as _t, DocumentSettings as a, isBorderNone as aa, ParagraphNumberingSlots as ai, ParagraphPropertyChange as an, WrapDistanceSlots as ar, EffectExtentSlots as at, StyleDefinitions as b, headingLevelOf as bi, SdtEndProperties as bn, PreviewDescriptor as br, Hyperlink as bt, isNumberingLevel as c, BORDER_STYLES as ca, mergeParagraphNumbering as ci, PositionedBookmarkMarker as cn, isOoxmlSymbolCharacter as cr, EndnoteProperties as ct, EmbeddedFontRef as d, paragraphNumberingReference as di, PreservedXmlContent as dn, UnrecognisedPresetLineDash as dr, FieldType as dt, BorderStyleValue as ea, UnderlineStyle as ei, PageOrientation as en, TrackedChangeInfo as er, DocumentBody as et, FontCharset as f, paragraphNumberingReferenceId as fi, PropertyChange as fn, isPresetLineDashVal as fr, FoldedListNumber as ft, Relationship as g, sameStatedParagraphNumbering as gi, ReviewCarrier as gn, PresetLineDashVal as gr, FootnoteProperties as gt, MediaFile as h, sameEffectiveParagraphNumbering as hi, REVIEW_CARRIERS as hn, PRESET_LINE_DASH_VALS as hr, FootnotePosition as ht, Document as i, isBorderNil as ia, ParagraphNumberingReference as ii, ParagraphMarkChangeKind as in, Watermark as ir, DrawingRawXmlMode as it, ParseWarningCode as j, TEXT_DIRECTION_FLOWS as ji, ShapeGeometryAdjustment as jn, NumberingDefinitions as jr, ImageWrapPolygon as jt, PARSE_WARNING_CODES as k, TAB_STOP_ALIGNMENTS as ki, ShapeContent as kn, ListMarkerFormatting as kr, ImageTransform as kt, ExhaustiveFields as l, BorderStyle as la, paragraphNumberingFromSlots as li, PreservedBlock as ln, normalizeRevisionId as lr, Field as lt, FontTable as m, resolveParagraphNumbering as mi, PropertyRevisionKind as mn, presetLineDashToken as mr, Footnote as mt, DEFAULT_TAB_STOP_TWIPS as n, borderStyleFrom as na, NO_PARAGRAPH_NUMBERING as ni, ParagraphContent as nn, TrackedRunContent as nr, DrawingContent as nt, DocxConformanceClass as o, isBorderStyle as oa, ResolvedParagraphNumbering as oi, PictureWatermark as on, WrapDistances as or, Endnote as ot, FontInfo as p, paragraphNumberingSlots as pi, PropertyChangeInfo as pn, presetLineDashFrom as pr, FooterReference as pt, CommentReference as q, readThemeColor as qi, TablePropertyExceptionChange as qn, TableLook as qr, NoBreakHyphenContent as qt, DOCX_CONFORMANCE_CLASSES as r, borderStyleToken as ra, ParagraphNumberingOverride as ri, ParagraphMarkChange as rn, VerticalAlign as rr, DrawingGroupChild as rt, DocxPackage as s, statesNoBorder as sa, isNumberingReference as si, PositionalTab as sn, WrapPolygonPoint as sr, EndnotePosition as st, COMMENT_PART_RELATIONSHIPS as t, UnrecognisedBorderStyle as ta, NO_NUMBERING_NUM_ID as ti, Paragraph as tn, TrackedRunChange as tr, DrawingAnchor as tt, DocDefaults as u, paragraphNumberingLevel as ui, PreservedInline as un, PresetLineDashValue as ur, FieldCharContent as ut, RelationshipType as v, HeadingOutlineLevel as vi, RunContent as vn, mintRelationshipId as vr, HeaderFooterType as vt, ThemeFont as w, NUMBER_FORMATS as wi, SectionProperties as wn, CounterFormat as wr, ImageDocPrLink as wt, StyleType as x, headingOutlineLevel as xi, SdtProperties as xn, PreviewShape as xr, INSERTION_SEAM_POLICIES as xt, Style as y, OutlineLevel as yi, RunPropertyChange as yn, relationshipIdOf as yr, HeaderReference as yt, BookmarkEnd as z, ShadingProperties as zi, Table as zn, SpacingExplicit as zr, MathEquation as zt };
|
package/dist/docx_kernel_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $ as DocumentBackgroundDrawing, Bn as TableCell, H as BreakContent, I as BlockContent, Jn as TableRow, Q as DocumentBackground, Qn as TextContent, _n as Run, et as DocumentBody, i as Document, jr as NumberingDefinitions, nn as ParagraphContent, o as DocxConformanceClass, r as DOCX_CONFORMANCE_CLASSES, s as DocxPackage, sn as PositionalTab, tn as Paragraph, vn as RunContent, wn as SectionProperties, y as Style, zn as Table } from "./document-wNmygRXS.js";
|
|
2
2
|
import JSZip from "jszip";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
//#region src/legal-source/types.d.ts
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { K as headingOutlineLevel, b as borderStyleToken, d as isNoteReferenceId, f as isOoxmlSymbolCharacter, it as paragraphNumberingSlots, nt as paragraphNumberingReference, r as DOCX_CONFORMANCE_CLASSES, rt as paragraphNumberingReferenceId, s as MAX_REVISION_ID, tt as paragraphNumberingLevel, w as statesNoBorder } from "./document-
|
|
1
|
+
import { K as headingOutlineLevel, b as borderStyleToken, d as isNoteReferenceId, f as isOoxmlSymbolCharacter, it as paragraphNumberingSlots, nt as paragraphNumberingReference, r as DOCX_CONFORMANCE_CLASSES, rt as paragraphNumberingReferenceId, s as MAX_REVISION_ID, tt as paragraphNumberingLevel, w as statesNoBorder } from "./document-C02Ulybe.js";
|
|
2
2
|
import { writeZipPart } from "./zip/writeZipPart.js";
|
|
3
3
|
import { i as serializeSequenceChildren } from "./sequenceChildren-B8ODeI3J.js";
|
|
4
4
|
import { a as hasIllegalXmlCharacters, i as escapeXmlText, n as sanitizeMarkdownHref, o as sanitizeXmlCharacters, r as escapeXmlAttribute, t as sanitizeExternalUrl } from "./href-2XSCK-T8.js";
|
|
5
5
|
import { Result, TaggedError, panic } from "better-result";
|
|
6
|
+
import { decodeText, encodeUtf8 } from "@stll/utf8-boundaries";
|
|
6
7
|
import JSZip from "jszip";
|
|
7
8
|
import { XMLParser, XMLValidator } from "fast-xml-parser";
|
|
8
9
|
import { ENTITY_ACTION, EntityDecoder } from "@nodable/entities";
|
|
@@ -366,51 +367,51 @@ const serializeDocumentToDocx = async (document, options = {}) => {
|
|
|
366
367
|
writeZipPart({
|
|
367
368
|
zip,
|
|
368
369
|
path: "[Content_Types].xml",
|
|
369
|
-
data: contentTypesXml(hasNumbering)
|
|
370
|
+
data: encodeUtf8(contentTypesXml(hasNumbering))
|
|
370
371
|
});
|
|
371
372
|
writeZipPart({
|
|
372
373
|
zip,
|
|
373
374
|
path: "_rels/.rels",
|
|
374
|
-
data: ROOT_RELS_XML
|
|
375
|
+
data: encodeUtf8(ROOT_RELS_XML)
|
|
375
376
|
});
|
|
376
377
|
writeZipPart({
|
|
377
378
|
zip,
|
|
378
379
|
path: "docProps/app.xml",
|
|
379
|
-
data: APP_XML
|
|
380
|
+
data: encodeUtf8(APP_XML)
|
|
380
381
|
});
|
|
381
382
|
writeZipPart({
|
|
382
383
|
zip,
|
|
383
384
|
path: "docProps/core.xml",
|
|
384
|
-
data: serializeCoreProperties(document)
|
|
385
|
+
data: encodeUtf8(serializeCoreProperties(document))
|
|
385
386
|
});
|
|
386
387
|
writeZipPart({
|
|
387
388
|
zip,
|
|
388
389
|
path: "word/document.xml",
|
|
389
|
-
data: serializeDocumentXml(document)
|
|
390
|
+
data: encodeUtf8(serializeDocumentXml(document))
|
|
390
391
|
});
|
|
391
392
|
writeZipPart({
|
|
392
393
|
zip,
|
|
393
394
|
path: "word/styles.xml",
|
|
394
|
-
data: serializeStyles(document.package.styles)
|
|
395
|
+
data: encodeUtf8(serializeStyles(document.package.styles))
|
|
395
396
|
});
|
|
396
397
|
if (hasNumbering) writeZipPart({
|
|
397
398
|
zip,
|
|
398
399
|
path: "word/numbering.xml",
|
|
399
|
-
data: serializeNumbering(document.package.numbering)
|
|
400
|
+
data: encodeUtf8(serializeNumbering(document.package.numbering))
|
|
400
401
|
});
|
|
401
402
|
writeZipPart({
|
|
402
403
|
zip,
|
|
403
404
|
path: `word/${DEFAULT_FOOTER_PART_NAME}`,
|
|
404
|
-
data: buildFooterXml(options.language)
|
|
405
|
+
data: encodeUtf8(buildFooterXml(options.language))
|
|
405
406
|
});
|
|
406
407
|
writeZipPart({
|
|
407
408
|
zip,
|
|
408
409
|
path: "word/_rels/document.xml.rels",
|
|
409
|
-
data: documentRelsXml(hasNumbering)
|
|
410
|
+
data: encodeUtf8(documentRelsXml(hasNumbering))
|
|
410
411
|
});
|
|
411
412
|
for (const [path, file] of Object.entries(zip.files)) {
|
|
412
413
|
if (file.dir || !path.endsWith(".xml")) continue;
|
|
413
|
-
assertValidOoxmlNumericIds(await file.async("
|
|
414
|
+
assertValidOoxmlNumericIds(await file.async("uint8array").then((bytes) => decodeText(bytes, { ignoreBOM: true })), path);
|
|
414
415
|
}
|
|
415
416
|
return await zip.generateAsync({
|
|
416
417
|
type: "arraybuffer",
|
|
@@ -1226,7 +1227,7 @@ const validateDocxPackage = async (buffer) => {
|
|
|
1226
1227
|
error: documentRead.error
|
|
1227
1228
|
};
|
|
1228
1229
|
const documentBytes = documentRead?.bytes;
|
|
1229
|
-
const documentXml = documentBytes ?
|
|
1230
|
+
const documentXml = documentBytes ? decodeText(documentBytes) : void 0;
|
|
1230
1231
|
const documentError = documentXml ? validateDocumentXml(documentXml) : "Generated DOCX has no word/document.xml root document.";
|
|
1231
1232
|
if (documentError) return {
|
|
1232
1233
|
valid: false,
|
|
@@ -1240,7 +1241,7 @@ const validateDocxPackage = async (buffer) => {
|
|
|
1240
1241
|
code: DOCX_PACKAGE_ISSUE_CODES.ArchiveBoundsExceeded,
|
|
1241
1242
|
error: documentRelsRead.error
|
|
1242
1243
|
};
|
|
1243
|
-
const documentRelsXml = documentRelsRead ?
|
|
1244
|
+
const documentRelsXml = documentRelsRead ? decodeText(documentRelsRead.bytes) : void 0;
|
|
1244
1245
|
if (documentRelsXml?.includes("/relationships/numbering") && !zip.file("word/numbering.xml")) return {
|
|
1245
1246
|
valid: false,
|
|
1246
1247
|
code: DOCX_PACKAGE_ISSUE_CODES.MissingNumberingPart,
|
|
@@ -1262,7 +1263,7 @@ const validateDocxPackage = async (buffer) => {
|
|
|
1262
1263
|
code: DOCX_PACKAGE_ISSUE_CODES.ArchiveBoundsExceeded,
|
|
1263
1264
|
error: read.error
|
|
1264
1265
|
};
|
|
1265
|
-
xml =
|
|
1266
|
+
xml = decodeText(read.bytes);
|
|
1266
1267
|
}
|
|
1267
1268
|
const issue = validateSchemaAttributes(xml);
|
|
1268
1269
|
if (issue) return {
|
package/dist/model/document.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as DocumentBackgroundDrawing, $i as ThemeColor, $n as TextWatermark, $r as TextFormatting, $t as PROPERTY_REVISION_KINDS, A as ParseWarning, Ai as TEXT_DIRECTIONS, An as ShapeFill, Ar as ListRendering, At as ImageWrap, B as BookmarkRangeMarker, Bi as SCHEME_COLOR_VALUE_BY_THEME_COLOR, Bn as TableCell, Br as TabLeader, Bt as MoveBookmarkMarker, C as ThemeColorScheme, Ci as outlineLevelStatedValue, Cn as Section, Cr as COUNTER_FORMATS, Ct as ImageCrop, D as ImportedIdCollisionKind, Di as ParagraphAlignment, Dn as Shape, Dr as LevelSuffix, Dt as ImagePosition, E as IMPORTED_ID_COLLISION_KINDS, Ei as PARAGRAPH_ALIGNMENTS, En as SectionStart, Er as LevelOverride, Et as ImagePadding, F as BidiControl, Fi as TextDirection, Fn as SimpleField, Fr as EmphasisMark, Ft as InstrTextContent, G as CommentRangeEnd, Gi as isThemeColor, Gn as TablePreservedMarkup, Gr as TableFormatting, Gt as MoveToRangeEnd, H as BreakContent, Hi as ThemeColorValue, Hn as TableCellPropertyChange, Hr as TableBorders, Ht as MoveFromRangeEnd, I as BlockContent, Ii as TextDirectionFlow, In as SoftHyphenContent, Ir as FloatingTableProperties, It as LineNumberRestart, J as ComplexField, Ji as themeColorSlot, Jn as TableRow, Jr as TableMeasurement, Jt as NonVisualDrawingNames, K as CommentRangeStart, Ki as knownThemeColor, Kn as TablePropertyChange, Kr as TableGridChange, Kt as MoveToRangeStart, L as BlockCustomXml, Li as BorderSpec, Ln as SymbolContent, Lr as LineSpacingRule, Lt as MAX_REVISION_ID, M as ParseWarningLocation, Mi as TEXT_DIRECTION_FLOW_BY_TOKEN, Mn as ShapeOutline, Mr as NumberingInstance, Mt as InlineSdt, N as getSingularRunPropertyChange, Ni as TabStopAlignment, Nn as ShapeTextBody, Nr as CellMargins, Nt as InlineWrapper, O as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, Oi as TABLE_ALIGNMENTS, On as ShapeAlternateContent, Or as ListLevel, Ot as ImageSize, P as BIDI_CONTROLS, Pi as TableAlignment, Pn as ShapeType, Pr as ConditionalFormatStyle, Pt as Insertion, Q as DocumentBackground, Qi as THEME_COLORS, Qn as TextContent, Qr as TextEffect, Qt as PARAGRAPH_MARK_CHANGE_KINDS, R as BlockSdt, Ri as ColorValue, Rn as TabContent, Rr as ParagraphFormatting, Rt as MarkupRangeMarker, S as Theme, Si as outlineLevelFromStatedValue, Sn as SdtType, Sr as AbstractNumbering, St as Image, T as ThemeFontScheme, Ti as NumberFormat, Tn as SectionPropertyChange, Tr as LevelLegacy, Tt as ImageFrameLocks, U as Column, Ui as UnrecognisedThemeColor, Un as TableContentCarrier, Ur as TableCellBorders, Ut as MoveFromRangeStart, V as BookmarkStart, Vi as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Vn as TableCellBlock, Vr as TabStop, Vt as MoveFrom, W as Comment, Wi as isSchemeColorValue, Wn as TableCustomXmlWrapper, Wr as TableCellFormatting, Wt as MoveTo, X as Deletion, Xi as SchemeColorSlot, Xn as TableStructuralChangeInfo, Xr as TableRowFormatting, Xt as NoteNumberRestart, Y as DRAWING_RAW_XML_MODES, Yi as themeColorToken, Yn as TableRowPropertyChange, Yr as TablePropertyExceptionFormatting, Yt as NoteMarkerContent, Z as DisplacedByCustomXml, Zi as SchemeColorValue, Zn as TextBox, Zr as TableWidthType, Zt as NoteReferenceContent, _ as RelationshipMap, _i as BODY_TEXT_OUTLINE_LEVEL, _n as Run, _r as RelationshipId, _t as HeaderFooter, a as DocumentSettings, aa as isBorderNone, ai as ParagraphNumberingSlots, an as ParagraphPropertyChange, ar as WrapDistanceSlots, at as EffectExtentSlots, b as StyleDefinitions, bi as headingLevelOf, bn as SdtEndProperties, br as PreviewDescriptor, bt as Hyperlink, c as isNumberingLevel, ca as BORDER_STYLES, ci as mergeParagraphNumbering, cn as PositionedBookmarkMarker, cr as isOoxmlSymbolCharacter, ct as EndnoteProperties, d as EmbeddedFontRef, di as paragraphNumberingReference, dn as PreservedXmlContent, dr as UnrecognisedPresetLineDash, dt as FieldType, ea as BorderStyleValue, ei as UnderlineStyle, en as PageOrientation, er as TrackedChangeInfo, et as DocumentBody, f as FontCharset, fi as paragraphNumberingReferenceId, fn as PropertyChange, fr as isPresetLineDashVal, ft as FoldedListNumber, g as Relationship, gi as sameStatedParagraphNumbering, gn as ReviewCarrier, gr as PresetLineDashVal, gt as FootnoteProperties, h as MediaFile, hi as sameEffectiveParagraphNumbering, hn as REVIEW_CARRIERS, hr as PRESET_LINE_DASH_VALS, ht as FootnotePosition, i as Document, ia as isBorderNil, ii as ParagraphNumberingReference, in as ParagraphMarkChangeKind, ir as Watermark, it as DrawingRawXmlMode, j as ParseWarningCode, ji as TEXT_DIRECTION_FLOWS, jn as ShapeGeometryAdjustment, jr as NumberingDefinitions, jt as ImageWrapPolygon, k as PARSE_WARNING_CODES, ki as TAB_STOP_ALIGNMENTS, kn as ShapeContent, kr as ListMarkerFormatting, kt as ImageTransform, l as ExhaustiveFields, la as BorderStyle, li as paragraphNumberingFromSlots, ln as PreservedBlock, lr as normalizeRevisionId, lt as Field, m as FontTable, mi as resolveParagraphNumbering, mn as PropertyRevisionKind, mr as presetLineDashToken, mt as Footnote, n as DEFAULT_TAB_STOP_TWIPS, na as borderStyleFrom, ni as NO_PARAGRAPH_NUMBERING, nn as ParagraphContent, nr as TrackedRunContent, nt as DrawingContent, o as DocxConformanceClass, oa as isBorderStyle, oi as ResolvedParagraphNumbering, on as PictureWatermark, or as WrapDistances, ot as Endnote, p as FontInfo, pi as paragraphNumberingSlots, pn as PropertyChangeInfo, pr as presetLineDashFrom, pt as FooterReference, q as CommentReference, qi as readThemeColor, qn as TablePropertyExceptionChange, qr as TableLook, qt as NoBreakHyphenContent, r as DOCX_CONFORMANCE_CLASSES, ra as borderStyleToken, ri as ParagraphNumberingOverride, rn as ParagraphMarkChange, rr as VerticalAlign, rt as DrawingGroupChild, s as DocxPackage, sa as statesNoBorder, si as isNumberingReference, sn as PositionalTab, sr as WrapPolygonPoint, st as EndnotePosition, t as COMMENT_PART_RELATIONSHIPS, ta as UnrecognisedBorderStyle, ti as NO_NUMBERING_NUM_ID, tn as Paragraph, tr as TrackedRunChange, tt as DrawingAnchor, u as DocDefaults, ui as paragraphNumberingLevel, un as PreservedInline, ur as PresetLineDashValue, ut as FieldCharContent, v as RelationshipType, vi as HeadingOutlineLevel, vn as RunContent, vr as mintRelationshipId, vt as HeaderFooterType, w as ThemeFont, wi as NUMBER_FORMATS, wn as SectionProperties, wr as CounterFormat, wt as ImageDocPrLink, x as StyleType, xi as headingOutlineLevel, xn as SdtProperties, xr as PreviewShape, y as Style, yi as OutlineLevel, yn as RunPropertyChange, yr as relationshipIdOf, yt as HeaderReference, z as BookmarkEnd, zi as ShadingProperties, zn as Table, zr as SpacingExplicit, zt as MathEquation } from "../document-wNmygRXS.js";
|
|
2
2
|
import { n as PreservedChild, r as PreservedMarkup, t as PreservedAttribute } from "../preservedMarkup-G8XjWhs2.js";
|
|
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, type Image, type ImageCrop, type ImageDocPrLink, type ImageFrameLocks, type ImagePadding, type ImagePosition, type ImageSize, type ImageTransform, type ImageWrap, type ImageWrapPolygon, 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 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, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, statesNoBorder, themeColorSlot, themeColorToken };
|
|
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 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, getSingularRunPropertyChange, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, statesNoBorder, themeColorSlot, themeColorToken };
|
package/dist/model/document.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as mergeParagraphNumbering, A as TEXT_DIRECTIONS, B as themeColorToken, C as isBorderStyle, D as PARAGRAPH_ALIGNMENTS, E as NUMBER_FORMATS, F as isSchemeColorValue, G as headingLevelOf, H as mintRelationshipId, I as isThemeColor, J as outlineLevelStatedValue, K as headingOutlineLevel, L as knownThemeColor, M as TEXT_DIRECTION_FLOW_BY_TOKEN, N as SCHEME_COLOR_VALUE_BY_THEME_COLOR, O as TABLE_ALIGNMENTS, P as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Q as isNumberingReference, R as readThemeColor, S as isBorderNone, T as BORDER_STYLES, U as relationshipIdOf, V as THEME_COLORS, W as BODY_TEXT_OUTLINE_LEVEL, X as NO_NUMBERING_NUM_ID, Y as isNumberingLevel, Z as NO_PARAGRAPH_NUMBERING, _ as presetLineDashToken, a as DRAWING_RAW_XML_MODES, at as resolveParagraphNumbering, b as borderStyleToken, c as PARAGRAPH_MARK_CHANGE_KINDS, ct as
|
|
2
|
-
export { BIDI_CONTROLS, BODY_TEXT_OUTLINE_LEVEL, BORDER_STYLES, COMMENT_PART_RELATIONSHIPS, COUNTER_FORMATS, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, MAX_RETAINED_PARSE_WARNINGS_PER_CODE, MAX_REVISION_ID, NO_NUMBERING_NUM_ID, NO_PARAGRAPH_NUMBERING, NUMBER_FORMATS, PARAGRAPH_ALIGNMENTS, PARAGRAPH_MARK_CHANGE_KINDS, PARSE_WARNING_CODES, PRESET_LINE_DASH_VALS, PROPERTY_REVISION_KINDS, REVIEW_CARRIERS, SCHEME_COLOR_VALUE_BY_THEME_COLOR, TABLE_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TEXT_DIRECTIONS, TEXT_DIRECTION_FLOWS, TEXT_DIRECTION_FLOW_BY_TOKEN, THEME_COLORS, THEME_COLOR_BY_SCHEME_COLOR_VALUE, borderStyleFrom, borderStyleToken, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, statesNoBorder, themeColorSlot, themeColorToken };
|
|
1
|
+
import { $ as mergeParagraphNumbering, A as TEXT_DIRECTIONS, B as themeColorToken, C as isBorderStyle, D as PARAGRAPH_ALIGNMENTS, E as NUMBER_FORMATS, F as isSchemeColorValue, G as headingLevelOf, H as mintRelationshipId, I as isThemeColor, J as outlineLevelStatedValue, K as headingOutlineLevel, L as knownThemeColor, M as TEXT_DIRECTION_FLOW_BY_TOKEN, N as SCHEME_COLOR_VALUE_BY_THEME_COLOR, O as TABLE_ALIGNMENTS, P as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Q as isNumberingReference, R as readThemeColor, S as isBorderNone, T as BORDER_STYLES, U as relationshipIdOf, V as THEME_COLORS, W as BODY_TEXT_OUTLINE_LEVEL, X as NO_NUMBERING_NUM_ID, Y as isNumberingLevel, Z as NO_PARAGRAPH_NUMBERING, _ as presetLineDashToken, a as DRAWING_RAW_XML_MODES, at as resolveParagraphNumbering, b as borderStyleToken, c as PARAGRAPH_MARK_CHANGE_KINDS, ct as IMPORTED_ID_COLLISION_KINDS, dt as getSingularRunPropertyChange, et as paragraphNumberingFromSlots, f as isOoxmlSymbolCharacter, g as presetLineDashFrom, h as isPresetLineDashVal, i as BIDI_CONTROLS, it as paragraphNumberingSlots, j as TEXT_DIRECTION_FLOWS, k as TAB_STOP_ALIGNMENTS, l as PROPERTY_REVISION_KINDS, lt as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, m as COUNTER_FORMATS, n as DEFAULT_TAB_STOP_TWIPS, nt as paragraphNumberingReference, ot as sameEffectiveParagraphNumbering, p as normalizeRevisionId, q as outlineLevelFromStatedValue, r as DOCX_CONFORMANCE_CLASSES, rt as paragraphNumberingReferenceId, s as MAX_REVISION_ID, st as sameStatedParagraphNumbering, t as COMMENT_PART_RELATIONSHIPS, tt as paragraphNumberingLevel, u as REVIEW_CARRIERS, ut as PARSE_WARNING_CODES, v as PRESET_LINE_DASH_VALS, w as statesNoBorder, x as isBorderNil, y as borderStyleFrom, z as themeColorSlot } from "../document-C02Ulybe.js";
|
|
2
|
+
export { BIDI_CONTROLS, BODY_TEXT_OUTLINE_LEVEL, BORDER_STYLES, COMMENT_PART_RELATIONSHIPS, COUNTER_FORMATS, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, IMPORTED_ID_COLLISION_KINDS, MAX_RETAINED_PARSE_WARNINGS_PER_CODE, MAX_REVISION_ID, NO_NUMBERING_NUM_ID, NO_PARAGRAPH_NUMBERING, NUMBER_FORMATS, PARAGRAPH_ALIGNMENTS, PARAGRAPH_MARK_CHANGE_KINDS, PARSE_WARNING_CODES, PRESET_LINE_DASH_VALS, PROPERTY_REVISION_KINDS, REVIEW_CARRIERS, SCHEME_COLOR_VALUE_BY_THEME_COLOR, TABLE_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TEXT_DIRECTIONS, TEXT_DIRECTION_FLOWS, TEXT_DIRECTION_FLOW_BY_TOKEN, THEME_COLORS, THEME_COLOR_BY_SCHEME_COLOR_VALUE, borderStyleFrom, borderStyleToken, getSingularRunPropertyChange, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, statesNoBorder, themeColorSlot, themeColorToken };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $r as TextFormatting, Cn as Section, Gr as TableFormatting, H as BreakContent, I as BlockContent, Jn as TableRow, Mr as NumberingInstance, Rn as TabContent, Rr as ParagraphFormatting, Sr as AbstractNumbering, W as Comment, Wr as TableCellFormatting, Xr as TableRowFormatting, _n as Run, _t as HeaderFooter, a as DocumentSettings, an as ParagraphPropertyChange, b as StyleDefinitions, et as DocumentBody, g as Relationship, h as MediaFile, i as Document, jr as NumberingDefinitions, l as ExhaustiveFields, mt as Footnote, nn as ParagraphContent, ot as Endnote, rn as ParagraphMarkChange, s as DocxPackage, tn as Paragraph, vi as HeadingOutlineLevel, vn as RunContent, vt as HeaderFooterType, wn as SectionProperties, xt as INSERTION_SEAM_POLICIES, zn as Table } from "../document-wNmygRXS.js";
|
|
2
2
|
import { Result } from "better-result";
|
|
3
|
-
//#region src/ops/noteMarks.d.ts
|
|
4
|
-
declare const noteUsesCustomMark: (document: Document, note: Footnote | Endnote) => boolean;
|
|
5
|
-
//#endregion
|
|
6
3
|
//#region src/ops/types.d.ts
|
|
7
4
|
/** JSON-safe map presence, including an explicitly undefined section map. */
|
|
8
5
|
type SectionMapState = {
|
|
@@ -342,8 +339,8 @@ declare const PROPERTY_REVIEW_POLICIES: Readonly<{
|
|
|
342
339
|
* set before the patch. A run already carrying one keeps it, and with it the
|
|
343
340
|
* formatting it started from. A tracked patch joins nothing, so `joinStart`
|
|
344
341
|
* and `joinEnd` must be absent.
|
|
345
|
-
* `propertyReview: "append"`
|
|
346
|
-
*
|
|
342
|
+
* `propertyReview: "append"` coalesces an editor action into one pending review.
|
|
343
|
+
* It retains the first baseline and records the latest formatter's metadata.
|
|
347
344
|
*/
|
|
348
345
|
type SetRunPropsOp = {
|
|
349
346
|
type: typeof DOCUMENT_OP_TYPES.SET_RUN_PROPS;
|
|
@@ -1127,27 +1124,6 @@ declare class DocumentOpRefusal extends DocumentOpRefusal_base<{
|
|
|
1127
1124
|
opType: DocumentOpType | undefined;
|
|
1128
1125
|
}> {}
|
|
1129
1126
|
//#endregion
|
|
1130
|
-
//#region src/ops/storyLifecycle.d.ts
|
|
1131
|
-
declare const sectionPropertiesAt: (document: Document, sectionIndex: number) => SectionProperties | undefined;
|
|
1132
|
-
//#endregion
|
|
1133
|
-
//#region src/ops/stories.d.ts
|
|
1134
|
-
declare const sameStory: (left: OpStory, right: OpStory) => boolean;
|
|
1135
|
-
declare const findStoryBody: (document: Document, story: OpStory) => DocumentBody | undefined;
|
|
1136
|
-
declare const storyBody: (document: Document, story: OpStory) => DocumentBody;
|
|
1137
|
-
declare const documentStories: (document: Document) => OpStory[];
|
|
1138
|
-
//#endregion
|
|
1139
|
-
//#region src/ops/blocks.d.ts
|
|
1140
|
-
/**
|
|
1141
|
-
* A body holding other blocks, its section view derived from them. A view
|
|
1142
|
-
* that does not line up with the blocks (a different section count) is left
|
|
1143
|
-
* for {@link sectionsInStep} to report.
|
|
1144
|
-
*/
|
|
1145
|
-
declare const withBodyContent: (body: DocumentBody, content: BlockContent[]) => DocumentBody;
|
|
1146
|
-
//#endregion
|
|
1147
|
-
//#region src/ops/wire.d.ts
|
|
1148
|
-
/** Capture own undefined fields before an operation enters its JSON journal. */
|
|
1149
|
-
declare const captureDocumentOp: (op: DocumentOp) => DocumentOp;
|
|
1150
|
-
//#endregion
|
|
1151
1127
|
//#region src/ops/leaves.d.ts
|
|
1152
1128
|
/** A place between two leaves. */
|
|
1153
1129
|
type Gap = {
|
|
@@ -1173,6 +1149,41 @@ declare const inlineLeafSpans: (items: readonly InlineNode[]) => {
|
|
|
1173
1149
|
/** Gaps in document order: by offset, then by the zero-width leaves before them. */
|
|
1174
1150
|
declare const compareGaps: (left: Gap, right: Gap) => number;
|
|
1175
1151
|
//#endregion
|
|
1152
|
+
//#region src/ops/comments.d.ts
|
|
1153
|
+
/**
|
|
1154
|
+
* Shared loaded-comment activation contract; legacy parentId revision associations stay explicit.
|
|
1155
|
+
* `allowedOrphans` names unanchored root comments the caller accepts ("all" for a loaded package).
|
|
1156
|
+
*/
|
|
1157
|
+
declare const commentDocumentIssue: (document: Document, allowedOrphans?: ReadonlySet<number> | "all") => string | undefined;
|
|
1158
|
+
/** Allocate from the package's annotation domains without a hidden mutable counter. */
|
|
1159
|
+
declare const freshCommentId: (document: Document) => Result<number, DocumentOpRefusal>;
|
|
1160
|
+
/** Reconcile modeled comment and numbering parts with their document relationships. */
|
|
1161
|
+
declare const reconcileDocumentPartRelationships: (document: Document) => Document;
|
|
1162
|
+
//#endregion
|
|
1163
|
+
//#region src/ops/noteMarks.d.ts
|
|
1164
|
+
declare const noteUsesCustomMark: (document: Document, note: Footnote | Endnote) => boolean;
|
|
1165
|
+
//#endregion
|
|
1166
|
+
//#region src/ops/storyLifecycle.d.ts
|
|
1167
|
+
declare const sectionPropertiesAt: (document: Document, sectionIndex: number) => SectionProperties | undefined;
|
|
1168
|
+
//#endregion
|
|
1169
|
+
//#region src/ops/stories.d.ts
|
|
1170
|
+
declare const sameStory: (left: OpStory, right: OpStory) => boolean;
|
|
1171
|
+
declare const findStoryBody: (document: Document, story: OpStory) => DocumentBody | undefined;
|
|
1172
|
+
declare const storyBody: (document: Document, story: OpStory) => DocumentBody;
|
|
1173
|
+
declare const documentStories: (document: Document) => OpStory[];
|
|
1174
|
+
//#endregion
|
|
1175
|
+
//#region src/ops/blocks.d.ts
|
|
1176
|
+
/**
|
|
1177
|
+
* A body holding other blocks, its section view derived from them. A view
|
|
1178
|
+
* that does not line up with the blocks (a different section count) is left
|
|
1179
|
+
* for {@link sectionsInStep} to report.
|
|
1180
|
+
*/
|
|
1181
|
+
declare const withBodyContent: (body: DocumentBody, content: BlockContent[]) => DocumentBody;
|
|
1182
|
+
//#endregion
|
|
1183
|
+
//#region src/ops/wire.d.ts
|
|
1184
|
+
/** Capture own undefined fields before an operation enters its JSON journal. */
|
|
1185
|
+
declare const captureDocumentOp: (op: DocumentOp) => DocumentOp;
|
|
1186
|
+
//#endregion
|
|
1176
1187
|
//#region src/ops/hyperlinkIntent.d.ts
|
|
1177
1188
|
type HyperlinkEditorIntent = {
|
|
1178
1189
|
type: "setHyperlink";
|
|
@@ -1311,6 +1322,10 @@ declare const editorParagraphGroups: (document: Document, story: OpStory) => {
|
|
|
1311
1322
|
paragraphs: Paragraph[];
|
|
1312
1323
|
text: string;
|
|
1313
1324
|
}[];
|
|
1325
|
+
/** One logical paragraph and visible offset for a physical canonical address. */
|
|
1326
|
+
declare const editorPositionAtPhysicalPosition: (document: Document, at: TextPosition) => TextPosition;
|
|
1327
|
+
/** Translate an editing-view paragraph gap to its physical canonical address. */
|
|
1328
|
+
declare const physicalPositionAtEditorOffset: (document: Document, at: TextPosition) => TextPosition;
|
|
1314
1329
|
/** Compile one batch; the caller applies it atomically and journals its exact inverse. */
|
|
1315
1330
|
declare const compileEditorIntent: (document: Document, { intent, mode, firstBlockId }: CompileEditorIntentOptions) => Result<CompiledEditorIntent, DocumentOpRefusal>;
|
|
1316
1331
|
//#endregion
|
|
@@ -1630,13 +1645,4 @@ declare const createClient: (document: Document) => {
|
|
|
1630
1645
|
readonly notices: readonly ClientNotice[];
|
|
1631
1646
|
};
|
|
1632
1647
|
//#endregion
|
|
1633
|
-
|
|
1634
|
-
/**
|
|
1635
|
-
* Shared loaded-comment activation contract; legacy parentId revision associations stay explicit.
|
|
1636
|
-
* `allowedOrphans` names unanchored root comments the caller accepts ("all" for a loaded package).
|
|
1637
|
-
*/
|
|
1638
|
-
declare const commentDocumentIssue: (document: Document, allowedOrphans?: ReadonlySet<number> | "all") => string | undefined;
|
|
1639
|
-
/** Allocate from the package's annotation domains without a hidden mutable counter. */
|
|
1640
|
-
declare const freshCommentId: (document: Document) => Result<number, DocumentOpRefusal>;
|
|
1641
|
-
//#endregion
|
|
1642
|
-
export { type AddNoteOp, type AppliedDocumentOp, BATCH_REJECTION_REASONS, BATCH_WIRE_OP_TYPES, BatchRejection, type BatchRejectionReason, type BlockInsertionPoint, type CommentAnchor, type CommentState, type CreateCommentOp, type CreateHeaderFooterOp, type CreateNumberingInstanceOp, DOCUMENT_OP_REFUSAL_REASONS, DOCUMENT_OP_SCHEMA_VERSION, DOCUMENT_OP_TYPES, type DeleteBlocksOp, type DeleteColumnOp, type DeleteCommentOp, type DeleteNumberingInstanceOp, type DeleteRangeOp, type DeleteRowOp, type DeleteTableOp, type DocumentBatch, type DocumentOp, type DocumentOpEnvelope, DocumentOpRefusal, type DocumentOpRefusalReason, type DocumentOpType, DocumentOpsContractError, EMPTY_PROPERTY_SETS, type EditorIntent, type EditorIntentMode, type EmptyPropertySet, type FormattingPatch, type HeaderFooterStory, INHERIT_RUN_PROPS, type InlineSlice, type InsertBlocksOp, type InsertColumnOp, type InsertContentOp, type InsertRowOp, type InsertTableOp, type InsertTextOp, type InsertedRunProps, type JoinBlocksOp, type JoinInlineOp, MAX_BATCH_WIRE_BYTES, type MergeCellsOp, type NewIds, type NoteStory, type NumberingPartState, OBJECT_REPLACEMENT_CHARACTER, OP_STORIES, type OpStory, PARAGRAPH_MARK_FORMATTING_KEYS, PROPERTY_REVIEW_POLICIES, type PackageResourceEntry, type PackageResourceEntryChange, type PackageResourceMapChange, type PackageResourceMedia, type PackageResourcePart, type PackageResources, type ParagraphPropsPatch, type ParagraphReviewFields, type PlanTrackedDeletionOptions, type PlanTrackedReplaceOptions, REVISION_DECISIONS, type RemoveHeaderFooterOp, type RemoveNoteOp, type ReplaceBlocksOp, type ReplaceInlineOp, type ResolveRevisionOp, type RestoreCommentStateOp, type RestoreStoryPartsOp, type RevisionDecision, type RevisionStamp, type RunPropsPatch, SPLIT_HALVES, type SectionEndpoint, type SectionMapState, type SectionPropertiesState, type SectionViewEntry, type SectionViewState, type SequencedBatch, type SetCellPropsOp, type SetCommentResolutionOp, type SetContainerBlocksOp, type SetPackageResourcesOp, type SetParagraphPropsOp, type SetParagraphReviewOp, type SetRowPropsOp, type SetRunPropsOp, type SetSectionEndpointOp, type SetSectionPropsOp, type SetTableGridOp, type SetTableOp, type SetTablePropsOp, type SetTableRowsOp, type SplitBlockOp, type SplitCellOp, type SplitHalf, type SplitInlineOp, type SplitParagraphFields, type TableEditOp, type TableIntentOperation, type TextPosition, type TouchedBlocks, type UpdateCommentContentOp, allocateCommentAnchorIds, applyDocumentOp, applyDocumentOpEnvelope, applyDocumentOps, captureDocumentOp, combineEdits, commentDocumentIssue, compareGaps, compileEditorIntent, createClient, createEditorIntentIdAllocator, createSequencer, defaultInsertionGap, documentStories, editorParagraphGroups, findStoryBody, formattingEquals, freshCommentId, idKey, inlineLeafSpans, isTextOnlyRun, mapTocBookmarkPosition, mergeRunContent, normalizeForOps, noteUsesCustomMark, packageParagraphIds, packageResourcesOpOf, paragraphLength, paragraphLogicalText, paragraphVisibleText, parseDocumentBatch, physicalOffsetAtVisibleOffset, planTrackedDeletion, planTrackedReplace, registerParagraphPropertySnapshot, revisionIdDemand, runsMergeable, sameStory, sectionPropertiesAt, storyBody, toOpEnvelope, transformBatch, validateDocumentBatch, validateOpsDocument, validateSequencedBatch, withBodyContent, zeroWidthLeavesAt };
|
|
1648
|
+
export { type AddNoteOp, type AppliedDocumentOp, BATCH_REJECTION_REASONS, BATCH_WIRE_OP_TYPES, BatchRejection, type BatchRejectionReason, type BlockInsertionPoint, type CommentAnchor, type CommentState, type CreateCommentOp, type CreateHeaderFooterOp, type CreateNumberingInstanceOp, DOCUMENT_OP_REFUSAL_REASONS, DOCUMENT_OP_SCHEMA_VERSION, DOCUMENT_OP_TYPES, type DeleteBlocksOp, type DeleteColumnOp, type DeleteCommentOp, type DeleteNumberingInstanceOp, type DeleteRangeOp, type DeleteRowOp, type DeleteTableOp, type DocumentBatch, type DocumentOp, type DocumentOpEnvelope, DocumentOpRefusal, type DocumentOpRefusalReason, type DocumentOpType, DocumentOpsContractError, EMPTY_PROPERTY_SETS, type EditorIntent, type EditorIntentMode, type EmptyPropertySet, type FormattingPatch, type HeaderFooterStory, INHERIT_RUN_PROPS, type InlineSlice, type InsertBlocksOp, type InsertColumnOp, type InsertContentOp, type InsertRowOp, type InsertTableOp, type InsertTextOp, type InsertedRunProps, type JoinBlocksOp, type JoinInlineOp, MAX_BATCH_WIRE_BYTES, type MergeCellsOp, type NewIds, type NoteStory, type NumberingPartState, OBJECT_REPLACEMENT_CHARACTER, OP_STORIES, type OpStory, PARAGRAPH_MARK_FORMATTING_KEYS, PROPERTY_REVIEW_POLICIES, type PackageResourceEntry, type PackageResourceEntryChange, type PackageResourceMapChange, type PackageResourceMedia, type PackageResourcePart, type PackageResources, type ParagraphPropsPatch, type ParagraphReviewFields, type PlanTrackedDeletionOptions, type PlanTrackedReplaceOptions, REVISION_DECISIONS, type RemoveHeaderFooterOp, type RemoveNoteOp, type ReplaceBlocksOp, type ReplaceInlineOp, type ResolveRevisionOp, type RestoreCommentStateOp, type RestoreStoryPartsOp, type RevisionDecision, type RevisionStamp, type RunPropsPatch, SPLIT_HALVES, type SectionEndpoint, type SectionMapState, type SectionPropertiesState, type SectionViewEntry, type SectionViewState, type SequencedBatch, type SetCellPropsOp, type SetCommentResolutionOp, type SetContainerBlocksOp, type SetPackageResourcesOp, type SetParagraphPropsOp, type SetParagraphReviewOp, type SetRowPropsOp, type SetRunPropsOp, type SetSectionEndpointOp, type SetSectionPropsOp, type SetTableGridOp, type SetTableOp, type SetTablePropsOp, type SetTableRowsOp, type SplitBlockOp, type SplitCellOp, type SplitHalf, type SplitInlineOp, type SplitParagraphFields, type TableEditOp, type TableIntentOperation, type TextPosition, type TouchedBlocks, type UpdateCommentContentOp, allocateCommentAnchorIds, applyDocumentOp, applyDocumentOpEnvelope, applyDocumentOps, captureDocumentOp, combineEdits, commentDocumentIssue, compareGaps, compileEditorIntent, createClient, createEditorIntentIdAllocator, createSequencer, defaultInsertionGap, documentStories, editorParagraphGroups, editorPositionAtPhysicalPosition, findStoryBody, formattingEquals, freshCommentId, idKey, inlineLeafSpans, isTextOnlyRun, mapTocBookmarkPosition, mergeRunContent, normalizeForOps, noteUsesCustomMark, packageParagraphIds, packageResourcesOpOf, paragraphLength, paragraphLogicalText, paragraphVisibleText, parseDocumentBatch, physicalOffsetAtVisibleOffset, physicalPositionAtEditorOffset, planTrackedDeletion, planTrackedReplace, reconcileDocumentPartRelationships, registerParagraphPropertySnapshot, revisionIdDemand, runsMergeable, sameStory, sectionPropertiesAt, storyBody, toOpEnvelope, transformBatch, validateDocumentBatch, validateOpsDocument, validateSequencedBatch, withBodyContent, zeroWidthLeavesAt };
|