epub-codec 1.0.2 → 1.0.4
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/dist/codec.d.cts +200 -2
- package/dist/codec.d.ts +200 -2
- package/dist/write.cjs +12 -2
- package/dist/write.js +12 -2
- package/dist/xhtml/write.d.cts +2 -2
- package/dist/xhtml/write.d.ts +2 -2
- package/package.json +3 -2
package/dist/codec.d.cts
CHANGED
|
@@ -20,6 +20,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
20
20
|
level: z.ZodNumber;
|
|
21
21
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
22
22
|
itemId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
bullet: "bullet";
|
|
25
|
+
decimal: "decimal";
|
|
26
|
+
lowerLetter: "lowerLetter";
|
|
27
|
+
upperLetter: "upperLetter";
|
|
28
|
+
lowerRoman: "lowerRoman";
|
|
29
|
+
upperRoman: "upperRoman";
|
|
30
|
+
}>>;
|
|
23
31
|
}, z.core.$strip>>;
|
|
24
32
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
25
33
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -126,7 +134,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
126
134
|
producer: z.ZodOptional<z.ZodString>;
|
|
127
135
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
128
136
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
137
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
129
138
|
language: z.ZodOptional<z.ZodString>;
|
|
139
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
ltr: "ltr";
|
|
141
|
+
rtl: "rtl";
|
|
142
|
+
}>>;
|
|
143
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
144
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
145
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
146
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
147
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
148
|
+
company: z.ZodOptional<z.ZodString>;
|
|
149
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
130
150
|
}, z.core.$strip>;
|
|
131
151
|
kind: z.ZodLiteral<"wordprocessing">;
|
|
132
152
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -148,6 +168,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
148
168
|
level: z.ZodNumber;
|
|
149
169
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
150
170
|
itemId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
bullet: "bullet";
|
|
173
|
+
decimal: "decimal";
|
|
174
|
+
lowerLetter: "lowerLetter";
|
|
175
|
+
upperLetter: "upperLetter";
|
|
176
|
+
lowerRoman: "lowerRoman";
|
|
177
|
+
upperRoman: "upperRoman";
|
|
178
|
+
}>>;
|
|
151
179
|
}, z.core.$strip>>;
|
|
152
180
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
153
181
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -254,7 +282,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
254
282
|
producer: z.ZodOptional<z.ZodString>;
|
|
255
283
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
256
284
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
285
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
257
286
|
language: z.ZodOptional<z.ZodString>;
|
|
287
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
288
|
+
ltr: "ltr";
|
|
289
|
+
rtl: "rtl";
|
|
290
|
+
}>>;
|
|
291
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
292
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
293
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
294
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
295
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
296
|
+
company: z.ZodOptional<z.ZodString>;
|
|
297
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
258
298
|
}, z.core.$strip>;
|
|
259
299
|
kind: z.ZodLiteral<"presentation">;
|
|
260
300
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -276,6 +316,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
276
316
|
level: z.ZodNumber;
|
|
277
317
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
278
318
|
itemId: z.ZodOptional<z.ZodString>;
|
|
319
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
320
|
+
bullet: "bullet";
|
|
321
|
+
decimal: "decimal";
|
|
322
|
+
lowerLetter: "lowerLetter";
|
|
323
|
+
upperLetter: "upperLetter";
|
|
324
|
+
lowerRoman: "lowerRoman";
|
|
325
|
+
upperRoman: "upperRoman";
|
|
326
|
+
}>>;
|
|
279
327
|
}, z.core.$strip>>;
|
|
280
328
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
281
329
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -382,7 +430,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
382
430
|
producer: z.ZodOptional<z.ZodString>;
|
|
383
431
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
384
432
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
433
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
385
434
|
language: z.ZodOptional<z.ZodString>;
|
|
435
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
436
|
+
ltr: "ltr";
|
|
437
|
+
rtl: "rtl";
|
|
438
|
+
}>>;
|
|
439
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
440
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
441
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
442
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
443
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
444
|
+
company: z.ZodOptional<z.ZodString>;
|
|
445
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
386
446
|
}, z.core.$strip>;
|
|
387
447
|
kind: z.ZodLiteral<"spreadsheet">;
|
|
388
448
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -404,6 +464,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
404
464
|
level: z.ZodNumber;
|
|
405
465
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
406
466
|
itemId: z.ZodOptional<z.ZodString>;
|
|
467
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
468
|
+
bullet: "bullet";
|
|
469
|
+
decimal: "decimal";
|
|
470
|
+
lowerLetter: "lowerLetter";
|
|
471
|
+
upperLetter: "upperLetter";
|
|
472
|
+
lowerRoman: "lowerRoman";
|
|
473
|
+
upperRoman: "upperRoman";
|
|
474
|
+
}>>;
|
|
407
475
|
}, z.core.$strip>>;
|
|
408
476
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
409
477
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -510,7 +578,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
510
578
|
producer: z.ZodOptional<z.ZodString>;
|
|
511
579
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
512
580
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
581
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
513
582
|
language: z.ZodOptional<z.ZodString>;
|
|
583
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
584
|
+
ltr: "ltr";
|
|
585
|
+
rtl: "rtl";
|
|
586
|
+
}>>;
|
|
587
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
588
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
589
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
590
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
591
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
592
|
+
company: z.ZodOptional<z.ZodString>;
|
|
593
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
514
594
|
}, z.core.$strip>;
|
|
515
595
|
kind: z.ZodLiteral<"drawing">;
|
|
516
596
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -563,6 +643,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
563
643
|
level: z.ZodNumber;
|
|
564
644
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
565
645
|
itemId: z.ZodOptional<z.ZodString>;
|
|
646
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
647
|
+
bullet: "bullet";
|
|
648
|
+
decimal: "decimal";
|
|
649
|
+
lowerLetter: "lowerLetter";
|
|
650
|
+
upperLetter: "upperLetter";
|
|
651
|
+
lowerRoman: "lowerRoman";
|
|
652
|
+
upperRoman: "upperRoman";
|
|
653
|
+
}>>;
|
|
566
654
|
}, z.core.$strip>>;
|
|
567
655
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
568
656
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -669,7 +757,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
669
757
|
producer: z.ZodOptional<z.ZodString>;
|
|
670
758
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
671
759
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
760
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
672
761
|
language: z.ZodOptional<z.ZodString>;
|
|
762
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
763
|
+
ltr: "ltr";
|
|
764
|
+
rtl: "rtl";
|
|
765
|
+
}>>;
|
|
766
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
767
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
768
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
769
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
770
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
771
|
+
company: z.ZodOptional<z.ZodString>;
|
|
772
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
673
773
|
}, z.core.$strip>;
|
|
674
774
|
kind: z.ZodLiteral<"formula">;
|
|
675
775
|
}, z.core.$strip>], "kind">>;
|
|
@@ -765,7 +865,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
765
865
|
producer: z.ZodOptional<z.ZodString>;
|
|
766
866
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
767
867
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
868
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
768
869
|
language: z.ZodOptional<z.ZodString>;
|
|
870
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
871
|
+
ltr: "ltr";
|
|
872
|
+
rtl: "rtl";
|
|
873
|
+
}>>;
|
|
874
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
875
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
876
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
877
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
878
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
879
|
+
company: z.ZodOptional<z.ZodString>;
|
|
880
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
769
881
|
}, z.core.$strip>;
|
|
770
882
|
}, z.core.$strip>, z.ZodObject<{
|
|
771
883
|
slides: z.ZodArray<z.ZodObject<{
|
|
@@ -892,7 +1004,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
892
1004
|
producer: z.ZodOptional<z.ZodString>;
|
|
893
1005
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
894
1006
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
895
1008
|
language: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1010
|
+
ltr: "ltr";
|
|
1011
|
+
rtl: "rtl";
|
|
1012
|
+
}>>;
|
|
1013
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
company: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
896
1020
|
}, z.core.$strip>;
|
|
897
1021
|
}, z.core.$strip>, z.ZodObject<{
|
|
898
1022
|
sheets: z.ZodArray<z.ZodObject<{
|
|
@@ -951,6 +1075,14 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
951
1075
|
b: z.ZodNumber;
|
|
952
1076
|
}, z.core.$strip>>;
|
|
953
1077
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
verticalAlign: z.ZodOptional<z.ZodEnum<{
|
|
1079
|
+
superscript: "superscript";
|
|
1080
|
+
subscript: "subscript";
|
|
1081
|
+
}>>;
|
|
1082
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1083
|
+
ltr: "ltr";
|
|
1084
|
+
rtl: "rtl";
|
|
1085
|
+
}>>;
|
|
954
1086
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
955
1087
|
source: z.ZodOptional<z.ZodObject<{
|
|
956
1088
|
format: z.ZodEnum<{
|
|
@@ -1043,6 +1175,34 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1043
1175
|
double: "double";
|
|
1044
1176
|
}>>;
|
|
1045
1177
|
}, z.core.$strip>>;
|
|
1178
|
+
diagonalUp: z.ZodOptional<z.ZodObject<{
|
|
1179
|
+
color: z.ZodObject<{
|
|
1180
|
+
r: z.ZodNumber;
|
|
1181
|
+
g: z.ZodNumber;
|
|
1182
|
+
b: z.ZodNumber;
|
|
1183
|
+
}, z.core.$strip>;
|
|
1184
|
+
widthPt: z.ZodNumber;
|
|
1185
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
1186
|
+
solid: "solid";
|
|
1187
|
+
dashed: "dashed";
|
|
1188
|
+
dotted: "dotted";
|
|
1189
|
+
double: "double";
|
|
1190
|
+
}>>;
|
|
1191
|
+
}, z.core.$strip>>;
|
|
1192
|
+
diagonalDown: z.ZodOptional<z.ZodObject<{
|
|
1193
|
+
color: z.ZodObject<{
|
|
1194
|
+
r: z.ZodNumber;
|
|
1195
|
+
g: z.ZodNumber;
|
|
1196
|
+
b: z.ZodNumber;
|
|
1197
|
+
}, z.core.$strip>;
|
|
1198
|
+
widthPt: z.ZodNumber;
|
|
1199
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
1200
|
+
solid: "solid";
|
|
1201
|
+
dashed: "dashed";
|
|
1202
|
+
dotted: "dotted";
|
|
1203
|
+
double: "double";
|
|
1204
|
+
}>>;
|
|
1205
|
+
}, z.core.$strip>>;
|
|
1046
1206
|
}, z.core.$strip>>;
|
|
1047
1207
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1048
1208
|
left: "left";
|
|
@@ -1107,6 +1267,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1107
1267
|
format: z.ZodEnum<{
|
|
1108
1268
|
png: "png";
|
|
1109
1269
|
jpeg: "jpeg";
|
|
1270
|
+
svg: "svg";
|
|
1271
|
+
gif: "gif";
|
|
1110
1272
|
}>;
|
|
1111
1273
|
base64: z.ZodString;
|
|
1112
1274
|
widthPt: z.ZodNumber;
|
|
@@ -1194,12 +1356,12 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1194
1356
|
endColumn: z.ZodNumber;
|
|
1195
1357
|
}, z.core.$strip>>;
|
|
1196
1358
|
type: z.ZodEnum<{
|
|
1197
|
-
list: "list";
|
|
1198
1359
|
date: "date";
|
|
1199
1360
|
custom: "custom";
|
|
1361
|
+
decimal: "decimal";
|
|
1362
|
+
list: "list";
|
|
1200
1363
|
time: "time";
|
|
1201
1364
|
whole: "whole";
|
|
1202
|
-
decimal: "decimal";
|
|
1203
1365
|
textLength: "textLength";
|
|
1204
1366
|
}>;
|
|
1205
1367
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1870,7 +2032,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1870
2032
|
producer: z.ZodOptional<z.ZodString>;
|
|
1871
2033
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
1872
2034
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2035
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
1873
2036
|
language: z.ZodOptional<z.ZodString>;
|
|
2037
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2038
|
+
ltr: "ltr";
|
|
2039
|
+
rtl: "rtl";
|
|
2040
|
+
}>>;
|
|
2041
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2042
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
2045
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
2046
|
+
company: z.ZodOptional<z.ZodString>;
|
|
2047
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
1874
2048
|
}, z.core.$strip>;
|
|
1875
2049
|
}, z.core.$strip>, z.ZodObject<{
|
|
1876
2050
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -2249,7 +2423,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2249
2423
|
producer: z.ZodOptional<z.ZodString>;
|
|
2250
2424
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
2251
2425
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2426
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
2252
2427
|
language: z.ZodOptional<z.ZodString>;
|
|
2428
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2429
|
+
ltr: "ltr";
|
|
2430
|
+
rtl: "rtl";
|
|
2431
|
+
}>>;
|
|
2432
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2433
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
2434
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
2435
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
2436
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
2437
|
+
company: z.ZodOptional<z.ZodString>;
|
|
2438
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
2253
2439
|
}, z.core.$strip>;
|
|
2254
2440
|
}, z.core.$strip>, z.ZodObject<{
|
|
2255
2441
|
formula: z.ZodObject<{
|
|
@@ -2337,7 +2523,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2337
2523
|
producer: z.ZodOptional<z.ZodString>;
|
|
2338
2524
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
2339
2525
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2526
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
2340
2527
|
language: z.ZodOptional<z.ZodString>;
|
|
2528
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2529
|
+
ltr: "ltr";
|
|
2530
|
+
rtl: "rtl";
|
|
2531
|
+
}>>;
|
|
2532
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2533
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
2535
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
2536
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
company: z.ZodOptional<z.ZodString>;
|
|
2538
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
2341
2539
|
}, z.core.$strip>;
|
|
2342
2540
|
}, z.core.$strip>], "kind">>;
|
|
2343
2541
|
//#endregion
|
package/dist/codec.d.ts
CHANGED
|
@@ -20,6 +20,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
20
20
|
level: z.ZodNumber;
|
|
21
21
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
22
22
|
itemId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
bullet: "bullet";
|
|
25
|
+
decimal: "decimal";
|
|
26
|
+
lowerLetter: "lowerLetter";
|
|
27
|
+
upperLetter: "upperLetter";
|
|
28
|
+
lowerRoman: "lowerRoman";
|
|
29
|
+
upperRoman: "upperRoman";
|
|
30
|
+
}>>;
|
|
23
31
|
}, z.core.$strip>>;
|
|
24
32
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
25
33
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -126,7 +134,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
126
134
|
producer: z.ZodOptional<z.ZodString>;
|
|
127
135
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
128
136
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
137
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
129
138
|
language: z.ZodOptional<z.ZodString>;
|
|
139
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
ltr: "ltr";
|
|
141
|
+
rtl: "rtl";
|
|
142
|
+
}>>;
|
|
143
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
144
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
145
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
146
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
147
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
148
|
+
company: z.ZodOptional<z.ZodString>;
|
|
149
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
130
150
|
}, z.core.$strip>;
|
|
131
151
|
kind: z.ZodLiteral<"wordprocessing">;
|
|
132
152
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -148,6 +168,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
148
168
|
level: z.ZodNumber;
|
|
149
169
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
150
170
|
itemId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
bullet: "bullet";
|
|
173
|
+
decimal: "decimal";
|
|
174
|
+
lowerLetter: "lowerLetter";
|
|
175
|
+
upperLetter: "upperLetter";
|
|
176
|
+
lowerRoman: "lowerRoman";
|
|
177
|
+
upperRoman: "upperRoman";
|
|
178
|
+
}>>;
|
|
151
179
|
}, z.core.$strip>>;
|
|
152
180
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
153
181
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -254,7 +282,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
254
282
|
producer: z.ZodOptional<z.ZodString>;
|
|
255
283
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
256
284
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
285
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
257
286
|
language: z.ZodOptional<z.ZodString>;
|
|
287
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
288
|
+
ltr: "ltr";
|
|
289
|
+
rtl: "rtl";
|
|
290
|
+
}>>;
|
|
291
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
292
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
293
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
294
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
295
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
296
|
+
company: z.ZodOptional<z.ZodString>;
|
|
297
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
258
298
|
}, z.core.$strip>;
|
|
259
299
|
kind: z.ZodLiteral<"presentation">;
|
|
260
300
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -276,6 +316,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
276
316
|
level: z.ZodNumber;
|
|
277
317
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
278
318
|
itemId: z.ZodOptional<z.ZodString>;
|
|
319
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
320
|
+
bullet: "bullet";
|
|
321
|
+
decimal: "decimal";
|
|
322
|
+
lowerLetter: "lowerLetter";
|
|
323
|
+
upperLetter: "upperLetter";
|
|
324
|
+
lowerRoman: "lowerRoman";
|
|
325
|
+
upperRoman: "upperRoman";
|
|
326
|
+
}>>;
|
|
279
327
|
}, z.core.$strip>>;
|
|
280
328
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
281
329
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -382,7 +430,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
382
430
|
producer: z.ZodOptional<z.ZodString>;
|
|
383
431
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
384
432
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
433
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
385
434
|
language: z.ZodOptional<z.ZodString>;
|
|
435
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
436
|
+
ltr: "ltr";
|
|
437
|
+
rtl: "rtl";
|
|
438
|
+
}>>;
|
|
439
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
440
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
441
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
442
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
443
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
444
|
+
company: z.ZodOptional<z.ZodString>;
|
|
445
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
386
446
|
}, z.core.$strip>;
|
|
387
447
|
kind: z.ZodLiteral<"spreadsheet">;
|
|
388
448
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -404,6 +464,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
404
464
|
level: z.ZodNumber;
|
|
405
465
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
406
466
|
itemId: z.ZodOptional<z.ZodString>;
|
|
467
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
468
|
+
bullet: "bullet";
|
|
469
|
+
decimal: "decimal";
|
|
470
|
+
lowerLetter: "lowerLetter";
|
|
471
|
+
upperLetter: "upperLetter";
|
|
472
|
+
lowerRoman: "lowerRoman";
|
|
473
|
+
upperRoman: "upperRoman";
|
|
474
|
+
}>>;
|
|
407
475
|
}, z.core.$strip>>;
|
|
408
476
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
409
477
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -510,7 +578,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
510
578
|
producer: z.ZodOptional<z.ZodString>;
|
|
511
579
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
512
580
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
581
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
513
582
|
language: z.ZodOptional<z.ZodString>;
|
|
583
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
584
|
+
ltr: "ltr";
|
|
585
|
+
rtl: "rtl";
|
|
586
|
+
}>>;
|
|
587
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
588
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
589
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
590
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
591
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
592
|
+
company: z.ZodOptional<z.ZodString>;
|
|
593
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
514
594
|
}, z.core.$strip>;
|
|
515
595
|
kind: z.ZodLiteral<"drawing">;
|
|
516
596
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -563,6 +643,14 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
563
643
|
level: z.ZodNumber;
|
|
564
644
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
565
645
|
itemId: z.ZodOptional<z.ZodString>;
|
|
646
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
647
|
+
bullet: "bullet";
|
|
648
|
+
decimal: "decimal";
|
|
649
|
+
lowerLetter: "lowerLetter";
|
|
650
|
+
upperLetter: "upperLetter";
|
|
651
|
+
lowerRoman: "lowerRoman";
|
|
652
|
+
upperRoman: "upperRoman";
|
|
653
|
+
}>>;
|
|
566
654
|
}, z.core.$strip>>;
|
|
567
655
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
568
656
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -669,7 +757,19 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
669
757
|
producer: z.ZodOptional<z.ZodString>;
|
|
670
758
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
671
759
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
760
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
672
761
|
language: z.ZodOptional<z.ZodString>;
|
|
762
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
763
|
+
ltr: "ltr";
|
|
764
|
+
rtl: "rtl";
|
|
765
|
+
}>>;
|
|
766
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
767
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
768
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
769
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
770
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
771
|
+
company: z.ZodOptional<z.ZodString>;
|
|
772
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
673
773
|
}, z.core.$strip>;
|
|
674
774
|
kind: z.ZodLiteral<"formula">;
|
|
675
775
|
}, z.core.$strip>], "kind">>;
|
|
@@ -765,7 +865,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
765
865
|
producer: z.ZodOptional<z.ZodString>;
|
|
766
866
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
767
867
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
868
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
768
869
|
language: z.ZodOptional<z.ZodString>;
|
|
870
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
871
|
+
ltr: "ltr";
|
|
872
|
+
rtl: "rtl";
|
|
873
|
+
}>>;
|
|
874
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
875
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
876
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
877
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
878
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
879
|
+
company: z.ZodOptional<z.ZodString>;
|
|
880
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
769
881
|
}, z.core.$strip>;
|
|
770
882
|
}, z.core.$strip>, z.ZodObject<{
|
|
771
883
|
slides: z.ZodArray<z.ZodObject<{
|
|
@@ -892,7 +1004,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
892
1004
|
producer: z.ZodOptional<z.ZodString>;
|
|
893
1005
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
894
1006
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
895
1008
|
language: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1010
|
+
ltr: "ltr";
|
|
1011
|
+
rtl: "rtl";
|
|
1012
|
+
}>>;
|
|
1013
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
company: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
896
1020
|
}, z.core.$strip>;
|
|
897
1021
|
}, z.core.$strip>, z.ZodObject<{
|
|
898
1022
|
sheets: z.ZodArray<z.ZodObject<{
|
|
@@ -951,6 +1075,14 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
951
1075
|
b: z.ZodNumber;
|
|
952
1076
|
}, z.core.$strip>>;
|
|
953
1077
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
verticalAlign: z.ZodOptional<z.ZodEnum<{
|
|
1079
|
+
superscript: "superscript";
|
|
1080
|
+
subscript: "subscript";
|
|
1081
|
+
}>>;
|
|
1082
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1083
|
+
ltr: "ltr";
|
|
1084
|
+
rtl: "rtl";
|
|
1085
|
+
}>>;
|
|
954
1086
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
955
1087
|
source: z.ZodOptional<z.ZodObject<{
|
|
956
1088
|
format: z.ZodEnum<{
|
|
@@ -1043,6 +1175,34 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1043
1175
|
double: "double";
|
|
1044
1176
|
}>>;
|
|
1045
1177
|
}, z.core.$strip>>;
|
|
1178
|
+
diagonalUp: z.ZodOptional<z.ZodObject<{
|
|
1179
|
+
color: z.ZodObject<{
|
|
1180
|
+
r: z.ZodNumber;
|
|
1181
|
+
g: z.ZodNumber;
|
|
1182
|
+
b: z.ZodNumber;
|
|
1183
|
+
}, z.core.$strip>;
|
|
1184
|
+
widthPt: z.ZodNumber;
|
|
1185
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
1186
|
+
solid: "solid";
|
|
1187
|
+
dashed: "dashed";
|
|
1188
|
+
dotted: "dotted";
|
|
1189
|
+
double: "double";
|
|
1190
|
+
}>>;
|
|
1191
|
+
}, z.core.$strip>>;
|
|
1192
|
+
diagonalDown: z.ZodOptional<z.ZodObject<{
|
|
1193
|
+
color: z.ZodObject<{
|
|
1194
|
+
r: z.ZodNumber;
|
|
1195
|
+
g: z.ZodNumber;
|
|
1196
|
+
b: z.ZodNumber;
|
|
1197
|
+
}, z.core.$strip>;
|
|
1198
|
+
widthPt: z.ZodNumber;
|
|
1199
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
1200
|
+
solid: "solid";
|
|
1201
|
+
dashed: "dashed";
|
|
1202
|
+
dotted: "dotted";
|
|
1203
|
+
double: "double";
|
|
1204
|
+
}>>;
|
|
1205
|
+
}, z.core.$strip>>;
|
|
1046
1206
|
}, z.core.$strip>>;
|
|
1047
1207
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1048
1208
|
left: "left";
|
|
@@ -1107,6 +1267,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1107
1267
|
format: z.ZodEnum<{
|
|
1108
1268
|
png: "png";
|
|
1109
1269
|
jpeg: "jpeg";
|
|
1270
|
+
svg: "svg";
|
|
1271
|
+
gif: "gif";
|
|
1110
1272
|
}>;
|
|
1111
1273
|
base64: z.ZodString;
|
|
1112
1274
|
widthPt: z.ZodNumber;
|
|
@@ -1194,12 +1356,12 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1194
1356
|
endColumn: z.ZodNumber;
|
|
1195
1357
|
}, z.core.$strip>>;
|
|
1196
1358
|
type: z.ZodEnum<{
|
|
1197
|
-
list: "list";
|
|
1198
1359
|
date: "date";
|
|
1199
1360
|
custom: "custom";
|
|
1361
|
+
decimal: "decimal";
|
|
1362
|
+
list: "list";
|
|
1200
1363
|
time: "time";
|
|
1201
1364
|
whole: "whole";
|
|
1202
|
-
decimal: "decimal";
|
|
1203
1365
|
textLength: "textLength";
|
|
1204
1366
|
}>;
|
|
1205
1367
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1870,7 +2032,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1870
2032
|
producer: z.ZodOptional<z.ZodString>;
|
|
1871
2033
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
1872
2034
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2035
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
1873
2036
|
language: z.ZodOptional<z.ZodString>;
|
|
2037
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2038
|
+
ltr: "ltr";
|
|
2039
|
+
rtl: "rtl";
|
|
2040
|
+
}>>;
|
|
2041
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2042
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
2045
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
2046
|
+
company: z.ZodOptional<z.ZodString>;
|
|
2047
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
1874
2048
|
}, z.core.$strip>;
|
|
1875
2049
|
}, z.core.$strip>, z.ZodObject<{
|
|
1876
2050
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -2249,7 +2423,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2249
2423
|
producer: z.ZodOptional<z.ZodString>;
|
|
2250
2424
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
2251
2425
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2426
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
2252
2427
|
language: z.ZodOptional<z.ZodString>;
|
|
2428
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2429
|
+
ltr: "ltr";
|
|
2430
|
+
rtl: "rtl";
|
|
2431
|
+
}>>;
|
|
2432
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2433
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
2434
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
2435
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
2436
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
2437
|
+
company: z.ZodOptional<z.ZodString>;
|
|
2438
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
2253
2439
|
}, z.core.$strip>;
|
|
2254
2440
|
}, z.core.$strip>, z.ZodObject<{
|
|
2255
2441
|
formula: z.ZodObject<{
|
|
@@ -2337,7 +2523,19 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2337
2523
|
producer: z.ZodOptional<z.ZodString>;
|
|
2338
2524
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
2339
2525
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2526
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
2340
2527
|
language: z.ZodOptional<z.ZodString>;
|
|
2528
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2529
|
+
ltr: "ltr";
|
|
2530
|
+
rtl: "rtl";
|
|
2531
|
+
}>>;
|
|
2532
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
2533
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
2535
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
2536
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
company: z.ZodOptional<z.ZodString>;
|
|
2538
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
2341
2539
|
}, z.core.$strip>;
|
|
2342
2540
|
}, z.core.$strip>], "kind">>;
|
|
2343
2541
|
//#endregion
|
package/dist/write.cjs
CHANGED
|
@@ -35,10 +35,20 @@ function buildHead(title, residueXml) {
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
function imageExtension(format) {
|
|
38
|
-
|
|
38
|
+
switch (format) {
|
|
39
|
+
case "png": return "png";
|
|
40
|
+
case "jpeg": return "jpg";
|
|
41
|
+
case "svg": return "svg";
|
|
42
|
+
case "gif": return "gif";
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
function imageMediaType(format) {
|
|
41
|
-
|
|
46
|
+
switch (format) {
|
|
47
|
+
case "png": return "image/png";
|
|
48
|
+
case "jpeg": return "image/jpeg";
|
|
49
|
+
case "svg": return "image/svg+xml";
|
|
50
|
+
case "gif": return "image/gif";
|
|
51
|
+
}
|
|
42
52
|
}
|
|
43
53
|
function writeEpubContent(document, options = {}) {
|
|
44
54
|
if (document.kind !== "wordprocessing") throw new require_diagnostics.EpubUnsupportedDocumentKindError(document.kind);
|
package/dist/write.js
CHANGED
|
@@ -34,10 +34,20 @@ function buildHead(title, residueXml) {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
function imageExtension(format) {
|
|
37
|
-
|
|
37
|
+
switch (format) {
|
|
38
|
+
case "png": return "png";
|
|
39
|
+
case "jpeg": return "jpg";
|
|
40
|
+
case "svg": return "svg";
|
|
41
|
+
case "gif": return "gif";
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
44
|
function imageMediaType(format) {
|
|
40
|
-
|
|
45
|
+
switch (format) {
|
|
46
|
+
case "png": return "image/png";
|
|
47
|
+
case "jpeg": return "image/jpeg";
|
|
48
|
+
case "svg": return "image/svg+xml";
|
|
49
|
+
case "gif": return "image/gif";
|
|
50
|
+
}
|
|
41
51
|
}
|
|
42
52
|
function writeEpubContent(document, options = {}) {
|
|
43
53
|
if (document.kind !== "wordprocessing") throw new EpubUnsupportedDocumentKindError(document.kind);
|
package/dist/xhtml/write.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as EpubDiagnosticSink } from "../diagnostics-Ee4kG7mw.cjs";
|
|
2
2
|
import { XmlElement } from "../xml/node.cjs";
|
|
3
|
-
import { ContentBlock } from "document-schema.js";
|
|
3
|
+
import { ContentBlock, ContentImageBlock } from "document-schema.js";
|
|
4
4
|
//#region src/xhtml/write.d.ts
|
|
5
5
|
interface XhtmlWriteContext {
|
|
6
|
-
readonly registerImage: (bytes: Uint8Array<ArrayBuffer>, format: "
|
|
6
|
+
readonly registerImage: (bytes: Uint8Array<ArrayBuffer>, format: ContentImageBlock["format"]) => string;
|
|
7
7
|
readonly sink: EpubDiagnosticSink;
|
|
8
8
|
readonly sourceHref: string;
|
|
9
9
|
}
|
package/dist/xhtml/write.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as EpubDiagnosticSink } from "../diagnostics-Ee4kG7mw.js";
|
|
2
2
|
import { XmlElement } from "../xml/node.js";
|
|
3
|
-
import { ContentBlock } from "document-schema.js";
|
|
3
|
+
import { ContentBlock, ContentImageBlock } from "document-schema.js";
|
|
4
4
|
//#region src/xhtml/write.d.ts
|
|
5
5
|
interface XhtmlWriteContext {
|
|
6
|
-
readonly registerImage: (bytes: Uint8Array<ArrayBuffer>, format: "
|
|
6
|
+
readonly registerImage: (bytes: Uint8Array<ArrayBuffer>, format: ContentImageBlock["format"]) => string;
|
|
7
7
|
readonly sink: EpubDiagnosticSink;
|
|
8
8
|
readonly sourceHref: string;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epub-codec",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "EPUB 2/3 reading and deterministic EPUB 3 writing against the shared document-schema.js content pivot.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"_typecheck:attw": "attw --pack",
|
|
58
58
|
"test": "turbo run _test",
|
|
59
59
|
"_test": "vitest run --project unit",
|
|
60
|
+
"_test:coverage": "vitest run --project unit --coverage",
|
|
60
61
|
"test:watch": "vitest --project unit",
|
|
61
62
|
"test:workers": "turbo run _test:workers",
|
|
62
63
|
"_test:workers": "vitest run --config vitest.workers.config.ts",
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
"license": "MIT",
|
|
76
77
|
"packageManager": "pnpm@11.6.0",
|
|
77
78
|
"dependencies": {
|
|
78
|
-
"document-schema.js": "^5.
|
|
79
|
+
"document-schema.js": "^5.6.0",
|
|
79
80
|
"fast-xml-parser": "^5.10.1",
|
|
80
81
|
"fflate": "^0.8.3",
|
|
81
82
|
"zod": "^4.4.3"
|