@segnavia/format 0.6.0 → 0.8.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 +17 -0
- package/dist/book.js +10 -1
- package/dist/deck-from-slides.d.ts +8 -0
- package/dist/deck-from-slides.js +3 -1
- package/dist/deck.d.ts +77 -0
- package/dist/deck.js +18 -4
- package/dist/index.d.ts +45 -3
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/book.d.ts
CHANGED
|
@@ -61,6 +61,23 @@ export declare const BookPage: z.ZodObject<{
|
|
|
61
61
|
}, z.core.$strip>;
|
|
62
62
|
}, z.core.$strip>;
|
|
63
63
|
export type BookPage = z.infer<typeof BookPage>;
|
|
64
|
+
export declare const BookView: z.ZodObject<{
|
|
65
|
+
dir: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
ltr: "ltr";
|
|
67
|
+
rtl: "rtl";
|
|
68
|
+
auto: "auto";
|
|
69
|
+
}>>;
|
|
70
|
+
scripts: z.ZodDefault<z.ZodEnum<{
|
|
71
|
+
refuse: "refuse";
|
|
72
|
+
sandboxed: "sandboxed";
|
|
73
|
+
}>>;
|
|
74
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
75
|
+
title: z.ZodOptional<z.ZodString>;
|
|
76
|
+
html: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export type BookView = z.infer<typeof BookView>;
|
|
79
|
+
export type BookViewInput = z.input<typeof BookView>;
|
|
80
|
+
export declare function isHebrew(lang: string | undefined): boolean;
|
|
64
81
|
export declare const Book: z.ZodPipe<z.ZodObject<{
|
|
65
82
|
title: z.ZodString;
|
|
66
83
|
mode: z.ZodEnum<{
|
package/dist/book.js
CHANGED
|
@@ -64,6 +64,15 @@ const BookShape = z.object({
|
|
|
64
64
|
depth: 2
|
|
65
65
|
})
|
|
66
66
|
});
|
|
67
|
+
const BookView = BookShape.pick({
|
|
68
|
+
title: true,
|
|
69
|
+
dir: true,
|
|
70
|
+
lang: true,
|
|
71
|
+
scripts: true
|
|
72
|
+
}).extend({
|
|
73
|
+
title: BookShape.shape.title.optional(),
|
|
74
|
+
html: z.string()
|
|
75
|
+
});
|
|
67
76
|
function isHebrew(lang) {
|
|
68
77
|
const primary = lang?.split("-")[0]?.toLowerCase();
|
|
69
78
|
return primary === "he" || primary === "iw";
|
|
@@ -128,4 +137,4 @@ function noteMarkerIssues(book, used) {
|
|
|
128
137
|
return [`footnote and endnote markers are both ${book.footnotes.marker}; the two must differ when both kinds are used`];
|
|
129
138
|
}
|
|
130
139
|
//#endregion
|
|
131
|
-
export { Book, BookContents, BookFrontMatterEntry, BookMode, BookPage, BookSection, BookShape, Chapter, isBookContents, noteMarkerIssues };
|
|
140
|
+
export { Book, BookContents, BookFrontMatterEntry, BookMode, BookPage, BookSection, BookShape, BookView, Chapter, isBookContents, isHebrew, noteMarkerIssues };
|
|
@@ -18,6 +18,8 @@ export declare function deckFromSlides(rows: SlideRow[], options: DeckFromSlides
|
|
|
18
18
|
width: number;
|
|
19
19
|
height: number;
|
|
20
20
|
};
|
|
21
|
+
fit: "width" | "contain" | "cover" | "focus";
|
|
22
|
+
frame: boolean;
|
|
21
23
|
scripts: "refuse" | "sandboxed";
|
|
22
24
|
slides: {
|
|
23
25
|
id: string;
|
|
@@ -72,13 +74,19 @@ export declare function deckFromSlides(rows: SlideRow[], options: DeckFromSlides
|
|
|
72
74
|
capturedAt: string;
|
|
73
75
|
meta: Record<string, unknown>;
|
|
74
76
|
};
|
|
77
|
+
fit?: "width" | "contain" | "cover" | "focus" | undefined;
|
|
78
|
+
frame?: boolean | undefined;
|
|
75
79
|
} | {
|
|
76
80
|
kind: "shot-ref";
|
|
77
81
|
href: string;
|
|
82
|
+
fit?: "width" | "contain" | "cover" | "focus" | undefined;
|
|
83
|
+
frame?: boolean | undefined;
|
|
78
84
|
} | {
|
|
79
85
|
kind: "image";
|
|
80
86
|
src: string;
|
|
81
87
|
alt: string;
|
|
88
|
+
fit?: "width" | "contain" | "cover" | "focus" | undefined;
|
|
89
|
+
frame?: boolean | undefined;
|
|
82
90
|
};
|
|
83
91
|
notes?: string | undefined;
|
|
84
92
|
narration?: {
|
package/dist/deck-from-slides.js
CHANGED
package/dist/deck.d.ts
CHANGED
|
@@ -16,6 +16,13 @@ export declare const Point: z.ZodObject<{
|
|
|
16
16
|
x: z.ZodNumber;
|
|
17
17
|
y: z.ZodNumber;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
+
export declare const ImageFit: z.ZodEnum<{
|
|
20
|
+
width: "width";
|
|
21
|
+
contain: "contain";
|
|
22
|
+
cover: "cover";
|
|
23
|
+
focus: "focus";
|
|
24
|
+
}>;
|
|
25
|
+
export type ImageFit = z.infer<typeof ImageFit>;
|
|
19
26
|
export declare const Annotation: z.ZodObject<{
|
|
20
27
|
ring: z.ZodNullable<z.ZodObject<{
|
|
21
28
|
x: z.ZodNumber;
|
|
@@ -229,13 +236,34 @@ export declare const SlideContent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
229
236
|
capturedAt: z.ZodString;
|
|
230
237
|
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
231
238
|
}, z.core.$strip>;
|
|
239
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
240
|
+
width: "width";
|
|
241
|
+
contain: "contain";
|
|
242
|
+
cover: "cover";
|
|
243
|
+
focus: "focus";
|
|
244
|
+
}>>;
|
|
245
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
232
246
|
}, z.core.$strip>, z.ZodObject<{
|
|
233
247
|
kind: z.ZodLiteral<"shot-ref">;
|
|
234
248
|
href: z.ZodString;
|
|
249
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
250
|
+
width: "width";
|
|
251
|
+
contain: "contain";
|
|
252
|
+
cover: "cover";
|
|
253
|
+
focus: "focus";
|
|
254
|
+
}>>;
|
|
255
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
235
256
|
}, z.core.$strip>, z.ZodObject<{
|
|
236
257
|
kind: z.ZodLiteral<"image">;
|
|
237
258
|
src: z.ZodString;
|
|
238
259
|
alt: z.ZodString;
|
|
260
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
261
|
+
width: "width";
|
|
262
|
+
contain: "contain";
|
|
263
|
+
cover: "cover";
|
|
264
|
+
focus: "focus";
|
|
265
|
+
}>>;
|
|
266
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
239
267
|
}, z.core.$strip>], "kind">;
|
|
240
268
|
export type SlideContent = z.infer<typeof SlideContent>;
|
|
241
269
|
export declare const Slide: z.ZodObject<{
|
|
@@ -294,13 +322,34 @@ export declare const Slide: z.ZodObject<{
|
|
|
294
322
|
capturedAt: z.ZodString;
|
|
295
323
|
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
296
324
|
}, z.core.$strip>;
|
|
325
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
326
|
+
width: "width";
|
|
327
|
+
contain: "contain";
|
|
328
|
+
cover: "cover";
|
|
329
|
+
focus: "focus";
|
|
330
|
+
}>>;
|
|
331
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
297
332
|
}, z.core.$strip>, z.ZodObject<{
|
|
298
333
|
kind: z.ZodLiteral<"shot-ref">;
|
|
299
334
|
href: z.ZodString;
|
|
335
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
336
|
+
width: "width";
|
|
337
|
+
contain: "contain";
|
|
338
|
+
cover: "cover";
|
|
339
|
+
focus: "focus";
|
|
340
|
+
}>>;
|
|
341
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
300
342
|
}, z.core.$strip>, z.ZodObject<{
|
|
301
343
|
kind: z.ZodLiteral<"image">;
|
|
302
344
|
src: z.ZodString;
|
|
303
345
|
alt: z.ZodString;
|
|
346
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
347
|
+
width: "width";
|
|
348
|
+
contain: "contain";
|
|
349
|
+
cover: "cover";
|
|
350
|
+
focus: "focus";
|
|
351
|
+
}>>;
|
|
352
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
304
353
|
}, z.core.$strip>], "kind">;
|
|
305
354
|
notes: z.ZodOptional<z.ZodString>;
|
|
306
355
|
narration: z.ZodOptional<z.ZodObject<{
|
|
@@ -342,6 +391,13 @@ export declare const Deck: z.ZodObject<{
|
|
|
342
391
|
width: z.ZodNumber;
|
|
343
392
|
height: z.ZodNumber;
|
|
344
393
|
}, z.core.$strip>>;
|
|
394
|
+
fit: z.ZodDefault<z.ZodEnum<{
|
|
395
|
+
width: "width";
|
|
396
|
+
contain: "contain";
|
|
397
|
+
cover: "cover";
|
|
398
|
+
focus: "focus";
|
|
399
|
+
}>>;
|
|
400
|
+
frame: z.ZodDefault<z.ZodBoolean>;
|
|
345
401
|
scripts: z.ZodDefault<z.ZodEnum<{
|
|
346
402
|
refuse: "refuse";
|
|
347
403
|
sandboxed: "sandboxed";
|
|
@@ -425,13 +481,34 @@ export declare const Deck: z.ZodObject<{
|
|
|
425
481
|
capturedAt: z.ZodString;
|
|
426
482
|
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
427
483
|
}, z.core.$strip>;
|
|
484
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
485
|
+
width: "width";
|
|
486
|
+
contain: "contain";
|
|
487
|
+
cover: "cover";
|
|
488
|
+
focus: "focus";
|
|
489
|
+
}>>;
|
|
490
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
428
491
|
}, z.core.$strip>, z.ZodObject<{
|
|
429
492
|
kind: z.ZodLiteral<"shot-ref">;
|
|
430
493
|
href: z.ZodString;
|
|
494
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
495
|
+
width: "width";
|
|
496
|
+
contain: "contain";
|
|
497
|
+
cover: "cover";
|
|
498
|
+
focus: "focus";
|
|
499
|
+
}>>;
|
|
500
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
431
501
|
}, z.core.$strip>, z.ZodObject<{
|
|
432
502
|
kind: z.ZodLiteral<"image">;
|
|
433
503
|
src: z.ZodString;
|
|
434
504
|
alt: z.ZodString;
|
|
505
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
506
|
+
width: "width";
|
|
507
|
+
contain: "contain";
|
|
508
|
+
cover: "cover";
|
|
509
|
+
focus: "focus";
|
|
510
|
+
}>>;
|
|
511
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
435
512
|
}, z.core.$strip>], "kind">;
|
|
436
513
|
notes: z.ZodOptional<z.ZodString>;
|
|
437
514
|
narration: z.ZodOptional<z.ZodObject<{
|
package/dist/deck.js
CHANGED
|
@@ -18,6 +18,12 @@ const Point = z.object({
|
|
|
18
18
|
x: z.number(),
|
|
19
19
|
y: z.number()
|
|
20
20
|
});
|
|
21
|
+
const ImageFit = z.enum([
|
|
22
|
+
"contain",
|
|
23
|
+
"cover",
|
|
24
|
+
"width",
|
|
25
|
+
"focus"
|
|
26
|
+
]);
|
|
21
27
|
const Annotation = z.object({
|
|
22
28
|
ring: Box.nullable(),
|
|
23
29
|
badge: z.object({
|
|
@@ -82,16 +88,22 @@ const SlideContent = z.discriminatedUnion("kind", [
|
|
|
82
88
|
z.object({
|
|
83
89
|
kind: z.literal("shot"),
|
|
84
90
|
src: z.string(),
|
|
85
|
-
shot: Shot
|
|
91
|
+
shot: Shot,
|
|
92
|
+
fit: ImageFit.optional(),
|
|
93
|
+
frame: z.boolean().optional()
|
|
86
94
|
}),
|
|
87
95
|
z.object({
|
|
88
96
|
kind: z.literal("shot-ref"),
|
|
89
|
-
href: z.string()
|
|
97
|
+
href: z.string(),
|
|
98
|
+
fit: ImageFit.optional(),
|
|
99
|
+
frame: z.boolean().optional()
|
|
90
100
|
}),
|
|
91
101
|
z.object({
|
|
92
102
|
kind: z.literal("image"),
|
|
93
103
|
src: z.string(),
|
|
94
|
-
alt: z.string()
|
|
104
|
+
alt: z.string(),
|
|
105
|
+
fit: ImageFit.optional(),
|
|
106
|
+
frame: z.boolean().optional()
|
|
95
107
|
})
|
|
96
108
|
]);
|
|
97
109
|
const Slide = z.object({
|
|
@@ -110,6 +122,8 @@ const DECK_SIZE = {
|
|
|
110
122
|
const DeckShape = z.object({
|
|
111
123
|
title: z.string(),
|
|
112
124
|
size: Size.default(DECK_SIZE),
|
|
125
|
+
fit: ImageFit.default("contain"),
|
|
126
|
+
frame: z.boolean().default(false),
|
|
113
127
|
scripts: Scripts.default("refuse"),
|
|
114
128
|
dir: Direction.optional(),
|
|
115
129
|
lang: z.string().optional(),
|
|
@@ -193,4 +207,4 @@ function exceedsLimits(deck, limits) {
|
|
|
193
207
|
return reasons;
|
|
194
208
|
}
|
|
195
209
|
//#endregion
|
|
196
|
-
export { Annotation, Box, Cue, DECK_SIZE, Deck, DeckShape, Manifest, Narration, Point, PublishedShot, SHOT_KEY, Shot, Size, Slide, SlideContent, Word, annotationCueIssues, exceedsLimits };
|
|
210
|
+
export { Annotation, Box, Cue, DECK_SIZE, Deck, DeckShape, ImageFit, Manifest, Narration, Point, PublishedShot, SHOT_KEY, Shot, Size, Slide, SlideContent, Word, annotationCueIssues, exceedsLimits };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
|
1
|
+
import { Book, BookContents, BookFrontMatterEntry, BookInput, BookMode, BookPage, BookSection, BookView, BookViewInput, Chapter, isBookContents, isHebrew, noteMarkerIssues } from "./book.js";
|
|
2
|
+
import { Annotation, Box, Cue, DECK_SIZE, Deck, DeckInput, DeckLimits, ImageFit, Manifest, Narration, Point, PublishedShot, SHOT_KEY, Shot, Size, Slide, SlideContent, Word, annotationCueIssues, exceedsLimits } from "./deck.js";
|
|
3
3
|
import { DeckFromSlidesOptions, SlideRow, deckFromSlides } from "./deck-from-slides.js";
|
|
4
4
|
import { Direction, TextDirection, firstStrongDirection, languageDirection, resolveDirection } from "./direction.js";
|
|
5
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";
|
|
@@ -284,6 +284,20 @@ export declare function jsonSchemas(): {
|
|
|
284
284
|
depth: z.ZodDefault<z.ZodNumber>;
|
|
285
285
|
}, z.core.$strip>>;
|
|
286
286
|
}, z.core.$strip>>;
|
|
287
|
+
bookView: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
288
|
+
dir: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
ltr: "ltr";
|
|
290
|
+
rtl: "rtl";
|
|
291
|
+
auto: "auto";
|
|
292
|
+
}>>;
|
|
293
|
+
scripts: z.ZodDefault<z.ZodEnum<{
|
|
294
|
+
refuse: "refuse";
|
|
295
|
+
sandboxed: "sandboxed";
|
|
296
|
+
}>>;
|
|
297
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
298
|
+
title: z.ZodOptional<z.ZodString>;
|
|
299
|
+
html: z.ZodString;
|
|
300
|
+
}, z.core.$strip>>;
|
|
287
301
|
page: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
288
302
|
html: z.ZodString;
|
|
289
303
|
size: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"fluid">, z.ZodObject<{
|
|
@@ -414,6 +428,13 @@ export declare function jsonSchemas(): {
|
|
|
414
428
|
width: z.ZodNumber;
|
|
415
429
|
height: z.ZodNumber;
|
|
416
430
|
}, z.core.$strip>>;
|
|
431
|
+
fit: z.ZodDefault<z.ZodEnum<{
|
|
432
|
+
width: "width";
|
|
433
|
+
contain: "contain";
|
|
434
|
+
cover: "cover";
|
|
435
|
+
focus: "focus";
|
|
436
|
+
}>>;
|
|
437
|
+
frame: z.ZodDefault<z.ZodBoolean>;
|
|
417
438
|
scripts: z.ZodDefault<z.ZodEnum<{
|
|
418
439
|
refuse: "refuse";
|
|
419
440
|
sandboxed: "sandboxed";
|
|
@@ -497,13 +518,34 @@ export declare function jsonSchemas(): {
|
|
|
497
518
|
capturedAt: z.ZodString;
|
|
498
519
|
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
499
520
|
}, z.core.$strip>;
|
|
521
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
522
|
+
width: "width";
|
|
523
|
+
contain: "contain";
|
|
524
|
+
cover: "cover";
|
|
525
|
+
focus: "focus";
|
|
526
|
+
}>>;
|
|
527
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
500
528
|
}, z.core.$strip>, z.ZodObject<{
|
|
501
529
|
kind: z.ZodLiteral<"shot-ref">;
|
|
502
530
|
href: z.ZodString;
|
|
531
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
532
|
+
width: "width";
|
|
533
|
+
contain: "contain";
|
|
534
|
+
cover: "cover";
|
|
535
|
+
focus: "focus";
|
|
536
|
+
}>>;
|
|
537
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
503
538
|
}, z.core.$strip>, z.ZodObject<{
|
|
504
539
|
kind: z.ZodLiteral<"image">;
|
|
505
540
|
src: z.ZodString;
|
|
506
541
|
alt: z.ZodString;
|
|
542
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
543
|
+
width: "width";
|
|
544
|
+
contain: "contain";
|
|
545
|
+
cover: "cover";
|
|
546
|
+
focus: "focus";
|
|
547
|
+
}>>;
|
|
548
|
+
frame: z.ZodOptional<z.ZodBoolean>;
|
|
507
549
|
}, z.core.$strip>], "kind">;
|
|
508
550
|
notes: z.ZodOptional<z.ZodString>;
|
|
509
551
|
narration: z.ZodOptional<z.ZodObject<{
|
|
@@ -632,4 +674,4 @@ export declare function jsonSchemas(): {
|
|
|
632
674
|
}, z.core.$strip>>;
|
|
633
675
|
};
|
|
634
676
|
//#endregion
|
|
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 };
|
|
677
|
+
export { Annotation, Book, BookContents, BookFrontMatterEntry, type BookInput, BookMode, BookPage, BookSection, BookView, type BookViewInput, Box, Chapter, Cue, DECK_SIZE, DEFAULT_TRANSITION_DURATION_MS, Deck, type DeckFromSlidesOptions, type DeckInput, type DeckLimits, Direction, ImageFit, 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, isHebrew, languageDirection, lexiconVersion, mirrorPlacement, noteMarker, noteMarkerIssues, pagePlacementLayout, printBoxes, printPadding, printProperties, resolveDirection, roundMillimeters, sheetMm, shotsUsed, toMillimeters };
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import { Direction, firstStrongDirection, languageDirection, resolveDirection }
|
|
|
2
2
|
import { NoteMarker, NumberSystem, formatNumber, noteMarker } from "./numbering.js";
|
|
3
3
|
import { MARK_GAP_MM, MARK_LENGTH_MM, MM_PER_PT, NAMED_PAPERS, PAPER_MM, PX_PER_MM, Paper, printBoxes, printPadding, printProperties, roundMillimeters, sheetMm, toMillimeters } from "./paper.js";
|
|
4
4
|
import { Scripts } from "./scripts.js";
|
|
5
|
-
import { Book, BookContents, BookFrontMatterEntry, BookMode, BookPage, BookSection, BookShape, Chapter, isBookContents, noteMarkerIssues } from "./book.js";
|
|
5
|
+
import { Book, BookContents, BookFrontMatterEntry, BookMode, BookPage, BookSection, BookShape, BookView, Chapter, isBookContents, isHebrew, noteMarkerIssues } from "./book.js";
|
|
6
6
|
import { MAX_SLIDE_TIMING_MS } from "./timing.js";
|
|
7
7
|
import { DEFAULT_TRANSITION_DURATION_MS, MAX_TRANSITION_DURATION_MS, MIN_TRANSITION_DURATION_MS, Transition } from "./transition.js";
|
|
8
|
-
import { Annotation, Box, Cue, DECK_SIZE, Deck, DeckShape, Manifest, Narration, Point, PublishedShot, SHOT_KEY, Shot, Size, Slide, SlideContent, Word, annotationCueIssues, exceedsLimits } from "./deck.js";
|
|
8
|
+
import { Annotation, Box, Cue, DECK_SIZE, Deck, DeckShape, ImageFit, Manifest, Narration, Point, PublishedShot, SHOT_KEY, Shot, Size, Slide, SlideContent, Word, annotationCueIssues, exceedsLimits } from "./deck.js";
|
|
9
9
|
import { Lexicon, PronunciationEntry, lexiconVersion } from "./lexicon.js";
|
|
10
10
|
import { deckFromSlides } from "./deck-from-slides.js";
|
|
11
11
|
import { fitPage, impose, mirrorPlacement, pagePlacementLayout } from "./imposition.js";
|
|
@@ -141,6 +141,7 @@ const Page = z.object({
|
|
|
141
141
|
function jsonSchemas() {
|
|
142
142
|
return {
|
|
143
143
|
book: z.toJSONSchema(BookShape, { io: "input" }),
|
|
144
|
+
bookView: z.toJSONSchema(BookView, { io: "input" }),
|
|
144
145
|
page: z.toJSONSchema(Page, { io: "input" }),
|
|
145
146
|
lexicon: z.toJSONSchema(Lexicon, { io: "input" }),
|
|
146
147
|
imposition: z.toJSONSchema(Imposition, { io: "input" }),
|
|
@@ -150,4 +151,4 @@ function jsonSchemas() {
|
|
|
150
151
|
};
|
|
151
152
|
}
|
|
152
153
|
//#endregion
|
|
153
|
-
export { Annotation, Book, BookContents, BookFrontMatterEntry, BookMode, BookPage, BookSection, Box, Chapter, Cue, DECK_SIZE, DEFAULT_TRANSITION_DURATION_MS, Deck, Direction, Imposition, Lexicon, MARK_GAP_MM, MARK_LENGTH_MM, MAX_IMPOSITION_CELLS, MAX_SLIDE_TIMING_MS, MAX_TRANSITION_DURATION_MS, MIN_TRANSITION_DURATION_MS, MM_PER_PT, Manifest, Margin, NAMED_PAPERS, Narration, NoteMarker, NumberSystem, PAPER_MM, PX_PER_MM, Page, PageSize, Paper, Point, Print, PronunciationEntry, PublishedShot, SHOT_KEY, Scripts, Shot, Size, Slide, SlideContent, Transition, Word, annotationCueIssues, deckFromSlides, exceedsLimits, firstStrongDirection, fitPage, formatNumber, impose, isBookContents, jsonSchemas, languageDirection, lexiconVersion, mirrorPlacement, noteMarker, noteMarkerIssues, pagePlacementLayout, printBoxes, printPadding, printProperties, resolveDirection, roundMillimeters, sheetMm, shotsUsed, toMillimeters };
|
|
154
|
+
export { Annotation, Book, BookContents, BookFrontMatterEntry, BookMode, BookPage, BookSection, BookView, Box, Chapter, Cue, DECK_SIZE, DEFAULT_TRANSITION_DURATION_MS, Deck, Direction, ImageFit, Imposition, Lexicon, MARK_GAP_MM, MARK_LENGTH_MM, MAX_IMPOSITION_CELLS, MAX_SLIDE_TIMING_MS, MAX_TRANSITION_DURATION_MS, MIN_TRANSITION_DURATION_MS, MM_PER_PT, Manifest, Margin, NAMED_PAPERS, Narration, NoteMarker, NumberSystem, PAPER_MM, PX_PER_MM, Page, PageSize, Paper, Point, Print, PronunciationEntry, PublishedShot, SHOT_KEY, Scripts, Shot, Size, Slide, SlideContent, Transition, Word, annotationCueIssues, deckFromSlides, exceedsLimits, firstStrongDirection, fitPage, formatNumber, impose, isBookContents, isHebrew, jsonSchemas, languageDirection, lexiconVersion, mirrorPlacement, noteMarker, noteMarkerIssues, pagePlacementLayout, printBoxes, printPadding, printProperties, resolveDirection, roundMillimeters, sheetMm, shotsUsed, toMillimeters };
|