ooxml.js 3.1.1 → 4.0.1
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 +64 -25
- package/dist/{build-CBL9scQK.d.cts → build-D-ldsmtA.d.cts} +2 -2
- package/dist/{build-C0gS5QeG.d.ts → build-q0qMH_ML.d.ts} +2 -2
- package/dist/codec-BOGj_yQL.d.ts +90 -0
- package/dist/codec-CZkWeDXF.d.cts +90 -0
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/document-package-BDr3nkqJ.d.cts +10 -0
- package/dist/document-package-kartHoyl.d.ts +10 -0
- package/dist/index.cjs +253 -7
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +8 -7
- package/dist/{read-D_CpruL_.d.cts → read-ClIHv1ef.d.cts} +2 -2
- package/dist/{read-OBV7MMlF.d.cts → read-DY3Sm5T3.d.cts} +2 -2
- package/dist/{read-CeCtSzjQ.d.ts → read-DcJZITV9.d.ts} +2 -2
- package/dist/{read-B2-FFhqI.d.ts → read-gB0H2bff.d.ts} +2 -2
- package/dist/typed/document-package.cjs +43 -0
- package/dist/typed/document-package.d.cts +2 -0
- package/dist/typed/document-package.d.ts +2 -0
- package/dist/typed/document-package.js +38 -0
- package/dist/typed/docx/read.cjs +4 -4
- package/dist/typed/docx/read.d.cts +2 -2
- package/dist/typed/docx/read.d.ts +2 -2
- package/dist/typed/docx/read.js +4 -4
- package/dist/typed/docx/write.cjs +3 -3
- package/dist/typed/docx/write.d.cts +2 -2
- package/dist/typed/docx/write.d.ts +2 -2
- package/dist/typed/docx/write.js +3 -3
- package/dist/typed/pptx/read.cjs +2 -2
- package/dist/typed/pptx/read.d.cts +2 -2
- package/dist/typed/pptx/read.d.ts +2 -2
- package/dist/typed/pptx/read.js +2 -2
- package/dist/typed/xlsx/build.cjs +4 -4
- package/dist/typed/xlsx/build.d.cts +2 -2
- package/dist/typed/xlsx/build.d.ts +2 -2
- package/dist/typed/xlsx/build.js +4 -4
- package/dist/typed/xlsx/content.cjs +2 -2
- package/dist/typed/xlsx/content.js +2 -2
- package/dist/typed/xlsx.cjs +2 -2
- package/dist/typed/xlsx.d.cts +2 -2
- package/dist/typed/xlsx.d.ts +2 -2
- package/dist/typed/xlsx.js +2 -2
- package/dist/{write-U3Ap0vHi.d.ts → write-97yEqc6w.d.ts} +2 -2
- package/dist/{write-C08_maSc.d.cts → write-BFEF46Ir.d.cts} +2 -2
- package/dist/{xlsx-B97t4YE-.d.cts → xlsx-CpX5nzGV.d.cts} +2 -2
- package/dist/{xlsx-BxKODiLX.d.ts → xlsx-DacFqZeF.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/codec-B3qT1CGZ.d.ts +0 -89
- package/dist/codec-CuzuI9Dy.d.cts +0 -89
package/dist/typed/docx/read.cjs
CHANGED
|
@@ -615,11 +615,11 @@ function readHeaderFooterText(pkg, prefix) {
|
|
|
615
615
|
}
|
|
616
616
|
return out;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function readDocxContent(pkg) {
|
|
619
619
|
const documentRoot = require_typed_util.rootElement(pkg.parts[DOCUMENT_PART_PATH]);
|
|
620
|
-
if (documentRoot === void 0) throw new Error(`
|
|
620
|
+
if (documentRoot === void 0) throw new Error(`readDocxContent: package has no ${DOCUMENT_PART_PATH} part`);
|
|
621
621
|
const body = require_typed_util.childrenWithTag(documentRoot, "w:body")[0];
|
|
622
|
-
if (body === void 0) throw new Error(`
|
|
622
|
+
if (body === void 0) throw new Error(`readDocxContent: ${DOCUMENT_PART_PATH} has no w:body element`);
|
|
623
623
|
const docRels = require_typed_util.resolveRelationships(pkg, DOCUMENT_PART_PATH);
|
|
624
624
|
const ctx = {
|
|
625
625
|
styles: {
|
|
@@ -643,4 +643,4 @@ function readDocx(pkg) {
|
|
|
643
643
|
exports.CommentSchema = CommentSchema;
|
|
644
644
|
exports.DocxDocumentSchema = DocxDocumentSchema;
|
|
645
645
|
exports.FootnoteSchema = FootnoteSchema;
|
|
646
|
-
exports.
|
|
646
|
+
exports.readDocxContent = readDocxContent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Footnote, i as DocxDocumentSchema, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as
|
|
2
|
-
export { Comment, CommentSchema, DocxDocument, DocxDocumentSchema, Footnote, FootnoteSchema,
|
|
1
|
+
import { a as Footnote, i as DocxDocumentSchema, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as readDocxContent, t as Comment } from "../../read-ClIHv1ef.cjs";
|
|
2
|
+
export { Comment, CommentSchema, DocxDocument, DocxDocumentSchema, Footnote, FootnoteSchema, readDocxContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Footnote, i as DocxDocumentSchema, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as
|
|
2
|
-
export { Comment, CommentSchema, DocxDocument, DocxDocumentSchema, Footnote, FootnoteSchema,
|
|
1
|
+
import { a as Footnote, i as DocxDocumentSchema, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as readDocxContent, t as Comment } from "../../read-gB0H2bff.js";
|
|
2
|
+
export { Comment, CommentSchema, DocxDocument, DocxDocumentSchema, Footnote, FootnoteSchema, readDocxContent };
|
package/dist/typed/docx/read.js
CHANGED
|
@@ -614,11 +614,11 @@ function readHeaderFooterText(pkg, prefix) {
|
|
|
614
614
|
}
|
|
615
615
|
return out;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function readDocxContent(pkg) {
|
|
618
618
|
const documentRoot = rootElement(pkg.parts[DOCUMENT_PART_PATH]);
|
|
619
|
-
if (documentRoot === void 0) throw new Error(`
|
|
619
|
+
if (documentRoot === void 0) throw new Error(`readDocxContent: package has no ${DOCUMENT_PART_PATH} part`);
|
|
620
620
|
const body = childrenWithTag(documentRoot, "w:body")[0];
|
|
621
|
-
if (body === void 0) throw new Error(`
|
|
621
|
+
if (body === void 0) throw new Error(`readDocxContent: ${DOCUMENT_PART_PATH} has no w:body element`);
|
|
622
622
|
const docRels = resolveRelationships(pkg, DOCUMENT_PART_PATH);
|
|
623
623
|
const ctx = {
|
|
624
624
|
styles: {
|
|
@@ -639,4 +639,4 @@ function readDocx(pkg) {
|
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
641
|
//#endregion
|
|
642
|
-
export { CommentSchema, DocxDocumentSchema, FootnoteSchema,
|
|
642
|
+
export { CommentSchema, DocxDocumentSchema, FootnoteSchema, readDocxContent };
|
|
@@ -361,7 +361,7 @@ function buildSdtProperties(descriptor) {
|
|
|
361
361
|
}
|
|
362
362
|
function parseFlow(blocks) {
|
|
363
363
|
const imbalance = (0, document_schema_js.findConstructMarkerImbalance)(blocks);
|
|
364
|
-
if (imbalance !== void 0) throw new Error(`
|
|
364
|
+
if (imbalance !== void 0) throw new Error(`buildDocxPackageFromContent: construct markers do not balance (${imbalance.kind} at block ${String(imbalance.index)})`);
|
|
365
365
|
const roots = [];
|
|
366
366
|
const stack = [roots];
|
|
367
367
|
for (const block of blocks) {
|
|
@@ -642,7 +642,7 @@ function buildExtendedPropertiesPart(metadata) {
|
|
|
642
642
|
if (metadata.creator !== void 0) children.push(require_xml_fragment.el("Application", {}, [require_xml_fragment.txt(require_xml_entities.encodeXmlText(metadata.creator))]));
|
|
643
643
|
return xmlPart(require_xml_fragment.el("Properties", { xmlns: EXTENDED_PROPS_NS }, children));
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function buildDocxPackageFromContent(content) {
|
|
646
646
|
const state = newWriteState();
|
|
647
647
|
const documentPart = buildDocumentPart(content.sections.length === 0 ? [{
|
|
648
648
|
pageSize: {
|
|
@@ -673,4 +673,4 @@ function buildDocxPackage(content) {
|
|
|
673
673
|
return { parts };
|
|
674
674
|
}
|
|
675
675
|
//#endregion
|
|
676
|
-
exports.
|
|
676
|
+
exports.buildDocxPackageFromContent = buildDocxPackageFromContent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
export { DocxContent,
|
|
1
|
+
import { n as buildDocxPackageFromContent, t as DocxContent } from "../../write-BFEF46Ir.cjs";
|
|
2
|
+
export { DocxContent, buildDocxPackageFromContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
export { DocxContent,
|
|
1
|
+
import { n as buildDocxPackageFromContent, t as DocxContent } from "../../write-97yEqc6w.js";
|
|
2
|
+
export { DocxContent, buildDocxPackageFromContent };
|
package/dist/typed/docx/write.js
CHANGED
|
@@ -360,7 +360,7 @@ function buildSdtProperties(descriptor) {
|
|
|
360
360
|
}
|
|
361
361
|
function parseFlow(blocks) {
|
|
362
362
|
const imbalance = findConstructMarkerImbalance(blocks);
|
|
363
|
-
if (imbalance !== void 0) throw new Error(`
|
|
363
|
+
if (imbalance !== void 0) throw new Error(`buildDocxPackageFromContent: construct markers do not balance (${imbalance.kind} at block ${String(imbalance.index)})`);
|
|
364
364
|
const roots = [];
|
|
365
365
|
const stack = [roots];
|
|
366
366
|
for (const block of blocks) {
|
|
@@ -641,7 +641,7 @@ function buildExtendedPropertiesPart(metadata) {
|
|
|
641
641
|
if (metadata.creator !== void 0) children.push(el("Application", {}, [txt(encodeXmlText(metadata.creator))]));
|
|
642
642
|
return xmlPart(el("Properties", { xmlns: EXTENDED_PROPS_NS }, children));
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function buildDocxPackageFromContent(content) {
|
|
645
645
|
const state = newWriteState();
|
|
646
646
|
const documentPart = buildDocumentPart(content.sections.length === 0 ? [{
|
|
647
647
|
pageSize: {
|
|
@@ -672,4 +672,4 @@ function buildDocxPackage(content) {
|
|
|
672
672
|
return { parts };
|
|
673
673
|
}
|
|
674
674
|
//#endregion
|
|
675
|
-
export {
|
|
675
|
+
export { buildDocxPackageFromContent };
|
package/dist/typed/pptx/read.cjs
CHANGED
|
@@ -370,7 +370,7 @@ function readSlide(pkg, slidePath, size) {
|
|
|
370
370
|
notes: readNotes(pkg, slidePath)
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function readPptxContent(pkg) {
|
|
374
374
|
const presentationRoot = require_typed_util.rootElement(pkg.parts[PRESENTATION_PATH]);
|
|
375
375
|
const size = readSlideSize(presentationRoot);
|
|
376
376
|
const slides = readSlidePathsInOrder(pkg, presentationRoot).map((slidePath) => readSlide(pkg, slidePath, size));
|
|
@@ -388,4 +388,4 @@ function readPptx(pkg) {
|
|
|
388
388
|
}
|
|
389
389
|
//#endregion
|
|
390
390
|
exports.PptxDocumentSchema = PptxDocumentSchema;
|
|
391
|
-
exports.
|
|
391
|
+
exports.readPptxContent = readPptxContent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PptxDocumentSchema, r as
|
|
2
|
-
export { PptxDocument, PptxDocumentSchema,
|
|
1
|
+
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "../../read-DY3Sm5T3.cjs";
|
|
2
|
+
export { PptxDocument, PptxDocumentSchema, readPptxContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PptxDocumentSchema, r as
|
|
2
|
-
export { PptxDocument, PptxDocumentSchema,
|
|
1
|
+
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "../../read-DcJZITV9.js";
|
|
2
|
+
export { PptxDocument, PptxDocumentSchema, readPptxContent };
|
package/dist/typed/pptx/read.js
CHANGED
|
@@ -369,7 +369,7 @@ function readSlide(pkg, slidePath, size) {
|
|
|
369
369
|
notes: readNotes(pkg, slidePath)
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function readPptxContent(pkg) {
|
|
373
373
|
const presentationRoot = rootElement(pkg.parts[PRESENTATION_PATH]);
|
|
374
374
|
const size = readSlideSize(presentationRoot);
|
|
375
375
|
const slides = readSlidePathsInOrder(pkg, presentationRoot).map((slidePath) => readSlide(pkg, slidePath, size));
|
|
@@ -386,4 +386,4 @@ function readPptx(pkg) {
|
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
//#endregion
|
|
389
|
-
export { PptxDocumentSchema,
|
|
389
|
+
export { PptxDocumentSchema, readPptxContent };
|
|
@@ -2,12 +2,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_xml_fragment = require("../../xml/fragment.cjs");
|
|
3
3
|
const require_xml_entities = require("../../xml/entities.cjs");
|
|
4
4
|
require("../shared/units.cjs");
|
|
5
|
-
const require_typed_xlsx_shared_strings = require("./shared-strings.cjs");
|
|
6
5
|
const require_typed_xlsx_defined_names = require("./defined-names.cjs");
|
|
7
6
|
const require_typed_xlsx_number_format = require("./number-format.cjs");
|
|
8
7
|
const require_typed_xlsx_util = require("./util.cjs");
|
|
9
8
|
const require_typed_xlsx_print_settings = require("./print-settings.cjs");
|
|
10
9
|
const require_typed_xlsx_serial = require("./serial.cjs");
|
|
10
|
+
const require_typed_xlsx_shared_strings = require("./shared-strings.cjs");
|
|
11
11
|
const require_typed_xlsx_styles = require("./styles.cjs");
|
|
12
12
|
const require_typed_xlsx_units = require("./units.cjs");
|
|
13
13
|
let document_schema_js = require("document-schema.js");
|
|
@@ -504,8 +504,8 @@ function buildWorksheetPart(sheet, sharedStrings, cellFormats) {
|
|
|
504
504
|
"xmlns:r": REL_NS
|
|
505
505
|
}, children));
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
if (document.kind !== "spreadsheet") throw new Error(`
|
|
507
|
+
function buildXlsxPackageFromContent(document) {
|
|
508
|
+
if (document.kind !== "spreadsheet") throw new Error(`buildXlsxPackageFromContent: expected a ContentDocument of kind "spreadsheet", got "${document.kind}"`);
|
|
509
509
|
const sheets = document.sheets;
|
|
510
510
|
const sharedStrings = new require_typed_xlsx_shared_strings.SharedStringTable();
|
|
511
511
|
const cellFormats = new require_typed_xlsx_styles.CellFormatTable();
|
|
@@ -526,4 +526,4 @@ function buildXlsxPackage(document) {
|
|
|
526
526
|
return { parts };
|
|
527
527
|
}
|
|
528
528
|
//#endregion
|
|
529
|
-
exports.
|
|
529
|
+
exports.buildXlsxPackageFromContent = buildXlsxPackageFromContent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as buildXlsxPackageFromContent } from "../../build-D-ldsmtA.cjs";
|
|
2
|
+
export { buildXlsxPackageFromContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as buildXlsxPackageFromContent } from "../../build-q0qMH_ML.js";
|
|
2
|
+
export { buildXlsxPackageFromContent };
|
package/dist/typed/xlsx/build.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { el, txt } from "../../xml/fragment.js";
|
|
2
2
|
import { encodeXmlText } from "../../xml/entities.js";
|
|
3
3
|
import "../shared/units.js";
|
|
4
|
-
import { SharedStringTable } from "./shared-strings.js";
|
|
5
4
|
import { XLNM_PRINT_AREA, XLNM_PRINT_TITLES, buildPrintAreaValue, buildPrintTitlesValue } from "./defined-names.js";
|
|
6
5
|
import { BOOLEAN_NUMBER_FORMAT, DATE_NUMBER_FORMAT, DATE_TIME_NUMBER_FORMAT, PERCENTAGE_NUMBER_FORMAT, TIME_NUMBER_FORMAT, currencyNumberFormat } from "./number-format.js";
|
|
7
6
|
import { pageSizeToPaperSizeCode, ptToUniversalMeasure, writeXmlBool } from "./util.js";
|
|
8
7
|
import { DEFAULT_HEADER_FOOTER_MARGIN_PT } from "./print-settings.js";
|
|
9
8
|
import { isoDateTimeToSerial, isoDateToSerial, isoTimeToSerial } from "./serial.js";
|
|
9
|
+
import { SharedStringTable } from "./shared-strings.js";
|
|
10
10
|
import { CellFormatTable, RESERVED_BORDER_INDICES, RESERVED_FILL_INDICES } from "./styles.js";
|
|
11
11
|
import { ptToColumnWidthChars } from "./units.js";
|
|
12
12
|
import { cellReference, rangeReference } from "document-schema.js";
|
|
@@ -503,8 +503,8 @@ function buildWorksheetPart(sheet, sharedStrings, cellFormats) {
|
|
|
503
503
|
"xmlns:r": REL_NS
|
|
504
504
|
}, children));
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
if (document.kind !== "spreadsheet") throw new Error(`
|
|
506
|
+
function buildXlsxPackageFromContent(document) {
|
|
507
|
+
if (document.kind !== "spreadsheet") throw new Error(`buildXlsxPackageFromContent: expected a ContentDocument of kind "spreadsheet", got "${document.kind}"`);
|
|
508
508
|
const sheets = document.sheets;
|
|
509
509
|
const sharedStrings = new SharedStringTable();
|
|
510
510
|
const cellFormats = new CellFormatTable();
|
|
@@ -525,4 +525,4 @@ function buildXlsxPackage(document) {
|
|
|
525
525
|
return { parts };
|
|
526
526
|
}
|
|
527
527
|
//#endregion
|
|
528
|
-
export {
|
|
528
|
+
export { buildXlsxPackageFromContent };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_typed_util = require("../util.cjs");
|
|
3
3
|
const require_typed_shared_metadata = require("../shared/metadata.cjs");
|
|
4
|
-
const require_typed_xlsx_shared_strings = require("./shared-strings.cjs");
|
|
5
4
|
const require_typed_xlsx_defined_names = require("./defined-names.cjs");
|
|
6
5
|
const require_typed_xlsx_number_format = require("./number-format.cjs");
|
|
7
6
|
const require_typed_xlsx_util = require("./util.cjs");
|
|
8
7
|
const require_typed_xlsx_print_settings = require("./print-settings.cjs");
|
|
9
8
|
const require_typed_xlsx_serial = require("./serial.cjs");
|
|
9
|
+
const require_typed_xlsx_shared_strings = require("./shared-strings.cjs");
|
|
10
10
|
const require_typed_xlsx_styles = require("./styles.cjs");
|
|
11
|
-
const require_typed_xlsx_comments = require("./comments.cjs");
|
|
12
11
|
const require_typed_xlsx_units = require("./units.cjs");
|
|
12
|
+
const require_typed_xlsx_comments = require("./comments.cjs");
|
|
13
13
|
let document_schema_js = require("document-schema.js");
|
|
14
14
|
//#region src/typed/xlsx/content.ts
|
|
15
15
|
const WORKBOOK_PATH = "xl/workbook.xml";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { attr, childrenWithTag, elementsWithTag, resolveRelationships, rootElement, textContent } from "../util.js";
|
|
2
2
|
import { readCoreProperties } from "../shared/metadata.js";
|
|
3
|
-
import { loadSharedStrings } from "./shared-strings.js";
|
|
4
3
|
import { readDefinedNamesBySheet } from "./defined-names.js";
|
|
5
4
|
import { classifyNumberFormat } from "./number-format.js";
|
|
6
5
|
import { readXmlBool } from "./util.js";
|
|
7
6
|
import { readPrintSettings } from "./print-settings.js";
|
|
8
7
|
import { readDate1904, serialToIsoDate, serialToIsoDateTime, serialToIsoTime } from "./serial.js";
|
|
8
|
+
import { loadSharedStrings } from "./shared-strings.js";
|
|
9
9
|
import { readCellStyles } from "./styles.js";
|
|
10
|
-
import { readSheetCellComments } from "./comments.js";
|
|
11
10
|
import { columnWidthCharsToPt } from "./units.js";
|
|
11
|
+
import { readSheetCellComments } from "./comments.js";
|
|
12
12
|
import { parseCellReference, parseRangeReference } from "document-schema.js";
|
|
13
13
|
//#region src/typed/xlsx/content.ts
|
|
14
14
|
const WORKBOOK_PATH = "xl/workbook.xml";
|
package/dist/typed/xlsx.cjs
CHANGED
|
@@ -108,7 +108,7 @@ function readMergedRanges(worksheet) {
|
|
|
108
108
|
}
|
|
109
109
|
return ranges;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function readXlsxWorkbook(pkg) {
|
|
112
112
|
const sharedStrings = require_typed_xlsx_shared_strings.loadSharedStrings(pkg);
|
|
113
113
|
const names = resolveSheetNames(pkg);
|
|
114
114
|
const definedNames = readDefinedNames(pkg);
|
|
@@ -137,4 +137,4 @@ exports.DefinedNameSchema = DefinedNameSchema;
|
|
|
137
137
|
exports.XlsxCellSchema = XlsxCellSchema;
|
|
138
138
|
exports.XlsxSheetSchema = XlsxSheetSchema;
|
|
139
139
|
exports.XlsxWorkbookSchema = XlsxWorkbookSchema;
|
|
140
|
-
exports.
|
|
140
|
+
exports.readXlsxWorkbook = readXlsxWorkbook;
|
package/dist/typed/xlsx.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as
|
|
2
|
-
export { DefinedName, DefinedNameSchema, XlsxCell, XlsxCellSchema, XlsxSheet, XlsxSheetSchema, XlsxWorkbook, XlsxWorkbookSchema,
|
|
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-CpX5nzGV.cjs";
|
|
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
|
|
2
|
-
export { DefinedName, DefinedNameSchema, XlsxCell, XlsxCellSchema, XlsxSheet, XlsxSheetSchema, XlsxWorkbook, XlsxWorkbookSchema,
|
|
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-DacFqZeF.js";
|
|
2
|
+
export { DefinedName, DefinedNameSchema, XlsxCell, XlsxCellSchema, XlsxSheet, XlsxSheetSchema, XlsxWorkbook, XlsxWorkbookSchema, readXlsxWorkbook };
|
package/dist/typed/xlsx.js
CHANGED
|
@@ -107,7 +107,7 @@ function readMergedRanges(worksheet) {
|
|
|
107
107
|
}
|
|
108
108
|
return ranges;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function readXlsxWorkbook(pkg) {
|
|
111
111
|
const sharedStrings = loadSharedStrings(pkg);
|
|
112
112
|
const names = resolveSheetNames(pkg);
|
|
113
113
|
const definedNames = readDefinedNames(pkg);
|
|
@@ -132,4 +132,4 @@ function readXlsx(pkg) {
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
//#endregion
|
|
135
|
-
export { DefinedNameSchema, XlsxCellSchema, XlsxSheetSchema, XlsxWorkbookSchema,
|
|
135
|
+
export { DefinedNameSchema, XlsxCellSchema, XlsxSheetSchema, XlsxWorkbookSchema, readXlsxWorkbook };
|
|
@@ -6,6 +6,6 @@ interface DocxContent {
|
|
|
6
6
|
readonly metadata?: DocumentMetadata;
|
|
7
7
|
readonly sections: readonly ContentSection[];
|
|
8
8
|
}
|
|
9
|
-
declare function
|
|
9
|
+
declare function buildDocxPackageFromContent(content: DocxContent): Package;
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { buildDocxPackageFromContent as n, DocxContent as t };
|
|
@@ -6,6 +6,6 @@ interface DocxContent {
|
|
|
6
6
|
readonly metadata?: DocumentMetadata;
|
|
7
7
|
readonly sections: readonly ContentSection[];
|
|
8
8
|
}
|
|
9
|
-
declare function
|
|
9
|
+
declare function buildDocxPackageFromContent(content: DocxContent): Package;
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { buildDocxPackageFromContent as n, DocxContent as t };
|
|
@@ -38,6 +38,6 @@ declare const XlsxWorkbookSchema: z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
type XlsxWorkbook = z.infer<typeof XlsxWorkbookSchema>;
|
|
41
|
-
declare function
|
|
41
|
+
declare function readXlsxWorkbook(pkg: Package): XlsxWorkbook;
|
|
42
42
|
//#endregion
|
|
43
|
-
export { XlsxSheet as a, XlsxWorkbookSchema as c, XlsxCellSchema as i,
|
|
43
|
+
export { XlsxSheet as a, XlsxWorkbookSchema as c, XlsxCellSchema as i, readXlsxWorkbook as l, DefinedNameSchema as n, XlsxSheetSchema as o, XlsxCell as r, XlsxWorkbook as s, DefinedName as t };
|
|
@@ -38,6 +38,6 @@ declare const XlsxWorkbookSchema: z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
type XlsxWorkbook = z.infer<typeof XlsxWorkbookSchema>;
|
|
41
|
-
declare function
|
|
41
|
+
declare function readXlsxWorkbook(pkg: Package): XlsxWorkbook;
|
|
42
42
|
//#endregion
|
|
43
|
-
export { XlsxSheet as a, XlsxWorkbookSchema as c, XlsxCellSchema as i,
|
|
43
|
+
export { XlsxSheet as a, XlsxWorkbookSchema as c, XlsxCellSchema as i, readXlsxWorkbook as l, DefinedNameSchema as n, XlsxSheetSchema as o, XlsxCell as r, XlsxWorkbook as s, DefinedName as t };
|
package/package.json
CHANGED
package/dist/codec-B3qT1CGZ.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { d as XmlNode } from "./node-CkBWRjNR.js";
|
|
2
|
-
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
|
-
import "./read-CMDEXqGw.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 "./read-B2-FFhqI.js";
|
|
13
|
-
import "./write-U3Ap0vHi.js";
|
|
14
|
-
import "./numbering-D0YfuiOO.js";
|
|
15
|
-
import "./read-CeCtSzjQ.js";
|
|
16
|
-
import "./xlsx-BxKODiLX.js";
|
|
17
|
-
import "./content-t6ZfmfQM.js";
|
|
18
|
-
import "./build-C0gS5QeG.js";
|
|
19
|
-
import { z } from "zod";
|
|
20
|
-
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, 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 as ContentSectionSchema$1, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, 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, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, Margins, MarginsSchema, PAGE_SIZE_A4 as PAGE_SIZE_A4$1, PAGE_SIZE_LETTER as PAGE_SIZE_LETTER$1, 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, colorToRgbHex as colorToRgbHex$1, findConstructMarkerImbalance as findConstructMarkerImbalance$1, isContentBlock, isContentConstructEnd, isContentConstructStart, rgbHexToColor as rgbHexToColor$1 } from "document-schema.js";
|
|
21
|
-
//#region src/codec.d.ts
|
|
22
|
-
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
|
-
type: z.ZodLiteral<"text">;
|
|
24
|
-
value: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
type: z.ZodLiteral<"cdata">;
|
|
27
|
-
value: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
type: z.ZodLiteral<"comment">;
|
|
30
|
-
value: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
type: z.ZodLiteral<"declaration">;
|
|
33
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
34
|
-
name: z.ZodString;
|
|
35
|
-
value: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
type: z.ZodLiteral<"pi">;
|
|
39
|
-
target: z.ZodString;
|
|
40
|
-
content: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
type: z.ZodLiteral<"element">;
|
|
43
|
-
tag: z.ZodString;
|
|
44
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
45
|
-
name: z.ZodString;
|
|
46
|
-
value: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
49
|
-
}, z.core.$strip>], "type">>>;
|
|
50
|
-
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
51
|
-
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
-
kind: z.ZodLiteral<"xml">;
|
|
53
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54
|
-
type: z.ZodLiteral<"text">;
|
|
55
|
-
value: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
type: z.ZodLiteral<"cdata">;
|
|
58
|
-
value: z.ZodString;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
type: z.ZodLiteral<"comment">;
|
|
61
|
-
value: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
type: z.ZodLiteral<"declaration">;
|
|
64
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
65
|
-
name: z.ZodString;
|
|
66
|
-
value: z.ZodString;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
type: z.ZodLiteral<"pi">;
|
|
70
|
-
target: z.ZodString;
|
|
71
|
-
content: z.ZodString;
|
|
72
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
-
type: z.ZodLiteral<"element">;
|
|
74
|
-
tag: z.ZodString;
|
|
75
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
76
|
-
name: z.ZodString;
|
|
77
|
-
value: z.ZodString;
|
|
78
|
-
}, z.core.$strip>>;
|
|
79
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
80
|
-
}, z.core.$strip>], "type">>;
|
|
81
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
-
kind: z.ZodLiteral<"binary">;
|
|
83
|
-
base64: z.ZodString;
|
|
84
|
-
}, z.core.$strip>], "kind">>;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
87
|
-
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
88
|
-
//#endregion
|
|
89
|
-
export { ContentSheet as $, ContentConstructStartSchema as A, LinkDescriptorSchema as At, ContentImageBlockSchema as B, ProvenanceChangeSchema as Bt, ContentCellBorders$1 as C, ContentTableRowSchema as Ct, ContentConstructEnd as D, FieldDescriptor as Dt, ContentCellValueSchema as E, DivisionDescriptorSchema as Et, ContentControlType as F, PAGE_SIZE_A4$1 as Ft, ContentParagraph$1 as G, colorToRgbHex$1 as Gt, ContentListMembershipSchema as H, ProvenanceDescriptorSchema as Ht, ContentControlTypeSchema as I, PAGE_SIZE_LETTER$1 as It, ContentRunSchema as J, isContentConstructEnd as Jt, ContentParagraphSchema as K, findConstructMarkerImbalance$1 as Kt, ContentDocument$1 as L, PageSize$1 as Lt, ContentControlDescriptorSchema as M, LinkTargetSchema as Mt, ContentControlLock as N, Margins as Nt, ContentConstructEndSchema as O, FieldDescriptorSchema as Ot, ContentControlLockSchema as P, MarginsSchema as Pt, ContentShapeSchema as Q, ContentDocumentSchema as R, PageSizeSchema as Rt, ContentBorderSchema as S, ContentTableRow as St, ContentCellValue as T, DivisionDescriptor as Tt, ContentPageBreak as U, SLIDE_SIZE_STANDARD as Ut, ContentListMembership as V, ProvenanceDescriptor$1 as Vt, ContentPageBreakSchema as W, SLIDE_SIZE_WIDESCREEN$1 as Wt, ContentSectionSchema$1 as X, rgbHexToColor$1 as Xt, ContentSection$1 as Y, isContentConstructStart as Yt, ContentShape as Z, ConstructDescriptorSchema as _, ContentStrokeStyle as _t, Alignment$1 as a, ContentSheetImageSchema as at, ContentBlockSchema as b, ContentTableCell as bt, AnchorDescriptorSchema as c, ContentSheetPrintSettings$1 as ct, Box$1 as d, ContentSheetRepeatRangeSchema as dt, ContentSheetCell as et, BoxSchema as f, ContentSheetRow as ft, ConstructDescriptor$1 as g, ContentSlideSchema$1 as gt, ColorSchema as h, ContentSlide as ht, xmlCodec as i, ContentSheetImage as it, ContentControlDescriptor$1 as j, LinkTarget as jt, ContentConstructStart as k, LinkDescriptor as kt, AnchorType as l, ContentSheetPrintSettingsSchema as lt, Color$1 as m, ContentSheetSchema as mt, encodePackage as n, ContentSheetColumn as nt, AlignmentSchema as o, ContentSheetPrintRange$1 as ot, COLOR_BLACK$1 as p, ContentSheetRowSchema as pt, ContentRun as q, isContentBlock as qt, packageCodec as r, ContentSheetColumnSchema as rt, AnchorDescriptor$1 as s, ContentSheetPrintRangeSchema as st, decodePackage as t, ContentSheetCellSchema as tt, AnchorTypeSchema as u, ContentSheetRepeatRange$1 as ut, ConstructMarkerImbalance as v, ContentStrokeStyleSchema as vt, ContentCellBordersSchema as w, ContentTableSchema as wt, ContentBorder as x, ContentTableCellSchema as xt, ContentBlock$1 as y, ContentTable$1 as yt, ContentImageBlock as z, ProvenanceChange$1 as zt };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { d as XmlNode } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
-
import "./read-DzmMJPHd.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 "./read-D_CpruL_.cjs";
|
|
13
|
-
import "./write-C08_maSc.cjs";
|
|
14
|
-
import "./numbering-C53LT-Jx.cjs";
|
|
15
|
-
import "./read-OBV7MMlF.cjs";
|
|
16
|
-
import "./xlsx-B97t4YE-.cjs";
|
|
17
|
-
import "./content-UlQ-Nhgi.cjs";
|
|
18
|
-
import "./build-CBL9scQK.cjs";
|
|
19
|
-
import { z } from "zod";
|
|
20
|
-
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, 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, 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, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize as PageSize$1, PageSizeSchema, ProvenanceChange as ProvenanceChange$1, ProvenanceChangeSchema, ProvenanceDescriptor as ProvenanceDescriptor$1, ProvenanceDescriptorSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart, rgbHexToColor } from "document-schema.js";
|
|
21
|
-
//#region src/codec.d.ts
|
|
22
|
-
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
|
-
type: z.ZodLiteral<"text">;
|
|
24
|
-
value: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
type: z.ZodLiteral<"cdata">;
|
|
27
|
-
value: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
type: z.ZodLiteral<"comment">;
|
|
30
|
-
value: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
type: z.ZodLiteral<"declaration">;
|
|
33
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
34
|
-
name: z.ZodString;
|
|
35
|
-
value: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
type: z.ZodLiteral<"pi">;
|
|
39
|
-
target: z.ZodString;
|
|
40
|
-
content: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
type: z.ZodLiteral<"element">;
|
|
43
|
-
tag: z.ZodString;
|
|
44
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
45
|
-
name: z.ZodString;
|
|
46
|
-
value: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
49
|
-
}, z.core.$strip>], "type">>>;
|
|
50
|
-
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
51
|
-
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
-
kind: z.ZodLiteral<"xml">;
|
|
53
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54
|
-
type: z.ZodLiteral<"text">;
|
|
55
|
-
value: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
type: z.ZodLiteral<"cdata">;
|
|
58
|
-
value: z.ZodString;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
type: z.ZodLiteral<"comment">;
|
|
61
|
-
value: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
type: z.ZodLiteral<"declaration">;
|
|
64
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
65
|
-
name: z.ZodString;
|
|
66
|
-
value: z.ZodString;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
type: z.ZodLiteral<"pi">;
|
|
70
|
-
target: z.ZodString;
|
|
71
|
-
content: z.ZodString;
|
|
72
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
-
type: z.ZodLiteral<"element">;
|
|
74
|
-
tag: z.ZodString;
|
|
75
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
76
|
-
name: z.ZodString;
|
|
77
|
-
value: z.ZodString;
|
|
78
|
-
}, z.core.$strip>>;
|
|
79
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
80
|
-
}, z.core.$strip>], "type">>;
|
|
81
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
-
kind: z.ZodLiteral<"binary">;
|
|
83
|
-
base64: z.ZodString;
|
|
84
|
-
}, z.core.$strip>], "kind">>;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
87
|
-
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
88
|
-
//#endregion
|
|
89
|
-
export { ContentSheet as $, ContentConstructStartSchema as A, LinkDescriptorSchema as At, ContentImageBlockSchema as B, ProvenanceChangeSchema as Bt, ContentCellBorders$1 as C, ContentTableRowSchema as Ct, ContentConstructEnd as D, FieldDescriptor as Dt, ContentCellValueSchema as E, DivisionDescriptorSchema as Et, ContentControlType as F, PAGE_SIZE_A4 as Ft, ContentParagraph$1 as G, colorToRgbHex as Gt, ContentListMembershipSchema as H, ProvenanceDescriptorSchema as Ht, ContentControlTypeSchema as I, PAGE_SIZE_LETTER as It, ContentRunSchema as J, isContentConstructEnd as Jt, ContentParagraphSchema as K, findConstructMarkerImbalance as Kt, ContentDocument$1 as L, PageSize$1 as Lt, ContentControlDescriptorSchema as M, LinkTargetSchema as Mt, ContentControlLock as N, Margins as Nt, ContentConstructEndSchema as O, FieldDescriptorSchema as Ot, ContentControlLockSchema as P, MarginsSchema as Pt, ContentShapeSchema as Q, ContentDocumentSchema as R, PageSizeSchema as Rt, ContentBorderSchema as S, ContentTableRow as St, ContentCellValue as T, DivisionDescriptor as Tt, ContentPageBreak as U, SLIDE_SIZE_STANDARD as Ut, ContentListMembership as V, ProvenanceDescriptor$1 as Vt, ContentPageBreakSchema as W, SLIDE_SIZE_WIDESCREEN as Wt, ContentSectionSchema as X, rgbHexToColor as Xt, ContentSection$1 as Y, isContentConstructStart as Yt, ContentShape as Z, ConstructDescriptorSchema as _, ContentStrokeStyle as _t, Alignment$1 as a, ContentSheetImageSchema as at, ContentBlockSchema as b, ContentTableCell as bt, AnchorDescriptorSchema as c, ContentSheetPrintSettings$1 as ct, Box$1 as d, ContentSheetRepeatRangeSchema as dt, ContentSheetCell as et, BoxSchema as f, ContentSheetRow as ft, ConstructDescriptor$1 as g, ContentSlideSchema as gt, ColorSchema as h, ContentSlide as ht, xmlCodec as i, ContentSheetImage as it, ContentControlDescriptor$1 as j, LinkTarget as jt, ContentConstructStart as k, LinkDescriptor as kt, AnchorType as l, ContentSheetPrintSettingsSchema as lt, Color$1 as m, ContentSheetSchema as mt, encodePackage as n, ContentSheetColumn as nt, AlignmentSchema as o, ContentSheetPrintRange$1 as ot, COLOR_BLACK as p, ContentSheetRowSchema as pt, ContentRun as q, isContentBlock as qt, packageCodec as r, ContentSheetColumnSchema as rt, AnchorDescriptor$1 as s, ContentSheetPrintRangeSchema as st, decodePackage as t, ContentSheetCellSchema as tt, AnchorTypeSchema as u, ContentSheetRepeatRange$1 as ut, ConstructMarkerImbalance as v, ContentStrokeStyleSchema as vt, ContentCellBordersSchema as w, ContentTableSchema as wt, ContentBorder as x, ContentTableCellSchema as xt, ContentBlock$1 as y, ContentTable$1 as yt, ContentImageBlock as z, ProvenanceChange$1 as zt };
|