@office-open/docx 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -24215,7 +24215,7 @@ var Compiler = class {
24215
24215
  path: "docProps/app.xml"
24216
24216
  },
24217
24217
  Comments: {
24218
- data: replaceNumberingPlaceholders(commentMediaDatas.length > 0 ? replaceImagePlaceholders(commentXmlData, commentMediaDatas, commentRelationshipCount, "plain") : commentXmlData, file.Numbering.ConcreteNumbering),
24218
+ data: replaceNumberingPlaceholders(commentMediaDatas.length > 0 ? replaceImagePlaceholders(commentXmlData, commentMediaDatas, commentRelationshipCount, "rId") : commentXmlData, file.Numbering.ConcreteNumbering),
24219
24219
  path: "word/comments.xml"
24220
24220
  },
24221
24221
  CommentsRelationships: {
@@ -24279,11 +24279,11 @@ var Compiler = class {
24279
24279
  },
24280
24280
  Document: {
24281
24281
  data: (() => {
24282
- let xmlData = documentMediaDatas.length > 0 ? replaceImagePlaceholders(documentXmlData, documentMediaDatas, documentRelationshipCount, "plain") : documentXmlData;
24282
+ let xmlData = documentMediaDatas.length > 0 ? replaceImagePlaceholders(documentXmlData, documentMediaDatas, documentRelationshipCount, "rId") : documentXmlData;
24283
24283
  if (hasPlaceholders(xmlData)) {
24284
- xmlData = replaceChartPlaceholders(xmlData, file.Charts.Array.map((c) => c.key), documentRelationshipCount, "plain");
24284
+ xmlData = replaceChartPlaceholders(xmlData, file.Charts.Array.map((c) => c.key), documentRelationshipCount, "rId");
24285
24285
  const smartArtDataOffset = documentRelationshipCount + documentMediaDatas.length + file.Charts.Array.length;
24286
- xmlData = replaceSmartArtPlaceholders(xmlData, file.SmartArts.Array.map((s) => s.key), smartArtDataOffset, "plain");
24286
+ xmlData = replaceSmartArtPlaceholders(xmlData, file.SmartArts.Array.map((s) => s.key), smartArtDataOffset, "rId");
24287
24287
  }
24288
24288
  return replaceNumberingPlaceholders(xmlData, file.Numbering.ConcreteNumbering);
24289
24289
  })(),
@@ -24353,7 +24353,7 @@ var Compiler = class {
24353
24353
  path: "word/_rels/fontTable.xml.rels"
24354
24354
  },
24355
24355
  FootNotes: {
24356
- data: replaceNumberingPlaceholders(footnoteMediaDatas.length > 0 ? replaceImagePlaceholders(footnoteXmlData, footnoteMediaDatas, footnoteRelationshipCount, "plain") : footnoteXmlData, file.Numbering.ConcreteNumbering),
24356
+ data: replaceNumberingPlaceholders(footnoteMediaDatas.length > 0 ? replaceImagePlaceholders(footnoteXmlData, footnoteMediaDatas, footnoteRelationshipCount, "rId") : footnoteXmlData, file.Numbering.ConcreteNumbering),
24357
24357
  path: "word/footnotes.xml"
24358
24358
  },
24359
24359
  FootNotesRelationships: {
@@ -24404,7 +24404,7 @@ var Compiler = class {
24404
24404
  const tempXmlData = footerFormattedViews.get(index);
24405
24405
  const mediaDatas = hasPlaceholders(tempXmlData) ? getReferencedMedia(tempXmlData, file.Media.Array) : [];
24406
24406
  return {
24407
- data: replaceNumberingPlaceholders(mediaDatas.length > 0 ? replaceImagePlaceholders(tempXmlData, mediaDatas, 0, "plain") : tempXmlData, file.Numbering.ConcreteNumbering),
24407
+ data: replaceNumberingPlaceholders(mediaDatas.length > 0 ? replaceImagePlaceholders(tempXmlData, mediaDatas, 0, "rId") : tempXmlData, file.Numbering.ConcreteNumbering),
24408
24408
  path: `word/footer${index + 1}.xml`
24409
24409
  };
24410
24410
  }),
@@ -24439,7 +24439,7 @@ var Compiler = class {
24439
24439
  const tempXmlData = headerFormattedViews.get(index);
24440
24440
  const mediaDatas = hasPlaceholders(tempXmlData) ? getReferencedMedia(tempXmlData, file.Media.Array) : [];
24441
24441
  return {
24442
- data: replaceNumberingPlaceholders(mediaDatas.length > 0 ? replaceImagePlaceholders(tempXmlData, mediaDatas, 0, "plain") : tempXmlData, file.Numbering.ConcreteNumbering),
24442
+ data: replaceNumberingPlaceholders(mediaDatas.length > 0 ? replaceImagePlaceholders(tempXmlData, mediaDatas, 0, "rId") : tempXmlData, file.Numbering.ConcreteNumbering),
24443
24443
  path: `word/header${index + 1}.xml`
24444
24444
  };
24445
24445
  }),