ooxml.js 5.0.2 → 6.1.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 +44 -35
- package/dist/{build-XSm3I8LT.d.cts → build--uPsivid.d.cts} +1 -1
- package/dist/{build-q0qMH_ML.d.ts → build-BOI7rIog.d.ts} +1 -1
- package/dist/{build-D-ldsmtA.d.cts → build-BY9Mn-4K.d.cts} +1 -1
- package/dist/{build-Z1KRkSEB.d.ts → build-DgBE0bmv.d.ts} +1 -1
- package/dist/codec-BBM1RYx7.d.cts +90 -0
- package/dist/codec-Cva8QD7-.d.ts +90 -0
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{color-fFIKAs-Y.d.cts → color-DLoZOrg3.d.cts} +1 -1
- package/dist/{color-fFIKAs-Y.d.ts → color-DLoZOrg3.d.ts} +1 -1
- package/dist/{compact-f0TfhicN.d.ts → compact-CmOeA2dl.d.ts} +2 -2
- package/dist/{compact-B1qg9oex.d.cts → compact-DMCbYORW.d.cts} +2 -2
- package/dist/compact.d.cts +1 -1
- package/dist/compact.d.ts +1 -1
- package/dist/{content-C79O3esU.d.cts → content-BiYr86lr.d.cts} +1 -1
- package/dist/{content-MEmp_Rlx.d.ts → content-D1pmxaUb.d.ts} +1 -1
- package/dist/document-tree-B17XbBOR.d.ts +11 -0
- package/dist/document-tree-CjI-Z4Tp.d.cts +11 -0
- package/dist/{fragment-B1og_8uA.d.cts → fragment-9dNg-m46.d.cts} +1 -1
- package/dist/{fragment-B1ZV7T5Z.d.ts → fragment-ClgCV_if.d.ts} +1 -1
- package/dist/image/sniff.d.cts +1 -1
- package/dist/image/sniff.d.ts +1 -1
- package/dist/index.cjs +57 -57
- package/dist/index.d.cts +22 -22
- package/dist/index.d.ts +22 -22
- package/dist/index.js +4 -4
- package/dist/{metadata-o_WH9V_I.d.ts → metadata-Bjfa88HQ.d.ts} +1 -1
- package/dist/{metadata-D6o-kLpg.d.cts → metadata-C74-XCrx.d.cts} +1 -1
- package/dist/model/node.d.cts +1 -1
- package/dist/model/node.d.ts +1 -1
- package/dist/model/package.d.cts +1 -1
- package/dist/model/package.d.ts +1 -1
- package/dist/{node-CkBWRjNR.d.cts → node-B6JX5CRX.d.cts} +1 -1
- package/dist/{node-CkBWRjNR.d.ts → node-B6JX5CRX.d.ts} +1 -1
- package/dist/{numbering-D0YfuiOO.d.ts → numbering-CUMTFxfk.d.ts} +1 -1
- package/dist/{numbering-C53LT-Jx.d.cts → numbering-vpq3iLPm.d.cts} +1 -1
- package/dist/{package-L24lkba-.d.cts → package-DMk9fuTI.d.cts} +1 -1
- package/dist/package-io/read.d.cts +1 -1
- package/dist/package-io/read.d.ts +1 -1
- package/dist/package-io/write.d.cts +1 -1
- package/dist/package-io/write.d.ts +1 -1
- package/dist/{package-BUojjTXf.d.ts → package-otZYrxiO.d.ts} +1 -1
- package/dist/{parse-A8_8sdpX.d.ts → parse-BLukZ2z0.d.ts} +1 -1
- package/dist/{parse-CP5FLZqv.d.cts → parse-DcVtB3jT.d.cts} +1 -1
- package/dist/{read-ZWJPDvG-.d.ts → read-B5kexLpc.d.ts} +1 -1
- package/dist/{read-DPR6ihXO.js → read-BZ_jycSX.js} +3 -1
- package/dist/{read-CevviAf2.d.ts → read-BlcKA9Cg.d.ts} +1 -1
- package/dist/{read-BoV9SZy4.d.cts → read-C1h_Q4kx.d.cts} +1 -1
- package/dist/{read-Cj23Gllx.cjs → read-CXksZHJW.cjs} +3 -1
- package/dist/{read-A9CC5Toq.d.cts → read-D6kQeo-T.d.cts} +1 -1
- package/dist/{read-DA55zDgD.d.ts → read-D_kXw2N2.d.ts} +1 -1
- package/dist/{read-VbRhmjOh.d.cts → read-uKN0paUP.d.cts} +1 -1
- package/dist/{sniff-DjpnUZRp.d.cts → sniff-DGOBHA0O.d.cts} +1 -1
- package/dist/{sniff-DjpnUZRp.d.ts → sniff-DGOBHA0O.d.ts} +1 -1
- package/dist/typed/{document-package.cjs → document-tree.cjs} +9 -9
- package/dist/typed/{document-package.d.ts → document-tree.d.cts} +1 -1
- package/dist/typed/{document-package.d.cts → document-tree.d.ts} +1 -1
- package/dist/typed/{document-package.js → document-tree.js} +10 -10
- package/dist/typed/docx/constructs.d.cts +3 -3
- package/dist/typed/docx/constructs.d.ts +3 -3
- package/dist/typed/docx/numbering.d.cts +1 -1
- package/dist/typed/docx/numbering.d.ts +1 -1
- package/dist/typed/docx/read.cjs +1 -1
- package/dist/typed/docx/read.d.cts +1 -1
- package/dist/typed/docx/read.d.ts +1 -1
- package/dist/typed/docx/read.js +1 -1
- package/dist/typed/docx/styles.d.cts +1 -1
- package/dist/typed/docx/styles.d.ts +1 -1
- package/dist/typed/docx/write.d.cts +1 -1
- package/dist/typed/docx/write.d.ts +1 -1
- package/dist/typed/embedded.cjs +1 -1
- package/dist/typed/embedded.d.cts +2 -2
- package/dist/typed/embedded.d.ts +2 -2
- package/dist/typed/embedded.js +1 -1
- package/dist/typed/pptx/chart.d.cts +1 -1
- package/dist/typed/pptx/chart.d.ts +1 -1
- package/dist/typed/pptx/diagram.d.cts +1 -1
- package/dist/typed/pptx/diagram.d.ts +1 -1
- package/dist/typed/pptx/inherit.d.cts +2 -2
- package/dist/typed/pptx/inherit.d.ts +2 -2
- package/dist/typed/pptx/read.cjs +1 -1
- package/dist/typed/pptx/read.d.cts +1 -1
- package/dist/typed/pptx/read.d.ts +1 -1
- package/dist/typed/pptx/read.js +1 -1
- package/dist/typed/shared/color.d.cts +1 -1
- package/dist/typed/shared/color.d.ts +1 -1
- package/dist/typed/shared/drawingml.d.cts +1 -1
- package/dist/typed/shared/drawingml.d.ts +1 -1
- package/dist/typed/shared/metadata.d.cts +1 -1
- package/dist/typed/shared/metadata.d.ts +1 -1
- package/dist/typed/util.d.cts +1 -1
- package/dist/typed/util.d.ts +1 -1
- package/dist/typed/xlsx/build.d.cts +1 -1
- package/dist/typed/xlsx/build.d.ts +1 -1
- package/dist/typed/xlsx/comments.d.cts +1 -1
- package/dist/typed/xlsx/comments.d.ts +1 -1
- package/dist/typed/xlsx/content.d.cts +1 -1
- package/dist/typed/xlsx/content.d.ts +1 -1
- package/dist/typed/xlsx/defined-names.d.cts +1 -1
- package/dist/typed/xlsx/defined-names.d.ts +1 -1
- package/dist/typed/xlsx/definitions.d.cts +1 -1
- package/dist/typed/xlsx/definitions.d.ts +1 -1
- package/dist/typed/xlsx/drawings.d.cts +2 -2
- package/dist/typed/xlsx/drawings.d.ts +2 -2
- package/dist/typed/xlsx/number-format.d.cts +14 -14
- package/dist/typed/xlsx/number-format.d.ts +14 -14
- package/dist/typed/xlsx/print-settings.d.cts +1 -1
- package/dist/typed/xlsx/print-settings.d.ts +1 -1
- package/dist/typed/xlsx/serial.d.cts +1 -1
- package/dist/typed/xlsx/serial.d.ts +1 -1
- package/dist/typed/xlsx/shared-strings.d.cts +1 -1
- package/dist/typed/xlsx/shared-strings.d.ts +1 -1
- package/dist/typed/xlsx/styles.d.cts +5 -5
- package/dist/typed/xlsx/styles.d.ts +5 -5
- package/dist/typed/xlsx.d.cts +1 -1
- package/dist/typed/xlsx.d.ts +1 -1
- package/dist/util/base64.cjs +4 -4
- package/dist/util/base64.js +4 -4
- package/dist/{util-DFe4UbvU.d.ts → util-DKrYuajM.d.ts} +2 -2
- package/dist/{util-M3JJlDhF.d.cts → util-xRsVgH-g.d.cts} +2 -2
- package/dist/{write-Dn_CL8qb.d.cts → write-BGTpp3RS.d.cts} +3 -3
- package/dist/{write-6JmxvaK5.d.cts → write-Ba1IxfDT.d.cts} +1 -1
- package/dist/{write-CT-EgVT7.d.ts → write-C4902scQ.d.ts} +1 -1
- package/dist/{write-inqdKHR3.d.ts → write-Cnfu3zdB.d.ts} +3 -3
- package/dist/{xlsx-DacFqZeF.d.ts → xlsx-B3JGnx0l.d.ts} +1 -1
- package/dist/{xlsx-CpX5nzGV.d.cts → xlsx-DCgJ8IbV.d.cts} +1 -1
- package/dist/xml/build.d.cts +1 -1
- package/dist/xml/build.d.ts +1 -1
- package/dist/xml/fragment.d.cts +1 -1
- package/dist/xml/fragment.d.ts +1 -1
- package/dist/xml/parse.d.cts +1 -1
- package/dist/xml/parse.d.ts +1 -1
- package/package.json +3 -11
- package/dist/codec-ChjAoVUL.d.cts +0 -90
- package/dist/codec-Daj8L7UQ.d.ts +0 -90
- package/dist/document-package-BqYJqSDu.d.ts +0 -11
- package/dist/document-package-Dcd0KSvQ.d.cts +0 -11
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
//#region src/typed/xlsx/number-format.d.ts
|
|
2
2
|
type NumberFormatToken = {
|
|
3
|
-
kind:
|
|
3
|
+
kind: "literal";
|
|
4
4
|
text: string;
|
|
5
5
|
} | {
|
|
6
|
-
kind:
|
|
6
|
+
kind: "bracket";
|
|
7
7
|
body: string;
|
|
8
8
|
} | {
|
|
9
|
-
kind:
|
|
9
|
+
kind: "separator";
|
|
10
10
|
} | {
|
|
11
|
-
kind:
|
|
11
|
+
kind: "code";
|
|
12
12
|
char: string;
|
|
13
13
|
};
|
|
14
14
|
declare const MAX_NUMBER_FORMAT_SECTIONS = 4;
|
|
15
15
|
declare function tokenizeNumberFormat(formatCode: string): NumberFormatToken[];
|
|
16
16
|
declare function splitNumberFormatSections(tokens: readonly NumberFormatToken[]): NumberFormatToken[][];
|
|
17
17
|
type NumberFormatClass = {
|
|
18
|
-
kind:
|
|
18
|
+
kind: "number";
|
|
19
19
|
} | {
|
|
20
|
-
kind:
|
|
20
|
+
kind: "text";
|
|
21
21
|
} | {
|
|
22
|
-
kind:
|
|
22
|
+
kind: "percentage";
|
|
23
23
|
} | {
|
|
24
|
-
kind:
|
|
24
|
+
kind: "currency";
|
|
25
25
|
code?: string;
|
|
26
26
|
} | {
|
|
27
|
-
kind:
|
|
27
|
+
kind: "date";
|
|
28
28
|
} | {
|
|
29
|
-
kind:
|
|
29
|
+
kind: "time";
|
|
30
30
|
} | {
|
|
31
|
-
kind:
|
|
31
|
+
kind: "dateTime";
|
|
32
32
|
} | {
|
|
33
|
-
kind:
|
|
33
|
+
kind: "elapsedTime";
|
|
34
34
|
};
|
|
35
35
|
declare function classifyNumberFormat(formatCode: string): NumberFormatClass;
|
|
36
36
|
declare const BUILTIN_NUMBER_FORMATS: ReadonlyMap<number, string>;
|
|
37
37
|
type CellNumberFormat = {
|
|
38
|
-
kind:
|
|
38
|
+
kind: "builtin";
|
|
39
39
|
id: number;
|
|
40
40
|
} | {
|
|
41
|
-
kind:
|
|
41
|
+
kind: "custom";
|
|
42
42
|
code: string;
|
|
43
43
|
};
|
|
44
44
|
declare const PERCENTAGE_NUMBER_FORMAT: CellNumberFormat;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.cjs";
|
|
2
2
|
import { SheetDefinedNames } from "./defined-names.cjs";
|
|
3
3
|
import { ContentSheetPrintSettings } from "document-schema.js";
|
|
4
4
|
//#region src/typed/xlsx/print-settings.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.js";
|
|
2
2
|
import { SheetDefinedNames } from "./defined-names.js";
|
|
3
3
|
import { ContentSheetPrintSettings } from "document-schema.js";
|
|
4
4
|
//#region src/typed/xlsx/print-settings.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { r as Package } from "../../package-DMk9fuTI.cjs";
|
|
2
2
|
//#region src/typed/xlsx/serial.d.ts
|
|
3
3
|
declare function readDate1904(pkg: Package): boolean;
|
|
4
4
|
declare function serialToIsoDate(serial: number, date1904: boolean): string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { r as Package } from "../../package-otZYrxiO.js";
|
|
2
2
|
//#region src/typed/xlsx/serial.d.ts
|
|
3
3
|
declare function readDate1904(pkg: Package): boolean;
|
|
4
4
|
declare function serialToIsoDate(serial: number, date1904: boolean): string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { r as Package } from "../../package-DMk9fuTI.cjs";
|
|
2
2
|
import { CellNumberFormat } from "./number-format.cjs";
|
|
3
3
|
import { Alignment, Color, ContentCellBorders } from "document-schema.js";
|
|
4
4
|
//#region src/typed/xlsx/styles.d.ts
|
|
@@ -8,7 +8,7 @@ interface CellStyleEntry {
|
|
|
8
8
|
background?: Color;
|
|
9
9
|
borders?: ContentCellBorders;
|
|
10
10
|
alignment?: Alignment;
|
|
11
|
-
verticalAlignment?:
|
|
11
|
+
verticalAlignment?: "top" | "middle" | "bottom";
|
|
12
12
|
}
|
|
13
13
|
declare function readCellStyles(pkg: Package): readonly CellStyleEntry[];
|
|
14
14
|
declare function readCellFormatCodes(pkg: Package): readonly (string | undefined)[];
|
|
@@ -21,10 +21,10 @@ interface CellFormatDecoration {
|
|
|
21
21
|
background?: Color;
|
|
22
22
|
borders?: ContentCellBorders;
|
|
23
23
|
alignment?: Alignment;
|
|
24
|
-
verticalAlignment?:
|
|
24
|
+
verticalAlignment?: "top" | "middle" | "bottom";
|
|
25
25
|
}
|
|
26
26
|
interface DeclaredFill {
|
|
27
|
-
patternType:
|
|
27
|
+
patternType: "none" | "gray125" | "solid";
|
|
28
28
|
rgb?: string;
|
|
29
29
|
}
|
|
30
30
|
interface DeclaredBorder {
|
|
@@ -53,7 +53,7 @@ interface CellFormatRecord {
|
|
|
53
53
|
borderId: number;
|
|
54
54
|
alignment?: {
|
|
55
55
|
horizontal?: Alignment;
|
|
56
|
-
vertical?:
|
|
56
|
+
vertical?: "top" | "middle" | "bottom";
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
declare class CellFormatTable {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { r as Package } from "../../package-otZYrxiO.js";
|
|
2
2
|
import { CellNumberFormat } from "./number-format.js";
|
|
3
3
|
import { Alignment, Color, ContentCellBorders } from "document-schema.js";
|
|
4
4
|
//#region src/typed/xlsx/styles.d.ts
|
|
@@ -8,7 +8,7 @@ interface CellStyleEntry {
|
|
|
8
8
|
background?: Color;
|
|
9
9
|
borders?: ContentCellBorders;
|
|
10
10
|
alignment?: Alignment;
|
|
11
|
-
verticalAlignment?:
|
|
11
|
+
verticalAlignment?: "top" | "middle" | "bottom";
|
|
12
12
|
}
|
|
13
13
|
declare function readCellStyles(pkg: Package): readonly CellStyleEntry[];
|
|
14
14
|
declare function readCellFormatCodes(pkg: Package): readonly (string | undefined)[];
|
|
@@ -21,10 +21,10 @@ interface CellFormatDecoration {
|
|
|
21
21
|
background?: Color;
|
|
22
22
|
borders?: ContentCellBorders;
|
|
23
23
|
alignment?: Alignment;
|
|
24
|
-
verticalAlignment?:
|
|
24
|
+
verticalAlignment?: "top" | "middle" | "bottom";
|
|
25
25
|
}
|
|
26
26
|
interface DeclaredFill {
|
|
27
|
-
patternType:
|
|
27
|
+
patternType: "none" | "gray125" | "solid";
|
|
28
28
|
rgb?: string;
|
|
29
29
|
}
|
|
30
30
|
interface DeclaredBorder {
|
|
@@ -53,7 +53,7 @@ interface CellFormatRecord {
|
|
|
53
53
|
borderId: number;
|
|
54
54
|
alignment?: {
|
|
55
55
|
horizontal?: Alignment;
|
|
56
|
-
vertical?:
|
|
56
|
+
vertical?: "top" | "middle" | "bottom";
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
declare class CellFormatTable {
|
package/dist/typed/xlsx.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsxWorkbook, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "../xlsx-
|
|
1
|
+
import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsxWorkbook, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "../xlsx-DCgJ8IbV.cjs";
|
|
2
2
|
export { DefinedName, DefinedNameSchema, XlsxCell, XlsxCellSchema, XlsxSheet, XlsxSheetSchema, XlsxWorkbook, XlsxWorkbookSchema, readXlsxWorkbook };
|
package/dist/typed/xlsx.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsxWorkbook, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "../xlsx-
|
|
1
|
+
import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsxWorkbook, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "../xlsx-B3JGnx0l.js";
|
|
2
2
|
export { DefinedName, DefinedNameSchema, XlsxCell, XlsxCellSchema, XlsxSheet, XlsxSheetSchema, XlsxWorkbook, XlsxWorkbookSchema, readXlsxWorkbook };
|
package/dist/util/base64.cjs
CHANGED
|
@@ -13,10 +13,10 @@ function bytesToBase64(bytes) {
|
|
|
13
13
|
const b0 = bytes[i];
|
|
14
14
|
const b1 = i + 1 < len ? bytes[i + 1] : 0;
|
|
15
15
|
const b2 = i + 2 < len ? bytes[i + 2] : 0;
|
|
16
|
-
out += TABLE
|
|
17
|
-
out += TABLE
|
|
18
|
-
out += i + 1 < len ? TABLE
|
|
19
|
-
out += i + 2 < len ? TABLE
|
|
16
|
+
out += TABLE.charAt(b0 >> 2);
|
|
17
|
+
out += TABLE.charAt((b0 & 3) << 4 | b1 >> 4);
|
|
18
|
+
out += i + 1 < len ? TABLE.charAt((b1 & 15) << 2 | b2 >> 6) : "=";
|
|
19
|
+
out += i + 2 < len ? TABLE.charAt(b2 & 63) : "=";
|
|
20
20
|
}
|
|
21
21
|
return out;
|
|
22
22
|
}
|
package/dist/util/base64.js
CHANGED
|
@@ -12,10 +12,10 @@ function bytesToBase64(bytes) {
|
|
|
12
12
|
const b0 = bytes[i];
|
|
13
13
|
const b1 = i + 1 < len ? bytes[i + 1] : 0;
|
|
14
14
|
const b2 = i + 2 < len ? bytes[i + 2] : 0;
|
|
15
|
-
out += TABLE
|
|
16
|
-
out += TABLE
|
|
17
|
-
out += i + 1 < len ? TABLE
|
|
18
|
-
out += i + 2 < len ? TABLE
|
|
15
|
+
out += TABLE.charAt(b0 >> 2);
|
|
16
|
+
out += TABLE.charAt((b0 & 3) << 4 | b1 >> 4);
|
|
17
|
+
out += i + 1 < len ? TABLE.charAt((b1 & 15) << 2 | b2 >> 6) : "=";
|
|
18
|
+
out += i + 2 < len ? TABLE.charAt(b2 & 63) : "=";
|
|
19
19
|
}
|
|
20
20
|
return out;
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as XmlNode, l as XmlElement } from "./node-
|
|
2
|
-
import { a as Part, r as Package } from "./package-
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "./node-B6JX5CRX.js";
|
|
2
|
+
import { a as Part, r as Package } from "./package-otZYrxiO.js";
|
|
3
3
|
//#region src/typed/util.d.ts
|
|
4
4
|
declare function walk(nodes: XmlNode[]): Generator<XmlNode>;
|
|
5
5
|
declare function elementsWithTag(nodes: XmlNode[], tag: string): XmlElement[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as XmlNode, l as XmlElement } from "./node-
|
|
2
|
-
import { a as Part, r as Package } from "./package-
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "./node-B6JX5CRX.cjs";
|
|
2
|
+
import { a as Part, r as Package } from "./package-DMk9fuTI.cjs";
|
|
3
3
|
//#region src/typed/util.d.ts
|
|
4
4
|
declare function walk(nodes: XmlNode[]): Generator<XmlNode>;
|
|
5
5
|
declare function elementsWithTag(nodes: XmlNode[], tag: string): XmlElement[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as Package } from "./package-
|
|
2
|
-
import { t as DocumentMetadata } from "./metadata-
|
|
1
|
+
import { r as Package } from "./package-DMk9fuTI.cjs";
|
|
2
|
+
import { t as DocumentMetadata } from "./metadata-C74-XCrx.cjs";
|
|
3
3
|
import { ContentDocument, ContentSection } from "document-schema.js";
|
|
4
4
|
//#region src/typed/docx/write.d.ts
|
|
5
5
|
interface DocxContent {
|
|
@@ -7,7 +7,7 @@ interface DocxContent {
|
|
|
7
7
|
readonly sections: readonly ContentSection[];
|
|
8
8
|
}
|
|
9
9
|
type EmbeddedPresentationSerialiser = (document: Extract<ContentDocument, {
|
|
10
|
-
kind:
|
|
10
|
+
kind: "presentation";
|
|
11
11
|
}>) => Uint8Array<ArrayBuffer>;
|
|
12
12
|
interface BuildDocxContentOptions {
|
|
13
13
|
readonly serialiseEmbeddedPresentation?: EmbeddedPresentationSerialiser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as Package } from "./package-
|
|
2
|
-
import { t as DocumentMetadata } from "./metadata-
|
|
1
|
+
import { r as Package } from "./package-otZYrxiO.js";
|
|
2
|
+
import { t as DocumentMetadata } from "./metadata-Bjfa88HQ.js";
|
|
3
3
|
import { ContentDocument, ContentSection } from "document-schema.js";
|
|
4
4
|
//#region src/typed/docx/write.d.ts
|
|
5
5
|
interface DocxContent {
|
|
@@ -7,7 +7,7 @@ interface DocxContent {
|
|
|
7
7
|
readonly sections: readonly ContentSection[];
|
|
8
8
|
}
|
|
9
9
|
type EmbeddedPresentationSerialiser = (document: Extract<ContentDocument, {
|
|
10
|
-
kind:
|
|
10
|
+
kind: "presentation";
|
|
11
11
|
}>) => Uint8Array<ArrayBuffer>;
|
|
12
12
|
interface BuildDocxContentOptions {
|
|
13
13
|
readonly serialiseEmbeddedPresentation?: EmbeddedPresentationSerialiser;
|
package/dist/xml/build.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildXml } from "../build
|
|
1
|
+
import { t as buildXml } from "../build--uPsivid.cjs";
|
|
2
2
|
export { buildXml };
|
package/dist/xml/build.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildXml } from "../build-
|
|
1
|
+
import { t as buildXml } from "../build-DgBE0bmv.js";
|
|
2
2
|
export { buildXml };
|
package/dist/xml/fragment.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as txt, t as el } from "../fragment-
|
|
1
|
+
import { n as txt, t as el } from "../fragment-9dNg-m46.cjs";
|
|
2
2
|
export { el, txt };
|
package/dist/xml/fragment.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as txt, t as el } from "../fragment-
|
|
1
|
+
import { n as txt, t as el } from "../fragment-ClgCV_if.js";
|
|
2
2
|
export { el, txt };
|
package/dist/xml/parse.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as parseXml } from "../parse-
|
|
1
|
+
import { t as parseXml } from "../parse-DcVtB3jT.cjs";
|
|
2
2
|
export { parseXml };
|
package/dist/xml/parse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as parseXml } from "../parse-
|
|
1
|
+
import { t as parseXml } from "../parse-BLukZ2z0.js";
|
|
2
2
|
export { parseXml };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ooxml.js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Type-safe, lossless round-trip conversion between OOXML packages (docx, pptx, xlsx) and JSON, built on Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"license": "MIT",
|
|
81
81
|
"packageManager": "pnpm@11.6.0",
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"archive-codec": "^1.
|
|
84
|
-
"document-schema.js": "^
|
|
83
|
+
"archive-codec": "^1.2.0",
|
|
84
|
+
"document-schema.js": "^5.1.0",
|
|
85
85
|
"fast-xml-parser": "^5.10.1",
|
|
86
86
|
"fflate": "^0.8.3",
|
|
87
87
|
"zod": "^4.4.3"
|
|
@@ -89,18 +89,10 @@
|
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
91
91
|
"@cloudflare/vitest-pool-workers": "^0.21.2",
|
|
92
|
-
"@commitlint/cli": "^21.2.1",
|
|
93
|
-
"@commitlint/config-conventional": "^21.2.0",
|
|
94
|
-
"@eslint/js": "^10.0.1",
|
|
95
|
-
"@exadev/eslint-config": "^2.1.0",
|
|
96
|
-
"@semantic-release/changelog": "^7.0.0",
|
|
97
|
-
"@semantic-release/git": "^11.0.1",
|
|
98
92
|
"@types/node": "^26.1.1",
|
|
99
93
|
"@vitest/coverage-v8": "^4.1.10",
|
|
100
94
|
"eslint": "^10.8.0",
|
|
101
|
-
"globals": "^17.8.0",
|
|
102
95
|
"husky": "^9.1.7",
|
|
103
|
-
"lint-staged": "^17.2.0",
|
|
104
96
|
"publint": "^0.3.21",
|
|
105
97
|
"semantic-release": "^25.0.8",
|
|
106
98
|
"tsdown": "^0.22.13",
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { d as XmlNode } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
-
import "./read-VbRhmjOh.cjs";
|
|
4
|
-
import "./write-6JmxvaK5.cjs";
|
|
5
|
-
import "./parse-CP5FLZqv.cjs";
|
|
6
|
-
import "./build-XSm3I8LT.cjs";
|
|
7
|
-
import "./fragment-B1og_8uA.cjs";
|
|
8
|
-
import "./util-M3JJlDhF.cjs";
|
|
9
|
-
import "./compact-B1qg9oex.cjs";
|
|
10
|
-
import "./color-fFIKAs-Y.cjs";
|
|
11
|
-
import "./metadata-D6o-kLpg.cjs";
|
|
12
|
-
import "./write-Dn_CL8qb.cjs";
|
|
13
|
-
import "./document-package-Dcd0KSvQ.cjs";
|
|
14
|
-
import "./read-A9CC5Toq.cjs";
|
|
15
|
-
import "./numbering-C53LT-Jx.cjs";
|
|
16
|
-
import "./read-BoV9SZy4.cjs";
|
|
17
|
-
import "./xlsx-CpX5nzGV.cjs";
|
|
18
|
-
import "./content-C79O3esU.cjs";
|
|
19
|
-
import "./build-D-ldsmtA.cjs";
|
|
20
|
-
import { z } from "zod";
|
|
21
|
-
import { Alignment as Alignment$1, AlignmentSchema, AnchorDescriptor as AnchorDescriptor$1, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box as Box$1, BoxSchema, COLOR_BLACK, Color as Color$1, ColorSchema, ConstructDescriptor as ConstructDescriptor$1, ConstructDescriptorSchema, ConstructMarkerImbalance, ConstructMarkerImbalanceError, ContentBlock as ContentBlock$1, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders as ContentCellBorders$1, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor as ContentControlDescriptor$1, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument as ContentDocument$1, ContentDocumentSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph as ContentParagraph$1, ContentParagraphSchema, ContentRun, ContentRunSchema, ContentSection as ContentSection$1, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage as ContentSheetImage$1, ContentSheetImageSchema, ContentSheetPrintRange as ContentSheetPrintRange$1, ContentSheetPrintRangeSchema, ContentSheetPrintSettings as ContentSheetPrintSettings$1, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange as ContentSheetRepeatRange$1, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentTable as ContentTable$1, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, DivisionDescriptor, DivisionDescriptorSchema, DocumentPackage as DocumentPackage$1, DocumentPackageSchema, DrawPageChild, DrawPageDescriptor, DrawPageGroupNode, DrawPageGroupSchema, FieldDescriptor, FieldDescriptorSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageBlockLeaf, PackageBlockLeafSchema, PackageChildren, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, PageSize as PageSize$1, PageSizeSchema, ProvenanceChange as ProvenanceChange$1, ProvenanceChangeSchema, ProvenanceDescriptor as ProvenanceDescriptor$1, ProvenanceDescriptorSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideGroupNode, SlideGroupSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, assemblePackage, colorToRgbHex, decompose, factorStyles, findConstructMarkerImbalance, flattenPackage, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, resolveStyleChain, rgbHexToColor } from "document-schema.js";
|
|
22
|
-
//#region src/codec.d.ts
|
|
23
|
-
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
-
type: z.ZodLiteral<"text">;
|
|
25
|
-
value: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
type: z.ZodLiteral<"cdata">;
|
|
28
|
-
value: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
type: z.ZodLiteral<"comment">;
|
|
31
|
-
value: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
type: z.ZodLiteral<"declaration">;
|
|
34
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
35
|
-
name: z.ZodString;
|
|
36
|
-
value: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
type: z.ZodLiteral<"pi">;
|
|
40
|
-
target: z.ZodString;
|
|
41
|
-
content: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
type: z.ZodLiteral<"element">;
|
|
44
|
-
tag: z.ZodString;
|
|
45
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
46
|
-
name: z.ZodString;
|
|
47
|
-
value: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
50
|
-
}, z.core.$strip>], "type">>>;
|
|
51
|
-
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
52
|
-
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
|
-
kind: z.ZodLiteral<"xml">;
|
|
54
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
55
|
-
type: z.ZodLiteral<"text">;
|
|
56
|
-
value: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
type: z.ZodLiteral<"cdata">;
|
|
59
|
-
value: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
type: z.ZodLiteral<"comment">;
|
|
62
|
-
value: z.ZodString;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
type: z.ZodLiteral<"declaration">;
|
|
65
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
66
|
-
name: z.ZodString;
|
|
67
|
-
value: z.ZodString;
|
|
68
|
-
}, z.core.$strip>>;
|
|
69
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
-
type: z.ZodLiteral<"pi">;
|
|
71
|
-
target: z.ZodString;
|
|
72
|
-
content: z.ZodString;
|
|
73
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
-
type: z.ZodLiteral<"element">;
|
|
75
|
-
tag: z.ZodString;
|
|
76
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
77
|
-
name: z.ZodString;
|
|
78
|
-
value: z.ZodString;
|
|
79
|
-
}, z.core.$strip>>;
|
|
80
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
81
|
-
}, z.core.$strip>], "type">>;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
kind: z.ZodLiteral<"binary">;
|
|
84
|
-
base64: z.ZodString;
|
|
85
|
-
}, z.core.$strip>], "kind">>;
|
|
86
|
-
}, z.core.$strip>>;
|
|
87
|
-
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
88
|
-
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
89
|
-
//#endregion
|
|
90
|
-
export { ContentShapeSchema as $, isHeadingGroupNode as $n, PackageChildren as $t, ContentConstructStart as A, SlideDescriptor as An, DrawPageChild as At, ContentImageBlock as B, StylesTableSchema as Bn, LinkDescriptorSchema as Bt, ContentBorderSchema as C, ShapeDescriptor as Cn, ContentTableRow as Ct, ContentCellValueSchema as D, SheetDescriptor as Dn, DivisionDescriptorSchema as Dt, ContentCellValue as E, SheetChild as En, DivisionDescriptor as Et, ContentControlLockSchema as F, StyleParagraphProperties as Fn, FieldDescriptorSchema as Ft, ContentPageBreakSchema as G, decompose as Gn, ListGroupSchema as Gt, ContentListMembership as H, applyRunStyleProperties as Hn, LinkTargetSchema as Ht, ContentControlType as I, StyleParagraphPropertiesSchema as In, HeadingGroupNode as It, ContentRun as J, flattenPackage as Jn, MarginsSchema as Jt, ContentParagraph$1 as K, factorStyles as Kn, ListParagraph as Kt, ContentControlTypeSchema as L, StyleRunProperties as Ln, HeadingGroupSchema as Lt, ContentControlDescriptor$1 as M, SlideGroupSchema as Mn, DrawPageGroupNode as Mt, ContentControlDescriptorSchema as N, StyleEntry as Nn, DrawPageGroupSchema as Nt, ContentConstructEnd as O, SheetGroupNode as On, DocumentPackage$1 as Ot, ContentControlLock as P, StyleEntrySchema as Pn, FieldDescriptor as Pt, ContentShape as Q, isDrawPageGroupNode as Qn, PackageBlockLeafSchema as Qt, ContentDocument$1 as R, StyleRunPropertiesSchema as Rn, HeadingParagraph as Rt, ContentBorder as S, ShapeConstructGroupSchema as Sn, ContentTableCellSchema as St, ContentCellBordersSchema as T, ShapeGroupSchema as Tn, ContentTableSchema as Tt, ContentListMembershipSchema as U, assemblePackage as Un, ListChild as Ut, ContentImageBlockSchema as V, applyParagraphStyleProperties as Vn, LinkTarget as Vt, ContentPageBreak as W, colorToRgbHex as Wn, ListGroupNode as Wt, ContentSection$1 as X, isContentConstructEnd as Xn, PAGE_SIZE_LETTER as Xt, ContentRunSchema as Y, isContentBlock as Yn, PAGE_SIZE_A4 as Yt, ContentSectionSchema as Z, isContentConstructStart as Zn, PackageBlockLeaf as Zt, ConstructDescriptorSchema as _, SectionDescriptor as _n, ContentSlideSchema as _t, Alignment$1 as a, PackageNodeSchema as an, isSectionConstructGroupNode as ar, ContentSheetImage$1 as at, ContentBlock$1 as b, ShapeChild as bn, ContentTable$1 as bt, AnchorDescriptorSchema as c, ProvenanceChange$1 as cn, isShapeGroupNode as cr, ContentSheetPrintRangeSchema as ct, Box$1 as d, ProvenanceDescriptorSchema as dn, overlayStyleEntries as dr, ContentSheetRepeatRange$1 as dt, PackageGroup as en, isListGroupNode as er, ContentSheet as et, BoxSchema as f, SLIDE_SIZE_STANDARD as fn, resolveStyleChain as fr, ContentSheetRepeatRangeSchema as ft, ConstructDescriptor$1 as g, SectionConstructGroupSchema as gn, ContentSlide as gt, ColorSchema as h, SectionConstructGroupNode as hn, ContentSheetSchema as ht, xmlCodec as i, PackageNode as in, isPackageNode as ir, ContentSheetColumnSchema as it, ContentConstructStartSchema as j, SlideGroupNode as jn, DrawPageDescriptor as jt, ContentConstructEndSchema as k, SheetGroupSchema as kn, DocumentPackageSchema as kt, AnchorType as l, ProvenanceChangeSchema as ln, isSheetGroupNode as lr, ContentSheetPrintSettings$1 as lt, Color$1 as m, SectionChild as mn, ContentSheetRowSchema as mt, encodePackage as n, PackageLeaf as nn, isPackageGroup as nr, ContentSheetCellSchema as nt, AlignmentSchema as o, PageSize$1 as on, isSectionGroupNode as or, ContentSheetImageSchema as ot, COLOR_BLACK as p, SLIDE_SIZE_WIDESCREEN as pn, rgbHexToColor as pr, ContentSheetRow as pt, ContentParagraphSchema as q, findConstructMarkerImbalance as qn, Margins as qt, packageCodec as r, PackageLeafSchema as rn, isPackageLeaf as rr, ContentSheetColumn as rt, AnchorDescriptor$1 as s, PageSizeSchema as sn, isShapeConstructGroupNode as sr, ContentSheetPrintRange$1 as st, decodePackage as t, PackageGroupSchema as tn, isPackageBlockLeaf as tr, ContentSheetCell as tt, AnchorTypeSchema as u, ProvenanceDescriptor$1 as un, isSlideGroupNode as ur, ContentSheetPrintSettingsSchema as ut, ConstructMarkerImbalance as v, SectionGroupNode as vn, ContentStrokeStyle as vt, ContentCellBorders$1 as w, ShapeGroupNode as wn, ContentTableRowSchema as wt, ContentBlockSchema as x, ShapeConstructGroupNode as xn, ContentTableCell as xt, ConstructMarkerImbalanceError as y, SectionGroupSchema as yn, ContentStrokeStyleSchema as yt, ContentDocumentSchema as z, StylesTable as zn, LinkDescriptor as zt };
|
package/dist/codec-Daj8L7UQ.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { d as XmlNode } from "./node-CkBWRjNR.js";
|
|
2
|
-
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
|
-
import "./read-CevviAf2.js";
|
|
4
|
-
import "./write-CT-EgVT7.js";
|
|
5
|
-
import "./parse-A8_8sdpX.js";
|
|
6
|
-
import "./build-Z1KRkSEB.js";
|
|
7
|
-
import "./fragment-B1ZV7T5Z.js";
|
|
8
|
-
import "./util-DFe4UbvU.js";
|
|
9
|
-
import "./compact-f0TfhicN.js";
|
|
10
|
-
import "./color-fFIKAs-Y.js";
|
|
11
|
-
import "./metadata-o_WH9V_I.js";
|
|
12
|
-
import "./write-inqdKHR3.js";
|
|
13
|
-
import "./document-package-BqYJqSDu.js";
|
|
14
|
-
import "./read-DA55zDgD.js";
|
|
15
|
-
import "./numbering-D0YfuiOO.js";
|
|
16
|
-
import "./read-ZWJPDvG-.js";
|
|
17
|
-
import "./xlsx-DacFqZeF.js";
|
|
18
|
-
import "./content-MEmp_Rlx.js";
|
|
19
|
-
import "./build-q0qMH_ML.js";
|
|
20
|
-
import { z } from "zod";
|
|
21
|
-
import { Alignment as Alignment$1, AlignmentSchema, AnchorDescriptor as AnchorDescriptor$1, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box as Box$1, BoxSchema, COLOR_BLACK as COLOR_BLACK$1, Color as Color$1, ColorSchema, ConstructDescriptor as ConstructDescriptor$1, ConstructDescriptorSchema, ConstructMarkerImbalance, ConstructMarkerImbalanceError, ContentBlock as ContentBlock$1, ContentBlockSchema as ContentBlockSchema$1, ContentBorder, ContentBorderSchema, ContentCellBorders as ContentCellBorders$1, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor as ContentControlDescriptor$1, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument as ContentDocument$1, ContentDocumentSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph as ContentParagraph$1, ContentParagraphSchema, ContentRun, ContentRunSchema, ContentSection as ContentSection$1, ContentSectionSchema as ContentSectionSchema$1, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage as ContentSheetImage$1, ContentSheetImageSchema, ContentSheetPrintRange as ContentSheetPrintRange$1, ContentSheetPrintRangeSchema, ContentSheetPrintSettings as ContentSheetPrintSettings$1, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange as ContentSheetRepeatRange$1, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema as ContentSlideSchema$1, ContentStrokeStyle, ContentStrokeStyleSchema, ContentTable as ContentTable$1, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, DivisionDescriptor, DivisionDescriptorSchema, DocumentPackage as DocumentPackage$1, DocumentPackageSchema, DrawPageChild, DrawPageDescriptor, DrawPageGroupNode, DrawPageGroupSchema, FieldDescriptor, FieldDescriptorSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, Margins, MarginsSchema, PAGE_SIZE_A4 as PAGE_SIZE_A4$1, PAGE_SIZE_LETTER as PAGE_SIZE_LETTER$1, PackageBlockLeaf, PackageBlockLeafSchema, PackageChildren, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, PageSize as PageSize$1, PageSizeSchema, ProvenanceChange as ProvenanceChange$1, ProvenanceChangeSchema, ProvenanceDescriptor as ProvenanceDescriptor$1, ProvenanceDescriptorSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN as SLIDE_SIZE_WIDESCREEN$1, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideGroupNode, SlideGroupSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, assemblePackage as assemblePackage$1, colorToRgbHex as colorToRgbHex$1, decompose, factorStyles, findConstructMarkerImbalance as findConstructMarkerImbalance$1, flattenPackage as flattenPackage$1, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, resolveStyleChain, rgbHexToColor as rgbHexToColor$1 } from "document-schema.js";
|
|
22
|
-
//#region src/codec.d.ts
|
|
23
|
-
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
-
type: z.ZodLiteral<"text">;
|
|
25
|
-
value: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
type: z.ZodLiteral<"cdata">;
|
|
28
|
-
value: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
type: z.ZodLiteral<"comment">;
|
|
31
|
-
value: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
type: z.ZodLiteral<"declaration">;
|
|
34
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
35
|
-
name: z.ZodString;
|
|
36
|
-
value: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
type: z.ZodLiteral<"pi">;
|
|
40
|
-
target: z.ZodString;
|
|
41
|
-
content: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
type: z.ZodLiteral<"element">;
|
|
44
|
-
tag: z.ZodString;
|
|
45
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
46
|
-
name: z.ZodString;
|
|
47
|
-
value: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
50
|
-
}, z.core.$strip>], "type">>>;
|
|
51
|
-
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
52
|
-
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
|
-
kind: z.ZodLiteral<"xml">;
|
|
54
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
55
|
-
type: z.ZodLiteral<"text">;
|
|
56
|
-
value: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
type: z.ZodLiteral<"cdata">;
|
|
59
|
-
value: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
type: z.ZodLiteral<"comment">;
|
|
62
|
-
value: z.ZodString;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
type: z.ZodLiteral<"declaration">;
|
|
65
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
66
|
-
name: z.ZodString;
|
|
67
|
-
value: z.ZodString;
|
|
68
|
-
}, z.core.$strip>>;
|
|
69
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
-
type: z.ZodLiteral<"pi">;
|
|
71
|
-
target: z.ZodString;
|
|
72
|
-
content: z.ZodString;
|
|
73
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
-
type: z.ZodLiteral<"element">;
|
|
75
|
-
tag: z.ZodString;
|
|
76
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
77
|
-
name: z.ZodString;
|
|
78
|
-
value: z.ZodString;
|
|
79
|
-
}, z.core.$strip>>;
|
|
80
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
81
|
-
}, z.core.$strip>], "type">>;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
kind: z.ZodLiteral<"binary">;
|
|
84
|
-
base64: z.ZodString;
|
|
85
|
-
}, z.core.$strip>], "kind">>;
|
|
86
|
-
}, z.core.$strip>>;
|
|
87
|
-
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
88
|
-
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
89
|
-
//#endregion
|
|
90
|
-
export { ContentShapeSchema as $, isHeadingGroupNode as $n, PackageChildren as $t, ContentConstructStart as A, SlideDescriptor as An, DrawPageChild as At, ContentImageBlock as B, StylesTableSchema as Bn, LinkDescriptorSchema as Bt, ContentBorderSchema as C, ShapeDescriptor as Cn, ContentTableRow as Ct, ContentCellValueSchema as D, SheetDescriptor as Dn, DivisionDescriptorSchema as Dt, ContentCellValue as E, SheetChild as En, DivisionDescriptor as Et, ContentControlLockSchema as F, StyleParagraphProperties as Fn, FieldDescriptorSchema as Ft, ContentPageBreakSchema as G, decompose as Gn, ListGroupSchema as Gt, ContentListMembership as H, applyRunStyleProperties as Hn, LinkTargetSchema as Ht, ContentControlType as I, StyleParagraphPropertiesSchema as In, HeadingGroupNode as It, ContentRun as J, flattenPackage$1 as Jn, MarginsSchema as Jt, ContentParagraph$1 as K, factorStyles as Kn, ListParagraph as Kt, ContentControlTypeSchema as L, StyleRunProperties as Ln, HeadingGroupSchema as Lt, ContentControlDescriptor$1 as M, SlideGroupSchema as Mn, DrawPageGroupNode as Mt, ContentControlDescriptorSchema as N, StyleEntry as Nn, DrawPageGroupSchema as Nt, ContentConstructEnd as O, SheetGroupNode as On, DocumentPackage$1 as Ot, ContentControlLock as P, StyleEntrySchema as Pn, FieldDescriptor as Pt, ContentShape as Q, isDrawPageGroupNode as Qn, PackageBlockLeafSchema as Qt, ContentDocument$1 as R, StyleRunPropertiesSchema as Rn, HeadingParagraph as Rt, ContentBorder as S, ShapeConstructGroupSchema as Sn, ContentTableCellSchema as St, ContentCellBordersSchema as T, ShapeGroupSchema as Tn, ContentTableSchema as Tt, ContentListMembershipSchema as U, assemblePackage$1 as Un, ListChild as Ut, ContentImageBlockSchema as V, applyParagraphStyleProperties as Vn, LinkTarget as Vt, ContentPageBreak as W, colorToRgbHex$1 as Wn, ListGroupNode as Wt, ContentSection$1 as X, isContentConstructEnd as Xn, PAGE_SIZE_LETTER$1 as Xt, ContentRunSchema as Y, isContentBlock as Yn, PAGE_SIZE_A4$1 as Yt, ContentSectionSchema$1 as Z, isContentConstructStart as Zn, PackageBlockLeaf as Zt, ConstructDescriptorSchema as _, SectionDescriptor as _n, ContentSlideSchema$1 as _t, Alignment$1 as a, PackageNodeSchema as an, isSectionConstructGroupNode as ar, ContentSheetImage$1 as at, ContentBlock$1 as b, ShapeChild as bn, ContentTable$1 as bt, AnchorDescriptorSchema as c, ProvenanceChange$1 as cn, isShapeGroupNode as cr, ContentSheetPrintRangeSchema as ct, Box$1 as d, ProvenanceDescriptorSchema as dn, overlayStyleEntries as dr, ContentSheetRepeatRange$1 as dt, PackageGroup as en, isListGroupNode as er, ContentSheet as et, BoxSchema as f, SLIDE_SIZE_STANDARD as fn, resolveStyleChain as fr, ContentSheetRepeatRangeSchema as ft, ConstructDescriptor$1 as g, SectionConstructGroupSchema as gn, ContentSlide as gt, ColorSchema as h, SectionConstructGroupNode as hn, ContentSheetSchema as ht, xmlCodec as i, PackageNode as in, isPackageNode as ir, ContentSheetColumnSchema as it, ContentConstructStartSchema as j, SlideGroupNode as jn, DrawPageDescriptor as jt, ContentConstructEndSchema as k, SheetGroupSchema as kn, DocumentPackageSchema as kt, AnchorType as l, ProvenanceChangeSchema as ln, isSheetGroupNode as lr, ContentSheetPrintSettings$1 as lt, Color$1 as m, SectionChild as mn, ContentSheetRowSchema as mt, encodePackage as n, PackageLeaf as nn, isPackageGroup as nr, ContentSheetCellSchema as nt, AlignmentSchema as o, PageSize$1 as on, isSectionGroupNode as or, ContentSheetImageSchema as ot, COLOR_BLACK$1 as p, SLIDE_SIZE_WIDESCREEN$1 as pn, rgbHexToColor$1 as pr, ContentSheetRow as pt, ContentParagraphSchema as q, findConstructMarkerImbalance$1 as qn, Margins as qt, packageCodec as r, PackageLeafSchema as rn, isPackageLeaf as rr, ContentSheetColumn as rt, AnchorDescriptor$1 as s, PageSizeSchema as sn, isShapeConstructGroupNode as sr, ContentSheetPrintRange$1 as st, decodePackage as t, PackageGroupSchema as tn, isPackageBlockLeaf as tr, ContentSheetCell as tt, AnchorTypeSchema as u, ProvenanceDescriptor$1 as un, isSlideGroupNode as ur, ContentSheetPrintSettingsSchema as ut, ConstructMarkerImbalance as v, SectionGroupNode as vn, ContentStrokeStyle as vt, ContentCellBorders$1 as w, ShapeGroupNode as wn, ContentTableRowSchema as wt, ContentBlockSchema$1 as x, ShapeConstructGroupNode as xn, ContentTableCell as xt, ConstructMarkerImbalanceError as y, SectionGroupSchema as yn, ContentStrokeStyleSchema as yt, ContentDocumentSchema as z, StylesTable as zn, LinkDescriptor as zt };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { r as Package } from "./package-BUojjTXf.js";
|
|
2
|
-
import { t as BuildDocxContentOptions } from "./write-inqdKHR3.js";
|
|
3
|
-
import { DocumentPackage } from "document-schema.js";
|
|
4
|
-
//#region src/typed/document-package.d.ts
|
|
5
|
-
declare function readDocx(pkg: Package): DocumentPackage;
|
|
6
|
-
declare function buildDocxPackage(document: DocumentPackage, options?: BuildDocxContentOptions): Package;
|
|
7
|
-
declare function readPptx(pkg: Package): DocumentPackage;
|
|
8
|
-
declare function readXlsx(pkg: Package): DocumentPackage;
|
|
9
|
-
declare function buildXlsxPackage(document: DocumentPackage): Package;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { readXlsx as a, readPptx as i, buildXlsxPackage as n, readDocx as r, buildDocxPackage as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { r as Package } from "./package-L24lkba-.cjs";
|
|
2
|
-
import { t as BuildDocxContentOptions } from "./write-Dn_CL8qb.cjs";
|
|
3
|
-
import { DocumentPackage } from "document-schema.js";
|
|
4
|
-
//#region src/typed/document-package.d.ts
|
|
5
|
-
declare function readDocx(pkg: Package): DocumentPackage;
|
|
6
|
-
declare function buildDocxPackage(document: DocumentPackage, options?: BuildDocxContentOptions): Package;
|
|
7
|
-
declare function readPptx(pkg: Package): DocumentPackage;
|
|
8
|
-
declare function readXlsx(pkg: Package): DocumentPackage;
|
|
9
|
-
declare function buildXlsxPackage(document: DocumentPackage): Package;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { readXlsx as a, readPptx as i, buildXlsxPackage as n, readDocx as r, buildDocxPackage as t };
|