@segnavia/format 0.4.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 +39 -9
- package/dist/book.js +28 -6
- 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/index.d.ts +13 -525
- package/dist/index.js +6 -192
- package/dist/shots-used.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Book, BookInput, BookMode, BookPage, BookSection, Chapter, noteMarkerIssues } from "./book.js";
|
|
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";
|
|
2
4
|
import { Direction, TextDirection, firstStrongDirection, languageDirection, resolveDirection } from "./direction.js";
|
|
3
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";
|
|
4
6
|
import { Imposed, MillimeterEdges, PageFit, PagePlacementKind, PagePlacementLayout, Placement, fitPage, impose, mirrorPlacement, pagePlacementLayout } from "./imposition.js";
|
|
@@ -10,11 +12,6 @@ import { MAX_SLIDE_TIMING_MS } from "./timing.js";
|
|
|
10
12
|
import { DEFAULT_TRANSITION_DURATION_MS, MAX_TRANSITION_DURATION_MS, MIN_TRANSITION_DURATION_MS, Transition, TransitionInput } from "./transition.js";
|
|
11
13
|
import { z } from "zod";
|
|
12
14
|
//#region src/index.d.ts
|
|
13
|
-
export declare const Size: z.ZodObject<{
|
|
14
|
-
width: z.ZodNumber;
|
|
15
|
-
height: z.ZodNumber;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type Size = z.infer<typeof Size>;
|
|
18
15
|
export declare const Margin: z.ZodObject<{
|
|
19
16
|
top: z.ZodDefault<z.ZodNumber>;
|
|
20
17
|
right: z.ZodDefault<z.ZodNumber>;
|
|
@@ -184,520 +181,6 @@ export declare const Page: z.ZodObject<{
|
|
|
184
181
|
}, z.core.$strip>;
|
|
185
182
|
export type Page = z.infer<typeof Page>;
|
|
186
183
|
export type PageInput = z.input<typeof Page>;
|
|
187
|
-
export declare const Box: z.ZodObject<{
|
|
188
|
-
x: z.ZodNumber;
|
|
189
|
-
y: z.ZodNumber;
|
|
190
|
-
width: z.ZodNumber;
|
|
191
|
-
height: z.ZodNumber;
|
|
192
|
-
}, z.core.$strip>;
|
|
193
|
-
export type Box = z.infer<typeof Box>;
|
|
194
|
-
export declare const Point: z.ZodObject<{
|
|
195
|
-
x: z.ZodNumber;
|
|
196
|
-
y: z.ZodNumber;
|
|
197
|
-
}, z.core.$strip>;
|
|
198
|
-
export declare const Annotation: z.ZodObject<{
|
|
199
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
200
|
-
x: z.ZodNumber;
|
|
201
|
-
y: z.ZodNumber;
|
|
202
|
-
width: z.ZodNumber;
|
|
203
|
-
height: z.ZodNumber;
|
|
204
|
-
}, z.core.$strip>>;
|
|
205
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
206
|
-
center: z.ZodObject<{
|
|
207
|
-
x: z.ZodNumber;
|
|
208
|
-
y: z.ZodNumber;
|
|
209
|
-
}, z.core.$strip>;
|
|
210
|
-
number: z.ZodNumber;
|
|
211
|
-
}, z.core.$strip>>;
|
|
212
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
213
|
-
head: z.ZodObject<{
|
|
214
|
-
x: z.ZodNumber;
|
|
215
|
-
y: z.ZodNumber;
|
|
216
|
-
}, z.core.$strip>;
|
|
217
|
-
tail: z.ZodObject<{
|
|
218
|
-
x: z.ZodNumber;
|
|
219
|
-
y: z.ZodNumber;
|
|
220
|
-
}, z.core.$strip>;
|
|
221
|
-
label: z.ZodNullable<z.ZodString>;
|
|
222
|
-
}, z.core.$strip>>;
|
|
223
|
-
}, z.core.$strip>;
|
|
224
|
-
export type Annotation = z.infer<typeof Annotation>;
|
|
225
|
-
export declare const SHOT_KEY: RegExp;
|
|
226
|
-
export declare const Shot: z.ZodObject<{
|
|
227
|
-
key: z.ZodString;
|
|
228
|
-
title: z.ZodString;
|
|
229
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
230
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
231
|
-
file: z.ZodString;
|
|
232
|
-
annotatedFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
233
|
-
size: z.ZodObject<{
|
|
234
|
-
width: z.ZodNumber;
|
|
235
|
-
height: z.ZodNumber;
|
|
236
|
-
}, z.core.$strip>;
|
|
237
|
-
scale: z.ZodNumber;
|
|
238
|
-
dir: z.ZodDefault<z.ZodEnum<{
|
|
239
|
-
ltr: "ltr";
|
|
240
|
-
rtl: "rtl";
|
|
241
|
-
}>>;
|
|
242
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
243
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
244
|
-
x: z.ZodNumber;
|
|
245
|
-
y: z.ZodNumber;
|
|
246
|
-
width: z.ZodNumber;
|
|
247
|
-
height: z.ZodNumber;
|
|
248
|
-
}, z.core.$strip>>;
|
|
249
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
250
|
-
center: z.ZodObject<{
|
|
251
|
-
x: z.ZodNumber;
|
|
252
|
-
y: z.ZodNumber;
|
|
253
|
-
}, z.core.$strip>;
|
|
254
|
-
number: z.ZodNumber;
|
|
255
|
-
}, z.core.$strip>>;
|
|
256
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
257
|
-
head: z.ZodObject<{
|
|
258
|
-
x: z.ZodNumber;
|
|
259
|
-
y: z.ZodNumber;
|
|
260
|
-
}, z.core.$strip>;
|
|
261
|
-
tail: z.ZodObject<{
|
|
262
|
-
x: z.ZodNumber;
|
|
263
|
-
y: z.ZodNumber;
|
|
264
|
-
}, z.core.$strip>;
|
|
265
|
-
label: z.ZodNullable<z.ZodString>;
|
|
266
|
-
}, z.core.$strip>>;
|
|
267
|
-
}, z.core.$strip>>;
|
|
268
|
-
capturedAt: z.ZodString;
|
|
269
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
270
|
-
}, z.core.$strip>;
|
|
271
|
-
export type Shot = z.infer<typeof Shot>;
|
|
272
|
-
export declare const PublishedShot: z.ZodObject<{
|
|
273
|
-
src: z.ZodString;
|
|
274
|
-
shot: z.ZodObject<{
|
|
275
|
-
key: z.ZodString;
|
|
276
|
-
title: z.ZodString;
|
|
277
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
278
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
279
|
-
file: z.ZodString;
|
|
280
|
-
annotatedFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
281
|
-
size: z.ZodObject<{
|
|
282
|
-
width: z.ZodNumber;
|
|
283
|
-
height: z.ZodNumber;
|
|
284
|
-
}, z.core.$strip>;
|
|
285
|
-
scale: z.ZodNumber;
|
|
286
|
-
dir: z.ZodDefault<z.ZodEnum<{
|
|
287
|
-
ltr: "ltr";
|
|
288
|
-
rtl: "rtl";
|
|
289
|
-
}>>;
|
|
290
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
291
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
292
|
-
x: z.ZodNumber;
|
|
293
|
-
y: z.ZodNumber;
|
|
294
|
-
width: z.ZodNumber;
|
|
295
|
-
height: z.ZodNumber;
|
|
296
|
-
}, z.core.$strip>>;
|
|
297
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
298
|
-
center: z.ZodObject<{
|
|
299
|
-
x: z.ZodNumber;
|
|
300
|
-
y: z.ZodNumber;
|
|
301
|
-
}, z.core.$strip>;
|
|
302
|
-
number: z.ZodNumber;
|
|
303
|
-
}, z.core.$strip>>;
|
|
304
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
305
|
-
head: z.ZodObject<{
|
|
306
|
-
x: z.ZodNumber;
|
|
307
|
-
y: z.ZodNumber;
|
|
308
|
-
}, z.core.$strip>;
|
|
309
|
-
tail: z.ZodObject<{
|
|
310
|
-
x: z.ZodNumber;
|
|
311
|
-
y: z.ZodNumber;
|
|
312
|
-
}, z.core.$strip>;
|
|
313
|
-
label: z.ZodNullable<z.ZodString>;
|
|
314
|
-
}, z.core.$strip>>;
|
|
315
|
-
}, z.core.$strip>>;
|
|
316
|
-
capturedAt: z.ZodString;
|
|
317
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
318
|
-
}, z.core.$strip>;
|
|
319
|
-
}, z.core.$strip>;
|
|
320
|
-
export type PublishedShot = z.infer<typeof PublishedShot>;
|
|
321
|
-
export declare const Word: z.ZodObject<{
|
|
322
|
-
text: z.ZodString;
|
|
323
|
-
startMs: z.ZodNumber;
|
|
324
|
-
endMs: z.ZodNumber;
|
|
325
|
-
}, z.core.$strip>;
|
|
326
|
-
export type Word = z.infer<typeof Word>;
|
|
327
|
-
export declare const Cue: z.ZodObject<{
|
|
328
|
-
word: z.ZodNumber;
|
|
329
|
-
annotation: z.ZodNumber;
|
|
330
|
-
untilWord: z.ZodOptional<z.ZodNumber>;
|
|
331
|
-
}, z.core.$strip>;
|
|
332
|
-
export type Cue = z.infer<typeof Cue>;
|
|
333
|
-
export declare const Narration: z.ZodObject<{
|
|
334
|
-
text: z.ZodString;
|
|
335
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
336
|
-
dir: z.ZodOptional<z.ZodEnum<{
|
|
337
|
-
ltr: "ltr";
|
|
338
|
-
rtl: "rtl";
|
|
339
|
-
auto: "auto";
|
|
340
|
-
}>>;
|
|
341
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
342
|
-
words: z.ZodArray<z.ZodObject<{
|
|
343
|
-
text: z.ZodString;
|
|
344
|
-
startMs: z.ZodNumber;
|
|
345
|
-
endMs: z.ZodNumber;
|
|
346
|
-
}, z.core.$strip>>;
|
|
347
|
-
durationMs: z.ZodNumber;
|
|
348
|
-
audio: z.ZodNullable<z.ZodString>;
|
|
349
|
-
live: z.ZodDefault<z.ZodBoolean>;
|
|
350
|
-
cues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
351
|
-
word: z.ZodNumber;
|
|
352
|
-
annotation: z.ZodNumber;
|
|
353
|
-
untilWord: z.ZodOptional<z.ZodNumber>;
|
|
354
|
-
}, z.core.$strip>>>;
|
|
355
|
-
}, z.core.$strip>;
|
|
356
|
-
export type Narration = z.infer<typeof Narration>;
|
|
357
|
-
export declare const SlideContent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
358
|
-
kind: z.ZodLiteral<"html">;
|
|
359
|
-
html: z.ZodString;
|
|
360
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
361
|
-
kind: z.ZodLiteral<"url">;
|
|
362
|
-
src: z.ZodString;
|
|
363
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
-
kind: z.ZodLiteral<"shot">;
|
|
365
|
-
src: z.ZodString;
|
|
366
|
-
shot: z.ZodObject<{
|
|
367
|
-
key: z.ZodString;
|
|
368
|
-
title: z.ZodString;
|
|
369
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
370
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
371
|
-
file: z.ZodString;
|
|
372
|
-
annotatedFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
373
|
-
size: z.ZodObject<{
|
|
374
|
-
width: z.ZodNumber;
|
|
375
|
-
height: z.ZodNumber;
|
|
376
|
-
}, z.core.$strip>;
|
|
377
|
-
scale: z.ZodNumber;
|
|
378
|
-
dir: z.ZodDefault<z.ZodEnum<{
|
|
379
|
-
ltr: "ltr";
|
|
380
|
-
rtl: "rtl";
|
|
381
|
-
}>>;
|
|
382
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
383
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
384
|
-
x: z.ZodNumber;
|
|
385
|
-
y: z.ZodNumber;
|
|
386
|
-
width: z.ZodNumber;
|
|
387
|
-
height: z.ZodNumber;
|
|
388
|
-
}, z.core.$strip>>;
|
|
389
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
390
|
-
center: z.ZodObject<{
|
|
391
|
-
x: z.ZodNumber;
|
|
392
|
-
y: z.ZodNumber;
|
|
393
|
-
}, z.core.$strip>;
|
|
394
|
-
number: z.ZodNumber;
|
|
395
|
-
}, z.core.$strip>>;
|
|
396
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
397
|
-
head: z.ZodObject<{
|
|
398
|
-
x: z.ZodNumber;
|
|
399
|
-
y: z.ZodNumber;
|
|
400
|
-
}, z.core.$strip>;
|
|
401
|
-
tail: z.ZodObject<{
|
|
402
|
-
x: z.ZodNumber;
|
|
403
|
-
y: z.ZodNumber;
|
|
404
|
-
}, z.core.$strip>;
|
|
405
|
-
label: z.ZodNullable<z.ZodString>;
|
|
406
|
-
}, z.core.$strip>>;
|
|
407
|
-
}, z.core.$strip>>;
|
|
408
|
-
capturedAt: z.ZodString;
|
|
409
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
410
|
-
}, z.core.$strip>;
|
|
411
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
412
|
-
kind: z.ZodLiteral<"shot-ref">;
|
|
413
|
-
href: z.ZodString;
|
|
414
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
415
|
-
kind: z.ZodLiteral<"image">;
|
|
416
|
-
src: z.ZodString;
|
|
417
|
-
alt: z.ZodString;
|
|
418
|
-
}, z.core.$strip>], "kind">;
|
|
419
|
-
export type SlideContent = z.infer<typeof SlideContent>;
|
|
420
|
-
export declare const Slide: z.ZodObject<{
|
|
421
|
-
id: z.ZodString;
|
|
422
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
423
|
-
kind: z.ZodLiteral<"html">;
|
|
424
|
-
html: z.ZodString;
|
|
425
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
426
|
-
kind: z.ZodLiteral<"url">;
|
|
427
|
-
src: z.ZodString;
|
|
428
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
429
|
-
kind: z.ZodLiteral<"shot">;
|
|
430
|
-
src: z.ZodString;
|
|
431
|
-
shot: z.ZodObject<{
|
|
432
|
-
key: z.ZodString;
|
|
433
|
-
title: z.ZodString;
|
|
434
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
435
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
436
|
-
file: z.ZodString;
|
|
437
|
-
annotatedFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
438
|
-
size: z.ZodObject<{
|
|
439
|
-
width: z.ZodNumber;
|
|
440
|
-
height: z.ZodNumber;
|
|
441
|
-
}, z.core.$strip>;
|
|
442
|
-
scale: z.ZodNumber;
|
|
443
|
-
dir: z.ZodDefault<z.ZodEnum<{
|
|
444
|
-
ltr: "ltr";
|
|
445
|
-
rtl: "rtl";
|
|
446
|
-
}>>;
|
|
447
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
448
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
449
|
-
x: z.ZodNumber;
|
|
450
|
-
y: z.ZodNumber;
|
|
451
|
-
width: z.ZodNumber;
|
|
452
|
-
height: z.ZodNumber;
|
|
453
|
-
}, z.core.$strip>>;
|
|
454
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
455
|
-
center: z.ZodObject<{
|
|
456
|
-
x: z.ZodNumber;
|
|
457
|
-
y: z.ZodNumber;
|
|
458
|
-
}, z.core.$strip>;
|
|
459
|
-
number: z.ZodNumber;
|
|
460
|
-
}, z.core.$strip>>;
|
|
461
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
462
|
-
head: z.ZodObject<{
|
|
463
|
-
x: z.ZodNumber;
|
|
464
|
-
y: z.ZodNumber;
|
|
465
|
-
}, z.core.$strip>;
|
|
466
|
-
tail: z.ZodObject<{
|
|
467
|
-
x: z.ZodNumber;
|
|
468
|
-
y: z.ZodNumber;
|
|
469
|
-
}, z.core.$strip>;
|
|
470
|
-
label: z.ZodNullable<z.ZodString>;
|
|
471
|
-
}, z.core.$strip>>;
|
|
472
|
-
}, z.core.$strip>>;
|
|
473
|
-
capturedAt: z.ZodString;
|
|
474
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
475
|
-
}, z.core.$strip>;
|
|
476
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
477
|
-
kind: z.ZodLiteral<"shot-ref">;
|
|
478
|
-
href: z.ZodString;
|
|
479
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
480
|
-
kind: z.ZodLiteral<"image">;
|
|
481
|
-
src: z.ZodString;
|
|
482
|
-
alt: z.ZodString;
|
|
483
|
-
}, z.core.$strip>], "kind">;
|
|
484
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
485
|
-
narration: z.ZodOptional<z.ZodObject<{
|
|
486
|
-
text: z.ZodString;
|
|
487
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
488
|
-
dir: z.ZodOptional<z.ZodEnum<{
|
|
489
|
-
ltr: "ltr";
|
|
490
|
-
rtl: "rtl";
|
|
491
|
-
auto: "auto";
|
|
492
|
-
}>>;
|
|
493
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
494
|
-
words: z.ZodArray<z.ZodObject<{
|
|
495
|
-
text: z.ZodString;
|
|
496
|
-
startMs: z.ZodNumber;
|
|
497
|
-
endMs: z.ZodNumber;
|
|
498
|
-
}, z.core.$strip>>;
|
|
499
|
-
durationMs: z.ZodNumber;
|
|
500
|
-
audio: z.ZodNullable<z.ZodString>;
|
|
501
|
-
live: z.ZodDefault<z.ZodBoolean>;
|
|
502
|
-
cues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
503
|
-
word: z.ZodNumber;
|
|
504
|
-
annotation: z.ZodNumber;
|
|
505
|
-
untilWord: z.ZodOptional<z.ZodNumber>;
|
|
506
|
-
}, z.core.$strip>>>;
|
|
507
|
-
}, z.core.$strip>>;
|
|
508
|
-
beforeMs: z.ZodOptional<z.ZodNumber>;
|
|
509
|
-
afterMs: z.ZodOptional<z.ZodNumber>;
|
|
510
|
-
holdMs: z.ZodOptional<z.ZodNumber>;
|
|
511
|
-
}, z.core.$strip>;
|
|
512
|
-
export type Slide = z.infer<typeof Slide>;
|
|
513
|
-
export declare const DECK_SIZE: {
|
|
514
|
-
readonly width: 1280;
|
|
515
|
-
readonly height: 720;
|
|
516
|
-
};
|
|
517
|
-
export declare function annotationCueIssues(narration: Slide['narration'], annotations: number): string[];
|
|
518
|
-
export declare const Deck: z.ZodObject<{
|
|
519
|
-
title: z.ZodString;
|
|
520
|
-
size: z.ZodDefault<z.ZodObject<{
|
|
521
|
-
width: z.ZodNumber;
|
|
522
|
-
height: z.ZodNumber;
|
|
523
|
-
}, z.core.$strip>>;
|
|
524
|
-
scripts: z.ZodDefault<z.ZodEnum<{
|
|
525
|
-
refuse: "refuse";
|
|
526
|
-
sandboxed: "sandboxed";
|
|
527
|
-
}>>;
|
|
528
|
-
dir: z.ZodOptional<z.ZodEnum<{
|
|
529
|
-
ltr: "ltr";
|
|
530
|
-
rtl: "rtl";
|
|
531
|
-
auto: "auto";
|
|
532
|
-
}>>;
|
|
533
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
534
|
-
transition: z.ZodOptional<z.ZodObject<{
|
|
535
|
-
kind: z.ZodEnum<{
|
|
536
|
-
none: "none";
|
|
537
|
-
fade: "fade";
|
|
538
|
-
slide: "slide";
|
|
539
|
-
}>;
|
|
540
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
541
|
-
}, z.core.$strip>>;
|
|
542
|
-
playback: z.ZodOptional<z.ZodEnum<{
|
|
543
|
-
step: "step";
|
|
544
|
-
continuous: "continuous";
|
|
545
|
-
}>>;
|
|
546
|
-
captions: z.ZodOptional<z.ZodEnum<{
|
|
547
|
-
on: "on";
|
|
548
|
-
off: "off";
|
|
549
|
-
viewer: "viewer";
|
|
550
|
-
}>>;
|
|
551
|
-
slides: z.ZodArray<z.ZodObject<{
|
|
552
|
-
id: z.ZodString;
|
|
553
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
554
|
-
kind: z.ZodLiteral<"html">;
|
|
555
|
-
html: z.ZodString;
|
|
556
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
557
|
-
kind: z.ZodLiteral<"url">;
|
|
558
|
-
src: z.ZodString;
|
|
559
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
560
|
-
kind: z.ZodLiteral<"shot">;
|
|
561
|
-
src: z.ZodString;
|
|
562
|
-
shot: z.ZodObject<{
|
|
563
|
-
key: z.ZodString;
|
|
564
|
-
title: z.ZodString;
|
|
565
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
566
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
567
|
-
file: z.ZodString;
|
|
568
|
-
annotatedFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
569
|
-
size: z.ZodObject<{
|
|
570
|
-
width: z.ZodNumber;
|
|
571
|
-
height: z.ZodNumber;
|
|
572
|
-
}, z.core.$strip>;
|
|
573
|
-
scale: z.ZodNumber;
|
|
574
|
-
dir: z.ZodDefault<z.ZodEnum<{
|
|
575
|
-
ltr: "ltr";
|
|
576
|
-
rtl: "rtl";
|
|
577
|
-
}>>;
|
|
578
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
579
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
580
|
-
x: z.ZodNumber;
|
|
581
|
-
y: z.ZodNumber;
|
|
582
|
-
width: z.ZodNumber;
|
|
583
|
-
height: z.ZodNumber;
|
|
584
|
-
}, z.core.$strip>>;
|
|
585
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
586
|
-
center: z.ZodObject<{
|
|
587
|
-
x: z.ZodNumber;
|
|
588
|
-
y: z.ZodNumber;
|
|
589
|
-
}, z.core.$strip>;
|
|
590
|
-
number: z.ZodNumber;
|
|
591
|
-
}, z.core.$strip>>;
|
|
592
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
593
|
-
head: z.ZodObject<{
|
|
594
|
-
x: z.ZodNumber;
|
|
595
|
-
y: z.ZodNumber;
|
|
596
|
-
}, z.core.$strip>;
|
|
597
|
-
tail: z.ZodObject<{
|
|
598
|
-
x: z.ZodNumber;
|
|
599
|
-
y: z.ZodNumber;
|
|
600
|
-
}, z.core.$strip>;
|
|
601
|
-
label: z.ZodNullable<z.ZodString>;
|
|
602
|
-
}, z.core.$strip>>;
|
|
603
|
-
}, z.core.$strip>>;
|
|
604
|
-
capturedAt: z.ZodString;
|
|
605
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
606
|
-
}, z.core.$strip>;
|
|
607
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
608
|
-
kind: z.ZodLiteral<"shot-ref">;
|
|
609
|
-
href: z.ZodString;
|
|
610
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
611
|
-
kind: z.ZodLiteral<"image">;
|
|
612
|
-
src: z.ZodString;
|
|
613
|
-
alt: z.ZodString;
|
|
614
|
-
}, z.core.$strip>], "kind">;
|
|
615
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
616
|
-
narration: z.ZodOptional<z.ZodObject<{
|
|
617
|
-
text: z.ZodString;
|
|
618
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
619
|
-
dir: z.ZodOptional<z.ZodEnum<{
|
|
620
|
-
ltr: "ltr";
|
|
621
|
-
rtl: "rtl";
|
|
622
|
-
auto: "auto";
|
|
623
|
-
}>>;
|
|
624
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
625
|
-
words: z.ZodArray<z.ZodObject<{
|
|
626
|
-
text: z.ZodString;
|
|
627
|
-
startMs: z.ZodNumber;
|
|
628
|
-
endMs: z.ZodNumber;
|
|
629
|
-
}, z.core.$strip>>;
|
|
630
|
-
durationMs: z.ZodNumber;
|
|
631
|
-
audio: z.ZodNullable<z.ZodString>;
|
|
632
|
-
live: z.ZodDefault<z.ZodBoolean>;
|
|
633
|
-
cues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
634
|
-
word: z.ZodNumber;
|
|
635
|
-
annotation: z.ZodNumber;
|
|
636
|
-
untilWord: z.ZodOptional<z.ZodNumber>;
|
|
637
|
-
}, z.core.$strip>>>;
|
|
638
|
-
}, z.core.$strip>>;
|
|
639
|
-
beforeMs: z.ZodOptional<z.ZodNumber>;
|
|
640
|
-
afterMs: z.ZodOptional<z.ZodNumber>;
|
|
641
|
-
holdMs: z.ZodOptional<z.ZodNumber>;
|
|
642
|
-
}, z.core.$strip>>;
|
|
643
|
-
}, z.core.$strip>;
|
|
644
|
-
export type Deck = z.infer<typeof Deck>;
|
|
645
|
-
export type DeckInput = z.input<typeof Deck>;
|
|
646
|
-
export declare const Manifest: z.ZodObject<{
|
|
647
|
-
shots: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
648
|
-
key: z.ZodString;
|
|
649
|
-
title: z.ZodString;
|
|
650
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
651
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
652
|
-
file: z.ZodString;
|
|
653
|
-
annotatedFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
654
|
-
size: z.ZodObject<{
|
|
655
|
-
width: z.ZodNumber;
|
|
656
|
-
height: z.ZodNumber;
|
|
657
|
-
}, z.core.$strip>;
|
|
658
|
-
scale: z.ZodNumber;
|
|
659
|
-
dir: z.ZodDefault<z.ZodEnum<{
|
|
660
|
-
ltr: "ltr";
|
|
661
|
-
rtl: "rtl";
|
|
662
|
-
}>>;
|
|
663
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
664
|
-
ring: z.ZodNullable<z.ZodObject<{
|
|
665
|
-
x: z.ZodNumber;
|
|
666
|
-
y: z.ZodNumber;
|
|
667
|
-
width: z.ZodNumber;
|
|
668
|
-
height: z.ZodNumber;
|
|
669
|
-
}, z.core.$strip>>;
|
|
670
|
-
badge: z.ZodNullable<z.ZodObject<{
|
|
671
|
-
center: z.ZodObject<{
|
|
672
|
-
x: z.ZodNumber;
|
|
673
|
-
y: z.ZodNumber;
|
|
674
|
-
}, z.core.$strip>;
|
|
675
|
-
number: z.ZodNumber;
|
|
676
|
-
}, z.core.$strip>>;
|
|
677
|
-
arrow: z.ZodNullable<z.ZodObject<{
|
|
678
|
-
head: z.ZodObject<{
|
|
679
|
-
x: z.ZodNumber;
|
|
680
|
-
y: z.ZodNumber;
|
|
681
|
-
}, z.core.$strip>;
|
|
682
|
-
tail: z.ZodObject<{
|
|
683
|
-
x: z.ZodNumber;
|
|
684
|
-
y: z.ZodNumber;
|
|
685
|
-
}, z.core.$strip>;
|
|
686
|
-
label: z.ZodNullable<z.ZodString>;
|
|
687
|
-
}, z.core.$strip>>;
|
|
688
|
-
}, z.core.$strip>>;
|
|
689
|
-
capturedAt: z.ZodString;
|
|
690
|
-
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
691
|
-
}, z.core.$strip>>;
|
|
692
|
-
updatedAt: z.ZodString;
|
|
693
|
-
}, z.core.$strip>;
|
|
694
|
-
export type Manifest = z.infer<typeof Manifest>;
|
|
695
|
-
export interface DeckLimits {
|
|
696
|
-
maxSlides?: number;
|
|
697
|
-
maxSlideBytes?: number;
|
|
698
|
-
maxNotesBytes?: number;
|
|
699
|
-
}
|
|
700
|
-
export declare function exceedsLimits(deck: Deck, limits: DeckLimits): string[];
|
|
701
184
|
export declare function jsonSchemas(): {
|
|
702
185
|
book: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
703
186
|
title: z.ZodString;
|
|
@@ -743,11 +226,14 @@ export declare function jsonSchemas(): {
|
|
|
743
226
|
auto: "auto";
|
|
744
227
|
}>>;
|
|
745
228
|
lang: z.ZodOptional<z.ZodString>;
|
|
746
|
-
frontMatter: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
229
|
+
frontMatter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
747
230
|
title: z.ZodOptional<z.ZodString>;
|
|
748
231
|
html: z.ZodString;
|
|
749
232
|
contents: z.ZodDefault<z.ZodBoolean>;
|
|
750
|
-
}, z.core.$strip
|
|
233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
+
kind: z.ZodLiteral<"contents">;
|
|
235
|
+
title: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, z.core.$strip>]>>>;
|
|
751
237
|
chapters: z.ZodArray<z.ZodObject<{
|
|
752
238
|
title: z.ZodString;
|
|
753
239
|
html: z.ZodString;
|
|
@@ -790,10 +276,12 @@ export declare function jsonSchemas(): {
|
|
|
790
276
|
chapter: "chapter";
|
|
791
277
|
book: "book";
|
|
792
278
|
}>>;
|
|
279
|
+
title: z.ZodOptional<z.ZodString>;
|
|
793
280
|
}, z.core.$strip>>;
|
|
794
|
-
|
|
281
|
+
rectoOpenings: z.ZodDefault<z.ZodBoolean>;
|
|
795
282
|
contents: z.ZodDefault<z.ZodObject<{
|
|
796
283
|
pageNumbers: z.ZodDefault<z.ZodBoolean>;
|
|
284
|
+
depth: z.ZodDefault<z.ZodNumber>;
|
|
797
285
|
}, z.core.$strip>>;
|
|
798
286
|
}, z.core.$strip>>;
|
|
799
287
|
page: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
@@ -945,8 +433,8 @@ export declare function jsonSchemas(): {
|
|
|
945
433
|
duration: z.ZodDefault<z.ZodNumber>;
|
|
946
434
|
}, z.core.$strip>>;
|
|
947
435
|
playback: z.ZodOptional<z.ZodEnum<{
|
|
948
|
-
step: "step";
|
|
949
436
|
continuous: "continuous";
|
|
437
|
+
step: "step";
|
|
950
438
|
}>>;
|
|
951
439
|
captions: z.ZodOptional<z.ZodEnum<{
|
|
952
440
|
on: "on";
|
|
@@ -1144,4 +632,4 @@ export declare function jsonSchemas(): {
|
|
|
1144
632
|
}, z.core.$strip>>;
|
|
1145
633
|
};
|
|
1146
634
|
//#endregion
|
|
1147
|
-
export { Book, type BookInput, BookMode, BookPage, BookSection, Chapter, DEFAULT_TRANSITION_DURATION_MS, 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, type MillimeterEdges, NAMED_PAPERS, NoteMarker, NumberSystem, PAPER_MM, PX_PER_MM, type PageFit, type PagePlacementKind, type PagePlacementLayout, Paper, type PaperBox, type Placement, PronunciationEntry, Scripts, type ShotUse, type TextDirection, Transition, TransitionInput, firstStrongDirection, fitPage, formatNumber, impose, languageDirection, lexiconVersion, mirrorPlacement, noteMarker, noteMarkerIssues, 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 };
|