@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.
@@ -14004,7 +14004,9 @@ function prepareDocxQualityDocument(document, options = {}) {
14004
14004
  )
14005
14005
  ]
14006
14006
  });
14007
- collectColorLiterals(document).forEach((literal, index) => {
14007
+ const content = { ...document, props: { ...asRecord2(document.props) } };
14008
+ delete content.props.themeOverrides;
14009
+ collectColorLiterals(content).forEach((literal, index) => {
14008
14010
  addFact({
14009
14011
  id: `docx:color:${index}:${literal.path}`,
14010
14012
  kind: "docx/color",
@@ -14013,7 +14015,7 @@ function prepareDocxQualityDocument(document, options = {}) {
14013
14015
  hex: literal.hex
14014
14016
  });
14015
14017
  });
14016
- collectFontFamilies(document).forEach((use, index) => {
14018
+ collectFontFamilies(content).forEach((use, index) => {
14017
14019
  addFact({
14018
14020
  id: `docx:font:${index}:${use.path}`,
14019
14021
  kind: "docx/font-family",