rtf-codec 1.1.0 → 1.1.2
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 +199 -1
- package/dist/codec.d.ts +199 -1
- package/dist/read.cjs +1 -1
- package/dist/read.js +1 -1
- package/dist/write.cjs +8 -0
- package/dist/write.js +8 -0
- package/package.json +2 -2
package/dist/codec.d.cts
CHANGED
|
@@ -20,6 +20,14 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
1194
1356
|
endColumn: z.ZodNumber;
|
|
1195
1357
|
}, z.core.$strip>>;
|
|
1196
1358
|
type: z.ZodEnum<{
|
|
1359
|
+
decimal: "decimal";
|
|
1197
1360
|
list: "list";
|
|
1198
1361
|
date: "date";
|
|
1199
1362
|
custom: "custom";
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
1194
1356
|
endColumn: z.ZodNumber;
|
|
1195
1357
|
}, z.core.$strip>>;
|
|
1196
1358
|
type: z.ZodEnum<{
|
|
1359
|
+
decimal: "decimal";
|
|
1197
1360
|
list: "list";
|
|
1198
1361
|
date: "date";
|
|
1199
1362
|
custom: "custom";
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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 rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
|
|
|
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/read.cjs
CHANGED
|
@@ -641,7 +641,7 @@ function buildPicture(picture, sink) {
|
|
|
641
641
|
sink({
|
|
642
642
|
code: require_diagnostics.RtfDiagnosticCodes.UNSUPPORTED_PICTURE_FORMAT,
|
|
643
643
|
severity: "warning",
|
|
644
|
-
message: `a \\pict destination declared ${picture.unsupportedFormat ?? "no"} picture format;
|
|
644
|
+
message: `a \\pict destination declared ${picture.unsupportedFormat ?? "no"} picture format; this reader recognises only \\pngblip and \\jpegblip, so this picture is dropped`
|
|
645
645
|
});
|
|
646
646
|
return;
|
|
647
647
|
}
|
package/dist/read.js
CHANGED
|
@@ -640,7 +640,7 @@ function buildPicture(picture, sink) {
|
|
|
640
640
|
sink({
|
|
641
641
|
code: RtfDiagnosticCodes.UNSUPPORTED_PICTURE_FORMAT,
|
|
642
642
|
severity: "warning",
|
|
643
|
-
message: `a \\pict destination declared ${picture.unsupportedFormat ?? "no"} picture format;
|
|
643
|
+
message: `a \\pict destination declared ${picture.unsupportedFormat ?? "no"} picture format; this reader recognises only \\pngblip and \\jpegblip, so this picture is dropped`
|
|
644
644
|
});
|
|
645
645
|
return;
|
|
646
646
|
}
|
package/dist/write.cjs
CHANGED
|
@@ -477,6 +477,14 @@ var RtfWriter = class {
|
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
writeImageParagraph(base64, image) {
|
|
480
|
+
if (image.format === "svg" || image.format === "gif") {
|
|
481
|
+
this.sink({
|
|
482
|
+
code: require_diagnostics.RtfDiagnosticCodes.UNSUPPORTED_PICTURE_FORMAT,
|
|
483
|
+
severity: "warning",
|
|
484
|
+
message: `an image block in ${image.format} format cannot be written: RTF's \\pict destination has no picture-type keyword for it, so the image is dropped rather than mislabelled as a format it is not`
|
|
485
|
+
});
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
480
488
|
const bytes = require_base64.base64ToBytes(base64);
|
|
481
489
|
if (bytes === void 0 || bytes.length === 0) {
|
|
482
490
|
this.sink({
|
package/dist/write.js
CHANGED
|
@@ -476,6 +476,14 @@ var RtfWriter = class {
|
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
writeImageParagraph(base64, image) {
|
|
479
|
+
if (image.format === "svg" || image.format === "gif") {
|
|
480
|
+
this.sink({
|
|
481
|
+
code: RtfDiagnosticCodes.UNSUPPORTED_PICTURE_FORMAT,
|
|
482
|
+
severity: "warning",
|
|
483
|
+
message: `an image block in ${image.format} format cannot be written: RTF's \\pict destination has no picture-type keyword for it, so the image is dropped rather than mislabelled as a format it is not`
|
|
484
|
+
});
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
479
487
|
const bytes = base64ToBytes(base64);
|
|
480
488
|
if (bytes === void 0 || bytes.length === 0) {
|
|
481
489
|
this.sink({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rtf-codec",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Hand-written Rich Text Format (RTF 1.9.1) reader and writer against the shared document-schema.js content pivot.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"license": "MIT",
|
|
79
79
|
"packageManager": "pnpm@11.6.0",
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"document-schema.js": "^5.
|
|
81
|
+
"document-schema.js": "^5.6.0",
|
|
82
82
|
"zod": "^4.4.3"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|