@json-to-office/core-docx 4.4.4 → 4.5.0
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/blocks/document.d.ts.map +1 -1
- package/dist/index.js +72 -21
- package/dist/index.js.map +1 -1
- package/dist/plugin/example/index.js +2 -1
- package/dist/plugin/example/index.js.map +1 -1
- package/dist/quality/rules.d.ts +11 -1
- package/dist/quality/rules.d.ts.map +1 -1
- package/dist/templates/blueprints/client-report.docx.blueprint.json +31 -17
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -12408,6 +12408,7 @@ function finishDocxBlocks(expanded, document, theme, evaluator, effects, sources
|
|
|
12408
12408
|
}
|
|
12409
12409
|
const props = isBlockRecord(section2.props) ? { ...section2.props } : {};
|
|
12410
12410
|
if (chrome) {
|
|
12411
|
+
const declaring = local.includes(chrome);
|
|
12411
12412
|
const environment = {
|
|
12412
12413
|
...chrome.environment,
|
|
12413
12414
|
context: {
|
|
@@ -12430,7 +12431,7 @@ function finishDocxBlocks(expanded, document, theme, evaluator, effects, sources
|
|
|
12430
12431
|
);
|
|
12431
12432
|
props[part] = evaluator.expand(compiled, `${path3}/props/${part}`);
|
|
12432
12433
|
}
|
|
12433
|
-
if (props.pageBreak === void 0)
|
|
12434
|
+
if (props.pageBreak === void 0 && declaring)
|
|
12434
12435
|
props.pageBreak = chrome.settings.pageBreak ?? true;
|
|
12435
12436
|
}
|
|
12436
12437
|
for (const effect of local)
|