js.documents 9.0.0 → 11.0.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 +3 -3
- package/dist/csv/text.cjs +27 -9
- package/dist/csv/text.d.cts +20 -4
- package/dist/csv/text.d.ts +20 -4
- package/dist/csv/text.js +27 -9
- package/dist/edit/doc/table.d.cts +1 -1
- package/dist/edit/doc/table.d.ts +1 -1
- package/dist/edit/docx/content.cjs +2 -0
- package/dist/edit/docx/content.js +2 -0
- package/dist/edit/docx/table.d.cts +1 -1
- package/dist/edit/docx/table.d.ts +1 -1
- package/dist/edit/markdown/table.d.cts +1 -1
- package/dist/edit/markdown/table.d.ts +1 -1
- package/dist/edit/odp/slide.d.cts +1 -1
- package/dist/edit/odp/slide.d.ts +1 -1
- package/dist/edit/odt/content.cjs +2 -0
- package/dist/edit/odt/content.d.cts +1 -1
- package/dist/edit/odt/content.d.ts +1 -1
- package/dist/edit/odt/content.js +2 -0
- package/dist/edit/odt/editor.d.cts +1 -1
- package/dist/edit/odt/editor.d.ts +1 -1
- package/dist/edit/odt/table.d.cts +1 -1
- package/dist/edit/odt/table.d.ts +1 -1
- package/dist/edit/pptx/content.cjs +2 -0
- package/dist/edit/pptx/content.js +2 -0
- package/dist/edit/table-grid.cjs +8 -0
- package/dist/edit/table-grid.d.cts +2 -2
- package/dist/edit/table-grid.d.ts +2 -2
- package/dist/edit/table-grid.js +9 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/markdown/text.cjs +18 -4
- package/dist/markdown/text.d.cts +14 -1
- package/dist/markdown/text.d.ts +14 -1
- package/dist/markdown/text.js +19 -5
- package/dist/model/bytes.cjs +6 -2
- package/dist/model/bytes.js +6 -2
- package/dist/{table-CwF1-ClQ.d.ts → table-BMYJo_-F.d.ts} +1 -1
- package/dist/{table-D3Hpm5uR.d.cts → table-CCjF09Ho.d.cts} +1 -1
- package/dist/{table-grid-Dlg4fNhn.d.cts → table-grid-Xbaddzz3.d.cts} +5 -1
- package/dist/{table-grid-Dlg4fNhn.d.ts → table-grid-Xbaddzz3.d.ts} +5 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -805,8 +805,8 @@ The package is layered from generic primitives outward to the two conversion dir
|
|
|
805
805
|
- **`src/ppt/`** — the one legacy-binary-format adapter with a genuine wrap of its own: `ppt-codec`'s `readPptContent`/`writePptContent` operate on the flat `{ metadata, slides }` shape (mirroring `ooxml.js`'s/`odf.js`'s own upstream flat readers), not a full `'presentation'`-kind `ContentDocument` directly, so `read.ts`/`write.ts` do the envelope wrap/unwrap `src/ooxml/pptx/read.ts`/`src/odf/odp/read.ts` also do for their own formats -- minus the formula/vector-recovery passes those two run, since `ppt-codec` has no upstream equivalent to splice in. `doc` and `xls` need no equivalent module: `doc-codec`'s `readDocContent`/`writeDocContent` and `xls-codec`'s `readXlsContent`/`writeXlsContent` already read/write a real `ContentDocument` directly (the latter over `XlsContentDocument`, a plain narrowed alias), so both are called straight from `src/codecs/read.ts`/`src/codecs/registry.ts`/`src/convert/composition.ts`, exactly like `rtf-codec`'s own pair.
|
|
806
806
|
- **`src/latex/`** — the LaTeX presentation → `MathExpression` lowering: `temml.ts` is the pinned-parser boundary (exact-version temml, its internal parse API guarded behind structural type guards), `lower.ts` the mechanical rules and their degradations, `symbols.ts` the glyph/command map and the prose definition scanner, `rational.ts` the exact-rational helpers, `lint.ts` the coherence lint. See [LaTeX lowering into the semantic core](#latex-lowering-into-the-semantic-core).
|
|
807
807
|
- **`src/markdown/`** — third adapter family, via `markdown-codec`. `readMarkdownContent` passes `readMarkdownContent`'s (markdown-codec's flat reader, so named since that package's 4.0.0; the bare `readMarkdown` name is now its tree-form `DocumentTree` reader) result through the math-lowering pass (`math.ts` — markdown-codec's preserved `$$` display blocks and `\( \)` inline spans become two-layer formula blocks, with the document's symbol table seeded from its own prose). `buildMarkdownText` wraps `writeMarkdownContent`, reconstructing markdown math syntax from formula blocks carrying a presentation layer. `text.ts` is the byte↔text boundary. `MarkdownEditor` holds a mutable in-memory `ContentDocument`.
|
|
808
|
-
- **`src/csv/`** — fourth adapter family, sharing the spreadsheet variant with xlsx/ods. `records.ts` is the RFC 4180 record parser/writer (one shared `quoteCsvField`, also used by the `.odb` CSV exporter); `text.ts` is the byte↔text boundary,
|
|
809
|
-
- **`src/svg/`** — fifth adapter family, sharing the drawing variant with odg. `text.ts` is the byte↔text boundary, rejecting
|
|
808
|
+
- **`src/csv/`** — fourth adapter family, sharing the spreadsheet variant with xlsx/ods. `records.ts` is the RFC 4180 record parser/writer (one shared `quoteCsvField`, also used by the `.odb` CSV exporter); `text.ts` is the byte↔text boundary, working the character encoding out from the bytes through [byte-codec](../byte-codec/README.md#text-decoding) rather than assuming UTF-8, so Excel's own windows-1252 export reads, and refusing bytes that are not text at all; `read.ts` turns records into a spreadsheet `ContentDocument` (first record as verbatim string header, data cells through the same cell-typing heuristic `pdfToOds` uses); `write.ts` turns one sheet of a spreadsheet `ContentDocument` back into records via each cell's `displayText`. TSV is the same format with `{ delimiter: '\t' }` on either side.
|
|
809
|
+
- **`src/svg/`** — fifth adapter family, sharing the drawing variant with odg. `text.ts` is the byte↔text boundary, still rejecting anything but UTF-8 where csv and markdown now detect the encoding, because SVG is XML and XML's own encoding declaration is authoritative ([#1359](https://github.com/ExaDev/documents.js/issues/1359)); `read.ts` maps the six SVG shape primitives (rect/circle/ellipse/line/polyline/polygon/path) onto a one-page drawing `ContentDocument`, with transform lists composed as 2×3 affines and CSS lengths and the viewBox map resolved into page points; `write.ts` writes the six primitives back out, one shape element each; `path.ts` is the full SVG path-data grammar (M/L/H/V/C/S/Z plus Q/T/A and the relative forms — S/Q/T convert exactly, A is the one bounded approximation at ≤90° per cubic); `transform.ts` parses and composes the transform attribute and classifies the result by frame representability; `units.ts` resolves CSS length units and the viewBox; `paint.ts` resolves fill/stroke presentation attributes and dash styles; `diagnostics.ts` is the shared scope-limit vocabulary.
|
|
810
810
|
- **`src/layout/`** — the pure conversion algorithms: `engine.ts` (wordprocessing → layout: flow, line-breaking, pagination), `slides.ts` (presentation → layout: direct placement), `sheets.ts` (spreadsheet → layout: grid, print settings, the first algorithm accepting `AbortSignal`), `drawing.ts` (drawing → layout: vector primitives + shape reuse), `reconstruct.ts` (layout → content: baseline clustering for wordprocessing/presentation, near-1:1 mapping for drawing, gridline-lattice-or-text-clustering for spreadsheet; plus the PDF construct surfacing — link reconciliation to `ContentRun.hyperlink` or link constructs, hidden-layer content dropped, anchor/comment and AcroForm contentControl constructs, and tagged-structure semantics where the file states them: heading levels from owning `H1`..`H6` elements over the font-size census, lattice-free table recovery from `/Table`/`/TR`/`/TH`/`/TD` ownership, and `division` constructs around `/Part`/`/Sect`/`/Div` extents).
|
|
811
811
|
- **`src/hsqldb/`** — `.odb` decoders, four tiers: `script.ts` (TEXT-script DDL/DML parser), `rowformat.ts`/`cache.ts` (CACHED binary row-store), `binary-script.ts` (BINARY/COMPRESSED whole-script). All import only `document-schema.js` — no odf.js knowledge.
|
|
812
812
|
- **`src/firebird/`** — Tier 3: gbak logical-backup reader. `reader.ts` (attribute framing + RLE decompression + XDR decoding), `schema.ts`/`data.ts` (table/row walking). No ratified spec — built against Firebird's own engine source.
|
|
@@ -925,7 +925,7 @@ To run a single test file: `pnpm vitest run src/path/to/file.test.ts`.
|
|
|
925
925
|
- **Every markdown construct-mapping gap is a documented `MarkdownDiagnosticCodes` entry** (`md/invented-page-geometry`, `md/nested-emphasis-flattened`, `md/link-title-dropped`, `md/blockquote-container-skipped`, `md/list-item-block-unlisted`, `md/image-unresolved`, `md/raw-html-preserved-as-text`/`md/raw-html-dropped`, `md/front-matter-key-unmapped`, `md/heading-level-clamped`, `md/adjacent-links-merged`, `md/code-span-as-monospace-run`, `md/paragraph-indent-dropped`, `md/list-numid-fallback`, `md/table-cell-formatting-dropped`, `md/table-cell-multi-paragraph-joined`) — never a silent approximation. The info-string, multi-block-item, and blockquote-depth gaps that used to be in this list are closed: a fence's language word rides `ContentParagraph.codeLanguage`, item identity rides `ContentListMembership.itemId`, and a blockquote carries a `division` construct pair.
|
|
926
926
|
- **`buildMarkdownText` throws for non-`'wordprocessing'` `ContentDocument`.**
|
|
927
927
|
- **`buildMarkdownText` passes `constructStart`/`constructEnd` markers through to markdown-codec's own writer**, which resolves them as balanced brackets: a construct with a markdown spelling renders as that syntax (a footnote definition, a blockquote division, a titled image's link wrapper), one without renders its extent transparently under a diagnostic. A genuinely unbalanced list still throws — markdown-codec's own `MarkdownUnbalancedConstructMarkersError`, the shared definition of that check. The old `MarkdownConstructUnsupportedError` refusal is gone: markdown-codec's read side now emits marker pairs of its own (blockquotes, titled images), so a writer that refused markers would refuse this package's own editor round trips.
|
|
928
|
-
- **`decodeMarkdownText`
|
|
928
|
+
- **`decodeMarkdownText` detects the character encoding** rather than assuming UTF-8, so a file saved in the Windows system code page or as UTF-16 reads; it throws for bytes that are not text rather than producing U+FFFD.
|
|
929
929
|
- **The composition engine routes every pair generically** through a declarative primitive registry and minimum-cost pathfinder. `resolveCompositionPlan` finds the minimum-cost route (same-variant bridge < cross-variant transform < via-PDF multi-hop). Named functions are thin forwarders.
|
|
930
930
|
|
|
931
931
|
## Fidelity
|
package/dist/csv/text.cjs
CHANGED
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let byte_codec = require("byte-codec");
|
|
2
3
|
//#region src/csv/text.ts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
/** Thrown when csv bytes cannot be decoded as text at all: they are binary, they contradict an encoding the caller declared or a byte order mark named, or they match none of the encodings byte-codec's decodeText supports. */
|
|
5
|
+
var CsvUndecodableTextError = class extends Error {
|
|
6
|
+
/** Which of those three it was, carried through from byte-codec so a caller can branch on it without unwrapping `cause`. */
|
|
7
|
+
reason;
|
|
8
|
+
constructor(cause) {
|
|
9
|
+
super(`csv bytes could not be decoded as text: ${cause.message}`, { cause });
|
|
10
|
+
this.name = "CsvUndecodableTextError";
|
|
11
|
+
this.reason = cause.reason;
|
|
7
12
|
}
|
|
8
13
|
};
|
|
9
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Decodes csv bytes to text, working the character encoding out from the bytes.
|
|
16
|
+
* @param bytes - The csv bytes.
|
|
17
|
+
* @param options - An explicit `encoding` to decode under, skipping detection. Reach for it when the bytes are in an encoding detection cannot see, a mark-less UTF-16 file holding CJK text being the case that occurs.
|
|
18
|
+
* @throws CsvUndecodableTextError When the bytes are not text, or match none of the supported encodings.
|
|
19
|
+
* @returns The csv text.
|
|
20
|
+
*/
|
|
21
|
+
function decodeCsvText(bytes, options) {
|
|
10
22
|
try {
|
|
11
|
-
return
|
|
12
|
-
} catch {
|
|
13
|
-
throw new
|
|
23
|
+
return (0, byte_codec.decodeText)(bytes, options).text;
|
|
24
|
+
} catch (error) {
|
|
25
|
+
if (error instanceof byte_codec.UndecodableTextError) throw new CsvUndecodableTextError(error);
|
|
26
|
+
throw error;
|
|
14
27
|
}
|
|
15
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Encodes csv text as UTF-8 bytes.
|
|
31
|
+
* @param text - The csv text.
|
|
32
|
+
* @returns The UTF-8 bytes, whatever encoding the text was originally decoded from.
|
|
33
|
+
*/
|
|
16
34
|
function encodeCsvText(text) {
|
|
17
35
|
return new TextEncoder().encode(text);
|
|
18
36
|
}
|
|
19
37
|
//#endregion
|
|
20
|
-
exports.
|
|
38
|
+
exports.CsvUndecodableTextError = CsvUndecodableTextError;
|
|
21
39
|
exports.decodeCsvText = decodeCsvText;
|
|
22
40
|
exports.encodeCsvText = encodeCsvText;
|
package/dist/csv/text.d.cts
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
+
import { DecodeTextOptions, UndecodableTextError } from "byte-codec";
|
|
1
2
|
//#region src/csv/text.d.ts
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/** Thrown when csv bytes cannot be decoded as text at all: they are binary, they contradict an encoding the caller declared or a byte order mark named, or they match none of the encodings byte-codec's decodeText supports. */
|
|
4
|
+
declare class CsvUndecodableTextError extends Error {
|
|
5
|
+
/** Which of those three it was, carried through from byte-codec so a caller can branch on it without unwrapping `cause`. */
|
|
6
|
+
readonly reason: UndecodableTextError["reason"];
|
|
7
|
+
constructor(cause: UndecodableTextError);
|
|
4
8
|
}
|
|
5
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Decodes csv bytes to text, working the character encoding out from the bytes.
|
|
11
|
+
* @param bytes - The csv bytes.
|
|
12
|
+
* @param options - An explicit `encoding` to decode under, skipping detection. Reach for it when the bytes are in an encoding detection cannot see, a mark-less UTF-16 file holding CJK text being the case that occurs.
|
|
13
|
+
* @throws CsvUndecodableTextError When the bytes are not text, or match none of the supported encodings.
|
|
14
|
+
* @returns The csv text.
|
|
15
|
+
*/
|
|
16
|
+
declare function decodeCsvText(bytes: Uint8Array, options?: DecodeTextOptions): string;
|
|
17
|
+
/**
|
|
18
|
+
* Encodes csv text as UTF-8 bytes.
|
|
19
|
+
* @param text - The csv text.
|
|
20
|
+
* @returns The UTF-8 bytes, whatever encoding the text was originally decoded from.
|
|
21
|
+
*/
|
|
6
22
|
declare function encodeCsvText(text: string): Uint8Array<ArrayBuffer>;
|
|
7
23
|
//#endregion
|
|
8
|
-
export {
|
|
24
|
+
export { CsvUndecodableTextError, decodeCsvText, encodeCsvText };
|
package/dist/csv/text.d.ts
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
+
import { DecodeTextOptions, UndecodableTextError } from "byte-codec";
|
|
1
2
|
//#region src/csv/text.d.ts
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/** Thrown when csv bytes cannot be decoded as text at all: they are binary, they contradict an encoding the caller declared or a byte order mark named, or they match none of the encodings byte-codec's decodeText supports. */
|
|
4
|
+
declare class CsvUndecodableTextError extends Error {
|
|
5
|
+
/** Which of those three it was, carried through from byte-codec so a caller can branch on it without unwrapping `cause`. */
|
|
6
|
+
readonly reason: UndecodableTextError["reason"];
|
|
7
|
+
constructor(cause: UndecodableTextError);
|
|
4
8
|
}
|
|
5
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Decodes csv bytes to text, working the character encoding out from the bytes.
|
|
11
|
+
* @param bytes - The csv bytes.
|
|
12
|
+
* @param options - An explicit `encoding` to decode under, skipping detection. Reach for it when the bytes are in an encoding detection cannot see, a mark-less UTF-16 file holding CJK text being the case that occurs.
|
|
13
|
+
* @throws CsvUndecodableTextError When the bytes are not text, or match none of the supported encodings.
|
|
14
|
+
* @returns The csv text.
|
|
15
|
+
*/
|
|
16
|
+
declare function decodeCsvText(bytes: Uint8Array, options?: DecodeTextOptions): string;
|
|
17
|
+
/**
|
|
18
|
+
* Encodes csv text as UTF-8 bytes.
|
|
19
|
+
* @param text - The csv text.
|
|
20
|
+
* @returns The UTF-8 bytes, whatever encoding the text was originally decoded from.
|
|
21
|
+
*/
|
|
6
22
|
declare function encodeCsvText(text: string): Uint8Array<ArrayBuffer>;
|
|
7
23
|
//#endregion
|
|
8
|
-
export {
|
|
24
|
+
export { CsvUndecodableTextError, decodeCsvText, encodeCsvText };
|
package/dist/csv/text.js
CHANGED
|
@@ -1,19 +1,37 @@
|
|
|
1
|
+
import { UndecodableTextError, decodeText } from "byte-codec";
|
|
1
2
|
//#region src/csv/text.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/** Thrown when csv bytes cannot be decoded as text at all: they are binary, they contradict an encoding the caller declared or a byte order mark named, or they match none of the encodings byte-codec's decodeText supports. */
|
|
4
|
+
var CsvUndecodableTextError = class extends Error {
|
|
5
|
+
/** Which of those three it was, carried through from byte-codec so a caller can branch on it without unwrapping `cause`. */
|
|
6
|
+
reason;
|
|
7
|
+
constructor(cause) {
|
|
8
|
+
super(`csv bytes could not be decoded as text: ${cause.message}`, { cause });
|
|
9
|
+
this.name = "CsvUndecodableTextError";
|
|
10
|
+
this.reason = cause.reason;
|
|
6
11
|
}
|
|
7
12
|
};
|
|
8
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Decodes csv bytes to text, working the character encoding out from the bytes.
|
|
15
|
+
* @param bytes - The csv bytes.
|
|
16
|
+
* @param options - An explicit `encoding` to decode under, skipping detection. Reach for it when the bytes are in an encoding detection cannot see, a mark-less UTF-16 file holding CJK text being the case that occurs.
|
|
17
|
+
* @throws CsvUndecodableTextError When the bytes are not text, or match none of the supported encodings.
|
|
18
|
+
* @returns The csv text.
|
|
19
|
+
*/
|
|
20
|
+
function decodeCsvText(bytes, options) {
|
|
9
21
|
try {
|
|
10
|
-
return
|
|
11
|
-
} catch {
|
|
12
|
-
throw new
|
|
22
|
+
return decodeText(bytes, options).text;
|
|
23
|
+
} catch (error) {
|
|
24
|
+
if (error instanceof UndecodableTextError) throw new CsvUndecodableTextError(error);
|
|
25
|
+
throw error;
|
|
13
26
|
}
|
|
14
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Encodes csv text as UTF-8 bytes.
|
|
30
|
+
* @param text - The csv text.
|
|
31
|
+
* @returns The UTF-8 bytes, whatever encoding the text was originally decoded from.
|
|
32
|
+
*/
|
|
15
33
|
function encodeCsvText(text) {
|
|
16
34
|
return new TextEncoder().encode(text);
|
|
17
35
|
}
|
|
18
36
|
//#endregion
|
|
19
|
-
export {
|
|
37
|
+
export { CsvUndecodableTextError, decodeCsvText, encodeCsvText };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ParagraphInit, t as DocParagraph } from "../../paragraph-DM9n9I4T.cjs";
|
|
2
|
-
import { i as TableGridRows } from "../../table-grid-
|
|
2
|
+
import { i as TableGridRows } from "../../table-grid-Xbaddzz3.cjs";
|
|
3
3
|
import { ContentBlock, ContentTable, ContentTableCell, ContentTableRow } from "document-schema.js";
|
|
4
4
|
//#region src/edit/doc/table.d.ts
|
|
5
5
|
interface TableInit {
|
package/dist/edit/doc/table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ParagraphInit, t as DocParagraph } from "../../paragraph-Byw2Y7xu.js";
|
|
2
|
-
import { i as TableGridRows } from "../../table-grid-
|
|
2
|
+
import { i as TableGridRows } from "../../table-grid-Xbaddzz3.js";
|
|
3
3
|
import { ContentBlock, ContentTable, ContentTableCell, ContentTableRow } from "document-schema.js";
|
|
4
4
|
//#region src/edit/doc/table.d.ts
|
|
5
5
|
interface TableInit {
|
|
@@ -6,6 +6,7 @@ const require_ports_clock = require("../../ports/clock.cjs");
|
|
|
6
6
|
const require_model_units = require("../../model/units.cjs");
|
|
7
7
|
const require_edit_docx_image = require("./image.cjs");
|
|
8
8
|
const require_edit_docx_scaffold = require("./scaffold.cjs");
|
|
9
|
+
const require_edit_table_grid = require("../table-grid.cjs");
|
|
9
10
|
const require_edit_docx_editor = require("./editor.cjs");
|
|
10
11
|
const require_model_embedded_drawing = require("../../model/embedded-drawing.cjs");
|
|
11
12
|
const require_model_formula = require("../../model/formula.cjs");
|
|
@@ -208,6 +209,7 @@ function docxRowCells(positions, positionsByRow) {
|
|
|
208
209
|
});
|
|
209
210
|
}
|
|
210
211
|
function appendTable(body, block) {
|
|
212
|
+
require_edit_table_grid.assertTableObeysGridRule(block, "buildDocxPackage");
|
|
211
213
|
const columns = block.columnWidthsPt.length;
|
|
212
214
|
if (block.rows.length === 0 || columns === 0) return;
|
|
213
215
|
const table = body.appendTable({
|
|
@@ -5,6 +5,7 @@ import { systemClock } from "../../ports/clock.js";
|
|
|
5
5
|
import { ptToTwips } from "../../model/units.js";
|
|
6
6
|
import { assertDocxWritableImageFormat } from "./image.js";
|
|
7
7
|
import { createEmptyDocxPackage } from "./scaffold.js";
|
|
8
|
+
import { assertTableObeysGridRule } from "../table-grid.js";
|
|
8
9
|
import { DocxEditor } from "./editor.js";
|
|
9
10
|
import { FLOW_CONTAINER_ORIGIN, drawingOfBlock, embeddedDrawingVectors } from "../../model/embedded-drawing.js";
|
|
10
11
|
import { formulaOfBlock, formulaPlaceholderText } from "../../model/formula.js";
|
|
@@ -207,6 +208,7 @@ function docxRowCells(positions, positionsByRow) {
|
|
|
207
208
|
});
|
|
208
209
|
}
|
|
209
210
|
function appendTable(body, block) {
|
|
211
|
+
assertTableObeysGridRule(block, "buildDocxPackage");
|
|
210
212
|
const columns = block.columnWidthsPt.length;
|
|
211
213
|
if (block.rows.length === 0 || columns === 0) return;
|
|
212
214
|
const table = body.appendTable({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TableGridRows } from "../../table-grid-
|
|
1
|
+
import { i as TableGridRows } from "../../table-grid-Xbaddzz3.cjs";
|
|
2
2
|
import { DocxParagraph, ParagraphInit } from "./paragraph.cjs";
|
|
3
3
|
import { Color, ContentCellBorders } from "document-schema.js";
|
|
4
4
|
import { XmlElement, XmlNode } from "ooxml.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TableGridRows } from "../../table-grid-
|
|
1
|
+
import { i as TableGridRows } from "../../table-grid-Xbaddzz3.js";
|
|
2
2
|
import { DocxParagraph, ParagraphInit } from "./paragraph.js";
|
|
3
3
|
import { XmlElement, XmlNode } from "ooxml.js";
|
|
4
4
|
import { Color, ContentCellBorders } from "document-schema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TableGridRows } from "../../table-grid-
|
|
1
|
+
import { i as TableGridRows } from "../../table-grid-Xbaddzz3.cjs";
|
|
2
2
|
import { MarkdownParagraph, ParagraphInit } from "./paragraph.cjs";
|
|
3
3
|
import { ContentBlock, ContentTable, ContentTableCell, ContentTableRow } from "document-schema.js";
|
|
4
4
|
//#region src/edit/markdown/table.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TableGridRows } from "../../table-grid-
|
|
1
|
+
import { i as TableGridRows } from "../../table-grid-Xbaddzz3.js";
|
|
2
2
|
import { MarkdownParagraph, ParagraphInit } from "./paragraph.js";
|
|
3
3
|
import { ContentBlock, ContentTable, ContentTableCell, ContentTableRow } from "document-schema.js";
|
|
4
4
|
//#region src/edit/markdown/table.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-D1z0T9Za.cjs";
|
|
2
2
|
import { t as OdpShape } from "../../shape-Kmmxib5z.cjs";
|
|
3
3
|
import { s as OdgVector } from "../../vector-DDP7hgvm.cjs";
|
|
4
|
-
import { o as TableInit, r as OdtTable } from "../../table-
|
|
4
|
+
import { o as TableInit, r as OdtTable } from "../../table-CCjF09Ho.cjs";
|
|
5
5
|
import { Box, ContentFormula, ContentVector } from "document-schema.js";
|
|
6
6
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
7
7
|
//#region src/edit/odp/slide.d.ts
|
package/dist/edit/odp/slide.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ImageInit } from "../../image-D1z0T9Za.js";
|
|
2
2
|
import { t as OdpShape } from "../../shape-ZAfNsCC5.js";
|
|
3
3
|
import { s as OdgVector } from "../../vector-DDP7hgvm.js";
|
|
4
|
-
import { o as TableInit, r as OdtTable } from "../../table-
|
|
4
|
+
import { o as TableInit, r as OdtTable } from "../../table-BMYJo_-F.js";
|
|
5
5
|
import { Box, ContentFormula, ContentVector } from "document-schema.js";
|
|
6
6
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
7
7
|
//#region src/edit/odp/slide.d.ts
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_model_metadata = require("../../model/metadata.cjs");
|
|
3
3
|
const require_ports_clock = require("../../ports/clock.cjs");
|
|
4
|
+
const require_edit_table_grid = require("../table-grid.cjs");
|
|
4
5
|
const require_model_embedded_drawing = require("../../model/embedded-drawing.cjs");
|
|
5
6
|
const require_model_formula = require("../../model/formula.cjs");
|
|
6
7
|
const require_edit_odt_paragraph = require("./paragraph.cjs");
|
|
@@ -132,6 +133,7 @@ function populateCellBlocks(cell, blocks) {
|
|
|
132
133
|
for (const remaining of restBlocks) appendCellBlock(cell, remaining);
|
|
133
134
|
}
|
|
134
135
|
function populateOdtTable(table, block) {
|
|
136
|
+
require_edit_table_grid.assertTableObeysGridRule(block, "populateOdtTable");
|
|
135
137
|
const gridPositions = (0, document_schema_js.walkTableGrid)(block);
|
|
136
138
|
block.rows.forEach((row, rowIndex) => {
|
|
137
139
|
const tableRow = table.appendEmptyRow();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.cjs";
|
|
2
2
|
import { t as OdtParagraph } from "../../paragraph-CRaLSzWz.cjs";
|
|
3
|
-
import { r as OdtTable } from "../../table-
|
|
3
|
+
import { r as OdtTable } from "../../table-CCjF09Ho.cjs";
|
|
4
4
|
import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
|
|
5
5
|
import { Package } from "odf.js";
|
|
6
6
|
//#region src/edit/odt/content.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.js";
|
|
2
2
|
import { t as OdtParagraph } from "../../paragraph-D4f705GG.js";
|
|
3
|
-
import { r as OdtTable } from "../../table-
|
|
3
|
+
import { r as OdtTable } from "../../table-BMYJo_-F.js";
|
|
4
4
|
import { ContentDocument, ContentParagraph, ContentTable } from "document-schema.js";
|
|
5
5
|
import { Package } from "odf.js";
|
|
6
6
|
//#region src/edit/odt/content.d.ts
|
package/dist/edit/odt/content.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { resolveMetadataTimestamps } from "../../model/metadata.js";
|
|
2
2
|
import { systemClock } from "../../ports/clock.js";
|
|
3
|
+
import { assertTableObeysGridRule } from "../table-grid.js";
|
|
3
4
|
import { FLOW_CONTAINER_ORIGIN, drawingOfBlock, embeddedDrawingVectors } from "../../model/embedded-drawing.js";
|
|
4
5
|
import { formulaOfBlock, formulaPlaceholderText } from "../../model/formula.js";
|
|
5
6
|
import { headingStyleName } from "./paragraph.js";
|
|
@@ -131,6 +132,7 @@ function populateCellBlocks(cell, blocks) {
|
|
|
131
132
|
for (const remaining of restBlocks) appendCellBlock(cell, remaining);
|
|
132
133
|
}
|
|
133
134
|
function populateOdtTable(table, block) {
|
|
135
|
+
assertTableObeysGridRule(block, "populateOdtTable");
|
|
134
136
|
const gridPositions = walkTableGrid(block);
|
|
135
137
|
block.rows.forEach((row, rowIndex) => {
|
|
136
138
|
const tableRow = table.appendEmptyRow();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.cjs";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-CRaLSzWz.cjs";
|
|
3
3
|
import { t as OdtList } from "../../list-C_UPIZWM.cjs";
|
|
4
|
-
import { o as TableInit, r as OdtTable } from "../../table-
|
|
4
|
+
import { o as TableInit, r as OdtTable } from "../../table-CCjF09Ho.cjs";
|
|
5
5
|
import { Box, ContentControlDescriptor, ContentFormula, ContentVector, DivisionDescriptor, LayoutMetadata } from "document-schema.js";
|
|
6
6
|
import { Package } from "odf.js";
|
|
7
7
|
//#region src/edit/odt/editor.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.js";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "../../paragraph-D4f705GG.js";
|
|
3
3
|
import { t as OdtList } from "../../list-C2GWIe6E.js";
|
|
4
|
-
import { o as TableInit, r as OdtTable } from "../../table-
|
|
4
|
+
import { o as TableInit, r as OdtTable } from "../../table-BMYJo_-F.js";
|
|
5
5
|
import { Box, ContentControlDescriptor, ContentFormula, ContentVector, DivisionDescriptor, LayoutMetadata } from "document-schema.js";
|
|
6
6
|
import { Package } from "odf.js";
|
|
7
7
|
//#region src/edit/odt/editor.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OdtTableRow, c as buildTable, i as OdtTableCell, l as readCellDecoration, n as OdtCoveredTableCell, o as TableInit, r as OdtTable, s as buildCellStyle, t as CellDecoration } from "../../table-
|
|
1
|
+
import { a as OdtTableRow, c as buildTable, i as OdtTableCell, l as readCellDecoration, n as OdtCoveredTableCell, o as TableInit, r as OdtTable, s as buildCellStyle, t as CellDecoration } from "../../table-CCjF09Ho.cjs";
|
|
2
2
|
export { CellDecoration, OdtCoveredTableCell, OdtTable, OdtTableCell, OdtTableRow, TableInit, buildCellStyle, buildTable, readCellDecoration };
|
package/dist/edit/odt/table.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OdtTableRow, c as buildTable, i as OdtTableCell, l as readCellDecoration, n as OdtCoveredTableCell, o as TableInit, r as OdtTable, s as buildCellStyle, t as CellDecoration } from "../../table-
|
|
1
|
+
import { a as OdtTableRow, c as buildTable, i as OdtTableCell, l as readCellDecoration, n as OdtCoveredTableCell, o as TableInit, r as OdtTable, s as buildCellStyle, t as CellDecoration } from "../../table-BMYJo_-F.js";
|
|
2
2
|
export { CellDecoration, OdtCoveredTableCell, OdtTable, OdtTableCell, OdtTableRow, TableInit, buildCellStyle, buildTable, readCellDecoration };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_model_metadata = require("../../model/metadata.cjs");
|
|
3
3
|
const require_ports_clock = require("../../ports/clock.cjs");
|
|
4
|
+
const require_edit_table_grid = require("../table-grid.cjs");
|
|
4
5
|
const require_model_embedded_drawing = require("../../model/embedded-drawing.cjs");
|
|
5
6
|
const require_model_formula = require("../../model/formula.cjs");
|
|
6
7
|
const require_edit_pptx_scaffold = require("./scaffold.cjs");
|
|
@@ -113,6 +114,7 @@ function populateCellParagraphs(cell, blocks, resolveHyperlinkRId) {
|
|
|
113
114
|
cell.setParagraphs(paragraphs);
|
|
114
115
|
}
|
|
115
116
|
function populatePptxTable(table, block, resolveHyperlinkRId) {
|
|
117
|
+
require_edit_table_grid.assertTableObeysGridRule(block, "buildPptxPackage");
|
|
116
118
|
(0, document_schema_js.walkTableGrid)(block).forEach((positions, rowIndex) => {
|
|
117
119
|
positions.forEach((position) => {
|
|
118
120
|
const { cell, columnIndex } = position;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { resolveMetadataTimestamps } from "../../model/metadata.js";
|
|
2
2
|
import { systemClock } from "../../ports/clock.js";
|
|
3
|
+
import { assertTableObeysGridRule } from "../table-grid.js";
|
|
3
4
|
import { drawingOfBlock, embeddedDrawingVectors } from "../../model/embedded-drawing.js";
|
|
4
5
|
import { formulaOfBlock, formulaPlaceholderText } from "../../model/formula.js";
|
|
5
6
|
import { createEmptyPptxPackage } from "./scaffold.js";
|
|
@@ -112,6 +113,7 @@ function populateCellParagraphs(cell, blocks, resolveHyperlinkRId) {
|
|
|
112
113
|
cell.setParagraphs(paragraphs);
|
|
113
114
|
}
|
|
114
115
|
function populatePptxTable(table, block, resolveHyperlinkRId) {
|
|
116
|
+
assertTableObeysGridRule(block, "buildPptxPackage");
|
|
115
117
|
walkTableGrid(block).forEach((positions, rowIndex) => {
|
|
116
118
|
positions.forEach((position) => {
|
|
117
119
|
const { cell, columnIndex } = position;
|
package/dist/edit/table-grid.cjs
CHANGED
|
@@ -53,6 +53,14 @@ function resolvePivotTableGrid(table, wrap) {
|
|
|
53
53
|
rowSpan: cell.rowSpan
|
|
54
54
|
}))), table.columnWidthsPt.length);
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Throws when `table` breaks the grid rule (ContentTableCell in document-schema.js), naming `entryPoint` and the fault. The edit layer's builders write a covered position as a marker with no content of its own (a docx vertical-merge continuation, an ODF `table:covered-table-cell`, a pptx `hMerge`/`vMerge` cell), so a table whose covered positions carry blocks or spans, whose rows disagree about the grid, or whose regions run past the grid or into each other has no faithful spelling: the builder would drop what a covered position held, or guess which of two regions a position belongs to.
|
|
58
|
+
*/
|
|
59
|
+
function assertTableObeysGridRule(table, entryPoint) {
|
|
60
|
+
const fault = (0, document_schema_js.findTableGridFault)(table);
|
|
61
|
+
if (fault !== void 0) throw new Error(`${entryPoint}: table breaks the grid rule (${(0, document_schema_js.describeTableGridFault)(fault)})`);
|
|
62
|
+
}
|
|
56
63
|
//#endregion
|
|
64
|
+
exports.assertTableObeysGridRule = assertTableObeysGridRule;
|
|
57
65
|
exports.resolveLiveTableGrid = resolveLiveTableGrid;
|
|
58
66
|
exports.resolvePivotTableGrid = resolvePivotTableGrid;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { LiveTableGrid, PlacedLiveCell, TableGridCell, TableGridRows, resolveLiveTableGrid, resolvePivotTableGrid };
|
|
1
|
+
import { a as assertTableObeysGridRule, i as TableGridRows, n as PlacedLiveCell, o as resolveLiveTableGrid, r as TableGridCell, s as resolvePivotTableGrid, t as LiveTableGrid } from "../table-grid-Xbaddzz3.cjs";
|
|
2
|
+
export { LiveTableGrid, PlacedLiveCell, TableGridCell, TableGridRows, assertTableObeysGridRule, resolveLiveTableGrid, resolvePivotTableGrid };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { LiveTableGrid, PlacedLiveCell, TableGridCell, TableGridRows, resolveLiveTableGrid, resolvePivotTableGrid };
|
|
1
|
+
import { a as assertTableObeysGridRule, i as TableGridRows, n as PlacedLiveCell, o as resolveLiveTableGrid, r as TableGridCell, s as resolvePivotTableGrid, t as LiveTableGrid } from "../table-grid-Xbaddzz3.js";
|
|
2
|
+
export { LiveTableGrid, PlacedLiveCell, TableGridCell, TableGridRows, assertTableObeysGridRule, resolveLiveTableGrid, resolvePivotTableGrid };
|
package/dist/edit/table-grid.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { denseTableRows, tableGridColumnCount, walkTableGrid } from "document-schema.js";
|
|
1
|
+
import { denseTableRows, describeTableGridFault, findTableGridFault, tableGridColumnCount, walkTableGrid } from "document-schema.js";
|
|
2
2
|
//#region src/edit/table-grid.ts
|
|
3
3
|
function positionKey(rowIndex, columnIndex) {
|
|
4
4
|
return `${rowIndex}:${columnIndex}`;
|
|
@@ -52,5 +52,12 @@ function resolvePivotTableGrid(table, wrap) {
|
|
|
52
52
|
rowSpan: cell.rowSpan
|
|
53
53
|
}))), table.columnWidthsPt.length);
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Throws when `table` breaks the grid rule (ContentTableCell in document-schema.js), naming `entryPoint` and the fault. The edit layer's builders write a covered position as a marker with no content of its own (a docx vertical-merge continuation, an ODF `table:covered-table-cell`, a pptx `hMerge`/`vMerge` cell), so a table whose covered positions carry blocks or spans, whose rows disagree about the grid, or whose regions run past the grid or into each other has no faithful spelling: the builder would drop what a covered position held, or guess which of two regions a position belongs to.
|
|
57
|
+
*/
|
|
58
|
+
function assertTableObeysGridRule(table, entryPoint) {
|
|
59
|
+
const fault = findTableGridFault(table);
|
|
60
|
+
if (fault !== void 0) throw new Error(`${entryPoint}: table breaks the grid rule (${describeTableGridFault(fault)})`);
|
|
61
|
+
}
|
|
55
62
|
//#endregion
|
|
56
|
-
export { resolveLiveTableGrid, resolvePivotTableGrid };
|
|
63
|
+
export { assertTableObeysGridRule, resolveLiveTableGrid, resolvePivotTableGrid };
|
package/dist/index.cjs
CHANGED
|
@@ -349,10 +349,10 @@ Object.defineProperty(exports, "ContentVectorSchema", {
|
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
351
|
exports.CsvBytesSchema = require_model_bytes.CsvBytesSchema;
|
|
352
|
-
exports.CsvInvalidUtf8Error = require_csv_text.CsvInvalidUtf8Error;
|
|
353
352
|
exports.CsvParseError = require_csv_records.CsvParseError;
|
|
354
353
|
exports.CsvSheetNotFoundError = require_csv_write.CsvSheetNotFoundError;
|
|
355
354
|
exports.CsvSheetNotSpecifiedError = require_csv_write.CsvSheetNotSpecifiedError;
|
|
355
|
+
exports.CsvUndecodableTextError = require_csv_text.CsvUndecodableTextError;
|
|
356
356
|
exports.CsvUnsupportedDocumentKindError = require_csv_write.CsvUnsupportedDocumentKindError;
|
|
357
357
|
Object.defineProperty(exports, "DEFAULT_LAYOUT_FONT", {
|
|
358
358
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -16,12 +16,12 @@ import { PdfToDocumentOptions, ReadDocumentMetadataOptions, ReadNativeDocumentTr
|
|
|
16
16
|
import { createLocalDocumentConverter } from "./convert/local.cjs";
|
|
17
17
|
import { ReadCsvContentOptions, readCsvContent } from "./csv/read.cjs";
|
|
18
18
|
import { CsvParseError } from "./csv/records.cjs";
|
|
19
|
-
import {
|
|
19
|
+
import { CsvUndecodableTextError, decodeCsvText, encodeCsvText } from "./csv/text.cjs";
|
|
20
20
|
import { BuildCsvTextOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, buildCsvText } from "./csv/write.cjs";
|
|
21
21
|
import { MetadataOverrides } from "./metadata/core-patch.cjs";
|
|
22
22
|
import { n as RunInit, t as DocRun } from "./run-iYz2M-a_.cjs";
|
|
23
23
|
import { n as ParagraphInit, t as DocParagraph } from "./paragraph-DM9n9I4T.cjs";
|
|
24
|
-
import { i as TableGridRows, r as TableGridCell } from "./table-grid-
|
|
24
|
+
import { i as TableGridRows, r as TableGridCell } from "./table-grid-Xbaddzz3.cjs";
|
|
25
25
|
import { DocTable, DocTableCell, DocTableRow, TableInit } from "./edit/doc/table.cjs";
|
|
26
26
|
import { CreateDocOptions, DocEditor, DocSection, SectionInit, createDoc, openDoc } from "./edit/doc/editor.cjs";
|
|
27
27
|
import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.cjs";
|
|
@@ -47,7 +47,7 @@ import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
|
|
|
47
47
|
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
|
|
48
48
|
import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.cjs";
|
|
49
49
|
import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.cjs";
|
|
50
|
-
import { a as OdtTableRow, i as OdtTableCell, n as OdtCoveredTableCell, o as TableInit$2, r as OdtTable } from "./table-
|
|
50
|
+
import { a as OdtTableRow, i as OdtTableCell, n as OdtCoveredTableCell, o as TableInit$2, r as OdtTable } from "./table-CCjF09Ho.cjs";
|
|
51
51
|
import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.cjs";
|
|
52
52
|
import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.cjs";
|
|
53
53
|
import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.cjs";
|
|
@@ -147,4 +147,4 @@ import { RtfBytesSchema, readRtfContent, writeRtfContent } from "rtf-codec";
|
|
|
147
147
|
import { EpubBytesSchema, readEpubContent, writeEpubContent } from "epub-codec";
|
|
148
148
|
import { readWpdContent } from "wpd-codec";
|
|
149
149
|
import { XlsContentDocument, readXlsContent, writeXlsContent } from "xls-codec";
|
|
150
|
-
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, 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 CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellFill, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentEmbeddedObject, type ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, type ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, 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 ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocOptions, 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 CreatePptOptions, type CreatePptxOptions, type CreateXlsOptions, CsvBytesSchema, CsvInvalidUtf8Error, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, DocBytesSchema, DocEditor, DocParagraph, type ParagraphInit as DocParagraphInit, DocRun, type RunInit as DocRunInit, DocSection, type SectionInit as DocSectionInit, DocTable, DocTableCell, type TableInit as DocTableInit, DocTableRow, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentFormulaEntry, type DocumentJsonResult, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocumentTree, type DocumentTreeJson, DocumentTreeSchema, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, EpubBytesSchema, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HeaderFooterPart, HeaderFooterPartSchema, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, 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 LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit$1 as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit$1 as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit$1 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 MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, 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, type OdbReportToDocxOptions, type OdbReportToOdtOptions, 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, OdtCoveredTableCell, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$2 as OdtParagraphInit, OdtRun, type RunInit$2 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$2 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, type PatchDocxMetadataOptions, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, PdfInternalLinkItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptBytesSchema, PptEditor, PptShape, PptSlide, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadNativeDocumentTreeOptions, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, 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, RtfBytesSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type SetDocumentMetadataOptions, 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 SqlFromClause, type SqlFromSource, type SqlJoinClause, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TableGridCell, type TableGridRows, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsBytesSchema, XlsCell, type XlsContentDocument, XlsEditor, XlsSheet, 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, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectDocumentFormulas, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDoc, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPpt, createPptx, createStandardFontMeasurer, createXls, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, docPdfCodec, docToPdf, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, embeddedPresentationSerialiser, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, epubPdfCodec, epubToPdf, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDoc, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPpt, openPptx, openXls, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, patchDocxMetadata, pdfCodec, pdfToCsv, pdfToDoc, pdfToDocx, pdfToEpub, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPpt, pdfToPptx, pdfToRtf, pdfToSvg, pdfToXls, pdfToXlsx, pptPdfCodec, pptToPdf, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocContent, readDocumentMetadata, readDocxContent, readDocxExtras, readEpubContent, readFirebirdBackup, readMarkdownContent, readNativeDocumentTree, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptContent, readPptxContent, readRtfContent, readSvgContent, readWpdContent, readXlsContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, rtfPdfCodec, rtfToPdf, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writeDocContent, writeEpubContent, writePdf, writePptContent, writeRtfContent, writeXlsContent, displayTextOfValue as xlsDisplayTextOfValue, xlsPdfCodec, xlsToPdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
|
150
|
+
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, 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 CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellFill, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentEmbeddedObject, type ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, type ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, 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 ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocOptions, 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 CreatePptOptions, type CreatePptxOptions, type CreateXlsOptions, CsvBytesSchema, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUndecodableTextError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, DocBytesSchema, DocEditor, DocParagraph, type ParagraphInit as DocParagraphInit, DocRun, type RunInit as DocRunInit, DocSection, type SectionInit as DocSectionInit, DocTable, DocTableCell, type TableInit as DocTableInit, DocTableRow, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentFormulaEntry, type DocumentJsonResult, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocumentTree, type DocumentTreeJson, DocumentTreeSchema, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, EpubBytesSchema, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HeaderFooterPart, HeaderFooterPartSchema, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, 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 LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit$1 as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit$1 as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit$1 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 MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, 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, type OdbReportToDocxOptions, type OdbReportToOdtOptions, 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, OdtCoveredTableCell, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$2 as OdtParagraphInit, OdtRun, type RunInit$2 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$2 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, type PatchDocxMetadataOptions, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, PdfInternalLinkItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptBytesSchema, PptEditor, PptShape, PptSlide, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadNativeDocumentTreeOptions, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, 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, RtfBytesSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type SetDocumentMetadataOptions, 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 SqlFromClause, type SqlFromSource, type SqlJoinClause, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TableGridCell, type TableGridRows, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsBytesSchema, XlsCell, type XlsContentDocument, XlsEditor, XlsSheet, 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, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectDocumentFormulas, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDoc, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPpt, createPptx, createStandardFontMeasurer, createXls, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, docPdfCodec, docToPdf, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, embeddedPresentationSerialiser, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, epubPdfCodec, epubToPdf, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDoc, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPpt, openPptx, openXls, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, patchDocxMetadata, pdfCodec, pdfToCsv, pdfToDoc, pdfToDocx, pdfToEpub, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPpt, pdfToPptx, pdfToRtf, pdfToSvg, pdfToXls, pdfToXlsx, pptPdfCodec, pptToPdf, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocContent, readDocumentMetadata, readDocxContent, readDocxExtras, readEpubContent, readFirebirdBackup, readMarkdownContent, readNativeDocumentTree, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptContent, readPptxContent, readRtfContent, readSvgContent, readWpdContent, readXlsContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, rtfPdfCodec, rtfToPdf, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writeDocContent, writeEpubContent, writePdf, writePptContent, writeRtfContent, writeXlsContent, displayTextOfValue as xlsDisplayTextOfValue, xlsPdfCodec, xlsToPdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,12 +16,12 @@ import { PdfToDocumentOptions, ReadDocumentMetadataOptions, ReadNativeDocumentTr
|
|
|
16
16
|
import { createLocalDocumentConverter } from "./convert/local.js";
|
|
17
17
|
import { ReadCsvContentOptions, readCsvContent } from "./csv/read.js";
|
|
18
18
|
import { CsvParseError } from "./csv/records.js";
|
|
19
|
-
import {
|
|
19
|
+
import { CsvUndecodableTextError, decodeCsvText, encodeCsvText } from "./csv/text.js";
|
|
20
20
|
import { BuildCsvTextOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, buildCsvText } from "./csv/write.js";
|
|
21
21
|
import { MetadataOverrides } from "./metadata/core-patch.js";
|
|
22
22
|
import { n as RunInit, t as DocRun } from "./run-iYz2M-a_.js";
|
|
23
23
|
import { n as ParagraphInit, t as DocParagraph } from "./paragraph-Byw2Y7xu.js";
|
|
24
|
-
import { i as TableGridRows, r as TableGridCell } from "./table-grid-
|
|
24
|
+
import { i as TableGridRows, r as TableGridCell } from "./table-grid-Xbaddzz3.js";
|
|
25
25
|
import { DocTable, DocTableCell, DocTableRow, TableInit } from "./edit/doc/table.js";
|
|
26
26
|
import { CreateDocOptions, DocEditor, DocSection, SectionInit, createDoc, openDoc } from "./edit/doc/editor.js";
|
|
27
27
|
import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.js";
|
|
@@ -47,7 +47,7 @@ import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.js";
|
|
|
47
47
|
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.js";
|
|
48
48
|
import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.js";
|
|
49
49
|
import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.js";
|
|
50
|
-
import { a as OdtTableRow, i as OdtTableCell, n as OdtCoveredTableCell, o as TableInit$2, r as OdtTable } from "./table-
|
|
50
|
+
import { a as OdtTableRow, i as OdtTableCell, n as OdtCoveredTableCell, o as TableInit$2, r as OdtTable } from "./table-BMYJo_-F.js";
|
|
51
51
|
import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.js";
|
|
52
52
|
import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.js";
|
|
53
53
|
import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.js";
|
|
@@ -147,4 +147,4 @@ import { XlsContentDocument, readXlsContent, writeXlsContent } from "xls-codec";
|
|
|
147
147
|
import { RtfBytesSchema, readRtfContent, writeRtfContent } from "rtf-codec";
|
|
148
148
|
import { EpubBytesSchema, readEpubContent, writeEpubContent } from "epub-codec";
|
|
149
149
|
import { readWpdContent } from "wpd-codec";
|
|
150
|
-
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, 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 CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellFill, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentEmbeddedObject, type ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, type ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, 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 ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocOptions, 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 CreatePptOptions, type CreatePptxOptions, type CreateXlsOptions, CsvBytesSchema, CsvInvalidUtf8Error, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, DocBytesSchema, DocEditor, DocParagraph, type ParagraphInit as DocParagraphInit, DocRun, type RunInit as DocRunInit, DocSection, type SectionInit as DocSectionInit, DocTable, DocTableCell, type TableInit as DocTableInit, DocTableRow, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentFormulaEntry, type DocumentJsonResult, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocumentTree, type DocumentTreeJson, DocumentTreeSchema, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, EpubBytesSchema, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HeaderFooterPart, HeaderFooterPartSchema, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, 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 LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit$1 as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit$1 as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit$1 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 MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, 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, type OdbReportToDocxOptions, type OdbReportToOdtOptions, 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, OdtCoveredTableCell, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$2 as OdtParagraphInit, OdtRun, type RunInit$2 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$2 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, type PatchDocxMetadataOptions, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, PdfInternalLinkItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptBytesSchema, PptEditor, PptShape, PptSlide, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadNativeDocumentTreeOptions, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, 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, RtfBytesSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type SetDocumentMetadataOptions, 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 SqlFromClause, type SqlFromSource, type SqlJoinClause, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TableGridCell, type TableGridRows, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsBytesSchema, XlsCell, type XlsContentDocument, XlsEditor, XlsSheet, 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, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectDocumentFormulas, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDoc, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPpt, createPptx, createStandardFontMeasurer, createXls, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, docPdfCodec, docToPdf, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, embeddedPresentationSerialiser, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, epubPdfCodec, epubToPdf, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDoc, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPpt, openPptx, openXls, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, patchDocxMetadata, pdfCodec, pdfToCsv, pdfToDoc, pdfToDocx, pdfToEpub, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPpt, pdfToPptx, pdfToRtf, pdfToSvg, pdfToXls, pdfToXlsx, pptPdfCodec, pptToPdf, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocContent, readDocumentMetadata, readDocxContent, readDocxExtras, readEpubContent, readFirebirdBackup, readMarkdownContent, readNativeDocumentTree, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptContent, readPptxContent, readRtfContent, readSvgContent, readWpdContent, readXlsContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, rtfPdfCodec, rtfToPdf, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writeDocContent, writeEpubContent, writePdf, writePptContent, writeRtfContent, writeXlsContent, displayTextOfValue as xlsDisplayTextOfValue, xlsPdfCodec, xlsToPdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
|
150
|
+
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, 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 CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellFill, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentEmbeddedObject, type ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, type ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, 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 ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocOptions, 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 CreatePptOptions, type CreatePptxOptions, type CreateXlsOptions, CsvBytesSchema, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUndecodableTextError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, DocBytesSchema, DocEditor, DocParagraph, type ParagraphInit as DocParagraphInit, DocRun, type RunInit as DocRunInit, DocSection, type SectionInit as DocSectionInit, DocTable, DocTableCell, type TableInit as DocTableInit, DocTableRow, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentFormulaEntry, type DocumentJsonResult, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocumentTree, type DocumentTreeJson, DocumentTreeSchema, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, EpubBytesSchema, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HeaderFooterPart, HeaderFooterPartSchema, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, 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 LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit$1 as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit$1 as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit$1 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 MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, 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, type OdbReportToDocxOptions, type OdbReportToOdtOptions, 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, OdtCoveredTableCell, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$2 as OdtParagraphInit, OdtRun, type RunInit$2 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$2 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, type PatchDocxMetadataOptions, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, PdfInternalLinkItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptBytesSchema, PptEditor, PptShape, PptSlide, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadNativeDocumentTreeOptions, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, 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, RtfBytesSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type SetDocumentMetadataOptions, 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 SqlFromClause, type SqlFromSource, type SqlJoinClause, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TableGridCell, type TableGridRows, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsBytesSchema, XlsCell, type XlsContentDocument, XlsEditor, XlsSheet, 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, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectDocumentFormulas, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDoc, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPpt, createPptx, createStandardFontMeasurer, createXls, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, docPdfCodec, docToPdf, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, embeddedPresentationSerialiser, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, epubPdfCodec, epubToPdf, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDoc, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPpt, openPptx, openXls, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, patchDocxMetadata, pdfCodec, pdfToCsv, pdfToDoc, pdfToDocx, pdfToEpub, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPpt, pdfToPptx, pdfToRtf, pdfToSvg, pdfToXls, pdfToXlsx, pptPdfCodec, pptToPdf, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocContent, readDocumentMetadata, readDocxContent, readDocxExtras, readEpubContent, readFirebirdBackup, readMarkdownContent, readNativeDocumentTree, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptContent, readPptxContent, readRtfContent, readSvgContent, readWpdContent, readXlsContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, rtfPdfCodec, rtfToPdf, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writeDocContent, writeEpubContent, writePdf, writePptContent, writeRtfContent, writeXlsContent, displayTextOfValue as xlsDisplayTextOfValue, xlsPdfCodec, xlsToPdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
package/dist/index.js
CHANGED
|
@@ -76,7 +76,7 @@ import { readOdpContent } from "./odf/odp/read.js";
|
|
|
76
76
|
import { readOdsContent } from "./odf/ods/read.js";
|
|
77
77
|
import { readOdgContent } from "./odf/odg/read.js";
|
|
78
78
|
import { decodeMarkdownText, encodeMarkdownText } from "./markdown/text.js";
|
|
79
|
-
import {
|
|
79
|
+
import { CsvUndecodableTextError, decodeCsvText, encodeCsvText } from "./csv/text.js";
|
|
80
80
|
import { inferCellValue } from "./layout/cell-typing.js";
|
|
81
81
|
import { CsvParseError } from "./csv/records.js";
|
|
82
82
|
import { readCsvContent } from "./csv/read.js";
|
|
@@ -137,4 +137,4 @@ import { readXlsContent, writeXlsContent } from "xls-codec";
|
|
|
137
137
|
import { RtfBytesSchema, readRtfContent, writeRtfContent } from "rtf-codec";
|
|
138
138
|
import { EpubBytesSchema, readEpubContent, writeEpubContent } from "epub-codec";
|
|
139
139
|
import { readWpdContent } from "wpd-codec";
|
|
140
|
-
export { AttributeSchema, BinaryPartSchema, COLOR_BLACK, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentImageBlockSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, CsvBytesSchema,
|
|
140
|
+
export { AttributeSchema, BinaryPartSchema, COLOR_BLACK, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentImageBlockSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, CsvBytesSchema, CsvParseError, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUndecodableTextError, CsvUnsupportedDocumentKindError, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, DefinedNameSchema, DocBytesSchema, DocEditor, DocParagraph, DocRun, DocSection, DocTable, DocTableCell, DocTableRow, DocumentFormatSchema, DocumentTreeSchema, DocxBytesSchema, DocxEditor, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, EpubBytesSchema, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, FontFaceParseError, FootnoteSchema, HeaderFooterPartSchema, HsqldbBinaryScriptParseError, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, MATH_LINT_CODES, MarkdownBytesSchema, MarkdownEditor, MarkdownList, MarkdownParagraph, MarkdownRenderDiagnosticCodes, MarkdownRun, MarkdownTable, MarkdownTableCell, MarkdownTableRow, NOOP_DIAGNOSTIC_SINK, NumberingDefinitionSchema, NumberingLevelSchema, OdbNoEmbeddedDataSourceError, OdbReportDataSourceError, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, OdgBytesSchema, OdgEditor, OdgLineVector, OdgPage, OdgPathVector, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, OdtBytesSchema, OdtCoveredTableCell, OdtEditor, OdtList, OdtListItem, OdtParagraph, OdtRun, OdtTable, OdtTableCell, OdtTableRow, OoxmlEmbeddedFontError, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageSchema, PartSchema, PdfBytesSchema, PdfEditor, PdfEllipseItem, PdfEncryptedError, PdfImageItem, PdfInternalLinkItem, PdfLineItem, PdfLinkItem, PdfPage, PdfParseError, PdfPathItem, PdfRectItem, PdfTextItem, PptBytesSchema, PptEditor, PptShape, PptSlide, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, PptxTableRow, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, RptReportStructureError, RtfBytesSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, SectionHeaderFooterReferencesSchema, SvgBytesSchema, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, SvgUnsupportedDocumentKindError, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, XlsBytesSchema, XlsCell, XlsEditor, XlsSheet, XlsxBytesSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectDocumentFormulas, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDoc, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPpt, createPptx, createStandardFontMeasurer, createXls, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, docPdfCodec, docToPdf, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, embeddedPresentationSerialiser, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, epubPdfCodec, epubToPdf, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDoc, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPpt, openPptx, openXls, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, patchDocxMetadata, pdfCodec, pdfToCsv, pdfToDoc, pdfToDocx, pdfToEpub, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPpt, pdfToPptx, pdfToRtf, pdfToSvg, pdfToXls, pdfToXlsx, pptPdfCodec, pptToPdf, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocContent, readDocumentMetadata, readDocxContent, readDocxExtras, readEpubContent, readFirebirdBackup, readMarkdownContent, readNativeDocumentTree, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptContent, readPptxContent, readRtfContent, readSvgContent, readWpdContent, readXlsContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, rtfPdfCodec, rtfToPdf, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writeDocContent, writeEpubContent, writePdf, writePptContent, writeRtfContent, writeXlsContent, displayTextOfValue as xlsDisplayTextOfValue, xlsPdfCodec, xlsToPdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
package/dist/markdown/text.cjs
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let byte_codec = require("byte-codec");
|
|
2
3
|
let markdown_codec = require("markdown-codec");
|
|
3
4
|
//#region src/markdown/text.ts
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Decodes markdown bytes to text, working the character encoding out from the bytes.
|
|
7
|
+
* @param bytes - The markdown bytes.
|
|
8
|
+
* @param options - An explicit `encoding` to decode under, skipping detection. Reach for it when the bytes are in an encoding detection cannot see, a mark-less UTF-16 file holding CJK text being the case that occurs.
|
|
9
|
+
* @throws MarkdownUndecodableTextError When the bytes are not text, or match none of the supported encodings.
|
|
10
|
+
* @returns The markdown text.
|
|
11
|
+
*/
|
|
12
|
+
function decodeMarkdownText(bytes, options) {
|
|
5
13
|
try {
|
|
6
|
-
return
|
|
7
|
-
} catch {
|
|
8
|
-
throw new markdown_codec.
|
|
14
|
+
return (0, byte_codec.decodeText)(bytes, options).text;
|
|
15
|
+
} catch (error) {
|
|
16
|
+
if (error instanceof byte_codec.UndecodableTextError) throw new markdown_codec.MarkdownUndecodableTextError(error.message);
|
|
17
|
+
throw error;
|
|
9
18
|
}
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Encodes markdown text as UTF-8 bytes.
|
|
22
|
+
* @param text - The markdown text.
|
|
23
|
+
* @returns The UTF-8 bytes, whatever encoding the text was originally decoded from.
|
|
24
|
+
*/
|
|
11
25
|
function encodeMarkdownText(text) {
|
|
12
26
|
return new TextEncoder().encode(text);
|
|
13
27
|
}
|
package/dist/markdown/text.d.cts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
|
+
import { DecodeTextOptions } from "byte-codec";
|
|
1
2
|
//#region src/markdown/text.d.ts
|
|
2
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Decodes markdown bytes to text, working the character encoding out from the bytes.
|
|
5
|
+
* @param bytes - The markdown bytes.
|
|
6
|
+
* @param options - An explicit `encoding` to decode under, skipping detection. Reach for it when the bytes are in an encoding detection cannot see, a mark-less UTF-16 file holding CJK text being the case that occurs.
|
|
7
|
+
* @throws MarkdownUndecodableTextError When the bytes are not text, or match none of the supported encodings.
|
|
8
|
+
* @returns The markdown text.
|
|
9
|
+
*/
|
|
10
|
+
declare function decodeMarkdownText(bytes: Uint8Array, options?: DecodeTextOptions): string;
|
|
11
|
+
/**
|
|
12
|
+
* Encodes markdown text as UTF-8 bytes.
|
|
13
|
+
* @param text - The markdown text.
|
|
14
|
+
* @returns The UTF-8 bytes, whatever encoding the text was originally decoded from.
|
|
15
|
+
*/
|
|
3
16
|
declare function encodeMarkdownText(text: string): Uint8Array<ArrayBuffer>;
|
|
4
17
|
//#endregion
|
|
5
18
|
export { decodeMarkdownText, encodeMarkdownText };
|
package/dist/markdown/text.d.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
|
+
import { DecodeTextOptions } from "byte-codec";
|
|
1
2
|
//#region src/markdown/text.d.ts
|
|
2
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Decodes markdown bytes to text, working the character encoding out from the bytes.
|
|
5
|
+
* @param bytes - The markdown bytes.
|
|
6
|
+
* @param options - An explicit `encoding` to decode under, skipping detection. Reach for it when the bytes are in an encoding detection cannot see, a mark-less UTF-16 file holding CJK text being the case that occurs.
|
|
7
|
+
* @throws MarkdownUndecodableTextError When the bytes are not text, or match none of the supported encodings.
|
|
8
|
+
* @returns The markdown text.
|
|
9
|
+
*/
|
|
10
|
+
declare function decodeMarkdownText(bytes: Uint8Array, options?: DecodeTextOptions): string;
|
|
11
|
+
/**
|
|
12
|
+
* Encodes markdown text as UTF-8 bytes.
|
|
13
|
+
* @param text - The markdown text.
|
|
14
|
+
* @returns The UTF-8 bytes, whatever encoding the text was originally decoded from.
|
|
15
|
+
*/
|
|
3
16
|
declare function encodeMarkdownText(text: string): Uint8Array<ArrayBuffer>;
|
|
4
17
|
//#endregion
|
|
5
18
|
export { decodeMarkdownText, encodeMarkdownText };
|
package/dist/markdown/text.js
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UndecodableTextError, decodeText } from "byte-codec";
|
|
2
|
+
import { MarkdownUndecodableTextError } from "markdown-codec";
|
|
2
3
|
//#region src/markdown/text.ts
|
|
3
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Decodes markdown bytes to text, working the character encoding out from the bytes.
|
|
6
|
+
* @param bytes - The markdown bytes.
|
|
7
|
+
* @param options - An explicit `encoding` to decode under, skipping detection. Reach for it when the bytes are in an encoding detection cannot see, a mark-less UTF-16 file holding CJK text being the case that occurs.
|
|
8
|
+
* @throws MarkdownUndecodableTextError When the bytes are not text, or match none of the supported encodings.
|
|
9
|
+
* @returns The markdown text.
|
|
10
|
+
*/
|
|
11
|
+
function decodeMarkdownText(bytes, options) {
|
|
4
12
|
try {
|
|
5
|
-
return
|
|
6
|
-
} catch {
|
|
7
|
-
throw new
|
|
13
|
+
return decodeText(bytes, options).text;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
if (error instanceof UndecodableTextError) throw new MarkdownUndecodableTextError(error.message);
|
|
16
|
+
throw error;
|
|
8
17
|
}
|
|
9
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Encodes markdown text as UTF-8 bytes.
|
|
21
|
+
* @param text - The markdown text.
|
|
22
|
+
* @returns The UTF-8 bytes, whatever encoding the text was originally decoded from.
|
|
23
|
+
*/
|
|
10
24
|
function encodeMarkdownText(text) {
|
|
11
25
|
return new TextEncoder().encode(text);
|
|
12
26
|
}
|
package/dist/model/bytes.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let zod = require("zod");
|
|
3
|
+
let byte_codec = require("byte-codec");
|
|
3
4
|
let odf_js = require("odf.js");
|
|
4
5
|
let doc_codec = require("doc-codec");
|
|
5
6
|
let xls_codec = require("xls-codec");
|
|
@@ -96,6 +97,11 @@ function isPptBytes(bytes) {
|
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
const PptBytesSchema = zod.z.instanceof(Uint8Array).refine((bytes) => isArrayBufferBacked(bytes) && isPptBytes(bytes), { message: "not a valid ppt file: not an [MS-CFB] compound file holding both a 'Current User' and a 'PowerPoint Document' stream" });
|
|
100
|
+
function isDecodableText(bytes) {
|
|
101
|
+
return (0, byte_codec.tryDecodeText)(bytes) !== void 0;
|
|
102
|
+
}
|
|
103
|
+
const MarkdownBytesSchema = zod.z.instanceof(Uint8Array).refine(isDecodableText, { message: "not text in any supported character encoding" });
|
|
104
|
+
const CsvBytesSchema = zod.z.instanceof(Uint8Array).refine(isDecodableText, { message: "not text in any supported character encoding" });
|
|
99
105
|
function isWellFormedUtf8Text(bytes) {
|
|
100
106
|
try {
|
|
101
107
|
new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
@@ -104,8 +110,6 @@ function isWellFormedUtf8Text(bytes) {
|
|
|
104
110
|
return false;
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
|
-
const MarkdownBytesSchema = zod.z.instanceof(Uint8Array).refine(isWellFormedUtf8Text, { message: "not well-formed UTF-8 text" });
|
|
108
|
-
const CsvBytesSchema = zod.z.instanceof(Uint8Array).refine(isWellFormedUtf8Text, { message: "not well-formed UTF-8 text" });
|
|
109
113
|
const SvgBytesSchema = zod.z.instanceof(Uint8Array).refine((bytes) => {
|
|
110
114
|
if (!isWellFormedUtf8Text(bytes)) return false;
|
|
111
115
|
return new TextDecoder().decode(bytes).toLowerCase().includes("<svg");
|
package/dist/model/bytes.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { tryDecodeText } from "byte-codec";
|
|
2
3
|
import { ODF_MEDIA_TYPES } from "odf.js";
|
|
3
4
|
import { isDocBytes } from "doc-codec";
|
|
4
5
|
import { isXlsFile } from "xls-codec";
|
|
@@ -95,6 +96,11 @@ function isPptBytes(bytes) {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
const PptBytesSchema = z.instanceof(Uint8Array).refine((bytes) => isArrayBufferBacked(bytes) && isPptBytes(bytes), { message: "not a valid ppt file: not an [MS-CFB] compound file holding both a 'Current User' and a 'PowerPoint Document' stream" });
|
|
99
|
+
function isDecodableText(bytes) {
|
|
100
|
+
return tryDecodeText(bytes) !== void 0;
|
|
101
|
+
}
|
|
102
|
+
const MarkdownBytesSchema = z.instanceof(Uint8Array).refine(isDecodableText, { message: "not text in any supported character encoding" });
|
|
103
|
+
const CsvBytesSchema = z.instanceof(Uint8Array).refine(isDecodableText, { message: "not text in any supported character encoding" });
|
|
98
104
|
function isWellFormedUtf8Text(bytes) {
|
|
99
105
|
try {
|
|
100
106
|
new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
@@ -103,8 +109,6 @@ function isWellFormedUtf8Text(bytes) {
|
|
|
103
109
|
return false;
|
|
104
110
|
}
|
|
105
111
|
}
|
|
106
|
-
const MarkdownBytesSchema = z.instanceof(Uint8Array).refine(isWellFormedUtf8Text, { message: "not well-formed UTF-8 text" });
|
|
107
|
-
const CsvBytesSchema = z.instanceof(Uint8Array).refine(isWellFormedUtf8Text, { message: "not well-formed UTF-8 text" });
|
|
108
112
|
const SvgBytesSchema = z.instanceof(Uint8Array).refine((bytes) => {
|
|
109
113
|
if (!isWellFormedUtf8Text(bytes)) return false;
|
|
110
114
|
return new TextDecoder().decode(bytes).toLowerCase().includes("<svg");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TableGridRows } from "./table-grid-
|
|
1
|
+
import { i as TableGridRows } from "./table-grid-Xbaddzz3.js";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-D4f705GG.js";
|
|
3
3
|
import { Color, ContentCellBorders } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TableGridRows } from "./table-grid-
|
|
1
|
+
import { i as TableGridRows } from "./table-grid-Xbaddzz3.cjs";
|
|
2
2
|
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-CRaLSzWz.cjs";
|
|
3
3
|
import { Color, ContentCellBorders } from "document-schema.js";
|
|
4
4
|
import { Package, XmlElement, XmlNode } from "odf.js";
|
|
@@ -41,5 +41,9 @@ declare function resolveLiveTableGrid<C>(rows: readonly (readonly PlacedLiveCell
|
|
|
41
41
|
* A pivot table's rows are already dense, so an entry's index is its grid column and no width needs deriving; what this adds is the resolution of a covered position to the anchor that owns it, which is the same resolution the XML-backed editors need.
|
|
42
42
|
*/
|
|
43
43
|
declare function resolvePivotTableGrid<C>(table: ContentTable, wrap: (cell: ContentTableCell) => C): LiveTableGrid<C>;
|
|
44
|
+
/**
|
|
45
|
+
* Throws when `table` breaks the grid rule (ContentTableCell in document-schema.js), naming `entryPoint` and the fault. The edit layer's builders write a covered position as a marker with no content of its own (a docx vertical-merge continuation, an ODF `table:covered-table-cell`, a pptx `hMerge`/`vMerge` cell), so a table whose covered positions carry blocks or spans, whose rows disagree about the grid, or whose regions run past the grid or into each other has no faithful spelling: the builder would drop what a covered position held, or guess which of two regions a position belongs to.
|
|
46
|
+
*/
|
|
47
|
+
declare function assertTableObeysGridRule(table: ContentTable, entryPoint: string): void;
|
|
44
48
|
//#endregion
|
|
45
|
-
export {
|
|
49
|
+
export { assertTableObeysGridRule as a, TableGridRows as i, PlacedLiveCell as n, resolveLiveTableGrid as o, TableGridCell as r, resolvePivotTableGrid as s, LiveTableGrid as t };
|
|
@@ -41,5 +41,9 @@ declare function resolveLiveTableGrid<C>(rows: readonly (readonly PlacedLiveCell
|
|
|
41
41
|
* A pivot table's rows are already dense, so an entry's index is its grid column and no width needs deriving; what this adds is the resolution of a covered position to the anchor that owns it, which is the same resolution the XML-backed editors need.
|
|
42
42
|
*/
|
|
43
43
|
declare function resolvePivotTableGrid<C>(table: ContentTable, wrap: (cell: ContentTableCell) => C): LiveTableGrid<C>;
|
|
44
|
+
/**
|
|
45
|
+
* Throws when `table` breaks the grid rule (ContentTableCell in document-schema.js), naming `entryPoint` and the fault. The edit layer's builders write a covered position as a marker with no content of its own (a docx vertical-merge continuation, an ODF `table:covered-table-cell`, a pptx `hMerge`/`vMerge` cell), so a table whose covered positions carry blocks or spans, whose rows disagree about the grid, or whose regions run past the grid or into each other has no faithful spelling: the builder would drop what a covered position held, or guess which of two regions a position belongs to.
|
|
46
|
+
*/
|
|
47
|
+
declare function assertTableObeysGridRule(table: ContentTable, entryPoint: string): void;
|
|
44
48
|
//#endregion
|
|
45
|
-
export {
|
|
49
|
+
export { assertTableObeysGridRule as a, TableGridRows as i, PlacedLiveCell as n, resolveLiveTableGrid as o, TableGridCell as r, resolvePivotTableGrid as s, LiveTableGrid as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js.documents",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Bidirectional docx/pptx <-> PDF conversion and a read+write editable OOXML document model, built on ooxml.js and Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -77,21 +77,21 @@
|
|
|
77
77
|
],
|
|
78
78
|
"license": "MIT",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"archive-codec": "1.11.
|
|
80
|
+
"archive-codec": "1.11.9",
|
|
81
81
|
"byte-codec": "1.7.0",
|
|
82
|
-
"doc-codec": "
|
|
83
|
-
"document-schema.js": "7.
|
|
84
|
-
"epub-codec": "
|
|
82
|
+
"doc-codec": "5.0.0",
|
|
83
|
+
"document-schema.js": "7.13.0",
|
|
84
|
+
"epub-codec": "4.0.0",
|
|
85
85
|
"fflate": "0.8.3",
|
|
86
|
-
"markdown-codec": "
|
|
87
|
-
"odf.js": "
|
|
88
|
-
"ooxml.js": "
|
|
89
|
-
"pdf-codec": "5.2.
|
|
90
|
-
"ppt-codec": "2.0.
|
|
91
|
-
"rtf-codec": "
|
|
86
|
+
"markdown-codec": "10.0.0",
|
|
87
|
+
"odf.js": "10.0.0",
|
|
88
|
+
"ooxml.js": "11.0.0",
|
|
89
|
+
"pdf-codec": "5.2.3",
|
|
90
|
+
"ppt-codec": "2.0.4",
|
|
91
|
+
"rtf-codec": "7.0.0",
|
|
92
92
|
"temml": "0.13.4",
|
|
93
|
-
"wpd-codec": "5.0.
|
|
94
|
-
"xls-codec": "4.15.
|
|
93
|
+
"wpd-codec": "5.0.2",
|
|
94
|
+
"xls-codec": "4.15.15",
|
|
95
95
|
"zod": "4.4.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|