markdown-codec 1.4.1 → 1.4.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 +5 -68
- package/dist/codec.d.ts +5 -68
- package/package.json +2 -2
package/dist/codec.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
declare const MarkdownBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
4
4
|
declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
5
|
kind: z.ZodLiteral<"wordprocessing">;
|
|
6
|
-
formatVersion: z.ZodLiteral<
|
|
6
|
+
formatVersion: z.ZodLiteral<2>;
|
|
7
7
|
metadata: z.ZodObject<{
|
|
8
8
|
title: z.ZodOptional<z.ZodString>;
|
|
9
9
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -29,7 +29,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
30
|
}, z.core.$strip>, z.ZodObject<{
|
|
31
31
|
kind: z.ZodLiteral<"presentation">;
|
|
32
|
-
formatVersion: z.ZodLiteral<
|
|
32
|
+
formatVersion: z.ZodLiteral<2>;
|
|
33
33
|
metadata: z.ZodObject<{
|
|
34
34
|
title: z.ZodOptional<z.ZodString>;
|
|
35
35
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -62,20 +62,13 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
62
62
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
63
63
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
64
64
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
65
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
-
pageIndex: z.ZodNumber;
|
|
67
|
-
xPt: z.ZodNumber;
|
|
68
|
-
yPt: z.ZodNumber;
|
|
69
|
-
widthPt: z.ZodNumber;
|
|
70
|
-
heightPt: z.ZodNumber;
|
|
71
|
-
}, z.core.$strip>>>;
|
|
72
65
|
blocks: z.ZodArray<z.ZodCustom<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>;
|
|
73
66
|
}, z.core.$strip>>;
|
|
74
67
|
notes: z.ZodString;
|
|
75
68
|
}, z.core.$strip>>;
|
|
76
69
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
70
|
kind: z.ZodLiteral<"spreadsheet">;
|
|
78
|
-
formatVersion: z.ZodLiteral<
|
|
71
|
+
formatVersion: z.ZodLiteral<2>;
|
|
79
72
|
metadata: z.ZodObject<{
|
|
80
73
|
title: z.ZodOptional<z.ZodString>;
|
|
81
74
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -142,13 +135,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
142
135
|
}, z.core.$strip>>;
|
|
143
136
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
144
137
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
145
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
|
-
pageIndex: z.ZodNumber;
|
|
147
|
-
xPt: z.ZodNumber;
|
|
148
|
-
yPt: z.ZodNumber;
|
|
149
|
-
widthPt: z.ZodNumber;
|
|
150
|
-
heightPt: z.ZodNumber;
|
|
151
|
-
}, z.core.$strip>>>;
|
|
152
138
|
}, z.core.$strip>>>;
|
|
153
139
|
colSpan: z.ZodOptional<z.ZodNumber>;
|
|
154
140
|
rowSpan: z.ZodOptional<z.ZodNumber>;
|
|
@@ -227,13 +213,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
227
213
|
middle: "middle";
|
|
228
214
|
}>>;
|
|
229
215
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
230
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
231
|
-
pageIndex: z.ZodNumber;
|
|
232
|
-
xPt: z.ZodNumber;
|
|
233
|
-
yPt: z.ZodNumber;
|
|
234
|
-
widthPt: z.ZodNumber;
|
|
235
|
-
heightPt: z.ZodNumber;
|
|
236
|
-
}, z.core.$strip>>>;
|
|
237
216
|
}, z.core.$strip>>;
|
|
238
217
|
columns: z.ZodArray<z.ZodObject<{
|
|
239
218
|
index: z.ZodNumber;
|
|
@@ -256,13 +235,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
256
235
|
heightPt: z.ZodNumber;
|
|
257
236
|
altText: z.ZodOptional<z.ZodString>;
|
|
258
237
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
259
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
260
|
-
pageIndex: z.ZodNumber;
|
|
261
|
-
xPt: z.ZodNumber;
|
|
262
|
-
yPt: z.ZodNumber;
|
|
263
|
-
widthPt: z.ZodNumber;
|
|
264
|
-
heightPt: z.ZodNumber;
|
|
265
|
-
}, z.core.$strip>>>;
|
|
266
238
|
anchorRow: z.ZodNumber;
|
|
267
239
|
anchorColumn: z.ZodNumber;
|
|
268
240
|
offsetXPt: z.ZodNumber;
|
|
@@ -313,7 +285,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
313
285
|
}, z.core.$strip>>;
|
|
314
286
|
}, z.core.$strip>, z.ZodObject<{
|
|
315
287
|
kind: z.ZodLiteral<"drawing">;
|
|
316
|
-
formatVersion: z.ZodLiteral<
|
|
288
|
+
formatVersion: z.ZodLiteral<2>;
|
|
317
289
|
metadata: z.ZodObject<{
|
|
318
290
|
title: z.ZodOptional<z.ZodString>;
|
|
319
291
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -346,13 +318,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
346
318
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
347
319
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
348
320
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
349
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
-
pageIndex: z.ZodNumber;
|
|
351
|
-
xPt: z.ZodNumber;
|
|
352
|
-
yPt: z.ZodNumber;
|
|
353
|
-
widthPt: z.ZodNumber;
|
|
354
|
-
heightPt: z.ZodNumber;
|
|
355
|
-
}, z.core.$strip>>>;
|
|
356
321
|
blocks: z.ZodArray<z.ZodCustom<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>;
|
|
357
322
|
}, z.core.$strip>>;
|
|
358
323
|
vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -385,13 +350,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
385
350
|
}, z.core.$strip>>;
|
|
386
351
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
387
352
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
388
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
389
|
-
pageIndex: z.ZodNumber;
|
|
390
|
-
xPt: z.ZodNumber;
|
|
391
|
-
yPt: z.ZodNumber;
|
|
392
|
-
widthPt: z.ZodNumber;
|
|
393
|
-
heightPt: z.ZodNumber;
|
|
394
|
-
}, z.core.$strip>>>;
|
|
395
353
|
}, z.core.$strip>, z.ZodObject<{
|
|
396
354
|
kind: z.ZodLiteral<"ellipse">;
|
|
397
355
|
frame: z.ZodObject<{
|
|
@@ -422,13 +380,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
422
380
|
}, z.core.$strip>>;
|
|
423
381
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
424
382
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
425
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
426
|
-
pageIndex: z.ZodNumber;
|
|
427
|
-
xPt: z.ZodNumber;
|
|
428
|
-
yPt: z.ZodNumber;
|
|
429
|
-
widthPt: z.ZodNumber;
|
|
430
|
-
heightPt: z.ZodNumber;
|
|
431
|
-
}, z.core.$strip>>>;
|
|
432
383
|
}, z.core.$strip>, z.ZodObject<{
|
|
433
384
|
kind: z.ZodLiteral<"line">;
|
|
434
385
|
from: z.ZodObject<{
|
|
@@ -455,13 +406,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
455
406
|
}, z.core.$strip>;
|
|
456
407
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
457
408
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
458
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
459
|
-
pageIndex: z.ZodNumber;
|
|
460
|
-
xPt: z.ZodNumber;
|
|
461
|
-
yPt: z.ZodNumber;
|
|
462
|
-
widthPt: z.ZodNumber;
|
|
463
|
-
heightPt: z.ZodNumber;
|
|
464
|
-
}, z.core.$strip>>>;
|
|
465
409
|
}, z.core.$strip>, z.ZodObject<{
|
|
466
410
|
kind: z.ZodLiteral<"path">;
|
|
467
411
|
frame: z.ZodObject<{
|
|
@@ -524,18 +468,11 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
524
468
|
}, z.core.$strip>>;
|
|
525
469
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
526
470
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
527
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
528
|
-
pageIndex: z.ZodNumber;
|
|
529
|
-
xPt: z.ZodNumber;
|
|
530
|
-
yPt: z.ZodNumber;
|
|
531
|
-
widthPt: z.ZodNumber;
|
|
532
|
-
heightPt: z.ZodNumber;
|
|
533
|
-
}, z.core.$strip>>>;
|
|
534
471
|
}, z.core.$strip>], "kind">>;
|
|
535
472
|
}, z.core.$strip>>;
|
|
536
473
|
}, z.core.$strip>, z.ZodObject<{
|
|
537
474
|
kind: z.ZodLiteral<"formula">;
|
|
538
|
-
formatVersion: z.ZodLiteral<
|
|
475
|
+
formatVersion: z.ZodLiteral<2>;
|
|
539
476
|
metadata: z.ZodObject<{
|
|
540
477
|
title: z.ZodOptional<z.ZodString>;
|
|
541
478
|
author: z.ZodOptional<z.ZodString>;
|
package/dist/codec.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
declare const MarkdownBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
4
4
|
declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
5
|
kind: z.ZodLiteral<"wordprocessing">;
|
|
6
|
-
formatVersion: z.ZodLiteral<
|
|
6
|
+
formatVersion: z.ZodLiteral<2>;
|
|
7
7
|
metadata: z.ZodObject<{
|
|
8
8
|
title: z.ZodOptional<z.ZodString>;
|
|
9
9
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -29,7 +29,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
30
|
}, z.core.$strip>, z.ZodObject<{
|
|
31
31
|
kind: z.ZodLiteral<"presentation">;
|
|
32
|
-
formatVersion: z.ZodLiteral<
|
|
32
|
+
formatVersion: z.ZodLiteral<2>;
|
|
33
33
|
metadata: z.ZodObject<{
|
|
34
34
|
title: z.ZodOptional<z.ZodString>;
|
|
35
35
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -62,20 +62,13 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
62
62
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
63
63
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
64
64
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
65
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
-
pageIndex: z.ZodNumber;
|
|
67
|
-
xPt: z.ZodNumber;
|
|
68
|
-
yPt: z.ZodNumber;
|
|
69
|
-
widthPt: z.ZodNumber;
|
|
70
|
-
heightPt: z.ZodNumber;
|
|
71
|
-
}, z.core.$strip>>>;
|
|
72
65
|
blocks: z.ZodArray<z.ZodCustom<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>;
|
|
73
66
|
}, z.core.$strip>>;
|
|
74
67
|
notes: z.ZodString;
|
|
75
68
|
}, z.core.$strip>>;
|
|
76
69
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
70
|
kind: z.ZodLiteral<"spreadsheet">;
|
|
78
|
-
formatVersion: z.ZodLiteral<
|
|
71
|
+
formatVersion: z.ZodLiteral<2>;
|
|
79
72
|
metadata: z.ZodObject<{
|
|
80
73
|
title: z.ZodOptional<z.ZodString>;
|
|
81
74
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -142,13 +135,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
142
135
|
}, z.core.$strip>>;
|
|
143
136
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
144
137
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
145
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
|
-
pageIndex: z.ZodNumber;
|
|
147
|
-
xPt: z.ZodNumber;
|
|
148
|
-
yPt: z.ZodNumber;
|
|
149
|
-
widthPt: z.ZodNumber;
|
|
150
|
-
heightPt: z.ZodNumber;
|
|
151
|
-
}, z.core.$strip>>>;
|
|
152
138
|
}, z.core.$strip>>>;
|
|
153
139
|
colSpan: z.ZodOptional<z.ZodNumber>;
|
|
154
140
|
rowSpan: z.ZodOptional<z.ZodNumber>;
|
|
@@ -227,13 +213,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
227
213
|
middle: "middle";
|
|
228
214
|
}>>;
|
|
229
215
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
230
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
231
|
-
pageIndex: z.ZodNumber;
|
|
232
|
-
xPt: z.ZodNumber;
|
|
233
|
-
yPt: z.ZodNumber;
|
|
234
|
-
widthPt: z.ZodNumber;
|
|
235
|
-
heightPt: z.ZodNumber;
|
|
236
|
-
}, z.core.$strip>>>;
|
|
237
216
|
}, z.core.$strip>>;
|
|
238
217
|
columns: z.ZodArray<z.ZodObject<{
|
|
239
218
|
index: z.ZodNumber;
|
|
@@ -256,13 +235,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
256
235
|
heightPt: z.ZodNumber;
|
|
257
236
|
altText: z.ZodOptional<z.ZodString>;
|
|
258
237
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
259
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
260
|
-
pageIndex: z.ZodNumber;
|
|
261
|
-
xPt: z.ZodNumber;
|
|
262
|
-
yPt: z.ZodNumber;
|
|
263
|
-
widthPt: z.ZodNumber;
|
|
264
|
-
heightPt: z.ZodNumber;
|
|
265
|
-
}, z.core.$strip>>>;
|
|
266
238
|
anchorRow: z.ZodNumber;
|
|
267
239
|
anchorColumn: z.ZodNumber;
|
|
268
240
|
offsetXPt: z.ZodNumber;
|
|
@@ -313,7 +285,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
313
285
|
}, z.core.$strip>>;
|
|
314
286
|
}, z.core.$strip>, z.ZodObject<{
|
|
315
287
|
kind: z.ZodLiteral<"drawing">;
|
|
316
|
-
formatVersion: z.ZodLiteral<
|
|
288
|
+
formatVersion: z.ZodLiteral<2>;
|
|
317
289
|
metadata: z.ZodObject<{
|
|
318
290
|
title: z.ZodOptional<z.ZodString>;
|
|
319
291
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -346,13 +318,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
346
318
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
347
319
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
348
320
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
349
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
-
pageIndex: z.ZodNumber;
|
|
351
|
-
xPt: z.ZodNumber;
|
|
352
|
-
yPt: z.ZodNumber;
|
|
353
|
-
widthPt: z.ZodNumber;
|
|
354
|
-
heightPt: z.ZodNumber;
|
|
355
|
-
}, z.core.$strip>>>;
|
|
356
321
|
blocks: z.ZodArray<z.ZodCustom<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>;
|
|
357
322
|
}, z.core.$strip>>;
|
|
358
323
|
vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -385,13 +350,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
385
350
|
}, z.core.$strip>>;
|
|
386
351
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
387
352
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
388
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
389
|
-
pageIndex: z.ZodNumber;
|
|
390
|
-
xPt: z.ZodNumber;
|
|
391
|
-
yPt: z.ZodNumber;
|
|
392
|
-
widthPt: z.ZodNumber;
|
|
393
|
-
heightPt: z.ZodNumber;
|
|
394
|
-
}, z.core.$strip>>>;
|
|
395
353
|
}, z.core.$strip>, z.ZodObject<{
|
|
396
354
|
kind: z.ZodLiteral<"ellipse">;
|
|
397
355
|
frame: z.ZodObject<{
|
|
@@ -422,13 +380,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
422
380
|
}, z.core.$strip>>;
|
|
423
381
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
424
382
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
425
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
426
|
-
pageIndex: z.ZodNumber;
|
|
427
|
-
xPt: z.ZodNumber;
|
|
428
|
-
yPt: z.ZodNumber;
|
|
429
|
-
widthPt: z.ZodNumber;
|
|
430
|
-
heightPt: z.ZodNumber;
|
|
431
|
-
}, z.core.$strip>>>;
|
|
432
383
|
}, z.core.$strip>, z.ZodObject<{
|
|
433
384
|
kind: z.ZodLiteral<"line">;
|
|
434
385
|
from: z.ZodObject<{
|
|
@@ -455,13 +406,6 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
455
406
|
}, z.core.$strip>;
|
|
456
407
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
457
408
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
458
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
459
|
-
pageIndex: z.ZodNumber;
|
|
460
|
-
xPt: z.ZodNumber;
|
|
461
|
-
yPt: z.ZodNumber;
|
|
462
|
-
widthPt: z.ZodNumber;
|
|
463
|
-
heightPt: z.ZodNumber;
|
|
464
|
-
}, z.core.$strip>>>;
|
|
465
409
|
}, z.core.$strip>, z.ZodObject<{
|
|
466
410
|
kind: z.ZodLiteral<"path">;
|
|
467
411
|
frame: z.ZodObject<{
|
|
@@ -524,18 +468,11 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
524
468
|
}, z.core.$strip>>;
|
|
525
469
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
526
470
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
527
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
528
|
-
pageIndex: z.ZodNumber;
|
|
529
|
-
xPt: z.ZodNumber;
|
|
530
|
-
yPt: z.ZodNumber;
|
|
531
|
-
widthPt: z.ZodNumber;
|
|
532
|
-
heightPt: z.ZodNumber;
|
|
533
|
-
}, z.core.$strip>>>;
|
|
534
471
|
}, z.core.$strip>], "kind">>;
|
|
535
472
|
}, z.core.$strip>>;
|
|
536
473
|
}, z.core.$strip>, z.ZodObject<{
|
|
537
474
|
kind: z.ZodLiteral<"formula">;
|
|
538
|
-
formatVersion: z.ZodLiteral<
|
|
475
|
+
formatVersion: z.ZodLiteral<2>;
|
|
539
476
|
metadata: z.ZodObject<{
|
|
540
477
|
title: z.ZodOptional<z.ZodString>;
|
|
541
478
|
author: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdown-codec",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Hand-written CommonMark+GFM <-> ContentDocument codec, built on document-schema.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"license": "MIT",
|
|
80
80
|
"packageManager": "pnpm@11.6.0",
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"document-schema.js": "^
|
|
82
|
+
"document-schema.js": "^2.7.17",
|
|
83
83
|
"zod": "^4.4.3"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|