@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
package/dist/index.js
CHANGED
|
@@ -9673,6 +9673,11 @@ function compileList(component, scope, referencePrefix = "list", explicitLevels)
|
|
|
9673
9673
|
const props = component.props ?? {};
|
|
9674
9674
|
const items = props.items ?? [];
|
|
9675
9675
|
if (items.length === 0) return [];
|
|
9676
|
+
const base = runFormatting3(
|
|
9677
|
+
props.font ?? {},
|
|
9678
|
+
props,
|
|
9679
|
+
ctx
|
|
9680
|
+
);
|
|
9676
9681
|
const notes = createNoteBinding(props.footnotes, props.endnotes, ctx);
|
|
9677
9682
|
const reference = declareNumbering(
|
|
9678
9683
|
props,
|
|
@@ -9708,17 +9713,21 @@ function compileList(component, scope, referencePrefix = "list", explicitLevels)
|
|
|
9708
9713
|
paragraphNode(
|
|
9709
9714
|
{ ctx, path: itemPath, id: `${scope.id}:i${index}` },
|
|
9710
9715
|
revision === void 0 ? parseInline(text, {
|
|
9711
|
-
base
|
|
9716
|
+
base,
|
|
9712
9717
|
hyperlinks: true,
|
|
9713
9718
|
...notes ? { resolveNote: notes.resolve } : {},
|
|
9714
9719
|
resolvePlaceholder: placeholderResolver(ctx),
|
|
9715
9720
|
resolveCrossReference: crossReferenceResolver(ctx, itemPath)
|
|
9716
|
-
}) : compileRevision(revision,
|
|
9721
|
+
}) : compileRevision(revision, base, ctx),
|
|
9717
9722
|
{
|
|
9718
9723
|
styleId: "Normal",
|
|
9719
9724
|
formatting: {
|
|
9720
9725
|
alignment: compileAlignment(props.alignment) ?? "left",
|
|
9721
|
-
spacing: itemSpacing(props.spacing, index, items.length)
|
|
9726
|
+
spacing: itemSpacing(props.spacing, index, items.length),
|
|
9727
|
+
// Every item carries the flags, not just the first: keeping a list
|
|
9728
|
+
// with what introduces it means keeping it whole.
|
|
9729
|
+
...props.keepNext !== void 0 ? { keepNext: props.keepNext } : {},
|
|
9730
|
+
...props.keepLines !== void 0 ? { keepLines: props.keepLines } : {}
|
|
9722
9731
|
},
|
|
9723
9732
|
...commentIds && index === firstRendered ? { commentOpen: commentIds } : {},
|
|
9724
9733
|
...commentIds && index === lastRendered ? { commentClose: commentIds } : {},
|