@office-open/docx 0.9.7 → 0.10.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.
@@ -1,6 +1,6 @@
1
- import { D as settingsDesc, K as DocumentAttributeNamespaces, S as footnotesDesc, _ as bibliographyDesc, a as appPropertiesDesc, d as withMediaDefaults, f as commentsDesc, g as glossaryDesc, i as webSettingsDesc, l as buildContentTypes, o as customPropertiesDesc, ot as stringifyBodyChild, s as corePropertiesDesc, st as stringifyDocumentXml, u as contentTypesDesc, v as fontTableDesc, x as endnotesDesc } from "./parts-BQBGNSGm.mjs";
2
- import { n as DocxWriteContext } from "./context-BrtlmvVE.mjs";
3
- import { APP_PROPS_XML, OoxmlMimeType, addSmartArtRelationships, createPacker, findAndReplaceImagePlaceholders, formatId, hasPlaceholders, levelForMediaName, replaceAllPlaceholders, replaceNumberingPlaceholders } from "@office-open/core";
1
+ import { C as footnotesDesc, O as settingsDesc, S as endnotesDesc, Y as DocumentAttributeNamespaces, _ as glossaryDesc, a as appPropertiesDesc, d as withAltChunkOverrides, f as withMediaDefaults, i as webSettingsDesc, l as buildContentTypesFromRegistry, lt as stringifyBodyChild, o as customPropertiesDesc, p as commentsDesc, s as corePropertiesDesc, u as contentTypesDesc, ut as stringifyDocumentXml, v as bibliographyDesc, y as fontTableDesc } from "./parts-BWmkYaBr.mjs";
2
+ import { n as DocxWriteContext } from "./context-D9RMvxSu.mjs";
3
+ import { OoxmlMimeType, addSmartArtRelationships, createPacker, findAndReplaceImagePlaceholders, formatId, hasPlaceholders, levelForMediaName, replaceAllPlaceholders, replaceNumberingPlaceholders } from "@office-open/core";
4
4
  import { escapeXml } from "@office-open/xml";
5
5
  import { DEFAULT_DRAWING_XML, getColorXml, getLayoutXml, getStyleXml } from "@office-open/core/smartart";
6
6
  //#region src/parts/fonts/obfuscate-ttf-to-odttf.ts
@@ -125,6 +125,7 @@ const FOOTER_NAMESPACES = [
125
125
  function stringifyHeaderFooter(tag, namespaces, children, ctx) {
126
126
  const attrParts = [];
127
127
  for (const ns of namespaces) attrParts.push(`xmlns:${ns}="${escapeXml(DocumentAttributeNamespaces[ns])}"`);
128
+ attrParts.push("mc:Ignorable=\"w14 w15 wp14\"");
128
129
  const attrStr = attrParts.join(" ");
129
130
  const childParts = [];
130
131
  for (const child of children) childParts.push(stringifyBodyChild(child, ctx));
@@ -158,10 +159,10 @@ function compileDocument(options, overrides = [], mediaLevel = 0) {
158
159
  const files = {};
159
160
  const xmlifiedFileMapping = xmlifyContext(ctx, /* @__PURE__ */ new Map(), /* @__PURE__ */ new Map());
160
161
  const map = new Map(Object.entries(xmlifiedFileMapping));
161
- for (const [, obj] of map) if (Array.isArray(obj)) for (const subFile of obj) files[subFile.path] = typeof subFile.data === "string" ? encoder.encode(subFile.data) : subFile.data;
162
- else {
163
- const fileObj = obj;
164
- files[fileObj.path] = typeof fileObj.data === "string" ? encoder.encode(fileObj.data) : fileObj.data;
162
+ for (const [, obj] of map) {
163
+ if (obj === void 0) continue;
164
+ if (Array.isArray(obj)) for (const subFile of obj) files[subFile.path] = typeof subFile.data === "string" ? encoder.encode(subFile.data) : subFile.data;
165
+ else files[obj.path] = typeof obj.data === "string" ? encoder.encode(obj.data) : obj.data;
165
166
  }
166
167
  for (const subFile of overrides) files[subFile.path] = typeof subFile.data === "string" ? encoder.encode(subFile.data) : subFile.data;
167
168
  const mediaArray = ctx.media.array;
@@ -197,16 +198,21 @@ function xmlifyContext(ctx, headerFormattedViews, footerFormattedViews) {
197
198
  const commentXmlData = commentCtx ? XML_DECL + commentsDesc.stringify(ctx._options.comments, commentCtx) : "";
198
199
  const footnoteRelationshipCount = ctx.footNotes.relationships.relationshipCount + 1;
199
200
  const footnoteCtx = mkCtx({ relationships: ctx.footNotes.relationships });
200
- const footnoteXmlData = XML_DECL + (footnotesDesc.stringify({ notes: ctx.footNotes.notes }, footnoteCtx) ?? "");
201
+ const footnoteXmlData = XML_DECL + (footnotesDesc.stringify({
202
+ notes: ctx.footNotes.notes,
203
+ separator: ctx.footNotes.separator,
204
+ continuationSeparator: ctx.footNotes.continuationSeparator
205
+ }, footnoteCtx) ?? "");
201
206
  const documentMedia = findAndReplaceImagePlaceholders(documentXmlData, ctx.media.array, documentRelationshipCount);
202
207
  const commentMedia = hasComments ? findAndReplaceImagePlaceholders(commentXmlData, ctx.media.array, commentRelationshipCount) : {
203
208
  xml: "",
204
209
  referenced: []
205
210
  };
206
211
  const footnoteMedia = findAndReplaceImagePlaceholders(footnoteXmlData, ctx.media.array, footnoteRelationshipCount);
212
+ for (let i = 0; i < footnoteMedia.referenced.length; i++) ctx.footNotes.relationships.addRelationship(footnoteRelationshipCount + i, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${footnoteMedia.referenced[i].fileName}`);
207
213
  return {
208
214
  AppProperties: {
209
- data: XML_DECL + (ctx._options.appProperties ? appPropertiesDesc.stringify(ctx._options.appProperties, ctx) ?? APP_PROPS_XML : APP_PROPS_XML),
215
+ data: XML_DECL + (appPropertiesDesc.stringify(ctx._options.appProperties ?? {}, ctx) ?? ""),
210
216
  path: "docProps/app.xml"
211
217
  },
212
218
  ...hasComments ? {
@@ -225,21 +231,26 @@ function xmlifyContext(ctx, headerFormattedViews, footerFormattedViews) {
225
231
  }
226
232
  } : {},
227
233
  ContentTypes: {
228
- data: XML_DECL + (contentTypesDesc.stringify(withMediaDefaults(ctx._options.contentTypes ?? buildContentTypes({
229
- headerCount: ctx.headers.length,
230
- footerCount: ctx.footers.length,
231
- chartCount: ctx.charts.array.length,
232
- smartArtCount: ctx.smartArts.array.length,
233
- hasBibliography: !!ctx._options.bibliography,
234
- hasComments,
235
- hasGlossary: !!ctx.glossaryOptions,
236
- hasWebSettings: !!ctx.webSettings,
237
- altChunks: ctx.altChunks.array.map((ac) => ({
234
+ data: XML_DECL + (contentTypesDesc.stringify(withMediaDefaults((() => {
235
+ const altChunks = ctx.altChunks.array.map((ac) => ({
238
236
  path: `/word/${ac.path}`,
239
237
  contentType: ac.contentType ?? "application/xhtml+xml"
240
- })),
241
- subDocs: ctx.subDocs.array.map((sd) => ({ path: `/word/${sd.path}` }))
242
- }), ctx.media.array.map((m) => m.fileName)), ctx) ?? ""),
238
+ }));
239
+ return ctx._options.contentTypes ? withAltChunkOverrides(ctx._options.contentTypes, altChunks) : buildContentTypesFromRegistry(new Map([
240
+ ["freshCompile", true],
241
+ ["hasComments", hasComments],
242
+ ["hasBibliography", !!ctx._options.bibliography],
243
+ ["hasGlossary", !!ctx.glossaryOptions],
244
+ ["hasWebSettings", !!ctx.webSettings],
245
+ ["headerCount", ctx.headers.length],
246
+ ["footerCount", ctx.footers.length],
247
+ ["chartCount", ctx.charts.array.length],
248
+ ["smartArtCount", ctx.smartArts.array.length]
249
+ ]), {
250
+ altChunks,
251
+ subDocs: ctx.subDocs.array.map((sd) => ({ path: `/word/${sd.path}` }))
252
+ });
253
+ })(), ctx.media.array.map((m) => m.fileName)), ctx) ?? ""),
243
254
  path: "[Content_Types].xml"
244
255
  },
245
256
  CustomProperties: {
@@ -285,7 +296,11 @@ function xmlifyContext(ctx, headerFormattedViews, footerFormattedViews) {
285
296
  Endnotes: {
286
297
  data: (() => {
287
298
  const endnoteCtx = mkCtx({ relationships: ctx.endnotes.relationships });
288
- const xmlData = XML_DECL + (endnotesDesc.stringify({ notes: ctx.endnotes.notes }, endnoteCtx) ?? "");
299
+ const xmlData = XML_DECL + (endnotesDesc.stringify({
300
+ notes: ctx.endnotes.notes,
301
+ separator: ctx.endnotes.separator,
302
+ continuationSeparator: ctx.endnotes.continuationSeparator
303
+ }, endnoteCtx) ?? "");
289
304
  const endnoteRelCount = ctx.endnotes.relationships.relationshipCount + 1;
290
305
  const endnoteMedia = findAndReplaceImagePlaceholders(xmlData, ctx.media.array, endnoteRelCount);
291
306
  if (endnoteMedia.referenced.length > 0) {
@@ -296,10 +311,10 @@ function xmlifyContext(ctx, headerFormattedViews, footerFormattedViews) {
296
311
  })(),
297
312
  path: "word/endnotes.xml"
298
313
  },
299
- EndnotesRelationships: {
314
+ EndnotesRelationships: ctx.endnotes.relationships.relationshipCount > 0 ? {
300
315
  data: XML_DECL + ctx.endnotes.relationships.serialize(),
301
316
  path: "word/_rels/endnotes.xml.rels"
302
- },
317
+ } : void 0,
303
318
  FileRelationships: {
304
319
  data: XML_DECL + ctx.fileRelationships.serialize(),
305
320
  path: "_rels/.rels"
@@ -318,13 +333,10 @@ function xmlifyContext(ctx, headerFormattedViews, footerFormattedViews) {
318
333
  })(),
319
334
  path: "word/footnotes.xml"
320
335
  },
321
- FootNotesRelationships: {
322
- data: (() => {
323
- for (let i = 0; i < footnoteMedia.referenced.length; i++) ctx.footNotes.relationships.addRelationship(footnoteRelationshipCount + i, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${footnoteMedia.referenced[i].fileName}`);
324
- return XML_DECL + ctx.footNotes.relationships.serialize();
325
- })(),
336
+ FootNotesRelationships: ctx.footNotes.relationships.relationshipCount > 0 ? {
337
+ data: XML_DECL + ctx.footNotes.relationships.serialize(),
326
338
  path: "word/_rels/footnotes.xml.rels"
327
- },
339
+ } : void 0,
328
340
  FooterRelationships: ctx.footers.map((entry, index) => {
329
341
  const footerCtx = mkCtx({ relationships: entry.relationships });
330
342
  const xmlData = XML_DECL + stringifyHeaderFooter("w:ftr", FOOTER_NAMESPACES, entry.children, footerCtx);
@@ -501,6 +513,6 @@ function generateDocumentStream(options, packerOptions) {
501
513
  return Packer.toStream(options, packerOptions);
502
514
  }
503
515
  //#endregion
504
- export { generateDocumentStream as n, generateDocumentSync as r, generateDocument as t };
516
+ export { compileDocument as i, generateDocumentStream as n, generateDocumentSync as r, generateDocument as t };
505
517
 
506
- //# sourceMappingURL=generate-BMTVflV1.mjs.map
518
+ //# sourceMappingURL=generate-h0Xp5BPT.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-h0Xp5BPT.mjs","names":[],"sources":["../src/parts/fonts/obfuscate-ttf-to-odttf.ts","../src/parts/header-footer.ts","../src/compiler.ts","../src/generate.ts"],"sourcesContent":["/**\n * Font obfuscation module for embedding fonts in WordprocessingML documents.\n *\n * This module implements the OOXML font obfuscation algorithm used to embed\n * fonts in DOCX documents. Obfuscation is required by the OOXML specification\n * to prevent simple extraction of embedded font files.\n *\n * Reference: ECMA-376 Part 2, Section 11.1 (Font Embedding)\n *\n * @module\n */\n\n/** Start offset for obfuscation in the font file */\nconst obfuscatedStartOffset = 0;\n/** End offset for obfuscation (first 32 bytes are obfuscated) */\nconst obfuscatedEndOffset = 32;\n/** Expected GUID size (32 hex characters without dashes) */\nconst guidSize = 32;\n\n/**\n * Obfuscates a TrueType font file for embedding in OOXML documents.\n *\n * The obfuscation algorithm XORs the first 32 bytes of the font file\n * with a reversed byte sequence derived from the font's GUID key.\n * This prevents simple extraction while maintaining font functionality.\n *\n * @param buf - The original font file as a byte array\n * @param fontKey - The GUID key for the font (with or without dashes)\n * @returns The obfuscated font data\n * @throws Error if the fontKey is not a valid 32-character GUID\n *\n * @example\n * ```typescript\n * const fontData = readFileSync(\"font.ttf\");\n * const fontKey = \"00000000-0000-0000-0000-000000000000\";\n * const obfuscatedData = obfuscate(fontData, fontKey);\n * ```\n *\n * @internal\n */\nexport const obfuscate = (buf: Uint8Array, fontKey: string): Uint8Array => {\n const guid = fontKey.replace(/-/g, \"\");\n if (guid.length !== guidSize) {\n throw new Error(`Error: Cannot extract GUID from font filename: ${fontKey}`);\n }\n\n const hexStrings = guid.replace(/(..)/g, \"$1 \").trim().split(\" \");\n const hexNumbers = hexStrings.map((hexString) => parseInt(hexString, 16));\n hexNumbers.reverse();\n\n const bytesToObfuscate = buf.slice(obfuscatedStartOffset, obfuscatedEndOffset);\n const obfuscatedBytes = bytesToObfuscate.map(\n (byte, i) => byte ^ hexNumbers[i % hexNumbers.length],\n );\n\n const out = new Uint8Array(\n obfuscatedStartOffset + obfuscatedBytes.length + Math.max(0, buf.length - obfuscatedEndOffset),\n );\n out.set(buf.slice(0, obfuscatedStartOffset));\n out.set(obfuscatedBytes, obfuscatedStartOffset);\n out.set(buf.slice(obfuscatedEndOffset), obfuscatedStartOffset + obfuscatedBytes.length);\n return out;\n};\n","/**\n * Header/Footer entry module for WordprocessingML documents.\n *\n * Replaces the former HeaderWrapper/FooterWrapper/Header/Footer/HeaderFooterBase\n * class hierarchy with a simple data structure + pure serialization function.\n *\n * Reference: ISO/IEC 29500-4, wml.xsd, CT_HdrFtr\n *\n * @module\n */\n\nimport type { Relationships } from \"@office-open/core\";\nimport { escapeXml } from \"@office-open/xml\";\nimport type { SectionChild } from \"@shared/section\";\n\nimport { stringifyBodyChild } from \"../body\";\nimport type { BodyContext } from \"../context\";\nimport { DocumentAttributeNamespaces } from \"./document/document-attributes\";\nimport type { DocumentAttributeNamespace } from \"./document/document-attributes\";\n\n/**\n * Simple data structure for a header or footer entry.\n *\n * Replaces HeaderWrapper/FooterWrapper — holds children, relationships,\n * and the reference ID needed for section property references.\n *\n * Children are raw SectionChild objects (plain JSON or class instances).\n */\nexport interface HeaderFooterEntry {\n children: SectionChild[];\n relationships: Relationships;\n referenceId: number;\n}\n\n/**\n * Namespace keys used by header elements.\n * @internal\n */\nexport const HEADER_NAMESPACES: DocumentAttributeNamespace[] = [\n \"cx\",\n \"cx1\",\n \"cx2\",\n \"cx3\",\n \"cx4\",\n \"cx5\",\n \"cx6\",\n \"cx7\",\n \"cx8\",\n \"m\",\n \"mc\",\n \"o\",\n \"r\",\n \"v\",\n \"w\",\n \"w10\",\n \"w14\",\n \"w15\",\n \"w16cid\",\n \"w16se\",\n \"wne\",\n \"wp\",\n \"wp14\",\n \"wpc\",\n \"wpg\",\n \"wpi\",\n \"wps\",\n];\n\n/**\n * Namespace keys used by footer elements.\n * @internal\n */\nexport const FOOTER_NAMESPACES: DocumentAttributeNamespace[] = [\n \"m\",\n \"mc\",\n \"o\",\n \"r\",\n \"v\",\n \"w\",\n \"w10\",\n \"w14\",\n \"w15\",\n \"wne\",\n \"wp\",\n \"wp14\",\n \"wpc\",\n \"wpg\",\n \"wpi\",\n \"wps\",\n];\n\n/**\n * Serialize a header or footer to XML.\n *\n * Builds the `<w:hdr>` or `<w:ftr>` element with namespace declarations,\n * then serializes each child element via `stringifyBodyChild()`.\n *\n * @param tag - Element tag name (\"w:hdr\" or \"w:ftr\")\n * @param namespaces - Namespace keys to declare on the root element\n * @param children - Block-level child elements (raw SectionChild objects)\n * @param ctx - Body context for stringification\n */\nexport function stringifyHeaderFooter(\n tag: string,\n namespaces: DocumentAttributeNamespace[],\n children: SectionChild[],\n ctx: BodyContext,\n): string {\n const attrParts: string[] = [];\n for (const ns of namespaces) {\n attrParts.push(`xmlns:${ns}=\"${escapeXml(DocumentAttributeNamespaces[ns])}\"`);\n }\n // mc:Ignorable must declare the ignorable namespaces (w14/w15/wp14) that\n // header/footer content uses (e.g. w14:paraId). Without it, Word in\n // compatibility mode 14 rejects the part as unreadable content.\n attrParts.push('mc:Ignorable=\"w14 w15 wp14\"');\n const attrStr = attrParts.join(\" \");\n\n const childParts: string[] = [];\n for (const child of children) {\n childParts.push(stringifyBodyChild(child, ctx));\n }\n\n const body = childParts.join(\"\");\n return body.length === 0 ? `<${tag} ${attrStr}/>` : `<${tag} ${attrStr}>${body}</${tag}>`;\n}\n","/**\n * DOCX document compiler — pure function entry point.\n *\n * compileDocument() accepts DocumentOptions directly,\n * creates a DocxWriteContext internally, and produces a Zippable result.\n * All XML parts are produced via descriptors or serialize() —\n * no Formatter dependency.\n *\n * @module\n */\n\nimport {\n addSmartArtRelationships,\n findAndReplaceImagePlaceholders,\n formatId,\n hasPlaceholders,\n levelForMediaName,\n replaceAllPlaceholders,\n replaceNumberingPlaceholders,\n} from \"@office-open/core\";\nimport type { XmlifyedFile, ZipOptions, Zippable } from \"@office-open/core\";\nimport {\n DEFAULT_DRAWING_XML,\n getColorXml,\n getLayoutXml,\n getStyleXml,\n} from \"@office-open/core/smartart\";\nimport type { DocumentOptions } from \"@parts/core-properties\";\nimport { obfuscate } from \"@parts/fonts/obfuscate-ttf-to-odttf\";\nimport { HEADER_NAMESPACES, FOOTER_NAMESPACES, stringifyHeaderFooter } from \"@parts/header-footer\";\n\nimport { stringifyDocumentXml, stringifyBodyChild, type BodyContext } from \"./body\";\nimport { DocxWriteContext } from \"./context\";\nimport {\n corePropertiesDesc,\n customPropertiesDesc,\n appPropertiesDesc,\n contentTypesDesc,\n buildContentTypesFromRegistry,\n withAltChunkOverrides,\n withMediaDefaults,\n fontTableDesc,\n webSettingsDesc,\n commentsDesc,\n bibliographyDesc,\n settingsDesc,\n footnotesDesc,\n endnotesDesc,\n glossaryDesc,\n} from \"./parts\";\n\n/** Reusable TextEncoder (stateless, safe to share). */\nconst encoder = new TextEncoder();\n\n/** XML declaration prepended to every OOXML part. */\nconst XML_DECL = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>';\n\n/** Extended context for header/footer formatted view caching. */\ntype DocxContext = BodyContext & {\n headerFormattedViews?: Map<number, string>;\n footerFormattedViews?: Map<number, string>;\n};\n\n// ── Public API ──\n\n/**\n * Compile document options into a flat file map suitable for fflate zipSync.\n *\n * This is the primary entry point for DOCX generation — accepts DocumentOptions\n * directly.\n */\nexport function compileDocument(\n options: DocumentOptions,\n overrides: XmlifyedFile[] = [],\n mediaLevel: number = 0,\n): Zippable {\n const ctx = new DocxWriteContext(options);\n const files: Zippable = {};\n\n const headerFormattedViews = new Map<number, string>();\n const footerFormattedViews = new Map<number, string>();\n\n const xmlifiedFileMapping = xmlifyContext(ctx, headerFormattedViews, footerFormattedViews);\n const map = new Map<string, XmlifyedFile | XmlifyedFile[]>(Object.entries(xmlifiedFileMapping));\n\n for (const [, obj] of map) {\n if (obj === undefined) continue;\n if (Array.isArray(obj)) {\n for (const subFile of obj) {\n files[subFile.path] =\n typeof subFile.data === \"string\" ? encoder.encode(subFile.data) : subFile.data;\n }\n } else {\n files[obj.path] = typeof obj.data === \"string\" ? encoder.encode(obj.data) : obj.data;\n }\n }\n\n for (const subFile of overrides) {\n files[subFile.path] =\n typeof subFile.data === \"string\" ? encoder.encode(subFile.data) : subFile.data;\n }\n\n // Media files\n const mediaArray = ctx.media.array;\n for (const mediaData of mediaArray) {\n files[`word/media/${mediaData.fileName}`] = [\n mediaData.data as Uint8Array,\n { level: levelForMediaName(mediaData.fileName, mediaLevel) as ZipOptions[\"level\"] },\n ];\n if (mediaData.type === \"svg\") {\n files[`word/media/${mediaData.fallback.fileName}`] = [\n mediaData.fallback.data as Uint8Array,\n {\n level: levelForMediaName(mediaData.fallback.fileName, mediaLevel) as ZipOptions[\"level\"],\n },\n ];\n }\n }\n\n // Font files — only fonts carrying binary data produce a .odttf part.\n // Round-tripped fonts (rawOdttf) keep their original obfuscated bytes.\n for (const font of ctx.fontTable.fontOptionsWithKey) {\n if (font.data === undefined) continue;\n const [nameWithoutExtension] = font.name.split(\".\");\n const filePath = font.odttfPath ?? `word/fonts/${nameWithoutExtension}.odttf`;\n files[filePath] = font.rawOdttf ? font.data : obfuscate(font.data, font.fontKey);\n }\n\n // Raw passthrough parts (word/theme/*, customXml/*, …) — generate doesn't\n // rebuild these, so copy their original bytes verbatim to keep [Content_Types]\n // declarations valid and the package openable in Word.\n for (const part of ctx._options.rawParts ?? []) {\n files[part.path] = part.data;\n }\n\n return files;\n}\n\n// ── Internal ──\n\n/**\n * Complete mapping of all XML files in an OOXML document package.\n */\ninterface XmlifyedFileMapping {\n Document: XmlifyedFile;\n Styles: XmlifyedFile;\n Properties: XmlifyedFile;\n Numbering: XmlifyedFile;\n Relationships: XmlifyedFile;\n FileRelationships: XmlifyedFile;\n Headers: XmlifyedFile[];\n Footers: XmlifyedFile[];\n HeaderRelationships: XmlifyedFile[];\n FooterRelationships: XmlifyedFile[];\n ContentTypes: XmlifyedFile;\n CustomProperties: XmlifyedFile;\n AppProperties: XmlifyedFile;\n FootNotes: XmlifyedFile;\n FootNotesRelationships?: XmlifyedFile;\n Endnotes: XmlifyedFile;\n EndnotesRelationships?: XmlifyedFile;\n Settings: XmlifyedFile;\n Comments?: XmlifyedFile;\n CommentsRelationships?: XmlifyedFile;\n FontTable?: XmlifyedFile;\n FontTableRelationships?: XmlifyedFile;\n Bibliography?: XmlifyedFile;\n Charts?: XmlifyedFile[];\n DiagramData?: XmlifyedFile[];\n DiagramLayout?: XmlifyedFile[];\n DiagramStyle?: XmlifyedFile[];\n DiagramColors?: XmlifyedFile[];\n DiagramDrawing?: XmlifyedFile[];\n AltChunks?: XmlifyedFile[];\n SubDocs?: XmlifyedFile[];\n Glossary?: XmlifyedFile;\n WebSettings?: XmlifyedFile;\n}\n\nfunction xmlifyContext(\n ctx: DocxWriteContext,\n headerFormattedViews: Map<number, string>,\n footerFormattedViews: Map<number, string>,\n): XmlifyedFileMapping {\n const mkCtx = (viewWrapper: DocxContext[\"viewWrapper\"] = ctx.document): DocxContext => ({\n fileData: ctx,\n file: ctx,\n viewWrapper,\n stringifyChild: stringifyBodyChild,\n addRelationship: (type: string, target: string, mode?: string) =>\n ctx.addRelationship(type, target, mode),\n addMedia: (data: Uint8Array, type: string) => ctx.addMedia(data, type),\n });\n\n const documentRelationshipCount = ctx.document.relationships.relationshipCount + 1;\n // Per-part media-replacement results shared between the .rels pass and the\n // body-XML pass so both use identical rId offsets. Each header/footer part\n // has its own relationship numbering (independent of the document part).\n const footerMediaResults = new Map<number, { xml: string; referenced: { fileName: string }[] }>();\n const headerMediaResults = new Map<number, { xml: string; referenced: { fileName: string }[] }>();\n const docCtx = mkCtx(ctx.document);\n const documentXmlData = XML_DECL + stringifyDocumentXml(ctx, docCtx);\n\n // Comments is an optional part — skip it entirely (no comments.xml, no\n // comments rels, no [Content_Types] Override) when the document carries none.\n // Emitting an empty comments.xml with a dangling relationship is the OPC\n // violation that makes Word reject the package on open.\n const hasComments = !!ctx._options.comments?.children?.length;\n const commentRelationshipCount = hasComments\n ? ctx.comments.relationships.relationshipCount + 1\n : 0;\n const commentCtx = hasComments ? mkCtx({ relationships: ctx.comments.relationships }) : null;\n const commentXmlData = commentCtx\n ? XML_DECL + commentsDesc.stringify(ctx._options.comments!, commentCtx)\n : \"\";\n\n const footnoteRelationshipCount = ctx.footNotes.relationships.relationshipCount + 1;\n const footnoteCtx = mkCtx({\n relationships: ctx.footNotes.relationships,\n });\n const footnoteXmlData =\n XML_DECL +\n (footnotesDesc.stringify(\n {\n notes: ctx.footNotes.notes,\n separator: ctx.footNotes.separator,\n continuationSeparator: ctx.footNotes.continuationSeparator,\n },\n footnoteCtx,\n ) ?? \"\");\n\n const documentMedia = findAndReplaceImagePlaceholders(\n documentXmlData,\n ctx.media.array,\n documentRelationshipCount,\n );\n const commentMedia = hasComments\n ? findAndReplaceImagePlaceholders(commentXmlData, ctx.media.array, commentRelationshipCount)\n : { xml: \"\", referenced: [] as { fileName: string }[] };\n const footnoteMedia = findAndReplaceImagePlaceholders(\n footnoteXmlData,\n ctx.media.array,\n footnoteRelationshipCount,\n );\n // Register footnote media relationships eagerly so the relationshipCount used\n // to gate footnotes.xml.rels reflects the final state (see FootNotesRelationships).\n for (let i = 0; i < footnoteMedia.referenced.length; i++) {\n ctx.footNotes.relationships.addRelationship(\n footnoteRelationshipCount + i,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",\n `media/${footnoteMedia.referenced[i].fileName}`,\n );\n }\n\n return {\n AppProperties: {\n data: XML_DECL + (appPropertiesDesc.stringify(ctx._options.appProperties ?? {}, ctx) ?? \"\"),\n path: \"docProps/app.xml\",\n },\n ...(hasComments\n ? {\n Comments: {\n data: (() => {\n const xmlData =\n commentMedia.referenced.length > 0 ? commentMedia.xml : commentXmlData;\n return replaceNumberingPlaceholders(xmlData, ctx.numbering.concreteNumbering);\n })(),\n path: \"word/comments.xml\",\n },\n CommentsRelationships: {\n data: (() => {\n for (let i = 0; i < commentMedia.referenced.length; i++) {\n ctx.comments.relationships.addRelationship(\n commentRelationshipCount + i,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",\n `media/${commentMedia.referenced[i].fileName}`,\n );\n }\n return XML_DECL + ctx.comments.relationships.serialize();\n })(),\n path: \"word/_rels/comments.xml.rels\",\n },\n }\n : {}),\n ContentTypes: {\n data:\n XML_DECL +\n (contentTypesDesc.stringify(\n withMediaDefaults(\n (() => {\n const altChunks = ctx.altChunks.array.map((ac) => ({\n path: `/word/${ac.path}`,\n contentType: ac.contentType ?? \"application/xhtml+xml\",\n }));\n // Round-trip passes the source [Content_Types] through, but the\n // compiler regenerates altChunk part paths — realign the afchunk\n // Overrides to the freshly written parts (else O5/O6).\n return ctx._options.contentTypes\n ? withAltChunkOverrides(ctx._options.contentTypes, altChunks)\n : buildContentTypesFromRegistry(\n new Map<string, boolean | number>([\n [\"freshCompile\", true],\n [\"hasComments\", hasComments],\n [\"hasBibliography\", !!ctx._options.bibliography],\n [\"hasGlossary\", !!ctx.glossaryOptions],\n [\"hasWebSettings\", !!ctx.webSettings],\n [\"headerCount\", ctx.headers.length],\n [\"footerCount\", ctx.footers.length],\n [\"chartCount\", ctx.charts.array.length],\n [\"smartArtCount\", ctx.smartArts.array.length],\n ]),\n {\n altChunks,\n subDocs: ctx.subDocs.array.map((sd) => ({ path: `/word/${sd.path}` })),\n },\n );\n })(),\n ctx.media.array.map((m) => m.fileName),\n ),\n ctx,\n ) ?? \"\"),\n path: \"[Content_Types].xml\",\n },\n CustomProperties: {\n data:\n XML_DECL +\n (customPropertiesDesc.stringify({ properties: ctx._options.customProperties ?? [] }, ctx) ??\n \"\"),\n path: \"docProps/custom.xml\",\n },\n Document: {\n data: (() => {\n let xmlData = documentMedia.referenced.length > 0 ? documentMedia.xml : documentXmlData;\n if (hasPlaceholders(xmlData)) {\n const mediaCount = documentMedia.referenced.length;\n const chartKeys = ctx.charts.array.map((c) => c.key);\n const smartArtKeys = ctx.smartArts.array.map((s) => s.key);\n const chartOffset = documentRelationshipCount + mediaCount;\n const smartArtOffset = chartOffset + chartKeys.length;\n\n // Build combined replacement entries for charts, smartart, and numbering\n const entries: Array<{ prefix?: string; key: string; value: string }> = [];\n for (let i = 0; i < chartKeys.length; i++) {\n entries.push({\n prefix: \"chart:\",\n key: chartKeys[i],\n value: formatId(chartOffset, i, \"rId\"),\n });\n }\n const saPrefixes = [\"smartart:\", \"smartart-lo:\", \"smartart-qs:\", \"smartart-cs:\"];\n for (let i = 0; i < smartArtKeys.length; i++) {\n for (let p = 0; p < saPrefixes.length; p++) {\n entries.push({\n prefix: saPrefixes[p],\n key: smartArtKeys[i],\n value: formatId(smartArtOffset + p * smartArtKeys.length, i, \"rId\"),\n });\n }\n }\n for (const { reference, instance, numId } of ctx.numbering.concreteNumbering) {\n entries.push({ key: `${reference}-${instance}`, value: numId.toString() });\n }\n xmlData = replaceAllPlaceholders(xmlData, entries);\n } else {\n xmlData = replaceNumberingPlaceholders(xmlData, ctx.numbering.concreteNumbering);\n }\n return xmlData;\n })(),\n path: \"word/document.xml\",\n },\n Endnotes: {\n data: (() => {\n const endnoteCtx = mkCtx({\n relationships: ctx.endnotes.relationships,\n });\n const xmlData =\n XML_DECL +\n (endnotesDesc.stringify(\n {\n notes: ctx.endnotes.notes,\n separator: ctx.endnotes.separator,\n continuationSeparator: ctx.endnotes.continuationSeparator,\n },\n endnoteCtx,\n ) ?? \"\");\n const endnoteRelCount = ctx.endnotes.relationships.relationshipCount + 1;\n const endnoteMedia = findAndReplaceImagePlaceholders(\n xmlData,\n ctx.media.array,\n endnoteRelCount,\n );\n if (endnoteMedia.referenced.length > 0) {\n for (let i = 0; i < endnoteMedia.referenced.length; i++) {\n ctx.endnotes.relationships.addRelationship(\n endnoteRelCount + i,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",\n `media/${endnoteMedia.referenced[i].fileName}`,\n );\n }\n return replaceNumberingPlaceholders(endnoteMedia.xml, ctx.numbering.concreteNumbering);\n }\n return replaceNumberingPlaceholders(xmlData, ctx.numbering.concreteNumbering);\n })(),\n path: \"word/endnotes.xml\",\n },\n EndnotesRelationships:\n ctx.endnotes.relationships.relationshipCount > 0\n ? {\n data: XML_DECL + ctx.endnotes.relationships.serialize(),\n path: \"word/_rels/endnotes.xml.rels\",\n }\n : undefined,\n FileRelationships: {\n data: XML_DECL + ctx.fileRelationships.serialize(),\n path: \"_rels/.rels\",\n },\n FontTable: {\n data:\n XML_DECL +\n (fontTableDesc.stringify({ fonts: ctx.fontTable.fontOptionsWithKey }, ctx) ?? \"\"),\n path: \"word/fontTable.xml\",\n },\n FontTableRelationships: {\n data: XML_DECL + ctx.fontTable.relationships.serialize(),\n path: \"word/_rels/fontTable.xml.rels\",\n },\n FootNotes: {\n data: (() => {\n const xmlData = footnoteMedia.referenced.length > 0 ? footnoteMedia.xml : footnoteXmlData;\n return replaceNumberingPlaceholders(xmlData, ctx.numbering.concreteNumbering);\n })(),\n path: \"word/footnotes.xml\",\n },\n FootNotesRelationships:\n ctx.footNotes.relationships.relationshipCount > 0\n ? {\n data: XML_DECL + ctx.footNotes.relationships.serialize(),\n path: \"word/_rels/footnotes.xml.rels\",\n }\n : undefined,\n FooterRelationships: ctx.footers.map((entry, index) => {\n const footerCtx = mkCtx({ relationships: entry.relationships });\n const xmlData =\n XML_DECL + stringifyHeaderFooter(\"w:ftr\", FOOTER_NAMESPACES, entry.children, footerCtx);\n footerFormattedViews.set(index, xmlData);\n // Footer images get per-part relationship IDs starting at\n // relationshipCount+1, mirroring the document part. The placeholder pass\n // uses referenced-local positions, so body r:embed and .rels stay aligned.\n const footerRelCount = entry.relationships.relationshipCount + 1;\n const footerMedia = findAndReplaceImagePlaceholders(xmlData, ctx.media.array, footerRelCount);\n footerMediaResults.set(index, footerMedia);\n\n for (let i = 0; i < footerMedia.referenced.length; i++) {\n entry.relationships.addRelationship(\n footerRelCount + i,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",\n `media/${footerMedia.referenced[i].fileName}`,\n );\n }\n\n return {\n data: XML_DECL + entry.relationships.serialize(),\n path: `word/_rels/footer${index + 1}.xml.rels`,\n };\n }),\n Footers: ctx.footers.map((_entry, index) => {\n const footerMedia = footerMediaResults.get(index)!;\n const tempXmlData = footerFormattedViews.get(index)!;\n const xmlData = footerMedia.referenced.length > 0 ? footerMedia.xml : tempXmlData;\n\n return {\n data: replaceNumberingPlaceholders(xmlData, ctx.numbering.concreteNumbering),\n path: `word/footer${index + 1}.xml`,\n };\n }),\n HeaderRelationships: ctx.headers.map((entry, index) => {\n const headerCtx = mkCtx({ relationships: entry.relationships });\n const xmlData =\n XML_DECL + stringifyHeaderFooter(\"w:hdr\", HEADER_NAMESPACES, entry.children, headerCtx);\n headerFormattedViews.set(index, xmlData);\n // Header images get per-part relationship IDs starting at\n // relationshipCount+1, mirroring the document part. The placeholder pass\n // uses referenced-local positions, so body r:embed and .rels stay aligned.\n const headerRelCount = entry.relationships.relationshipCount + 1;\n const headerMedia = findAndReplaceImagePlaceholders(xmlData, ctx.media.array, headerRelCount);\n headerMediaResults.set(index, headerMedia);\n\n for (let i = 0; i < headerMedia.referenced.length; i++) {\n entry.relationships.addRelationship(\n headerRelCount + i,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",\n `media/${headerMedia.referenced[i].fileName}`,\n );\n }\n\n return {\n data: XML_DECL + entry.relationships.serialize(),\n path: `word/_rels/header${index + 1}.xml.rels`,\n };\n }),\n Headers: ctx.headers.map((_entry, index) => {\n const headerMedia = headerMediaResults.get(index)!;\n const tempXmlData = headerFormattedViews.get(index)!;\n const xmlData = headerMedia.referenced.length > 0 ? headerMedia.xml : tempXmlData;\n\n return {\n data: replaceNumberingPlaceholders(xmlData, ctx.numbering.concreteNumbering),\n path: `word/header${index + 1}.xml`,\n };\n }),\n Numbering: {\n data: ctx.numbering.serialize(),\n path: \"word/numbering.xml\",\n },\n Properties: {\n data: XML_DECL + (corePropertiesDesc.stringify(ctx._options, ctx) ?? \"\"),\n path: \"docProps/core.xml\",\n },\n Relationships: {\n data: (() => {\n for (let i = 0; i < documentMedia.referenced.length; i++) {\n ctx.document.relationships.addRelationship(\n documentRelationshipCount + i,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",\n `media/${documentMedia.referenced[i].fileName}`,\n );\n }\n\n const chartOffset = documentRelationshipCount + documentMedia.referenced.length;\n for (let i = 0; i < ctx.charts.array.length; i++) {\n ctx.document.relationships.addRelationship(\n chartOffset + i,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart\",\n `charts/chart${i + 1}.xml`,\n );\n }\n\n addSmartArtRelationships(\n ctx.smartArts.array.map((s) => s.key),\n (id, type, target) => {\n ctx.document.relationships.addRelationship(id, type, target);\n },\n documentRelationshipCount + documentMedia.referenced.length + ctx.charts.array.length,\n 0,\n {\n pathPrefix: \"\",\n styleRelType: \"http://schemas.microsoft.com/office/2007/relationships/diagramStyle\",\n },\n );\n\n ctx.document.relationships.addRelationship(\n ctx.document.relationships.relationshipCount + 1,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable\",\n \"fontTable.xml\",\n );\n\n return XML_DECL + ctx.document.relationships.serialize();\n })(),\n path: \"word/_rels/document.xml.rels\",\n },\n Settings: {\n data: XML_DECL + (settingsDesc.stringify(ctx._settingsOptions, ctx) ?? \"\"),\n path: \"word/settings.xml\",\n },\n Styles: {\n data: (() => {\n const xmlStyles = ctx.styles.serialize();\n return replaceNumberingPlaceholders(xmlStyles, ctx.numbering.concreteNumbering);\n })(),\n path: \"word/styles.xml\",\n },\n ...(ctx._options.bibliography\n ? {\n Bibliography: {\n data: XML_DECL + (bibliographyDesc.stringify(ctx._options.bibliography, ctx) ?? \"\"),\n path: \"word/bibliography.xml\",\n },\n }\n : {}),\n ...(ctx.charts.array.length > 0\n ? {\n Charts: ctx.charts.array.flatMap((chartData, i) => [\n {\n data: XML_DECL + chartData.chartSpaceXml,\n path: `word/charts/chart${i + 1}.xml`,\n },\n {\n data: '<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\"/>',\n path: `word/charts/_rels/chart${i + 1}.xml.rels`,\n },\n ]),\n }\n : {}),\n ...(ctx.smartArts.array.length > 0\n ? {\n DiagramData: ctx.smartArts.array.map((smartArtData, i) => ({\n data: XML_DECL + smartArtData.dataModelXml,\n path: `word/diagrams/data${i + 1}.xml`,\n })),\n DiagramLayout: ctx.smartArts.array.map((smartArtData, i) => ({\n data: getLayoutXml(smartArtData.layout),\n path: `word/diagrams/layout${i + 1}.xml`,\n })),\n DiagramStyle: ctx.smartArts.array.map((smartArtData, i) => ({\n data: getStyleXml(smartArtData.style),\n path: `word/diagrams/quickStyle${i + 1}.xml`,\n })),\n DiagramColors: ctx.smartArts.array.map((smartArtData, i) => ({\n data: getColorXml(smartArtData.color),\n path: `word/diagrams/colors${i + 1}.xml`,\n })),\n DiagramDrawing: ctx.smartArts.array.map((_, i) => ({\n data: DEFAULT_DRAWING_XML,\n path: `word/diagrams/drawing${i + 1}.xml`,\n })),\n }\n : {}),\n ...(ctx.altChunks.array.length > 0\n ? {\n AltChunks: ctx.altChunks.array.map((altChunkData) => ({\n data: altChunkData.data,\n path: `word/${altChunkData.path}`,\n })),\n }\n : {}),\n ...(ctx.subDocs.array.length > 0\n ? {\n SubDocs: ctx.subDocs.array.map((subDocData) => ({\n data: subDocData.data,\n path: `word/${subDocData.path}`,\n })),\n }\n : {}),\n ...(ctx.glossaryOptions\n ? {\n Glossary: {\n data: (() => {\n const glossaryCtx = mkCtx(undefined);\n return XML_DECL + (glossaryDesc.stringify(ctx.glossaryOptions!, glossaryCtx) ?? \"\");\n })(),\n path: \"word/glossary/document.xml\",\n },\n }\n : {}),\n ...(ctx.webSettings\n ? {\n WebSettings: {\n data: XML_DECL + (webSettingsDesc.stringify(ctx._options.webSettings ?? {}, ctx) ?? \"\"),\n path: \"word/webSettings.xml\",\n },\n }\n : {}),\n };\n}\n","/**\n * Pure function API for generating DOCX files.\n *\n * @module\n */\n\nimport { createPacker, OoxmlMimeType } from \"@office-open/core\";\nimport type { OutputByType, OutputType, PackerOptions } from \"@office-open/core\";\nimport type { DocumentOptions } from \"@parts/core-properties\";\n\nimport { compileDocument } from \"./compiler\";\n\n/** @internal Packer instance for DOCX generation. */\nconst Packer = createPacker<DocumentOptions>({\n compile: (options, overrides, mediaLevel) => compileDocument(options, overrides, mediaLevel),\n mimeType: OoxmlMimeType.DOCX,\n});\n\n/**\n * Generate a DOCX file from pure JSON options.\n *\n * The output format is controlled by `packerOptions.type` (default: `\"nodebuffer\"` → Buffer).\n * For synchronous generation, use {@link generateDocumentSync}. For streaming, use {@link generateDocumentStream}.\n *\n * @param options - Document options (sections, styles, numbering, etc.)\n * @param packerOptions - Optional packer configuration (type, compression, overrides, etc.)\n *\n * @example\n * ```typescript\n * import { generateDocument } from \"@office-open/docx\";\n *\n * const buffer = await generateDocument({ sections: [...] });\n * const bytes = await generateDocument({ sections: [...] }, { type: \"uint8array\" });\n * const blob = await generateDocument({ sections: [...] }, { type: \"blob\" });\n * ```\n */\nexport function generateDocument<T extends OutputType = \"nodebuffer\">(\n options: DocumentOptions,\n packerOptions?: PackerOptions<T>,\n): Promise<OutputByType[T]> {\n return Packer.pack(options, packerOptions) as Promise<OutputByType[T]>;\n}\n\n/**\n * Synchronously generate a DOCX file from pure JSON options.\n */\nexport function generateDocumentSync<T extends OutputType = \"nodebuffer\">(\n options: DocumentOptions,\n packerOptions?: PackerOptions<T>,\n): OutputByType[T] {\n return Packer.packSync(options, packerOptions) as OutputByType[T];\n}\n\n/**\n * Generate a DOCX file as a `ReadableStream<Uint8Array>`.\n */\nexport function generateDocumentStream(\n options: DocumentOptions,\n packerOptions?: PackerOptions,\n): ReadableStream<Uint8Array> {\n return Packer.toStream(options, packerOptions);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,MAAM,wBAAwB;;AAE9B,MAAM,sBAAsB;;AAE5B,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;AAuBjB,MAAa,aAAa,KAAiB,YAAgC;CACzE,MAAM,OAAO,QAAQ,QAAQ,MAAM,EAAE;CACrC,IAAI,KAAK,WAAW,UAClB,MAAM,IAAI,MAAM,kDAAkD,SAAS;C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AAa;AAC/C;;;;AAKA,SAAgB,uBACd,SACA,eAC4B;CAC5B,OAAO,OAAO,SAAS,SAAS,aAAa;AAC/C"}
@@ -1,4 +1,4 @@
1
- import { n as DocumentOptions } from "./core-properties-CBMhgSrn.mjs";
1
+ import { t as DocumentOptions } from "./core-properties-DNjQDzBy.mjs";
2
2
  import { OutputByType, OutputType, PackerOptions } from "@office-open/core";
3
3
 
4
4
  //#region src/generate.d.ts
package/dist/generate.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as generateDocumentStream, r as generateDocumentSync, t as generateDocument } from "./generate-BMTVflV1.mjs";
1
+ import { n as generateDocumentStream, r as generateDocumentSync, t as generateDocument } from "./generate-h0Xp5BPT.mjs";
2
2
  export { generateDocument, generateDocumentStream, generateDocumentSync };
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { $ as RevisionViewOptions, $a as RunPropertiesChangeOptions, $i as TablePropertiesOptions, $n as SmartArtOptions, $r as TextWrappingSide, $t as PageSizeAttributes, A as SubDocData, Aa as TableVerticalAlign, Ai as YearShort, An as DropDownListOptions, Ar as createBodyProperties, At as parseSectionPropertiesEl, B as EndnotePropertiesOptions, Ba as SdtComboBoxOptions, Bi as VerticalPositionAlign, Bn as PositionalTabAlignment, Br as drawingDesc, Bt as LineNumberRestartFormat, C as TargetScreenSize, Ca as IndentAttributesProperties, Ci as MonthShort, Cn as ParagraphOptions, Cr as NormalAutofitOptions, Ct as sectionPageSizeDefaults, D as framesetXml, Da as TableWidthProperties, Di as SoftHyphen, Dn as ProofErrorTypeValue, Dr as TextVertOverflowType, Dt as SectionOptions, E as frameXml, Ea as AlignmentType, Ei as Separator, En as ProofErrorType, Er as TextHorzOverflowType, Et as SectionChild, F as parseStyleDefinitions, Fa as VerticalMergeRevisionType, Fi as FrameWrap, Fn as TextInputOptions, Fr as WpgGroupCoreOptions, Ft as HeaderFooterType, G as MailMergeDocType, Ga as SdtListItem, Gi as SdtRowOptions, Gn as CommentsOptions, Gr as HorizontalPositionOptions, Gt as PageBorderDisplay, H as HyphenationOptions, Ha as SdtDateMappingType, Hi as tableDesc, Hn as PositionalTabOptions, Hr as createVerticalPosition, Ht as PageTextDirectionType, I as AutoCaptionOptions, Ia as stringifyTableOfContents, Ii as XYFrameOptions, In as createFormFieldData, Ir as WpgGroupOptions, It as createHeaderFooterReference, J as MathPropertiesOptions, Ja as SdtTextOptions, Ji as TextDirection, Jn as WpsShapeRunOptions, Jr as VerticalPositionOptions, Jt as PageBordersOptions, K as MailMergeOptions, Ka as SdtLock, Ki as TableRowOptions, Kn as SimpleFieldOptions, Kr as HorizontalPositionRelativeFrom, Kt as PageBorderOffsetFrom, L as CaptionOptions, La as parseToc, Li as HorizontalPositionAlign, Ln as parseFormFieldData, Lr as DrawingDescriptorOptions, Lt as SectionType, M as StylesOptions, Ma as VerticalAlignTable, Mi as DropCapType, Mn as FormFieldOptions, Mr as ChildExtent, Mt as stringifySectionPropertiesXml, N as buildNumberingCache, Na as createVerticalAlign, Ni as FrameAnchorType, Nn as FormFieldTextOptions, Nr as ChildOffset, Nt as HeaderFooterReferenceOptions, O as webSettingsDesc, Oa as WidthType, Oi as Tab, On as SmartTagRunOptions, Or as TextVerticalType, Ot as VmlShapeStyle, P as buildStyleCache, Pa as CellMergeAttributes, Pi as FrameOptions, Pn as FormFieldTextType, Pr as GroupChild, Pt as HeaderFooterReferenceType, Q as ReadModeInkLockDownOptions, Qa as ParagraphRunPropertiesOptions, Qi as TablePropertiesChangeOptions, Qn as SmartArtNode, Qr as TextWrapping, Qt as PageOrientation, R as CaptionsOptions, Ra as SdtCheckboxOptions, Ri as NumberFormat, Rn as RubyAlign, Rr as GraphicFrameLocksOptions, Rt as createSectionType, S as DivOptions, Sa as BreakTypeValue, Si as MonthLong, Sn as ParagraphChild, So as bibliographyDesc, Sr as FlatTextOptions, St as sectionMarginDefaults, T as WebSettingsOptions, Ta as BordersOptions, Ti as PageNumberElement, Tn as SmartArtChild, Tr as TextBodyWrappingType, Tt as DocumentAttributeNamespaces, U as MailMergeDataType, Ua as SdtDateOptions, Ui as TableOptions, Un as PositionalTabRelativeTo, Ur as createHorizontalPosition, Ut as PageMarginAttributes, V as FootnotePropertiesOptions, Va as SdtDataBindingOptions, Vi as setTableParseChild, Vn as PositionalTabLeader, Vr as resetDrawingIdGen, Vt as createLineNumberType, W as MailMergeDest, Wa as SdtDropDownListOptions, Wi as HeightRule, Wn as CommentOptions, Wr as Floating, Wt as createPageMargin, X as OdsoFieldType, Xa as TableOfContentsOptions, Xi as TablePropertyExChangeOptions, Xn as BackgroundRawMediaOptions, Xr as createWrapThrough, Xt as PageNumberTypeAttributes, Y as OdsoFieldMapDataOptions, Ya as StyleLevel, Yi as VerticalMergeType, Yn as BackgroundImageOptions, Yr as VerticalPositionRelativeFrom, Yt as PageNumberSeparator, Z as OdsoOptions, Za as HighlightColor, Zi as TablePropertyExOptions, Zn as DocumentBackgroundOptions, Zr as createWrapTight, Zt as createPageNumberType, _ as DocxPartRefs, _a as TabStopType, _i as DayLong, _n as TableRowPropertiesOptions, _o as buildContentTypes, _r as ShapeStyleOptions, _t as glossaryDesc, a as CustomPropertiesInput, aa as RelativeVerticalPosition, ai as ParagraphPropertiesChangeOptions, an as ColumnAttributes, ao as EmphasisMarkType, ar as createTransformation, at as AbstractNumberingOptions, b as parseDocx, ba as SpacingProperties, bi as FootnoteReferenceElement, bn as ImageChild, bo as BibliographyOptions, br as WpsShapeOptions, bt as SectionPropertiesOptions, c as AppPropertiesInput, ca as TABLE_BORDERS_NONE, ci as ParagraphStylePropertiesOptions, cn as CustomXmlCellOptions, co as BorderOptions, cr as GroupChildMediaData, ct as parseNumberingDefinitions, d as settingsDesc, da as MathRunPropertiesOptions, di as PageNumber, dn as CustomXmlRowOptions, do as AltChunkCollection, dr as PicCnvPrOptions, dt as LevelsOptions, ea as TablePropertiesOptionsBase, ei as TextWrappingType, en as createPageSize, eo as RunPropertiesOptions, er as ChartOptions, et as RsidsOptions, f as EmbeddedFontOptionsWithKey, fa as MathScriptType, fi as ParagraphRunOptions, fn as CustomXmlRunOptions, fo as AltChunkData, fr as SmartArtMediaData, ft as DocPartBehavior, g as DocxDocument, ga as TabStopPosition, gi as ContinuationSeparator, gn as TableRowPropertiesChangeOptions, go as ContentTypesInput, gr as WpsMediaData, gt as GlossaryDocumentOptions, h as DocxWriteContext, ha as TabStopDefinition, hi as CarriageReturn, hn as CnfStyleOptions, ho as ContentTypeOverride, hr as WpgMediaData, ht as DocPartType, i as corePropertiesDesc, ia as RelativeHorizontalPosition, ii as LevelParagraphStylePropertiesOptions, in as ColumnsAttributes, io as FontAttributesProperties, ir as MediaTransformation, it as ConcreteNumberingOptions, j as Styles, ja as VerticalAlignSection, ji as AlignmentFrameOptions, jn as FormFieldCommonOptions, jr as parseBodyProperties, jt as sectionPropertiesDesc, k as SubDocCollection, ka as SectionVerticalAlign, ki as YearLong, kn as CheckBoxOptions, kr as VerticalAnchor, kt as SubDocOptions, l as AppPropertiesOptions, la as TableBordersOptions, li as TextAlignmentType, ln as CustomXmlDataBindingOptions, lo as BorderStyle, lr as MediaData, lt as LevelFormat, m as DocxReadContext, ma as LeaderType, mi as AnnotationReference, mn as TableCellOptions, mo as ContentTypeDefault, mr as WpgCommonMediaData, mt as DocPartOptions, n as DocumentOptions, na as TableLayoutType, ni as DrawingOptions, nn as DocumentGridType, no as TextEffect, nr as createImageData, nt as WriteProtectionOptions, o as CustomPropertyOptions, oa as TableAnchorType, oi as ParagraphPropertiesOptions, on as CustomXmlAttributeOptions, oo as ShadingAttributesProperties, or as ChartMediaData, ot as Numbering, p as BodyContext, pa as MathStyleType, pi as RunOptions, pn as SdtCellOptions, po as CharacterSet, pr as WORKAROUND2, pt as DocPartGallery, q as MailMergeSourceType, qa as SdtPropertiesOptions, qi as TableCellBordersOptions, qn as WpgGroupRunOptions, qr as Margins, qt as PageBorderZOrder, r as FeaturesOptions, ra as OverlapType, ri as SymbolRunOptions, rn as createDocumentGrid, ro as UnderlineType, rr as Media, rt as CompatibilityOptions, s as customPropertiesDesc, sa as TableFloatOptions, si as ParagraphPropertiesOptionsBase, sn as CustomXmlBlockOptions, so as ShadingType, sr as ExtendedMediaData, st as NumberingOptions, t as CorePropertiesInput, ta as TableLookOptions, ti as Distance, tn as DocGridAttributesProperties, to as RunStylePropertiesOptions, tr as ImageOptions, tt as SettingsOptions, u as appPropertiesDesc, ua as MathInput, ui as TextboxTightWrapType, un as CustomXmlPrOptions, uo as AltChunkOptions, ur as MediaDataTransformation, ut as LevelSuffix, v as parseArchive, va as HeadingLevel, vi as DayShort, vn as TableRowPropertiesOptionsBase, vo as contentTypesDesc, vr as StyleMatrixReferenceOptions, vt as HeaderFooterGroup, w as WebSettingsInput, wa as CnfConditionalOptions, wi as NoBreakHyphen, wn as SdtRunOptions, wr as PresetTextShapeOptions, wt as DocumentAttributeNamespace, x as DivBorderOptions, xa as BreakType, xi as LastRenderedPageBreak, xn as MathChild, xo as SourceTypeOptions, xr as BodyPropertiesOptions, xt as SectionPropertiesOptionsBase, y as parseDocument, ya as LineRuleType, yi as EndnoteReference, yn as ChartChild, yo as withMediaDefaults, yr as WpsShapeCoreOptions, yt as SectionPropertiesChangeOptions, z as DocumentProtectionOptions, za as SdtCheckboxSymbol, zi as SpaceType, zn as RubyOptions, zr as GroupShapeLocksOptions, zt as LineNumberAttributes } from "./core-properties-CBMhgSrn.mjs";
1
+ import { $ as RevisionViewOptions, $a as SdtPropertiesOptions, $i as TableCellBordersOptions, $n as WpgGroupRunOptions, $r as Margins, $t as PageBorderZOrder, A as Styles, Aa as CnfConditionalOptions, Ai as NoBreakHyphen, An as SdtRunOptions, Ar as PresetTextShapeOptions, At as DocumentAttributeNamespace, B as EndnotePropertiesOptions, Ba as CellMergeAttributes, Bi as FrameOptions, Bn as FormFieldTextType, Br as GroupChild, Bt as HeaderFooterReferenceType, C as WebSettingsInput, Ca as TabStopType, Ci as DayLong, Cn as TableRowPropertiesOptions, Co as buildContentTypesFromRegistry, Cr as ShapeStyleOptions, Ct as endnotesDesc, D as webSettingsDesc, Da as BreakType, Di as LastRenderedPageBreak, Dn as MathChild, Do as BibliographyOptions, Dr as BodyPropertiesOptions, Dt as SectionPropertiesOptionsBase, E as framesetXml, Ea as SpacingProperties, Ei as FootnoteReferenceElement, En as ImageChild, Eo as withMediaDefaults, Er as WpsShapeOptions, Et as SectionPropertiesOptions, F as parseStyleDefinitions, Fa as SectionVerticalAlign, Fi as YearLong, Fn as CheckBoxOptions, Fr as VerticalAnchor, Ft as SubDocOptions, G as MailMergeDocType, Ga as SdtCheckboxSymbol, Gi as SpaceType, Gn as RubyOptions, Gr as GroupShapeLocksOptions, Gt as LineNumberAttributes, H as HyphenationOptions, Ha as stringifyTableOfContents, Hi as XYFrameOptions, Hn as createFormFieldData, Hr as WpgGroupOptions, Ht as createHeaderFooterReference, I as AutoCaptionOptions, Ia as TableVerticalAlign, Ii as YearShort, In as DropDownListOptions, Ir as createBodyProperties, It as parseSectionPropertiesEl, J as MathPropertiesOptions, Ja as SdtDateMappingType, Ji as tableDesc, Jn as PositionalTabOptions, Jr as createVerticalPosition, Jt as PageTextDirectionType, K as MailMergeOptions, Ka as SdtComboBoxOptions, Ki as VerticalPositionAlign, Kn as PositionalTabAlignment, Kr as drawingDesc, Kt as LineNumberRestartFormat, L as CaptionOptions, La as VerticalAlignSection, Li as AlignmentFrameOptions, Ln as FormFieldCommonOptions, Lr as parseBodyProperties, Lt as sectionPropertiesDesc, M as buildNumberingCache, Ma as AlignmentType, Mi as Separator, Mn as ProofErrorType, Mr as TextHorzOverflowType, Mt as SectionChild, N as buildStyleCache, Na as TableWidthProperties, Ni as SoftHyphen, Nn as ProofErrorTypeValue, Nr as TextVertOverflowType, Nt as SectionOptions, O as SubDocCollection, Oa as BreakTypeValue, Oi as MonthLong, On as ParagraphChild, Oo as SourceTypeOptions, Or as FlatTextOptions, Ot as sectionMarginDefaults, P as extractStyleId, Pa as WidthType, Pi as Tab, Pn as SmartTagRunOptions, Pr as TextVerticalType, Pt as VmlShapeStyle, Q as ReadModeInkLockDownOptions, Qa as SdtLock, Qi as TableRowOptions, Qn as SimpleFieldOptions, Qr as HorizontalPositionRelativeFrom, Qt as PageBorderOffsetFrom, R as CaptionsOptions, Ra as VerticalAlignTable, Ri as DropCapType, Rn as FormFieldOptions, Rr as ChildExtent, Rt as stringifySectionPropertiesXml, S as TargetScreenSize, Sa as TabStopPosition, Si as ContinuationSeparator, Sn as TableRowPropertiesChangeOptions, So as ContentTypesInput, Sr as WpsMediaData, St as EndnotesData, T as frameXml, Ta as LineRuleType, Ti as EndnoteReference, Tn as ChartChild, To as withAltChunkOverrides, Tr as WpsShapeCoreOptions, Tt as SectionPropertiesChangeOptions, U as MailMergeDataType, Ua as parseToc, Ui as HorizontalPositionAlign, Un as parseFormFieldData, Ur as DrawingDescriptorOptions, Ut as SectionType, V as FootnotePropertiesOptions, Va as VerticalMergeRevisionType, Vi as FrameWrap, Vn as TextInputOptions, Vr as WpgGroupCoreOptions, Vt as HeaderFooterType, W as MailMergeDest, Wa as SdtCheckboxOptions, Wi as NumberFormat, Wn as RubyAlign, Wr as GraphicFrameLocksOptions, Wt as createSectionType, X as OdsoFieldType, Xa as SdtDropDownListOptions, Xi as HeightRule, Xn as CommentOptions, Xr as Floating, Xt as createPageMargin, Y as OdsoFieldMapDataOptions, Ya as SdtDateOptions, Yi as TableOptions, Yn as PositionalTabRelativeTo, Yr as createHorizontalPosition, Yt as PageMarginAttributes, Z as OdsoOptions, Za as SdtListItem, Zi as SdtRowOptions, Zn as CommentsOptions, Zr as HorizontalPositionOptions, Zt as PageBorderDisplay, _ as parseArchive, _a as MathRunPropertiesOptions, _i as PageNumber, _n as CustomXmlRowOptions, _o as AltChunkCollection, _r as NonVisualPropertiesOptions, _t as glossaryDesc, a as CustomPropertyOptions, aa as TablePropertiesOptions, ai as TextWrappingSide, an as PageSizeAttributes, ao as RunPropertiesChangeOptions, ar as SmartArtOptions, at as AbstractNumberingOptions, b as DivBorderOptions, ba as LeaderType, bi as AnnotationReference, bn as TableCellOptions, bo as ContentTypeDefault, br as WpgCommonMediaData, bt as footnotesDesc, c as AppPropertiesOptions, ca as TableLayoutType, ci as DrawingOptions, cn as DocumentGridType, co as TextEffect, cr as createImageData, ct as parseNumberingDefinitions, d as EmbeddedFontOptionsWithKey, da as RelativeVerticalPosition, di as ParagraphPropertiesChangeOptions, dn as ColumnAttributes, do as EmphasisMarkType, dr as createTransformation, dt as LevelsOptions, ea as TextDirection, ei as VerticalPositionOptions, en as PageBordersOptions, eo as SdtTextOptions, er as WpsShapeRunOptions, et as RsidsOptions, f as BodyContext, fa as TableAnchorType, fi as ParagraphPropertiesOptions, fn as CustomXmlAttributeOptions, fo as ShadingAttributesProperties, fr as ChartMediaData, ft as DocPartBehavior, g as DocxPartRefs, ga as MathInput, gi as TextboxTightWrapType, gn as CustomXmlPropertiesOptions, go as AltChunkOptions, gr as MediaDataTransformation, gt as GlossaryDocumentOptions, h as DocxDocument, ha as TableBordersOptions, hi as TextAlignmentType, hn as CustomXmlDataBindingOptions, ho as BorderStyle, hr as MediaData, ht as DocPartType, i as CustomPropertiesInput, ia as TablePropertiesChangeOptions, ii as TextWrapping, in as PageOrientation, io as ParagraphRunPropertiesOptions, ir as SmartArtNode, it as ConcreteNumberingOptions, j as StylesOptions, ja as BordersOptions, ji as PageNumberElement, jn as SmartArtChild, jr as TextBodyWrappingType, jt as DocumentAttributeNamespaces, k as SubDocData, ka as IndentAttributesProperties, ki as MonthShort, kn as ParagraphOptions, ko as bibliographyDesc, kr as NormalAutofitOptions, kt as sectionPageSizeDefaults, l as appPropertiesDesc, la as OverlapType, li as SymbolRunOptions, ln as createDocumentGrid, lo as UnderlineType, lr as Media, lt as LevelFormat, m as DocxWriteContext, ma as TABLE_BORDERS_NONE, mi as ParagraphStylePropertiesOptions, mn as CustomXmlCellOptions, mo as BorderOptions, mr as GroupChildMediaData, mt as DocPartOptions, n as FeaturesOptions, na as TablePropertyExChangeOptions, ni as createWrapThrough, nn as PageNumberTypeAttributes, no as TableOfContentsOptions, nr as BackgroundRawMediaOptions, nt as WriteProtectionOptions, o as customPropertiesDesc, oa as TablePropertiesOptionsBase, oi as TextWrappingType, on as createPageSize, oo as RunPropertiesOptions, or as ChartOptions, ot as Numbering, p as DocxReadContext, pa as TableFloatOptions, pi as ParagraphPropertiesOptionsBase, pn as CustomXmlBlockOptions, po as ShadingType, pr as ExtendedMediaData, pt as DocPartGallery, q as MailMergeSourceType, qa as SdtDataBindingOptions, qi as setTableParseChild, qn as PositionalTabLeader, qr as resetDrawingIdGen, qt as createLineNumberType, r as corePropertiesDesc, ra as TablePropertyExOptions, ri as createWrapTight, rn as createPageNumberType, ro as HighlightColor, rr as DocumentBackgroundOptions, rt as CompatibilityOptions, s as AppPropertiesInput, sa as TableLookOptions, si as Distance, sn as DocGridAttributesProperties, so as RunStylePropertiesOptions, sr as ImageOptions, st as NumberingOptions, t as DocumentOptions, ta as VerticalMergeType, ti as VerticalPositionRelativeFrom, tn as PageNumberSeparator, to as StyleLevel, tr as BackgroundImageOptions, tt as SettingsOptions, u as settingsDesc, ua as RelativeHorizontalPosition, ui as LevelParagraphStylePropertiesOptions, un as ColumnsAttributes, uo as FontAttributesProperties, ur as MediaTransformation, ut as LevelSuffix, v as parseDocument, va as MathScriptType, vi as ParagraphRunOptions, vn as CustomXmlRunOptions, vo as AltChunkData, vr as SmartArtMediaData, vt as FootnoteSeparator, w as WebSettingsOptions, wa as HeadingLevel, wi as DayShort, wn as TableRowPropertiesOptionsBase, wo as contentTypesDesc, wr as StyleMatrixReferenceOptions, wt as HeaderFooterGroup, x as DivOptions, xa as TabStopDefinition, xi as CarriageReturn, xn as CnfStyleOptions, xo as ContentTypeOverride, xr as WpgMediaData, xt as EndnoteSeparator, y as parseDocx, ya as MathStyleType, yi as RunOptions, yn as SdtCellOptions, yo as CharacterSet, yr as WORKAROUND2, yt as FootnotesData, z as DocumentProtectionOptions, za as createVerticalAlign, zi as FrameAnchorType, zn as FormFieldTextOptions, zr as ChildOffset, zt as HeaderFooterReferenceOptions } from "./core-properties-DNjQDzBy.mjs";
2
2
  import { generateDocument, generateDocumentStream, generateDocumentSync } from "./generate.mjs";
3
- import { InputDataType, Patch, PatchDocumentOptions, PatchDocumentOutputType, PatchType, patchDetector, patchDocument } from "./patch/index.mjs";
4
- import { CompressionOptions, OutputByType, OutputType, PackerOptions } from "@office-open/core";
3
+ import { Patch, PatchComment, PatchDocumentOptions, patchDetector, patchDocument } from "./patch/index.mjs";
4
+ import { CompressionOptions, OutputByType, OutputType, PackerOptions, XmlifyedFile, Zippable } from "@office-open/core";
5
5
  import { Element } from "@office-open/xml";
6
6
  import { CustomDescriptor } from "@office-open/core/descriptor";
7
7
 
@@ -53,12 +53,6 @@ interface FootnoteOptions {
53
53
  children: (ParagraphOptions | string)[];
54
54
  }
55
55
  //#endregion
56
- //#region src/parts/footnotes/descriptor.d.ts
57
- interface FootnotesData {
58
- notes: Map<number, (ParagraphOptions | string)[]>;
59
- }
60
- declare const footnotesDesc: CustomDescriptor<FootnotesData, BodyContext>;
61
- //#endregion
62
56
  //#region src/parts/endnotes/endnote/endnote.d.ts
63
57
  declare const EndnoteType: {
64
58
  readonly CONTINUATION_SEPARATOR: "continuationSeparator";
@@ -70,12 +64,6 @@ interface EndnoteOptions {
70
64
  children: (ParagraphOptions | string)[];
71
65
  }
72
66
  //#endregion
73
- //#region src/parts/endnotes/descriptor.d.ts
74
- interface EndnotesData {
75
- notes: Map<number, (ParagraphOptions | string)[]>;
76
- }
77
- declare const endnotesDesc: CustomDescriptor<EndnotesData, BodyContext>;
78
- //#endregion
79
67
  //#region src/parts/sdt/sdt-parse.d.ts
80
68
  declare function parseSdtProperties(el: Element): SdtPropertiesOptions;
81
69
  declare function parseSdtBlock(el: Element, ctx: DocxReadContext, parseChildren: (elements: Element[], ctx: DocxReadContext) => unknown[]): {
@@ -172,21 +160,24 @@ interface SdtChildOptions {
172
160
  declare function checkboxSymbolRunInner(cb: SdtCheckboxOptions): string;
173
161
  declare function stringifySdtPr(opts: SdtPropertiesOptions): string;
174
162
  declare function stringifySdtShell(properties: SdtPropertiesOptions, endProperties: RunPropertiesOptions | undefined, contentXml: string): string;
175
- declare function parseCustomXmlPr(el: Element): CustomXmlPrOptions;
163
+ declare function parseCustomXmlProperties(el: Element): CustomXmlPropertiesOptions;
176
164
  declare function setBodyParseChild(parser: (el: Element, ctx: DocxReadContext) => SectionChild): void;
177
165
  declare const sdtBlockDesc: CustomDescriptor<SdtChildOptions, BodyContext>;
178
166
  interface CustomXmlBlockDescriptorOptions {
179
167
  element: string;
180
168
  uri?: string;
181
- customXmlPr?: CustomXmlPrOptions;
169
+ customXmlPr?: CustomXmlPropertiesOptions;
182
170
  children?: SectionChild[];
183
171
  }
184
172
  declare function stringifyCustomXmlShell(opts: {
185
173
  element: string;
186
174
  uri?: string;
187
- customXmlPr?: CustomXmlPrOptions;
175
+ customXmlPr?: CustomXmlPropertiesOptions;
188
176
  }, contentXml: string): string;
189
177
  declare const customXmlBlockDesc: CustomDescriptor<CustomXmlBlockDescriptorOptions, BodyContext>;
190
178
  //#endregion
191
- export { AbstractNumberingOptions, AlignmentFrameOptions, AlignmentType, AltChunkCollection, AltChunkData, AltChunkOptions, AnnotationReference, AppPropertiesInput, AppPropertiesOptions, AutoCaptionOptions, BackgroundImageOptions, BackgroundRawMediaOptions, BibliographyOptions, type BodyContext, BodyPropertiesOptions, BookmarkOptions, BorderOptions, BorderStyle, BordersOptions, BreakType, BreakTypeValue, CaptionOptions, CaptionsOptions, CarriageReturn, CellMergeAttributes, CharacterSet, ChartChild, ChartMediaData, ChartOptions, CheckBoxOptions, ChildExtent, ChildOffset, CnfConditionalOptions, CnfStyleOptions, ColumnAttributes, ColumnsAttributes, CommentOptions, CommentsOptions, type CompatibilityOptions, type CompressionOptions, ConcreteNumberingOptions, ContentTypeDefault, ContentTypeOverride, ContentTypesInput, ContinuationSeparator, CorePropertiesInput, CustomPropertiesInput, CustomPropertyOptions, type CustomXmlAttributeOptions, CustomXmlBlockDescriptorOptions, type CustomXmlBlockOptions, type CustomXmlCellOptions, type CustomXmlDataBindingOptions, type CustomXmlPrOptions, type CustomXmlRowOptions, type CustomXmlRunOptions, DayLong, DayShort, DirOptions, Distance, DivBorderOptions, DivOptions, DocGridAttributesProperties, DocPartBehavior, DocPartGallery, DocPartOptions, DocPartType, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackgroundOptions, DocumentGridType, DocumentOptions, DocumentProtectionOptions, DocxDocument, DocxPartRefs, type DocxReadContext, type DocxWriteContext, DrawingDescriptorOptions, DrawingOptions, DropCapType, DropDownListOptions, EditGroup, EditGroupType, EmphasisMarkType, EndnoteOptions, EndnotePropertiesOptions, EndnoteReference, EndnoteType, EndnotesData, ExtendedMediaData, ExternalHyperlinkOptions, FeaturesOptions, FlatTextOptions, Floating, FontAttributesProperties, FontTableInput, FootnoteOptions, FootnotePropertiesOptions, FootnoteReferenceElement, FootnoteType, FootnotesData, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FrameAnchorType, FrameOptions, FrameWrap, GlossaryDocumentOptions, GraphicFrameLocksOptions, GroupChild, GroupChildMediaData, GroupShapeLocksOptions, HeaderFooterGroup, HeaderFooterReferenceOptions, HeaderFooterReferenceType, HeaderFooterType, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionOptions, HorizontalPositionRelativeFrom, HyperlinkType, HyphenationOptions, ImageChild, ImageOptions, IndentAttributesProperties, InputDataType, InternalHyperlinkOptions, LastRenderedPageBreak, LeaderType, LevelFormat, LevelParagraphStylePropertiesOptions, LevelSuffix, LevelsOptions, LineNumberAttributes, LineNumberRestartFormat, LineRuleType, MailMergeDataType, MailMergeDest, MailMergeDocType, MailMergeOptions, MailMergeSourceType, Margins, MathChild, MathInput, MathPropertiesOptions, MathRunPropertiesOptions, MathScriptType, MathStyleType, Media, MediaData, MediaDataTransformation, MediaTransformation, MonthLong, MonthShort, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberedItemReferenceFormat, NumberedItemReferenceOptions, Numbering, NumberingOptions, type ObjectElementOptions, type ObjectEmbedOptions, type ObjectLinkOptions, OdsoFieldMapDataOptions, OdsoFieldType, OdsoOptions, type OutputByType, type OutputType, OverlapType, type PackerOptions, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBordersOptions, PageMarginAttributes, PageNumber, PageNumberElement, PageNumberSeparator, PageNumberTypeAttributes, PageOrientation, PageSizeAttributes, PageTextDirectionType, ParagraphChild, ParagraphOptions, ParagraphPropertiesChangeOptions, ParagraphPropertiesOptions, ParagraphPropertiesOptionsBase, ParagraphRunOptions, ParagraphRunPropertiesOptions, ParagraphStylePropertiesOptions, Patch, PatchDocumentOptions, PatchDocumentOutputType, PatchType, PermStartOptions, PicCnvPrOptions, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, ProofErrorType, ProofErrorTypeValue, ReadModeInkLockDownOptions, RelationshipEntry, RelationshipsInput, RelativeHorizontalPosition, RelativeVerticalPosition, RevisionViewOptions, RsidsOptions, RubyAlign, RubyOptions, RunOptions, RunPropertiesChangeOptions, RunPropertiesOptions, RunStylePropertiesOptions, SdtCellOptions, SdtCheckboxOptions, SdtCheckboxSymbol, SdtChildOptions, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtRowOptions, SdtRunOptions, SdtTextOptions, SectionChild, SectionOptions, SectionPropertiesChangeOptions, SectionPropertiesOptions, SectionPropertiesOptionsBase, SectionType, SectionVerticalAlign, Separator, SettingsOptions, ShadingAttributesProperties, ShadingType, ShapeStyleOptions, SimpleFieldOptions, SmartArtChild, SmartArtMediaData, SmartArtNode, SmartArtOptions, SmartTagRunOptions, SoftHyphen, SourceTypeOptions, SpaceType, SpacingProperties, StyleLevel, StyleMatrixReferenceOptions, Styles, StylesOptions, SubDocCollection, SubDocData, SubDocOptions, SymbolRunOptions, TABLE_BORDERS_NONE, Tab, TabStopDefinition, TabStopPosition, TabStopType, TableAnchorType, TableBordersOptions, TableCellBordersOptions, TableCellOptions, TableFloatOptions, TableLayoutType, TableLookOptions, TableOfContentsOptions, TableOptions, TablePropertiesChangeOptions, TablePropertiesOptions, TablePropertiesOptionsBase, TablePropertyExChangeOptions, TablePropertyExOptions, TableRowOptions, TableRowPropertiesChangeOptions, TableRowPropertiesOptions, TableRowPropertiesOptionsBase, TableVerticalAlign, TableWidthProperties, TargetScreenSize, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextVertOverflowType, TextVerticalType, TextWrapping, TextWrappingSide, TextWrappingType, TextboxOptions, TextboxTightWrapType, UnderlineType, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionOptions, VerticalPositionRelativeFrom, WORKAROUND2, WebSettingsInput, WebSettingsOptions, WidthType, WpgCommonMediaData, WpgGroupCoreOptions, WpgGroupOptions, WpgGroupRunOptions, WpgMediaData, WpsMediaData, WpsShapeCoreOptions, WpsShapeOptions, WpsShapeRunOptions, WriteProtectionOptions, XYFrameOptions, YearLong, YearShort, altChunkDesc, appPropertiesDesc, bibliographyDesc, buildContentTypes, buildNumberingCache, buildStyleCache, checkboxSymbolRunInner, commentsDesc, contentTypesDesc, corePropertiesDesc, createBodyProperties, createDocumentGrid, createFormFieldData, createHeaderFooterReference, createHorizontalPosition, createImageData, createLineNumberType, createPageMargin, createPageNumberType, createPageSize, createSectionType, createTransformation, createVerticalAlign, createVerticalPosition, createWrapThrough, createWrapTight, customPropertiesDesc, customXmlBlockDesc, drawingDesc, endnotesDesc, fontTableDesc, footnotesDesc, frameXml, framesetXml, generateDocument, generateDocumentStream, generateDocumentSync, glossaryDesc, parseArchive, parseBodyProperties, parseCustomXmlPr, parseDocument, parseDocx, parseFormFieldData, parseNumberingDefinitions, parseSdtBlock, parseSdtProperties, parseSectionPropertiesEl, parseStyleDefinitions, parseToc, patchDetector, patchDocument, relationshipsDesc, resetDrawingIdGen, sdtBlockDesc, sectionMarginDefaults, sectionPageSizeDefaults, sectionPropertiesDesc, setBodyParseChild, setTableParseChild, settingsDesc, stringifyChildDispatch, stringifyCustomXmlShell, stringifyParagraphInline, stringifyRunInline, stringifySdtPr, stringifySdtShell, stringifySectionPropertiesXml, stringifyTableOfContents, subDocDesc, tableDesc, webSettingsDesc, withMediaDefaults };
179
+ //#region src/compiler.d.ts
180
+ declare function compileDocument(options: DocumentOptions, overrides?: XmlifyedFile[], mediaLevel?: number): Zippable;
181
+ //#endregion
182
+ export { AbstractNumberingOptions, AlignmentFrameOptions, AlignmentType, AltChunkCollection, AltChunkData, AltChunkOptions, AnnotationReference, type AppPropertiesInput, type AppPropertiesOptions, AutoCaptionOptions, BackgroundImageOptions, BackgroundRawMediaOptions, BibliographyOptions, type BodyContext, BodyPropertiesOptions, BookmarkOptions, BorderOptions, BorderStyle, BordersOptions, BreakType, BreakTypeValue, CaptionOptions, CaptionsOptions, CarriageReturn, CellMergeAttributes, CharacterSet, ChartChild, ChartMediaData, ChartOptions, CheckBoxOptions, ChildExtent, ChildOffset, CnfConditionalOptions, CnfStyleOptions, ColumnAttributes, ColumnsAttributes, CommentOptions, CommentsOptions, type CompatibilityOptions, type CompressionOptions, ConcreteNumberingOptions, ContentTypeDefault, ContentTypeOverride, ContentTypesInput, ContinuationSeparator, type CustomPropertiesInput, type CustomPropertyOptions, type CustomXmlAttributeOptions, CustomXmlBlockDescriptorOptions, type CustomXmlBlockOptions, type CustomXmlCellOptions, type CustomXmlDataBindingOptions, type CustomXmlPropertiesOptions, type CustomXmlRowOptions, type CustomXmlRunOptions, DayLong, DayShort, DirOptions, Distance, DivBorderOptions, DivOptions, DocGridAttributesProperties, DocPartBehavior, DocPartGallery, DocPartOptions, DocPartType, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackgroundOptions, DocumentGridType, DocumentOptions, DocumentProtectionOptions, DocxDocument, DocxPartRefs, DocxReadContext, DocxWriteContext, DrawingDescriptorOptions, DrawingOptions, DropCapType, DropDownListOptions, EditGroup, EditGroupType, EmphasisMarkType, EndnoteOptions, EndnotePropertiesOptions, EndnoteReference, EndnoteSeparator, EndnoteType, EndnotesData, ExtendedMediaData, ExternalHyperlinkOptions, FeaturesOptions, FlatTextOptions, Floating, FontAttributesProperties, FontTableInput, FootnoteOptions, FootnotePropertiesOptions, FootnoteReferenceElement, FootnoteSeparator, FootnoteType, FootnotesData, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FrameAnchorType, FrameOptions, FrameWrap, GlossaryDocumentOptions, GraphicFrameLocksOptions, GroupChild, GroupChildMediaData, GroupShapeLocksOptions, HeaderFooterGroup, HeaderFooterReferenceOptions, HeaderFooterReferenceType, HeaderFooterType, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionOptions, HorizontalPositionRelativeFrom, HyperlinkType, HyphenationOptions, ImageChild, ImageOptions, IndentAttributesProperties, InternalHyperlinkOptions, LastRenderedPageBreak, LeaderType, LevelFormat, LevelParagraphStylePropertiesOptions, LevelSuffix, LevelsOptions, LineNumberAttributes, LineNumberRestartFormat, LineRuleType, MailMergeDataType, MailMergeDest, MailMergeDocType, MailMergeOptions, MailMergeSourceType, Margins, MathChild, MathInput, MathPropertiesOptions, MathRunPropertiesOptions, MathScriptType, MathStyleType, Media, MediaData, MediaDataTransformation, MediaTransformation, MonthLong, MonthShort, NoBreakHyphen, NonVisualPropertiesOptions, NormalAutofitOptions, NumberFormat, NumberedItemReferenceFormat, NumberedItemReferenceOptions, Numbering, NumberingOptions, type ObjectElementOptions, type ObjectEmbedOptions, type ObjectLinkOptions, OdsoFieldMapDataOptions, OdsoFieldType, OdsoOptions, type OutputByType, type OutputType, OverlapType, type PackerOptions, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBordersOptions, PageMarginAttributes, PageNumber, PageNumberElement, PageNumberSeparator, PageNumberTypeAttributes, PageOrientation, PageSizeAttributes, PageTextDirectionType, ParagraphChild, ParagraphOptions, ParagraphPropertiesChangeOptions, ParagraphPropertiesOptions, ParagraphPropertiesOptionsBase, ParagraphRunOptions, ParagraphRunPropertiesOptions, ParagraphStylePropertiesOptions, Patch, PatchComment, PatchDocumentOptions, PermStartOptions, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, ProofErrorType, ProofErrorTypeValue, ReadModeInkLockDownOptions, RelationshipEntry, RelationshipsInput, RelativeHorizontalPosition, RelativeVerticalPosition, RevisionViewOptions, RsidsOptions, RubyAlign, RubyOptions, RunOptions, RunPropertiesChangeOptions, RunPropertiesOptions, RunStylePropertiesOptions, SdtCellOptions, SdtCheckboxOptions, SdtCheckboxSymbol, SdtChildOptions, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtRowOptions, SdtRunOptions, SdtTextOptions, SectionChild, SectionOptions, SectionPropertiesChangeOptions, SectionPropertiesOptions, SectionPropertiesOptionsBase, SectionType, SectionVerticalAlign, Separator, SettingsOptions, ShadingAttributesProperties, ShadingType, ShapeStyleOptions, SimpleFieldOptions, SmartArtChild, SmartArtMediaData, SmartArtNode, SmartArtOptions, SmartTagRunOptions, SoftHyphen, SourceTypeOptions, SpaceType, SpacingProperties, StyleLevel, StyleMatrixReferenceOptions, Styles, StylesOptions, SubDocCollection, SubDocData, SubDocOptions, SymbolRunOptions, TABLE_BORDERS_NONE, Tab, TabStopDefinition, TabStopPosition, TabStopType, TableAnchorType, TableBordersOptions, TableCellBordersOptions, TableCellOptions, TableFloatOptions, TableLayoutType, TableLookOptions, TableOfContentsOptions, TableOptions, TablePropertiesChangeOptions, TablePropertiesOptions, TablePropertiesOptionsBase, TablePropertyExChangeOptions, TablePropertyExOptions, TableRowOptions, TableRowPropertiesChangeOptions, TableRowPropertiesOptions, TableRowPropertiesOptionsBase, TableVerticalAlign, TableWidthProperties, TargetScreenSize, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextVertOverflowType, TextVerticalType, TextWrapping, TextWrappingSide, TextWrappingType, TextboxOptions, TextboxTightWrapType, UnderlineType, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionOptions, VerticalPositionRelativeFrom, WORKAROUND2, WebSettingsInput, WebSettingsOptions, WidthType, WpgCommonMediaData, WpgGroupCoreOptions, WpgGroupOptions, WpgGroupRunOptions, WpgMediaData, WpsMediaData, WpsShapeCoreOptions, WpsShapeOptions, WpsShapeRunOptions, WriteProtectionOptions, XYFrameOptions, YearLong, YearShort, altChunkDesc, appPropertiesDesc, bibliographyDesc, buildContentTypesFromRegistry, buildNumberingCache, buildStyleCache, checkboxSymbolRunInner, commentsDesc, compileDocument, contentTypesDesc, corePropertiesDesc, createBodyProperties, createDocumentGrid, createFormFieldData, createHeaderFooterReference, createHorizontalPosition, createImageData, createLineNumberType, createPageMargin, createPageNumberType, createPageSize, createSectionType, createTransformation, createVerticalAlign, createVerticalPosition, createWrapThrough, createWrapTight, customPropertiesDesc, customXmlBlockDesc, drawingDesc, endnotesDesc, extractStyleId, fontTableDesc, footnotesDesc, frameXml, framesetXml, generateDocument, generateDocumentStream, generateDocumentSync, glossaryDesc, parseArchive, parseBodyProperties, parseCustomXmlProperties, parseDocument, parseDocx, parseFormFieldData, parseNumberingDefinitions, parseSdtBlock, parseSdtProperties, parseSectionPropertiesEl, parseStyleDefinitions, parseToc, patchDetector, patchDocument, relationshipsDesc, resetDrawingIdGen, sdtBlockDesc, sectionMarginDefaults, sectionPageSizeDefaults, sectionPropertiesDesc, setBodyParseChild, setTableParseChild, settingsDesc, stringifyChildDispatch, stringifyCustomXmlShell, stringifyParagraphInline, stringifyRunInline, stringifySdtPr, stringifySdtShell, stringifySectionPropertiesXml, stringifyTableOfContents, subDocDesc, tableDesc, webSettingsDesc, withAltChunkOverrides, withMediaDefaults };
192
183
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/parts/paragraph/links/hyperlink.ts","../src/parts/paragraph/links/bookmark.ts","../src/parts/paragraph/links/numbered-item-ref.ts","../src/parts/paragraph/links/bidi.ts","../src/parts/footnotes/footnote/footnote.ts","../src/parts/footnotes/descriptor.ts","../src/parts/endnotes/endnote/endnote.ts","../src/parts/endnotes/descriptor.ts","../src/parts/sdt/sdt-parse.ts","../src/parts/perm-start.ts","../src/parts/fonts/descriptor.ts","../src/parts/textbox/textbox.ts","../src/parts/object/object-element.ts","../src/parts/comments.ts","../src/parts/inline.ts","../src/parts/relationships.ts","../src/parts/bodychildren.ts"],"mappings":";;;;;;;;cAUa,aAAA;EAAA,SAKH,QAAA;EAAA,SAAA,QAAA;AAAA;AAAA,UAKO,wBAAA;EAEf,MAAA;EAEA,OAAO;AAAA;AAAA,UAMQ,wBAAA;EAEf,IAAA;EAEA,OAAA;EAEA,QAAA;AAAA;;;UC3Be,eAAA;EAEf,EAAE;AAAA;;;aCKQ,2BAAA;EACV,IAAA;EAIA,QAAA;EAIA,UAAA;EAIA,YAAA;AAAA;AAAA,UAGe,4BAAA;EAKf,SAAA;EAKA,eAAA,GAAkB,2BAA2B;AAAA;;;UCjC9B,UAAA;EAEf,GAAG;AAAA;;;cCQQ,YAAA;EAAA,SAKH,SAAA;EAAA,SAAA,sBAAA;AAAA;AAAA,UAWO,eAAA;EAEf,EAAA;EAEA,IAAA,WAAe,YAAA,eAA2B,YAAA;EAE1C,QAAA,GAAW,gBAAA;AAAA;;;UClBI,aAAA;EACf,KAAA,EAAO,GAAG,UAAU,gBAAA;AAAA;AAAA,cA6CT,aAAA,EAAe,gBAAA,CAAiB,aAAA,EAAe,WAAA;;;cC9D/C,WAAA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AA,EAAoB,gBAAA,CAAiB,+BAAA,EAAiC,WAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/parts/paragraph/links/hyperlink.ts","../src/parts/paragraph/links/bookmark.ts","../src/parts/paragraph/links/numbered-item-ref.ts","../src/parts/paragraph/links/bidi.ts","../src/parts/footnotes/footnote/footnote.ts","../src/parts/endnotes/endnote/endnote.ts","../src/parts/sdt/sdt-parse.ts","../src/parts/perm-start.ts","../src/parts/fonts/descriptor.ts","../src/parts/textbox/textbox.ts","../src/parts/object/object-element.ts","../src/parts/comments.ts","../src/parts/inline.ts","../src/parts/relationships.ts","../src/parts/bodychildren.ts","../src/compiler.ts"],"mappings":";;;;;;;;cAUa,aAAA;EAAA,SAKH,QAAA;EAAA,SAAA,QAAA;AAAA;AAAA,UAKO,wBAAA;EAEf,MAAA;EAEA,OAAO;AAAA;AAAA,UAMQ,wBAAA;EAEf,IAAA;EAEA,OAAA;EAEA,QAAA;AAAA;;;UC3Be,eAAA;EAEf,EAAE;AAAA;;;aCKQ,2BAAA;EACV,IAAA;EAIA,QAAA;EAIA,UAAA;EAIA,YAAA;AAAA;AAAA,UAGe,4BAAA;EAKf,SAAA;EAKA,eAAA,GAAkB,2BAA2B;AAAA;;;UCjC9B,UAAA;EAEf,GAAG;AAAA;;;cCQQ,YAAA;EAAA,SAKH,SAAA;EAAA,SAAA,sBAAA;AAAA;AAAA,UAWO,eAAA;EAEf,EAAA;EAEA,IAAA,WAAe,YAAA,eAA2B,YAAA;EAE1C,QAAA,GAAW,gBAAA;AAAA;;;cClCA,WAAA;EAAA,SAIH,sBAAA;EAAA,SAAA,SAAA;AAAA;AAAA,UAEO,cAAA;EACf,EAAA;EACA,IAAA,WAAe,WAAA,eAA0B,WAAA;EACzC,QAAA,GAAW,gBAAA;AAAA;;;iBCOG,kBAAA,CAAmB,EAAA,EAAI,OAAA,GAAU,oBAAoB;AAAA,iBAuJrD,aAAA,CACd,EAAA,EAAI,OAAA,EACJ,GAAA,E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,gBAAgB,CAAC,kBAAA;;;cC+BpC,YAAA,EAAc,gBAAA,CAAiB,eAAA,EAAiB,WAAA;AAAA,cA2EhD,UAAA,EAAY,gBAAA,CAAiB,aAAA,EAAe,WAAA;AAAA,UAmCxC,eAAA;EACf,UAAA,EAAY,oBAAA;EACZ,QAAA,GAAW,YAAA;EAEX,aAAA,GAAgB,oBAAA;AAAA;AAAA,iBAoHF,sBAAA,CAAuB,EAAsB,EAAlB,kBAAkB;AAAA,iBAU7C,cAAA,CAAe,IAA0B,EAApB,oBAAoB;AAAA,iBA0DzC,iBAAA,CACd,UAAA,EAAY,oBAAA,EACZ,aAAA,EAAe,oBAAoB,cACnC,UAAA;AAAA,iBA2Jc,wBAAA,CAAyB,EAAA,EAAI,OAAA,GAAU,0BAA0B;AAAA,iBA2BjE,iBAAA,CACd,MAAA,GAAS,EAAA,EAAI,OAAA,EAAS,GAAA,EAAK,eAAA,KAAoB,YAAA;AAAA,cAcpC,YAAA,EAAc,gBAAA,CAAiB,eAAA,EAAiB,WAAA;AAAA,UA6D5C,+BAAA;EACf,OAAA;EACA,GAAA;EACA,WAAA,GAAc,0BAAA;EACd,QAAA,GAAW,YAAY;AAAA;AAAA,iBA0BT,uBAAA,CACd,IAAA;EAAQ,OAAA;EAAiB,GAAA;EAAc,WAAA,GAAc,0BAA0B;AAAA,GAC/E,UAAA;AAAA,cAQW,kBAAA,EAAoB,gBAAA,CAAiB,+BAAA,EAAiC,WAAA;;;iBCrkBnE,eAAA,CACd,OAAA,EAAS,eAAA,EACT,SAAA,GAAW,YAAA,IACX,UAAA,YACC,QAAA"}
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { $ as stringifyChildDispatch, $t as TableAnchorType, A as buildStyleCache, An as AlignmentType, At as VerticalPositionAlign, B as createPageMargin, Bt as setBodyParseChild, C as parseToc, Cn as HighlightColor, Ct as createVerticalPosition, D as settingsDesc, Dn as TextboxTightWrapType, Dt as HorizontalPositionAlign, E as StyleLevel, En as TextAlignmentType, Et as VerticalPositionRelativeFrom, F as createHeaderFooterReference, Ft as altChunkDesc, G as createDocumentGrid, H as PageBorderOffsetFrom, Ht as stringifySdtPr, I as SectionType, It as checkboxSymbolRunInner, J as parseNumberingDefinitions, Jt as BorderStyle, K as DocumentAttributeNamespaces, Kt as WidthType, L as createSectionType, Lt as customXmlBlockDesc, Mt as createWrapTight, N as HeaderFooterReferenceType, Nt as TextWrappingSide, O as Styles, On as HeadingLevel, Ot as NumberFormat, P as HeaderFooterType, Pt as TextWrappingType, Q as tableDesc, Qt as RelativeVerticalPosition, R as LineNumberRestartFormat, Rt as parseCustomXmlPr, S as footnotesDesc, Sn as createTransformation, St as createPageNumberType, T as SdtLock, Tn as PageNumber, Tt as HorizontalPositionRelativeFrom, U as PageBorderZOrder, Ut as stringifySdtShell, V as PageBorderDisplay, Vt as stringifyCustomXmlShell, W as DocumentGridType, Wt as subDocDesc, X as LevelSuffix, Xt as OverlapType, Y as LevelFormat, Yt as TableLayoutType, Z as setTableParseChild, Zt as RelativeHorizontalPosition, _ as bibliographyDesc, _n as createBodyProperties, _t as sectionPageSizeDefaults, a as appPropertiesDesc, an as parseFormFieldData, b as EditGroupType, bn as WORKAROUND2, bt as createPageSize, c as relationshipsDesc, cn as PositionalTabLeader, d as withMediaDefaults, dn as UnderlineType, dt as parseSdtProperties, en as TextDirection, et as stringifyParagraphInline, f as commentsDesc, fn as TextBodyWrappingType, g as glossaryDesc, gn as VerticalAnchor, gt as sectionMarginDefaults, h as DocPartType, hn as TextVerticalType, ht as stringifySectionPropertiesXml, i as webSettingsDesc, in as createFormFieldData, j as parseStyleDefinitions, jt as createWrapThrough, k as buildNumberingCache, kn as LineRuleType, kt as SpaceType, l as buildContentTypes, ln as PositionalTabRelativeTo, lt as stringifyTableOfContents, m as DocPartGallery, mn as TextVertOverflowType, mt as sectionPropertiesDesc, n as frameXml, nn as ProofErrorType, nt as drawingDesc, o as customPropertiesDesc, on as RubyAlign, p as DocPartBehavior, pn as TextHorzOverflowType, pt as parseSectionPropertiesEl, q as Numbering, qt as TABLE_BORDERS_NONE, r as framesetXml, rn as FormFieldTextType, rt as resetDrawingIdGen, s as corePropertiesDesc, sn as PositionalTabAlignment, t as TargetScreenSize, tn as VerticalMergeType, tt as stringifyRunInline, u as contentTypesDesc, un as EmphasisMarkType, ut as parseSdtBlock, v as fontTableDesc, vn as parseBodyProperties, vt as PageTextDirectionType, w as SdtDateMappingType, wn as TextEffect, wt as createHorizontalPosition, x as endnotesDesc, xn as Media, xt as PageNumberSeparator, y as CharacterSet, yn as createImageData, yt as PageOrientation, z as createLineNumberType, zt as sdtBlockDesc } from "./parts-BQBGNSGm.mjs";
2
- import { i as AltChunkCollection, r as SubDocCollection } from "./context-BrtlmvVE.mjs";
3
- import { PatchType, patchDetector, patchDocument } from "./patch/index.mjs";
4
- import { n as parseDocument, r as parseDocx, t as parseArchive } from "./parse-K59nx6MF.mjs";
5
- import { n as generateDocumentStream, r as generateDocumentSync, t as generateDocument } from "./generate-BMTVflV1.mjs";
1
+ import { $ as LevelSuffix, $t as OverlapType, A as buildNumberingCache, An as TextboxTightWrapType, At as HorizontalPositionAlign, B as createSectionType, Bt as customXmlBlockDesc, C as footnotesDesc, Cn as WORKAROUND2, Ct as createPageSize, D as StyleLevel, Dn as TextEffect, Dt as createHorizontalPosition, E as SdtLock, En as HighlightColor, Et as createVerticalPosition, Ft as createWrapTight, G as PageBorderOffsetFrom, Gt as stringifySdtPr, H as createLineNumberType, Ht as sdtBlockDesc, I as HeaderFooterReferenceType, It as TextWrappingSide, J as createDocumentGrid, K as PageBorderZOrder, Kt as stringifySdtShell, L as HeaderFooterType, Lt as TextWrappingType, M as extractStyleId, Mn as LineRuleType, Mt as SpaceType, N as parseStyleDefinitions, Nn as AlignmentType, Nt as VerticalPositionAlign, O as settingsDesc, On as PageNumber, Ot as HorizontalPositionRelativeFrom, Pt as createWrapThrough, Q as LevelFormat, Qt as TableLayoutType, R as createHeaderFooterReference, Rt as altChunkDesc, S as endnotesDesc, Sn as createImageData, St as PageOrientation, T as SdtDateMappingType, Tn as createTransformation, Tt as createPageNumberType, U as createPageMargin, Ut as setBodyParseChild, V as LineNumberRestartFormat, Vt as parseCustomXmlProperties, W as PageBorderDisplay, Wt as stringifyCustomXmlShell, X as Numbering, Xt as TABLE_BORDERS_NONE, Y as DocumentAttributeNamespaces, Yt as WidthType, Z as parseNumberingDefinitions, Zt as BorderStyle, _ as glossaryDesc, _n as TextVertOverflowType, _t as sectionPropertiesDesc, a as appPropertiesDesc, an as ProofErrorType, at as drawingDesc, b as CharacterSet, bn as createBodyProperties, bt as sectionPageSizeDefaults, c as relationshipsDesc, cn as parseFormFieldData, d as withAltChunkOverrides, dn as PositionalTabLeader, en as RelativeHorizontalPosition, et as setTableParseChild, f as withMediaDefaults, fn as PositionalTabRelativeTo, ft as stringifyTableOfContents, g as DocPartType, gn as TextHorzOverflowType, gt as parseSectionPropertiesEl, h as DocPartGallery, hn as TextBodyWrappingType, i as webSettingsDesc, in as VerticalMergeType, it as stringifyRunInline, j as buildStyleCache, jn as HeadingLevel, jt as NumberFormat, k as Styles, kn as TextAlignmentType, kt as VerticalPositionRelativeFrom, l as buildContentTypesFromRegistry, ln as RubyAlign, m as DocPartBehavior, mn as UnderlineType, mt as parseSdtProperties, n as frameXml, nn as TableAnchorType, nt as stringifyChildDispatch, o as customPropertiesDesc, on as FormFieldTextType, ot as resetDrawingIdGen, p as commentsDesc, pn as EmphasisMarkType, pt as parseSdtBlock, q as DocumentGridType, qt as subDocDesc, r as framesetXml, rn as TextDirection, rt as stringifyParagraphInline, s as corePropertiesDesc, sn as createFormFieldData, t as TargetScreenSize, tn as RelativeVerticalPosition, tt as tableDesc, u as contentTypesDesc, un as PositionalTabAlignment, v as bibliographyDesc, vn as TextVerticalType, vt as stringifySectionPropertiesXml, w as parseToc, wn as Media, wt as PageNumberSeparator, x as EditGroupType, xn as parseBodyProperties, xt as PageTextDirectionType, y as fontTableDesc, yn as VerticalAnchor, yt as sectionMarginDefaults, z as SectionType, zt as checkboxSymbolRunInner } from "./parts-BWmkYaBr.mjs";
2
+ import { i as AltChunkCollection, n as DocxWriteContext, r as SubDocCollection, t as DocxReadContext } from "./context-D9RMvxSu.mjs";
3
+ import { patchDetector, patchDocument } from "./patch/index.mjs";
4
+ import { n as parseDocument, r as parseDocx, t as parseArchive } from "./parse-T79KhZTq.mjs";
5
+ import { i as compileDocument, n as generateDocumentStream, r as generateDocumentSync, t as generateDocument } from "./generate-h0Xp5BPT.mjs";
6
6
  //#region src/parts/paragraph/formatting/break.ts
7
7
  /**
8
8
  * Break type values for WordprocessingML documents.
@@ -367,6 +367,6 @@ const VerticalAlignSection = {
367
367
  */
368
368
  const createVerticalAlign = (value) => `<w:vAlign w:val="${value}"/>`;
369
369
  //#endregion
370
- export { AlignmentType, AltChunkCollection, BorderStyle, BreakType, CharacterSet, DocPartBehavior, DocPartGallery, DocPartType, DocumentAttributeNamespaces, DocumentGridType, DropCapType, EditGroupType, EmphasisMarkType, EndnoteType, FootnoteType, FormFieldTextType, FrameAnchorType, FrameWrap, HeaderFooterReferenceType, HeaderFooterType, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HyperlinkType, LeaderType, LevelFormat, LevelSuffix, LineNumberRestartFormat, LineRuleType, Media, NumberFormat, NumberedItemReferenceFormat, Numbering, OverlapType, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageNumber, PageNumberSeparator, PageOrientation, PageTextDirectionType, PatchType, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo, ProofErrorType, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, SdtDateMappingType, SdtLock, SectionType, ShadingType, SpaceType, StyleLevel, Styles, SubDocCollection, TABLE_BORDERS_NONE, TabStopPosition, TabStopType, TableAnchorType, TableLayoutType, TargetScreenSize, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, TextboxTightWrapType, UnderlineType, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WidthType, altChunkDesc, appPropertiesDesc, bibliographyDesc, buildContentTypes, buildNumberingCache, buildStyleCache, checkboxSymbolRunInner, commentsDesc, contentTypesDesc, corePropertiesDesc, createBodyProperties, createDocumentGrid, createFormFieldData, createHeaderFooterReference, createHorizontalPosition, createImageData, createLineNumberType, createPageMargin, createPageNumberType, createPageSize, createSectionType, createTransformation, createVerticalAlign, createVerticalPosition, createWrapThrough, createWrapTight, customPropertiesDesc, customXmlBlockDesc, drawingDesc, endnotesDesc, fontTableDesc, footnotesDesc, frameXml, framesetXml, generateDocument, generateDocumentStream, generateDocumentSync, glossaryDesc, parseArchive, parseBodyProperties, parseCustomXmlPr, parseDocument, parseDocx, parseFormFieldData, parseNumberingDefinitions, parseSdtBlock, parseSdtProperties, parseSectionPropertiesEl, parseStyleDefinitions, parseToc, patchDetector, patchDocument, relationshipsDesc, resetDrawingIdGen, sdtBlockDesc, sectionMarginDefaults, sectionPageSizeDefaults, sectionPropertiesDesc, setBodyParseChild, setTableParseChild, settingsDesc, stringifyChildDispatch, stringifyCustomXmlShell, stringifyParagraphInline, stringifyRunInline, stringifySdtPr, stringifySdtShell, stringifySectionPropertiesXml, stringifyTableOfContents, subDocDesc, tableDesc, webSettingsDesc, withMediaDefaults };
370
+ export { AlignmentType, AltChunkCollection, BorderStyle, BreakType, CharacterSet, DocPartBehavior, DocPartGallery, DocPartType, DocumentAttributeNamespaces, DocumentGridType, DocxReadContext, DocxWriteContext, DropCapType, EditGroupType, EmphasisMarkType, EndnoteType, FootnoteType, FormFieldTextType, FrameAnchorType, FrameWrap, HeaderFooterReferenceType, HeaderFooterType, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HyperlinkType, LeaderType, LevelFormat, LevelSuffix, LineNumberRestartFormat, LineRuleType, Media, NumberFormat, NumberedItemReferenceFormat, Numbering, OverlapType, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageNumber, PageNumberSeparator, PageOrientation, PageTextDirectionType, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo, ProofErrorType, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, SdtDateMappingType, SdtLock, SectionType, ShadingType, SpaceType, StyleLevel, Styles, SubDocCollection, TABLE_BORDERS_NONE, TabStopPosition, TabStopType, TableAnchorType, TableLayoutType, TargetScreenSize, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, TextboxTightWrapType, UnderlineType, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WidthType, altChunkDesc, appPropertiesDesc, bibliographyDesc, buildContentTypesFromRegistry, buildNumberingCache, buildStyleCache, checkboxSymbolRunInner, commentsDesc, compileDocument, contentTypesDesc, corePropertiesDesc, createBodyProperties, createDocumentGrid, createFormFieldData, createHeaderFooterReference, createHorizontalPosition, createImageData, createLineNumberType, createPageMargin, createPageNumberType, createPageSize, createSectionType, createTransformation, createVerticalAlign, createVerticalPosition, createWrapThrough, createWrapTight, customPropertiesDesc, customXmlBlockDesc, drawingDesc, endnotesDesc, extractStyleId, fontTableDesc, footnotesDesc, frameXml, framesetXml, generateDocument, generateDocumentStream, generateDocumentSync, glossaryDesc, parseArchive, parseBodyProperties, parseCustomXmlProperties, parseDocument, parseDocx, parseFormFieldData, parseNumberingDefinitions, parseSdtBlock, parseSdtProperties, parseSectionPropertiesEl, parseStyleDefinitions, parseToc, patchDetector, patchDocument, relationshipsDesc, resetDrawingIdGen, sdtBlockDesc, sectionMarginDefaults, sectionPageSizeDefaults, sectionPropertiesDesc, setBodyParseChild, setTableParseChild, settingsDesc, stringifyChildDispatch, stringifyCustomXmlShell, stringifyParagraphInline, stringifyRunInline, stringifySdtPr, stringifySdtShell, stringifySectionPropertiesXml, stringifyTableOfContents, subDocDesc, tableDesc, webSettingsDesc, withAltChunkOverrides, withMediaDefaults };
371
371
 
372
372
  //# sourceMappingURL=index.mjs.map
@@ -1,5 +1,5 @@
1
- import { A as buildStyleCache, Bt as setBodyParseChild, C as parseToc, D as settingsDesc, Gt as stringifyElement, J as parseNumberingDefinitions, Q as tableDesc, Rt as parseCustomXmlPr, S as footnotesDesc, Z as setTableParseChild, _ as bibliographyDesc, a as appPropertiesDesc, at as parseParagraphProperties, ct as replaceRelsWithPlaceholders, f as commentsDesc, g as glossaryDesc, i as webSettingsDesc, it as parseParagraph, j as parseStyleDefinitions, k as buildNumberingCache, o as customPropertiesDesc, pt as parseSectionPropertiesEl, s as corePropertiesDesc, u as contentTypesDesc, ut as parseSdtBlock, v as fontTableDesc, x as endnotesDesc } from "./parts-BQBGNSGm.mjs";
2
- import { t as DocxReadContext } from "./context-BrtlmvVE.mjs";
1
+ import { A as buildNumberingCache, C as footnotesDesc, Jt as stringifyElement, N as parseStyleDefinitions, O as settingsDesc, S as endnotesDesc, Ut as setBodyParseChild, Vt as parseCustomXmlProperties, Z as parseNumberingDefinitions, _ as glossaryDesc, a as appPropertiesDesc, ct as parseParagraphProperties, dt as replaceRelsWithPlaceholders, et as setTableParseChild, gt as parseSectionPropertiesEl, i as webSettingsDesc, j as buildStyleCache, o as customPropertiesDesc, p as commentsDesc, pt as parseSdtBlock, s as corePropertiesDesc, st as parseParagraph, tt as tableDesc, u as contentTypesDesc, v as bibliographyDesc, w as parseToc, y as fontTableDesc } from "./parts-BWmkYaBr.mjs";
2
+ import { t as DocxReadContext } from "./context-D9RMvxSu.mjs";
3
3
  import { parseArchive, toUint8Array } from "@office-open/core";
4
4
  import { attr, findChild, textOf } from "@office-open/xml";
5
5
  //#region \0polyfill-node.global.js
@@ -1315,7 +1315,7 @@ function parseCustomXmlBlock(el, ctx, parseChild) {
1315
1315
  const uri = attr(el, "w:uri");
1316
1316
  if (uri) opts.uri = uri;
1317
1317
  const xmlPr = findChild(el, "w:customXmlPr");
1318
- if (xmlPr) opts.customXmlPr = parseCustomXmlPr(xmlPr);
1318
+ if (xmlPr) opts.customXmlPr = parseCustomXmlProperties(xmlPr);
1319
1319
  const children = [];
1320
1320
  for (const child of el.elements ?? []) {
1321
1321
  if (child.name === "w:customXmlPr") continue;
@@ -1793,6 +1793,8 @@ function parseDocument(data) {
1793
1793
  if (cp.lastModifiedBy) opts.lastModifiedBy = cp.lastModifiedBy;
1794
1794
  if (cp.revision) opts.revision = cp.revision;
1795
1795
  if (cp.lastPrinted) opts.lastPrinted = cp.lastPrinted;
1796
+ if (cp.created) opts.created = cp.created;
1797
+ if (cp.modified) opts.modified = cp.modified;
1796
1798
  }
1797
1799
  }
1798
1800
  if (docx.appProps) {
@@ -1834,7 +1836,12 @@ function parseDocument(data) {
1834
1836
  const fnResult = ctx.withPart(docx.partRefs.footnotes, () => footnotesDesc.parse(footnotesEl, ctx));
1835
1837
  const footnotesMap = {};
1836
1838
  for (const [id, paragraphs] of fnResult.notes) footnotesMap[String(id)] = { children: paragraphs };
1837
- if (Object.keys(footnotesMap).length > 0) opts.footnotes = footnotesMap;
1839
+ if (Object.keys(footnotesMap).length > 0 || fnResult.separator || fnResult.continuationSeparator) {
1840
+ const fnOpts = footnotesMap;
1841
+ if (fnResult.separator) fnOpts.separator = fnResult.separator;
1842
+ if (fnResult.continuationSeparator) fnOpts.continuationSeparator = fnResult.continuationSeparator;
1843
+ opts.footnotes = fnOpts;
1844
+ }
1838
1845
  }
1839
1846
  }
1840
1847
  if (docx.partRefs.endnotes) {
@@ -1843,7 +1850,12 @@ function parseDocument(data) {
1843
1850
  const enResult = ctx.withPart(docx.partRefs.endnotes, () => endnotesDesc.parse(endnotesEl, ctx));
1844
1851
  const endnotesMap = {};
1845
1852
  for (const [id, paragraphs] of enResult.notes) endnotesMap[String(id)] = { children: paragraphs };
1846
- if (Object.keys(endnotesMap).length > 0) opts.endnotes = endnotesMap;
1853
+ if (Object.keys(endnotesMap).length > 0 || enResult.separator || enResult.continuationSeparator) {
1854
+ const enOpts = endnotesMap;
1855
+ if (enResult.separator) enOpts.separator = enResult.separator;
1856
+ if (enResult.continuationSeparator) enOpts.continuationSeparator = enResult.continuationSeparator;
1857
+ opts.endnotes = enOpts;
1858
+ }
1847
1859
  }
1848
1860
  }
1849
1861
  if (docx.styles) {
@@ -1924,4 +1936,4 @@ function parseDocx(data) {
1924
1936
  //#endregion
1925
1937
  export { parseDocument as n, parseDocx as r, parseArchive as t };
1926
1938
 
1927
- //# sourceMappingURL=parse-K59nx6MF.mjs.map
1939
+ //# sourceMappingURL=parse-T79KhZTq.mjs.map