@json-to-office/core-docx 4.2.0 → 4.3.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/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/plugin/example/index.js +12 -3
- package/dist/plugin/example/index.js.map +1 -1
- package/dist/templates/themes/index.d.ts +130 -5
- package/dist/templates/themes/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -9921,6 +9921,11 @@ function compileList(component, scope, referencePrefix = "list", explicitLevels)
|
|
|
9921
9921
|
const props = component.props ?? {};
|
|
9922
9922
|
const items = props.items ?? [];
|
|
9923
9923
|
if (items.length === 0) return [];
|
|
9924
|
+
const base = runFormatting3(
|
|
9925
|
+
props.font ?? {},
|
|
9926
|
+
props,
|
|
9927
|
+
ctx
|
|
9928
|
+
);
|
|
9924
9929
|
const notes = createNoteBinding(props.footnotes, props.endnotes, ctx);
|
|
9925
9930
|
const reference = declareNumbering(
|
|
9926
9931
|
props,
|
|
@@ -9956,17 +9961,21 @@ function compileList(component, scope, referencePrefix = "list", explicitLevels)
|
|
|
9956
9961
|
paragraphNode(
|
|
9957
9962
|
{ ctx, path: itemPath, id: `${scope.id}:i${index}` },
|
|
9958
9963
|
revision === void 0 ? parseInline(text, {
|
|
9959
|
-
base
|
|
9964
|
+
base,
|
|
9960
9965
|
hyperlinks: true,
|
|
9961
9966
|
...notes ? { resolveNote: notes.resolve } : {},
|
|
9962
9967
|
resolvePlaceholder: placeholderResolver(ctx),
|
|
9963
9968
|
resolveCrossReference: crossReferenceResolver(ctx, itemPath)
|
|
9964
|
-
}) : compileRevision(revision,
|
|
9969
|
+
}) : compileRevision(revision, base, ctx),
|
|
9965
9970
|
{
|
|
9966
9971
|
styleId: "Normal",
|
|
9967
9972
|
formatting: {
|
|
9968
9973
|
alignment: compileAlignment(props.alignment) ?? "left",
|
|
9969
|
-
spacing: itemSpacing(props.spacing, index, items.length)
|
|
9974
|
+
spacing: itemSpacing(props.spacing, index, items.length),
|
|
9975
|
+
// Every item carries the flags, not just the first: keeping a list
|
|
9976
|
+
// with what introduces it means keeping it whole.
|
|
9977
|
+
...props.keepNext !== void 0 ? { keepNext: props.keepNext } : {},
|
|
9978
|
+
...props.keepLines !== void 0 ? { keepLines: props.keepLines } : {}
|
|
9970
9979
|
},
|
|
9971
9980
|
...commentIds && index === firstRendered ? { commentOpen: commentIds } : {},
|
|
9972
9981
|
...commentIds && index === lastRendered ? { commentClose: commentIds } : {},
|