docx-diff-editor 1.0.39 → 1.0.40

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
@@ -1357,6 +1357,17 @@ var DocxDiffEditor = react.forwardRef(
1357
1357
  if (editor.converter) {
1358
1358
  editor.converter.documentModified = true;
1359
1359
  }
1360
+ if (editor.converter?.schemaToXml) {
1361
+ const serialized = editor.converter.schemaToXml(coreXml.elements[0]);
1362
+ if (!editor.options) {
1363
+ editor.options = {};
1364
+ }
1365
+ if (!editor.options.customUpdatedFiles) {
1366
+ editor.options.customUpdatedFiles = {};
1367
+ }
1368
+ editor.options.customUpdatedFiles["docProps/core.xml"] = String(serialized);
1369
+ editor.options.isCustomXmlChanged = true;
1370
+ }
1360
1371
  return true;
1361
1372
  } catch (err) {
1362
1373
  console.warn("[DocxDiffEditor] Failed to set properties:", err);