@json-to-office/core-docx 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
@@ -13942,7 +13942,9 @@ function prepareDocxQualityDocument(document, options = {}) {
13942
13942
  )
13943
13943
  ]
13944
13944
  });
13945
- collectColorLiterals(document).forEach((literal, index) => {
13945
+ const content = { ...document, props: { ...asRecord2(document.props) } };
13946
+ delete content.props.themeOverrides;
13947
+ collectColorLiterals(content).forEach((literal, index) => {
13946
13948
  addFact({
13947
13949
  id: `docx:color:${index}:${literal.path}`,
13948
13950
  kind: "docx/color",
@@ -13951,7 +13953,7 @@ function prepareDocxQualityDocument(document, options = {}) {
13951
13953
  hex: literal.hex
13952
13954
  });
13953
13955
  });
13954
- collectFontFamilies(document).forEach((use, index) => {
13956
+ collectFontFamilies(content).forEach((use, index) => {
13955
13957
  addFact({
13956
13958
  id: `docx:font:${index}:${use.path}`,
13957
13959
  kind: "docx/font-family",