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,43 @@
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
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 };
@@ -1,5 +1,2 @@
1
- import { d as XmlNode } from "../node-CkBWRjNR.cjs";
2
- //#region src/xml/build.d.ts
3
- declare function buildXml(nodes: XmlNode[]): string;
4
- //#endregion
1
+ import { t as buildXml } from "../build-XSm3I8LT.cjs";
5
2
  export { buildXml };
@@ -1,5 +1,2 @@
1
- import { d as XmlNode } from "../node-CkBWRjNR.js";
2
- //#region src/xml/build.d.ts
3
- declare function buildXml(nodes: XmlNode[]): string;
4
- //#endregion
1
+ import { t as buildXml } from "../build-Z1KRkSEB.js";
5
2
  export { buildXml };
@@ -1,4 +1,2 @@
1
- //#region src/xml/entities.d.ts
2
- declare function encodeXmlText(value: string): string;
3
- //#endregion
1
+ import { t as encodeXmlText } from "../entities-6DuTszqf.cjs";
4
2
  export { encodeXmlText };
@@ -1,4 +1,2 @@
1
- //#region src/xml/entities.d.ts
2
- declare function encodeXmlText(value: string): string;
3
- //#endregion
1
+ import { t as encodeXmlText } from "../entities-6DuTszqf.js";
4
2
  export { encodeXmlText };
@@ -1,6 +1,2 @@
1
- import { d as XmlNode, h as XmlText, l as XmlElement } from "../node-CkBWRjNR.cjs";
2
- //#region src/xml/fragment.d.ts
3
- declare function el(tag: string, attrs?: Record<string, string>, children?: XmlNode[]): XmlElement;
4
- declare function txt(value: string): XmlText;
5
- //#endregion
1
+ import { n as txt, t as el } from "../fragment-B1og_8uA.cjs";
6
2
  export { el, txt };
@@ -1,6 +1,2 @@
1
- import { d as XmlNode, h as XmlText, l as XmlElement } from "../node-CkBWRjNR.js";
2
- //#region src/xml/fragment.d.ts
3
- declare function el(tag: string, attrs?: Record<string, string>, children?: XmlNode[]): XmlElement;
4
- declare function txt(value: string): XmlText;
5
- //#endregion
1
+ import { n as txt, t as el } from "../fragment-B1ZV7T5Z.js";
6
2
  export { el, txt };
@@ -1,5 +1,2 @@
1
- import { d as XmlNode } from "../node-CkBWRjNR.cjs";
2
- //#region src/xml/parse.d.ts
3
- declare function parseXml(xml: string): XmlNode[];
4
- //#endregion
1
+ import { t as parseXml } from "../parse-CP5FLZqv.cjs";
5
2
  export { parseXml };
@@ -1,5 +1,2 @@
1
- import { d as XmlNode } from "../node-CkBWRjNR.js";
2
- //#region src/xml/parse.d.ts
3
- declare function parseXml(xml: string): XmlNode[];
4
- //#endregion
1
+ import { t as parseXml } from "../parse-A8_8sdpX.js";
5
2
  export { parseXml };
@@ -0,0 +1,5 @@
1
+ //#region src/zip.d.ts
2
+ declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
3
+ declare function zipPackage(parts: Record<string, Uint8Array<ArrayBuffer>>): Uint8Array<ArrayBuffer>;
4
+ //#endregion
5
+ export { zipPackage as n, unzipPackage as t };
@@ -0,0 +1,5 @@
1
+ //#region src/zip.d.ts
2
+ declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
3
+ declare function zipPackage(parts: Record<string, Uint8Array<ArrayBuffer>>): Uint8Array<ArrayBuffer>;
4
+ //#endregion
5
+ export { zipPackage as n, unzipPackage as t };
package/dist/zip.d.cts CHANGED
@@ -1,5 +1,2 @@
1
- //#region src/zip.d.ts
2
- declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
3
- declare function zipPackage(parts: Record<string, Uint8Array<ArrayBuffer>>): Uint8Array<ArrayBuffer>;
4
- //#endregion
1
+ import { n as zipPackage, t as unzipPackage } from "./zip-Ckbv-mtV.cjs";
5
2
  export { unzipPackage, zipPackage };
package/dist/zip.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- //#region src/zip.d.ts
2
- declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
3
- declare function zipPackage(parts: Record<string, Uint8Array<ArrayBuffer>>): Uint8Array<ArrayBuffer>;
4
- //#endregion
1
+ import { n as zipPackage, t as unzipPackage } from "./zip-Ckbv-mtV.js";
5
2
  export { unzipPackage, zipPackage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ooxml.js",
3
- "version": "2.9.4",
3
+ "version": "2.10.0",
4
4
  "description": "Type-safe, lossless round-trip conversion between OOXML packages (docx, pptx, xlsx) and JSON, built on Zod 4 codecs.",
5
5
  "type": "module",
6
6
  "repository": {