@json-to-office/core-docx 7.3.0 → 7.4.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 +397 -38
- package/dist/index.js.map +1 -1
- package/dist/ir/chartValues.d.ts +7 -5
- package/dist/ir/chartValues.d.ts.map +1 -1
- package/dist/ir/compiler.d.ts.map +1 -1
- package/dist/plugin/example/index.js +397 -38
- package/dist/plugin/example/index.js.map +1 -1
- package/dist/renderers/docxjs/docxSubpath.d.ts +4 -4
- package/dist/renderers/docxjs/docxSubpath.d.ts.map +1 -1
- package/dist/renderers/docxjs/emit.d.ts +5 -0
- package/dist/renderers/docxjs/emit.d.ts.map +1 -1
- package/dist/renderers/docxjs/index.d.ts +5 -3
- package/dist/renderers/docxjs/index.d.ts.map +1 -1
- package/dist/renderers/docxjs/pageNumbers.d.ts +113 -0
- package/dist/renderers/docxjs/pageNumbers.d.ts.map +1 -0
- package/dist/renderers/office-open/emit.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A `docx` subpath entry — `docx/charts`, `docx/shapes` — loaded
|
|
3
|
-
* render first asks for it.
|
|
2
|
+
* A `docx` subpath entry — `docx/charts`, `docx/shapes`, `docx/layout` — loaded
|
|
3
|
+
* when a render first asks for it.
|
|
4
4
|
*
|
|
5
5
|
* Dynamic rather than static on purpose. `docx` is a peer dependency and those
|
|
6
|
-
* entries exist from 9.8.0 on: a static import would make the whole package
|
|
6
|
+
* entries exist from 9.8.0 on (`docx/layout` from 9.9.0): a static import would make the whole package
|
|
7
7
|
* fail to load (`ERR_PACKAGE_PATH_NOT_EXPORTED`) for a consumer on an older
|
|
8
8
|
* docx, including one that never draws a chart or a drawing group. tsup keeps
|
|
9
9
|
* `import('docx/…')` external (`external: ['docx']`), so nothing is inlined
|
|
@@ -30,5 +30,5 @@ export interface DocxSubpath<T> {
|
|
|
30
30
|
*/
|
|
31
31
|
get(): T;
|
|
32
32
|
}
|
|
33
|
-
export declare function docxSubpath<T>(specifier: `docx/${string}`, component: string, importer: () => Promise<T
|
|
33
|
+
export declare function docxSubpath<T>(specifier: `docx/${string}`, component: string, importer: () => Promise<T>, since?: string): DocxSubpath<T>;
|
|
34
34
|
//# sourceMappingURL=docxSubpath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docxSubpath.d.ts","sourceRoot":"","sources":["../../../src/renderers/docxjs/docxSubpath.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,qCAAqC;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,gCAAgC;IAChC,MAAM,IAAI,OAAO,CAAC;IAClB;;;OAGG;IACH,GAAG,IAAI,CAAC,CAAC;CACV;AAED,wBAAgB,WAAW,CAAC,CAAC,EAC3B,SAAS,EAAE,QAAQ,MAAM,EAAE,EAC3B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"docxSubpath.d.ts","sourceRoot":"","sources":["../../../src/renderers/docxjs/docxSubpath.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,qCAAqC;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,gCAAgC;IAChC,MAAM,IAAI,OAAO,CAAC;IAClB;;;OAGG;IACH,GAAG,IAAI,CAAC,CAAC;CACV;AAED,wBAAgB,WAAW,CAAC,CAAC,EAC3B,SAAS,EAAE,QAAQ,MAAM,EAAE,EAC3B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC1B,KAAK,SAAU,GACd,WAAW,CAAC,CAAC,CAAC,CAoChB"}
|
|
@@ -45,5 +45,10 @@ export declare function floatingOptions(floating: DocxIrFloating): Record<string
|
|
|
45
45
|
export declare function paragraphOptions(formatting: DocxIrParagraphFormatting | undefined): Partial<IParagraphOptions>;
|
|
46
46
|
export declare function emitParagraph(block: DocxIrParagraph, resources?: EmitResources): Paragraph;
|
|
47
47
|
export declare function emitBlock(block: DocxIrBlock, resources?: EmitResources): Paragraph | Table | TableOfContents;
|
|
48
|
+
/**
|
|
49
|
+
* Emits a header's or footer's blocks, whose contents fields keep the IR's
|
|
50
|
+
* cached entries: docx.js fills only the body's from the headings.
|
|
51
|
+
*/
|
|
52
|
+
export declare function emitOutsideBody<T>(emit: () => T): T;
|
|
48
53
|
export declare function emitTable(block: DocxIrTable, resources?: EmitResources): Table;
|
|
49
54
|
//# sourceMappingURL=emit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit.d.ts","sourceRoot":"","sources":["../../../src/renderers/docxjs/emit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,aAAa,EAeb,SAAS,EAMT,KAAK,EAIL,eAAe,EASf,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAEhB,KAAK,cAAc,EACpB,MAAM,MAAM,CAAC;AAGd,OAAO,KAAK,EACV,WAAW,EAEX,qBAAqB,EACrB,cAAc,EAEd,cAAc,EACd,YAAY,EACZ,eAAe,EACf,yBAAyB,EAGzB,mBAAmB,EAEnB,WAAW,EAKZ,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,SAAS,EAAE,QAAQ,CAC9B,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC,CAQnE,CAAC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W,EAClB,SAAS,GAAE,aAAyB,GACnC,SAAS,GAAG,KAAK,GAAG,eAAe,CAWrC;AA4BD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAQnD;AAgED,wBAAgB,SAAS,CACvB,KAAK,EAAE,WAAW,EAClB,SAAS,GAAE,aAAyB,GACnC,KAAK,CA+BP"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* JSON, no `ProcessedDocument`, no theme lookups.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
import { Document } from 'docx';
|
|
9
|
+
import { Document, type PageNumberEstimator } from 'docx';
|
|
10
10
|
import type { DocxIR } from '../../ir/types';
|
|
11
11
|
import type { DocxRenderer, DocxRendererId } from '../types';
|
|
12
12
|
import { type EmitResources } from './emit';
|
|
@@ -17,7 +17,9 @@ export declare function createDocxJsRenderer(): DocxRenderer;
|
|
|
17
17
|
*
|
|
18
18
|
* Exported for tests: asserting on the object graph is far cheaper, and far
|
|
19
19
|
* more legible, than unzipping a package. An IR with charts needs
|
|
20
|
-
* `await loadDocxCharts()` first; `render()` does it.
|
|
20
|
+
* `await loadDocxCharts()` first; `render()` does it. `pageNumbers` is the
|
|
21
|
+
* estimator a document with a contents field is laid out with
|
|
22
|
+
* (`createPageNumberEstimator`); without it no field is filled.
|
|
21
23
|
*/
|
|
22
|
-
export declare function buildDocument(ir: DocxIR, resources?: EmitResources): Document;
|
|
24
|
+
export declare function buildDocument(ir: DocxIR, resources?: EmitResources, pageNumbers?: PageNumberEstimator): Document;
|
|
23
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/docxjs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAIL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/docxjs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAIL,QAAQ,EAcR,KAAK,mBAAmB,EACzB,MAAM,MAAM,CAAC;AAQd,OAAO,KAAK,EACV,MAAM,EAQP,MAAM,gBAAgB,CAAC;AAQxB,OAAO,KAAK,EAAqB,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAML,KAAK,aAAa,EAEnB,MAAM,QAAQ,CAAC;AAUhB,eAAO,MAAM,kBAAkB,EAAE,cAAyB,CAAC;AAwD3D,wBAAgB,oBAAoB,IAAI,YAAY,CAuDnD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,EACV,SAAS,GAAE,aAAyB,EACpC,WAAW,CAAC,EAAE,mBAAmB,GAChC,QAAQ,CA6CV"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page numbers for a table of contents, worked out by `docx/layout`.
|
|
3
|
+
*
|
|
4
|
+
* docx 9.9.0 lays a document's pages out as Word does when it is given a
|
|
5
|
+
* `pageNumbers` estimator, and writes what it works out into the fields that
|
|
6
|
+
* show a page: the `PAGEREF` of each contents entry, `NUMPAGES` and
|
|
7
|
+
* `SECTIONPAGES`. Those fields are then written clean, so Word shows the
|
|
8
|
+
* numbers without asking to update the fields, and a reader that never updates
|
|
9
|
+
* them — LibreOffice, a PDF preview, QuickLook — shows numbers instead of
|
|
10
|
+
* blanks. docx.js fills each contents field from the headings itself, with a
|
|
11
|
+
* `_Toc` bookmark on each heading and a `PAGEREF` per entry, which is what the
|
|
12
|
+
* estimator fills; the cached entries jto computes carry no `PAGEREF`, so the
|
|
13
|
+
* adapter no longer hands them to docx.js (`emitToc`).
|
|
14
|
+
*
|
|
15
|
+
* Only a document with a contents field loads `docx/layout`, a 1.7 MB module:
|
|
16
|
+
* every other document renders exactly as before and loads nothing more. A
|
|
17
|
+
* `PAGE` field needs no estimate, and `NUMPAGES` is counted again by every
|
|
18
|
+
* reader as it lays the pages out, so neither is a reason to lay a document out
|
|
19
|
+
* on its own; in a document with a contents field they are filled as well.
|
|
20
|
+
*
|
|
21
|
+
* The layout guesses past what it cannot lay out as Word does yet — a frame, a
|
|
22
|
+
* floating table, a font outside its width tables, such as Helvetica — rather
|
|
23
|
+
* than leave the numbers after it blank (`guess: true`). When it lays the
|
|
24
|
+
* whole document out without a guess, the numbers are Word's as near as the
|
|
25
|
+
* layout knows, and the package stops asking Word to update its fields on
|
|
26
|
+
* open. When it guessed, or stopped, `updateFields` stays on, so Word corrects
|
|
27
|
+
* what was guessed. When it throws, the contents field keeps its entries
|
|
28
|
+
* without numbers, `updateFields` stays on, and the render says so with
|
|
29
|
+
* `W_DOCX_PAGE_NUMBERS_UNAVAILABLE` rather than fail the document.
|
|
30
|
+
*/
|
|
31
|
+
import { type IContext, type PageNumberEstimator } from 'docx';
|
|
32
|
+
import type { DocxIR } from '../../ir/types';
|
|
33
|
+
export declare const PAGE_NUMBERS_UNAVAILABLE = "W_DOCX_PAGE_NUMBERS_UNAVAILABLE";
|
|
34
|
+
/**
|
|
35
|
+
* Whether a document's body has a contents field, at any depth. One in a
|
|
36
|
+
* header, footer, note or comment keeps its cached entries (`emitToc`), which
|
|
37
|
+
* have no page to fill.
|
|
38
|
+
*/
|
|
39
|
+
export declare function needsPageNumbers(ir: DocxIR): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The estimator for a document with a contents field: `docx/layout`'s, with a
|
|
42
|
+
* guard and the house rules around it. Loads `docx/layout` first; a docx
|
|
43
|
+
* without it gets an estimator that works out nothing, and a warning.
|
|
44
|
+
*/
|
|
45
|
+
export declare function createPageNumberEstimator(ir: DocxIR): Promise<PageNumberEstimator>;
|
|
46
|
+
/**
|
|
47
|
+
* Removes the `w:tabs` docx.js gives every entry it writes into a contents
|
|
48
|
+
* field.
|
|
49
|
+
*
|
|
50
|
+
* docx.js sets a dot-leader right tab at the text width on each entry, whatever
|
|
51
|
+
* the theme says. Paragraph tabs beat style tabs, so the leader the theme's
|
|
52
|
+
* `TOC1`..`TOC9` styles turn off would be drawn anyway. With no paragraph tabs
|
|
53
|
+
* the entry takes its style's tab stop, as Word's own update does — the rule
|
|
54
|
+
* the cached entries followed before docx.js filled the field. It runs before
|
|
55
|
+
* the layout, so the pages are laid out with the tabs that are written.
|
|
56
|
+
*/
|
|
57
|
+
export declare function dropContentsEntryTabs(body: unknown): void;
|
|
58
|
+
/**
|
|
59
|
+
* Moves the end of each contents field into its last entry.
|
|
60
|
+
*
|
|
61
|
+
* docx.js closes the field in a paragraph of its own after the entries, as
|
|
62
|
+
* Word does, which costs a line under every table of contents: in LibreOffice
|
|
63
|
+
* everything after one moved down by it. The cached entries ended the field in
|
|
64
|
+
* the last entry, and so does this, so the page keeps the lines it had.
|
|
65
|
+
*/
|
|
66
|
+
export declare function endContentsInLastEntry(body: unknown): void;
|
|
67
|
+
/**
|
|
68
|
+
* Writes a tab that separates an entry from its page as `w:tab`.
|
|
69
|
+
*
|
|
70
|
+
* jto states the separator, `\p "<tab>"`, and docx.js writes the one it is
|
|
71
|
+
* given as text: a tab character in `w:t`, where the cached entries and Word
|
|
72
|
+
* write a `w:tab` element. Only a run whose whole text is that one character
|
|
73
|
+
* is rewritten.
|
|
74
|
+
*/
|
|
75
|
+
export declare function writeSeparatorTabs(body: unknown, context: IContext): void;
|
|
76
|
+
/**
|
|
77
|
+
* The cached entries of the IR's contents fields, in document order: the text
|
|
78
|
+
* jto worked out for each entry, a heading's number included.
|
|
79
|
+
*/
|
|
80
|
+
export declare function cachedContentsEntries(ir: DocxIR): (string[] | undefined)[];
|
|
81
|
+
/**
|
|
82
|
+
* Puts a numbered heading's number back in front of its entry.
|
|
83
|
+
*
|
|
84
|
+
* docx.js titles an entry with the heading's text, and a heading numbered by
|
|
85
|
+
* its list (`w:numPr`) has its number outside the text, so "1.1. Purpose"
|
|
86
|
+
* became "Purpose". Word's own update writes the number, and so did the cached
|
|
87
|
+
* entries jto computes, which name it: where the cached entry ends with the
|
|
88
|
+
* title docx.js wrote, what comes before is put in front of it. A field whose
|
|
89
|
+
* entries do not line up with the cached ones, one for one, is left as docx.js
|
|
90
|
+
* wrote it.
|
|
91
|
+
*/
|
|
92
|
+
export declare function restoreEntryNumbers(body: unknown, cached: readonly (readonly string[] | undefined)[], separators?: readonly (string | undefined)[]): void;
|
|
93
|
+
/**
|
|
94
|
+
* The first `w:id` of the heading bookmarks docx.js adds for a contents field,
|
|
95
|
+
* less one. jto's own bookmarks take three lower ranges: layout sections from
|
|
96
|
+
* 1, nested sections from 1_000_000 and content from 2_000_000 (see
|
|
97
|
+
* `CONTENT_BOOKMARK_ID_BASE` in the compiler).
|
|
98
|
+
*/
|
|
99
|
+
export declare const CONTENTS_BOOKMARK_ID_BASE = 3000000;
|
|
100
|
+
/**
|
|
101
|
+
* Names and numbers the `_Toc` bookmarks docx.js put on the headings a
|
|
102
|
+
* contents field lists, in document order: `_Toc1` with `w:id` 3000001, and on.
|
|
103
|
+
*
|
|
104
|
+
* docx.js takes both from a counter shared by the whole process, so the second
|
|
105
|
+
* document written in a process had `_Toc6` where the first had `_Toc1`, and
|
|
106
|
+
* the id it gave the first heading, 1, was the id of the first section's own
|
|
107
|
+
* bookmark: two ranges sharing a `w:id`, which pairs starts with ends. Each
|
|
108
|
+
* bookmark sits around its heading paragraph's content — its start after the
|
|
109
|
+
* paragraph properties, its end the paragraph's last child — and is named by
|
|
110
|
+
* the entry's hyperlink anchor and its `PAGEREF`, which follow it here.
|
|
111
|
+
*/
|
|
112
|
+
export declare function renumberContentsBookmarks(body: unknown): void;
|
|
113
|
+
//# sourceMappingURL=pageNumbers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageNumbers.d.ts","sourceRoot":"","sources":["../../../src/renderers/docxjs/pageNumbers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAIL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