@json-to-office/core-pptx 6.2.0 → 6.4.1

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.js CHANGED
@@ -6585,7 +6585,9 @@ function preparePptxQualityDocument(document, options = {}) {
6585
6585
  excerpt: occurrence.match.excerpt
6586
6586
  });
6587
6587
  });
6588
- collectColorLiterals(document).forEach((literal, index) => {
6588
+ const content = { ...document, props: { ...props } };
6589
+ delete content.props.theme;
6590
+ collectColorLiterals(content).forEach((literal, index) => {
6589
6591
  addFact({
6590
6592
  id: `pptx:color:${index}:${literal.path}`,
6591
6593
  kind: "pptx/color",
@@ -6594,7 +6596,7 @@ function preparePptxQualityDocument(document, options = {}) {
6594
6596
  hex: literal.hex
6595
6597
  });
6596
6598
  });
6597
- collectFontFamilies(document).forEach((use, index) => {
6599
+ collectFontFamilies(content).forEach((use, index) => {
6598
6600
  addFact({
6599
6601
  id: `pptx:font:${index}:${use.path}`,
6600
6602
  kind: "pptx/font-family",