@segnavia/format 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/book.d.ts +274 -0
- package/dist/book.js +131 -0
- package/dist/deck-from-slides.d.ts +116 -0
- package/dist/deck-from-slides.js +36 -0
- package/dist/deck.d.ts +522 -0
- package/dist/deck.js +196 -0
- package/dist/direction.d.ts +6 -0
- package/dist/direction.js +7 -1
- package/dist/index.d.ts +104 -536
- package/dist/index.js +12 -215
- package/dist/lexicon.d.ts +18 -0
- package/dist/lexicon.js +38 -0
- package/dist/numbering.d.ts +19 -0
- package/dist/numbering.js +106 -0
- package/dist/paper.d.ts +20 -1
- package/dist/paper.js +19 -1
- package/dist/scripts.d.ts +8 -0
- package/dist/scripts.js +5 -0
- package/dist/shots-used.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,44 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Book, BookContents, BookFrontMatterEntry, BookInput, BookMode, BookPage, BookSection, Chapter, isBookContents, noteMarkerIssues } from "./book.js";
|
|
2
|
+
import { Annotation, Box, Cue, DECK_SIZE, Deck, DeckInput, DeckLimits, Manifest, Narration, Point, PublishedShot, SHOT_KEY, Shot, Size, Slide, SlideContent, Word, annotationCueIssues, exceedsLimits } from "./deck.js";
|
|
3
|
+
import { DeckFromSlidesOptions, SlideRow, deckFromSlides } from "./deck-from-slides.js";
|
|
4
|
+
import { Direction, TextDirection, firstStrongDirection, languageDirection, resolveDirection } from "./direction.js";
|
|
5
|
+
import { MARK_GAP_MM, MARK_LENGTH_MM, MM_PER_PT, NAMED_PAPERS, PAPER_MM, PX_PER_MM, Paper, PaperBox, printBoxes, printPadding, printProperties, roundMillimeters, sheetMm, toMillimeters } from "./paper.js";
|
|
3
6
|
import { Imposed, MillimeterEdges, PageFit, PagePlacementKind, PagePlacementLayout, Placement, fitPage, impose, mirrorPlacement, pagePlacementLayout } from "./imposition.js";
|
|
7
|
+
import { Lexicon, PronunciationEntry, lexiconVersion } from "./lexicon.js";
|
|
8
|
+
import { NoteMarker, NumberSystem, formatNumber, noteMarker } from "./numbering.js";
|
|
9
|
+
import { Scripts } from "./scripts.js";
|
|
4
10
|
import { ShotUse, shotsUsed } from "./shots-used.js";
|
|
5
11
|
import { MAX_SLIDE_TIMING_MS } from "./timing.js";
|
|
6
12
|
import { DEFAULT_TRANSITION_DURATION_MS, MAX_TRANSITION_DURATION_MS, MIN_TRANSITION_DURATION_MS, Transition, TransitionInput } from "./transition.js";
|
|
7
13
|
import { z } from "zod";
|
|
8
14
|
//#region src/index.d.ts
|
|
9
|
-
export declare const Size: z.ZodObject<{
|
|
10
|
-
width: z.ZodNumber;
|
|
11
|
-
height: z.ZodNumber;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type Size = z.infer<typeof Size>;
|
|
14
|
-
export declare const Scripts: z.ZodEnum<{
|
|
15
|
-
refuse: "refuse";
|
|
16
|
-
sandboxed: "sandboxed";
|
|
17
|
-
}>;
|
|
18
|
-
export type Scripts = z.infer<typeof Scripts>;
|
|
19
|
-
export declare const Direction: z.ZodEnum<{
|
|
20
|
-
ltr: "ltr";
|
|
21
|
-
rtl: "rtl";
|
|
22
|
-
auto: "auto";
|
|
23
|
-
}>;
|
|
24
|
-
export declare const NAMED_PAPERS: readonly ["letter", "legal", "tabloid", "a3", "a4", "a5"];
|
|
25
|
-
export declare const Paper: z.ZodUnion<readonly [z.ZodEnum<{
|
|
26
|
-
letter: "letter";
|
|
27
|
-
legal: "legal";
|
|
28
|
-
tabloid: "tabloid";
|
|
29
|
-
a3: "a3";
|
|
30
|
-
a4: "a4";
|
|
31
|
-
a5: "a5";
|
|
32
|
-
}>, z.ZodObject<{
|
|
33
|
-
width: z.ZodNumber;
|
|
34
|
-
height: z.ZodNumber;
|
|
35
|
-
unit: z.ZodEnum<{
|
|
36
|
-
mm: "mm";
|
|
37
|
-
in: "in";
|
|
38
|
-
pt: "pt";
|
|
39
|
-
}>;
|
|
40
|
-
}, z.core.$strip>]>;
|
|
41
|
-
export type Paper = z.infer<typeof Paper>;
|
|
42
15
|
export declare const Margin: z.ZodObject<{
|
|
43
16
|
top: z.ZodDefault<z.ZodNumber>;
|
|
44
17
|
right: z.ZodDefault<z.ZodNumber>;
|
|
@@ -208,521 +181,109 @@ export declare const Page: z.ZodObject<{
|
|
|
208
181
|
}, z.core.$strip>;
|
|
209
182
|
export type Page = z.infer<typeof Page>;
|
|
210
183
|
export type PageInput = z.input<typeof Page>;
|
|
211
|
-
export declare
|
|
212
|
-
|
|
213
|
-
y: z.ZodNumber;
|
|
214
|
-
width: z.ZodNumber;
|
|
215
|
-
height: z.ZodNumber;
|
|
216
|
-
}, z.core.$strip>;
|
|
217
|
-
export type Box = z.infer<typeof Box>;
|
|
218
|
-
export declare const Point: z.ZodObject<{
|
|
219
|
-
x: z.ZodNumber;
|
|
220
|
-
y: z.ZodNumber;
|
|
221
|
-
}, z.core.$strip>;
|
|
222
|
-
export declare const Annotation: z.ZodObject<{
|
|
223
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
224
|
-
x: z.ZodNumber;
|
|
225
|
-
y: z.ZodNumber;
|
|
226
|
-
width: z.ZodNumber;
|
|
227
|
-
height: z.ZodNumber;
|
|
228
|
-
}, z.core.$strip>>;
|
|
229
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
230
|
-
center: z.ZodObject<{
|
|
231
|
-
x: z.ZodNumber;
|
|
232
|
-
y: z.ZodNumber;
|
|
233
|
-
}, z.core.$strip>;
|
|
234
|
-
number: z.ZodNumber;
|
|
235
|
-
}, z.core.$strip>>;
|
|
236
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
237
|
-
head: z.ZodObject<{
|
|
238
|
-
x: z.ZodNumber;
|
|
239
|
-
y: z.ZodNumber;
|
|
240
|
-
}, z.core.$strip>;
|
|
241
|
-
tail: z.ZodObject<{
|
|
242
|
-
x: z.ZodNumber;
|
|
243
|
-
y: z.ZodNumber;
|
|
244
|
-
}, z.core.$strip>;
|
|
245
|
-
label: z.ZodNullable<z.ZodString>;
|
|
246
|
-
}, z.core.$strip>>;
|
|
247
|
-
}, z.core.$strip>;
|
|
248
|
-
export type Annotation = z.infer<typeof Annotation>;
|
|
249
|
-
export declare const SHOT_KEY: RegExp;
|
|
250
|
-
export declare const Shot: z.ZodObject<{
|
|
251
|
-
key: z.ZodString;
|
|
252
|
-
title: z.ZodString;
|
|
253
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
254
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
255
|
-
file: z.ZodString;
|
|
256
|
-
annotatedFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
257
|
-
size: z.ZodObject<{
|
|
258
|
-
width: z.ZodNumber;
|
|
259
|
-
height: z.ZodNumber;
|
|
260
|
-
}, z.core.$strip>;
|
|
261
|
-
scale: z.ZodNumber;
|
|
262
|
-
dir: z.ZodDefault<z.ZodEnum<{
|
|
263
|
-
ltr: "ltr";
|
|
264
|
-
rtl: "rtl";
|
|
265
|
-
}>>;
|
|
266
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
267
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
268
|
-
x: z.ZodNumber;
|
|
269
|
-
y: z.ZodNumber;
|
|
270
|
-
width: z.ZodNumber;
|
|
271
|
-
height: z.ZodNumber;
|
|
272
|
-
}, z.core.$strip>>;
|
|
273
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
274
|
-
center: z.ZodObject<{
|
|
275
|
-
x: z.ZodNumber;
|
|
276
|
-
y: z.ZodNumber;
|
|
277
|
-
}, z.core.$strip>;
|
|
278
|
-
number: z.ZodNumber;
|
|
279
|
-
}, z.core.$strip>>;
|
|
280
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
281
|
-
head: z.ZodObject<{
|
|
282
|
-
x: z.ZodNumber;
|
|
283
|
-
y: z.ZodNumber;
|
|
284
|
-
}, z.core.$strip>;
|
|
285
|
-
tail: z.ZodObject<{
|
|
286
|
-
x: z.ZodNumber;
|
|
287
|
-
y: z.ZodNumber;
|
|
288
|
-
}, z.core.$strip>;
|
|
289
|
-
label: z.ZodNullable<z.ZodString>;
|
|
290
|
-
}, z.core.$strip>>;
|
|
291
|
-
}, z.core.$strip>>;
|
|
292
|
-
capturedAt: z.ZodString;
|
|
293
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
294
|
-
}, z.core.$strip>;
|
|
295
|
-
export type Shot = z.infer<typeof Shot>;
|
|
296
|
-
export declare const PublishedShot: z.ZodObject<{
|
|
297
|
-
src: z.ZodString;
|
|
298
|
-
shot: z.ZodObject<{
|
|
299
|
-
key: z.ZodString;
|
|
184
|
+
export declare function jsonSchemas(): {
|
|
185
|
+
book: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
300
186
|
title: z.ZodString;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
315
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
316
|
-
x: z.ZodNumber;
|
|
317
|
-
y: z.ZodNumber;
|
|
187
|
+
mode: z.ZodEnum<{
|
|
188
|
+
continuous: "continuous";
|
|
189
|
+
paginated: "paginated";
|
|
190
|
+
}>;
|
|
191
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
paper: z.ZodUnion<readonly [z.ZodEnum<{
|
|
193
|
+
letter: "letter";
|
|
194
|
+
legal: "legal";
|
|
195
|
+
tabloid: "tabloid";
|
|
196
|
+
a3: "a3";
|
|
197
|
+
a4: "a4";
|
|
198
|
+
a5: "a5";
|
|
199
|
+
}>, z.ZodObject<{
|
|
318
200
|
width: z.ZodNumber;
|
|
319
201
|
height: z.ZodNumber;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}, z.core.$strip>;
|
|
337
|
-
label: z.ZodNullable<z.ZodString>;
|
|
338
|
-
}, z.core.$strip>>;
|
|
202
|
+
unit: z.ZodEnum<{
|
|
203
|
+
mm: "mm";
|
|
204
|
+
in: "in";
|
|
205
|
+
pt: "pt";
|
|
206
|
+
}>;
|
|
207
|
+
}, z.core.$strip>]>;
|
|
208
|
+
orientation: z.ZodDefault<z.ZodEnum<{
|
|
209
|
+
portrait: "portrait";
|
|
210
|
+
landscape: "landscape";
|
|
211
|
+
}>>;
|
|
212
|
+
margin: z.ZodObject<{
|
|
213
|
+
top: z.ZodNumber;
|
|
214
|
+
bottom: z.ZodNumber;
|
|
215
|
+
inner: z.ZodNumber;
|
|
216
|
+
outer: z.ZodNumber;
|
|
217
|
+
}, z.core.$strip>;
|
|
339
218
|
}, z.core.$strip>>;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}, z.core.$strip>;
|
|
344
|
-
export type PublishedShot = z.infer<typeof PublishedShot>;
|
|
345
|
-
export declare const Word: z.ZodObject<{
|
|
346
|
-
text: z.ZodString;
|
|
347
|
-
startMs: z.ZodNumber;
|
|
348
|
-
endMs: z.ZodNumber;
|
|
349
|
-
}, z.core.$strip>;
|
|
350
|
-
export type Word = z.infer<typeof Word>;
|
|
351
|
-
export declare const Cue: z.ZodObject<{
|
|
352
|
-
word: z.ZodNumber;
|
|
353
|
-
annotation: z.ZodNumber;
|
|
354
|
-
untilWord: z.ZodOptional<z.ZodNumber>;
|
|
355
|
-
}, z.core.$strip>;
|
|
356
|
-
export type Cue = z.infer<typeof Cue>;
|
|
357
|
-
export declare const Narration: z.ZodObject<{
|
|
358
|
-
text: z.ZodString;
|
|
359
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
360
|
-
dir: z.ZodOptional<z.ZodEnum<{
|
|
361
|
-
ltr: "ltr";
|
|
362
|
-
rtl: "rtl";
|
|
363
|
-
auto: "auto";
|
|
364
|
-
}>>;
|
|
365
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
366
|
-
words: z.ZodArray<z.ZodObject<{
|
|
367
|
-
text: z.ZodString;
|
|
368
|
-
startMs: z.ZodNumber;
|
|
369
|
-
endMs: z.ZodNumber;
|
|
370
|
-
}, z.core.$strip>>;
|
|
371
|
-
durationMs: z.ZodNumber;
|
|
372
|
-
audio: z.ZodNullable<z.ZodString>;
|
|
373
|
-
live: z.ZodDefault<z.ZodBoolean>;
|
|
374
|
-
cues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
375
|
-
word: z.ZodNumber;
|
|
376
|
-
annotation: z.ZodNumber;
|
|
377
|
-
untilWord: z.ZodOptional<z.ZodNumber>;
|
|
378
|
-
}, z.core.$strip>>>;
|
|
379
|
-
}, z.core.$strip>;
|
|
380
|
-
export type Narration = z.infer<typeof Narration>;
|
|
381
|
-
export declare const SlideContent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
382
|
-
kind: z.ZodLiteral<"html">;
|
|
383
|
-
html: z.ZodString;
|
|
384
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
385
|
-
kind: z.ZodLiteral<"url">;
|
|
386
|
-
src: z.ZodString;
|
|
387
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
388
|
-
kind: z.ZodLiteral<"shot">;
|
|
389
|
-
src: z.ZodString;
|
|
390
|
-
shot: z.ZodObject<{
|
|
391
|
-
key: z.ZodString;
|
|
392
|
-
title: z.ZodString;
|
|
393
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
394
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
395
|
-
file: z.ZodString;
|
|
396
|
-
annotatedFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
397
|
-
size: z.ZodObject<{
|
|
398
|
-
width: z.ZodNumber;
|
|
399
|
-
height: z.ZodNumber;
|
|
400
|
-
}, z.core.$strip>;
|
|
401
|
-
scale: z.ZodNumber;
|
|
402
|
-
dir: z.ZodDefault<z.ZodEnum<{
|
|
403
|
-
ltr: "ltr";
|
|
404
|
-
rtl: "rtl";
|
|
219
|
+
scripts: z.ZodDefault<z.ZodEnum<{
|
|
220
|
+
refuse: "refuse";
|
|
221
|
+
sandboxed: "sandboxed";
|
|
405
222
|
}>>;
|
|
406
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
407
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
408
|
-
x: z.ZodNumber;
|
|
409
|
-
y: z.ZodNumber;
|
|
410
|
-
width: z.ZodNumber;
|
|
411
|
-
height: z.ZodNumber;
|
|
412
|
-
}, z.core.$strip>>;
|
|
413
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
414
|
-
center: z.ZodObject<{
|
|
415
|
-
x: z.ZodNumber;
|
|
416
|
-
y: z.ZodNumber;
|
|
417
|
-
}, z.core.$strip>;
|
|
418
|
-
number: z.ZodNumber;
|
|
419
|
-
}, z.core.$strip>>;
|
|
420
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
421
|
-
head: z.ZodObject<{
|
|
422
|
-
x: z.ZodNumber;
|
|
423
|
-
y: z.ZodNumber;
|
|
424
|
-
}, z.core.$strip>;
|
|
425
|
-
tail: z.ZodObject<{
|
|
426
|
-
x: z.ZodNumber;
|
|
427
|
-
y: z.ZodNumber;
|
|
428
|
-
}, z.core.$strip>;
|
|
429
|
-
label: z.ZodNullable<z.ZodString>;
|
|
430
|
-
}, z.core.$strip>>;
|
|
431
|
-
}, z.core.$strip>>;
|
|
432
|
-
capturedAt: z.ZodString;
|
|
433
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
434
|
-
}, z.core.$strip>;
|
|
435
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
436
|
-
kind: z.ZodLiteral<"shot-ref">;
|
|
437
|
-
href: z.ZodString;
|
|
438
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
439
|
-
kind: z.ZodLiteral<"image">;
|
|
440
|
-
src: z.ZodString;
|
|
441
|
-
alt: z.ZodString;
|
|
442
|
-
}, z.core.$strip>], "kind">;
|
|
443
|
-
export type SlideContent = z.infer<typeof SlideContent>;
|
|
444
|
-
export declare const Slide: z.ZodObject<{
|
|
445
|
-
id: z.ZodString;
|
|
446
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
447
|
-
kind: z.ZodLiteral<"html">;
|
|
448
|
-
html: z.ZodString;
|
|
449
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
450
|
-
kind: z.ZodLiteral<"url">;
|
|
451
|
-
src: z.ZodString;
|
|
452
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
453
|
-
kind: z.ZodLiteral<"shot">;
|
|
454
|
-
src: z.ZodString;
|
|
455
|
-
shot: z.ZodObject<{
|
|
456
|
-
key: z.ZodString;
|
|
457
|
-
title: z.ZodString;
|
|
458
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
459
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
460
|
-
file: z.ZodString;
|
|
461
|
-
annotatedFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
462
|
-
size: z.ZodObject<{
|
|
463
|
-
width: z.ZodNumber;
|
|
464
|
-
height: z.ZodNumber;
|
|
465
|
-
}, z.core.$strip>;
|
|
466
|
-
scale: z.ZodNumber;
|
|
467
|
-
dir: z.ZodDefault<z.ZodEnum<{
|
|
468
|
-
ltr: "ltr";
|
|
469
|
-
rtl: "rtl";
|
|
470
|
-
}>>;
|
|
471
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
472
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
473
|
-
x: z.ZodNumber;
|
|
474
|
-
y: z.ZodNumber;
|
|
475
|
-
width: z.ZodNumber;
|
|
476
|
-
height: z.ZodNumber;
|
|
477
|
-
}, z.core.$strip>>;
|
|
478
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
479
|
-
center: z.ZodObject<{
|
|
480
|
-
x: z.ZodNumber;
|
|
481
|
-
y: z.ZodNumber;
|
|
482
|
-
}, z.core.$strip>;
|
|
483
|
-
number: z.ZodNumber;
|
|
484
|
-
}, z.core.$strip>>;
|
|
485
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
486
|
-
head: z.ZodObject<{
|
|
487
|
-
x: z.ZodNumber;
|
|
488
|
-
y: z.ZodNumber;
|
|
489
|
-
}, z.core.$strip>;
|
|
490
|
-
tail: z.ZodObject<{
|
|
491
|
-
x: z.ZodNumber;
|
|
492
|
-
y: z.ZodNumber;
|
|
493
|
-
}, z.core.$strip>;
|
|
494
|
-
label: z.ZodNullable<z.ZodString>;
|
|
495
|
-
}, z.core.$strip>>;
|
|
496
|
-
}, z.core.$strip>>;
|
|
497
|
-
capturedAt: z.ZodString;
|
|
498
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
499
|
-
}, z.core.$strip>;
|
|
500
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
501
|
-
kind: z.ZodLiteral<"shot-ref">;
|
|
502
|
-
href: z.ZodString;
|
|
503
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
504
|
-
kind: z.ZodLiteral<"image">;
|
|
505
|
-
src: z.ZodString;
|
|
506
|
-
alt: z.ZodString;
|
|
507
|
-
}, z.core.$strip>], "kind">;
|
|
508
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
509
|
-
narration: z.ZodOptional<z.ZodObject<{
|
|
510
|
-
text: z.ZodString;
|
|
511
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
512
223
|
dir: z.ZodOptional<z.ZodEnum<{
|
|
513
224
|
ltr: "ltr";
|
|
514
225
|
rtl: "rtl";
|
|
515
226
|
auto: "auto";
|
|
516
227
|
}>>;
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
startMs: z.ZodNumber;
|
|
521
|
-
endMs: z.ZodNumber;
|
|
522
|
-
}, z.core.$strip>>;
|
|
523
|
-
durationMs: z.ZodNumber;
|
|
524
|
-
audio: z.ZodNullable<z.ZodString>;
|
|
525
|
-
live: z.ZodDefault<z.ZodBoolean>;
|
|
526
|
-
cues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
527
|
-
word: z.ZodNumber;
|
|
528
|
-
annotation: z.ZodNumber;
|
|
529
|
-
untilWord: z.ZodOptional<z.ZodNumber>;
|
|
530
|
-
}, z.core.$strip>>>;
|
|
531
|
-
}, z.core.$strip>>;
|
|
532
|
-
beforeMs: z.ZodOptional<z.ZodNumber>;
|
|
533
|
-
afterMs: z.ZodOptional<z.ZodNumber>;
|
|
534
|
-
holdMs: z.ZodOptional<z.ZodNumber>;
|
|
535
|
-
}, z.core.$strip>;
|
|
536
|
-
export type Slide = z.infer<typeof Slide>;
|
|
537
|
-
export declare const DECK_SIZE: {
|
|
538
|
-
readonly width: 1280;
|
|
539
|
-
readonly height: 720;
|
|
540
|
-
};
|
|
541
|
-
export declare function annotationCueIssues(narration: Slide['narration'], annotations: number): string[];
|
|
542
|
-
export declare const Deck: z.ZodObject<{
|
|
543
|
-
title: z.ZodString;
|
|
544
|
-
size: z.ZodDefault<z.ZodObject<{
|
|
545
|
-
width: z.ZodNumber;
|
|
546
|
-
height: z.ZodNumber;
|
|
547
|
-
}, z.core.$strip>>;
|
|
548
|
-
scripts: z.ZodDefault<z.ZodEnum<{
|
|
549
|
-
refuse: "refuse";
|
|
550
|
-
sandboxed: "sandboxed";
|
|
551
|
-
}>>;
|
|
552
|
-
dir: z.ZodOptional<z.ZodEnum<{
|
|
553
|
-
ltr: "ltr";
|
|
554
|
-
rtl: "rtl";
|
|
555
|
-
auto: "auto";
|
|
556
|
-
}>>;
|
|
557
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
558
|
-
transition: z.ZodOptional<z.ZodObject<{
|
|
559
|
-
kind: z.ZodEnum<{
|
|
560
|
-
none: "none";
|
|
561
|
-
fade: "fade";
|
|
562
|
-
slide: "slide";
|
|
563
|
-
}>;
|
|
564
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
565
|
-
}, z.core.$strip>>;
|
|
566
|
-
playback: z.ZodOptional<z.ZodEnum<{
|
|
567
|
-
step: "step";
|
|
568
|
-
continuous: "continuous";
|
|
569
|
-
}>>;
|
|
570
|
-
captions: z.ZodOptional<z.ZodEnum<{
|
|
571
|
-
on: "on";
|
|
572
|
-
off: "off";
|
|
573
|
-
viewer: "viewer";
|
|
574
|
-
}>>;
|
|
575
|
-
slides: z.ZodArray<z.ZodObject<{
|
|
576
|
-
id: z.ZodString;
|
|
577
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
578
|
-
kind: z.ZodLiteral<"html">;
|
|
228
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
229
|
+
frontMatter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
230
|
+
title: z.ZodOptional<z.ZodString>;
|
|
579
231
|
html: z.ZodString;
|
|
232
|
+
contents: z.ZodDefault<z.ZodBoolean>;
|
|
580
233
|
}, z.core.$strip>, z.ZodObject<{
|
|
581
|
-
kind: z.ZodLiteral<"
|
|
582
|
-
|
|
583
|
-
}, z.core.$strip
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}>>;
|
|
602
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
603
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
604
|
-
x: z.ZodNumber;
|
|
605
|
-
y: z.ZodNumber;
|
|
606
|
-
width: z.ZodNumber;
|
|
607
|
-
height: z.ZodNumber;
|
|
608
|
-
}, z.core.$strip>>;
|
|
609
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
610
|
-
center: z.ZodObject<{
|
|
611
|
-
x: z.ZodNumber;
|
|
612
|
-
y: z.ZodNumber;
|
|
613
|
-
}, z.core.$strip>;
|
|
614
|
-
number: z.ZodNumber;
|
|
615
|
-
}, z.core.$strip>>;
|
|
616
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
617
|
-
head: z.ZodObject<{
|
|
618
|
-
x: z.ZodNumber;
|
|
619
|
-
y: z.ZodNumber;
|
|
620
|
-
}, z.core.$strip>;
|
|
621
|
-
tail: z.ZodObject<{
|
|
622
|
-
x: z.ZodNumber;
|
|
623
|
-
y: z.ZodNumber;
|
|
624
|
-
}, z.core.$strip>;
|
|
625
|
-
label: z.ZodNullable<z.ZodString>;
|
|
626
|
-
}, z.core.$strip>>;
|
|
627
|
-
}, z.core.$strip>>;
|
|
628
|
-
capturedAt: z.ZodString;
|
|
629
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
630
|
-
}, z.core.$strip>;
|
|
631
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
632
|
-
kind: z.ZodLiteral<"shot-ref">;
|
|
633
|
-
href: z.ZodString;
|
|
634
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
635
|
-
kind: z.ZodLiteral<"image">;
|
|
636
|
-
src: z.ZodString;
|
|
637
|
-
alt: z.ZodString;
|
|
638
|
-
}, z.core.$strip>], "kind">;
|
|
639
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
640
|
-
narration: z.ZodOptional<z.ZodObject<{
|
|
641
|
-
text: z.ZodString;
|
|
642
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
643
|
-
dir: z.ZodOptional<z.ZodEnum<{
|
|
644
|
-
ltr: "ltr";
|
|
645
|
-
rtl: "rtl";
|
|
646
|
-
auto: "auto";
|
|
234
|
+
kind: z.ZodLiteral<"contents">;
|
|
235
|
+
title: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, z.core.$strip>]>>>;
|
|
237
|
+
chapters: z.ZodArray<z.ZodObject<{
|
|
238
|
+
title: z.ZodString;
|
|
239
|
+
html: z.ZodString;
|
|
240
|
+
runningHead: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
numbering: z.ZodDefault<z.ZodObject<{
|
|
243
|
+
frontMatter: z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
arabic: "arabic";
|
|
245
|
+
"roman-lower": "roman-lower";
|
|
246
|
+
"roman-upper": "roman-upper";
|
|
247
|
+
hebrew: "hebrew";
|
|
248
|
+
}>>;
|
|
249
|
+
body: z.ZodOptional<z.ZodEnum<{
|
|
250
|
+
arabic: "arabic";
|
|
251
|
+
"roman-lower": "roman-lower";
|
|
252
|
+
"roman-upper": "roman-upper";
|
|
253
|
+
hebrew: "hebrew";
|
|
647
254
|
}>>;
|
|
648
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
649
|
-
words: z.ZodArray<z.ZodObject<{
|
|
650
|
-
text: z.ZodString;
|
|
651
|
-
startMs: z.ZodNumber;
|
|
652
|
-
endMs: z.ZodNumber;
|
|
653
|
-
}, z.core.$strip>>;
|
|
654
|
-
durationMs: z.ZodNumber;
|
|
655
|
-
audio: z.ZodNullable<z.ZodString>;
|
|
656
|
-
live: z.ZodDefault<z.ZodBoolean>;
|
|
657
|
-
cues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
658
|
-
word: z.ZodNumber;
|
|
659
|
-
annotation: z.ZodNumber;
|
|
660
|
-
untilWord: z.ZodOptional<z.ZodNumber>;
|
|
661
|
-
}, z.core.$strip>>>;
|
|
662
255
|
}, z.core.$strip>>;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
height: z.ZodNumber;
|
|
693
|
-
}, z.core.$strip>>;
|
|
694
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
695
|
-
center: z.ZodObject<{
|
|
696
|
-
x: z.ZodNumber;
|
|
697
|
-
y: z.ZodNumber;
|
|
698
|
-
}, z.core.$strip>;
|
|
699
|
-
number: z.ZodNumber;
|
|
700
|
-
}, z.core.$strip>>;
|
|
701
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
702
|
-
head: z.ZodObject<{
|
|
703
|
-
x: z.ZodNumber;
|
|
704
|
-
y: z.ZodNumber;
|
|
705
|
-
}, z.core.$strip>;
|
|
706
|
-
tail: z.ZodObject<{
|
|
707
|
-
x: z.ZodNumber;
|
|
708
|
-
y: z.ZodNumber;
|
|
709
|
-
}, z.core.$strip>;
|
|
710
|
-
label: z.ZodNullable<z.ZodString>;
|
|
711
|
-
}, z.core.$strip>>;
|
|
256
|
+
footnotes: z.ZodDefault<z.ZodObject<{
|
|
257
|
+
marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
258
|
+
arabic: "arabic";
|
|
259
|
+
"roman-lower": "roman-lower";
|
|
260
|
+
"roman-upper": "roman-upper";
|
|
261
|
+
hebrew: "hebrew";
|
|
262
|
+
}>, z.ZodLiteral<"symbols">]>>;
|
|
263
|
+
restart: z.ZodDefault<z.ZodEnum<{
|
|
264
|
+
chapter: "chapter";
|
|
265
|
+
book: "book";
|
|
266
|
+
}>>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
endnotes: z.ZodDefault<z.ZodObject<{
|
|
269
|
+
marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
270
|
+
arabic: "arabic";
|
|
271
|
+
"roman-lower": "roman-lower";
|
|
272
|
+
"roman-upper": "roman-upper";
|
|
273
|
+
hebrew: "hebrew";
|
|
274
|
+
}>, z.ZodLiteral<"symbols">]>>;
|
|
275
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
276
|
+
chapter: "chapter";
|
|
277
|
+
book: "book";
|
|
278
|
+
}>>;
|
|
279
|
+
title: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
rectoOpenings: z.ZodDefault<z.ZodBoolean>;
|
|
282
|
+
contents: z.ZodDefault<z.ZodObject<{
|
|
283
|
+
pageNumbers: z.ZodDefault<z.ZodBoolean>;
|
|
284
|
+
depth: z.ZodDefault<z.ZodNumber>;
|
|
712
285
|
}, z.core.$strip>>;
|
|
713
|
-
capturedAt: z.ZodString;
|
|
714
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
715
286
|
}, z.core.$strip>>;
|
|
716
|
-
updatedAt: z.ZodString;
|
|
717
|
-
}, z.core.$strip>;
|
|
718
|
-
export type Manifest = z.infer<typeof Manifest>;
|
|
719
|
-
export interface DeckLimits {
|
|
720
|
-
maxSlides?: number;
|
|
721
|
-
maxSlideBytes?: number;
|
|
722
|
-
maxNotesBytes?: number;
|
|
723
|
-
}
|
|
724
|
-
export declare function exceedsLimits(deck: Deck, limits: DeckLimits): string[];
|
|
725
|
-
export declare function jsonSchemas(): {
|
|
726
287
|
page: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
727
288
|
html: z.ZodString;
|
|
728
289
|
size: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"fluid">, z.ZodObject<{
|
|
@@ -774,6 +335,13 @@ export declare function jsonSchemas(): {
|
|
|
774
335
|
marks: z.ZodDefault<z.ZodBoolean>;
|
|
775
336
|
}, z.core.$strip>>;
|
|
776
337
|
}, z.core.$strip>>;
|
|
338
|
+
lexicon: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
339
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
340
|
+
term: z.ZodString;
|
|
341
|
+
say: z.ZodString;
|
|
342
|
+
ipa: z.ZodOptional<z.ZodString>;
|
|
343
|
+
}, z.core.$strip>>;
|
|
344
|
+
}, z.core.$strip>>;
|
|
777
345
|
imposition: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
778
346
|
paper: z.ZodUnion<readonly [z.ZodEnum<{
|
|
779
347
|
letter: "letter";
|
|
@@ -865,8 +433,8 @@ export declare function jsonSchemas(): {
|
|
|
865
433
|
duration: z.ZodDefault<z.ZodNumber>;
|
|
866
434
|
}, z.core.$strip>>;
|
|
867
435
|
playback: z.ZodOptional<z.ZodEnum<{
|
|
868
|
-
step: "step";
|
|
869
436
|
continuous: "continuous";
|
|
437
|
+
step: "step";
|
|
870
438
|
}>>;
|
|
871
439
|
captions: z.ZodOptional<z.ZodEnum<{
|
|
872
440
|
on: "on";
|
|
@@ -1064,4 +632,4 @@ export declare function jsonSchemas(): {
|
|
|
1064
632
|
}, z.core.$strip>>;
|
|
1065
633
|
};
|
|
1066
634
|
//#endregion
|
|
1067
|
-
export { DEFAULT_TRANSITION_DURATION_MS, type Imposed, MARK_GAP_MM, MARK_LENGTH_MM, MAX_SLIDE_TIMING_MS, MAX_TRANSITION_DURATION_MS, MIN_TRANSITION_DURATION_MS, MM_PER_PT, type MillimeterEdges, PAPER_MM, PX_PER_MM, type PageFit, type PagePlacementKind, type PagePlacementLayout, type PaperBox, type Placement, type ShotUse, type TextDirection, Transition, TransitionInput, firstStrongDirection, fitPage, impose, languageDirection, mirrorPlacement, pagePlacementLayout, printBoxes, printPadding, printProperties, resolveDirection, roundMillimeters, sheetMm, shotsUsed, toMillimeters };
|
|
635
|
+
export { Annotation, Book, BookContents, BookFrontMatterEntry, type BookInput, BookMode, BookPage, BookSection, Box, Chapter, Cue, DECK_SIZE, DEFAULT_TRANSITION_DURATION_MS, Deck, type DeckFromSlidesOptions, type DeckInput, type DeckLimits, Direction, type Imposed, Lexicon, MARK_GAP_MM, MARK_LENGTH_MM, MAX_SLIDE_TIMING_MS, MAX_TRANSITION_DURATION_MS, MIN_TRANSITION_DURATION_MS, MM_PER_PT, Manifest, type MillimeterEdges, NAMED_PAPERS, Narration, NoteMarker, NumberSystem, PAPER_MM, PX_PER_MM, type PageFit, type PagePlacementKind, type PagePlacementLayout, Paper, type PaperBox, type Placement, Point, PronunciationEntry, PublishedShot, SHOT_KEY, Scripts, Shot, type ShotUse, Size, Slide, SlideContent, type SlideRow, type TextDirection, Transition, TransitionInput, Word, annotationCueIssues, deckFromSlides, exceedsLimits, firstStrongDirection, fitPage, formatNumber, impose, isBookContents, languageDirection, lexiconVersion, mirrorPlacement, noteMarker, noteMarkerIssues, pagePlacementLayout, printBoxes, printPadding, printProperties, resolveDirection, roundMillimeters, sheetMm, shotsUsed, toMillimeters };
|