@office-open/docx 0.3.4 → 0.3.6

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/index.mjs CHANGED
@@ -22897,6 +22897,21 @@ function remapNumberingReferences(children, numIdToReference) {
22897
22897
  }
22898
22898
  }
22899
22899
  }
22900
+ /**
22901
+ * Set `bullet` field on paragraphs whose numbering format is "bullet".
22902
+ * Must be called after `buildNumberingConfig` (references already remapped).
22903
+ */
22904
+ function markBulletParagraphs(sections, numberingConfig) {
22905
+ const configMap = new Map(numberingConfig.map((c) => [c.reference, c]));
22906
+ for (const section of sections) for (const child of section.children) {
22907
+ const c = child;
22908
+ if (c.$type !== "paragraph" || !c.numbering) continue;
22909
+ const n = c.numbering;
22910
+ const config = configMap.get(n.reference);
22911
+ if (!config) continue;
22912
+ if (config.levels.find((l) => l.level === n.level)?.format === "bullet") c.bullet = { level: n.level };
22913
+ }
22914
+ }
22900
22915
  //#endregion
22901
22916
  //#region src/parse/run.ts
22902
22917
  function parseRun(run, ctx) {
@@ -22904,7 +22919,8 @@ function parseRun(run, ctx) {
22904
22919
  const br = findChild(run, "w:br");
22905
22920
  if (br) {
22906
22921
  const brType = attr(br, "w:type");
22907
- if (brType === "page" || brType === void 0) return { $type: "pageBreak" };
22922
+ if (brType === "page") return { $type: "pageBreak" };
22923
+ if (brType === void 0 || brType === "line" || brType === "textWrapping") return { $type: "lineBreak" };
22908
22924
  if (brType === "column") return { $type: "columnBreak" };
22909
22925
  if (brType === "line" || brType === "textWrapping") return { $type: "lineBreak" };
22910
22926
  }
@@ -23001,7 +23017,7 @@ function parseRunProperties(rPr, out) {
23001
23017
  const szCs = findChild(rPr, "w:szCs");
23002
23018
  if (szCs) {
23003
23019
  const val = attrNum(szCs, "w:val");
23004
- if (val !== void 0) out.sizeCs = val;
23020
+ if (val !== void 0) out.sizeComplexScript = val;
23005
23021
  }
23006
23022
  const colorEl = findChild(rPr, "w:color");
23007
23023
  if (colorEl) {
@@ -23043,10 +23059,14 @@ function parseRunProperties(rPr, out) {
23043
23059
  if (shd) {
23044
23060
  const fill = attr(shd, "w:fill");
23045
23061
  const val = attr(shd, "w:val");
23046
- if (fill && fill !== "auto") out.shading = {
23047
- fill,
23048
- ...val && val !== "clear" && { type: val }
23049
- };
23062
+ if (fill && fill !== "auto") {
23063
+ const color = colorAttr(shd, "w:color");
23064
+ out.shading = {
23065
+ fill,
23066
+ ...color && color !== "auto" && { color },
23067
+ ...val && val !== "clear" && { type: val }
23068
+ };
23069
+ }
23050
23070
  }
23051
23071
  const kern = findChild(rPr, "w:kern");
23052
23072
  if (kern) {
@@ -23230,7 +23250,7 @@ function parseTableRow(tr, ctx) {
23230
23250
  rule: rule ?? void 0
23231
23251
  };
23232
23252
  }
23233
- if (findChild(trPr, "w:tblHeader")) result.isHeader = true;
23253
+ if (findChild(trPr, "w:tblHeader")) result.header = true;
23234
23254
  }
23235
23255
  for (const child of tr.elements ?? []) if (child.name === "w:tc") result.cells.push(parseTableCell(child, ctx));
23236
23256
  return result;
@@ -23414,7 +23434,9 @@ function parseParagraph(p, ctx) {
23414
23434
  if (fldChar) {
23415
23435
  const fldCharType = attr(fldChar, "w:fldCharType");
23416
23436
  if (fldCharType === "begin") {
23417
- const field = collectField(elements, i, ctx);
23437
+ const locked = attr(fldChar, "w:fldLock") === "true";
23438
+ const dirty = attr(fldChar, "w:dirty") === "true";
23439
+ const field = collectField(elements, i, ctx, locked, dirty);
23418
23440
  if (field) children.push(field);
23419
23441
  while (i < elements.length) {
23420
23442
  const next = elements[i];
@@ -23463,12 +23485,7 @@ function parseParagraph(p, ctx) {
23463
23485
  });
23464
23486
  i++;
23465
23487
  }
23466
- const first = children[0];
23467
- if (children.length === 1 && !isRaw(first) && first.$type === "textRun") {
23468
- const textRun = first;
23469
- if (!Object.keys(textRun).some((k) => k !== "$type" && k !== "text") && textRun.text !== void 0) result.text = textRun.text;
23470
- else result.children = children;
23471
- } else if (children.length > 0) result.children = children;
23488
+ if (children.length > 0) result.children = children;
23472
23489
  return result;
23473
23490
  }
23474
23491
  function parseParagraphProperties(pPr, out) {
@@ -23554,10 +23571,14 @@ function parseParagraphProperties(pPr, out) {
23554
23571
  if (shd) {
23555
23572
  const fill = attr(shd, "w:fill");
23556
23573
  const val = attr(shd, "w:val");
23557
- if (fill && fill !== "auto") out.shading = {
23558
- fill,
23559
- ...val && val !== "clear" && { type: val }
23560
- };
23574
+ if (fill && fill !== "auto") {
23575
+ const color = colorAttr(shd, "w:color");
23576
+ out.shading = {
23577
+ fill,
23578
+ ...color && color !== "auto" && { color },
23579
+ ...val && val !== "clear" && { type: val }
23580
+ };
23581
+ }
23561
23582
  }
23562
23583
  const pBdr = findChild(pPr, "w:pBdr");
23563
23584
  if (pBdr) {
@@ -23590,20 +23611,20 @@ function parseParagraphProperties(pPr, out) {
23590
23611
  if (Object.keys(borders).length > 0) out.border = borders;
23591
23612
  if (hasNonNoneBorder) out.thematicBreak = true;
23592
23613
  }
23593
- const tabs = findChild(pPr, "w:tabs");
23594
- if (tabs) {
23614
+ const tabStops = findChild(pPr, "w:tabs");
23615
+ if (tabStops) {
23595
23616
  const tabList = [];
23596
- for (const tab of tabs.elements ?? []) if (tab.name === "w:tab") {
23597
- const pos = attrNum(tab, "w:pos");
23598
- const align = attr(tab, "w:val");
23617
+ for (const tab of tabStops.elements ?? []) if (tab.name === "w:tab") {
23618
+ const position = attrNum(tab, "w:pos");
23619
+ const type = attr(tab, "w:val");
23599
23620
  const leader = attr(tab, "w:leader");
23600
- if (pos !== void 0) tabList.push({
23601
- pos,
23602
- ...align && align !== "left" && { align },
23621
+ if (position !== void 0) tabList.push({
23622
+ position,
23623
+ ...type && type !== "left" && { type },
23603
23624
  ...leader && leader !== "none" && { leader }
23604
23625
  });
23605
23626
  }
23606
- if (tabList.length > 0) out.tabs = tabList;
23627
+ if (tabList.length > 0) out.tabStops = tabList;
23607
23628
  }
23608
23629
  const suppressLineNumbers = findChild(pPr, "w:suppressLineNumbers");
23609
23630
  if (suppressLineNumbers) {
@@ -23622,10 +23643,8 @@ function parseParagraphProperties(pPr, out) {
23622
23643
  }
23623
23644
  }
23624
23645
  /** Collect field code (begin → separate → end) into a FieldJson */
23625
- function collectField(elements, startIndex, ctx) {
23646
+ function collectField(elements, startIndex, ctx, locked, dirty) {
23626
23647
  let instruction = "";
23627
- let locked = false;
23628
- let dirty = false;
23629
23648
  const fieldChildren = [];
23630
23649
  let pastSeparate = false;
23631
23650
  for (let i = startIndex + 1; i < elements.length; i++) {
@@ -23639,13 +23658,6 @@ function collectField(elements, startIndex, ctx) {
23639
23658
  pastSeparate = true;
23640
23659
  continue;
23641
23660
  }
23642
- }
23643
- if (fldChar) {
23644
- const fldLock = findChild(el, "w:fldChar");
23645
- if (fldLock) {
23646
- if (attr(fldLock, "w:fldLock") === "true") locked = true;
23647
- if (attr(fldLock, "w:dirty") === "true") dirty = true;
23648
- }
23649
23661
  continue;
23650
23662
  }
23651
23663
  if (!pastSeparate) {
@@ -23910,6 +23922,7 @@ async function parseDocx(data, options) {
23910
23922
  const sections = parseBodySections(body, ctx);
23911
23923
  resolveHeadersFooters(sections, ctx);
23912
23924
  const numberingConfig = buildNumberingConfig(parseNumbering(zip), sections);
23925
+ markBulletParagraphs(sections, numberingConfig);
23913
23926
  const footnotes = parseFootnotes(zip);
23914
23927
  const endnotes = parseEndnotes(zip);
23915
23928
  const comments = parseComments(zip);
@@ -24010,24 +24023,17 @@ function parseHeaderFooterContent(rId, ctx) {
24010
24023
  }
24011
24024
  //#endregion
24012
24025
  //#region src/parse/convert.ts
24013
- /**
24014
- * Convert parsed section children to constructor-ready FileChild[].
24015
- */
24026
+ function bridge(value) {
24027
+ return value;
24028
+ }
24016
24029
  function toSectionChildren(children) {
24017
24030
  return children.map(convertFileChild);
24018
24031
  }
24019
- /**
24020
- * Convert parsed paragraph children to constructor-ready ParagraphChild[].
24021
- */
24022
24032
  function toParagraphChildren(children) {
24023
24033
  return children.map(convertParagraphChild);
24024
24034
  }
24025
- /**
24026
- * Convert parsed DocxDocumentJson to constructor-ready Document options.
24027
- * Handles numbering, headers/footers, and all section properties.
24028
- */
24029
24035
  function toDocumentOptions(json) {
24030
- return {
24036
+ return bridge({
24031
24037
  ...json.title && { title: json.title },
24032
24038
  ...json.creator && { creator: json.creator },
24033
24039
  ...json.subject && { subject: json.subject },
@@ -24037,7 +24043,7 @@ function toDocumentOptions(json) {
24037
24043
  ...json.revision && { revision: json.revision },
24038
24044
  ...json.numbering && json.numbering.length > 0 && { numbering: { config: json.numbering } },
24039
24045
  sections: json.sections.map(convertSection)
24040
- };
24046
+ });
24041
24047
  }
24042
24048
  function convertSection(section) {
24043
24049
  const props = { ...section.properties };
@@ -24069,7 +24075,7 @@ function convertFileChild(child) {
24069
24075
  case "pageBreak": return new PageBreak();
24070
24076
  case "sdt": return convertSdt(child);
24071
24077
  case "math": return new RawPassthrough(child.element);
24072
- default: return new RawPassthrough(child.element);
24078
+ default: return new RawPassthrough(bridge(child.element));
24073
24079
  }
24074
24080
  }
24075
24081
  function convertParagraphChild(child) {
@@ -24082,63 +24088,55 @@ function convertParagraphChild(child) {
24082
24088
  case "lineBreak": return new ColumnBreak();
24083
24089
  case "columnBreak": return new ColumnBreak();
24084
24090
  case "tab": return new Run({ children: [new Tab()] });
24085
- case "bookmark": return new RawPassthrough(child.element);
24091
+ case "bookmark": return new RawPassthrough(bridge(child.element));
24086
24092
  case "sdtRun": return convertSdtRun(child);
24087
- case "math": return new RawPassthrough(child.element);
24093
+ case "math": {
24094
+ const el = child.element;
24095
+ return new RawPassthrough(bridge(el));
24096
+ }
24088
24097
  case "field": return convertField(child);
24089
- default: return new RawPassthrough(child.element);
24098
+ default: return new RawPassthrough(bridge(child.element));
24090
24099
  }
24091
24100
  }
24092
24101
  function convertParagraph(json) {
24093
- const { children, text, tabs, ...rest } = json;
24094
- const runs = children ? toParagraphChildren(children) : text ? [new Run({ text })] : void 0;
24095
- return new Paragraph({
24102
+ const { children, ...rest } = json;
24103
+ const runs = children ? toParagraphChildren(children) : void 0;
24104
+ return new Paragraph(bridge({
24096
24105
  ...rest,
24097
- children: runs,
24098
- ...tabs ? { tabStops: tabs.map((t) => ({
24099
- position: t.pos,
24100
- ...t.align ? { type: t.align } : {},
24101
- ...t.leader ? { leader: t.leader } : {}
24102
- })) } : {}
24103
- });
24106
+ children: runs
24107
+ }));
24104
24108
  }
24105
24109
  function convertRun(json) {
24106
- const { underline, strike, doubleStrike, size, sizeCs, ...rest } = json;
24107
- return new Run({
24110
+ const { underline, strike, doubleStrike, ...rest } = json;
24111
+ return new Run(bridge({
24108
24112
  ...rest,
24109
24113
  underline: convertUnderline(underline),
24110
24114
  strike: strike ? true : void 0,
24111
- doubleStrike: doubleStrike ? true : void 0,
24112
- size,
24113
- sizeComplexScript: sizeCs
24114
- });
24115
+ doubleStrike: doubleStrike ? true : void 0
24116
+ }));
24115
24117
  }
24116
24118
  const EMU_PER_PIXEL = 9525;
24117
24119
  function convertImageRun(json) {
24118
24120
  const { data, type, transformation, altText } = json;
24119
- const convertedTransform = transformation ? {
24120
- width: Math.round(transformation.width / EMU_PER_PIXEL),
24121
- height: Math.round(transformation.height / EMU_PER_PIXEL),
24122
- ...transformation.flip && { flip: transformation.flip },
24123
- ...transformation.offset && { offset: transformation.offset }
24124
- } : {
24125
- width: 100,
24126
- height: 100
24127
- };
24128
- return new ImageRun({
24121
+ const width = transformation?.width ?? 100;
24122
+ const height = transformation?.height ?? 100;
24123
+ return new ImageRun(bridge({
24129
24124
  data: typeof data === "string" ? Uint8Array.from(atob(data), (c) => c.charCodeAt(0)) : data,
24130
24125
  type,
24131
- transformation: convertedTransform,
24126
+ transformation: {
24127
+ width: Math.round(width / EMU_PER_PIXEL),
24128
+ height: Math.round(height / EMU_PER_PIXEL)
24129
+ },
24132
24130
  altText
24133
- });
24131
+ }));
24134
24132
  }
24135
24133
  function convertExternalHyperlink(json) {
24136
24134
  const { children, link, tooltip } = json;
24137
- return new ExternalHyperlink({
24135
+ return new ExternalHyperlink(bridge({
24138
24136
  link,
24139
24137
  tooltip,
24140
24138
  children: children ? toParagraphChildren(children) : [new Run({ text: link })]
24141
- });
24139
+ }));
24142
24140
  }
24143
24141
  function convertSdt(json) {
24144
24142
  return new RawPassthrough(json.element);
@@ -24155,25 +24153,25 @@ function convertField(json) {
24155
24153
  }
24156
24154
  function convertTable(json) {
24157
24155
  const { rows, ...rest } = json;
24158
- return new Table({
24156
+ return new Table(bridge({
24159
24157
  ...rest,
24160
24158
  rows: rows.map(convertTableRow)
24161
- });
24159
+ }));
24162
24160
  }
24163
24161
  function convertTableRow(row) {
24164
24162
  const { cells, height, ...rest } = row;
24165
- return new TableRow({
24163
+ return new TableRow(bridge({
24164
+ ...rest,
24166
24165
  children: cells.map(convertTableCell),
24167
- ...height && { height },
24168
- ...rest
24169
- });
24166
+ ...height && { height }
24167
+ }));
24170
24168
  }
24171
24169
  function convertTableCell(cell) {
24172
24170
  const { children, ...rest } = cell;
24173
- return new TableCell({
24171
+ return new TableCell(bridge({
24174
24172
  ...rest,
24175
24173
  children: children ? toSectionChildren(children) : [new Paragraph({ text: "" })]
24176
- });
24174
+ }));
24177
24175
  }
24178
24176
  function convertUnderline(underline) {
24179
24177
  if (!underline) return void 0;
@@ -24454,12 +24452,29 @@ var src_exports = /* @__PURE__ */ __exportAll({
24454
24452
  abstractNumUniqueNumericIdGen: () => abstractNumUniqueNumericIdGen,
24455
24453
  bookmarkUniqueNumericIdGen: () => bookmarkUniqueNumericIdGen,
24456
24454
  buildDocumentAttributes: () => buildDocumentAttributes,
24455
+ buildNumberingConfig: () => buildNumberingConfig,
24457
24456
  buildRunProperties: () => buildRunProperties,
24457
+ calculateRowSpans: () => calculateRowSpans,
24458
24458
  chartAttr: () => chartAttr,
24459
+ collectField: () => collectField,
24460
+ collectUsedNumIds: () => collectUsedNumIds,
24459
24461
  concreteNumUniqueNumericIdGen: () => concreteNumUniqueNumericIdGen,
24462
+ convertExternalHyperlink: () => convertExternalHyperlink,
24463
+ convertField: () => convertField,
24464
+ convertFileChild: () => convertFileChild,
24465
+ convertImageRun: () => convertImageRun,
24460
24466
  convertInchesToTwip: () => convertInchesToTwip,
24461
24467
  convertMillimetersToTwip: () => convertMillimetersToTwip,
24468
+ convertParagraph: () => convertParagraph,
24469
+ convertParagraphChild: () => convertParagraphChild,
24470
+ convertRun: () => convertRun,
24471
+ convertSdt: () => convertSdt,
24472
+ convertSdtRun: () => convertSdtRun,
24473
+ convertTable: () => convertTable,
24474
+ convertTableCell: () => convertTableCell,
24475
+ convertTableRow: () => convertTableRow,
24462
24476
  convertToXmlComponent: () => convertToXmlComponent,
24477
+ convertUnderline: () => convertUnderline,
24463
24478
  createAlignment: () => createAlignment,
24464
24479
  createBodyProperties: () => createBodyProperties,
24465
24480
  createBorderElement: () => createBorderElement,
@@ -24469,6 +24484,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
24469
24484
  createDataModel: () => createDataModel,
24470
24485
  createDivId: () => createDivId,
24471
24486
  createDocumentGrid: () => createDocumentGrid,
24487
+ createDocxParseContext: () => createDocxParseContext,
24472
24488
  createDotEmphasisMark: () => createDotEmphasisMark,
24473
24489
  createEmphasisMark: () => createEmphasisMark,
24474
24490
  createFormFieldData: () => createFormFieldData,
@@ -24504,6 +24520,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
24504
24520
  createMathSubSuperScriptProperties: () => createMathSubSuperScriptProperties,
24505
24521
  createMathSuperScriptElement: () => createMathSuperScriptElement,
24506
24522
  createMathSuperScriptProperties: () => createMathSuperScriptProperties,
24523
+ createNoteContext: () => createNoteContext,
24507
24524
  createOutlineLevel: () => createOutlineLevel,
24508
24525
  createPageMargin: () => createPageMargin,
24509
24526
  createPageNumberType: () => createPageNumberType,
@@ -24535,13 +24552,43 @@ var src_exports = /* @__PURE__ */ __exportAll({
24535
24552
  createWrapTopAndBottom: () => createWrapTopAndBottom,
24536
24553
  docPropertiesUniqueNumericIdGen: () => docPropertiesUniqueNumericIdGen,
24537
24554
  getColorXml: () => getColorXml,
24555
+ getFootnoteType: () => getFootnoteType,
24538
24556
  getLayoutXml: () => getLayoutXml,
24557
+ getMediaData: () => getMediaData,
24539
24558
  getStyleXml: () => getStyleXml,
24540
24559
  hashedId: () => hashedId,
24541
24560
  isRaw: () => isRaw,
24561
+ markBulletParagraphs: () => markBulletParagraphs,
24562
+ parseBodySections: () => parseBodySections,
24563
+ parseComments: () => parseComments,
24542
24564
  parseDocx: () => parseDocx,
24565
+ parseDrawingImage: () => parseDrawingImage,
24566
+ parseEndnotes: () => parseEndnotes,
24567
+ parseFootnotes: () => parseFootnotes,
24568
+ parseHeaderFooterContent: () => parseHeaderFooterContent,
24569
+ parseHyperlink: () => parseHyperlink,
24570
+ parseLevel: () => parseLevel,
24571
+ parseLevelOverrides: () => parseLevelOverrides,
24572
+ parseLevels: () => parseLevels,
24573
+ parseNoteContent: () => parseNoteContent,
24574
+ parseNumbering: () => parseNumbering,
24575
+ parseParagraph: () => parseParagraph,
24576
+ parseParagraphProperties: () => parseParagraphProperties,
24577
+ parsePictImage: () => parsePictImage,
24578
+ parseRun: () => parseRun,
24579
+ parseRunProperties: () => parseRunProperties,
24580
+ parseSdtContent: () => parseSdtContent,
24581
+ parseSdtPr: () => parseSdtPr,
24582
+ parseSdtRun: () => parseSdtRun,
24583
+ parseSectionProperties: () => parseSectionProperties,
24584
+ parseTable: () => parseTable,
24585
+ parseTableCell: () => parseTableCell,
24586
+ parseTableProperties: () => parseTableProperties,
24587
+ parseTableRow: () => parseTableRow,
24543
24588
  patchDetector: () => patchDetector,
24544
24589
  patchDocument: () => patchDocument,
24590
+ remapNumberingReferences: () => remapNumberingReferences,
24591
+ resolveHeadersFooters: () => resolveHeadersFooters,
24545
24592
  sectionMarginDefaults: () => sectionMarginDefaults,
24546
24593
  sectionPageSizeDefaults: () => sectionPageSizeDefaults,
24547
24594
  toDocumentOptions: () => toDocumentOptions,
@@ -24555,6 +24602,6 @@ var src_exports = /* @__PURE__ */ __exportAll({
24555
24602
  __reExport(src_exports, file_exports);
24556
24603
  __reExport(src_exports, util_exports);
24557
24604
  //#endregion
24558
- export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartRun, ChartSpace, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, File as Document, File, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math$1 as Math, MathAngledBrackets, MathBorderBox, MathBox, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathFraction, MathFunction, MathFunctionName, MathGroupChr, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathMatrix, MathNumerator, MathParagraph, MathPhant, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchType, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, STYLE_CATEGORIES, SdtDateMappingType, SdtLock, SectionProperties, SectionPropertiesChange, SectionType, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtRun, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SubDoc, SubDocCollection, SymbolRun, TDirection, Tab, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TablePropertyExceptions, TableRow, TableRowProperties, TableRowPropertiesChange, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextRun, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, UnderlineType, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgGroupRun, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, buildDocumentAttributes, buildRunProperties, chartAttr, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, docPropertiesUniqueNumericIdGen, getColorXml, getLayoutXml, getStyleXml, hashedId, isRaw, parseDocx, patchDetector, patchDocument, sectionMarginDefaults, sectionPageSizeDefaults, toDocumentOptions, toParagraphChildren, toSectionChildren, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl };
24605
+ export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartRun, ChartSpace, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, File as Document, File, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math$1 as Math, MathAngledBrackets, MathBorderBox, MathBox, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathFraction, MathFunction, MathFunctionName, MathGroupChr, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathMatrix, MathNumerator, MathParagraph, MathPhant, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchType, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, STYLE_CATEGORIES, SdtDateMappingType, SdtLock, SectionProperties, SectionPropertiesChange, SectionType, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtRun, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SubDoc, SubDocCollection, SymbolRun, TDirection, Tab, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TablePropertyExceptions, TableRow, TableRowProperties, TableRowPropertiesChange, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextRun, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, UnderlineType, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgGroupRun, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, buildDocumentAttributes, buildNumberingConfig, buildRunProperties, calculateRowSpans, chartAttr, collectField, collectUsedNumIds, concreteNumUniqueNumericIdGen, convertExternalHyperlink, convertField, convertFileChild, convertImageRun, convertInchesToTwip, convertMillimetersToTwip, convertParagraph, convertParagraphChild, convertRun, convertSdt, convertSdtRun, convertTable, convertTableCell, convertTableRow, convertToXmlComponent, convertUnderline, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDocxParseContext, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createNoteContext, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, docPropertiesUniqueNumericIdGen, getColorXml, getFootnoteType, getLayoutXml, getMediaData, getStyleXml, hashedId, isRaw, markBulletParagraphs, parseBodySections, parseComments, parseDocx, parseDrawingImage, parseEndnotes, parseFootnotes, parseHeaderFooterContent, parseHyperlink, parseLevel, parseLevelOverrides, parseLevels, parseNoteContent, parseNumbering, parseParagraph, parseParagraphProperties, parsePictImage, parseRun, parseRunProperties, parseSdtContent, parseSdtPr, parseSdtRun, parseSectionProperties, parseTable, parseTableCell, parseTableProperties, parseTableRow, patchDetector, patchDocument, remapNumberingReferences, resolveHeadersFooters, sectionMarginDefaults, sectionPageSizeDefaults, toDocumentOptions, toParagraphChildren, toSectionChildren, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl };
24559
24606
 
24560
24607
  //# sourceMappingURL=index.mjs.map