ooxml.js 2.9.4 → 2.10.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.
Files changed (84) hide show
  1. package/README.md +7 -6
  2. package/dist/base64--HuymRl_.d.cts +5 -0
  3. package/dist/base64--HuymRl_.d.ts +5 -0
  4. package/dist/build-C0gS5QeG.d.ts +6 -0
  5. package/dist/build-CBL9scQK.d.cts +6 -0
  6. package/dist/build-XSm3I8LT.d.cts +5 -0
  7. package/dist/build-Z1KRkSEB.d.ts +5 -0
  8. package/dist/codec-B52c8v4h.d.ts +88 -0
  9. package/dist/codec-nIFHuTm-.d.cts +88 -0
  10. package/dist/codec.d.cts +2 -72
  11. package/dist/codec.d.ts +2 -72
  12. package/dist/color-fFIKAs-Y.d.cts +9 -0
  13. package/dist/color-fFIKAs-Y.d.ts +9 -0
  14. package/dist/compact-B1qg9oex.d.cts +70 -0
  15. package/dist/compact-f0TfhicN.d.ts +70 -0
  16. package/dist/compact.d.cts +1 -69
  17. package/dist/compact.d.ts +1 -69
  18. package/dist/content-UlQ-Nhgi.d.cts +6 -0
  19. package/dist/content-t6ZfmfQM.d.ts +6 -0
  20. package/dist/entities-6DuTszqf.d.cts +4 -0
  21. package/dist/entities-6DuTszqf.d.ts +4 -0
  22. package/dist/fragment-B1ZV7T5Z.d.ts +6 -0
  23. package/dist/fragment-B1og_8uA.d.cts +6 -0
  24. package/dist/image/sniff.d.cts +1 -4
  25. package/dist/image/sniff.d.ts +1 -4
  26. package/dist/index.d.cts +20 -21
  27. package/dist/index.d.ts +20 -21
  28. package/dist/metadata-D6o-kLpg.d.cts +16 -0
  29. package/dist/metadata-o_WH9V_I.d.ts +16 -0
  30. package/dist/numbering-C53LT-Jx.d.cts +23 -0
  31. package/dist/numbering-D0YfuiOO.d.ts +23 -0
  32. package/dist/package-io/read.d.cts +1 -4
  33. package/dist/package-io/read.d.ts +1 -4
  34. package/dist/package-io/write.d.cts +1 -4
  35. package/dist/package-io/write.d.ts +1 -4
  36. package/dist/parse-A8_8sdpX.d.ts +5 -0
  37. package/dist/parse-CP5FLZqv.d.cts +5 -0
  38. package/dist/read-B2-FFhqI.d.ts +60 -0
  39. package/dist/read-BLMpCzzG.d.ts +45 -0
  40. package/dist/read-CMDEXqGw.d.ts +5 -0
  41. package/dist/read-D_CpruL_.d.cts +60 -0
  42. package/dist/read-DymSS-X4.d.cts +45 -0
  43. package/dist/read-DzmMJPHd.d.cts +5 -0
  44. package/dist/sniff-DjpnUZRp.d.cts +5 -0
  45. package/dist/sniff-DjpnUZRp.d.ts +5 -0
  46. package/dist/typed/docx/numbering.d.cts +1 -22
  47. package/dist/typed/docx/numbering.d.ts +1 -22
  48. package/dist/typed/docx/read.d.cts +1 -59
  49. package/dist/typed/docx/read.d.ts +1 -59
  50. package/dist/typed/pptx/read.d.cts +1 -44
  51. package/dist/typed/pptx/read.d.ts +1 -44
  52. package/dist/typed/shared/color.d.cts +1 -8
  53. package/dist/typed/shared/color.d.ts +1 -8
  54. package/dist/typed/shared/metadata.d.cts +1 -15
  55. package/dist/typed/shared/metadata.d.ts +1 -15
  56. package/dist/typed/util.d.cts +1 -17
  57. package/dist/typed/util.d.ts +1 -17
  58. package/dist/typed/xlsx/build.d.cts +1 -5
  59. package/dist/typed/xlsx/build.d.ts +1 -5
  60. package/dist/typed/xlsx/content.d.cts +1 -5
  61. package/dist/typed/xlsx/content.d.ts +1 -5
  62. package/dist/typed/xlsx.d.cts +1 -42
  63. package/dist/typed/xlsx.d.ts +1 -42
  64. package/dist/util/base64.d.cts +1 -4
  65. package/dist/util/base64.d.ts +1 -4
  66. package/dist/util-DFe4UbvU.d.ts +18 -0
  67. package/dist/util-M3JJlDhF.d.cts +18 -0
  68. package/dist/write-6JmxvaK5.d.cts +5 -0
  69. package/dist/write-CT-EgVT7.d.ts +5 -0
  70. package/dist/xlsx-B97t4YE-.d.cts +43 -0
  71. package/dist/xlsx-BxKODiLX.d.ts +43 -0
  72. package/dist/xml/build.d.cts +1 -4
  73. package/dist/xml/build.d.ts +1 -4
  74. package/dist/xml/entities.d.cts +1 -3
  75. package/dist/xml/entities.d.ts +1 -3
  76. package/dist/xml/fragment.d.cts +1 -5
  77. package/dist/xml/fragment.d.ts +1 -5
  78. package/dist/xml/parse.d.cts +1 -4
  79. package/dist/xml/parse.d.ts +1 -4
  80. package/dist/zip-Ckbv-mtV.d.cts +5 -0
  81. package/dist/zip-Ckbv-mtV.d.ts +5 -0
  82. package/dist/zip.d.cts +1 -4
  83. package/dist/zip.d.ts +1 -4
  84. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ //#region src/image/sniff.d.ts
2
+ type ImageFormat = 'png' | 'jpeg';
3
+ declare function sniffImageFormat(bytes: Uint8Array<ArrayBuffer>): ImageFormat | undefined;
4
+ //#endregion
5
+ export { sniffImageFormat as n, ImageFormat as t };
@@ -1,23 +1,2 @@
1
- import { r as Package } from "../../package-L24lkba-.cjs";
2
- import { z } from "zod";
3
- //#region src/typed/docx/numbering.d.ts
4
- declare const NumberingLevelSchema: z.ZodObject<{
5
- format: z.ZodString;
6
- text: z.ZodString;
7
- startAt: z.ZodNumber;
8
- restart: z.ZodOptional<z.ZodNumber>;
9
- }, z.core.$strip>;
10
- type NumberingLevel = z.infer<typeof NumberingLevelSchema>;
11
- declare const NumberingDefinitionSchema: z.ZodObject<{
12
- levels: z.ZodRecord<z.ZodString, z.ZodObject<{
13
- format: z.ZodString;
14
- text: z.ZodString;
15
- startAt: z.ZodNumber;
16
- restart: z.ZodOptional<z.ZodNumber>;
17
- }, z.core.$strip>>;
18
- }, z.core.$strip>;
19
- type NumberingDefinition = z.infer<typeof NumberingDefinitionSchema>;
20
- type NumberingDefinitions = Readonly<Record<string, NumberingDefinition>>;
21
- declare function readNumberingDefinitions(pkg: Package): NumberingDefinitions;
22
- //#endregion
1
+ import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "../../numbering-C53LT-Jx.cjs";
23
2
  export { NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, readNumberingDefinitions };
@@ -1,23 +1,2 @@
1
- import { r as Package } from "../../package-BUojjTXf.js";
2
- import { z } from "zod";
3
- //#region src/typed/docx/numbering.d.ts
4
- declare const NumberingLevelSchema: z.ZodObject<{
5
- format: z.ZodString;
6
- text: z.ZodString;
7
- startAt: z.ZodNumber;
8
- restart: z.ZodOptional<z.ZodNumber>;
9
- }, z.core.$strip>;
10
- type NumberingLevel = z.infer<typeof NumberingLevelSchema>;
11
- declare const NumberingDefinitionSchema: z.ZodObject<{
12
- levels: z.ZodRecord<z.ZodString, z.ZodObject<{
13
- format: z.ZodString;
14
- text: z.ZodString;
15
- startAt: z.ZodNumber;
16
- restart: z.ZodOptional<z.ZodNumber>;
17
- }, z.core.$strip>>;
18
- }, z.core.$strip>;
19
- type NumberingDefinition = z.infer<typeof NumberingDefinitionSchema>;
20
- type NumberingDefinitions = Readonly<Record<string, NumberingDefinition>>;
21
- declare function readNumberingDefinitions(pkg: Package): NumberingDefinitions;
22
- //#endregion
1
+ import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "../../numbering-D0YfuiOO.js";
23
2
  export { NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, readNumberingDefinitions };
@@ -1,60 +1,2 @@
1
- import { r as Package } from "../../package-L24lkba-.cjs";
2
- import { z } from "zod";
3
- import { ContentBlock } from "document-schema.js";
4
- //#region src/typed/docx/read.d.ts
5
- declare const CommentSchema: z.ZodObject<{
6
- author: z.ZodOptional<z.ZodString>;
7
- text: z.ZodString;
8
- }, z.core.$strip>;
9
- type Comment = z.infer<typeof CommentSchema>;
10
- declare const FootnoteSchema: z.ZodObject<{
11
- type: z.ZodOptional<z.ZodString>;
12
- text: z.ZodString;
13
- }, z.core.$strip>;
14
- type Footnote = z.infer<typeof FootnoteSchema>;
15
- declare const DocxDocumentSchema: z.ZodObject<{
16
- metadata: z.ZodObject<{
17
- title: z.ZodOptional<z.ZodString>;
18
- author: z.ZodOptional<z.ZodString>;
19
- subject: z.ZodOptional<z.ZodString>;
20
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
- creator: z.ZodOptional<z.ZodString>;
22
- createdIso: z.ZodOptional<z.ZodString>;
23
- modifiedIso: z.ZodOptional<z.ZodString>;
24
- }, z.core.$strip>;
25
- sections: z.ZodArray<z.ZodObject<{
26
- pageSize: z.ZodObject<{
27
- widthPt: z.ZodNumber;
28
- heightPt: z.ZodNumber;
29
- }, z.core.$strip>;
30
- margins: z.ZodObject<{
31
- topPt: z.ZodNumber;
32
- rightPt: z.ZodNumber;
33
- bottomPt: z.ZodNumber;
34
- leftPt: z.ZodNumber;
35
- }, z.core.$strip>;
36
- blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
37
- }, z.core.$strip>>;
38
- comments: z.ZodArray<z.ZodObject<{
39
- author: z.ZodOptional<z.ZodString>;
40
- text: z.ZodString;
41
- }, z.core.$strip>>;
42
- footnotes: z.ZodArray<z.ZodObject<{
43
- type: z.ZodOptional<z.ZodString>;
44
- text: z.ZodString;
45
- }, z.core.$strip>>;
46
- headers: z.ZodArray<z.ZodString>;
47
- footers: z.ZodArray<z.ZodString>;
48
- numbering: z.ZodRecord<z.ZodString, z.ZodObject<{
49
- levels: z.ZodRecord<z.ZodString, z.ZodObject<{
50
- format: z.ZodString;
51
- text: z.ZodString;
52
- startAt: z.ZodNumber;
53
- restart: z.ZodOptional<z.ZodNumber>;
54
- }, z.core.$strip>>;
55
- }, z.core.$strip>>;
56
- }, z.core.$strip>;
57
- type DocxDocument = z.infer<typeof DocxDocumentSchema>;
58
- declare function readDocx(pkg: Package): DocxDocument;
59
- //#endregion
1
+ import { a as Footnote, i as DocxDocumentSchema, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as readDocx, t as Comment } from "../../read-D_CpruL_.cjs";
60
2
  export { Comment, CommentSchema, DocxDocument, DocxDocumentSchema, Footnote, FootnoteSchema, readDocx };
@@ -1,60 +1,2 @@
1
- import { r as Package } from "../../package-BUojjTXf.js";
2
- import { z } from "zod";
3
- import { ContentBlock } from "document-schema.js";
4
- //#region src/typed/docx/read.d.ts
5
- declare const CommentSchema: z.ZodObject<{
6
- author: z.ZodOptional<z.ZodString>;
7
- text: z.ZodString;
8
- }, z.core.$strip>;
9
- type Comment = z.infer<typeof CommentSchema>;
10
- declare const FootnoteSchema: z.ZodObject<{
11
- type: z.ZodOptional<z.ZodString>;
12
- text: z.ZodString;
13
- }, z.core.$strip>;
14
- type Footnote = z.infer<typeof FootnoteSchema>;
15
- declare const DocxDocumentSchema: z.ZodObject<{
16
- metadata: z.ZodObject<{
17
- title: z.ZodOptional<z.ZodString>;
18
- author: z.ZodOptional<z.ZodString>;
19
- subject: z.ZodOptional<z.ZodString>;
20
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
- creator: z.ZodOptional<z.ZodString>;
22
- createdIso: z.ZodOptional<z.ZodString>;
23
- modifiedIso: z.ZodOptional<z.ZodString>;
24
- }, z.core.$strip>;
25
- sections: z.ZodArray<z.ZodObject<{
26
- pageSize: z.ZodObject<{
27
- widthPt: z.ZodNumber;
28
- heightPt: z.ZodNumber;
29
- }, z.core.$strip>;
30
- margins: z.ZodObject<{
31
- topPt: z.ZodNumber;
32
- rightPt: z.ZodNumber;
33
- bottomPt: z.ZodNumber;
34
- leftPt: z.ZodNumber;
35
- }, z.core.$strip>;
36
- blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
37
- }, z.core.$strip>>;
38
- comments: z.ZodArray<z.ZodObject<{
39
- author: z.ZodOptional<z.ZodString>;
40
- text: z.ZodString;
41
- }, z.core.$strip>>;
42
- footnotes: z.ZodArray<z.ZodObject<{
43
- type: z.ZodOptional<z.ZodString>;
44
- text: z.ZodString;
45
- }, z.core.$strip>>;
46
- headers: z.ZodArray<z.ZodString>;
47
- footers: z.ZodArray<z.ZodString>;
48
- numbering: z.ZodRecord<z.ZodString, z.ZodObject<{
49
- levels: z.ZodRecord<z.ZodString, z.ZodObject<{
50
- format: z.ZodString;
51
- text: z.ZodString;
52
- startAt: z.ZodNumber;
53
- restart: z.ZodOptional<z.ZodNumber>;
54
- }, z.core.$strip>>;
55
- }, z.core.$strip>>;
56
- }, z.core.$strip>;
57
- type DocxDocument = z.infer<typeof DocxDocumentSchema>;
58
- declare function readDocx(pkg: Package): DocxDocument;
59
- //#endregion
1
+ import { a as Footnote, i as DocxDocumentSchema, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as readDocx, t as Comment } from "../../read-B2-FFhqI.js";
60
2
  export { Comment, CommentSchema, DocxDocument, DocxDocumentSchema, Footnote, FootnoteSchema, readDocx };
@@ -1,45 +1,2 @@
1
- import { r as Package } from "../../package-L24lkba-.cjs";
2
- import { z } from "zod";
3
- import { ContentBlock } from "document-schema.js";
4
- //#region src/typed/pptx/read.d.ts
5
- declare const PptxDocumentSchema: z.ZodObject<{
6
- metadata: z.ZodObject<{
7
- title: z.ZodOptional<z.ZodString>;
8
- author: z.ZodOptional<z.ZodString>;
9
- subject: z.ZodOptional<z.ZodString>;
10
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
- creator: z.ZodOptional<z.ZodString>;
12
- createdIso: z.ZodOptional<z.ZodString>;
13
- modifiedIso: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>;
15
- slides: z.ZodArray<z.ZodObject<{
16
- size: z.ZodObject<{
17
- widthPt: z.ZodNumber;
18
- heightPt: z.ZodNumber;
19
- }, z.core.$strip>;
20
- shapes: z.ZodArray<z.ZodObject<{
21
- name: z.ZodOptional<z.ZodString>;
22
- frame: z.ZodObject<{
23
- xPt: z.ZodNumber;
24
- yPt: z.ZodNumber;
25
- widthPt: z.ZodNumber;
26
- heightPt: z.ZodNumber;
27
- }, z.core.$strip>;
28
- rotationDeg: z.ZodOptional<z.ZodNumber>;
29
- insetLeftPt: z.ZodNumber;
30
- insetTopPt: z.ZodNumber;
31
- insetRightPt: z.ZodNumber;
32
- insetBottomPt: z.ZodNumber;
33
- fontScale: z.ZodOptional<z.ZodNumber>;
34
- lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
35
- paintOrder: z.ZodOptional<z.ZodNumber>;
36
- sourcePath: z.ZodOptional<z.ZodString>;
37
- blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
38
- }, z.core.$strip>>;
39
- notes: z.ZodString;
40
- }, z.core.$strip>>;
41
- }, z.core.$strip>;
42
- type PptxDocument = z.infer<typeof PptxDocumentSchema>;
43
- declare function readPptx(pkg: Package): PptxDocument;
44
- //#endregion
1
+ import { n as PptxDocumentSchema, r as readPptx, t as PptxDocument } from "../../read-DymSS-X4.cjs";
45
2
  export { PptxDocument, PptxDocumentSchema, readPptx };
@@ -1,45 +1,2 @@
1
- import { r as Package } from "../../package-BUojjTXf.js";
2
- import { z } from "zod";
3
- import { ContentBlock } from "document-schema.js";
4
- //#region src/typed/pptx/read.d.ts
5
- declare const PptxDocumentSchema: z.ZodObject<{
6
- metadata: z.ZodObject<{
7
- title: z.ZodOptional<z.ZodString>;
8
- author: z.ZodOptional<z.ZodString>;
9
- subject: z.ZodOptional<z.ZodString>;
10
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
- creator: z.ZodOptional<z.ZodString>;
12
- createdIso: z.ZodOptional<z.ZodString>;
13
- modifiedIso: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>;
15
- slides: z.ZodArray<z.ZodObject<{
16
- size: z.ZodObject<{
17
- widthPt: z.ZodNumber;
18
- heightPt: z.ZodNumber;
19
- }, z.core.$strip>;
20
- shapes: z.ZodArray<z.ZodObject<{
21
- name: z.ZodOptional<z.ZodString>;
22
- frame: z.ZodObject<{
23
- xPt: z.ZodNumber;
24
- yPt: z.ZodNumber;
25
- widthPt: z.ZodNumber;
26
- heightPt: z.ZodNumber;
27
- }, z.core.$strip>;
28
- rotationDeg: z.ZodOptional<z.ZodNumber>;
29
- insetLeftPt: z.ZodNumber;
30
- insetTopPt: z.ZodNumber;
31
- insetRightPt: z.ZodNumber;
32
- insetBottomPt: z.ZodNumber;
33
- fontScale: z.ZodOptional<z.ZodNumber>;
34
- lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
35
- paintOrder: z.ZodOptional<z.ZodNumber>;
36
- sourcePath: z.ZodOptional<z.ZodString>;
37
- blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
38
- }, z.core.$strip>>;
39
- notes: z.ZodString;
40
- }, z.core.$strip>>;
41
- }, z.core.$strip>;
42
- type PptxDocument = z.infer<typeof PptxDocumentSchema>;
43
- declare function readPptx(pkg: Package): PptxDocument;
44
- //#endregion
1
+ import { n as PptxDocumentSchema, r as readPptx, t as PptxDocument } from "../../read-BLMpCzzG.js";
45
2
  export { PptxDocument, PptxDocumentSchema, readPptx };
@@ -1,9 +1,2 @@
1
- import { Color } from "document-schema.js";
2
- //#region src/typed/shared/color.d.ts
3
- interface ColorTransform {
4
- readonly kind: 'shade' | 'tint' | 'lumMod' | 'lumOff';
5
- readonly value: number;
6
- }
7
- declare function applyColorTransforms(base: Color, transforms: readonly ColorTransform[]): Color;
8
- //#endregion
1
+ import { n as applyColorTransforms, t as ColorTransform } from "../../color-fFIKAs-Y.cjs";
9
2
  export { ColorTransform, applyColorTransforms };
@@ -1,9 +1,2 @@
1
- import { Color } from "document-schema.js";
2
- //#region src/typed/shared/color.d.ts
3
- interface ColorTransform {
4
- readonly kind: 'shade' | 'tint' | 'lumMod' | 'lumOff';
5
- readonly value: number;
6
- }
7
- declare function applyColorTransforms(base: Color, transforms: readonly ColorTransform[]): Color;
8
- //#endregion
1
+ import { n as applyColorTransforms, t as ColorTransform } from "../../color-fFIKAs-Y.js";
9
2
  export { ColorTransform, applyColorTransforms };
@@ -1,16 +1,2 @@
1
- import { r as Package } from "../../package-L24lkba-.cjs";
2
- import { z } from "zod";
3
- //#region src/typed/shared/metadata.d.ts
4
- declare const DocumentMetadataSchema: z.ZodObject<{
5
- title: z.ZodOptional<z.ZodString>;
6
- author: z.ZodOptional<z.ZodString>;
7
- subject: z.ZodOptional<z.ZodString>;
8
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
- creator: z.ZodOptional<z.ZodString>;
10
- createdIso: z.ZodOptional<z.ZodString>;
11
- modifiedIso: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>;
13
- type DocumentMetadata = z.infer<typeof DocumentMetadataSchema>;
14
- declare function readCoreProperties(pkg: Package): DocumentMetadata;
15
- //#endregion
1
+ import { n as DocumentMetadataSchema, r as readCoreProperties, t as DocumentMetadata } from "../../metadata-D6o-kLpg.cjs";
16
2
  export { DocumentMetadata, DocumentMetadataSchema, readCoreProperties };
@@ -1,16 +1,2 @@
1
- import { r as Package } from "../../package-BUojjTXf.js";
2
- import { z } from "zod";
3
- //#region src/typed/shared/metadata.d.ts
4
- declare const DocumentMetadataSchema: z.ZodObject<{
5
- title: z.ZodOptional<z.ZodString>;
6
- author: z.ZodOptional<z.ZodString>;
7
- subject: z.ZodOptional<z.ZodString>;
8
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
- creator: z.ZodOptional<z.ZodString>;
10
- createdIso: z.ZodOptional<z.ZodString>;
11
- modifiedIso: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>;
13
- type DocumentMetadata = z.infer<typeof DocumentMetadataSchema>;
14
- declare function readCoreProperties(pkg: Package): DocumentMetadata;
15
- //#endregion
1
+ import { n as DocumentMetadataSchema, r as readCoreProperties, t as DocumentMetadata } from "../../metadata-o_WH9V_I.js";
16
2
  export { DocumentMetadata, DocumentMetadataSchema, readCoreProperties };
@@ -1,18 +1,2 @@
1
- import { d as XmlNode, l as XmlElement } from "../node-CkBWRjNR.cjs";
2
- import { a as Part, r as Package } from "../package-L24lkba-.cjs";
3
- //#region src/typed/util.d.ts
4
- declare function walk(nodes: XmlNode[]): Generator<XmlNode>;
5
- declare function elementsWithTag(nodes: XmlNode[], tag: string): XmlElement[];
6
- declare function childrenWithTag(element: XmlElement, tag: string): XmlElement[];
7
- declare function attr(element: XmlElement, name: string): string | undefined;
8
- declare function rootElement(part: Part | undefined): XmlElement | undefined;
9
- declare function decodeEntities(value: string): string;
10
- declare function textContent(element: XmlElement): string;
11
- interface Relationship {
12
- type: string;
13
- target: string;
14
- targetMode?: string;
15
- }
16
- declare function resolveRelationships(pkg: Package, partPath: string): Map<string, Relationship>;
17
- //#endregion
1
+ 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-M3JJlDhF.cjs";
18
2
  export { Relationship, attr, childrenWithTag, decodeEntities, elementsWithTag, resolveRelationships, rootElement, textContent, walk };
@@ -1,18 +1,2 @@
1
- import { d as XmlNode, l as XmlElement } from "../node-CkBWRjNR.js";
2
- import { a as Part, r as Package } from "../package-BUojjTXf.js";
3
- //#region src/typed/util.d.ts
4
- declare function walk(nodes: XmlNode[]): Generator<XmlNode>;
5
- declare function elementsWithTag(nodes: XmlNode[], tag: string): XmlElement[];
6
- declare function childrenWithTag(element: XmlElement, tag: string): XmlElement[];
7
- declare function attr(element: XmlElement, name: string): string | undefined;
8
- declare function rootElement(part: Part | undefined): XmlElement | undefined;
9
- declare function decodeEntities(value: string): string;
10
- declare function textContent(element: XmlElement): string;
11
- interface Relationship {
12
- type: string;
13
- target: string;
14
- targetMode?: string;
15
- }
16
- declare function resolveRelationships(pkg: Package, partPath: string): Map<string, Relationship>;
17
- //#endregion
1
+ 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-DFe4UbvU.js";
18
2
  export { Relationship, attr, childrenWithTag, decodeEntities, elementsWithTag, resolveRelationships, rootElement, textContent, walk };
@@ -1,6 +1,2 @@
1
- import { r as Package } from "../../package-L24lkba-.cjs";
2
- import { ContentDocument } from "document-schema.js";
3
- //#region src/typed/xlsx/build.d.ts
4
- declare function buildXlsxPackage(document: ContentDocument): Package;
5
- //#endregion
1
+ import { t as buildXlsxPackage } from "../../build-CBL9scQK.cjs";
6
2
  export { buildXlsxPackage };
@@ -1,6 +1,2 @@
1
- import { r as Package } from "../../package-BUojjTXf.js";
2
- import { ContentDocument } from "document-schema.js";
3
- //#region src/typed/xlsx/build.d.ts
4
- declare function buildXlsxPackage(document: ContentDocument): Package;
5
- //#endregion
1
+ import { t as buildXlsxPackage } from "../../build-C0gS5QeG.js";
6
2
  export { buildXlsxPackage };
@@ -1,6 +1,2 @@
1
- import { r as Package } from "../../package-L24lkba-.cjs";
2
- import { ContentDocument } from "document-schema.js";
3
- //#region src/typed/xlsx/content.d.ts
4
- declare function readXlsxContent(pkg: Package): ContentDocument;
5
- //#endregion
1
+ import { t as readXlsxContent } from "../../content-UlQ-Nhgi.cjs";
6
2
  export { readXlsxContent };
@@ -1,6 +1,2 @@
1
- import { r as Package } from "../../package-BUojjTXf.js";
2
- import { ContentDocument } from "document-schema.js";
3
- //#region src/typed/xlsx/content.d.ts
4
- declare function readXlsxContent(pkg: Package): ContentDocument;
5
- //#endregion
1
+ import { t as readXlsxContent } from "../../content-t6ZfmfQM.js";
6
2
  export { readXlsxContent };
@@ -1,43 +1,2 @@
1
- import { r as Package } from "../package-L24lkba-.cjs";
2
- import { z } from "zod";
3
- //#region src/typed/xlsx.d.ts
4
- declare const XlsxCellSchema: z.ZodObject<{
5
- reference: z.ZodString;
6
- value: z.ZodString;
7
- formula: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strip>;
9
- type XlsxCell = z.infer<typeof XlsxCellSchema>;
10
- declare const XlsxSheetSchema: z.ZodObject<{
11
- name: z.ZodString;
12
- cells: z.ZodArray<z.ZodObject<{
13
- reference: z.ZodString;
14
- value: z.ZodString;
15
- formula: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>>;
17
- mergedRanges: z.ZodArray<z.ZodString>;
18
- }, z.core.$strip>;
19
- type XlsxSheet = z.infer<typeof XlsxSheetSchema>;
20
- declare const DefinedNameSchema: z.ZodObject<{
21
- name: z.ZodString;
22
- refersTo: z.ZodString;
23
- }, z.core.$strip>;
24
- type DefinedName = z.infer<typeof DefinedNameSchema>;
25
- declare const XlsxWorkbookSchema: z.ZodObject<{
26
- sheets: z.ZodArray<z.ZodObject<{
27
- name: z.ZodString;
28
- cells: z.ZodArray<z.ZodObject<{
29
- reference: z.ZodString;
30
- value: z.ZodString;
31
- formula: z.ZodOptional<z.ZodString>;
32
- }, z.core.$strip>>;
33
- mergedRanges: z.ZodArray<z.ZodString>;
34
- }, z.core.$strip>>;
35
- definedNames: z.ZodArray<z.ZodObject<{
36
- name: z.ZodString;
37
- refersTo: z.ZodString;
38
- }, z.core.$strip>>;
39
- }, z.core.$strip>;
40
- type XlsxWorkbook = z.infer<typeof XlsxWorkbookSchema>;
41
- declare function readXlsx(pkg: Package): XlsxWorkbook;
42
- //#endregion
1
+ import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsx, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "../xlsx-B97t4YE-.cjs";
43
2
  export { DefinedName, DefinedNameSchema, XlsxCell, XlsxCellSchema, XlsxSheet, XlsxSheetSchema, XlsxWorkbook, XlsxWorkbookSchema, readXlsx };
@@ -1,43 +1,2 @@
1
- import { r as Package } from "../package-BUojjTXf.js";
2
- import { z } from "zod";
3
- //#region src/typed/xlsx.d.ts
4
- declare const XlsxCellSchema: z.ZodObject<{
5
- reference: z.ZodString;
6
- value: z.ZodString;
7
- formula: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strip>;
9
- type XlsxCell = z.infer<typeof XlsxCellSchema>;
10
- declare const XlsxSheetSchema: z.ZodObject<{
11
- name: z.ZodString;
12
- cells: z.ZodArray<z.ZodObject<{
13
- reference: z.ZodString;
14
- value: z.ZodString;
15
- formula: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>>;
17
- mergedRanges: z.ZodArray<z.ZodString>;
18
- }, z.core.$strip>;
19
- type XlsxSheet = z.infer<typeof XlsxSheetSchema>;
20
- declare const DefinedNameSchema: z.ZodObject<{
21
- name: z.ZodString;
22
- refersTo: z.ZodString;
23
- }, z.core.$strip>;
24
- type DefinedName = z.infer<typeof DefinedNameSchema>;
25
- declare const XlsxWorkbookSchema: z.ZodObject<{
26
- sheets: z.ZodArray<z.ZodObject<{
27
- name: z.ZodString;
28
- cells: z.ZodArray<z.ZodObject<{
29
- reference: z.ZodString;
30
- value: z.ZodString;
31
- formula: z.ZodOptional<z.ZodString>;
32
- }, z.core.$strip>>;
33
- mergedRanges: z.ZodArray<z.ZodString>;
34
- }, z.core.$strip>>;
35
- definedNames: z.ZodArray<z.ZodObject<{
36
- name: z.ZodString;
37
- refersTo: z.ZodString;
38
- }, z.core.$strip>>;
39
- }, z.core.$strip>;
40
- type XlsxWorkbook = z.infer<typeof XlsxWorkbookSchema>;
41
- declare function readXlsx(pkg: Package): XlsxWorkbook;
42
- //#endregion
1
+ import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsx, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "../xlsx-BxKODiLX.js";
43
2
  export { DefinedName, DefinedNameSchema, XlsxCell, XlsxCellSchema, XlsxSheet, XlsxSheetSchema, XlsxWorkbook, XlsxWorkbookSchema, readXlsx };
@@ -1,5 +1,2 @@
1
- //#region src/util/base64.d.ts
2
- declare function bytesToBase64(bytes: Uint8Array<ArrayBuffer>): string;
3
- declare function base64ToBytes(b64: string): Uint8Array<ArrayBuffer>;
4
- //#endregion
1
+ import { n as bytesToBase64, t as base64ToBytes } from "../base64--HuymRl_.cjs";
5
2
  export { base64ToBytes, bytesToBase64 };
@@ -1,5 +1,2 @@
1
- //#region src/util/base64.d.ts
2
- declare function bytesToBase64(bytes: Uint8Array<ArrayBuffer>): string;
3
- declare function base64ToBytes(b64: string): Uint8Array<ArrayBuffer>;
4
- //#endregion
1
+ import { n as bytesToBase64, t as base64ToBytes } from "../base64--HuymRl_.js";
5
2
  export { base64ToBytes, bytesToBase64 };
@@ -0,0 +1,18 @@
1
+ import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.js";
2
+ import { a as Part, r as Package } from "./package-BUojjTXf.js";
3
+ //#region src/typed/util.d.ts
4
+ declare function walk(nodes: XmlNode[]): Generator<XmlNode>;
5
+ declare function elementsWithTag(nodes: XmlNode[], tag: string): XmlElement[];
6
+ declare function childrenWithTag(element: XmlElement, tag: string): XmlElement[];
7
+ declare function attr(element: XmlElement, name: string): string | undefined;
8
+ declare function rootElement(part: Part | undefined): XmlElement | undefined;
9
+ declare function decodeEntities(value: string): string;
10
+ declare function textContent(element: XmlElement): string;
11
+ interface Relationship {
12
+ type: string;
13
+ target: string;
14
+ targetMode?: string;
15
+ }
16
+ declare function resolveRelationships(pkg: Package, partPath: string): Map<string, Relationship>;
17
+ //#endregion
18
+ export { elementsWithTag as a, textContent as c, decodeEntities as i, walk as l, attr as n, resolveRelationships as o, childrenWithTag as r, rootElement as s, Relationship as t };
@@ -0,0 +1,18 @@
1
+ import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.cjs";
2
+ import { a as Part, r as Package } from "./package-L24lkba-.cjs";
3
+ //#region src/typed/util.d.ts
4
+ declare function walk(nodes: XmlNode[]): Generator<XmlNode>;
5
+ declare function elementsWithTag(nodes: XmlNode[], tag: string): XmlElement[];
6
+ declare function childrenWithTag(element: XmlElement, tag: string): XmlElement[];
7
+ declare function attr(element: XmlElement, name: string): string | undefined;
8
+ declare function rootElement(part: Part | undefined): XmlElement | undefined;
9
+ declare function decodeEntities(value: string): string;
10
+ declare function textContent(element: XmlElement): string;
11
+ interface Relationship {
12
+ type: string;
13
+ target: string;
14
+ targetMode?: string;
15
+ }
16
+ declare function resolveRelationships(pkg: Package, partPath: string): Map<string, Relationship>;
17
+ //#endregion
18
+ export { elementsWithTag as a, textContent as c, decodeEntities as i, walk as l, attr as n, resolveRelationships as o, childrenWithTag as r, rootElement as s, Relationship as t };
@@ -0,0 +1,5 @@
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
+ //#region src/package-io/write.d.ts
3
+ declare function serializePackage(pkg: Package): Uint8Array<ArrayBuffer>;
4
+ //#endregion
5
+ export { serializePackage as t };
@@ -0,0 +1,5 @@
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
+ //#region src/package-io/write.d.ts
3
+ declare function serializePackage(pkg: Package): Uint8Array<ArrayBuffer>;
4
+ //#endregion
5
+ export { serializePackage as t };
@@ -0,0 +1,43 @@
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
+ import { z } from "zod";
3
+ //#region src/typed/xlsx.d.ts
4
+ declare const XlsxCellSchema: z.ZodObject<{
5
+ reference: z.ZodString;
6
+ value: z.ZodString;
7
+ formula: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ type XlsxCell = z.infer<typeof XlsxCellSchema>;
10
+ declare const XlsxSheetSchema: z.ZodObject<{
11
+ name: z.ZodString;
12
+ cells: z.ZodArray<z.ZodObject<{
13
+ reference: z.ZodString;
14
+ value: z.ZodString;
15
+ formula: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>>;
17
+ mergedRanges: z.ZodArray<z.ZodString>;
18
+ }, z.core.$strip>;
19
+ type XlsxSheet = z.infer<typeof XlsxSheetSchema>;
20
+ declare const DefinedNameSchema: z.ZodObject<{
21
+ name: z.ZodString;
22
+ refersTo: z.ZodString;
23
+ }, z.core.$strip>;
24
+ type DefinedName = z.infer<typeof DefinedNameSchema>;
25
+ declare const XlsxWorkbookSchema: z.ZodObject<{
26
+ sheets: z.ZodArray<z.ZodObject<{
27
+ name: z.ZodString;
28
+ cells: z.ZodArray<z.ZodObject<{
29
+ reference: z.ZodString;
30
+ value: z.ZodString;
31
+ formula: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>>;
33
+ mergedRanges: z.ZodArray<z.ZodString>;
34
+ }, z.core.$strip>>;
35
+ definedNames: z.ZodArray<z.ZodObject<{
36
+ name: z.ZodString;
37
+ refersTo: z.ZodString;
38
+ }, z.core.$strip>>;
39
+ }, z.core.$strip>;
40
+ type XlsxWorkbook = z.infer<typeof XlsxWorkbookSchema>;
41
+ declare function readXlsx(pkg: Package): XlsxWorkbook;
42
+ //#endregion
43
+ export { XlsxSheet as a, XlsxWorkbookSchema as c, XlsxCellSchema as i, readXlsx as l, DefinedNameSchema as n, XlsxSheetSchema as o, XlsxCell as r, XlsxWorkbook as s, DefinedName as t };