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
package/dist/index.cjs
CHANGED
|
@@ -15,12 +15,12 @@ const require_typed_util = require("./typed/util.cjs");
|
|
|
15
15
|
const require_typed_shared_color = require("./typed/shared/color.cjs");
|
|
16
16
|
const require_typed_shared_metadata = require("./typed/shared/metadata.cjs");
|
|
17
17
|
const require_image_sniff = require("./image/sniff.cjs");
|
|
18
|
-
const require_read = require("./read-
|
|
18
|
+
const require_read = require("./read-CXksZHJW.cjs");
|
|
19
19
|
const require_typed_xlsx_content = require("./typed/xlsx/content.cjs");
|
|
20
20
|
const require_typed_docx_numbering = require("./typed/docx/numbering.cjs");
|
|
21
21
|
const require_typed_xlsx_build = require("./typed/xlsx/build.cjs");
|
|
22
22
|
const require_typed_docx_write = require("./typed/docx/write.cjs");
|
|
23
|
-
const
|
|
23
|
+
const require_typed_document_tree = require("./typed/document-tree.cjs");
|
|
24
24
|
const require_typed_xlsx = require("./typed/xlsx.cjs");
|
|
25
25
|
let document_schema_js = require("document-schema.js");
|
|
26
26
|
Object.defineProperty(exports, "AlignmentSchema", {
|
|
@@ -265,10 +265,10 @@ Object.defineProperty(exports, "DivisionDescriptorSchema", {
|
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
exports.DocumentMetadataSchema = require_typed_shared_metadata.DocumentMetadataSchema;
|
|
268
|
-
Object.defineProperty(exports, "
|
|
268
|
+
Object.defineProperty(exports, "DocumentTreeSchema", {
|
|
269
269
|
enumerable: true,
|
|
270
270
|
get: function() {
|
|
271
|
-
return document_schema_js.
|
|
271
|
+
return document_schema_js.DocumentTreeSchema;
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
exports.DocxDocumentSchema = require_read.DocxDocumentSchema;
|
|
@@ -330,30 +330,6 @@ Object.defineProperty(exports, "PAGE_SIZE_LETTER", {
|
|
|
330
330
|
return document_schema_js.PAGE_SIZE_LETTER;
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
|
-
Object.defineProperty(exports, "PackageBlockLeafSchema", {
|
|
334
|
-
enumerable: true,
|
|
335
|
-
get: function() {
|
|
336
|
-
return document_schema_js.PackageBlockLeafSchema;
|
|
337
|
-
}
|
|
338
|
-
});
|
|
339
|
-
Object.defineProperty(exports, "PackageGroupSchema", {
|
|
340
|
-
enumerable: true,
|
|
341
|
-
get: function() {
|
|
342
|
-
return document_schema_js.PackageGroupSchema;
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
Object.defineProperty(exports, "PackageLeafSchema", {
|
|
346
|
-
enumerable: true,
|
|
347
|
-
get: function() {
|
|
348
|
-
return document_schema_js.PackageLeafSchema;
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
Object.defineProperty(exports, "PackageNodeSchema", {
|
|
352
|
-
enumerable: true,
|
|
353
|
-
get: function() {
|
|
354
|
-
return document_schema_js.PackageNodeSchema;
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
333
|
exports.PackageSchema = require_model_package.PackageSchema;
|
|
358
334
|
Object.defineProperty(exports, "PageSizeSchema", {
|
|
359
335
|
enumerable: true,
|
|
@@ -448,6 +424,30 @@ Object.defineProperty(exports, "StylesTableSchema", {
|
|
|
448
424
|
return document_schema_js.StylesTableSchema;
|
|
449
425
|
}
|
|
450
426
|
});
|
|
427
|
+
Object.defineProperty(exports, "TreeBlockLeafSchema", {
|
|
428
|
+
enumerable: true,
|
|
429
|
+
get: function() {
|
|
430
|
+
return document_schema_js.TreeBlockLeafSchema;
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
Object.defineProperty(exports, "TreeGroupSchema", {
|
|
434
|
+
enumerable: true,
|
|
435
|
+
get: function() {
|
|
436
|
+
return document_schema_js.TreeGroupSchema;
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
Object.defineProperty(exports, "TreeLeafSchema", {
|
|
440
|
+
enumerable: true,
|
|
441
|
+
get: function() {
|
|
442
|
+
return document_schema_js.TreeLeafSchema;
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
Object.defineProperty(exports, "TreeNodeSchema", {
|
|
446
|
+
enumerable: true,
|
|
447
|
+
get: function() {
|
|
448
|
+
return document_schema_js.TreeNodeSchema;
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
451
|
exports.XlsxCellSchema = require_typed_xlsx.XlsxCellSchema;
|
|
452
452
|
exports.XlsxSheetSchema = require_typed_xlsx.XlsxSheetSchema;
|
|
453
453
|
exports.XlsxWorkbookSchema = require_typed_xlsx.XlsxWorkbookSchema;
|
|
@@ -472,17 +472,17 @@ Object.defineProperty(exports, "applyRunStyleProperties", {
|
|
|
472
472
|
return document_schema_js.applyRunStyleProperties;
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
|
-
Object.defineProperty(exports, "
|
|
475
|
+
Object.defineProperty(exports, "assembleTree", {
|
|
476
476
|
enumerable: true,
|
|
477
477
|
get: function() {
|
|
478
|
-
return document_schema_js.
|
|
478
|
+
return document_schema_js.assembleTree;
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
481
|
exports.attr = require_typed_util.attr;
|
|
482
482
|
exports.base64ToBytes = require_util_base64.base64ToBytes;
|
|
483
|
-
exports.buildDocxPackage =
|
|
483
|
+
exports.buildDocxPackage = require_typed_document_tree.buildDocxPackage;
|
|
484
484
|
exports.buildDocxPackageFromContent = require_typed_docx_write.buildDocxPackageFromContent;
|
|
485
|
-
exports.buildXlsxPackage =
|
|
485
|
+
exports.buildXlsxPackage = require_typed_document_tree.buildXlsxPackage;
|
|
486
486
|
exports.buildXlsxPackageFromContent = require_typed_xlsx_build.buildXlsxPackageFromContent;
|
|
487
487
|
exports.buildXml = require_xml_build.buildXml;
|
|
488
488
|
exports.bytesToBase64 = require_util_base64.bytesToBase64;
|
|
@@ -521,10 +521,10 @@ Object.defineProperty(exports, "findConstructMarkerImbalance", {
|
|
|
521
521
|
return document_schema_js.findConstructMarkerImbalance;
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
|
-
Object.defineProperty(exports, "
|
|
524
|
+
Object.defineProperty(exports, "flattenTree", {
|
|
525
525
|
enumerable: true,
|
|
526
526
|
get: function() {
|
|
527
|
-
return document_schema_js.
|
|
527
|
+
return document_schema_js.flattenTree;
|
|
528
528
|
}
|
|
529
529
|
});
|
|
530
530
|
exports.fromCompact = require_compact.fromCompact;
|
|
@@ -565,64 +565,64 @@ Object.defineProperty(exports, "isListGroupNode", {
|
|
|
565
565
|
return document_schema_js.isListGroupNode;
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
|
-
Object.defineProperty(exports, "
|
|
568
|
+
Object.defineProperty(exports, "isSectionConstructGroupNode", {
|
|
569
569
|
enumerable: true,
|
|
570
570
|
get: function() {
|
|
571
|
-
return document_schema_js.
|
|
571
|
+
return document_schema_js.isSectionConstructGroupNode;
|
|
572
572
|
}
|
|
573
573
|
});
|
|
574
|
-
Object.defineProperty(exports, "
|
|
574
|
+
Object.defineProperty(exports, "isSectionGroupNode", {
|
|
575
575
|
enumerable: true,
|
|
576
576
|
get: function() {
|
|
577
|
-
return document_schema_js.
|
|
577
|
+
return document_schema_js.isSectionGroupNode;
|
|
578
578
|
}
|
|
579
579
|
});
|
|
580
|
-
Object.defineProperty(exports, "
|
|
580
|
+
Object.defineProperty(exports, "isShapeConstructGroupNode", {
|
|
581
581
|
enumerable: true,
|
|
582
582
|
get: function() {
|
|
583
|
-
return document_schema_js.
|
|
583
|
+
return document_schema_js.isShapeConstructGroupNode;
|
|
584
584
|
}
|
|
585
585
|
});
|
|
586
|
-
Object.defineProperty(exports, "
|
|
586
|
+
Object.defineProperty(exports, "isShapeGroupNode", {
|
|
587
587
|
enumerable: true,
|
|
588
588
|
get: function() {
|
|
589
|
-
return document_schema_js.
|
|
589
|
+
return document_schema_js.isShapeGroupNode;
|
|
590
590
|
}
|
|
591
591
|
});
|
|
592
|
-
Object.defineProperty(exports, "
|
|
592
|
+
Object.defineProperty(exports, "isSheetGroupNode", {
|
|
593
593
|
enumerable: true,
|
|
594
594
|
get: function() {
|
|
595
|
-
return document_schema_js.
|
|
595
|
+
return document_schema_js.isSheetGroupNode;
|
|
596
596
|
}
|
|
597
597
|
});
|
|
598
|
-
Object.defineProperty(exports, "
|
|
598
|
+
Object.defineProperty(exports, "isSlideGroupNode", {
|
|
599
599
|
enumerable: true,
|
|
600
600
|
get: function() {
|
|
601
|
-
return document_schema_js.
|
|
601
|
+
return document_schema_js.isSlideGroupNode;
|
|
602
602
|
}
|
|
603
603
|
});
|
|
604
|
-
Object.defineProperty(exports, "
|
|
604
|
+
Object.defineProperty(exports, "isTreeBlockLeaf", {
|
|
605
605
|
enumerable: true,
|
|
606
606
|
get: function() {
|
|
607
|
-
return document_schema_js.
|
|
607
|
+
return document_schema_js.isTreeBlockLeaf;
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
|
-
Object.defineProperty(exports, "
|
|
610
|
+
Object.defineProperty(exports, "isTreeGroup", {
|
|
611
611
|
enumerable: true,
|
|
612
612
|
get: function() {
|
|
613
|
-
return document_schema_js.
|
|
613
|
+
return document_schema_js.isTreeGroup;
|
|
614
614
|
}
|
|
615
615
|
});
|
|
616
|
-
Object.defineProperty(exports, "
|
|
616
|
+
Object.defineProperty(exports, "isTreeLeaf", {
|
|
617
617
|
enumerable: true,
|
|
618
618
|
get: function() {
|
|
619
|
-
return document_schema_js.
|
|
619
|
+
return document_schema_js.isTreeLeaf;
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
|
-
Object.defineProperty(exports, "
|
|
622
|
+
Object.defineProperty(exports, "isTreeNode", {
|
|
623
623
|
enumerable: true,
|
|
624
624
|
get: function() {
|
|
625
|
-
return document_schema_js.
|
|
625
|
+
return document_schema_js.isTreeNode;
|
|
626
626
|
}
|
|
627
627
|
});
|
|
628
628
|
exports.isXmlNode = require_model_node.isXmlNode;
|
|
@@ -635,12 +635,12 @@ Object.defineProperty(exports, "overlayStyleEntries", {
|
|
|
635
635
|
exports.packageCodec = require_codec.packageCodec;
|
|
636
636
|
exports.parsePackage = require_package_io_read.parsePackage;
|
|
637
637
|
exports.parseXml = require_xml_parse.parseXml;
|
|
638
|
-
exports.readDocx =
|
|
638
|
+
exports.readDocx = require_typed_document_tree.readDocx;
|
|
639
639
|
exports.readDocxContent = require_read.readDocxContent;
|
|
640
640
|
exports.readNumberingDefinitions = require_typed_docx_numbering.readNumberingDefinitions;
|
|
641
|
-
exports.readPptx =
|
|
641
|
+
exports.readPptx = require_typed_document_tree.readPptx;
|
|
642
642
|
exports.readPptxContent = require_read.readPptxContent;
|
|
643
|
-
exports.readXlsx =
|
|
643
|
+
exports.readXlsx = require_typed_document_tree.readXlsx;
|
|
644
644
|
exports.readXlsxContent = require_typed_xlsx_content.readXlsxContent;
|
|
645
645
|
exports.readXlsxWorkbook = require_typed_xlsx.readXlsxWorkbook;
|
|
646
646
|
exports.resolveRelationships = require_typed_util.resolveRelationships;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "./node-
|
|
2
|
-
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "./package-
|
|
3
|
-
import { n as parsePackage } from "./read-
|
|
4
|
-
import { t as serializePackage } from "./write-
|
|
5
|
-
import { t as parseXml } from "./parse-
|
|
6
|
-
import { t as buildXml } from "./build
|
|
7
|
-
import { n as txt, t as el } from "./fragment-
|
|
1
|
+
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "./node-B6JX5CRX.cjs";
|
|
2
|
+
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "./package-DMk9fuTI.cjs";
|
|
3
|
+
import { n as parsePackage } from "./read-uKN0paUP.cjs";
|
|
4
|
+
import { t as serializePackage } from "./write-Ba1IxfDT.cjs";
|
|
5
|
+
import { t as parseXml } from "./parse-DcVtB3jT.cjs";
|
|
6
|
+
import { t as buildXml } from "./build--uPsivid.cjs";
|
|
7
|
+
import { n as txt, t as el } from "./fragment-9dNg-m46.cjs";
|
|
8
8
|
import { t as encodeXmlText } from "./entities-6DuTszqf.cjs";
|
|
9
9
|
import { n as zipPackage, t as unzipPackage } from "./zip-Ckbv-mtV.cjs";
|
|
10
10
|
import { n as bytesToBase64, t as base64ToBytes } from "./base64--HuymRl_.cjs";
|
|
11
|
-
import { a as elementsWithTag, c as textContent, i as decodeEntities, l as walk, n as attr, o as resolveRelationships, r as childrenWithTag, s as rootElement, t as Relationship } from "./util-
|
|
12
|
-
import { _ as encodeCompactPackage, b as toCompact, c as CompactPart, f as CompactXmlNode, g as decodeCompactPackage, h as compactPackageCodec, l as CompactPartSchema, m as compactCodec, o as CompactPackage, p as CompactXmlNodeSchema, s as CompactPackageSchema, t as CompactAttrPairs, v as fromCompact, y as isCompactXmlNode } from "./compact-
|
|
13
|
-
import { n as applyColorTransforms, t as ColorTransform } from "./color-
|
|
14
|
-
import { n as DocumentMetadataSchema, t as DocumentMetadata } from "./metadata-
|
|
15
|
-
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-
|
|
16
|
-
import { i as buildDocxPackageFromContent, n as DocxContent, r as EmbeddedPresentationSerialiser, t as BuildDocxContentOptions } from "./write-
|
|
17
|
-
import { a as readXlsx, i as readPptx, n as buildXlsxPackage, r as readDocx, t as buildDocxPackage } from "./document-
|
|
18
|
-
import { a as Footnote, c as HeaderFooterPartSchema, d as readDocxContent, i as DocxDocumentSchema, l as SectionHeaderFooterReferences, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as HeaderFooterPart, t as Comment, u as SectionHeaderFooterReferencesSchema } from "./read-
|
|
19
|
-
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "./numbering-
|
|
20
|
-
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "./read-
|
|
21
|
-
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-
|
|
22
|
-
import { t as readXlsxContent } from "./content-
|
|
23
|
-
import { t as buildXlsxPackageFromContent } from "./build-
|
|
24
|
-
import { $ as ContentShapeSchema, $n as isHeadingGroupNode, $t as
|
|
25
|
-
export { type Alignment, AlignmentSchema, type AnchorDescriptor, AnchorDescriptorSchema, type AnchorType, AnchorTypeSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, type BuildDocxContentOptions, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ConstructDescriptor, ConstructDescriptorSchema, type ConstructMarkerImbalance, ConstructMarkerImbalanceError, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentConstructEnd, ContentConstructEndSchema, type ContentConstructStart, ContentConstructStartSchema, type ContentControlDescriptor, ContentControlDescriptorSchema, type ContentControlLock, ContentControlLockSchema, type ContentControlType, ContentControlTypeSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DivisionDescriptor, DivisionDescriptorSchema, type DocumentMetadata, DocumentMetadataSchema, type
|
|
11
|
+
import { a as elementsWithTag, c as textContent, i as decodeEntities, l as walk, n as attr, o as resolveRelationships, r as childrenWithTag, s as rootElement, t as Relationship } from "./util-xRsVgH-g.cjs";
|
|
12
|
+
import { _ as encodeCompactPackage, b as toCompact, c as CompactPart, f as CompactXmlNode, g as decodeCompactPackage, h as compactPackageCodec, l as CompactPartSchema, m as compactCodec, o as CompactPackage, p as CompactXmlNodeSchema, s as CompactPackageSchema, t as CompactAttrPairs, v as fromCompact, y as isCompactXmlNode } from "./compact-DMCbYORW.cjs";
|
|
13
|
+
import { n as applyColorTransforms, t as ColorTransform } from "./color-DLoZOrg3.cjs";
|
|
14
|
+
import { n as DocumentMetadataSchema, t as DocumentMetadata } from "./metadata-C74-XCrx.cjs";
|
|
15
|
+
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-DGOBHA0O.cjs";
|
|
16
|
+
import { i as buildDocxPackageFromContent, n as DocxContent, r as EmbeddedPresentationSerialiser, t as BuildDocxContentOptions } from "./write-BGTpp3RS.cjs";
|
|
17
|
+
import { a as readXlsx, i as readPptx, n as buildXlsxPackage, r as readDocx, t as buildDocxPackage } from "./document-tree-CjI-Z4Tp.cjs";
|
|
18
|
+
import { a as Footnote, c as HeaderFooterPartSchema, d as readDocxContent, i as DocxDocumentSchema, l as SectionHeaderFooterReferences, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as HeaderFooterPart, t as Comment, u as SectionHeaderFooterReferencesSchema } from "./read-D6kQeo-T.cjs";
|
|
19
|
+
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "./numbering-vpq3iLPm.cjs";
|
|
20
|
+
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "./read-C1h_Q4kx.cjs";
|
|
21
|
+
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";
|
|
22
|
+
import { t as readXlsxContent } from "./content-BiYr86lr.cjs";
|
|
23
|
+
import { t as buildXlsxPackageFromContent } from "./build-BY9Mn-4K.cjs";
|
|
24
|
+
import { $ as ContentShapeSchema, $n as isHeadingGroupNode, $t as ProvenanceChange, A as ContentConstructStart, An as StylesTable, At as DrawPageChild, B as ContentImageBlock, Bn as TreeNodeSchema, Bt as LinkDescriptorSchema, C as ContentBorderSchema, Cn as SlideGroupSchema, Ct as ContentTableRow, D as ContentCellValueSchema, Dn as StyleParagraphPropertiesSchema, Dt as DivisionDescriptorSchema, E as ContentCellValue, En as StyleParagraphProperties, Et as DivisionDescriptor, F as ContentControlLockSchema, Fn as TreeGroup, Ft as FieldDescriptorSchema, G as ContentPageBreakSchema, Gn as decompose, Gt as ListGroupSchema, H as ContentListMembership, Hn as applyRunStyleProperties, Ht as LinkTargetSchema, I as ContentControlType, In as TreeGroupSchema, It as HeadingGroupNode, J as ContentRun, Jn as flattenTree, Jt as MarginsSchema, K as ContentParagraph, Kn as factorStyles, Kt as ListParagraph, L as ContentControlTypeSchema, Ln as TreeLeaf, Lt as HeadingGroupSchema, M as ContentControlDescriptor, Mn as TreeBlockLeaf, Mt as DrawPageGroupNode, N as ContentControlDescriptorSchema, Nn as TreeBlockLeafSchema, Nt as DrawPageGroupSchema, O as ContentConstructEnd, On as StyleRunProperties, Ot as DocumentTree, P as ContentControlLock, Pn as TreeChildren, Pt as FieldDescriptor, Q as ContentShape, Qn as isDrawPageGroupNode, Qt as PageSizeSchema, R as ContentDocument, Rn as TreeLeafSchema, Rt as HeadingParagraph, S as ContentBorder, Sn as SlideGroupNode, St as ContentTableCellSchema, T as ContentCellBordersSchema, Tn as StyleEntrySchema, Tt as ContentTableSchema, U as ContentListMembershipSchema, Un as assembleTree, Ut as ListChild, V as ContentImageBlockSchema, Vn as applyParagraphStyleProperties, Vt as LinkTarget, W as ContentPageBreak, Wn as colorToRgbHex, Wt as ListGroupNode, X as ContentSection, Xn as isContentConstructEnd, Xt as PAGE_SIZE_LETTER, Y as ContentRunSchema, Yn as isContentBlock, Yt as PAGE_SIZE_A4, Z as ContentSectionSchema, Zn as isContentConstructStart, Zt as PageSize, _ as ConstructDescriptorSchema, _n as SheetChild, _t as ContentSlideSchema, a as Alignment, an as SectionChild, ar as isSheetGroupNode, at as ContentSheetImage, b as ContentBlock, bn as SheetGroupSchema, bt as ContentTable, c as AnchorDescriptorSchema, cn as SectionDescriptor, cr as isTreeGroup, ct as ContentSheetPrintRangeSchema, d as Box, dn as ShapeChild, dr as overlayStyleEntries, dt as ContentSheetRepeatRange, en as ProvenanceChangeSchema, er as isListGroupNode, et as ContentSheet, f as BoxSchema, fn as ShapeConstructGroupNode, fr as resolveStyleChain, ft as ContentSheetRepeatRangeSchema, g as ConstructDescriptor, gn as ShapeGroupSchema, gt as ContentSlide, h as ColorSchema, hn as ShapeGroupNode, ht as ContentSheetSchema, i as xmlCodec, in as SLIDE_SIZE_WIDESCREEN, ir as isShapeGroupNode, it as ContentSheetColumnSchema, j as ContentConstructStartSchema, jn as StylesTableSchema, jt as DrawPageDescriptor, k as ContentConstructEndSchema, kn as StyleRunPropertiesSchema, kt as DocumentTreeSchema, l as AnchorType, ln as SectionGroupNode, lr as isTreeLeaf, lt as ContentSheetPrintSettings, m as Color, mn as ShapeDescriptor, mt as ContentSheetRowSchema, n as encodePackage, nn as ProvenanceDescriptorSchema, nr as isSectionGroupNode, nt as ContentSheetCellSchema, o as AlignmentSchema, on as SectionConstructGroupNode, or as isSlideGroupNode, ot as ContentSheetImageSchema, p as COLOR_BLACK, pn as ShapeConstructGroupSchema, pr as rgbHexToColor, pt as ContentSheetRow, q as ContentParagraphSchema, qn as findConstructMarkerImbalance, qt as Margins, r as packageCodec, rn as SLIDE_SIZE_STANDARD, rr as isShapeConstructGroupNode, rt as ContentSheetColumn, s as AnchorDescriptor, sn as SectionConstructGroupSchema, sr as isTreeBlockLeaf, st as ContentSheetPrintRange, t as decodePackage, tn as ProvenanceDescriptor, tr as isSectionConstructGroupNode, tt as ContentSheetCell, u as AnchorTypeSchema, un as SectionGroupSchema, ur as isTreeNode, ut as ContentSheetPrintSettingsSchema, v as ConstructMarkerImbalance, vn as SheetDescriptor, vt as ContentStrokeStyle, w as ContentCellBorders, wn as StyleEntry, wt as ContentTableRowSchema, x as ContentBlockSchema, xn as SlideDescriptor, xt as ContentTableCell, y as ConstructMarkerImbalanceError, yn as SheetGroupNode, yt as ContentStrokeStyleSchema, z as ContentDocumentSchema, zn as TreeNode, zt as LinkDescriptor } from "./codec-BBM1RYx7.cjs";
|
|
25
|
+
export { type Alignment, AlignmentSchema, type AnchorDescriptor, AnchorDescriptorSchema, type AnchorType, AnchorTypeSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, type BuildDocxContentOptions, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ConstructDescriptor, ConstructDescriptorSchema, type ConstructMarkerImbalance, ConstructMarkerImbalanceError, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentConstructEnd, ContentConstructEndSchema, type ContentConstructStart, ContentConstructStartSchema, type ContentControlDescriptor, ContentControlDescriptorSchema, type ContentControlLock, ContentControlLockSchema, type ContentControlType, ContentControlTypeSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DivisionDescriptor, DivisionDescriptorSchema, type DocumentMetadata, DocumentMetadataSchema, type DocumentTree, DocumentTreeSchema, type DocxContent, type DocxDocument, DocxDocumentSchema, type DrawPageChild, type DrawPageDescriptor, type DrawPageGroupNode, DrawPageGroupSchema, type EmbeddedPresentationSerialiser, type FieldDescriptor, FieldDescriptorSchema, type Footnote, FootnoteSchema, type HeaderFooterPart, HeaderFooterPartSchema, type HeadingGroupNode, HeadingGroupSchema, type HeadingParagraph, type ImageFormat, type LinkDescriptor, LinkDescriptorSchema, type LinkTarget, LinkTargetSchema, type ListChild, type ListGroupNode, ListGroupSchema, type ListParagraph, type Margins, MarginsSchema, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, PageSizeSchema, type Part, PartSchema, type PptxDocument, PptxDocumentSchema, type ProvenanceChange, ProvenanceChangeSchema, type ProvenanceDescriptor, ProvenanceDescriptorSchema, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SectionChild, type SectionConstructGroupNode, SectionConstructGroupSchema, type SectionDescriptor, type SectionGroupNode, SectionGroupSchema, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type ShapeChild, type ShapeConstructGroupNode, ShapeConstructGroupSchema, type ShapeDescriptor, type ShapeGroupNode, ShapeGroupSchema, type SheetChild, type SheetDescriptor, type SheetGroupNode, SheetGroupSchema, type SlideDescriptor, type SlideGroupNode, SlideGroupSchema, type StyleEntry, StyleEntrySchema, type StyleParagraphProperties, StyleParagraphPropertiesSchema, type StyleRunProperties, StyleRunPropertiesSchema, type StylesTable, StylesTableSchema, type TreeBlockLeaf, TreeBlockLeafSchema, type TreeChildren, type TreeGroup, TreeGroupSchema, type TreeLeaf, TreeLeafSchema, type TreeNode, TreeNodeSchema, type XlsxCell, XlsxCellSchema, type XlsxSheet, XlsxSheetSchema, type XlsxWorkbook, XlsxWorkbookSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyColorTransforms, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, attr, base64ToBytes, buildDocxPackage, buildDocxPackageFromContent, buildXlsxPackage, buildXlsxPackageFromContent, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, decompose, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, factorStyles, findConstructMarkerImbalance, flattenTree, fromCompact, isCompactXmlNode, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, isXmlNode, overlayStyleEntries, packageCodec, parsePackage, parseXml, readDocx, readDocxContent, readNumberingDefinitions, readPptx, readPptxContent, readXlsx, readXlsxContent, readXlsxWorkbook, resolveRelationships, resolveStyleChain, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "./node-
|
|
2
|
-
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "./package-
|
|
3
|
-
import { n as parsePackage } from "./read-
|
|
4
|
-
import { t as serializePackage } from "./write-
|
|
5
|
-
import { t as parseXml } from "./parse-
|
|
6
|
-
import { t as buildXml } from "./build-
|
|
7
|
-
import { n as txt, t as el } from "./fragment-
|
|
1
|
+
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "./node-B6JX5CRX.js";
|
|
2
|
+
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "./package-otZYrxiO.js";
|
|
3
|
+
import { n as parsePackage } from "./read-BlcKA9Cg.js";
|
|
4
|
+
import { t as serializePackage } from "./write-C4902scQ.js";
|
|
5
|
+
import { t as parseXml } from "./parse-BLukZ2z0.js";
|
|
6
|
+
import { t as buildXml } from "./build-DgBE0bmv.js";
|
|
7
|
+
import { n as txt, t as el } from "./fragment-ClgCV_if.js";
|
|
8
8
|
import { t as encodeXmlText } from "./entities-6DuTszqf.js";
|
|
9
9
|
import { n as zipPackage, t as unzipPackage } from "./zip-Ckbv-mtV.js";
|
|
10
10
|
import { n as bytesToBase64, t as base64ToBytes } from "./base64--HuymRl_.js";
|
|
11
|
-
import { a as elementsWithTag, c as textContent, i as decodeEntities, l as walk, n as attr, o as resolveRelationships, r as childrenWithTag, s as rootElement, t as Relationship } from "./util-
|
|
12
|
-
import { _ as encodeCompactPackage, b as toCompact, c as CompactPart, f as CompactXmlNode, g as decodeCompactPackage, h as compactPackageCodec, l as CompactPartSchema, m as compactCodec, o as CompactPackage, p as CompactXmlNodeSchema, s as CompactPackageSchema, t as CompactAttrPairs, v as fromCompact, y as isCompactXmlNode } from "./compact-
|
|
13
|
-
import { n as applyColorTransforms, t as ColorTransform } from "./color-
|
|
14
|
-
import { n as DocumentMetadataSchema, t as DocumentMetadata } from "./metadata-
|
|
15
|
-
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-
|
|
16
|
-
import { i as buildDocxPackageFromContent, n as DocxContent, r as EmbeddedPresentationSerialiser, t as BuildDocxContentOptions } from "./write-
|
|
17
|
-
import { a as readXlsx, i as readPptx, n as buildXlsxPackage, r as readDocx, t as buildDocxPackage } from "./document-
|
|
18
|
-
import { a as Footnote, c as HeaderFooterPartSchema, d as readDocxContent, i as DocxDocumentSchema, l as SectionHeaderFooterReferences, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as HeaderFooterPart, t as Comment, u as SectionHeaderFooterReferencesSchema } from "./read-
|
|
19
|
-
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "./numbering-
|
|
20
|
-
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "./read-
|
|
21
|
-
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-
|
|
22
|
-
import { t as readXlsxContent } from "./content-
|
|
23
|
-
import { t as buildXlsxPackageFromContent } from "./build-
|
|
24
|
-
import { $ as ContentShapeSchema, $n as isHeadingGroupNode, $t as
|
|
25
|
-
export { type Alignment, AlignmentSchema, type AnchorDescriptor, AnchorDescriptorSchema, type AnchorType, AnchorTypeSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, type BuildDocxContentOptions, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ConstructDescriptor, ConstructDescriptorSchema, type ConstructMarkerImbalance, ConstructMarkerImbalanceError, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentConstructEnd, ContentConstructEndSchema, type ContentConstructStart, ContentConstructStartSchema, type ContentControlDescriptor, ContentControlDescriptorSchema, type ContentControlLock, ContentControlLockSchema, type ContentControlType, ContentControlTypeSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DivisionDescriptor, DivisionDescriptorSchema, type DocumentMetadata, DocumentMetadataSchema, type
|
|
11
|
+
import { a as elementsWithTag, c as textContent, i as decodeEntities, l as walk, n as attr, o as resolveRelationships, r as childrenWithTag, s as rootElement, t as Relationship } from "./util-DKrYuajM.js";
|
|
12
|
+
import { _ as encodeCompactPackage, b as toCompact, c as CompactPart, f as CompactXmlNode, g as decodeCompactPackage, h as compactPackageCodec, l as CompactPartSchema, m as compactCodec, o as CompactPackage, p as CompactXmlNodeSchema, s as CompactPackageSchema, t as CompactAttrPairs, v as fromCompact, y as isCompactXmlNode } from "./compact-CmOeA2dl.js";
|
|
13
|
+
import { n as applyColorTransforms, t as ColorTransform } from "./color-DLoZOrg3.js";
|
|
14
|
+
import { n as DocumentMetadataSchema, t as DocumentMetadata } from "./metadata-Bjfa88HQ.js";
|
|
15
|
+
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-DGOBHA0O.js";
|
|
16
|
+
import { i as buildDocxPackageFromContent, n as DocxContent, r as EmbeddedPresentationSerialiser, t as BuildDocxContentOptions } from "./write-Cnfu3zdB.js";
|
|
17
|
+
import { a as readXlsx, i as readPptx, n as buildXlsxPackage, r as readDocx, t as buildDocxPackage } from "./document-tree-B17XbBOR.js";
|
|
18
|
+
import { a as Footnote, c as HeaderFooterPartSchema, d as readDocxContent, i as DocxDocumentSchema, l as SectionHeaderFooterReferences, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as HeaderFooterPart, t as Comment, u as SectionHeaderFooterReferencesSchema } from "./read-D_kXw2N2.js";
|
|
19
|
+
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "./numbering-CUMTFxfk.js";
|
|
20
|
+
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "./read-B5kexLpc.js";
|
|
21
|
+
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";
|
|
22
|
+
import { t as readXlsxContent } from "./content-D1pmxaUb.js";
|
|
23
|
+
import { t as buildXlsxPackageFromContent } from "./build-BOI7rIog.js";
|
|
24
|
+
import { $ as ContentShapeSchema, $n as isHeadingGroupNode, $t as ProvenanceChange, A as ContentConstructStart, An as StylesTable, At as DrawPageChild, B as ContentImageBlock, Bn as TreeNodeSchema, Bt as LinkDescriptorSchema, C as ContentBorderSchema, Cn as SlideGroupSchema, Ct as ContentTableRow, D as ContentCellValueSchema, Dn as StyleParagraphPropertiesSchema, Dt as DivisionDescriptorSchema, E as ContentCellValue, En as StyleParagraphProperties, Et as DivisionDescriptor, F as ContentControlLockSchema, Fn as TreeGroup, Ft as FieldDescriptorSchema, G as ContentPageBreakSchema, Gn as decompose, Gt as ListGroupSchema, H as ContentListMembership, Hn as applyRunStyleProperties, Ht as LinkTargetSchema, I as ContentControlType, In as TreeGroupSchema, It as HeadingGroupNode, J as ContentRun, Jn as flattenTree, Jt as MarginsSchema, K as ContentParagraph, Kn as factorStyles, Kt as ListParagraph, L as ContentControlTypeSchema, Ln as TreeLeaf, Lt as HeadingGroupSchema, M as ContentControlDescriptor, Mn as TreeBlockLeaf, Mt as DrawPageGroupNode, N as ContentControlDescriptorSchema, Nn as TreeBlockLeafSchema, Nt as DrawPageGroupSchema, O as ContentConstructEnd, On as StyleRunProperties, Ot as DocumentTree, P as ContentControlLock, Pn as TreeChildren, Pt as FieldDescriptor, Q as ContentShape, Qn as isDrawPageGroupNode, Qt as PageSizeSchema, R as ContentDocument, Rn as TreeLeafSchema, Rt as HeadingParagraph, S as ContentBorder, Sn as SlideGroupNode, St as ContentTableCellSchema, T as ContentCellBordersSchema, Tn as StyleEntrySchema, Tt as ContentTableSchema, U as ContentListMembershipSchema, Un as assembleTree, Ut as ListChild, V as ContentImageBlockSchema, Vn as applyParagraphStyleProperties, Vt as LinkTarget, W as ContentPageBreak, Wn as colorToRgbHex, Wt as ListGroupNode, X as ContentSection, Xn as isContentConstructEnd, Xt as PAGE_SIZE_LETTER, Y as ContentRunSchema, Yn as isContentBlock, Yt as PAGE_SIZE_A4, Z as ContentSectionSchema, Zn as isContentConstructStart, Zt as PageSize, _ as ConstructDescriptorSchema, _n as SheetChild, _t as ContentSlideSchema, a as Alignment, an as SectionChild, ar as isSheetGroupNode, at as ContentSheetImage, b as ContentBlock, bn as SheetGroupSchema, bt as ContentTable, c as AnchorDescriptorSchema, cn as SectionDescriptor, cr as isTreeGroup, ct as ContentSheetPrintRangeSchema, d as Box, dn as ShapeChild, dr as overlayStyleEntries, dt as ContentSheetRepeatRange, en as ProvenanceChangeSchema, er as isListGroupNode, et as ContentSheet, f as BoxSchema, fn as ShapeConstructGroupNode, fr as resolveStyleChain, ft as ContentSheetRepeatRangeSchema, g as ConstructDescriptor, gn as ShapeGroupSchema, gt as ContentSlide, h as ColorSchema, hn as ShapeGroupNode, ht as ContentSheetSchema, i as xmlCodec, in as SLIDE_SIZE_WIDESCREEN, ir as isShapeGroupNode, it as ContentSheetColumnSchema, j as ContentConstructStartSchema, jn as StylesTableSchema, jt as DrawPageDescriptor, k as ContentConstructEndSchema, kn as StyleRunPropertiesSchema, kt as DocumentTreeSchema, l as AnchorType, ln as SectionGroupNode, lr as isTreeLeaf, lt as ContentSheetPrintSettings, m as Color, mn as ShapeDescriptor, mt as ContentSheetRowSchema, n as encodePackage, nn as ProvenanceDescriptorSchema, nr as isSectionGroupNode, nt as ContentSheetCellSchema, o as AlignmentSchema, on as SectionConstructGroupNode, or as isSlideGroupNode, ot as ContentSheetImageSchema, p as COLOR_BLACK, pn as ShapeConstructGroupSchema, pr as rgbHexToColor, pt as ContentSheetRow, q as ContentParagraphSchema, qn as findConstructMarkerImbalance, qt as Margins, r as packageCodec, rn as SLIDE_SIZE_STANDARD, rr as isShapeConstructGroupNode, rt as ContentSheetColumn, s as AnchorDescriptor, sn as SectionConstructGroupSchema, sr as isTreeBlockLeaf, st as ContentSheetPrintRange, t as decodePackage, tn as ProvenanceDescriptor, tr as isSectionConstructGroupNode, tt as ContentSheetCell, u as AnchorTypeSchema, un as SectionGroupSchema, ur as isTreeNode, ut as ContentSheetPrintSettingsSchema, v as ConstructMarkerImbalance, vn as SheetDescriptor, vt as ContentStrokeStyle, w as ContentCellBorders, wn as StyleEntry, wt as ContentTableRowSchema, x as ContentBlockSchema, xn as SlideDescriptor, xt as ContentTableCell, y as ConstructMarkerImbalanceError, yn as SheetGroupNode, yt as ContentStrokeStyleSchema, z as ContentDocumentSchema, zn as TreeNode, zt as LinkDescriptor } from "./codec-Cva8QD7-.js";
|
|
25
|
+
export { type Alignment, AlignmentSchema, type AnchorDescriptor, AnchorDescriptorSchema, type AnchorType, AnchorTypeSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, type BuildDocxContentOptions, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ConstructDescriptor, ConstructDescriptorSchema, type ConstructMarkerImbalance, ConstructMarkerImbalanceError, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentConstructEnd, ContentConstructEndSchema, type ContentConstructStart, ContentConstructStartSchema, type ContentControlDescriptor, ContentControlDescriptorSchema, type ContentControlLock, ContentControlLockSchema, type ContentControlType, ContentControlTypeSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DivisionDescriptor, DivisionDescriptorSchema, type DocumentMetadata, DocumentMetadataSchema, type DocumentTree, DocumentTreeSchema, type DocxContent, type DocxDocument, DocxDocumentSchema, type DrawPageChild, type DrawPageDescriptor, type DrawPageGroupNode, DrawPageGroupSchema, type EmbeddedPresentationSerialiser, type FieldDescriptor, FieldDescriptorSchema, type Footnote, FootnoteSchema, type HeaderFooterPart, HeaderFooterPartSchema, type HeadingGroupNode, HeadingGroupSchema, type HeadingParagraph, type ImageFormat, type LinkDescriptor, LinkDescriptorSchema, type LinkTarget, LinkTargetSchema, type ListChild, type ListGroupNode, ListGroupSchema, type ListParagraph, type Margins, MarginsSchema, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, PageSizeSchema, type Part, PartSchema, type PptxDocument, PptxDocumentSchema, type ProvenanceChange, ProvenanceChangeSchema, type ProvenanceDescriptor, ProvenanceDescriptorSchema, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SectionChild, type SectionConstructGroupNode, SectionConstructGroupSchema, type SectionDescriptor, type SectionGroupNode, SectionGroupSchema, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type ShapeChild, type ShapeConstructGroupNode, ShapeConstructGroupSchema, type ShapeDescriptor, type ShapeGroupNode, ShapeGroupSchema, type SheetChild, type SheetDescriptor, type SheetGroupNode, SheetGroupSchema, type SlideDescriptor, type SlideGroupNode, SlideGroupSchema, type StyleEntry, StyleEntrySchema, type StyleParagraphProperties, StyleParagraphPropertiesSchema, type StyleRunProperties, StyleRunPropertiesSchema, type StylesTable, StylesTableSchema, type TreeBlockLeaf, TreeBlockLeafSchema, type TreeChildren, type TreeGroup, TreeGroupSchema, type TreeLeaf, TreeLeafSchema, type TreeNode, TreeNodeSchema, type XlsxCell, XlsxCellSchema, type XlsxSheet, XlsxSheetSchema, type XlsxWorkbook, XlsxWorkbookSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyColorTransforms, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, attr, base64ToBytes, buildDocxPackage, buildDocxPackageFromContent, buildXlsxPackage, buildXlsxPackageFromContent, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, decompose, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, factorStyles, findConstructMarkerImbalance, flattenTree, fromCompact, isCompactXmlNode, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, isXmlNode, overlayStyleEntries, packageCodec, parsePackage, parseXml, readDocx, readDocxContent, readNumberingDefinitions, readPptx, readPptxContent, readXlsx, readXlsxContent, readXlsxWorkbook, resolveRelationships, resolveStyleChain, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
package/dist/index.js
CHANGED
|
@@ -14,12 +14,12 @@ import { attr, childrenWithTag, decodeEntities, elementsWithTag, resolveRelation
|
|
|
14
14
|
import { applyColorTransforms } from "./typed/shared/color.js";
|
|
15
15
|
import { DocumentMetadataSchema } from "./typed/shared/metadata.js";
|
|
16
16
|
import { sniffImageFormat } from "./image/sniff.js";
|
|
17
|
-
import { a as SectionHeaderFooterReferencesSchema, i as HeaderFooterPartSchema, l as PptxDocumentSchema, n as DocxDocumentSchema, o as readDocxContent, r as FootnoteSchema, t as CommentSchema, u as readPptxContent } from "./read-
|
|
17
|
+
import { a as SectionHeaderFooterReferencesSchema, i as HeaderFooterPartSchema, l as PptxDocumentSchema, n as DocxDocumentSchema, o as readDocxContent, r as FootnoteSchema, t as CommentSchema, u as readPptxContent } from "./read-BZ_jycSX.js";
|
|
18
18
|
import { readXlsxContent } from "./typed/xlsx/content.js";
|
|
19
19
|
import { NumberingDefinitionSchema, NumberingLevelSchema, readNumberingDefinitions } from "./typed/docx/numbering.js";
|
|
20
20
|
import { buildXlsxPackageFromContent } from "./typed/xlsx/build.js";
|
|
21
21
|
import { buildDocxPackageFromContent } from "./typed/docx/write.js";
|
|
22
|
-
import { buildDocxPackage, buildXlsxPackage, readDocx, readPptx, readXlsx } from "./typed/document-
|
|
22
|
+
import { buildDocxPackage, buildXlsxPackage, readDocx, readPptx, readXlsx } from "./typed/document-tree.js";
|
|
23
23
|
import { DefinedNameSchema, XlsxCellSchema, XlsxSheetSchema, XlsxWorkbookSchema, readXlsxWorkbook } from "./typed/xlsx.js";
|
|
24
|
-
import { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BoxSchema, COLOR_BLACK, ColorSchema, ConstructDescriptorSchema, ConstructMarkerImbalanceError, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, DivisionDescriptorSchema,
|
|
25
|
-
export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, AttributeSchema, BinaryPartSchema, BoxSchema, COLOR_BLACK, ColorSchema, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ConstructDescriptorSchema, ConstructMarkerImbalanceError, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, DefinedNameSchema, DivisionDescriptorSchema, DocumentMetadataSchema,
|
|
24
|
+
import { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BoxSchema, COLOR_BLACK, ColorSchema, ConstructDescriptorSchema, ConstructMarkerImbalanceError, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, DivisionDescriptorSchema, DocumentTreeSchema, DrawPageGroupSchema, FieldDescriptorSchema, HeadingGroupSchema, LinkDescriptorSchema, LinkTargetSchema, ListGroupSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SectionConstructGroupSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeGroupSchema, SheetGroupSchema, SlideGroupSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, TreeBlockLeafSchema, TreeGroupSchema, TreeLeafSchema, TreeNodeSchema, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, colorToRgbHex, decompose, factorStyles, findConstructMarkerImbalance, flattenTree, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, overlayStyleEntries, resolveStyleChain, rgbHexToColor } from "document-schema.js";
|
|
25
|
+
export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, AttributeSchema, BinaryPartSchema, BoxSchema, COLOR_BLACK, ColorSchema, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ConstructDescriptorSchema, ConstructMarkerImbalanceError, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, DefinedNameSchema, DivisionDescriptorSchema, DocumentMetadataSchema, DocumentTreeSchema, DocxDocumentSchema, DrawPageGroupSchema, FieldDescriptorSchema, FootnoteSchema, HeaderFooterPartSchema, HeadingGroupSchema, LinkDescriptorSchema, LinkTargetSchema, ListGroupSchema, MarginsSchema, NumberingDefinitionSchema, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageSchema, PageSizeSchema, PartSchema, PptxDocumentSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SectionConstructGroupSchema, SectionGroupSchema, SectionHeaderFooterReferencesSchema, ShapeConstructGroupSchema, ShapeGroupSchema, SheetGroupSchema, SlideGroupSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, TreeBlockLeafSchema, TreeGroupSchema, TreeLeafSchema, TreeNodeSchema, XlsxCellSchema, XlsxSheetSchema, XlsxWorkbookSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyColorTransforms, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, attr, base64ToBytes, buildDocxPackage, buildDocxPackageFromContent, buildXlsxPackage, buildXlsxPackageFromContent, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, decompose, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, factorStyles, findConstructMarkerImbalance, flattenTree, fromCompact, isCompactXmlNode, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, isXmlNode, overlayStyleEntries, packageCodec, parsePackage, parseXml, readDocx, readDocxContent, readNumberingDefinitions, readPptx, readPptxContent, readXlsx, readXlsxContent, readXlsxWorkbook, resolveRelationships, resolveStyleChain, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
package/dist/model/node.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "../node-
|
|
1
|
+
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "../node-B6JX5CRX.cjs";
|
|
2
2
|
export { Attribute, AttributeSchema, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, isXmlNode };
|
package/dist/model/node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "../node-
|
|
1
|
+
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "../node-B6JX5CRX.js";
|
|
2
2
|
export { Attribute, AttributeSchema, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, isXmlNode };
|
package/dist/model/package.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "../package-
|
|
1
|
+
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "../package-DMk9fuTI.cjs";
|
|
2
2
|
export { BinaryPart, BinaryPartSchema, Package, PackageSchema, Part, PartSchema, XmlPart, XmlPartSchema };
|
package/dist/model/package.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "../package-
|
|
1
|
+
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "../package-otZYrxiO.js";
|
|
2
2
|
export { BinaryPart, BinaryPartSchema, Package, PackageSchema, Part, PartSchema, XmlPart, XmlPartSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as parsePackage, t as packageFromEntries } from "../read-
|
|
1
|
+
import { n as parsePackage, t as packageFromEntries } from "../read-uKN0paUP.cjs";
|
|
2
2
|
export { packageFromEntries, parsePackage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as parsePackage, t as packageFromEntries } from "../read-
|
|
1
|
+
import { n as parsePackage, t as packageFromEntries } from "../read-BlcKA9Cg.js";
|
|
2
2
|
export { packageFromEntries, parsePackage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as serializePackage } from "../write-
|
|
1
|
+
import { t as serializePackage } from "../write-Ba1IxfDT.cjs";
|
|
2
2
|
export { serializePackage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as serializePackage } from "../write-
|
|
1
|
+
import { t as serializePackage } from "../write-C4902scQ.js";
|
|
2
2
|
export { serializePackage };
|
|
@@ -1321,7 +1321,9 @@ function readSections(body, ctx) {
|
|
|
1321
1321
|
sections.push(sliceSection(PAGE_SIZE_LETTER, DEFAULT_MARGINS, void 0, from, state.blocks.length));
|
|
1322
1322
|
headerFooters.push({});
|
|
1323
1323
|
}
|
|
1324
|
-
sections.forEach((section, sectionIndex) =>
|
|
1324
|
+
sections.forEach((section, sectionIndex) => {
|
|
1325
|
+
assignSourcePaths(section.blocks, `sections[${sectionIndex}]`);
|
|
1326
|
+
});
|
|
1325
1327
|
return {
|
|
1326
1328
|
sections,
|
|
1327
1329
|
headerFooters
|