@office-open/docx 0.9.7 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{context-BrtlmvVE.mjs → context-Bl2wL_dD.mjs} +18 -4
- package/dist/context-Bl2wL_dD.mjs.map +1 -0
- package/dist/{core-properties-CBMhgSrn.d.mts → core-properties-CZzFLDat.d.mts} +89 -49
- package/dist/core-properties-CZzFLDat.d.mts.map +1 -0
- package/dist/{generate-BMTVflV1.mjs → generate-CqKwXEWC.mjs} +42 -30
- package/dist/generate-CqKwXEWC.mjs.map +1 -0
- package/dist/generate.d.mts +1 -1
- package/dist/generate.mjs +1 -1
- package/dist/index.d.mts +5 -17
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/{parse-K59nx6MF.mjs → parse-BwZ29Ait.mjs} +18 -6
- package/dist/parse-BwZ29Ait.mjs.map +1 -0
- package/dist/parse.d.mts +1 -1
- package/dist/parse.mjs +1 -1
- package/dist/{parts-BQBGNSGm.mjs → parts-Cp_NxQFi.mjs} +296 -221
- package/dist/parts-Cp_NxQFi.mjs.map +1 -0
- package/dist/patch/index.d.mts +1 -1
- package/dist/patch/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/context-BrtlmvVE.mjs.map +0 -1
- package/dist/core-properties-CBMhgSrn.d.mts.map +0 -1
- package/dist/generate-BMTVflV1.mjs.map +0 -1
- package/dist/parse-K59nx6MF.mjs.map +0 -1
- package/dist/parts-BQBGNSGm.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as Numbering, N as DefaultStylesFactory, Sn as Media, k as Styles, pt as FontWrapper } from "./parts-Cp_NxQFi.mjs";
|
|
2
2
|
import { Relationships } from "@office-open/core";
|
|
3
3
|
import { js2xml, xml2js } from "@office-open/xml";
|
|
4
4
|
import { ChartCollection } from "@office-open/core/chart";
|
|
@@ -191,8 +191,22 @@ var DocxWriteContext = class {
|
|
|
191
191
|
}
|
|
192
192
|
this.addDefaultRelationships();
|
|
193
193
|
for (const section of options.sections) this.addSection(section);
|
|
194
|
-
if (options.footnotes)
|
|
195
|
-
|
|
194
|
+
if (options.footnotes) {
|
|
195
|
+
for (const key in options.footnotes) {
|
|
196
|
+
if (key === "separator" || key === "continuationSeparator") continue;
|
|
197
|
+
this.footNotes.notes.set(parseFloat(key), options.footnotes[key].children);
|
|
198
|
+
}
|
|
199
|
+
this.footNotes.separator = options.footnotes.separator;
|
|
200
|
+
this.footNotes.continuationSeparator = options.footnotes.continuationSeparator;
|
|
201
|
+
}
|
|
202
|
+
if (options.endnotes) {
|
|
203
|
+
for (const key in options.endnotes) {
|
|
204
|
+
if (key === "separator" || key === "continuationSeparator") continue;
|
|
205
|
+
this.endnotes.notes.set(parseFloat(key), options.endnotes[key].children);
|
|
206
|
+
}
|
|
207
|
+
this.endnotes.separator = options.endnotes.separator;
|
|
208
|
+
this.endnotes.continuationSeparator = options.endnotes.continuationSeparator;
|
|
209
|
+
}
|
|
196
210
|
this.fontTable = new FontWrapper(options.fonts ?? []);
|
|
197
211
|
this.glossaryOptions = options.glossary;
|
|
198
212
|
this.webSettings = options.webSettings ?? void 0;
|
|
@@ -320,4 +334,4 @@ var DocxReadContext = class {
|
|
|
320
334
|
//#endregion
|
|
321
335
|
export { AltChunkCollection as i, DocxWriteContext as n, SubDocCollection as r, DocxReadContext as t };
|
|
322
336
|
|
|
323
|
-
//# sourceMappingURL=context-
|
|
337
|
+
//# sourceMappingURL=context-Bl2wL_dD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-Bl2wL_dD.mjs","names":[],"sources":["../src/parts/alt-chunk/alt-chunk-collection.ts","../src/parts/sub-doc/sub-doc-collection.ts","../src/parts/styles/external-styles-factory.ts","../src/context.ts"],"sourcesContent":["/**\n * AltChunk collection module for managing alternative format content parts.\n *\n * @module\n */\n\n/**\n * Stores alternative format chunk data for later serialization by the compiler.\n */\nexport interface AltChunkData {\n /** Unique key for this alt chunk (e.g., relId) */\n key: string;\n /** Raw content data */\n data: Uint8Array;\n /** Part sub-path within word/ (e.g., \"afchunks/afchunk1.html\") */\n path: string;\n /** File extension (e.g., \"html\", \"rtf\", \"txt\") */\n extension: string;\n /** MIME content type (e.g., \"text/html\", \"application/rtf\") */\n contentType: string;\n}\n\n/**\n * Manages alternative format chunk parts in a document.\n *\n * Stores external content (HTML, RTF, plain text) that will be\n * serialized into separate parts in the DOCX package.\n */\nexport class AltChunkCollection {\n private map: Map<string, AltChunkData>;\n\n public constructor() {\n this.map = new Map<string, AltChunkData>();\n }\n\n public addAltChunk(key: string, data: AltChunkData): void {\n this.map.set(key, data);\n }\n\n public get array(): AltChunkData[] {\n return [...this.map.values()];\n }\n}\n","/**\n * Sub-document collection module for managing sub-document parts.\n *\n * @module\n */\n\n/**\n * Stores sub-document data for later serialization by the compiler.\n */\nexport interface SubDocData {\n /** Raw document data (.docx bytes) */\n data: Uint8Array;\n /** Part sub-path within word/ (e.g., \"subdocs/subdoc1.docx\") */\n path: string;\n}\n\n/**\n * Manages sub-document parts in a document.\n */\nexport class SubDocCollection {\n private map: Map<string, SubDocData>;\n\n public constructor() {\n this.map = new Map<string, SubDocData>();\n }\n\n public addSubDoc(key: string, data: SubDocData): void {\n this.map.set(key, data);\n }\n\n public get array(): SubDocData[] {\n return [...this.map.values()];\n }\n}\n","/**\n * External styles factory module for WordprocessingML documents.\n *\n * Parses styles from external XML and returns raw XML strings.\n * No XmlComponent dependency.\n *\n * Reference: http://officeopenxml.com/WPstyles.php\n *\n * @module\n */\nimport { js2xml, xml2js } from \"@office-open/xml\";\nimport type { Element as XMLElement } from \"@office-open/xml\";\n\nimport type { StylesOptions } from \"./styles\";\n\n/**\n * Factory for creating styles from external XML sources.\n *\n * Parses styles from XML (typically from a styles.xml file)\n * and returns raw XML strings for each style element.\n */\nexport class ExternalStylesFactory {\n /**\n * Creates new Styles based on the given XML data.\n *\n * Parses the styles XML and converts each child to a raw XML string.\n */\n public newInstance(xmlData: string): StylesOptions {\n const xmlObj = xml2js(xmlData, { compact: false }) as XMLElement;\n\n let stylesXmlElement: XMLElement | undefined;\n for (const xmlElm of xmlObj.elements || []) {\n if (xmlElm.name === \"w:styles\") {\n stylesXmlElement = xmlElm;\n }\n }\n\n if (stylesXmlElement === undefined) {\n return { importedStyles: [], initialAttributes: {} };\n }\n\n const stylesElements = stylesXmlElement.elements || [];\n\n return {\n importedStyles: stylesElements.map((childElm) => ({\n _raw: js2xml({ elements: [childElm] }),\n })),\n initialAttributes: (stylesXmlElement.attributes as Record<string, string>) ?? {},\n };\n }\n}\n","/**\n * DOCX compilation context.\n *\n * DocxWriteContext holds all mutable state needed during document compilation.\n * generateDocument() creates a DocxWriteContext internally.\n *\n * @module\n */\n\nimport { Relationships } from \"@office-open/core\";\nimport { ChartCollection } from \"@office-open/core/chart\";\nimport type { ReadContext, WriteContext } from \"@office-open/core/descriptor\";\nimport { SmartArtCollection } from \"@office-open/core/smartart\";\nimport type { Element } from \"@office-open/xml\";\nimport { AltChunkCollection } from \"@parts/alt-chunk/alt-chunk-collection\";\nimport type { DocumentOptions } from \"@parts/core-properties\";\nimport type { SectionPropertiesOptions } from \"@parts/document/body/section-properties/section-properties\";\nimport type { EndnoteSeparator } from \"@parts/endnotes/descriptor\";\nimport { FontWrapper } from \"@parts/fonts/font-wrapper\";\nimport type { FootnoteSeparator } from \"@parts/footnotes/descriptor\";\nimport type { GlossaryDocumentOptions } from \"@parts/glossary-document\";\nimport type { HeaderFooterEntry } from \"@parts/header-footer\";\nimport { Numbering } from \"@parts/numbering\";\nimport type { ParagraphOptions } from \"@parts/paragraph/paragraph\";\nimport type { SettingsOptions } from \"@parts/settings/settings\";\nimport { Styles } from \"@parts/styles\";\nimport { ExternalStylesFactory } from \"@parts/styles/external-styles-factory\";\nimport { DefaultStylesFactory } from \"@parts/styles/factory\";\nimport { SubDocCollection } from \"@parts/sub-doc/sub-doc-collection\";\nimport type { WebSettingsOptions } from \"@parts/web-settings\";\nimport { Media } from \"@shared/media\";\nimport type { SectionOptions } from \"@shared/section\";\nimport type { SectionChild } from \"@shared/section\";\n\nimport type { DocxDocument } from \"./parse\";\n\n/** Interface for document view wrappers — provides relationships access. */\nexport interface ViewWrapper {\n relationships: Relationships;\n}\n\n// ── BodyContext ──\n\n/**\n * Context for body-level stringification.\n *\n * Pure JSON pipeline context — extends WriteContext for descriptor compatibility.\n * No dependency on XmlComponent Context (compile/ uses zero toXml calls).\n */\nexport interface BodyContext extends WriteContext {\n /** The root write context with all mutable document state. */\n fileData: DocxWriteContext;\n /** Alias for fileData — some descriptor internals access context.file. */\n file: DocxWriteContext;\n /** Current view wrapper for relationship access. */\n viewWrapper: { relationships: Relationships };\n /** Stringify a body-level child element — injected to break circular imports. */\n stringifyChild: (child: SectionChild, ctx: BodyContext) => string;\n}\n\n// ── DocxWriteContext ──\n\nexport class DocxWriteContext implements WriteContext {\n private _currentRelationshipId = 1;\n\n // --- Accessed by XmlComponent via context.file.* during toXml() ---\n declare public document: { relationships: Relationships };\n declare public numbering: Numbering;\n declare public media: Media;\n declare public charts: ChartCollection;\n declare public smartArts: SmartArtCollection;\n declare public altChunks: AltChunkCollection;\n declare public subDocs: SubDocCollection;\n declare public comments: { relationships: Relationships };\n declare public footNotes: {\n relationships: Relationships;\n notes: Map<number, (ParagraphOptions | string)[]>;\n separator?: FootnoteSeparator;\n continuationSeparator?: FootnoteSeparator;\n };\n declare public endnotes: {\n relationships: Relationships;\n notes: Map<number, (ParagraphOptions | string)[]>;\n separator?: EndnoteSeparator;\n continuationSeparator?: EndnoteSeparator;\n };\n\n // --- Additional state used by the compiler ---\n declare public fileRelationships: Relationships;\n declare public _settingsOptions: SettingsOptions;\n declare public styles: Styles;\n declare public fontTable: FontWrapper;\n declare public glossaryOptions: GlossaryDocumentOptions | undefined;\n declare public webSettings: WebSettingsOptions | undefined;\n\n // --- Section properties (one per section, raw options for descriptor pipeline) ---\n private _sectionProperties: SectionPropertiesOptions[] = [];\n public get sectionProperties(): readonly SectionPropertiesOptions[] {\n return this._sectionProperties;\n }\n\n // --- WriteContext interface (core descriptor pipeline) ---\n\n public addRelationship(_type: string, _target: string, _mode?: string): string {\n const id = this._currentRelationshipId++;\n return `rId${id}`;\n }\n\n public addMedia(_data: Uint8Array, _type: string): string {\n // DOCX media registration goes through Media.addImage() in compiler.\n return \"\";\n }\n\n // --- Internal tracking ---\n private _headers: HeaderFooterEntry[] = [];\n private _footers: HeaderFooterEntry[] = [];\n\n // --- Original input preserved for descriptor usage ---\n declare public _options: DocumentOptions;\n\n constructor(options: DocumentOptions) {\n this._options = options;\n\n this.numbering = new Numbering(options.numbering ? options.numbering : { config: [] });\n\n this.comments = { relationships: new Relationships() };\n this.fileRelationships = new Relationships();\n this.footNotes = { relationships: new Relationships(), notes: new Map() };\n this.endnotes = { relationships: new Relationships(), notes: new Map() };\n this.document = { relationships: new Relationships() };\n this._settingsOptions = {\n compatibility: options.compatibility,\n compatibilityModeVersion: options.compatabilityModeVersion,\n defaultTabStop: options.defaultTabStop,\n evenAndOddHeaders: options.evenAndOddHeaderAndFooters ? true : false,\n characterSpacingControl: options.characterSpacingControl,\n hyphenation: {\n autoHyphenation: options.hyphenation?.autoHyphenation,\n consecutiveHyphenLimit: options.hyphenation?.consecutiveHyphenLimit,\n doNotHyphenateCaps: options.hyphenation?.doNotHyphenateCaps,\n hyphenationZone: options.hyphenation?.hyphenationZone,\n },\n trackRevisions: options.features?.trackRevisions,\n updateFields: options.features?.updateFields,\n documentProtection: options.features?.documentProtection,\n view: options.view,\n zoom: options.zoom,\n writeProtection: options.writeProtection,\n displayBackgroundShape:\n options.displayBackgroundShape ?? (options.background?.image ? true : undefined),\n embedTrueTypeFonts: options.embedTrueTypeFonts,\n embedSystemFonts: options.embedSystemFonts,\n saveSubsetFonts: options.saveSubsetFonts,\n docVars: options.docVars,\n colorSchemeMapping: options.colorSchemeMapping,\n mailMerge: options.mailMerge,\n ...options.settings,\n };\n\n this.media = new Media();\n this.charts = new ChartCollection();\n this.smartArts = new SmartArtCollection();\n this.altChunks = new AltChunkCollection();\n this.subDocs = new SubDocCollection();\n\n if (options.externalStyles !== undefined) {\n const defaultFactory = new DefaultStylesFactory();\n const defaultStyles = defaultFactory.newInstance(options.styles?.default);\n const externalFactory = new ExternalStylesFactory();\n const externalStyles = externalFactory.newInstance(options.externalStyles);\n // Skip docDefaults AND latentStyles from default factory —\n // external styles already provide them; XSD requires docDefaults → latentStyles → style sequence\n const defaultStyleElements = defaultStyles.importedStyles!.slice(2);\n this.styles = new Styles({\n ...externalStyles,\n importedStyles: [...externalStyles.importedStyles!, ...defaultStyleElements],\n });\n } else if (options.styles) {\n const stylesFactory = new DefaultStylesFactory();\n const defaultStyles = stylesFactory.newInstance(options.styles.default);\n // importedStyles[0]=docDefaults, [1]=latentStyles, [2+]=builtin styles.\n // paragraphStyles/characterStyles stay available for numbering registration\n // below but are NOT emitted when round-tripping (the raw importedStyles\n // already carry every source style — emitting both would duplicate them).\n const {\n importedStyles: parsedStyles,\n paragraphStyles,\n characterStyles,\n ...restStyles\n } = options.styles;\n const merged = defaultStyles.importedStyles ? [...defaultStyles.importedStyles] : [];\n if (restStyles.docDefaultsXml) {\n const ddIdx = merged.findIndex((s) => s._raw.startsWith(\"<w:docDefaults\"));\n if (ddIdx >= 0) merged[ddIdx] = { _raw: restStyles.docDefaultsXml };\n }\n if (restStyles.latentStylesXml) {\n const latentIdx = merged.findIndex((s) => s._raw.startsWith(\"<w:latentStyles\"));\n if (latentIdx >= 0) merged[latentIdx] = { _raw: restStyles.latentStylesXml };\n }\n if (parsedStyles && parsedStyles.length > 0) {\n // Round-trip: emit verbatim source styles (suppress factory builtins\n // and structured re-emission).\n merged.splice(2);\n merged.push(...parsedStyles);\n this.styles = new Styles({ ...defaultStyles, importedStyles: merged, ...restStyles });\n } else {\n // Generation: factory builtins + structured custom styles.\n this.styles = new Styles({\n ...defaultStyles,\n paragraphStyles,\n characterStyles,\n ...restStyles,\n });\n }\n } else {\n const stylesFactory = new DefaultStylesFactory();\n this.styles = new Styles(stylesFactory.newInstance());\n }\n\n // Register numbering references from custom paragraph/character styles.\n // Style definitions may contain numbering properties whose concrete instances\n // are never created through the body paragraph processing path.\n if (options.styles?.paragraphStyles) {\n for (const style of options.styles.paragraphStyles) {\n const num = style.paragraph?.numbering;\n if (num) {\n this.numbering.createConcreteNumberingInstance(num.reference, num.instance ?? 0);\n }\n }\n }\n\n this.addDefaultRelationships();\n\n for (const section of options.sections) {\n this.addSection(section);\n }\n\n if (options.footnotes) {\n for (const key in options.footnotes) {\n // Skip the round-tripped separator markers (they carry no .children).\n if (key === \"separator\" || key === \"continuationSeparator\") continue;\n this.footNotes.notes.set(parseFloat(key), options.footnotes[key].children);\n }\n this.footNotes.separator = options.footnotes.separator;\n this.footNotes.continuationSeparator = options.footnotes.continuationSeparator;\n }\n\n if (options.endnotes) {\n for (const key in options.endnotes) {\n if (key === \"separator\" || key === \"continuationSeparator\") continue;\n this.endnotes.notes.set(parseFloat(key), options.endnotes[key].children);\n }\n this.endnotes.separator = options.endnotes.separator;\n this.endnotes.continuationSeparator = options.endnotes.continuationSeparator;\n }\n\n this.fontTable = new FontWrapper(options.fonts ?? []);\n this.glossaryOptions = options.glossary;\n this.webSettings = options.webSettings ?? undefined;\n\n if (options.glossary) {\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument\",\n \"glossary/document.xml\",\n );\n }\n\n if (this.webSettings) {\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings\",\n \"webSettings.xml\",\n );\n }\n }\n\n get headers(): HeaderFooterEntry[] {\n return this._headers;\n }\n\n get footers(): HeaderFooterEntry[] {\n return this._footers;\n }\n\n // --- Private helpers ---\n\n private addSection({ headers = {}, footers = {}, properties }: SectionOptions): void {\n const sectPrOptions: SectionPropertiesOptions = {\n ...properties,\n footerWrapperGroup: {\n default: footers.default ? this.createFooter(footers.default) : undefined,\n even: footers.even ? this.createFooter(footers.even) : undefined,\n first: footers.first ? this.createFooter(footers.first) : undefined,\n },\n headerWrapperGroup: {\n default: headers.default ? this.createHeader(headers.default) : undefined,\n even: headers.even ? this.createHeader(headers.even) : undefined,\n first: headers.first ? this.createHeader(headers.first) : undefined,\n },\n };\n this._sectionProperties.push(sectPrOptions);\n }\n\n private createHeader(header: SectionChild[]): HeaderFooterEntry {\n const referenceId = this._currentRelationshipId++;\n const entry: HeaderFooterEntry = {\n children: header,\n relationships: new Relationships(),\n referenceId,\n };\n this.addHeaderToDocument(entry);\n return entry;\n }\n\n private createFooter(footer: SectionChild[]): HeaderFooterEntry {\n const referenceId = this._currentRelationshipId++;\n const entry: HeaderFooterEntry = {\n children: footer,\n relationships: new Relationships(),\n referenceId,\n };\n this.addFooterToDocument(entry);\n return entry;\n }\n\n private addHeaderToDocument(header: HeaderFooterEntry): void {\n this._headers.push(header);\n this.document.relationships.addRelationship(\n header.referenceId,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header\",\n `header${this._headers.length}.xml`,\n );\n }\n\n private addFooterToDocument(footer: HeaderFooterEntry): void {\n this._footers.push(footer);\n this.document.relationships.addRelationship(\n footer.referenceId,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer\",\n `footer${this._footers.length}.xml`,\n );\n }\n\n private addDefaultRelationships(): void {\n this.fileRelationships.addRelationship(\n 1,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\",\n \"word/document.xml\",\n );\n this.fileRelationships.addRelationship(\n 2,\n \"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties\",\n \"docProps/core.xml\",\n );\n this.fileRelationships.addRelationship(\n 3,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\",\n \"docProps/app.xml\",\n );\n this.fileRelationships.addRelationship(\n 4,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties\",\n \"docProps/custom.xml\",\n );\n\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\",\n \"styles.xml\",\n );\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering\",\n \"numbering.xml\",\n );\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes\",\n \"footnotes.xml\",\n );\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes\",\n \"endnotes.xml\",\n );\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings\",\n \"settings.xml\",\n );\n // Comments is an optional part — only wire the document→comments relationship\n // when the document actually carries comments. Emitting it unconditionally\n // produces an orphan comments.xml that Word rejects as an OPC violation\n // (empty part with no [Content_Types] Override when content types are\n // passed through from the source on round-trip).\n if (this._options.comments?.children?.length) {\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments\",\n \"comments.xml\",\n );\n }\n if (this._options.bibliography) {\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/bibliography\",\n \"bibliography.xml\",\n );\n }\n\n // Theme — a raw-passthrough part. Only declare the document→theme\n // relationship when the source carried one, so Word can resolve theme\n // colors/fonts. Without it theme1.xml is an orphan part Word may reject.\n const themePart = this._options.rawParts?.find((p) => p.path.startsWith(\"word/theme/\"));\n if (themePart) {\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\",\n themePart.path.replace(/^word\\//, \"\"),\n );\n }\n\n // customXml storage — raw-passthrough parts. Declare the document→customXml\n // relationship for each item (itemProps are linked via the item's own .rels,\n // not directly by the document) so Word can bind cover-page metadata, etc.\n for (const part of this._options.rawParts ?? []) {\n if (\n part.path.startsWith(\"customXml/\") &&\n part.path.endsWith(\".xml\") &&\n !part.path.includes(\"/_rels/\") &&\n !part.path.includes(\"itemProps\")\n ) {\n this.document.relationships.addRelationship(\n this._currentRelationshipId++,\n \"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml\",\n `../${part.path}`,\n );\n }\n }\n }\n}\n\n// ── DocxReadContext ──\n\n/**\n * DOCX-specific read context.\n *\n * Holds references to the parsed DocxDocument and cached style/numbering data\n * used throughout the DOCX parsing pipeline. Implements ReadContext for\n * descriptor pipeline compatibility.\n */\nexport class DocxReadContext implements ReadContext {\n /**\n * Path of the part currently being parsed. Each part carries its own .rels\n * with independent rId numbering, so drawings inside a part must resolve\n * image relationships against that part's rels. Defaults to the document body.\n */\n public currentPart = \"word/document.xml\";\n\n constructor(\n public docx: DocxDocument,\n public styleCache: Map<string, Element>,\n public numberingCache: Map<string, Element>,\n ) {}\n\n resolveRelationship(rId: string): string | undefined {\n const partMedia = this.docx.partRefs.partMedia.get(this.currentPart);\n if (partMedia) {\n const media = partMedia.get(rId);\n if (media) return media;\n }\n return (\n this.docx.partRefs.headers.get(rId) ??\n this.docx.partRefs.footers.get(rId) ??\n this.docx.partRefs.media.get(rId) ??\n this.docx.partRefs.charts.get(rId) ??\n this.docx.partRefs.diagramData.get(rId) ??\n this.docx.partRefs.afChunks.get(rId) ??\n this.docx.partRefs.subDocs.get(rId) ??\n this.docx.partRefs.hyperlinks.get(rId)\n );\n }\n\n /**\n * Run `fn` with `currentPart` temporarily set to `partPath`, restoring the\n * previous value afterwards. Use when parsing a sub-document part (header,\n * footer, footnotes, …) so its drawings resolve images from its own rels.\n */\n withPart<T>(partPath: string, fn: () => T): T {\n const prev = this.currentPart;\n this.currentPart = partPath;\n try {\n return fn();\n } finally {\n this.currentPart = prev;\n }\n }\n\n getPart(path: string): Element | undefined {\n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AW;GACb,MAAM,QAAQ,UAAU,IAAI,GAAG;GAC/B,IAAI,OAAO,OAAO;EACpB;EACA,OACE,KAAK,KAAK,SAAS,QAAQ,IAAI,GAAG,KAClC,KAAK,KAAK,SAAS,QAAQ,IAAI,GAAG,KAClC,KAAK,KAAK,SAAS,MAAM,IAAI,GAAG,KAChC,KAAK,KAAK,SAAS,OAAO,IAAI,GAAG,KACjC,KAAK,KAAK,SAAS,YAAY,IAAI,GAAG,KACtC,KAAK,KAAK,SAAS,SAAS,IAAI,GAAG,KACnC,KAAK,KAAK,SAAS,QAAQ,IAAI,GAAG,KAClC,KAAK,KAAK,SAAS,WAAW,IAAI,GAAG;CAEzC;;;;;;CAOA,SAAY,UAAkB,IAAgB;EAC5C,MAAM,OAAO,KAAK;EAClB,KAAK,cAAc;EACnB,IAAI;GACF,OAAO,GAAG;EACZ,UAAU;GACR,KAAK,cAAc;EACrB;CACF;CAEA,QAAQ,MAAmC;EACzC,OAAO,KAAK,KAAK,IAAI,IAAI,IAAI;CAC/B;CAEA,OAAO,MAAsC;EAC3C,OAAO,KAAK,KAAK,IAAI,OAAO,IAAI;CAClC;AACF"}
|
|
@@ -4,7 +4,6 @@ import { BlipEffectsOptions, CustomGeometryOptions, EffectDagOptions, EffectList
|
|
|
4
4
|
import { ChartCollection, ChartSpaceOptions } from "@office-open/core/chart";
|
|
5
5
|
import { SmartArtCollection } from "@office-open/core/smartart";
|
|
6
6
|
import { CustomDescriptor, ReadContext, WriteContext } from "@office-open/core/descriptor";
|
|
7
|
-
import { Buffer } from "\u0000polyfill-node.buffer";
|
|
8
7
|
|
|
9
8
|
//#region src/parts/bibliography.d.ts
|
|
10
9
|
interface SourceTypeOptions {
|
|
@@ -46,22 +45,18 @@ interface ContentTypesInput {
|
|
|
46
45
|
}
|
|
47
46
|
declare const contentTypesDesc: CustomDescriptor<ContentTypesInput>;
|
|
48
47
|
declare function withMediaDefaults(input: ContentTypesInput, mediaFileNames: string[]): ContentTypesInput;
|
|
49
|
-
declare function
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
hasComments?: boolean;
|
|
56
|
-
hasGlossary?: boolean;
|
|
57
|
-
hasWebSettings?: boolean;
|
|
58
|
-
altChunks?: {
|
|
48
|
+
declare function withAltChunkOverrides(input: ContentTypesInput, altChunks: readonly {
|
|
49
|
+
path: string;
|
|
50
|
+
contentType: string;
|
|
51
|
+
}[]): ContentTypesInput;
|
|
52
|
+
declare function buildContentTypesFromRegistry(facts: ReadonlyMap<string, boolean | number>, dynamic?: {
|
|
53
|
+
altChunks?: ReadonlyArray<{
|
|
59
54
|
path: string;
|
|
60
55
|
contentType: string;
|
|
61
|
-
}
|
|
62
|
-
subDocs?: {
|
|
56
|
+
}>;
|
|
57
|
+
subDocs?: ReadonlyArray<{
|
|
63
58
|
path: string;
|
|
64
|
-
}
|
|
59
|
+
}>;
|
|
65
60
|
}): ContentTypesInput;
|
|
66
61
|
//#endregion
|
|
67
62
|
//#region src/parts/fonts/font.d.ts
|
|
@@ -107,7 +102,7 @@ interface AltChunkOptions {
|
|
|
107
102
|
data: Uint8Array | string;
|
|
108
103
|
contentType: "text/html" | "application/rtf" | "text/plain";
|
|
109
104
|
extension: "html" | "rtf" | "txt";
|
|
110
|
-
|
|
105
|
+
matchSource?: boolean;
|
|
111
106
|
}
|
|
112
107
|
//#endregion
|
|
113
108
|
//#region src/shared/border.d.ts
|
|
@@ -1467,8 +1462,8 @@ interface WpgGroupCoreOptions {
|
|
|
1467
1462
|
}
|
|
1468
1463
|
type WpgGroupOptions = WpgGroupCoreOptions & {
|
|
1469
1464
|
transformation: MediaDataTransformation;
|
|
1470
|
-
|
|
1471
|
-
|
|
1465
|
+
childOffset?: ChildOffset;
|
|
1466
|
+
childExtent?: ChildExtent;
|
|
1472
1467
|
fill?: FillOptions;
|
|
1473
1468
|
effects?: EffectListOptions;
|
|
1474
1469
|
};
|
|
@@ -1561,7 +1556,7 @@ interface NonVisualShapePropertiesOptions {
|
|
|
1561
1556
|
name?: string;
|
|
1562
1557
|
description?: string;
|
|
1563
1558
|
title?: string;
|
|
1564
|
-
|
|
1559
|
+
textBox?: string;
|
|
1565
1560
|
connector?: boolean;
|
|
1566
1561
|
}
|
|
1567
1562
|
//#endregion
|
|
@@ -1625,18 +1620,18 @@ interface MediaDataTransformation {
|
|
|
1625
1620
|
b: number;
|
|
1626
1621
|
};
|
|
1627
1622
|
}
|
|
1628
|
-
interface
|
|
1623
|
+
interface NonVisualPropertiesOptions {
|
|
1629
1624
|
id?: number;
|
|
1630
1625
|
name?: string;
|
|
1631
|
-
|
|
1626
|
+
description?: string;
|
|
1632
1627
|
preferRelativeResize?: boolean;
|
|
1633
1628
|
}
|
|
1634
1629
|
interface CoreMediaData {
|
|
1635
1630
|
fileName: string;
|
|
1636
1631
|
transformation: MediaDataTransformation;
|
|
1637
1632
|
data: Uint8Array;
|
|
1638
|
-
|
|
1639
|
-
|
|
1633
|
+
sourceRectangle?: SourceRectangleOptions;
|
|
1634
|
+
nonVisualProperties?: NonVisualPropertiesOptions;
|
|
1640
1635
|
useLocalDpi?: boolean;
|
|
1641
1636
|
}
|
|
1642
1637
|
interface RegularMediaData {
|
|
@@ -1660,11 +1655,11 @@ interface WpgMediaData {
|
|
|
1660
1655
|
type: "wpg";
|
|
1661
1656
|
transformation: MediaDataTransformation;
|
|
1662
1657
|
children: GroupChildMediaData[];
|
|
1663
|
-
|
|
1664
|
-
|
|
1658
|
+
childOffset?: ChildOffset;
|
|
1659
|
+
childExtent?: ChildExtent;
|
|
1665
1660
|
fill?: FillOptions;
|
|
1666
1661
|
effects?: EffectListOptions;
|
|
1667
|
-
|
|
1662
|
+
groupShapeLocks?: GroupShapeLocksOptions;
|
|
1668
1663
|
}
|
|
1669
1664
|
interface ChartMediaData {
|
|
1670
1665
|
type: "chart";
|
|
@@ -1703,8 +1698,11 @@ interface MediaTransformation {
|
|
|
1703
1698
|
declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
|
|
1704
1699
|
declare class Media {
|
|
1705
1700
|
private map;
|
|
1701
|
+
private nextMediaCounter;
|
|
1706
1702
|
constructor();
|
|
1703
|
+
nextMediaName(type: string): string;
|
|
1707
1704
|
addImage(key: string, mediaData: MediaData): void;
|
|
1705
|
+
findByContent(data: Uint8Array): string | undefined;
|
|
1708
1706
|
get array(): MediaData[];
|
|
1709
1707
|
}
|
|
1710
1708
|
//#endregion
|
|
@@ -1717,9 +1715,9 @@ interface CoreImageOptions {
|
|
|
1717
1715
|
fill?: FillOptions;
|
|
1718
1716
|
effects?: EffectListOptions;
|
|
1719
1717
|
blipEffects?: BlipEffectsOptions;
|
|
1720
|
-
|
|
1718
|
+
sourceRectangle?: SourceRectangleOptions;
|
|
1721
1719
|
tile?: TileOptions;
|
|
1722
|
-
|
|
1720
|
+
nonVisualProperties?: NonVisualPropertiesOptions;
|
|
1723
1721
|
runPropertiesRawXml?: string;
|
|
1724
1722
|
graphicFrameLocks?: GraphicFrameLocksOptions | null;
|
|
1725
1723
|
useLocalDpi?: boolean;
|
|
@@ -1734,7 +1732,7 @@ interface SvgMediaOptions {
|
|
|
1734
1732
|
fallback: RegularImageOptions;
|
|
1735
1733
|
}
|
|
1736
1734
|
type ImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
|
|
1737
|
-
declare const createImageData: (data: Uint8Array, transformation: MediaTransformation, key: string,
|
|
1735
|
+
declare const createImageData: (data: Uint8Array, transformation: MediaTransformation, key: string, sourceRectangle?: SourceRectangleOptions, nonVisualProperties?: NonVisualPropertiesOptions) => Pick<MediaData, "data" | "fileName" | "transformation" | "sourceRectangle" | "nonVisualProperties">;
|
|
1738
1736
|
//#endregion
|
|
1739
1737
|
//#region src/parts/paragraph/run/chart-run.d.ts
|
|
1740
1738
|
interface ChartOptions extends ChartSpaceOptions {
|
|
@@ -1776,7 +1774,7 @@ interface DocumentBackgroundOptions {
|
|
|
1776
1774
|
}
|
|
1777
1775
|
interface BackgroundRawMediaOptions {
|
|
1778
1776
|
fileName: string;
|
|
1779
|
-
data:
|
|
1777
|
+
data: DataType;
|
|
1780
1778
|
type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
|
|
1781
1779
|
}
|
|
1782
1780
|
//#endregion
|
|
@@ -1797,8 +1795,8 @@ type WpsShapeRunOptions = WpsShapeCoreOptions & CoreShapeOptions;
|
|
|
1797
1795
|
interface CoreGroupOptions {
|
|
1798
1796
|
children: GroupChildMediaData[];
|
|
1799
1797
|
transformation: MediaTransformation;
|
|
1800
|
-
|
|
1801
|
-
|
|
1798
|
+
childOffset?: ChildOffset;
|
|
1799
|
+
childExtent?: ChildExtent;
|
|
1802
1800
|
fill?: FillOptions;
|
|
1803
1801
|
effects?: EffectListOptions;
|
|
1804
1802
|
floating?: Floating;
|
|
@@ -1808,7 +1806,7 @@ interface CoreGroupOptions {
|
|
|
1808
1806
|
mcChoiceRequires?: string;
|
|
1809
1807
|
runPropertiesRawXml?: string;
|
|
1810
1808
|
graphicFrameLocks?: GraphicFrameLocksOptions | null;
|
|
1811
|
-
|
|
1809
|
+
groupShapeLocks?: GroupShapeLocksOptions;
|
|
1812
1810
|
}
|
|
1813
1811
|
type WpgGroupRunOptions = CoreGroupOptions;
|
|
1814
1812
|
//#endregion
|
|
@@ -2224,14 +2222,14 @@ interface CustomXmlAttributeOptions {
|
|
|
2224
2222
|
val: string;
|
|
2225
2223
|
uri?: string;
|
|
2226
2224
|
}
|
|
2227
|
-
interface
|
|
2225
|
+
interface CustomXmlPropertiesOptions {
|
|
2228
2226
|
placeholder?: string;
|
|
2229
2227
|
attributes?: CustomXmlAttributeOptions[];
|
|
2230
2228
|
}
|
|
2231
2229
|
interface CustomXmlRunOptions {
|
|
2232
2230
|
element: string;
|
|
2233
2231
|
uri?: string;
|
|
2234
|
-
customXmlPr?:
|
|
2232
|
+
customXmlPr?: CustomXmlPropertiesOptions;
|
|
2235
2233
|
}
|
|
2236
2234
|
type CustomXmlBlockOptions = CustomXmlRunOptions & {
|
|
2237
2235
|
children?: SectionChild[];
|
|
@@ -2282,8 +2280,8 @@ declare const PageOrientation: {
|
|
|
2282
2280
|
readonly LANDSCAPE: "landscape";
|
|
2283
2281
|
};
|
|
2284
2282
|
interface PageSizeAttributes {
|
|
2285
|
-
width
|
|
2286
|
-
height
|
|
2283
|
+
width?: number | PositiveUniversalMeasure;
|
|
2284
|
+
height?: number | PositiveUniversalMeasure;
|
|
2287
2285
|
orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
|
|
2288
2286
|
code?: number;
|
|
2289
2287
|
}
|
|
@@ -2405,11 +2403,11 @@ declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyo
|
|
|
2405
2403
|
//#region src/parts/document/body/section-properties/descriptor.d.ts
|
|
2406
2404
|
declare const sectionPropertiesDesc: CustomDescriptor<SectionPropertiesOptions, BodyContext>;
|
|
2407
2405
|
declare function stringifySectionPropertiesXml(opts: SectionPropertiesOptions): string;
|
|
2408
|
-
declare function parseSectionPropertiesEl(el: Element):
|
|
2406
|
+
declare function parseSectionPropertiesEl(el: Element): SectionPropertiesOptions;
|
|
2409
2407
|
//#endregion
|
|
2410
2408
|
//#region src/parts/sub-doc/sub-doc.d.ts
|
|
2411
2409
|
interface SubDocOptions {
|
|
2412
|
-
data:
|
|
2410
|
+
data: DataType;
|
|
2413
2411
|
}
|
|
2414
2412
|
//#endregion
|
|
2415
2413
|
//#region src/parts/textbox/types.d.ts
|
|
@@ -2582,13 +2580,13 @@ interface SectionPropertiesOptionsBase {
|
|
|
2582
2580
|
rsidR?: string;
|
|
2583
2581
|
rsidSect?: string;
|
|
2584
2582
|
page?: {
|
|
2585
|
-
size?:
|
|
2583
|
+
size?: PageSizeAttributes;
|
|
2586
2584
|
margin?: PageMarginAttributes;
|
|
2587
2585
|
pageNumbers?: PageNumberTypeAttributes;
|
|
2588
2586
|
borders?: PageBordersOptions;
|
|
2589
2587
|
textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
|
|
2590
2588
|
};
|
|
2591
|
-
grid?:
|
|
2589
|
+
grid?: DocGridAttributesProperties;
|
|
2592
2590
|
headerWrapperGroup?: HeaderFooterGroup<HeaderFooterEntry>;
|
|
2593
2591
|
footerWrapperGroup?: HeaderFooterGroup<HeaderFooterEntry>;
|
|
2594
2592
|
lineNumbers?: LineNumberAttributes;
|
|
@@ -2627,6 +2625,30 @@ declare const sectionPageSizeDefaults: {
|
|
|
2627
2625
|
ORIENTATION: "portrait";
|
|
2628
2626
|
};
|
|
2629
2627
|
//#endregion
|
|
2628
|
+
//#region src/parts/endnotes/descriptor.d.ts
|
|
2629
|
+
interface EndnoteSeparator {
|
|
2630
|
+
id: number;
|
|
2631
|
+
paragraphs: (ParagraphOptions | string)[];
|
|
2632
|
+
}
|
|
2633
|
+
interface EndnotesData {
|
|
2634
|
+
notes: Map<number, (ParagraphOptions | string)[]>;
|
|
2635
|
+
separator?: EndnoteSeparator;
|
|
2636
|
+
continuationSeparator?: EndnoteSeparator;
|
|
2637
|
+
}
|
|
2638
|
+
declare const endnotesDesc: CustomDescriptor<EndnotesData, BodyContext>;
|
|
2639
|
+
//#endregion
|
|
2640
|
+
//#region src/parts/footnotes/descriptor.d.ts
|
|
2641
|
+
interface FootnoteSeparator {
|
|
2642
|
+
id: number;
|
|
2643
|
+
paragraphs: (ParagraphOptions | string)[];
|
|
2644
|
+
}
|
|
2645
|
+
interface FootnotesData {
|
|
2646
|
+
notes: Map<number, (ParagraphOptions | string)[]>;
|
|
2647
|
+
separator?: FootnoteSeparator;
|
|
2648
|
+
continuationSeparator?: FootnoteSeparator;
|
|
2649
|
+
}
|
|
2650
|
+
declare const footnotesDesc: CustomDescriptor<FootnotesData, BodyContext>;
|
|
2651
|
+
//#endregion
|
|
2630
2652
|
//#region src/parts/glossary-document.d.ts
|
|
2631
2653
|
declare const DocPartGallery: {
|
|
2632
2654
|
readonly PLACEHOLDER: "placeholder";
|
|
@@ -2784,6 +2806,7 @@ interface LevelsOptions {
|
|
|
2784
2806
|
lvlPicBulletId?: number;
|
|
2785
2807
|
templateCode?: string;
|
|
2786
2808
|
tentative?: boolean;
|
|
2809
|
+
w15Tentative?: boolean;
|
|
2787
2810
|
legacy?: {
|
|
2788
2811
|
space?: number;
|
|
2789
2812
|
indent?: number;
|
|
@@ -2827,6 +2850,8 @@ declare class Numbering {
|
|
|
2827
2850
|
}
|
|
2828
2851
|
interface AbstractNumberingExtraOptions {
|
|
2829
2852
|
nsid?: string;
|
|
2853
|
+
multiLevelType?: string;
|
|
2854
|
+
restartNumberingAfterBreak?: boolean;
|
|
2830
2855
|
tmpl?: string;
|
|
2831
2856
|
name?: string;
|
|
2832
2857
|
styleLink?: string;
|
|
@@ -3425,7 +3450,7 @@ interface WebSettingsOptions {
|
|
|
3425
3450
|
doNotOrganizeInFolder?: boolean;
|
|
3426
3451
|
doNotUseLongFileNames?: boolean;
|
|
3427
3452
|
pixelsPerInch?: number;
|
|
3428
|
-
|
|
3453
|
+
targetScreenSize?: (typeof TargetScreenSize)[keyof typeof TargetScreenSize] | string;
|
|
3429
3454
|
saveSmartTagsAsXml?: boolean;
|
|
3430
3455
|
}
|
|
3431
3456
|
interface WebSettingsInput {
|
|
@@ -3440,7 +3465,7 @@ interface WebSettingsInput {
|
|
|
3440
3465
|
doNotOrganizeInFolder?: boolean;
|
|
3441
3466
|
doNotUseLongFileNames?: boolean;
|
|
3442
3467
|
pixelsPerInch?: number;
|
|
3443
|
-
|
|
3468
|
+
targetScreenSize?: string;
|
|
3444
3469
|
saveSmartTagsAsXml?: boolean;
|
|
3445
3470
|
}
|
|
3446
3471
|
declare function framesetXml(fs: FramesetOptions): string;
|
|
@@ -3511,10 +3536,14 @@ declare class DocxWriteContext implements WriteContext {
|
|
|
3511
3536
|
footNotes: {
|
|
3512
3537
|
relationships: Relationships;
|
|
3513
3538
|
notes: Map<number, (ParagraphOptions | string)[]>;
|
|
3539
|
+
separator?: FootnoteSeparator;
|
|
3540
|
+
continuationSeparator?: FootnoteSeparator;
|
|
3514
3541
|
};
|
|
3515
3542
|
endnotes: {
|
|
3516
3543
|
relationships: Relationships;
|
|
3517
3544
|
notes: Map<number, (ParagraphOptions | string)[]>;
|
|
3545
|
+
separator?: EndnoteSeparator;
|
|
3546
|
+
continuationSeparator?: EndnoteSeparator;
|
|
3518
3547
|
};
|
|
3519
3548
|
fileRelationships: Relationships;
|
|
3520
3549
|
_settingsOptions: SettingsOptions;
|
|
@@ -3555,6 +3584,7 @@ declare class DocxReadContext implements ReadContext {
|
|
|
3555
3584
|
type EmbeddedFontOptionsWithKey = EmbeddedFontOptions & {
|
|
3556
3585
|
fontKey: string;
|
|
3557
3586
|
embedRid?: string;
|
|
3587
|
+
data?: Uint8Array;
|
|
3558
3588
|
};
|
|
3559
3589
|
declare class FontWrapper implements ViewWrapper {
|
|
3560
3590
|
options: EmbeddedFontOptions[];
|
|
@@ -3574,7 +3604,7 @@ interface FontSignature {
|
|
|
3574
3604
|
}
|
|
3575
3605
|
interface EmbeddedFontOptions {
|
|
3576
3606
|
name: string;
|
|
3577
|
-
data?:
|
|
3607
|
+
data?: DataType;
|
|
3578
3608
|
characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
|
3579
3609
|
family?: string;
|
|
3580
3610
|
pitch?: string;
|
|
@@ -3643,17 +3673,25 @@ interface DocumentOptions {
|
|
|
3643
3673
|
lastModifiedBy?: string;
|
|
3644
3674
|
revision?: number;
|
|
3645
3675
|
lastPrinted?: string;
|
|
3676
|
+
created?: string;
|
|
3677
|
+
modified?: string;
|
|
3646
3678
|
externalStyles?: string;
|
|
3647
3679
|
styles?: StylesOptions;
|
|
3648
3680
|
numbering?: NumberingOptions;
|
|
3649
3681
|
comments?: CommentsOptions;
|
|
3650
3682
|
bibliography?: BibliographyOptions;
|
|
3651
|
-
footnotes?:
|
|
3683
|
+
footnotes?: Record<string, {
|
|
3652
3684
|
children: (ParagraphOptions | string)[];
|
|
3653
|
-
}
|
|
3654
|
-
|
|
3685
|
+
}> & {
|
|
3686
|
+
separator?: FootnoteSeparator;
|
|
3687
|
+
continuationSeparator?: FootnoteSeparator;
|
|
3688
|
+
};
|
|
3689
|
+
endnotes?: Record<string, {
|
|
3655
3690
|
children: (ParagraphOptions | string)[];
|
|
3656
|
-
}
|
|
3691
|
+
}> & {
|
|
3692
|
+
separator?: EndnoteSeparator;
|
|
3693
|
+
continuationSeparator?: EndnoteSeparator;
|
|
3694
|
+
};
|
|
3657
3695
|
background?: DocumentBackgroundOptions;
|
|
3658
3696
|
features?: FeaturesOptions;
|
|
3659
3697
|
compatabilityModeVersion?: number;
|
|
@@ -3699,8 +3737,10 @@ interface CorePropertiesInput {
|
|
|
3699
3737
|
lastModifiedBy?: string;
|
|
3700
3738
|
revision?: number;
|
|
3701
3739
|
lastPrinted?: string;
|
|
3740
|
+
created?: string;
|
|
3741
|
+
modified?: string;
|
|
3702
3742
|
}
|
|
3703
3743
|
declare const corePropertiesDesc: CustomDescriptor<CorePropertiesInput>;
|
|
3704
3744
|
//#endregion
|
|
3705
|
-
export { RevisionViewOptions as $,
|
|
3706
|
-
//# sourceMappingURL=core-properties-
|
|
3745
|
+
export { RevisionViewOptions as $, SdtPropertiesOptions as $a, TableCellBordersOptions as $i, WpgGroupRunOptions as $n, Margins as $r, PageBorderZOrder as $t, SubDocData as A, CnfConditionalOptions as Aa, NoBreakHyphen as Ai, SdtRunOptions as An, PresetTextShapeOptions as Ar, DocumentAttributeNamespace as At, EndnotePropertiesOptions as B, CellMergeAttributes as Ba, FrameOptions$1 as Bi, FormFieldTextType as Bn, GroupChild as Br, HeaderFooterReferenceType as Bt, TargetScreenSize as C, TabStopType as Ca, DayLong as Ci, TableRowPropertiesOptions as Cn, buildContentTypesFromRegistry as Co, ShapeStyleOptions as Cr, endnotesDesc as Ct, framesetXml as D, BreakType as Da, LastRenderedPageBreak as Di, MathChild as Dn, BibliographyOptions as Do, BodyPropertiesOptions as Dr, SectionPropertiesOptionsBase as Dt, frameXml as E, SpacingProperties as Ea, FootnoteReferenceElement as Ei, ImageChild as En, withMediaDefaults as Eo, WpsShapeOptions as Er, SectionPropertiesOptions as Et, parseStyleDefinitions as F, SectionVerticalAlign as Fa, YearLong as Fi, CheckBoxOptions as Fn, VerticalAnchor as Fr, SubDocOptions as Ft, MailMergeDocType as G, SdtCheckboxSymbol as Ga, SpaceType as Gi, RubyOptions as Gn, GroupShapeLocksOptions as Gr, LineNumberAttributes as Gt, HyphenationOptions as H, stringifyTableOfContents as Ha, XYFrameOptions as Hi, createFormFieldData as Hn, WpgGroupOptions as Hr, createHeaderFooterReference as Ht, AutoCaptionOptions as I, TableVerticalAlign as Ia, YearShort as Ii, DropDownListOptions as In, createBodyProperties as Ir, parseSectionPropertiesEl as It, MathPropertiesOptions as J, SdtDateMappingType as Ja, tableDesc as Ji, PositionalTabOptions as Jn, createVerticalPosition as Jr, PageTextDirectionType as Jt, MailMergeOptions as K, SdtComboBoxOptions as Ka, VerticalPositionAlign as Ki, PositionalTabAlignment as Kn, drawingDesc as Kr, LineNumberRestartFormat as Kt, CaptionOptions as L, VerticalAlignSection as La, AlignmentFrameOptions as Li, FormFieldCommonOptions as Ln, parseBodyProperties as Lr, sectionPropertiesDesc as Lt, StylesOptions as M, AlignmentType as Ma, Separator as Mi, ProofErrorType as Mn, TextHorzOverflowType as Mr, SectionChild as Mt, buildNumberingCache as N, TableWidthProperties as Na, SoftHyphen as Ni, ProofErrorTypeValue as Nn, TextVertOverflowType as Nr, SectionOptions as Nt, webSettingsDesc as O, BreakTypeValue as Oa, MonthLong as Oi, ParagraphChild as On, SourceTypeOptions as Oo, FlatTextOptions as Or, sectionMarginDefaults as Ot, buildStyleCache as P, WidthType as Pa, Tab as Pi, SmartTagRunOptions as Pn, TextVerticalType as Pr, VmlShapeStyle as Pt, ReadModeInkLockDownOptions as Q, SdtLock as Qa, TableRowOptions as Qi, SimpleFieldOptions as Qn, HorizontalPositionRelativeFrom as Qr, PageBorderOffsetFrom as Qt, CaptionsOptions as R, VerticalAlignTable as Ra, DropCapType as Ri, FormFieldOptions as Rn, ChildExtent as Rr, stringifySectionPropertiesXml as Rt, DivOptions as S, TabStopPosition as Sa, ContinuationSeparator as Si, TableRowPropertiesChangeOptions as Sn, ContentTypesInput as So, WpsMediaData as Sr, EndnotesData as St, WebSettingsOptions as T, LineRuleType as Ta, EndnoteReference as Ti, ChartChild as Tn, withAltChunkOverrides as To, WpsShapeCoreOptions as Tr, SectionPropertiesChangeOptions as Tt, MailMergeDataType as U, parseToc as Ua, HorizontalPositionAlign as Ui, parseFormFieldData as Un, DrawingDescriptorOptions as Ur, SectionType as Ut, FootnotePropertiesOptions as V, VerticalMergeRevisionType as Va, FrameWrap as Vi, TextInputOptions as Vn, WpgGroupCoreOptions as Vr, HeaderFooterType as Vt, MailMergeDest as W, SdtCheckboxOptions as Wa, NumberFormat as Wi, RubyAlign as Wn, GraphicFrameLocksOptions as Wr, createSectionType as Wt, OdsoFieldType as X, SdtDropDownListOptions as Xa, HeightRule as Xi, CommentOptions as Xn, Floating as Xr, createPageMargin as Xt, OdsoFieldMapDataOptions as Y, SdtDateOptions as Ya, TableOptions as Yi, PositionalTabRelativeTo as Yn, createHorizontalPosition as Yr, PageMarginAttributes as Yt, OdsoOptions as Z, SdtListItem as Za, SdtRowOptions as Zi, CommentsOptions as Zn, HorizontalPositionOptions as Zr, PageBorderDisplay as Zt, DocxPartRefs as _, MathRunPropertiesOptions as _a, PageNumber as _i, CustomXmlRowOptions as _n, AltChunkCollection as _o, NonVisualPropertiesOptions as _r, glossaryDesc as _t, CustomPropertiesInput as a, TablePropertiesOptions as aa, TextWrappingSide as ai, PageSizeAttributes as an, RunPropertiesChangeOptions as ao, SmartArtOptions as ar, AbstractNumberingOptions as at, parseDocx as b, LeaderType as ba, AnnotationReference as bi, TableCellOptions as bn, ContentTypeDefault as bo, WpgCommonMediaData as br, footnotesDesc as bt, AppPropertiesInput as c, TableLayoutType as ca, DrawingOptions as ci, DocumentGridType as cn, TextEffect as co, createImageData as cr, parseNumberingDefinitions as ct, settingsDesc as d, RelativeVerticalPosition as da, ParagraphPropertiesChangeOptions as di, ColumnAttributes as dn, EmphasisMarkType as do, createTransformation as dr, LevelsOptions as dt, TextDirection as ea, VerticalPositionOptions as ei, PageBordersOptions as en, SdtTextOptions as eo, WpsShapeRunOptions as er, RsidsOptions as et, EmbeddedFontOptionsWithKey as f, TableAnchorType as fa, ParagraphPropertiesOptions as fi, CustomXmlAttributeOptions as fn, ShadingAttributesProperties as fo, ChartMediaData as fr, DocPartBehavior as ft, DocxDocument as g, MathInput as ga, TextboxTightWrapType as gi, CustomXmlPropertiesOptions as gn, AltChunkOptions as go, MediaDataTransformation as gr, GlossaryDocumentOptions as gt, DocxWriteContext as h, TableBordersOptions as ha, TextAlignmentType as hi, CustomXmlDataBindingOptions as hn, BorderStyle as ho, MediaData as hr, DocPartType as ht, corePropertiesDesc as i, TablePropertiesChangeOptions as ia, TextWrapping as ii, PageOrientation as in, ParagraphRunPropertiesOptions as io, SmartArtNode as ir, ConcreteNumberingOptions as it, Styles as j, BordersOptions as ja, PageNumberElement as ji, SmartArtChild as jn, TextBodyWrappingType as jr, DocumentAttributeNamespaces as jt, SubDocCollection as k, IndentAttributesProperties as ka, MonthShort as ki, ParagraphOptions as kn, bibliographyDesc as ko, NormalAutofitOptions as kr, sectionPageSizeDefaults as kt, AppPropertiesOptions as l, OverlapType as la, SymbolRunOptions as li, createDocumentGrid as ln, UnderlineType as lo, Media as lr, LevelFormat as lt, DocxReadContext as m, TABLE_BORDERS_NONE as ma, ParagraphStylePropertiesOptions as mi, CustomXmlCellOptions as mn, BorderOptions as mo, GroupChildMediaData as mr, DocPartOptions as mt, DocumentOptions as n, TablePropertyExChangeOptions as na, createWrapThrough as ni, PageNumberTypeAttributes as nn, TableOfContentsOptions as no, BackgroundRawMediaOptions as nr, WriteProtectionOptions as nt, CustomPropertyOptions as o, TablePropertiesOptionsBase as oa, TextWrappingType as oi, createPageSize as on, RunPropertiesOptions as oo, ChartOptions as or, Numbering as ot, BodyContext as p, TableFloatOptions as pa, ParagraphPropertiesOptionsBase as pi, CustomXmlBlockOptions as pn, ShadingType as po, ExtendedMediaData as pr, DocPartGallery as pt, MailMergeSourceType as q, SdtDataBindingOptions as qa, setTableParseChild as qi, PositionalTabLeader as qn, resetDrawingIdGen as qr, createLineNumberType as qt, FeaturesOptions as r, TablePropertyExOptions as ra, createWrapTight as ri, createPageNumberType as rn, HighlightColor as ro, DocumentBackgroundOptions as rr, CompatibilityOptions as rt, customPropertiesDesc as s, TableLookOptions as sa, Distance as si, DocGridAttributesProperties as sn, RunStylePropertiesOptions as so, ImageOptions as sr, NumberingOptions as st, CorePropertiesInput as t, VerticalMergeType as ta, VerticalPositionRelativeFrom as ti, PageNumberSeparator as tn, StyleLevel as to, BackgroundImageOptions as tr, SettingsOptions as tt, appPropertiesDesc as u, RelativeHorizontalPosition as ua, LevelParagraphStylePropertiesOptions as ui, ColumnsAttributes as un, FontAttributesProperties as uo, MediaTransformation as ur, LevelSuffix as ut, parseArchive as v, MathScriptType as va, ParagraphRunOptions as vi, CustomXmlRunOptions as vn, AltChunkData as vo, SmartArtMediaData as vr, FootnoteSeparator as vt, WebSettingsInput as w, HeadingLevel as wa, DayShort as wi, TableRowPropertiesOptionsBase as wn, contentTypesDesc as wo, StyleMatrixReferenceOptions as wr, HeaderFooterGroup as wt, DivBorderOptions as x, TabStopDefinition as xa, CarriageReturn as xi, CnfStyleOptions as xn, ContentTypeOverride as xo, WpgMediaData as xr, EndnoteSeparator as xt, parseDocument as y, MathStyleType as ya, RunOptions as yi, SdtCellOptions as yn, CharacterSet as yo, WORKAROUND2 as yr, FootnotesData as yt, DocumentProtectionOptions as z, createVerticalAlign as za, FrameAnchorType as zi, FormFieldTextOptions as zn, ChildOffset as zr, HeaderFooterReferenceOptions as zt };
|
|
3746
|
+
//# sourceMappingURL=core-properties-CZzFLDat.d.mts.map
|