odf.js 1.12.0 → 1.13.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 (178) hide show
  1. package/README.md +39 -0
  2. package/dist/codec.cjs +28 -0
  3. package/dist/codec.d.cts +72 -0
  4. package/dist/codec.d.ts +72 -0
  5. package/dist/codec.js +24 -0
  6. package/dist/image/sniff.cjs +28 -0
  7. package/dist/image/sniff.d.cts +5 -0
  8. package/dist/image/sniff.d.ts +5 -0
  9. package/dist/image/sniff.js +27 -0
  10. package/dist/index.cjs +156 -3242
  11. package/dist/index.d.cts +42 -679
  12. package/dist/index.d.ts +42 -679
  13. package/dist/index.js +42 -3129
  14. package/dist/manifest.cjs +252 -0
  15. package/dist/manifest.d.cts +41 -0
  16. package/dist/manifest.d.ts +41 -0
  17. package/dist/manifest.js +242 -0
  18. package/dist/media-type.cjs +27 -0
  19. package/dist/media-type.d.cts +20 -0
  20. package/dist/media-type.d.ts +20 -0
  21. package/dist/media-type.js +25 -0
  22. package/dist/mimetype.cjs +19 -0
  23. package/dist/mimetype.d.cts +7 -0
  24. package/dist/mimetype.d.ts +7 -0
  25. package/dist/mimetype.js +16 -0
  26. package/dist/model/node.cjs +67 -0
  27. package/dist/model/node.d.cts +2 -0
  28. package/dist/model/node.d.ts +2 -0
  29. package/dist/model/node.js +58 -0
  30. package/dist/model/package.cjs +19 -0
  31. package/dist/model/package.d.cts +114 -0
  32. package/dist/model/package.d.ts +114 -0
  33. package/dist/model/package.js +15 -0
  34. package/dist/node-CkBWRjNR.d.cts +83 -0
  35. package/dist/node-CkBWRjNR.d.ts +83 -0
  36. package/dist/ns.cjs +37 -0
  37. package/dist/ns.d.cts +32 -0
  38. package/dist/ns.d.ts +32 -0
  39. package/dist/ns.js +35 -0
  40. package/dist/package-io/read.cjs +35 -0
  41. package/dist/package-io/read.d.cts +5 -0
  42. package/dist/package-io/read.d.ts +5 -0
  43. package/dist/package-io/read.js +34 -0
  44. package/dist/package-io/write.cjs +36 -0
  45. package/dist/package-io/write.d.cts +7 -0
  46. package/dist/package-io/write.d.ts +7 -0
  47. package/dist/package-io/write.js +33 -0
  48. package/dist/styles/properties.cjs +286 -0
  49. package/dist/styles/properties.d.cts +45 -0
  50. package/dist/styles/properties.d.ts +45 -0
  51. package/dist/styles/properties.js +277 -0
  52. package/dist/styles/registry.cjs +212 -0
  53. package/dist/styles/registry.d.cts +37 -0
  54. package/dist/styles/registry.d.ts +37 -0
  55. package/dist/styles/registry.js +209 -0
  56. package/dist/styles/serialize.cjs +23 -0
  57. package/dist/styles/serialize.d.cts +7 -0
  58. package/dist/styles/serialize.d.ts +7 -0
  59. package/dist/styles/serialize.js +21 -0
  60. package/dist/styles/span.cjs +114 -0
  61. package/dist/styles/span.d.cts +5 -0
  62. package/dist/styles/span.d.ts +5 -0
  63. package/dist/styles/span.js +113 -0
  64. package/dist/typed/draw/shapes.cjs +314 -0
  65. package/dist/typed/draw/shapes.d.cts +14 -0
  66. package/dist/typed/draw/shapes.d.ts +14 -0
  67. package/dist/typed/draw/shapes.js +311 -0
  68. package/dist/typed/formula/read.cjs +48 -0
  69. package/dist/typed/formula/read.d.cts +12 -0
  70. package/dist/typed/formula/read.d.ts +12 -0
  71. package/dist/typed/formula/read.js +47 -0
  72. package/dist/typed/odb/read.cjs +112 -0
  73. package/dist/typed/odb/read.d.cts +17 -0
  74. package/dist/typed/odb/read.d.ts +17 -0
  75. package/dist/typed/odb/read.js +111 -0
  76. package/dist/typed/odg/read.cjs +30 -0
  77. package/dist/typed/odg/read.d.cts +10 -0
  78. package/dist/typed/odg/read.d.ts +10 -0
  79. package/dist/typed/odg/read.js +29 -0
  80. package/dist/typed/odm/read.cjs +37 -0
  81. package/dist/typed/odm/read.d.cts +15 -0
  82. package/dist/typed/odm/read.d.ts +15 -0
  83. package/dist/typed/odm/read.js +36 -0
  84. package/dist/typed/odp/read.cjs +39 -0
  85. package/dist/typed/odp/read.d.cts +10 -0
  86. package/dist/typed/odp/read.d.ts +10 -0
  87. package/dist/typed/odp/read.js +38 -0
  88. package/dist/typed/ods/read.cjs +318 -0
  89. package/dist/typed/ods/read.d.cts +10 -0
  90. package/dist/typed/ods/read.d.ts +10 -0
  91. package/dist/typed/ods/read.js +317 -0
  92. package/dist/typed/odt/read.cjs +112 -0
  93. package/dist/typed/odt/read.d.cts +10 -0
  94. package/dist/typed/odt/read.d.ts +10 -0
  95. package/dist/typed/odt/read.js +111 -0
  96. package/dist/typed/shared/a1.cjs +68 -0
  97. package/dist/typed/shared/a1.d.cts +18 -0
  98. package/dist/typed/shared/a1.d.ts +18 -0
  99. package/dist/typed/shared/a1.js +63 -0
  100. package/dist/typed/shared/cascade.cjs +102 -0
  101. package/dist/typed/shared/cascade.d.cts +22 -0
  102. package/dist/typed/shared/cascade.d.ts +22 -0
  103. package/dist/typed/shared/cascade.js +99 -0
  104. package/dist/typed/shared/color.cjs +14 -0
  105. package/dist/typed/shared/color.d.cts +6 -0
  106. package/dist/typed/shared/color.d.ts +6 -0
  107. package/dist/typed/shared/color.js +12 -0
  108. package/dist/typed/shared/geometry.cjs +79 -0
  109. package/dist/typed/shared/geometry.d.cts +12 -0
  110. package/dist/typed/shared/geometry.d.ts +12 -0
  111. package/dist/typed/shared/geometry.js +75 -0
  112. package/dist/typed/shared/masterpage.cjs +39 -0
  113. package/dist/typed/shared/masterpage.d.cts +8 -0
  114. package/dist/typed/shared/masterpage.d.ts +8 -0
  115. package/dist/typed/shared/masterpage.js +37 -0
  116. package/dist/typed/shared/metadata.cjs +42 -0
  117. package/dist/typed/shared/metadata.d.cts +7 -0
  118. package/dist/typed/shared/metadata.d.ts +7 -0
  119. package/dist/typed/shared/metadata.js +40 -0
  120. package/dist/typed/shared/paragraph.cjs +57 -0
  121. package/dist/typed/shared/paragraph.d.cts +7 -0
  122. package/dist/typed/shared/paragraph.d.ts +7 -0
  123. package/dist/typed/shared/paragraph.js +56 -0
  124. package/dist/typed/shared/path.cjs +261 -0
  125. package/dist/typed/shared/path.d.cts +34 -0
  126. package/dist/typed/shared/path.d.ts +34 -0
  127. package/dist/typed/shared/path.js +255 -0
  128. package/dist/typed/shared/style.cjs +8 -0
  129. package/dist/typed/shared/style.d.cts +2 -0
  130. package/dist/typed/shared/style.d.ts +2 -0
  131. package/dist/typed/shared/style.js +2 -0
  132. package/dist/typed/shared/table.cjs +84 -0
  133. package/dist/typed/shared/table.d.cts +7 -0
  134. package/dist/typed/shared/table.d.ts +7 -0
  135. package/dist/typed/shared/table.js +83 -0
  136. package/dist/typed/shared/text.cjs +43 -0
  137. package/dist/typed/shared/text.d.cts +8 -0
  138. package/dist/typed/shared/text.d.ts +8 -0
  139. package/dist/typed/shared/text.js +39 -0
  140. package/dist/typed/shared/transform.cjs +112 -0
  141. package/dist/typed/shared/transform.d.cts +26 -0
  142. package/dist/typed/shared/transform.d.ts +26 -0
  143. package/dist/typed/shared/transform.js +107 -0
  144. package/dist/typed/shared/units.cjs +35 -0
  145. package/dist/typed/shared/units.d.cts +2 -0
  146. package/dist/typed/shared/units.d.ts +2 -0
  147. package/dist/typed/shared/units.js +33 -0
  148. package/dist/units-7pCiECuP.d.cts +6 -0
  149. package/dist/units-7pCiECuP.d.ts +6 -0
  150. package/dist/util/base64.cjs +48 -0
  151. package/dist/util/base64.d.cts +5 -0
  152. package/dist/util/base64.d.ts +5 -0
  153. package/dist/util/base64.js +46 -0
  154. package/dist/xml/build.cjs +46 -0
  155. package/dist/xml/build.d.cts +5 -0
  156. package/dist/xml/build.d.ts +5 -0
  157. package/dist/xml/build.js +46 -0
  158. package/dist/xml/entities.cjs +19 -0
  159. package/dist/xml/entities.d.cts +5 -0
  160. package/dist/xml/entities.d.ts +5 -0
  161. package/dist/xml/entities.js +17 -0
  162. package/dist/xml/fragment.cjs +22 -0
  163. package/dist/xml/fragment.d.cts +6 -0
  164. package/dist/xml/fragment.d.ts +6 -0
  165. package/dist/xml/fragment.js +20 -0
  166. package/dist/xml/parse.cjs +88 -0
  167. package/dist/xml/parse.d.cts +5 -0
  168. package/dist/xml/parse.d.ts +5 -0
  169. package/dist/xml/parse.js +88 -0
  170. package/dist/xml/query.cjs +33 -0
  171. package/dist/xml/query.d.cts +9 -0
  172. package/dist/xml/query.d.ts +9 -0
  173. package/dist/xml/query.js +28 -0
  174. package/dist/zip.cjs +15 -0
  175. package/dist/zip.d.cts +9 -0
  176. package/dist/zip.d.ts +9 -0
  177. package/dist/zip.js +13 -0
  178. package/package.json +9 -1
package/dist/index.d.ts CHANGED
@@ -1,680 +1,43 @@
1
- import { z } from "zod";
2
- import { Alignment, AlignmentSchema, Box, Color, ContentDrawPage, ContentParagraph, ContentPathPoint, ContentSection, ContentShape, ContentSheet, ContentSlide, ContentSubpath, ContentTable, ContentVector, LayoutMetadata, Margins, PageSize } from "document-schema.js";
3
- //#region src/model/node.d.ts
4
- declare const AttributeSchema: z.ZodObject<{
5
- name: z.ZodString;
6
- value: z.ZodString;
7
- }, z.core.$strip>;
8
- type Attribute = z.infer<typeof AttributeSchema>;
9
- declare const XmlTextSchema: z.ZodObject<{
10
- type: z.ZodLiteral<"text">;
11
- value: z.ZodString;
12
- }, z.core.$strip>;
13
- type XmlText = z.infer<typeof XmlTextSchema>;
14
- declare const XmlCdataSchema: z.ZodObject<{
15
- type: z.ZodLiteral<"cdata">;
16
- value: z.ZodString;
17
- }, z.core.$strip>;
18
- type XmlCdata = z.infer<typeof XmlCdataSchema>;
19
- declare const XmlCommentSchema: z.ZodObject<{
20
- type: z.ZodLiteral<"comment">;
21
- value: z.ZodString;
22
- }, z.core.$strip>;
23
- type XmlComment = z.infer<typeof XmlCommentSchema>;
24
- declare const XmlDeclarationSchema: z.ZodObject<{
25
- type: z.ZodLiteral<"declaration">;
26
- attributes: z.ZodArray<z.ZodObject<{
27
- name: z.ZodString;
28
- value: z.ZodString;
29
- }, z.core.$strip>>;
30
- }, z.core.$strip>;
31
- type XmlDeclaration = z.infer<typeof XmlDeclarationSchema>;
32
- declare const XmlPiSchema: z.ZodObject<{
33
- type: z.ZodLiteral<"pi">;
34
- target: z.ZodString;
35
- content: z.ZodString;
36
- }, z.core.$strip>;
37
- type XmlPi = z.infer<typeof XmlPiSchema>;
38
- interface XmlElement {
39
- type: 'element';
40
- tag: string;
41
- attributes: Attribute[];
42
- children: XmlNode[];
43
- }
44
- type XmlNode = XmlText | XmlCdata | XmlComment | XmlDeclaration | XmlPi | XmlElement;
45
- declare function isXmlNode(value: unknown): value is XmlNode;
46
- declare const XmlElementSchema: z.ZodObject<{
47
- type: z.ZodLiteral<"element">;
48
- tag: z.ZodString;
49
- attributes: z.ZodArray<z.ZodObject<{
50
- name: z.ZodString;
51
- value: z.ZodString;
52
- }, z.core.$strip>>;
53
- children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
54
- }, z.core.$strip>;
55
- declare const XmlNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
56
- type: z.ZodLiteral<"text">;
57
- value: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- type: z.ZodLiteral<"cdata">;
60
- value: z.ZodString;
61
- }, z.core.$strip>, z.ZodObject<{
62
- type: z.ZodLiteral<"comment">;
63
- value: z.ZodString;
64
- }, z.core.$strip>, z.ZodObject<{
65
- type: z.ZodLiteral<"declaration">;
66
- attributes: z.ZodArray<z.ZodObject<{
67
- name: z.ZodString;
68
- value: z.ZodString;
69
- }, z.core.$strip>>;
70
- }, z.core.$strip>, z.ZodObject<{
71
- type: z.ZodLiteral<"pi">;
72
- target: z.ZodString;
73
- content: z.ZodString;
74
- }, z.core.$strip>, z.ZodObject<{
75
- type: z.ZodLiteral<"element">;
76
- tag: z.ZodString;
77
- attributes: z.ZodArray<z.ZodObject<{
78
- name: z.ZodString;
79
- value: z.ZodString;
80
- }, z.core.$strip>>;
81
- children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
82
- }, z.core.$strip>], "type">;
83
- //#endregion
84
- //#region src/model/package.d.ts
85
- declare const XmlPartSchema: z.ZodObject<{
86
- kind: z.ZodLiteral<"xml">;
87
- nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
88
- type: z.ZodLiteral<"text">;
89
- value: z.ZodString;
90
- }, z.core.$strip>, z.ZodObject<{
91
- type: z.ZodLiteral<"cdata">;
92
- value: z.ZodString;
93
- }, z.core.$strip>, z.ZodObject<{
94
- type: z.ZodLiteral<"comment">;
95
- value: z.ZodString;
96
- }, z.core.$strip>, z.ZodObject<{
97
- type: z.ZodLiteral<"declaration">;
98
- attributes: z.ZodArray<z.ZodObject<{
99
- name: z.ZodString;
100
- value: z.ZodString;
101
- }, z.core.$strip>>;
102
- }, z.core.$strip>, z.ZodObject<{
103
- type: z.ZodLiteral<"pi">;
104
- target: z.ZodString;
105
- content: z.ZodString;
106
- }, z.core.$strip>, z.ZodObject<{
107
- type: z.ZodLiteral<"element">;
108
- tag: z.ZodString;
109
- attributes: z.ZodArray<z.ZodObject<{
110
- name: z.ZodString;
111
- value: z.ZodString;
112
- }, z.core.$strip>>;
113
- children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
114
- }, z.core.$strip>], "type">>;
115
- }, z.core.$strip>;
116
- type XmlPart = z.infer<typeof XmlPartSchema>;
117
- declare const BinaryPartSchema: z.ZodObject<{
118
- kind: z.ZodLiteral<"binary">;
119
- base64: z.ZodString;
120
- }, z.core.$strip>;
121
- type BinaryPart = z.infer<typeof BinaryPartSchema>;
122
- declare const PartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
123
- kind: z.ZodLiteral<"xml">;
124
- nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
125
- type: z.ZodLiteral<"text">;
126
- value: z.ZodString;
127
- }, z.core.$strip>, z.ZodObject<{
128
- type: z.ZodLiteral<"cdata">;
129
- value: z.ZodString;
130
- }, z.core.$strip>, z.ZodObject<{
131
- type: z.ZodLiteral<"comment">;
132
- value: z.ZodString;
133
- }, z.core.$strip>, z.ZodObject<{
134
- type: z.ZodLiteral<"declaration">;
135
- attributes: z.ZodArray<z.ZodObject<{
136
- name: z.ZodString;
137
- value: z.ZodString;
138
- }, z.core.$strip>>;
139
- }, z.core.$strip>, z.ZodObject<{
140
- type: z.ZodLiteral<"pi">;
141
- target: z.ZodString;
142
- content: z.ZodString;
143
- }, z.core.$strip>, z.ZodObject<{
144
- type: z.ZodLiteral<"element">;
145
- tag: z.ZodString;
146
- attributes: z.ZodArray<z.ZodObject<{
147
- name: z.ZodString;
148
- value: z.ZodString;
149
- }, z.core.$strip>>;
150
- children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
151
- }, z.core.$strip>], "type">>;
152
- }, z.core.$strip>, z.ZodObject<{
153
- kind: z.ZodLiteral<"binary">;
154
- base64: z.ZodString;
155
- }, z.core.$strip>], "kind">;
156
- type Part = z.infer<typeof PartSchema>;
157
- declare const PackageSchema: z.ZodObject<{
158
- parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
159
- kind: z.ZodLiteral<"xml">;
160
- nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
161
- type: z.ZodLiteral<"text">;
162
- value: z.ZodString;
163
- }, z.core.$strip>, z.ZodObject<{
164
- type: z.ZodLiteral<"cdata">;
165
- value: z.ZodString;
166
- }, z.core.$strip>, z.ZodObject<{
167
- type: z.ZodLiteral<"comment">;
168
- value: z.ZodString;
169
- }, z.core.$strip>, z.ZodObject<{
170
- type: z.ZodLiteral<"declaration">;
171
- attributes: z.ZodArray<z.ZodObject<{
172
- name: z.ZodString;
173
- value: z.ZodString;
174
- }, z.core.$strip>>;
175
- }, z.core.$strip>, z.ZodObject<{
176
- type: z.ZodLiteral<"pi">;
177
- target: z.ZodString;
178
- content: z.ZodString;
179
- }, z.core.$strip>, z.ZodObject<{
180
- type: z.ZodLiteral<"element">;
181
- tag: z.ZodString;
182
- attributes: z.ZodArray<z.ZodObject<{
183
- name: z.ZodString;
184
- value: z.ZodString;
185
- }, z.core.$strip>>;
186
- children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
187
- }, z.core.$strip>], "type">>;
188
- }, z.core.$strip>, z.ZodObject<{
189
- kind: z.ZodLiteral<"binary">;
190
- base64: z.ZodString;
191
- }, z.core.$strip>], "kind">>;
192
- }, z.core.$strip>;
193
- type Package = z.infer<typeof PackageSchema>;
194
- //#endregion
195
- //#region src/codec.d.ts
196
- declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
197
- type: z.ZodLiteral<"text">;
198
- value: z.ZodString;
199
- }, z.core.$strip>, z.ZodObject<{
200
- type: z.ZodLiteral<"cdata">;
201
- value: z.ZodString;
202
- }, z.core.$strip>, z.ZodObject<{
203
- type: z.ZodLiteral<"comment">;
204
- value: z.ZodString;
205
- }, z.core.$strip>, z.ZodObject<{
206
- type: z.ZodLiteral<"declaration">;
207
- attributes: z.ZodArray<z.ZodObject<{
208
- name: z.ZodString;
209
- value: z.ZodString;
210
- }, z.core.$strip>>;
211
- }, z.core.$strip>, z.ZodObject<{
212
- type: z.ZodLiteral<"pi">;
213
- target: z.ZodString;
214
- content: z.ZodString;
215
- }, z.core.$strip>, z.ZodObject<{
216
- type: z.ZodLiteral<"element">;
217
- tag: z.ZodString;
218
- attributes: z.ZodArray<z.ZodObject<{
219
- name: z.ZodString;
220
- value: z.ZodString;
221
- }, z.core.$strip>>;
222
- children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
223
- }, z.core.$strip>], "type">>>;
224
- declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
225
- parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
226
- kind: z.ZodLiteral<"xml">;
227
- nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
228
- type: z.ZodLiteral<"text">;
229
- value: z.ZodString;
230
- }, z.core.$strip>, z.ZodObject<{
231
- type: z.ZodLiteral<"cdata">;
232
- value: z.ZodString;
233
- }, z.core.$strip>, z.ZodObject<{
234
- type: z.ZodLiteral<"comment">;
235
- value: z.ZodString;
236
- }, z.core.$strip>, z.ZodObject<{
237
- type: z.ZodLiteral<"declaration">;
238
- attributes: z.ZodArray<z.ZodObject<{
239
- name: z.ZodString;
240
- value: z.ZodString;
241
- }, z.core.$strip>>;
242
- }, z.core.$strip>, z.ZodObject<{
243
- type: z.ZodLiteral<"pi">;
244
- target: z.ZodString;
245
- content: z.ZodString;
246
- }, z.core.$strip>, z.ZodObject<{
247
- type: z.ZodLiteral<"element">;
248
- tag: z.ZodString;
249
- attributes: z.ZodArray<z.ZodObject<{
250
- name: z.ZodString;
251
- value: z.ZodString;
252
- }, z.core.$strip>>;
253
- children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
254
- }, z.core.$strip>], "type">>;
255
- }, z.core.$strip>, z.ZodObject<{
256
- kind: z.ZodLiteral<"binary">;
257
- base64: z.ZodString;
258
- }, z.core.$strip>], "kind">>;
259
- }, z.core.$strip>>;
260
- declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
261
- declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
262
- //#endregion
263
- //#region src/package-io/read.d.ts
264
- declare function parsePackage(bytes: Uint8Array<ArrayBuffer>): Package;
265
- //#endregion
266
- //#region src/package-io/write.d.ts
267
- declare const MIMETYPE_PART = "mimetype";
268
- declare const MANIFEST_PART = "META-INF/manifest.xml";
269
- declare function serializePackage(pkg: Package): Uint8Array<ArrayBuffer>;
270
- //#endregion
271
- //#region src/xml/parse.d.ts
272
- declare function parseXml(xml: string): XmlNode[];
273
- //#endregion
274
- //#region src/xml/build.d.ts
275
- declare function buildXml(nodes: XmlNode[]): string;
276
- //#endregion
277
- //#region src/zip.d.ts
278
- interface ZipEntry {
279
- readonly bytes: Uint8Array<ArrayBuffer>;
280
- readonly stored?: boolean;
281
- }
282
- declare function unzipPackage(bytes: Uint8Array<ArrayBuffer>): Record<string, Uint8Array<ArrayBuffer>>;
283
- declare function zipPackage(entries: readonly (readonly [string, ZipEntry])[]): Uint8Array<ArrayBuffer>;
284
- //#endregion
285
- //#region src/util/base64.d.ts
286
- declare function bytesToBase64(bytes: Uint8Array<ArrayBuffer>): string;
287
- declare function base64ToBytes(b64: string): Uint8Array<ArrayBuffer>;
288
- //#endregion
289
- //#region src/ns.d.ts
290
- declare const ODF_NAMESPACES: Readonly<{
291
- office: "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
292
- style: "urn:oasis:names:tc:opendocument:xmlns:style:1.0";
293
- text: "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
294
- table: "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
295
- draw: "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0";
296
- fo: "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0";
297
- svg: "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0";
298
- xlink: "http://www.w3.org/1999/xlink";
299
- dc: "http://purl.org/dc/elements/1.1/";
300
- meta: "urn:oasis:names:tc:opendocument:xmlns:meta:1.0";
301
- number: "urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0";
302
- chart: "urn:oasis:names:tc:opendocument:xmlns:chart:1.0";
303
- dr3d: "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0";
304
- math: "http://www.w3.org/1998/Math/MathML";
305
- form: "urn:oasis:names:tc:opendocument:xmlns:form:1.0";
306
- script: "urn:oasis:names:tc:opendocument:xmlns:script:1.0";
307
- config: "urn:oasis:names:tc:opendocument:xmlns:config:1.0";
308
- presentation: "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0";
309
- smil: "urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0";
310
- anim: "urn:oasis:names:tc:opendocument:xmlns:animation:1.0";
311
- xforms: "http://www.w3.org/2002/xforms";
312
- xsd: "http://www.w3.org/2001/XMLSchema";
313
- xsi: "http://www.w3.org/2001/XMLSchema-instance";
314
- manifest: "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0";
315
- db: "urn:oasis:names:tc:opendocument:xmlns:database:1.0";
316
- }>;
317
- type OdfNamespacePrefix = keyof typeof ODF_NAMESPACES;
318
- declare function xmlnsAttributes(prefixes: readonly OdfNamespacePrefix[]): Record<string, string>;
319
- //#endregion
320
- //#region src/media-type.d.ts
321
- declare const ODF_MEDIA_TYPES: Readonly<{
322
- odt: "application/vnd.oasis.opendocument.text";
323
- ott: "application/vnd.oasis.opendocument.text-template";
324
- ods: "application/vnd.oasis.opendocument.spreadsheet";
325
- ots: "application/vnd.oasis.opendocument.spreadsheet-template";
326
- odp: "application/vnd.oasis.opendocument.presentation";
327
- otp: "application/vnd.oasis.opendocument.presentation-template";
328
- odg: "application/vnd.oasis.opendocument.graphics";
329
- otg: "application/vnd.oasis.opendocument.graphics-template";
330
- odf: "application/vnd.oasis.opendocument.formula";
331
- otf: "application/vnd.oasis.opendocument.formula-template";
332
- odm: "application/vnd.oasis.opendocument.text-master";
333
- otm: "application/vnd.oasis.opendocument.text-master-template";
334
- odb: "application/vnd.oasis.opendocument.base";
335
- }>;
336
- type OdfExtension = keyof typeof ODF_MEDIA_TYPES;
337
- declare function mediaTypeForExtension(extension: string): string | undefined;
338
- //#endregion
339
- //#region src/image/sniff.d.ts
340
- type ImageFormat = 'png' | 'jpeg';
341
- declare function sniffImageFormat(bytes: Uint8Array<ArrayBuffer>): ImageFormat | undefined;
342
- //#endregion
343
- //#region src/mimetype.d.ts
344
- declare function readMimetype(pkg: Package): string | undefined;
345
- declare function writeMimetype(pkg: Package, mediaType: string): void;
346
- //#endregion
347
- //#region src/xml/fragment.d.ts
348
- declare function el(tag: string, attrs?: Record<string, string>, children?: XmlNode[]): XmlElement;
349
- declare function txt(value: string): XmlText;
350
- //#endregion
351
- //#region src/xml/entities.d.ts
352
- declare function encodeXmlText(value: string): string;
353
- declare function decodeXmlText(value: string): string;
354
- //#endregion
355
- //#region src/manifest.d.ts
356
- declare const ManifestEntrySchema: z.ZodObject<{
357
- fullPath: z.ZodString;
358
- mediaType: z.ZodString;
359
- version: z.ZodOptional<z.ZodString>;
360
- }, z.core.$strip>;
361
- type ManifestEntry = z.infer<typeof ManifestEntrySchema>;
362
- declare const ManifestSchema: z.ZodObject<{
363
- version: z.ZodString;
364
- entries: z.ZodArray<z.ZodObject<{
365
- fullPath: z.ZodString;
366
- mediaType: z.ZodString;
367
- version: z.ZodOptional<z.ZodString>;
368
- }, z.core.$strip>>;
369
- }, z.core.$strip>;
370
- type Manifest = z.infer<typeof ManifestSchema>;
371
- declare const ManifestProblemSchema: z.ZodObject<{
372
- severity: z.ZodEnum<{
373
- error: "error";
374
- warning: "warning";
375
- }>;
376
- message: z.ZodString;
377
- path: z.ZodOptional<z.ZodString>;
378
- }, z.core.$strip>;
379
- type ManifestProblem = z.infer<typeof ManifestProblemSchema>;
380
- declare function readManifest(pkg: Package): Manifest;
381
- interface BuildManifestOptions {
382
- documentMediaType?: string;
383
- version?: string;
384
- mediaTypeOverrides?: Readonly<Record<string, string>>;
385
- }
386
- declare function buildManifest(pkg: Package, options?: BuildManifestOptions): Manifest;
387
- declare function writeManifest(pkg: Package, manifest: Manifest): void;
388
- declare function syncManifest(pkg: Package, options?: BuildManifestOptions): void;
389
- declare function validateManifest(pkg: Package): ManifestProblem[];
390
- declare function setDocumentMediaType(pkg: Package, mediaType: string, version?: string): void;
391
- //#endregion
392
- //#region src/typed/shared/units.d.ts
393
- type LengthUnit = 'cm' | 'mm' | 'in' | 'pt' | 'pc' | 'px';
394
- declare function parseOdfLength(value: string): number | undefined;
395
- declare function formatOdfLength(pt: number, unit?: LengthUnit): string;
396
- //#endregion
397
- //#region src/styles/properties.d.ts
398
- declare const StylePropertiesSchema: z.ZodObject<{
399
- bold: z.ZodOptional<z.ZodBoolean>;
400
- italic: z.ZodOptional<z.ZodBoolean>;
401
- underline: z.ZodOptional<z.ZodBoolean>;
402
- strike: z.ZodOptional<z.ZodBoolean>;
403
- fontFamily: z.ZodOptional<z.ZodString>;
404
- sizePt: z.ZodOptional<z.ZodNumber>;
405
- color: z.ZodOptional<z.ZodObject<{
406
- r: z.ZodNumber;
407
- g: z.ZodNumber;
408
- b: z.ZodNumber;
409
- }, z.core.$strip>>;
410
- alignment: z.ZodOptional<z.ZodEnum<{
411
- left: "left";
412
- center: "center";
413
- right: "right";
414
- justify: "justify";
415
- }>>;
416
- spacingBeforePt: z.ZodOptional<z.ZodNumber>;
417
- spacingAfterPt: z.ZodOptional<z.ZodNumber>;
418
- lineSpacing: z.ZodOptional<z.ZodNumber>;
419
- indentLeftPt: z.ZodOptional<z.ZodNumber>;
420
- indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
421
- }, z.core.$strip>;
422
- type StyleProperties = z.infer<typeof StylePropertiesSchema>;
423
- interface ParsedProperties {
424
- properties: Partial<StyleProperties>;
425
- hasUnknown: boolean;
426
- }
427
- declare function formatPt(valuePt: number): string;
428
- declare function formatPercentageMultiplier(multiplier: number): string;
429
- declare function parseTextProperties(element: XmlElement): ParsedProperties;
430
- declare function parseParagraphProperties(element: XmlElement): ParsedProperties;
431
- declare function parseStyleElementProperties(styleElement: XmlElement): {
432
- properties: StyleProperties;
433
- hasUnknown: boolean;
434
- };
435
- declare function textPropertiesToAttributes(properties: StyleProperties): Attribute[];
436
- declare function paragraphPropertiesToAttributes(properties: StyleProperties): Attribute[];
437
- //#endregion
438
- //#region src/styles/serialize.d.ts
439
- declare function buildStylePropertyElements(properties: StyleProperties): XmlElement[];
440
- declare function canonicalPropertiesString(properties: StyleProperties): string;
441
- //#endregion
442
- //#region src/styles/registry.d.ts
443
- declare const STYLE_FAMILIES: readonly ["paragraph", "text", "table", "table-column", "table-row", "table-cell", "graphic"];
444
- type StyleFamily = (typeof STYLE_FAMILIES)[number];
445
- declare function isStyleFamily(value: string): value is StyleFamily;
446
- interface InternRequest {
447
- properties: StyleProperties;
448
- family: StyleFamily;
449
- parentStyleName?: string;
450
- }
451
- interface OtherPartRef {
452
- pkg: Package;
453
- partPath: string;
454
- }
455
- interface StyleRegistryOptions {
456
- otherPart?: OtherPartRef;
457
- additionalReservedNames?: readonly string[];
458
- }
459
- declare class StyleRegistry {
460
- private readonly automaticStyles;
461
- private readonly prefixes;
462
- private readonly reservedByFamily;
463
- private readonly knownStyles;
464
- private readonly fingerprintToName;
465
- private readonly nameToFingerprint;
466
- private readonly familyCounters;
467
- private constructor();
468
- static forPart(pkg: Package, partPath: string, options?: StyleRegistryOptions): StyleRegistry;
469
- fingerprint(request: InternRequest): string;
470
- intern(request: InternRequest): string;
471
- private mintName;
472
- names(): readonly string[];
473
- gc(referenced: ReadonlySet<string>): number;
474
- }
475
- //#endregion
476
- //#region src/styles/span.d.ts
477
- declare function ensureSpan(paragraph: XmlElement, start: number, end: number, styleName: string): XmlElement;
478
- //#endregion
479
- //#region src/xml/query.d.ts
480
- declare function rootElement(nodes: readonly XmlNode[]): XmlElement | undefined;
481
- declare function findChildElement(nodes: readonly XmlNode[], tag: string): XmlElement | undefined;
482
- declare function childrenWithTag(element: XmlElement, tag: string): XmlElement[];
483
- declare function elementsWithTag(nodes: readonly XmlNode[], tag: string): XmlElement[];
484
- declare function attrValue(element: XmlElement, name: string): string | undefined;
485
- //#endregion
486
- //#region src/typed/shared/a1.d.ts
487
- declare function columnIndexToLetters(index: number): string;
488
- declare function cellReference(columnIndex: number, rowIndex: number): string;
489
- declare function columnLettersToIndex(letters: string): number | undefined;
490
- declare function parseCellReference(reference: string): {
491
- column: number;
492
- row: number;
493
- } | undefined;
494
- declare class TableCursor {
495
- private columnCursor;
496
- private rowCursor;
497
- get columnIndex(): number;
498
- get rowIndex(): number;
499
- nextCell(repeatCount?: number): string;
500
- nextRow(repeatCount?: number): void;
501
- }
502
- //#endregion
503
- //#region src/typed/shared/color.d.ts
504
- declare function parseOdfColor(value: string): Color | undefined;
505
- declare function formatOdfColor(color: Color): string;
506
- //#endregion
507
- //#region src/typed/shared/geometry.d.ts
508
- declare function parsePageSize(pageLayoutProperties: XmlElement): PageSize | undefined;
509
- declare function parseMargins(pageLayoutProperties: XmlElement): Margins | undefined;
510
- declare function parseBox(element: XmlElement): Box | undefined;
511
- declare function parseLinePoints(element: XmlElement): {
512
- from: ContentPathPoint;
513
- to: ContentPathPoint;
514
- } | undefined;
515
- //#endregion
516
- //#region src/typed/shared/text.d.ts
517
- declare function getOdfSpaceCount(element: XmlElement): number;
518
- declare function measureOdfNodeLength(node: XmlNode): number;
519
- declare function sumOdfNodeLength(nodes: readonly XmlNode[]): number;
520
- declare function decodeOdfText(container: XmlElement): string;
521
- //#endregion
522
- //#region src/typed/shared/cascade.d.ts
523
- interface CascadeDiagnostic {
524
- severity: 'warning';
525
- message: string;
526
- }
527
- interface StyleCascadeResult {
528
- properties: StyleProperties;
529
- diagnostics: CascadeDiagnostic[];
530
- }
531
- interface StyleElementChainResult {
532
- elements: XmlElement[];
533
- diagnostics: CascadeDiagnostic[];
534
- }
535
- declare function resolveStyleElementChain(styleName: string | undefined, family: StyleFamily, pkg: Package): StyleElementChainResult;
536
- declare function resolveStyle(styleName: string | undefined, family: StyleFamily, pkg: Package): StyleCascadeResult;
537
- declare function findStyleElement(styleName: string, family: StyleFamily, pkg: Package): XmlElement | undefined;
538
- //#endregion
539
- //#region src/typed/shared/metadata.d.ts
540
- declare const META_PART = "meta.xml";
541
- declare function readOdfMetadata(pkg: Package): LayoutMetadata;
542
- //#endregion
543
- //#region src/typed/shared/paragraph.d.ts
544
- declare function readOdfParagraph(pElement: XmlElement, pkg: Package): ContentParagraph;
545
- //#endregion
546
- //#region src/typed/shared/table.d.ts
547
- declare function readOdfTable(tableElement: XmlElement, pkg: Package): ContentTable;
548
- //#endregion
549
- //#region src/typed/shared/transform.d.ts
550
- type OdfTransformFunction = {
551
- readonly kind: 'rotate';
552
- readonly angleRad: number;
553
- } | {
554
- readonly kind: 'translate';
555
- readonly xPt: number;
556
- readonly yPt: number;
557
- };
558
- interface OdfPoint {
559
- readonly xPt: number;
560
- readonly yPt: number;
561
- }
562
- declare function parseOdfTransform(value: string): OdfTransformFunction[];
563
- declare function applyOdfTransform(functions: readonly OdfTransformFunction[], point: OdfPoint): OdfPoint;
564
- declare function netRotationDeg(functions: readonly OdfTransformFunction[]): number;
565
- interface OdfShapeGeometry {
566
- readonly frame: Box;
567
- readonly rotationDeg: number | undefined;
568
- }
569
- declare function resolveOdfShapeGeometry(element: XmlElement): OdfShapeGeometry | undefined;
570
- declare function composeOdfGroupTransform(groupFunctions: readonly OdfTransformFunction[], child: OdfShapeGeometry): OdfShapeGeometry;
571
- //#endregion
572
- //#region src/typed/shared/masterpage.d.ts
573
- declare function resolvePageLayoutProperties(pkg: Package, masterPageName: string | undefined): XmlElement | undefined;
574
- declare function resolveDrawPageSize(page: XmlElement, pkg: Package): PageSize | undefined;
575
- //#endregion
576
- //#region src/typed/shared/path.d.ts
577
- interface OdfRawPoint {
578
- readonly x: number;
579
- readonly y: number;
580
- }
581
- type OdfRawSegment = {
582
- readonly kind: 'line';
583
- readonly to: OdfRawPoint;
584
- } | {
585
- readonly kind: 'cubic';
586
- readonly control1: OdfRawPoint;
587
- readonly control2: OdfRawPoint;
588
- readonly to: OdfRawPoint;
589
- };
590
- interface OdfRawSubpath {
591
- readonly start: OdfRawPoint;
592
- readonly segments: readonly OdfRawSegment[];
593
- readonly closed: boolean;
594
- }
595
- interface OdfViewBox {
596
- readonly minX: number;
597
- readonly minY: number;
598
- readonly width: number;
599
- readonly height: number;
600
- }
601
- declare function parseOdfViewBox(value: string): OdfViewBox | undefined;
602
- declare function parseOdfPointsList(value: string): OdfRawPoint[];
603
- declare function rawSubpathFromPoints(points: readonly OdfRawPoint[], closed: boolean): OdfRawSubpath | undefined;
604
- declare function parseOdfPathData(d: string): OdfRawSubpath[];
605
- declare function scaleOdfRawPoint(point: OdfRawPoint, viewBox: OdfViewBox, frame: Box): ContentPathPoint;
606
- declare function buildOdfSubpaths(rawSubpaths: readonly OdfRawSubpath[], viewBox: OdfViewBox, frame: Box): ContentSubpath[];
607
- //#endregion
608
- //#region src/typed/draw/shapes.d.ts
609
- declare function readDrawFrame(frame: XmlElement, groupFunctions: readonly OdfTransformFunction[], pkg: Package): ContentShape | undefined;
610
- declare function walkDrawShapes(children: readonly XmlNode[], groupFunctions: readonly OdfTransformFunction[], pkg: Package, out: ContentShape[]): void;
611
- interface DrawPageContent {
612
- readonly shapes: ContentShape[];
613
- readonly vectors: ContentVector[];
614
- }
615
- declare function readDrawPageContent(children: readonly XmlNode[], pkg: Package): DrawPageContent;
616
- //#endregion
617
- //#region src/typed/odp/read.d.ts
618
- interface OdpDocument {
619
- metadata: LayoutMetadata;
620
- slides: ContentSlide[];
621
- }
622
- declare function readOdp(pkg: Package): OdpDocument;
623
- //#endregion
624
- //#region src/typed/odt/read.d.ts
625
- interface OdtDocument {
626
- metadata: LayoutMetadata;
627
- sections: ContentSection[];
628
- }
629
- declare function readOdt(pkg: Package): OdtDocument;
630
- //#endregion
631
- //#region src/typed/odg/read.d.ts
632
- interface OdgDocument {
633
- metadata: LayoutMetadata;
634
- pages: ContentDrawPage[];
635
- }
636
- declare function readOdg(pkg: Package): OdgDocument;
637
- //#endregion
638
- //#region src/typed/ods/read.d.ts
639
- interface OdsDocument {
640
- metadata: LayoutMetadata;
641
- sheets: ContentSheet[];
642
- }
643
- declare function readOds(pkg: Package): OdsDocument;
644
- //#endregion
645
- //#region src/typed/formula/read.d.ts
646
- interface OdfFormulaDocument {
647
- starMath?: string;
648
- mathml: XmlNode[];
649
- metadata: LayoutMetadata;
650
- }
651
- declare function readOdfFormula(pkg: Package): OdfFormulaDocument;
652
- //#endregion
653
- //#region src/typed/odm/read.d.ts
654
- interface OdmSection {
655
- name: string;
656
- href: string;
657
- filterName?: string;
658
- inlineContent?: readonly XmlNode[];
659
- }
660
- interface OdmDocument {
661
- sections: readonly OdmSection[];
662
- }
663
- declare function readOdm(pkg: Package): OdmDocument;
664
- //#endregion
665
- //#region src/typed/odb/read.d.ts
666
- interface OdbConnectionInfo {
667
- type: 'embedded' | 'external';
668
- driverClass?: string;
669
- url?: string;
670
- }
671
- interface OdbInventory {
672
- connection: OdbConnectionInfo | undefined;
673
- tables: string[];
674
- queries: string[];
675
- forms: string[];
676
- reports: string[];
677
- }
678
- declare function readOdbInventory(pkg: Package): OdbInventory;
679
- //#endregion
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-CkBWRjNR.js";
2
+ import { BinaryPart, BinaryPartSchema, Package, PackageSchema, Part, PartSchema, XmlPart, XmlPartSchema } from "./model/package.js";
3
+ import { decodePackage, encodePackage, packageCodec, xmlCodec } from "./codec.js";
4
+ import { ImageFormat, sniffImageFormat } from "./image/sniff.js";
5
+ import { parsePackage } from "./package-io/read.js";
6
+ import { MANIFEST_PART, MIMETYPE_PART, serializePackage } from "./package-io/write.js";
7
+ import { parseXml } from "./xml/parse.js";
8
+ import { buildXml } from "./xml/build.js";
9
+ import { ZipEntry, unzipPackage, zipPackage } from "./zip.js";
10
+ import { base64ToBytes, bytesToBase64 } from "./util/base64.js";
11
+ import { ODF_NAMESPACES, OdfNamespacePrefix, xmlnsAttributes } from "./ns.js";
12
+ import { ODF_MEDIA_TYPES, OdfExtension, mediaTypeForExtension } from "./media-type.js";
13
+ import { readMimetype, writeMimetype } from "./mimetype.js";
14
+ import { el, txt } from "./xml/fragment.js";
15
+ import { decodeXmlText, encodeXmlText } from "./xml/entities.js";
16
+ import { BuildManifestOptions, Manifest, ManifestEntry, ManifestEntrySchema, ManifestProblem, ManifestProblemSchema, ManifestSchema, buildManifest, readManifest, setDocumentMediaType, syncManifest, validateManifest, writeManifest } from "./manifest.js";
17
+ import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "./units-7pCiECuP.js";
18
+ import { ParsedProperties, StyleProperties, StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes } from "./styles/properties.js";
19
+ import { buildStylePropertyElements, canonicalPropertiesString } from "./styles/serialize.js";
20
+ import { InternRequest, OtherPartRef, STYLE_FAMILIES, StyleFamily, StyleRegistry, StyleRegistryOptions, isStyleFamily } from "./styles/registry.js";
21
+ import { ensureSpan } from "./styles/span.js";
22
+ import { attrValue, childrenWithTag, elementsWithTag, findChildElement, rootElement } from "./xml/query.js";
23
+ import { TableCursor, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference } from "./typed/shared/a1.js";
24
+ import { formatOdfColor, parseOdfColor } from "./typed/shared/color.js";
25
+ import { parseBox, parseLinePoints, parseMargins, parsePageSize } from "./typed/shared/geometry.js";
26
+ import { Alignment, AlignmentSchema } from "./typed/shared/style.js";
27
+ import { decodeOdfText, getOdfSpaceCount, measureOdfNodeLength, sumOdfNodeLength } from "./typed/shared/text.js";
28
+ import { CascadeDiagnostic, StyleCascadeResult, StyleElementChainResult, findStyleElement, resolveStyle, resolveStyleElementChain } from "./typed/shared/cascade.js";
29
+ import { META_PART, readOdfMetadata } from "./typed/shared/metadata.js";
30
+ import { readOdfParagraph } from "./typed/shared/paragraph.js";
31
+ import { readOdfTable } from "./typed/shared/table.js";
32
+ import { OdfPoint, OdfShapeGeometry, OdfTransformFunction, applyOdfTransform, composeOdfGroupTransform, netRotationDeg, parseOdfTransform, resolveOdfShapeGeometry } from "./typed/shared/transform.js";
33
+ import { resolveDrawPageSize, resolvePageLayoutProperties } from "./typed/shared/masterpage.js";
34
+ import { OdfRawPoint, OdfRawSegment, OdfRawSubpath, OdfViewBox, buildOdfSubpaths, parseOdfPathData, parseOdfPointsList, parseOdfViewBox, rawSubpathFromPoints, scaleOdfRawPoint } from "./typed/shared/path.js";
35
+ import { DrawPageContent, readDrawFrame, readDrawPageContent, walkDrawShapes } from "./typed/draw/shapes.js";
36
+ import { OdpDocument, readOdp } from "./typed/odp/read.js";
37
+ import { OdtDocument, readOdt } from "./typed/odt/read.js";
38
+ import { OdgDocument, readOdg } from "./typed/odg/read.js";
39
+ import { OdsDocument, readOds } from "./typed/ods/read.js";
40
+ import { OdfFormulaDocument, readOdfFormula } from "./typed/formula/read.js";
41
+ import { OdmDocument, OdmSection, readOdm } from "./typed/odm/read.js";
42
+ import { OdbConnectionInfo, OdbInventory, readOdbInventory } from "./typed/odb/read.js";
680
43
  export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DrawPageContent, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, type OdbConnectionInfo, type OdbInventory, type OdfExtension, type OdfFormulaDocument, type OdfNamespacePrefix, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdmDocument, type OdmSection, type OdpDocument, type OdsDocument, type OdtDocument, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, netRotationDeg, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawPageContent, readManifest, readMimetype, readOdbInventory, readOdfFormula, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdm, readOdp, readOds, readOdt, resolveDrawPageSize, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };