documents.js 1.74.1 → 1.75.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/README.md +2 -2
- package/dist/convert/convert.cjs +2 -2
- package/dist/convert/convert.js +2 -2
- package/dist/edit/markdown/editor.cjs +79 -0
- package/dist/edit/markdown/editor.d.cts +32 -0
- package/dist/edit/markdown/editor.d.ts +32 -0
- package/dist/edit/markdown/editor.js +76 -0
- package/dist/edit/markdown/list.cjs +22 -0
- package/dist/edit/markdown/list.d.cts +17 -0
- package/dist/edit/markdown/list.d.ts +17 -0
- package/dist/edit/markdown/list.js +21 -0
- package/dist/edit/markdown/paragraph.cjs +87 -0
- package/dist/edit/markdown/paragraph.d.cts +30 -0
- package/dist/edit/markdown/paragraph.d.ts +30 -0
- package/dist/edit/markdown/paragraph.js +85 -0
- package/dist/edit/markdown/run.cjs +81 -0
- package/dist/edit/markdown/run.d.cts +2 -0
- package/dist/edit/markdown/run.d.ts +2 -0
- package/dist/edit/markdown/run.js +79 -0
- package/dist/edit/markdown/table.cjs +84 -0
- package/dist/edit/markdown/table.d.cts +33 -0
- package/dist/edit/markdown/table.d.ts +33 -0
- package/dist/edit/markdown/table.js +80 -0
- package/dist/index.cjs +16 -2
- package/dist/index.d.cts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +8 -3
- package/dist/run-DpQRXEGp.d.cts +33 -0
- package/dist/run-DpQRXEGp.d.ts +33 -0
- package/package.json +1 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { MarkdownRun, buildRun } from "./run.js";
|
|
2
|
+
import { QUOTE_INDENT_PT, headingStyleId, parseHeadingStyleId } from "markdown-codec";
|
|
3
|
+
//#region src/edit/markdown/paragraph.ts
|
|
4
|
+
var MarkdownParagraph = class {
|
|
5
|
+
container;
|
|
6
|
+
node;
|
|
7
|
+
removed = false;
|
|
8
|
+
constructor(container, node) {
|
|
9
|
+
this.container = container;
|
|
10
|
+
this.node = node;
|
|
11
|
+
}
|
|
12
|
+
live() {
|
|
13
|
+
if (this.removed) throw new Error("this MarkdownParagraph has been removed from its body and can no longer be used");
|
|
14
|
+
return this.node;
|
|
15
|
+
}
|
|
16
|
+
get text() {
|
|
17
|
+
return this.live().runs.map((run) => run.text).join("");
|
|
18
|
+
}
|
|
19
|
+
runs() {
|
|
20
|
+
const node = this.live();
|
|
21
|
+
return node.runs.map((run) => new MarkdownRun(node.runs, run));
|
|
22
|
+
}
|
|
23
|
+
appendRun(init) {
|
|
24
|
+
const node = this.live();
|
|
25
|
+
const run = buildRun(init);
|
|
26
|
+
node.runs.push(run);
|
|
27
|
+
return new MarkdownRun(node.runs, run);
|
|
28
|
+
}
|
|
29
|
+
insertRunAt(index, init) {
|
|
30
|
+
const node = this.live();
|
|
31
|
+
const run = buildRun(init);
|
|
32
|
+
const insertAt = Math.min(Math.max(index, 0), node.runs.length);
|
|
33
|
+
node.runs.splice(insertAt, 0, run);
|
|
34
|
+
return new MarkdownRun(node.runs, run);
|
|
35
|
+
}
|
|
36
|
+
get styleId() {
|
|
37
|
+
return this.live().styleId;
|
|
38
|
+
}
|
|
39
|
+
set styleId(value) {
|
|
40
|
+
const node = this.live();
|
|
41
|
+
if (value === void 0) delete node.styleId;
|
|
42
|
+
else node.styleId = value;
|
|
43
|
+
}
|
|
44
|
+
get headingLevel() {
|
|
45
|
+
const styleId = this.live().styleId;
|
|
46
|
+
return styleId === void 0 ? void 0 : parseHeadingStyleId(styleId);
|
|
47
|
+
}
|
|
48
|
+
set headingLevel(level) {
|
|
49
|
+
this.styleId = level === void 0 ? void 0 : headingStyleId(level);
|
|
50
|
+
}
|
|
51
|
+
get quoteDepth() {
|
|
52
|
+
const indent = this.live().indentLeftPt;
|
|
53
|
+
if (indent === void 0 || indent <= 0) return 0;
|
|
54
|
+
return Math.max(1, Math.round(indent / QUOTE_INDENT_PT));
|
|
55
|
+
}
|
|
56
|
+
set quoteDepth(depth) {
|
|
57
|
+
const node = this.live();
|
|
58
|
+
if (depth <= 0) delete node.indentLeftPt;
|
|
59
|
+
else node.indentLeftPt = depth * QUOTE_INDENT_PT;
|
|
60
|
+
}
|
|
61
|
+
get list() {
|
|
62
|
+
return this.live().list;
|
|
63
|
+
}
|
|
64
|
+
set list(value) {
|
|
65
|
+
const node = this.live();
|
|
66
|
+
if (value === void 0) delete node.list;
|
|
67
|
+
else node.list = value;
|
|
68
|
+
}
|
|
69
|
+
remove() {
|
|
70
|
+
const node = this.live();
|
|
71
|
+
const index = this.container.indexOf(node);
|
|
72
|
+
if (index !== -1) this.container.splice(index, 1);
|
|
73
|
+
this.removed = true;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
function buildParagraph(init = {}) {
|
|
77
|
+
const node = {
|
|
78
|
+
kind: "paragraph",
|
|
79
|
+
runs: init.text === void 0 ? [] : [buildRun({ text: init.text })]
|
|
80
|
+
};
|
|
81
|
+
if (init.styleId !== void 0) node.styleId = init.styleId;
|
|
82
|
+
return node;
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { MarkdownParagraph, buildParagraph };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let markdown_codec = require("markdown-codec");
|
|
3
|
+
//#region src/edit/markdown/run.ts
|
|
4
|
+
var MarkdownRun = class {
|
|
5
|
+
container;
|
|
6
|
+
node;
|
|
7
|
+
removed = false;
|
|
8
|
+
constructor(container, node) {
|
|
9
|
+
this.container = container;
|
|
10
|
+
this.node = node;
|
|
11
|
+
}
|
|
12
|
+
live() {
|
|
13
|
+
if (this.removed) throw new Error("this MarkdownRun has been removed from its paragraph and can no longer be used");
|
|
14
|
+
return this.node;
|
|
15
|
+
}
|
|
16
|
+
get text() {
|
|
17
|
+
return this.live().text;
|
|
18
|
+
}
|
|
19
|
+
set text(value) {
|
|
20
|
+
this.live().text = value;
|
|
21
|
+
}
|
|
22
|
+
get bold() {
|
|
23
|
+
return this.live().bold ?? false;
|
|
24
|
+
}
|
|
25
|
+
set bold(value) {
|
|
26
|
+
const node = this.live();
|
|
27
|
+
if (value) node.bold = true;
|
|
28
|
+
else delete node.bold;
|
|
29
|
+
}
|
|
30
|
+
get italic() {
|
|
31
|
+
return this.live().italic ?? false;
|
|
32
|
+
}
|
|
33
|
+
set italic(value) {
|
|
34
|
+
const node = this.live();
|
|
35
|
+
if (value) node.italic = true;
|
|
36
|
+
else delete node.italic;
|
|
37
|
+
}
|
|
38
|
+
get strike() {
|
|
39
|
+
return this.live().strike ?? false;
|
|
40
|
+
}
|
|
41
|
+
set strike(value) {
|
|
42
|
+
const node = this.live();
|
|
43
|
+
if (value) node.strike = true;
|
|
44
|
+
else delete node.strike;
|
|
45
|
+
}
|
|
46
|
+
get hyperlink() {
|
|
47
|
+
return this.live().hyperlink;
|
|
48
|
+
}
|
|
49
|
+
set hyperlink(value) {
|
|
50
|
+
const node = this.live();
|
|
51
|
+
if (value === void 0) delete node.hyperlink;
|
|
52
|
+
else node.hyperlink = value;
|
|
53
|
+
}
|
|
54
|
+
get code() {
|
|
55
|
+
return this.live().fontFamily === markdown_codec.MONOSPACE_FONT_FAMILY;
|
|
56
|
+
}
|
|
57
|
+
set code(value) {
|
|
58
|
+
const node = this.live();
|
|
59
|
+
if (value) node.fontFamily = markdown_codec.MONOSPACE_FONT_FAMILY;
|
|
60
|
+
else if (node.fontFamily === markdown_codec.MONOSPACE_FONT_FAMILY) delete node.fontFamily;
|
|
61
|
+
}
|
|
62
|
+
remove() {
|
|
63
|
+
const node = this.live();
|
|
64
|
+
const index = this.container.indexOf(node);
|
|
65
|
+
if (index !== -1) this.container.splice(index, 1);
|
|
66
|
+
this.removed = true;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
function buildRun(init = {}) {
|
|
70
|
+
const node = { text: init.text ?? "" };
|
|
71
|
+
const run = new MarkdownRun([], node);
|
|
72
|
+
if (init.bold !== void 0) run.bold = init.bold;
|
|
73
|
+
if (init.italic !== void 0) run.italic = init.italic;
|
|
74
|
+
if (init.strike !== void 0) run.strike = init.strike;
|
|
75
|
+
if (init.hyperlink !== void 0) run.hyperlink = init.hyperlink;
|
|
76
|
+
if (init.code !== void 0) run.code = init.code;
|
|
77
|
+
return node;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
exports.MarkdownRun = MarkdownRun;
|
|
81
|
+
exports.buildRun = buildRun;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { MONOSPACE_FONT_FAMILY } from "markdown-codec";
|
|
2
|
+
//#region src/edit/markdown/run.ts
|
|
3
|
+
var MarkdownRun = class {
|
|
4
|
+
container;
|
|
5
|
+
node;
|
|
6
|
+
removed = false;
|
|
7
|
+
constructor(container, node) {
|
|
8
|
+
this.container = container;
|
|
9
|
+
this.node = node;
|
|
10
|
+
}
|
|
11
|
+
live() {
|
|
12
|
+
if (this.removed) throw new Error("this MarkdownRun has been removed from its paragraph and can no longer be used");
|
|
13
|
+
return this.node;
|
|
14
|
+
}
|
|
15
|
+
get text() {
|
|
16
|
+
return this.live().text;
|
|
17
|
+
}
|
|
18
|
+
set text(value) {
|
|
19
|
+
this.live().text = value;
|
|
20
|
+
}
|
|
21
|
+
get bold() {
|
|
22
|
+
return this.live().bold ?? false;
|
|
23
|
+
}
|
|
24
|
+
set bold(value) {
|
|
25
|
+
const node = this.live();
|
|
26
|
+
if (value) node.bold = true;
|
|
27
|
+
else delete node.bold;
|
|
28
|
+
}
|
|
29
|
+
get italic() {
|
|
30
|
+
return this.live().italic ?? false;
|
|
31
|
+
}
|
|
32
|
+
set italic(value) {
|
|
33
|
+
const node = this.live();
|
|
34
|
+
if (value) node.italic = true;
|
|
35
|
+
else delete node.italic;
|
|
36
|
+
}
|
|
37
|
+
get strike() {
|
|
38
|
+
return this.live().strike ?? false;
|
|
39
|
+
}
|
|
40
|
+
set strike(value) {
|
|
41
|
+
const node = this.live();
|
|
42
|
+
if (value) node.strike = true;
|
|
43
|
+
else delete node.strike;
|
|
44
|
+
}
|
|
45
|
+
get hyperlink() {
|
|
46
|
+
return this.live().hyperlink;
|
|
47
|
+
}
|
|
48
|
+
set hyperlink(value) {
|
|
49
|
+
const node = this.live();
|
|
50
|
+
if (value === void 0) delete node.hyperlink;
|
|
51
|
+
else node.hyperlink = value;
|
|
52
|
+
}
|
|
53
|
+
get code() {
|
|
54
|
+
return this.live().fontFamily === MONOSPACE_FONT_FAMILY;
|
|
55
|
+
}
|
|
56
|
+
set code(value) {
|
|
57
|
+
const node = this.live();
|
|
58
|
+
if (value) node.fontFamily = MONOSPACE_FONT_FAMILY;
|
|
59
|
+
else if (node.fontFamily === MONOSPACE_FONT_FAMILY) delete node.fontFamily;
|
|
60
|
+
}
|
|
61
|
+
remove() {
|
|
62
|
+
const node = this.live();
|
|
63
|
+
const index = this.container.indexOf(node);
|
|
64
|
+
if (index !== -1) this.container.splice(index, 1);
|
|
65
|
+
this.removed = true;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
function buildRun(init = {}) {
|
|
69
|
+
const node = { text: init.text ?? "" };
|
|
70
|
+
const run = new MarkdownRun([], node);
|
|
71
|
+
if (init.bold !== void 0) run.bold = init.bold;
|
|
72
|
+
if (init.italic !== void 0) run.italic = init.italic;
|
|
73
|
+
if (init.strike !== void 0) run.strike = init.strike;
|
|
74
|
+
if (init.hyperlink !== void 0) run.hyperlink = init.hyperlink;
|
|
75
|
+
if (init.code !== void 0) run.code = init.code;
|
|
76
|
+
return node;
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { MarkdownRun, buildRun };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_edit_markdown_paragraph = require("./paragraph.cjs");
|
|
3
|
+
//#region src/edit/markdown/table.ts
|
|
4
|
+
const DEFAULT_TABLE_WIDTH_PT = 468;
|
|
5
|
+
var MarkdownTableCell = class {
|
|
6
|
+
node;
|
|
7
|
+
constructor(node) {
|
|
8
|
+
this.node = node;
|
|
9
|
+
}
|
|
10
|
+
paragraphs() {
|
|
11
|
+
return this.node.blocks.filter((block) => block.kind === "paragraph").map((block) => new require_edit_markdown_paragraph.MarkdownParagraph(this.node.blocks, block));
|
|
12
|
+
}
|
|
13
|
+
appendParagraph(init) {
|
|
14
|
+
const paragraph = require_edit_markdown_paragraph.buildParagraph(init);
|
|
15
|
+
this.node.blocks.push(paragraph);
|
|
16
|
+
return new require_edit_markdown_paragraph.MarkdownParagraph(this.node.blocks, paragraph);
|
|
17
|
+
}
|
|
18
|
+
get text() {
|
|
19
|
+
return this.paragraphs().map((p) => p.text).join("\n");
|
|
20
|
+
}
|
|
21
|
+
set text(value) {
|
|
22
|
+
this.node.blocks = [require_edit_markdown_paragraph.buildParagraph({ text: value })];
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var MarkdownTableRow = class {
|
|
26
|
+
node;
|
|
27
|
+
constructor(node) {
|
|
28
|
+
this.node = node;
|
|
29
|
+
}
|
|
30
|
+
cells() {
|
|
31
|
+
return this.node.cells.map((cell) => new MarkdownTableCell(cell));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
function buildCell() {
|
|
35
|
+
return { blocks: [require_edit_markdown_paragraph.buildParagraph()] };
|
|
36
|
+
}
|
|
37
|
+
function buildRow(columnCount) {
|
|
38
|
+
const cells = [];
|
|
39
|
+
for (let i = 0; i < columnCount; i++) cells.push(buildCell());
|
|
40
|
+
return { cells };
|
|
41
|
+
}
|
|
42
|
+
var MarkdownTable = class {
|
|
43
|
+
container;
|
|
44
|
+
node;
|
|
45
|
+
removed = false;
|
|
46
|
+
constructor(container, node) {
|
|
47
|
+
this.container = container;
|
|
48
|
+
this.node = node;
|
|
49
|
+
}
|
|
50
|
+
live() {
|
|
51
|
+
if (this.removed) throw new Error("this MarkdownTable has been removed from its body and can no longer be used");
|
|
52
|
+
return this.node;
|
|
53
|
+
}
|
|
54
|
+
rows() {
|
|
55
|
+
return this.live().rows.map((row) => new MarkdownTableRow(row));
|
|
56
|
+
}
|
|
57
|
+
appendRow() {
|
|
58
|
+
const node = this.live();
|
|
59
|
+
const row = buildRow(node.columnWidthsPt.length);
|
|
60
|
+
node.rows.push(row);
|
|
61
|
+
return new MarkdownTableRow(row);
|
|
62
|
+
}
|
|
63
|
+
remove() {
|
|
64
|
+
const node = this.live();
|
|
65
|
+
const index = this.container.indexOf(node);
|
|
66
|
+
if (index !== -1) this.container.splice(index, 1);
|
|
67
|
+
this.removed = true;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
function buildTable(init) {
|
|
71
|
+
const columnWidthsPt = Array.from({ length: init.columns }, () => DEFAULT_TABLE_WIDTH_PT / init.columns);
|
|
72
|
+
const rows = [];
|
|
73
|
+
for (let r = 0; r < init.rows; r++) rows.push(buildRow(init.columns));
|
|
74
|
+
return {
|
|
75
|
+
kind: "table",
|
|
76
|
+
rows,
|
|
77
|
+
columnWidthsPt
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
exports.MarkdownTable = MarkdownTable;
|
|
82
|
+
exports.MarkdownTableCell = MarkdownTableCell;
|
|
83
|
+
exports.MarkdownTableRow = MarkdownTableRow;
|
|
84
|
+
exports.buildTable = buildTable;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MarkdownParagraph, ParagraphInit } from "./paragraph.cjs";
|
|
2
|
+
import { ContentBlock, ContentTable, ContentTableCell, ContentTableRow } from "document-schema.js";
|
|
3
|
+
//#region src/edit/markdown/table.d.ts
|
|
4
|
+
interface TableInit {
|
|
5
|
+
readonly rows: number;
|
|
6
|
+
readonly columns: number;
|
|
7
|
+
}
|
|
8
|
+
declare class MarkdownTableCell {
|
|
9
|
+
private readonly node;
|
|
10
|
+
constructor(node: ContentTableCell);
|
|
11
|
+
paragraphs(): MarkdownParagraph[];
|
|
12
|
+
appendParagraph(init?: ParagraphInit): MarkdownParagraph;
|
|
13
|
+
get text(): string;
|
|
14
|
+
set text(value: string);
|
|
15
|
+
}
|
|
16
|
+
declare class MarkdownTableRow {
|
|
17
|
+
private readonly node;
|
|
18
|
+
constructor(node: ContentTableRow);
|
|
19
|
+
cells(): MarkdownTableCell[];
|
|
20
|
+
}
|
|
21
|
+
declare class MarkdownTable {
|
|
22
|
+
private readonly container;
|
|
23
|
+
private readonly node;
|
|
24
|
+
private removed;
|
|
25
|
+
constructor(container: ContentBlock[], node: ContentTable);
|
|
26
|
+
private live;
|
|
27
|
+
rows(): MarkdownTableRow[];
|
|
28
|
+
appendRow(): MarkdownTableRow;
|
|
29
|
+
remove(): void;
|
|
30
|
+
}
|
|
31
|
+
declare function buildTable(init: TableInit): ContentTable;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { MarkdownTable, MarkdownTableCell, MarkdownTableRow, TableInit, buildTable };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MarkdownParagraph, ParagraphInit } from "./paragraph.js";
|
|
2
|
+
import { ContentBlock, ContentTable, ContentTableCell, ContentTableRow } from "document-schema.js";
|
|
3
|
+
//#region src/edit/markdown/table.d.ts
|
|
4
|
+
interface TableInit {
|
|
5
|
+
readonly rows: number;
|
|
6
|
+
readonly columns: number;
|
|
7
|
+
}
|
|
8
|
+
declare class MarkdownTableCell {
|
|
9
|
+
private readonly node;
|
|
10
|
+
constructor(node: ContentTableCell);
|
|
11
|
+
paragraphs(): MarkdownParagraph[];
|
|
12
|
+
appendParagraph(init?: ParagraphInit): MarkdownParagraph;
|
|
13
|
+
get text(): string;
|
|
14
|
+
set text(value: string);
|
|
15
|
+
}
|
|
16
|
+
declare class MarkdownTableRow {
|
|
17
|
+
private readonly node;
|
|
18
|
+
constructor(node: ContentTableRow);
|
|
19
|
+
cells(): MarkdownTableCell[];
|
|
20
|
+
}
|
|
21
|
+
declare class MarkdownTable {
|
|
22
|
+
private readonly container;
|
|
23
|
+
private readonly node;
|
|
24
|
+
private removed;
|
|
25
|
+
constructor(container: ContentBlock[], node: ContentTable);
|
|
26
|
+
private live;
|
|
27
|
+
rows(): MarkdownTableRow[];
|
|
28
|
+
appendRow(): MarkdownTableRow;
|
|
29
|
+
remove(): void;
|
|
30
|
+
}
|
|
31
|
+
declare function buildTable(init: TableInit): ContentTable;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { MarkdownTable, MarkdownTableCell, MarkdownTableRow, TableInit, buildTable };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { MarkdownParagraph, buildParagraph } from "./paragraph.js";
|
|
2
|
+
//#region src/edit/markdown/table.ts
|
|
3
|
+
const DEFAULT_TABLE_WIDTH_PT = 468;
|
|
4
|
+
var MarkdownTableCell = class {
|
|
5
|
+
node;
|
|
6
|
+
constructor(node) {
|
|
7
|
+
this.node = node;
|
|
8
|
+
}
|
|
9
|
+
paragraphs() {
|
|
10
|
+
return this.node.blocks.filter((block) => block.kind === "paragraph").map((block) => new MarkdownParagraph(this.node.blocks, block));
|
|
11
|
+
}
|
|
12
|
+
appendParagraph(init) {
|
|
13
|
+
const paragraph = buildParagraph(init);
|
|
14
|
+
this.node.blocks.push(paragraph);
|
|
15
|
+
return new MarkdownParagraph(this.node.blocks, paragraph);
|
|
16
|
+
}
|
|
17
|
+
get text() {
|
|
18
|
+
return this.paragraphs().map((p) => p.text).join("\n");
|
|
19
|
+
}
|
|
20
|
+
set text(value) {
|
|
21
|
+
this.node.blocks = [buildParagraph({ text: value })];
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var MarkdownTableRow = class {
|
|
25
|
+
node;
|
|
26
|
+
constructor(node) {
|
|
27
|
+
this.node = node;
|
|
28
|
+
}
|
|
29
|
+
cells() {
|
|
30
|
+
return this.node.cells.map((cell) => new MarkdownTableCell(cell));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function buildCell() {
|
|
34
|
+
return { blocks: [buildParagraph()] };
|
|
35
|
+
}
|
|
36
|
+
function buildRow(columnCount) {
|
|
37
|
+
const cells = [];
|
|
38
|
+
for (let i = 0; i < columnCount; i++) cells.push(buildCell());
|
|
39
|
+
return { cells };
|
|
40
|
+
}
|
|
41
|
+
var MarkdownTable = class {
|
|
42
|
+
container;
|
|
43
|
+
node;
|
|
44
|
+
removed = false;
|
|
45
|
+
constructor(container, node) {
|
|
46
|
+
this.container = container;
|
|
47
|
+
this.node = node;
|
|
48
|
+
}
|
|
49
|
+
live() {
|
|
50
|
+
if (this.removed) throw new Error("this MarkdownTable has been removed from its body and can no longer be used");
|
|
51
|
+
return this.node;
|
|
52
|
+
}
|
|
53
|
+
rows() {
|
|
54
|
+
return this.live().rows.map((row) => new MarkdownTableRow(row));
|
|
55
|
+
}
|
|
56
|
+
appendRow() {
|
|
57
|
+
const node = this.live();
|
|
58
|
+
const row = buildRow(node.columnWidthsPt.length);
|
|
59
|
+
node.rows.push(row);
|
|
60
|
+
return new MarkdownTableRow(row);
|
|
61
|
+
}
|
|
62
|
+
remove() {
|
|
63
|
+
const node = this.live();
|
|
64
|
+
const index = this.container.indexOf(node);
|
|
65
|
+
if (index !== -1) this.container.splice(index, 1);
|
|
66
|
+
this.removed = true;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
function buildTable(init) {
|
|
70
|
+
const columnWidthsPt = Array.from({ length: init.columns }, () => DEFAULT_TABLE_WIDTH_PT / init.columns);
|
|
71
|
+
const rows = [];
|
|
72
|
+
for (let r = 0; r < init.rows; r++) rows.push(buildRow(init.columns));
|
|
73
|
+
return {
|
|
74
|
+
kind: "table",
|
|
75
|
+
rows,
|
|
76
|
+
columnWidthsPt
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { MarkdownTable, MarkdownTableCell, MarkdownTableRow, buildTable };
|
package/dist/index.cjs
CHANGED
|
@@ -37,6 +37,13 @@ const require_edit_ods_content = require("./edit/ods/content.cjs");
|
|
|
37
37
|
const require_edit_odg_page = require("./edit/odg/page.cjs");
|
|
38
38
|
const require_edit_odg_editor = require("./edit/odg/editor.cjs");
|
|
39
39
|
const require_edit_odg_content = require("./edit/odg/content.cjs");
|
|
40
|
+
const require_markdown_read = require("./markdown/read.cjs");
|
|
41
|
+
const require_markdown_write = require("./markdown/write.cjs");
|
|
42
|
+
const require_edit_markdown_run = require("./edit/markdown/run.cjs");
|
|
43
|
+
const require_edit_markdown_paragraph = require("./edit/markdown/paragraph.cjs");
|
|
44
|
+
const require_edit_markdown_list = require("./edit/markdown/list.cjs");
|
|
45
|
+
const require_edit_markdown_table = require("./edit/markdown/table.cjs");
|
|
46
|
+
const require_edit_markdown_editor = require("./edit/markdown/editor.cjs");
|
|
40
47
|
const require_edit_pdf_item = require("./edit/pdf/item.cjs");
|
|
41
48
|
const require_edit_pdf_page = require("./edit/pdf/page.cjs");
|
|
42
49
|
const require_edit_pdf_editor = require("./edit/pdf/editor.cjs");
|
|
@@ -55,8 +62,6 @@ const require_odf_odp_read = require("./odf/odp/read.cjs");
|
|
|
55
62
|
const require_odf_ods_read = require("./odf/ods/read.cjs");
|
|
56
63
|
const require_odf_odg_read = require("./odf/odg/read.cjs");
|
|
57
64
|
const require_markdown_text = require("./markdown/text.cjs");
|
|
58
|
-
const require_markdown_read = require("./markdown/read.cjs");
|
|
59
|
-
const require_markdown_write = require("./markdown/write.cjs");
|
|
60
65
|
const require_layout_engine = require("./layout/engine.cjs");
|
|
61
66
|
const require_layout_slides = require("./layout/slides.cjs");
|
|
62
67
|
const require_ports_abort = require("./ports/abort.cjs");
|
|
@@ -358,6 +363,13 @@ Object.defineProperty(exports, "LayoutDocumentSchema", {
|
|
|
358
363
|
}
|
|
359
364
|
});
|
|
360
365
|
exports.MarkdownBytesSchema = require_model_bytes.MarkdownBytesSchema;
|
|
366
|
+
exports.MarkdownEditor = require_edit_markdown_editor.MarkdownEditor;
|
|
367
|
+
exports.MarkdownList = require_edit_markdown_list.MarkdownList;
|
|
368
|
+
exports.MarkdownParagraph = require_edit_markdown_paragraph.MarkdownParagraph;
|
|
369
|
+
exports.MarkdownRun = require_edit_markdown_run.MarkdownRun;
|
|
370
|
+
exports.MarkdownTable = require_edit_markdown_table.MarkdownTable;
|
|
371
|
+
exports.MarkdownTableCell = require_edit_markdown_table.MarkdownTableCell;
|
|
372
|
+
exports.MarkdownTableRow = require_edit_markdown_table.MarkdownTableRow;
|
|
361
373
|
Object.defineProperty(exports, "NOOP_DIAGNOSTIC_SINK", {
|
|
362
374
|
enumerable: true,
|
|
363
375
|
get: function() {
|
|
@@ -612,6 +624,7 @@ Object.defineProperty(exports, "createFontRegistry", {
|
|
|
612
624
|
}
|
|
613
625
|
});
|
|
614
626
|
exports.createLocalDocumentConverter = require_convert_local.createLocalDocumentConverter;
|
|
627
|
+
exports.createMarkdownEditor = require_edit_markdown_editor.createMarkdownEditor;
|
|
615
628
|
exports.createOdg = require_edit_odg_editor.createOdg;
|
|
616
629
|
exports.createOdp = require_edit_odp_editor.createOdp;
|
|
617
630
|
exports.createOds = require_edit_ods_editor.createOds;
|
|
@@ -777,6 +790,7 @@ exports.odtToDocx = require_convert_convert.odtToDocx;
|
|
|
777
790
|
exports.odtToMarkdown = require_convert_convert.odtToMarkdown;
|
|
778
791
|
exports.odtToPdf = require_convert_convert.odtToPdf;
|
|
779
792
|
exports.openDocx = require_edit_docx_editor.openDocx;
|
|
793
|
+
exports.openMarkdown = require_edit_markdown_editor.openMarkdown;
|
|
780
794
|
exports.openOdg = require_edit_odg_editor.openOdg;
|
|
781
795
|
exports.openOdp = require_edit_odp_editor.openOdp;
|
|
782
796
|
exports.openOds = require_edit_ods_editor.openOds;
|
package/dist/index.d.cts
CHANGED
|
@@ -17,10 +17,15 @@ import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edi
|
|
|
17
17
|
import { CreateDocxOptions, DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.cjs";
|
|
18
18
|
import { CreateEmptyDocxPackageOptions } from "./edit/docx/scaffold.cjs";
|
|
19
19
|
import { a as PAGE_SIZE_A4, d as flipY, l as SLIDE_SIZE_STANDARD, o as PAGE_SIZE_LETTER, r as Margins, s as PageSize, t as Box, u as SLIDE_SIZE_WIDESCREEN } from "./geometry-DaJr8yQW.cjs";
|
|
20
|
+
import { n as RunInit, t as MarkdownRun } from "./run-DpQRXEGp.cjs";
|
|
21
|
+
import { MarkdownParagraph, ParagraphInit } from "./edit/markdown/paragraph.cjs";
|
|
22
|
+
import { MarkdownList, MarkdownListInit } from "./edit/markdown/list.cjs";
|
|
23
|
+
import { MarkdownTable, MarkdownTableCell, MarkdownTableRow, TableInit } from "./edit/markdown/table.cjs";
|
|
24
|
+
import { CreateMarkdownEditorOptions, MarkdownBody, MarkdownEditor, createMarkdownEditor, openMarkdown } from "./edit/markdown/editor.cjs";
|
|
20
25
|
import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.cjs";
|
|
21
26
|
import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.cjs";
|
|
22
|
-
import { n as RunInit, t as OdtRun } from "./run-F8JN7Vy4.cjs";
|
|
23
|
-
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-Dlly6_E9.cjs";
|
|
27
|
+
import { n as RunInit$1, t as OdtRun } from "./run-F8JN7Vy4.cjs";
|
|
28
|
+
import { n as ParagraphInit$1, t as OdtParagraph } from "./paragraph-Dlly6_E9.cjs";
|
|
24
29
|
import { n as OdtListItem, t as OdtList } from "./list-DXRaCcT1.cjs";
|
|
25
30
|
import { t as OdpShape } from "./shape-BR8GL8XC.cjs";
|
|
26
31
|
import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-D03KX8Ux.cjs";
|
|
@@ -28,7 +33,7 @@ import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
|
|
|
28
33
|
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
|
|
29
34
|
import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.cjs";
|
|
30
35
|
import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.cjs";
|
|
31
|
-
import { i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "./table-DSFcqJ7C.cjs";
|
|
36
|
+
import { i as TableInit$1, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "./table-DSFcqJ7C.cjs";
|
|
32
37
|
import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.cjs";
|
|
33
38
|
import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.cjs";
|
|
34
39
|
import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.cjs";
|
|
@@ -107,4 +112,4 @@ import { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentCellVa
|
|
|
107
112
|
import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
|
|
108
113
|
import { FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, PositionedFormula, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
|
|
109
114
|
import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Footnote, FootnoteSchema, NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, Package, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
|
|
110
|
-
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePdfOptions, type CreatePptxOptions, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutDocumentJson, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, MarkdownBytesSchema, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageInit, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, type TextBoxInit$2 as TextBoxInit, UnrecognizedDocumentSchemaError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
|
115
|
+
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateMarkdownEditorOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePdfOptions, type CreatePptxOptions, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutDocumentJson, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, MarkdownParagraph, type ParagraphInit as MarkdownParagraphInit, MarkdownRun, type RunInit as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit as MarkdownTableInit, MarkdownTableRow, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$1 as OdtParagraphInit, OdtRun, type RunInit$1 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$1 as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageInit, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, type TextBoxInit$2 as TextBoxInit, UnrecognizedDocumentSchemaError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|