markdown-codec 1.0.0 → 1.0.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 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<1>;
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<1>;
32
+ formatVersion: z.ZodLiteral<2>;
33
33
  metadata: z.ZodObject<{
34
34
  title: z.ZodOptional<z.ZodString>;
35
35
  author: z.ZodOptional<z.ZodString>;
@@ -60,6 +60,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
60
60
  insetBottomPt: z.ZodNumber;
61
61
  fontScale: z.ZodOptional<z.ZodNumber>;
62
62
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
63
+ paintOrder: z.ZodOptional<z.ZodNumber>;
63
64
  sourcePath: z.ZodOptional<z.ZodString>;
64
65
  blocks: z.ZodArray<z.ZodCustom<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>;
65
66
  }, z.core.$strip>>;
@@ -67,7 +68,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
67
68
  }, z.core.$strip>>;
68
69
  }, z.core.$strip>, z.ZodObject<{
69
70
  kind: z.ZodLiteral<"spreadsheet">;
70
- formatVersion: z.ZodLiteral<1>;
71
+ formatVersion: z.ZodLiteral<2>;
71
72
  metadata: z.ZodObject<{
72
73
  title: z.ZodOptional<z.ZodString>;
73
74
  author: z.ZodOptional<z.ZodString>;
@@ -86,13 +87,16 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
86
87
  value: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
88
  kind: z.ZodLiteral<"number">;
88
89
  value: z.ZodNumber;
90
+ exactValue: z.ZodOptional<z.ZodString>;
89
91
  }, z.core.$strip>, z.ZodObject<{
90
92
  kind: z.ZodLiteral<"percentage">;
91
93
  value: z.ZodNumber;
94
+ exactValue: z.ZodOptional<z.ZodString>;
92
95
  }, z.core.$strip>, z.ZodObject<{
93
96
  kind: z.ZodLiteral<"currency">;
94
97
  value: z.ZodNumber;
95
98
  currency: z.ZodOptional<z.ZodString>;
99
+ exactValue: z.ZodOptional<z.ZodString>;
96
100
  }, z.core.$strip>, z.ZodObject<{
97
101
  kind: z.ZodLiteral<"boolean">;
98
102
  value: z.ZodBoolean;
@@ -102,6 +106,9 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
102
106
  }, z.core.$strip>, z.ZodObject<{
103
107
  kind: z.ZodLiteral<"time">;
104
108
  value: z.ZodString;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ kind: z.ZodLiteral<"dateTime">;
111
+ value: z.ZodString;
105
112
  }, z.core.$strip>, z.ZodObject<{
106
113
  kind: z.ZodLiteral<"string">;
107
114
  value: z.ZodString;
@@ -131,15 +138,90 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
131
138
  }, z.core.$strip>>>;
132
139
  colSpan: z.ZodOptional<z.ZodNumber>;
133
140
  rowSpan: z.ZodOptional<z.ZodNumber>;
141
+ background: z.ZodOptional<z.ZodObject<{
142
+ r: z.ZodNumber;
143
+ g: z.ZodNumber;
144
+ b: z.ZodNumber;
145
+ }, z.core.$strip>>;
146
+ borders: z.ZodOptional<z.ZodObject<{
147
+ left: z.ZodOptional<z.ZodObject<{
148
+ color: z.ZodObject<{
149
+ r: z.ZodNumber;
150
+ g: z.ZodNumber;
151
+ b: z.ZodNumber;
152
+ }, z.core.$strip>;
153
+ widthPt: z.ZodNumber;
154
+ style: z.ZodOptional<z.ZodEnum<{
155
+ solid: "solid";
156
+ dashed: "dashed";
157
+ dotted: "dotted";
158
+ double: "double";
159
+ }>>;
160
+ }, z.core.$strip>>;
161
+ right: z.ZodOptional<z.ZodObject<{
162
+ color: z.ZodObject<{
163
+ r: z.ZodNumber;
164
+ g: z.ZodNumber;
165
+ b: z.ZodNumber;
166
+ }, z.core.$strip>;
167
+ widthPt: z.ZodNumber;
168
+ style: z.ZodOptional<z.ZodEnum<{
169
+ solid: "solid";
170
+ dashed: "dashed";
171
+ dotted: "dotted";
172
+ double: "double";
173
+ }>>;
174
+ }, z.core.$strip>>;
175
+ top: z.ZodOptional<z.ZodObject<{
176
+ color: z.ZodObject<{
177
+ r: z.ZodNumber;
178
+ g: z.ZodNumber;
179
+ b: z.ZodNumber;
180
+ }, z.core.$strip>;
181
+ widthPt: z.ZodNumber;
182
+ style: z.ZodOptional<z.ZodEnum<{
183
+ solid: "solid";
184
+ dashed: "dashed";
185
+ dotted: "dotted";
186
+ double: "double";
187
+ }>>;
188
+ }, z.core.$strip>>;
189
+ bottom: z.ZodOptional<z.ZodObject<{
190
+ color: z.ZodObject<{
191
+ r: z.ZodNumber;
192
+ g: z.ZodNumber;
193
+ b: z.ZodNumber;
194
+ }, z.core.$strip>;
195
+ widthPt: z.ZodNumber;
196
+ style: z.ZodOptional<z.ZodEnum<{
197
+ solid: "solid";
198
+ dashed: "dashed";
199
+ dotted: "dotted";
200
+ double: "double";
201
+ }>>;
202
+ }, z.core.$strip>>;
203
+ }, z.core.$strip>>;
204
+ alignment: z.ZodOptional<z.ZodEnum<{
205
+ left: "left";
206
+ center: "center";
207
+ right: "right";
208
+ justify: "justify";
209
+ }>>;
210
+ verticalAlignment: z.ZodOptional<z.ZodEnum<{
211
+ top: "top";
212
+ bottom: "bottom";
213
+ middle: "middle";
214
+ }>>;
215
+ sourcePath: z.ZodOptional<z.ZodString>;
134
216
  }, z.core.$strip>>;
135
217
  columns: z.ZodArray<z.ZodObject<{
136
218
  index: z.ZodNumber;
137
- widthPt: z.ZodNumber;
219
+ widthPt: z.ZodOptional<z.ZodNumber>;
138
220
  hidden: z.ZodOptional<z.ZodBoolean>;
139
221
  }, z.core.$strip>>;
140
222
  rows: z.ZodArray<z.ZodObject<{
141
223
  index: z.ZodNumber;
142
- heightPt: z.ZodNumber;
224
+ heightPt: z.ZodOptional<z.ZodNumber>;
143
225
  hidden: z.ZodOptional<z.ZodBoolean>;
144
226
  }, z.core.$strip>>;
145
227
  images: z.ZodArray<z.ZodObject<{
@@ -175,7 +257,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
175
257
  endRow: z.ZodNumber;
176
258
  endColumn: z.ZodNumber;
177
259
  }, z.core.$strip>>;
178
- scale: z.ZodOptional<z.ZodNumber>;
260
+ scalePercent: z.ZodOptional<z.ZodNumber>;
179
261
  fitToPages: z.ZodOptional<z.ZodObject<{
180
262
  width: z.ZodNumber;
181
263
  height: z.ZodNumber;
@@ -203,7 +285,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
203
285
  }, z.core.$strip>>;
204
286
  }, z.core.$strip>, z.ZodObject<{
205
287
  kind: z.ZodLiteral<"drawing">;
206
- formatVersion: z.ZodLiteral<1>;
288
+ formatVersion: z.ZodLiteral<2>;
207
289
  metadata: z.ZodObject<{
208
290
  title: z.ZodOptional<z.ZodString>;
209
291
  author: z.ZodOptional<z.ZodString>;
@@ -234,6 +316,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
234
316
  insetBottomPt: z.ZodNumber;
235
317
  fontScale: z.ZodOptional<z.ZodNumber>;
236
318
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
319
+ paintOrder: z.ZodOptional<z.ZodNumber>;
237
320
  sourcePath: z.ZodOptional<z.ZodString>;
238
321
  blocks: z.ZodArray<z.ZodCustom<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>;
239
322
  }, z.core.$strip>>;
@@ -245,6 +328,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
245
328
  widthPt: z.ZodNumber;
246
329
  heightPt: z.ZodNumber;
247
330
  }, z.core.$strip>;
331
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
248
332
  fill: z.ZodOptional<z.ZodObject<{
249
333
  r: z.ZodNumber;
250
334
  g: z.ZodNumber;
@@ -257,7 +341,14 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
257
341
  b: z.ZodNumber;
258
342
  }, z.core.$strip>;
259
343
  widthPt: z.ZodNumber;
344
+ style: z.ZodOptional<z.ZodEnum<{
345
+ solid: "solid";
346
+ dashed: "dashed";
347
+ dotted: "dotted";
348
+ double: "double";
349
+ }>>;
260
350
  }, z.core.$strip>>;
351
+ paintOrder: z.ZodOptional<z.ZodNumber>;
261
352
  sourcePath: z.ZodOptional<z.ZodString>;
262
353
  }, z.core.$strip>, z.ZodObject<{
263
354
  kind: z.ZodLiteral<"ellipse">;
@@ -267,6 +358,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
267
358
  widthPt: z.ZodNumber;
268
359
  heightPt: z.ZodNumber;
269
360
  }, z.core.$strip>;
361
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
270
362
  fill: z.ZodOptional<z.ZodObject<{
271
363
  r: z.ZodNumber;
272
364
  g: z.ZodNumber;
@@ -279,7 +371,14 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
279
371
  b: z.ZodNumber;
280
372
  }, z.core.$strip>;
281
373
  widthPt: z.ZodNumber;
374
+ style: z.ZodOptional<z.ZodEnum<{
375
+ solid: "solid";
376
+ dashed: "dashed";
377
+ dotted: "dotted";
378
+ double: "double";
379
+ }>>;
282
380
  }, z.core.$strip>>;
381
+ paintOrder: z.ZodOptional<z.ZodNumber>;
283
382
  sourcePath: z.ZodOptional<z.ZodString>;
284
383
  }, z.core.$strip>, z.ZodObject<{
285
384
  kind: z.ZodLiteral<"line">;
@@ -298,7 +397,14 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
298
397
  b: z.ZodNumber;
299
398
  }, z.core.$strip>;
300
399
  widthPt: z.ZodNumber;
400
+ style: z.ZodOptional<z.ZodEnum<{
401
+ solid: "solid";
402
+ dashed: "dashed";
403
+ dotted: "dotted";
404
+ double: "double";
405
+ }>>;
301
406
  }, z.core.$strip>;
407
+ paintOrder: z.ZodOptional<z.ZodNumber>;
302
408
  sourcePath: z.ZodOptional<z.ZodString>;
303
409
  }, z.core.$strip>, z.ZodObject<{
304
410
  kind: z.ZodLiteral<"path">;
@@ -308,6 +414,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
308
414
  widthPt: z.ZodNumber;
309
415
  heightPt: z.ZodNumber;
310
416
  }, z.core.$strip>;
417
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
311
418
  subpaths: z.ZodArray<z.ZodObject<{
312
419
  start: z.ZodObject<{
313
420
  xPt: z.ZodNumber;
@@ -352,10 +459,34 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
352
459
  b: z.ZodNumber;
353
460
  }, z.core.$strip>;
354
461
  widthPt: z.ZodNumber;
462
+ style: z.ZodOptional<z.ZodEnum<{
463
+ solid: "solid";
464
+ dashed: "dashed";
465
+ dotted: "dotted";
466
+ double: "double";
467
+ }>>;
355
468
  }, z.core.$strip>>;
469
+ paintOrder: z.ZodOptional<z.ZodNumber>;
356
470
  sourcePath: z.ZodOptional<z.ZodString>;
357
471
  }, z.core.$strip>], "kind">>;
358
472
  }, z.core.$strip>>;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ kind: z.ZodLiteral<"formula">;
475
+ formatVersion: z.ZodLiteral<2>;
476
+ metadata: z.ZodObject<{
477
+ title: z.ZodOptional<z.ZodString>;
478
+ author: z.ZodOptional<z.ZodString>;
479
+ subject: z.ZodOptional<z.ZodString>;
480
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
481
+ creator: z.ZodOptional<z.ZodString>;
482
+ producer: z.ZodOptional<z.ZodString>;
483
+ createdIso: z.ZodOptional<z.ZodString>;
484
+ modifiedIso: z.ZodOptional<z.ZodString>;
485
+ }, z.core.$strip>;
486
+ formula: z.ZodObject<{
487
+ mathml: z.ZodArray<z.ZodCustom<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode>>;
488
+ starMath: z.ZodOptional<z.ZodString>;
489
+ }, z.core.$strip>;
359
490
  }, z.core.$strip>], "kind">>;
360
491
  //#endregion
361
492
  export { MarkdownBytesSchema, markdownCodec };
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<1>;
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<1>;
32
+ formatVersion: z.ZodLiteral<2>;
33
33
  metadata: z.ZodObject<{
34
34
  title: z.ZodOptional<z.ZodString>;
35
35
  author: z.ZodOptional<z.ZodString>;
@@ -60,6 +60,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
60
60
  insetBottomPt: z.ZodNumber;
61
61
  fontScale: z.ZodOptional<z.ZodNumber>;
62
62
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
63
+ paintOrder: z.ZodOptional<z.ZodNumber>;
63
64
  sourcePath: z.ZodOptional<z.ZodString>;
64
65
  blocks: z.ZodArray<z.ZodCustom<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>;
65
66
  }, z.core.$strip>>;
@@ -67,7 +68,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
67
68
  }, z.core.$strip>>;
68
69
  }, z.core.$strip>, z.ZodObject<{
69
70
  kind: z.ZodLiteral<"spreadsheet">;
70
- formatVersion: z.ZodLiteral<1>;
71
+ formatVersion: z.ZodLiteral<2>;
71
72
  metadata: z.ZodObject<{
72
73
  title: z.ZodOptional<z.ZodString>;
73
74
  author: z.ZodOptional<z.ZodString>;
@@ -86,13 +87,16 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
86
87
  value: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
88
  kind: z.ZodLiteral<"number">;
88
89
  value: z.ZodNumber;
90
+ exactValue: z.ZodOptional<z.ZodString>;
89
91
  }, z.core.$strip>, z.ZodObject<{
90
92
  kind: z.ZodLiteral<"percentage">;
91
93
  value: z.ZodNumber;
94
+ exactValue: z.ZodOptional<z.ZodString>;
92
95
  }, z.core.$strip>, z.ZodObject<{
93
96
  kind: z.ZodLiteral<"currency">;
94
97
  value: z.ZodNumber;
95
98
  currency: z.ZodOptional<z.ZodString>;
99
+ exactValue: z.ZodOptional<z.ZodString>;
96
100
  }, z.core.$strip>, z.ZodObject<{
97
101
  kind: z.ZodLiteral<"boolean">;
98
102
  value: z.ZodBoolean;
@@ -102,6 +106,9 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
102
106
  }, z.core.$strip>, z.ZodObject<{
103
107
  kind: z.ZodLiteral<"time">;
104
108
  value: z.ZodString;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ kind: z.ZodLiteral<"dateTime">;
111
+ value: z.ZodString;
105
112
  }, z.core.$strip>, z.ZodObject<{
106
113
  kind: z.ZodLiteral<"string">;
107
114
  value: z.ZodString;
@@ -131,15 +138,90 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
131
138
  }, z.core.$strip>>>;
132
139
  colSpan: z.ZodOptional<z.ZodNumber>;
133
140
  rowSpan: z.ZodOptional<z.ZodNumber>;
141
+ background: z.ZodOptional<z.ZodObject<{
142
+ r: z.ZodNumber;
143
+ g: z.ZodNumber;
144
+ b: z.ZodNumber;
145
+ }, z.core.$strip>>;
146
+ borders: z.ZodOptional<z.ZodObject<{
147
+ left: z.ZodOptional<z.ZodObject<{
148
+ color: z.ZodObject<{
149
+ r: z.ZodNumber;
150
+ g: z.ZodNumber;
151
+ b: z.ZodNumber;
152
+ }, z.core.$strip>;
153
+ widthPt: z.ZodNumber;
154
+ style: z.ZodOptional<z.ZodEnum<{
155
+ solid: "solid";
156
+ dashed: "dashed";
157
+ dotted: "dotted";
158
+ double: "double";
159
+ }>>;
160
+ }, z.core.$strip>>;
161
+ right: z.ZodOptional<z.ZodObject<{
162
+ color: z.ZodObject<{
163
+ r: z.ZodNumber;
164
+ g: z.ZodNumber;
165
+ b: z.ZodNumber;
166
+ }, z.core.$strip>;
167
+ widthPt: z.ZodNumber;
168
+ style: z.ZodOptional<z.ZodEnum<{
169
+ solid: "solid";
170
+ dashed: "dashed";
171
+ dotted: "dotted";
172
+ double: "double";
173
+ }>>;
174
+ }, z.core.$strip>>;
175
+ top: z.ZodOptional<z.ZodObject<{
176
+ color: z.ZodObject<{
177
+ r: z.ZodNumber;
178
+ g: z.ZodNumber;
179
+ b: z.ZodNumber;
180
+ }, z.core.$strip>;
181
+ widthPt: z.ZodNumber;
182
+ style: z.ZodOptional<z.ZodEnum<{
183
+ solid: "solid";
184
+ dashed: "dashed";
185
+ dotted: "dotted";
186
+ double: "double";
187
+ }>>;
188
+ }, z.core.$strip>>;
189
+ bottom: z.ZodOptional<z.ZodObject<{
190
+ color: z.ZodObject<{
191
+ r: z.ZodNumber;
192
+ g: z.ZodNumber;
193
+ b: z.ZodNumber;
194
+ }, z.core.$strip>;
195
+ widthPt: z.ZodNumber;
196
+ style: z.ZodOptional<z.ZodEnum<{
197
+ solid: "solid";
198
+ dashed: "dashed";
199
+ dotted: "dotted";
200
+ double: "double";
201
+ }>>;
202
+ }, z.core.$strip>>;
203
+ }, z.core.$strip>>;
204
+ alignment: z.ZodOptional<z.ZodEnum<{
205
+ left: "left";
206
+ center: "center";
207
+ right: "right";
208
+ justify: "justify";
209
+ }>>;
210
+ verticalAlignment: z.ZodOptional<z.ZodEnum<{
211
+ top: "top";
212
+ bottom: "bottom";
213
+ middle: "middle";
214
+ }>>;
215
+ sourcePath: z.ZodOptional<z.ZodString>;
134
216
  }, z.core.$strip>>;
135
217
  columns: z.ZodArray<z.ZodObject<{
136
218
  index: z.ZodNumber;
137
- widthPt: z.ZodNumber;
219
+ widthPt: z.ZodOptional<z.ZodNumber>;
138
220
  hidden: z.ZodOptional<z.ZodBoolean>;
139
221
  }, z.core.$strip>>;
140
222
  rows: z.ZodArray<z.ZodObject<{
141
223
  index: z.ZodNumber;
142
- heightPt: z.ZodNumber;
224
+ heightPt: z.ZodOptional<z.ZodNumber>;
143
225
  hidden: z.ZodOptional<z.ZodBoolean>;
144
226
  }, z.core.$strip>>;
145
227
  images: z.ZodArray<z.ZodObject<{
@@ -175,7 +257,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
175
257
  endRow: z.ZodNumber;
176
258
  endColumn: z.ZodNumber;
177
259
  }, z.core.$strip>>;
178
- scale: z.ZodOptional<z.ZodNumber>;
260
+ scalePercent: z.ZodOptional<z.ZodNumber>;
179
261
  fitToPages: z.ZodOptional<z.ZodObject<{
180
262
  width: z.ZodNumber;
181
263
  height: z.ZodNumber;
@@ -203,7 +285,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
203
285
  }, z.core.$strip>>;
204
286
  }, z.core.$strip>, z.ZodObject<{
205
287
  kind: z.ZodLiteral<"drawing">;
206
- formatVersion: z.ZodLiteral<1>;
288
+ formatVersion: z.ZodLiteral<2>;
207
289
  metadata: z.ZodObject<{
208
290
  title: z.ZodOptional<z.ZodString>;
209
291
  author: z.ZodOptional<z.ZodString>;
@@ -234,6 +316,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
234
316
  insetBottomPt: z.ZodNumber;
235
317
  fontScale: z.ZodOptional<z.ZodNumber>;
236
318
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
319
+ paintOrder: z.ZodOptional<z.ZodNumber>;
237
320
  sourcePath: z.ZodOptional<z.ZodString>;
238
321
  blocks: z.ZodArray<z.ZodCustom<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>;
239
322
  }, z.core.$strip>>;
@@ -245,6 +328,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
245
328
  widthPt: z.ZodNumber;
246
329
  heightPt: z.ZodNumber;
247
330
  }, z.core.$strip>;
331
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
248
332
  fill: z.ZodOptional<z.ZodObject<{
249
333
  r: z.ZodNumber;
250
334
  g: z.ZodNumber;
@@ -257,7 +341,14 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
257
341
  b: z.ZodNumber;
258
342
  }, z.core.$strip>;
259
343
  widthPt: z.ZodNumber;
344
+ style: z.ZodOptional<z.ZodEnum<{
345
+ solid: "solid";
346
+ dashed: "dashed";
347
+ dotted: "dotted";
348
+ double: "double";
349
+ }>>;
260
350
  }, z.core.$strip>>;
351
+ paintOrder: z.ZodOptional<z.ZodNumber>;
261
352
  sourcePath: z.ZodOptional<z.ZodString>;
262
353
  }, z.core.$strip>, z.ZodObject<{
263
354
  kind: z.ZodLiteral<"ellipse">;
@@ -267,6 +358,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
267
358
  widthPt: z.ZodNumber;
268
359
  heightPt: z.ZodNumber;
269
360
  }, z.core.$strip>;
361
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
270
362
  fill: z.ZodOptional<z.ZodObject<{
271
363
  r: z.ZodNumber;
272
364
  g: z.ZodNumber;
@@ -279,7 +371,14 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
279
371
  b: z.ZodNumber;
280
372
  }, z.core.$strip>;
281
373
  widthPt: z.ZodNumber;
374
+ style: z.ZodOptional<z.ZodEnum<{
375
+ solid: "solid";
376
+ dashed: "dashed";
377
+ dotted: "dotted";
378
+ double: "double";
379
+ }>>;
282
380
  }, z.core.$strip>>;
381
+ paintOrder: z.ZodOptional<z.ZodNumber>;
283
382
  sourcePath: z.ZodOptional<z.ZodString>;
284
383
  }, z.core.$strip>, z.ZodObject<{
285
384
  kind: z.ZodLiteral<"line">;
@@ -298,7 +397,14 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
298
397
  b: z.ZodNumber;
299
398
  }, z.core.$strip>;
300
399
  widthPt: z.ZodNumber;
400
+ style: z.ZodOptional<z.ZodEnum<{
401
+ solid: "solid";
402
+ dashed: "dashed";
403
+ dotted: "dotted";
404
+ double: "double";
405
+ }>>;
301
406
  }, z.core.$strip>;
407
+ paintOrder: z.ZodOptional<z.ZodNumber>;
302
408
  sourcePath: z.ZodOptional<z.ZodString>;
303
409
  }, z.core.$strip>, z.ZodObject<{
304
410
  kind: z.ZodLiteral<"path">;
@@ -308,6 +414,7 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
308
414
  widthPt: z.ZodNumber;
309
415
  heightPt: z.ZodNumber;
310
416
  }, z.core.$strip>;
417
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
311
418
  subpaths: z.ZodArray<z.ZodObject<{
312
419
  start: z.ZodObject<{
313
420
  xPt: z.ZodNumber;
@@ -352,10 +459,34 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
352
459
  b: z.ZodNumber;
353
460
  }, z.core.$strip>;
354
461
  widthPt: z.ZodNumber;
462
+ style: z.ZodOptional<z.ZodEnum<{
463
+ solid: "solid";
464
+ dashed: "dashed";
465
+ dotted: "dotted";
466
+ double: "double";
467
+ }>>;
355
468
  }, z.core.$strip>>;
469
+ paintOrder: z.ZodOptional<z.ZodNumber>;
356
470
  sourcePath: z.ZodOptional<z.ZodString>;
357
471
  }, z.core.$strip>], "kind">>;
358
472
  }, z.core.$strip>>;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ kind: z.ZodLiteral<"formula">;
475
+ formatVersion: z.ZodLiteral<2>;
476
+ metadata: z.ZodObject<{
477
+ title: z.ZodOptional<z.ZodString>;
478
+ author: z.ZodOptional<z.ZodString>;
479
+ subject: z.ZodOptional<z.ZodString>;
480
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
481
+ creator: z.ZodOptional<z.ZodString>;
482
+ producer: z.ZodOptional<z.ZodString>;
483
+ createdIso: z.ZodOptional<z.ZodString>;
484
+ modifiedIso: z.ZodOptional<z.ZodString>;
485
+ }, z.core.$strip>;
486
+ formula: z.ZodObject<{
487
+ mathml: z.ZodArray<z.ZodCustom<import("document-schema.js").MathMlNode, import("document-schema.js").MathMlNode>>;
488
+ starMath: z.ZodOptional<z.ZodString>;
489
+ }, z.core.$strip>;
359
490
  }, z.core.$strip>], "kind">>;
360
491
  //#endregion
361
492
  export { MarkdownBytesSchema, markdownCodec };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdown-codec",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Hand-written CommonMark+GFM <-> ContentDocument codec, built on document-schema.js",
5
5
  "type": "module",
6
6
  "repository": {
@@ -69,7 +69,7 @@
69
69
  "license": "MIT",
70
70
  "packageManager": "pnpm@11.6.0",
71
71
  "dependencies": {
72
- "document-schema.js": "^1.5.3",
72
+ "document-schema.js": "^2.2.0",
73
73
  "zod": "^4.4.3"
74
74
  },
75
75
  "devDependencies": {