@segnavia/format 0.25.0 → 0.27.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/index.d.ts CHANGED
@@ -6,14 +6,20 @@ import { BoardListingGroup, boardListing, boardListingIsEmpty, foldForSearch, na
6
6
  import { GridDropTarget, deriveSectionCells, gridDropMarkerBox, gridDropTarget, insertIntoGrid, layoutSection, removeFromGrid } from "./board-section-grid.js";
7
7
  import { MAKE_ROOM_LIMIT, SECTION_GAP, SECTION_MIN_SIZE, SECTION_PADDING, SECTION_TITLE_ROOM } from "./board-section-constants.js";
8
8
  import { assignMembership, fitSection, fitTouchedSections, makeRoom, settleBoard } from "./board-sections.js";
9
- import { Book, BookContents, BookFrontMatterEntry, BookInput, BookMode, BookPage, BookSection, BookView, BookViewInput, Chapter, isBookContents, isHebrew, noteMarkerIssues } from "./book.js";
9
+ import { Book, BookContents, BookFrontMatterEntry, BookInput, BookMode, BookPage, BookSection, BookView, BookViewInput, Chapter, isBookContents, noteMarkerIssues } from "./book.js";
10
10
  import { DeckFromSlidesOptions, SlideRow, deckFromSlides } from "./deck-from-slides.js";
11
11
  import { Direction, TextDirection, firstStrongDirection, languageDirection, resolveDirection } from "./direction.js";
12
- import { CUSTOM_PAPER_MAX_MM, CUSTOM_PAPER_MIN_MM, MARK_GAP_MM, MARK_LENGTH_MM, MM_PER_PT, MarkSegment, NAMED_PAPERS, NamedPaper, NamedPaperMetadata, ORIENTATIONS, Orientation, PAPER_GROUPS, PAPER_METADATA, PAPER_MM, PAPER_UNITS, PX_PER_MM, Paper, PaperBox, PaperGroup, PaperUnit, PrintSetting, PrintSettingInput, fromMillimeters, paperPixels, printBoxes, printPadding, printProperties, roundMillimeters, sheetMm, toMillimeters } from "./paper.js";
12
+ import { PAPER_FIT_TOLERANCE_MM } from "./imposition-fit.js";
13
+ import { CUSTOM_PAPER_MAX_MM, CUSTOM_PAPER_MIN_MM, FOLD_DASH_OFF_MM, FOLD_DASH_ON_MM, MARK_GAP_MM, MARK_LENGTH_MM, MM_PER_PT, MarkSegment, NAMED_PAPERS, NamedPaper, NamedPaperMetadata, ORIENTATIONS, Orientation, PAPER_GROUPS, PAPER_METADATA, PAPER_MM, PAPER_UNITS, PX_PER_MM, Paper, PaperBox, PaperGroup, PaperUnit, PrintSetting, PrintSettingInput, fromMillimeters, paperPixels, printBoxes, printPadding, printProperties, roundMillimeters, sheetMm, toMillimeters } from "./paper.js";
14
+ import { FOLD_KINDS, FOLD_TUCK_IN_MM, FoldKind, foldCellPages, foldColumns, foldPageCountMessage, foldPanelMap } from "./fold.js";
15
+ import { APP_FONT_NAME, APP_FONT_NAME_MESSAGE, AppFont, FONT_FORMATS, FONT_GENERICS, FontFace, FontFormat, FontGeneric, FontReference, FontReferenceInput, FontSource, LocalFaceTransport, LocalFacesInput, LocalFacesTransport, localFontReferences } from "./fonts.js";
13
16
  import { Imposed, MillimeterEdges, PageFit, PagePlacementKind, PagePlacementLayout, Placement, fitPage, impose, mirrorPlacement, pagePlacementLayout } from "./imposition.js";
14
17
  import { ImpositionMarkEdge, ImpositionSideMarks, MIN_MARK_LENGTH_MM, OmittedImpositionMark, impositionMarks } from "./imposition-marks.js";
15
18
  import { Lexicon, PronunciationEntry, lexiconVersion } from "./lexicon.js";
16
- import { NoteMarker, NumberSystem, formatNumber, noteMarker } from "./numbering.js";
19
+ import { BOOK_FURNITURE, BookFurniture, LIBRARY_MOTIF_PREFIX, MOTIF_ATTRIBUTE, Motif, MotifField, MotifFieldInput, MotifInput, MotifPlacement, MotifSource, MotifVersion, MotifVersionChoice, MotifVersionInput, PRINTED_PAGE_CONTEXT, PRINTED_PAGE_FOLIO_PATH, PRINTED_PAGE_NUMBER_PATH, PRINTED_PAGE_RUNNING_HEAD_PATH, PRINTED_PAGE_TOTAL_PATH, chooseMotifVersion, motifFieldAttribute } from "./motif.js";
20
+ import { NoteMarker, NumberSystem, defaultPageNumbering, formatNumber, isHebrew, noteMarker } from "./numbering.js";
21
+ import { isPrintedPageIdentityImposition } from "./printed-page-imposition.js";
22
+ import { BOOK_PARENT_NAMES, PRINTED_PAGE_LIMIT, PRINTED_PAGE_ROLES, ParentPage, ParentPageMargin, PrintedPageRole, PrintedPageRules, PrintedPages, ResolvedParentPage, bookParentPages, pagePrintedPagesIssues, printedPagesIssues, resolveParentPages } from "./printed-pages.js";
17
23
  import { Scripts } from "./scripts.js";
18
24
  import { ShotUse, shotsUsed } from "./shots-used.js";
19
25
  import { MAX_SLIDE_TIMING_MS } from "./timing.js";
@@ -27,6 +33,11 @@ export declare const Margin: z.ZodObject<{
27
33
  bottom: z.ZodDefault<z.ZodNumber>;
28
34
  left: z.ZodDefault<z.ZodNumber>;
29
35
  }, z.core.$strip>;
36
+ export declare const MarkColor: z.ZodEnum<{
37
+ black: "black";
38
+ registration: "registration";
39
+ }>;
40
+ export type MarkColor = z.infer<typeof MarkColor>;
30
41
  export declare const Print: z.ZodObject<{
31
42
  paper: z.ZodUnion<readonly [z.ZodEnum<{
32
43
  letter: "letter";
@@ -78,11 +89,15 @@ export declare const Print: z.ZodObject<{
78
89
  bleed: z.ZodDefault<z.ZodNumber>;
79
90
  safe: z.ZodDefault<z.ZodNumber>;
80
91
  marks: z.ZodDefault<z.ZodBoolean>;
92
+ markColor: z.ZodDefault<z.ZodEnum<{
93
+ black: "black";
94
+ registration: "registration";
95
+ }>>;
81
96
  }, z.core.$strip>;
82
97
  export type Print = z.infer<typeof Print>;
83
98
  export type PrintInput = z.input<typeof Print>;
84
99
  export declare const MAX_IMPOSITION_CELLS = 10000;
85
- export declare const Imposition: z.ZodObject<{
100
+ export declare const Imposition: z.ZodPipe<z.ZodObject<{
86
101
  paper: z.ZodUnion<readonly [z.ZodEnum<{
87
102
  letter: "letter";
88
103
  legal: "legal";
@@ -135,10 +150,10 @@ export declare const Imposition: z.ZodObject<{
135
150
  bottom: z.ZodDefault<z.ZodNumber>;
136
151
  left: z.ZodDefault<z.ZodNumber>;
137
152
  }, z.core.$strip>>;
138
- columns: z.ZodNumber;
139
- rows: z.ZodNumber;
153
+ columns: z.ZodOptional<z.ZodNumber>;
154
+ rows: z.ZodOptional<z.ZodNumber>;
140
155
  cell: z.ZodObject<{
141
- width: z.ZodNumber;
156
+ width: z.ZodOptional<z.ZodNumber>;
142
157
  height: z.ZodNumber;
143
158
  }, z.core.$strip>;
144
159
  gap: z.ZodDefault<z.ZodObject<{
@@ -155,7 +170,7 @@ export declare const Imposition: z.ZodObject<{
155
170
  sequence: "sequence";
156
171
  repeat: "repeat";
157
172
  }>>;
158
- sides: z.ZodDefault<z.ZodEnum<{
173
+ sides: z.ZodOptional<z.ZodEnum<{
159
174
  one: "one";
160
175
  two: "two";
161
176
  }>>;
@@ -169,8 +184,98 @@ export declare const Imposition: z.ZodObject<{
169
184
  rtl: "rtl";
170
185
  }>>;
171
186
  marks: z.ZodDefault<z.ZodBoolean>;
187
+ markColor: z.ZodDefault<z.ZodEnum<{
188
+ black: "black";
189
+ registration: "registration";
190
+ }>>;
172
191
  cornerMarks: z.ZodDefault<z.ZodBoolean>;
173
- }, z.core.$strip>;
192
+ fold: z.ZodOptional<z.ZodEnum<{
193
+ custom: "custom";
194
+ letter: "letter";
195
+ half: "half";
196
+ z: "z";
197
+ gate: "gate";
198
+ }>>;
199
+ panels: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
200
+ }, z.core.$strip>, z.ZodTransform<{
201
+ paper: "letter" | "legal" | "tabloid" | "a3" | "a4" | "a5" | "business-card-us" | "business-card-eu" | "business-card-square-us" | "business-card-slim-us" | "postcard-4x6" | "postcard-5x7" | "postcard-6x9" | "postcard-6x11" | "card-square-4in" | "half-letter" | "a6" | "dl" | "rack-card-4x9" | "rack-card-3.5x8.5" | "poster-12x18" | "poster-16x20" | "poster-18x24" | "poster-24x36" | "a2" | "a1" | "a0" | {
202
+ width: number;
203
+ height: number;
204
+ unit: "mm" | "in" | "pt";
205
+ };
206
+ orientation: "portrait" | "landscape";
207
+ unit: "mm" | "in" | "pt";
208
+ margin: {
209
+ top: number;
210
+ right: number;
211
+ bottom: number;
212
+ left: number;
213
+ };
214
+ cell: {
215
+ height: number;
216
+ width?: number | undefined;
217
+ };
218
+ gap: {
219
+ column: number;
220
+ row: number;
221
+ };
222
+ bleed: number;
223
+ safe: number;
224
+ fit: "contain" | "cover";
225
+ fill: "sequence" | "repeat";
226
+ flip: "long" | "short";
227
+ skip: number;
228
+ dir: "ltr" | "rtl";
229
+ marks: boolean;
230
+ markColor: "black" | "registration";
231
+ cornerMarks: boolean;
232
+ columns?: number | undefined;
233
+ rows?: number | undefined;
234
+ sides?: "one" | "two" | undefined;
235
+ fold?: "custom" | "letter" | "half" | "z" | "gate" | undefined;
236
+ panels?: number[] | undefined;
237
+ } & {
238
+ columns: number;
239
+ rows: number;
240
+ sides: "one" | "two";
241
+ }, {
242
+ paper: "letter" | "legal" | "tabloid" | "a3" | "a4" | "a5" | "business-card-us" | "business-card-eu" | "business-card-square-us" | "business-card-slim-us" | "postcard-4x6" | "postcard-5x7" | "postcard-6x9" | "postcard-6x11" | "card-square-4in" | "half-letter" | "a6" | "dl" | "rack-card-4x9" | "rack-card-3.5x8.5" | "poster-12x18" | "poster-16x20" | "poster-18x24" | "poster-24x36" | "a2" | "a1" | "a0" | {
243
+ width: number;
244
+ height: number;
245
+ unit: "mm" | "in" | "pt";
246
+ };
247
+ orientation: "portrait" | "landscape";
248
+ unit: "mm" | "in" | "pt";
249
+ margin: {
250
+ top: number;
251
+ right: number;
252
+ bottom: number;
253
+ left: number;
254
+ };
255
+ cell: {
256
+ height: number;
257
+ width?: number | undefined;
258
+ };
259
+ gap: {
260
+ column: number;
261
+ row: number;
262
+ };
263
+ bleed: number;
264
+ safe: number;
265
+ fit: "contain" | "cover";
266
+ fill: "sequence" | "repeat";
267
+ flip: "long" | "short";
268
+ skip: number;
269
+ dir: "ltr" | "rtl";
270
+ marks: boolean;
271
+ markColor: "black" | "registration";
272
+ cornerMarks: boolean;
273
+ columns?: number | undefined;
274
+ rows?: number | undefined;
275
+ sides?: "one" | "two" | undefined;
276
+ fold?: "custom" | "letter" | "half" | "z" | "gate" | undefined;
277
+ panels?: number[] | undefined;
278
+ }>>;
174
279
  export type Imposition = z.infer<typeof Imposition>;
175
280
  export type ImpositionInput = z.input<typeof Imposition>;
176
281
  export declare const PageSize: z.ZodUnion<readonly [z.ZodLiteral<"fluid">, z.ZodObject<{
@@ -252,6 +357,50 @@ export declare const Page: z.ZodObject<{
252
357
  bleed: z.ZodDefault<z.ZodNumber>;
253
358
  safe: z.ZodDefault<z.ZodNumber>;
254
359
  marks: z.ZodDefault<z.ZodBoolean>;
360
+ markColor: z.ZodDefault<z.ZodEnum<{
361
+ black: "black";
362
+ registration: "registration";
363
+ }>>;
364
+ }, z.core.$strip>>;
365
+ printedPages: z.ZodOptional<z.ZodObject<{
366
+ parents: z.ZodArray<z.ZodObject<{
367
+ name: z.ZodString;
368
+ basedOn: z.ZodOptional<z.ZodString>;
369
+ margin: z.ZodOptional<z.ZodObject<{
370
+ top: z.ZodNumber;
371
+ bottom: z.ZodNumber;
372
+ inner: z.ZodNumber;
373
+ outer: z.ZodNumber;
374
+ }, z.core.$strip>>;
375
+ head: z.ZodOptional<z.ZodString>;
376
+ foot: z.ZodOptional<z.ZodString>;
377
+ }, z.core.$strip>>;
378
+ rules: z.ZodPipe<z.ZodObject<{
379
+ every: z.ZodString;
380
+ first: z.ZodOptional<z.ZodString>;
381
+ recto: z.ZodOptional<z.ZodString>;
382
+ verso: z.ZodOptional<z.ZodString>;
383
+ last: z.ZodOptional<z.ZodString>;
384
+ }, z.core.$loose>, z.ZodTransform<{
385
+ last?: string | undefined;
386
+ verso?: string | undefined;
387
+ recto?: string | undefined;
388
+ first?: string | undefined;
389
+ every: string;
390
+ }, {
391
+ [x: string]: unknown;
392
+ every: string;
393
+ first?: string | undefined;
394
+ recto?: string | undefined;
395
+ verso?: string | undefined;
396
+ last?: string | undefined;
397
+ }>>;
398
+ numbering: z.ZodOptional<z.ZodEnum<{
399
+ arabic: "arabic";
400
+ "roman-lower": "roman-lower";
401
+ "roman-upper": "roman-upper";
402
+ hebrew: "hebrew";
403
+ }>>;
255
404
  }, z.core.$strip>>;
256
405
  slots: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
257
406
  key: z.ZodString;
@@ -290,6 +439,12 @@ export declare const Page: z.ZodObject<{
290
439
  placeholder?: string | undefined;
291
440
  minSize?: number | undefined;
292
441
  }>>>>;
442
+ fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
443
+ app: z.ZodString;
444
+ }, z.core.$strip>, z.ZodObject<{
445
+ local: z.ZodString;
446
+ fallback: z.ZodString;
447
+ }, z.core.$strip>]>>>;
293
448
  }, z.core.$strip>;
294
449
  export type Page = z.infer<typeof Page>;
295
450
  export type PageInput = z.input<typeof Page>;
@@ -372,6 +527,12 @@ export declare function jsonSchemas(): {
372
527
  html: z.ZodString;
373
528
  runningHead: z.ZodOptional<z.ZodString>;
374
529
  }, z.core.$strip>>;
530
+ fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
531
+ app: z.ZodString;
532
+ }, z.core.$strip>, z.ZodObject<{
533
+ local: z.ZodString;
534
+ fallback: z.ZodString;
535
+ }, z.core.$strip>]>>>;
375
536
  numbering: z.ZodDefault<z.ZodObject<{
376
537
  frontMatter: z.ZodOptional<z.ZodEnum<{
377
538
  arabic: "arabic";
@@ -428,6 +589,12 @@ export declare function jsonSchemas(): {
428
589
  sandboxed: "sandboxed";
429
590
  }>>;
430
591
  lang: z.ZodOptional<z.ZodString>;
592
+ fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
593
+ app: z.ZodString;
594
+ }, z.core.$strip>, z.ZodObject<{
595
+ local: z.ZodString;
596
+ fallback: z.ZodString;
597
+ }, z.core.$strip>]>>>;
431
598
  title: z.ZodOptional<z.ZodString>;
432
599
  html: z.ZodString;
433
600
  }, z.core.$strip>>;
@@ -502,6 +669,50 @@ export declare function jsonSchemas(): {
502
669
  bleed: z.ZodDefault<z.ZodNumber>;
503
670
  safe: z.ZodDefault<z.ZodNumber>;
504
671
  marks: z.ZodDefault<z.ZodBoolean>;
672
+ markColor: z.ZodDefault<z.ZodEnum<{
673
+ black: "black";
674
+ registration: "registration";
675
+ }>>;
676
+ }, z.core.$strip>>;
677
+ printedPages: z.ZodOptional<z.ZodObject<{
678
+ parents: z.ZodArray<z.ZodObject<{
679
+ name: z.ZodString;
680
+ basedOn: z.ZodOptional<z.ZodString>;
681
+ margin: z.ZodOptional<z.ZodObject<{
682
+ top: z.ZodNumber;
683
+ bottom: z.ZodNumber;
684
+ inner: z.ZodNumber;
685
+ outer: z.ZodNumber;
686
+ }, z.core.$strip>>;
687
+ head: z.ZodOptional<z.ZodString>;
688
+ foot: z.ZodOptional<z.ZodString>;
689
+ }, z.core.$strip>>;
690
+ rules: z.ZodPipe<z.ZodObject<{
691
+ every: z.ZodString;
692
+ first: z.ZodOptional<z.ZodString>;
693
+ recto: z.ZodOptional<z.ZodString>;
694
+ verso: z.ZodOptional<z.ZodString>;
695
+ last: z.ZodOptional<z.ZodString>;
696
+ }, z.core.$loose>, z.ZodTransform<{
697
+ last?: string | undefined;
698
+ verso?: string | undefined;
699
+ recto?: string | undefined;
700
+ first?: string | undefined;
701
+ every: string;
702
+ }, {
703
+ [x: string]: unknown;
704
+ every: string;
705
+ first?: string | undefined;
706
+ recto?: string | undefined;
707
+ verso?: string | undefined;
708
+ last?: string | undefined;
709
+ }>>;
710
+ numbering: z.ZodOptional<z.ZodEnum<{
711
+ arabic: "arabic";
712
+ "roman-lower": "roman-lower";
713
+ "roman-upper": "roman-upper";
714
+ hebrew: "hebrew";
715
+ }>>;
505
716
  }, z.core.$strip>>;
506
717
  slots: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
507
718
  key: z.ZodString;
@@ -540,6 +751,12 @@ export declare function jsonSchemas(): {
540
751
  placeholder?: string | undefined;
541
752
  minSize?: number | undefined;
542
753
  }>>>>;
754
+ fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
755
+ app: z.ZodString;
756
+ }, z.core.$strip>, z.ZodObject<{
757
+ local: z.ZodString;
758
+ fallback: z.ZodString;
759
+ }, z.core.$strip>]>>>;
543
760
  }, z.core.$strip>>;
544
761
  lexicon: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
545
762
  entries: z.ZodArray<z.ZodObject<{
@@ -548,7 +765,7 @@ export declare function jsonSchemas(): {
548
765
  ipa: z.ZodOptional<z.ZodString>;
549
766
  }, z.core.$strip>>;
550
767
  }, z.core.$strip>>;
551
- imposition: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
768
+ imposition: z.core.ZodStandardJSONSchemaPayload<z.ZodPipe<z.ZodObject<{
552
769
  paper: z.ZodUnion<readonly [z.ZodEnum<{
553
770
  letter: "letter";
554
771
  legal: "legal";
@@ -601,10 +818,10 @@ export declare function jsonSchemas(): {
601
818
  bottom: z.ZodDefault<z.ZodNumber>;
602
819
  left: z.ZodDefault<z.ZodNumber>;
603
820
  }, z.core.$strip>>;
604
- columns: z.ZodNumber;
605
- rows: z.ZodNumber;
821
+ columns: z.ZodOptional<z.ZodNumber>;
822
+ rows: z.ZodOptional<z.ZodNumber>;
606
823
  cell: z.ZodObject<{
607
- width: z.ZodNumber;
824
+ width: z.ZodOptional<z.ZodNumber>;
608
825
  height: z.ZodNumber;
609
826
  }, z.core.$strip>;
610
827
  gap: z.ZodDefault<z.ZodObject<{
@@ -621,7 +838,7 @@ export declare function jsonSchemas(): {
621
838
  sequence: "sequence";
622
839
  repeat: "repeat";
623
840
  }>>;
624
- sides: z.ZodDefault<z.ZodEnum<{
841
+ sides: z.ZodOptional<z.ZodEnum<{
625
842
  one: "one";
626
843
  two: "two";
627
844
  }>>;
@@ -635,8 +852,98 @@ export declare function jsonSchemas(): {
635
852
  rtl: "rtl";
636
853
  }>>;
637
854
  marks: z.ZodDefault<z.ZodBoolean>;
855
+ markColor: z.ZodDefault<z.ZodEnum<{
856
+ black: "black";
857
+ registration: "registration";
858
+ }>>;
638
859
  cornerMarks: z.ZodDefault<z.ZodBoolean>;
639
- }, z.core.$strip>>;
860
+ fold: z.ZodOptional<z.ZodEnum<{
861
+ custom: "custom";
862
+ letter: "letter";
863
+ half: "half";
864
+ z: "z";
865
+ gate: "gate";
866
+ }>>;
867
+ panels: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
868
+ }, z.core.$strip>, z.ZodTransform<{
869
+ paper: "letter" | "legal" | "tabloid" | "a3" | "a4" | "a5" | "business-card-us" | "business-card-eu" | "business-card-square-us" | "business-card-slim-us" | "postcard-4x6" | "postcard-5x7" | "postcard-6x9" | "postcard-6x11" | "card-square-4in" | "half-letter" | "a6" | "dl" | "rack-card-4x9" | "rack-card-3.5x8.5" | "poster-12x18" | "poster-16x20" | "poster-18x24" | "poster-24x36" | "a2" | "a1" | "a0" | {
870
+ width: number;
871
+ height: number;
872
+ unit: "mm" | "in" | "pt";
873
+ };
874
+ orientation: "portrait" | "landscape";
875
+ unit: "mm" | "in" | "pt";
876
+ margin: {
877
+ top: number;
878
+ right: number;
879
+ bottom: number;
880
+ left: number;
881
+ };
882
+ cell: {
883
+ height: number;
884
+ width?: number | undefined;
885
+ };
886
+ gap: {
887
+ column: number;
888
+ row: number;
889
+ };
890
+ bleed: number;
891
+ safe: number;
892
+ fit: "contain" | "cover";
893
+ fill: "sequence" | "repeat";
894
+ flip: "long" | "short";
895
+ skip: number;
896
+ dir: "ltr" | "rtl";
897
+ marks: boolean;
898
+ markColor: "black" | "registration";
899
+ cornerMarks: boolean;
900
+ columns?: number | undefined;
901
+ rows?: number | undefined;
902
+ sides?: "one" | "two" | undefined;
903
+ fold?: "custom" | "letter" | "half" | "z" | "gate" | undefined;
904
+ panels?: number[] | undefined;
905
+ } & {
906
+ columns: number;
907
+ rows: number;
908
+ sides: "one" | "two";
909
+ }, {
910
+ paper: "letter" | "legal" | "tabloid" | "a3" | "a4" | "a5" | "business-card-us" | "business-card-eu" | "business-card-square-us" | "business-card-slim-us" | "postcard-4x6" | "postcard-5x7" | "postcard-6x9" | "postcard-6x11" | "card-square-4in" | "half-letter" | "a6" | "dl" | "rack-card-4x9" | "rack-card-3.5x8.5" | "poster-12x18" | "poster-16x20" | "poster-18x24" | "poster-24x36" | "a2" | "a1" | "a0" | {
911
+ width: number;
912
+ height: number;
913
+ unit: "mm" | "in" | "pt";
914
+ };
915
+ orientation: "portrait" | "landscape";
916
+ unit: "mm" | "in" | "pt";
917
+ margin: {
918
+ top: number;
919
+ right: number;
920
+ bottom: number;
921
+ left: number;
922
+ };
923
+ cell: {
924
+ height: number;
925
+ width?: number | undefined;
926
+ };
927
+ gap: {
928
+ column: number;
929
+ row: number;
930
+ };
931
+ bleed: number;
932
+ safe: number;
933
+ fit: "contain" | "cover";
934
+ fill: "sequence" | "repeat";
935
+ flip: "long" | "short";
936
+ skip: number;
937
+ dir: "ltr" | "rtl";
938
+ marks: boolean;
939
+ markColor: "black" | "registration";
940
+ cornerMarks: boolean;
941
+ columns?: number | undefined;
942
+ rows?: number | undefined;
943
+ sides?: "one" | "two" | undefined;
944
+ fold?: "custom" | "letter" | "half" | "z" | "gate" | undefined;
945
+ panels?: number[] | undefined;
946
+ }>>>;
640
947
  deck: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
641
948
  title: z.ZodString;
642
949
  size: z.ZodDefault<z.ZodObject<{
@@ -1137,6 +1444,102 @@ export declare function jsonSchemas(): {
1137
1444
  placeholder?: string | undefined;
1138
1445
  minSize?: number | undefined;
1139
1446
  }>>>;
1447
+ fontReference: z.core.ZodStandardJSONSchemaPayload<z.ZodUnion<readonly [z.ZodObject<{
1448
+ app: z.ZodString;
1449
+ }, z.core.$strip>, z.ZodObject<{
1450
+ local: z.ZodString;
1451
+ fallback: z.ZodString;
1452
+ }, z.core.$strip>]>>;
1453
+ fontReferenceInput: z.core.ZodStandardJSONSchemaPayload<z.ZodUnion<readonly [z.ZodObject<{
1454
+ app: z.ZodString;
1455
+ }, z.core.$strict>, z.ZodObject<{
1456
+ local: z.ZodString;
1457
+ fallback: z.ZodString;
1458
+ }, z.core.$strict>]>>;
1459
+ localFaceTransport: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
1460
+ family: z.ZodString;
1461
+ format: z.ZodEnum<{
1462
+ woff2: "woff2";
1463
+ woff: "woff";
1464
+ truetype: "truetype";
1465
+ opentype: "opentype";
1466
+ }>;
1467
+ weight: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1468
+ style: z.ZodOptional<z.ZodEnum<{
1469
+ normal: "normal";
1470
+ italic: "italic";
1471
+ }>>;
1472
+ data: z.ZodString;
1473
+ }, z.core.$strict>>;
1474
+ localFacesTransport: z.core.ZodStandardJSONSchemaPayload<z.ZodArray<z.ZodObject<{
1475
+ family: z.ZodString;
1476
+ format: z.ZodEnum<{
1477
+ woff2: "woff2";
1478
+ woff: "woff";
1479
+ truetype: "truetype";
1480
+ opentype: "opentype";
1481
+ }>;
1482
+ weight: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1483
+ style: z.ZodOptional<z.ZodEnum<{
1484
+ normal: "normal";
1485
+ italic: "italic";
1486
+ }>>;
1487
+ data: z.ZodString;
1488
+ }, z.core.$strict>>>;
1489
+ motif: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
1490
+ key: z.ZodString;
1491
+ revision: z.ZodString;
1492
+ label: z.ZodString;
1493
+ fields: z.ZodArray<z.ZodObject<{
1494
+ key: z.ZodString;
1495
+ label: z.ZodString;
1496
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
1497
+ default: z.ZodOptional<z.ZodString>;
1498
+ required: z.ZodDefault<z.ZodBoolean>;
1499
+ }, z.core.$strip>>;
1500
+ versions: z.ZodArray<z.ZodObject<{
1501
+ lang: z.ZodString;
1502
+ dir: z.ZodOptional<z.ZodEnum<{
1503
+ ltr: "ltr";
1504
+ rtl: "rtl";
1505
+ }>>;
1506
+ when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1507
+ html: z.ZodString;
1508
+ }, z.core.$strip>>;
1509
+ fonts: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1510
+ app: z.ZodString;
1511
+ }, z.core.$strip>, z.ZodObject<{
1512
+ local: z.ZodString;
1513
+ fallback: z.ZodString;
1514
+ }, z.core.$strip>]>>>;
1515
+ }, z.core.$strip>>;
1516
+ motifInput: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
1517
+ fields: z.ZodArray<z.ZodObject<{
1518
+ key: z.ZodString;
1519
+ label: z.ZodString;
1520
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
1521
+ default: z.ZodOptional<z.ZodString>;
1522
+ required: z.ZodDefault<z.ZodBoolean>;
1523
+ }, z.core.$strict>>;
1524
+ versions: z.ZodArray<z.ZodObject<{
1525
+ lang: z.ZodString;
1526
+ dir: z.ZodOptional<z.ZodEnum<{
1527
+ ltr: "ltr";
1528
+ rtl: "rtl";
1529
+ }>>;
1530
+ when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1531
+ html: z.ZodString;
1532
+ }, z.core.$strict>>;
1533
+ fonts: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1534
+ app: z.ZodString;
1535
+ }, z.core.$strict>, z.ZodObject<{
1536
+ local: z.ZodString;
1537
+ fallback: z.ZodString;
1538
+ }, z.core.$strict>]>>>;
1539
+ key: z.ZodString;
1540
+ revision: z.ZodString;
1541
+ label: z.ZodString;
1542
+ }, z.core.$strict>>;
1140
1543
  };
1141
1544
  //#endregion
1142
- export { Annotation, type ArrangeOptions, Board, type BoardInput, BoardItem, type BoardItemAnchor, BoardLabel, type BoardListingGroup, BoardSection, type BoardShapes, type BoardView, Book, BookContents, BookFrontMatterEntry, type BookInput, BookMode, BookPage, BookSection, BookView, type BookViewInput, Box, CUSTOM_PAPER_MAX_MM, CUSTOM_PAPER_MIN_MM, Chapter, Cue, DECK_SIZE, DEFAULT_TRANSITION_DURATION_MS, Deck, type DeckFromSlidesOptions, type DeckInput, type DeckLimits, Direction, Fill, FillValues, GridCell, type GridDropTarget, ImageFit, type Imposed, type ImpositionMarkEdge, type ImpositionSideMarks, Lexicon, MAKE_ROOM_LIMIT, MARK_GAP_MM, MARK_LENGTH_MM, MAX_BOARD_ZOOM, MAX_SLIDE_TIMING_MS, MAX_TRANSITION_DURATION_MS, MIN_BOARD_ITEM_WIDTH, MIN_BOARD_ZOOM, MIN_MARK_LENGTH_MM, MIN_TRANSITION_DURATION_MS, MM_PER_PT, Manifest, type MarkSegment, type MillimeterEdges, NAMED_PAPERS, type NamedPaper, type NamedPaperMetadata, Narration, NoteMarker, NumberSystem, ORIENTATIONS, type OmittedImpositionMark, Orientation, PAPER_GROUPS, PAPER_METADATA, PAPER_MM, PAPER_UNITS, PLAYBACK_MODES, PX_PER_MM, type PageFit, type PagePlacementKind, type PagePlacementLayout, Paper, type PaperBox, type PaperGroup, PaperUnit, type Placement, Playback, type PlaybackMode, Point, PrintSetting, PrintSettingInput, PronunciationEntry, PublishedShot, SECTION_GAP, SECTION_MIN_SIZE, SECTION_PADDING, SECTION_TITLE_ROOM, SHOT_KEY, SLOT_TYPES, Scripts, Shot, type ShotUse, Size, Slide, SlideContent, type SlideRow, SlotDeclaration, SlotDeclarationInput, SlotKey, SlotReport, SlotSource, SlotState, SlotType, SlotValue, Slots, SlotsInput, SlotsOptions, TextDirection, Transition, TransitionInput, Word, type ZoomBounds, addItem, annotationCueIssues, arrange, assignMembership, boardBounds, boardListing, boardListingIsEmpty, boardToScreen, deckFromSlides, deriveSectionCells, exceedsLimits, firstStrongDirection, fitPage, fitSection, fitTouchedSections, foldForSearch, formatNumber, fromMillimeters, gridDropMarkerBox, gridDropTarget, impose, impositionMarks, insertIntoGrid, isBookContents, isHebrew, itemAt, itemHeight, languageDirection, layoutSection, lexiconVersion, makeRoom, mergeSlotDeclarations, mirrorPlacement, moveItems, moveSection, nameMatches, noteMarker, noteMarkerIssues, pagePlacementLayout, paperPixels, parsePlayback, printBoxes, printPadding, printProperties, removeFromGrid, removeItems, resizeItem, resolveDirection, revealView, roundMillimeters, screenToBoard, settleBoard, sheetMm, shotsUsed, toMillimeters, visibleItems, zoomAt, zoomToFit };
1545
+ export { APP_FONT_NAME, APP_FONT_NAME_MESSAGE, Annotation, type AppFont, type ArrangeOptions, BOOK_FURNITURE, BOOK_PARENT_NAMES, Board, type BoardInput, BoardItem, type BoardItemAnchor, BoardLabel, type BoardListingGroup, BoardSection, type BoardShapes, type BoardView, Book, BookContents, BookFrontMatterEntry, BookFurniture, type BookInput, BookMode, BookPage, BookSection, BookView, type BookViewInput, Box, CUSTOM_PAPER_MAX_MM, CUSTOM_PAPER_MIN_MM, Chapter, Cue, DECK_SIZE, DEFAULT_TRANSITION_DURATION_MS, Deck, type DeckFromSlidesOptions, type DeckInput, type DeckLimits, Direction, FOLD_DASH_OFF_MM, FOLD_DASH_ON_MM, FOLD_KINDS, FOLD_TUCK_IN_MM, FONT_FORMATS, FONT_GENERICS, Fill, FillValues, type FoldKind, type FontFace, type FontFormat, type FontGeneric, FontReference, FontReferenceInput, type FontSource, GridCell, type GridDropTarget, ImageFit, type Imposed, type ImpositionMarkEdge, type ImpositionSideMarks, LIBRARY_MOTIF_PREFIX, Lexicon, LocalFaceTransport, type LocalFacesInput, LocalFacesTransport, MAKE_ROOM_LIMIT, MARK_GAP_MM, MARK_LENGTH_MM, MAX_BOARD_ZOOM, MAX_SLIDE_TIMING_MS, MAX_TRANSITION_DURATION_MS, MIN_BOARD_ITEM_WIDTH, MIN_BOARD_ZOOM, MIN_MARK_LENGTH_MM, MIN_TRANSITION_DURATION_MS, MM_PER_PT, MOTIF_ATTRIBUTE, Manifest, type MarkSegment, type MillimeterEdges, Motif, MotifField, MotifFieldInput, MotifInput, MotifPlacement, MotifSource, MotifVersion, MotifVersionChoice, MotifVersionInput, NAMED_PAPERS, type NamedPaper, type NamedPaperMetadata, Narration, NoteMarker, NumberSystem, ORIENTATIONS, type OmittedImpositionMark, Orientation, PAPER_FIT_TOLERANCE_MM, PAPER_GROUPS, PAPER_METADATA, PAPER_MM, PAPER_UNITS, PLAYBACK_MODES, PRINTED_PAGE_CONTEXT, PRINTED_PAGE_FOLIO_PATH, PRINTED_PAGE_LIMIT, PRINTED_PAGE_NUMBER_PATH, PRINTED_PAGE_ROLES, PRINTED_PAGE_RUNNING_HEAD_PATH, PRINTED_PAGE_TOTAL_PATH, PX_PER_MM, type PageFit, type PagePlacementKind, type PagePlacementLayout, Paper, type PaperBox, type PaperGroup, PaperUnit, ParentPage, ParentPageMargin, type Placement, Playback, type PlaybackMode, Point, PrintSetting, PrintSettingInput, PrintedPageRole, PrintedPageRules, PrintedPages, PronunciationEntry, PublishedShot, ResolvedParentPage, SECTION_GAP, SECTION_MIN_SIZE, SECTION_PADDING, SECTION_TITLE_ROOM, SHOT_KEY, SLOT_TYPES, Scripts, Shot, type ShotUse, Size, Slide, SlideContent, type SlideRow, SlotDeclaration, SlotDeclarationInput, SlotKey, SlotReport, SlotSource, SlotState, SlotType, SlotValue, Slots, SlotsInput, SlotsOptions, TextDirection, Transition, TransitionInput, Word, type ZoomBounds, addItem, annotationCueIssues, arrange, assignMembership, boardBounds, boardListing, boardListingIsEmpty, boardToScreen, bookParentPages, chooseMotifVersion, deckFromSlides, defaultPageNumbering, deriveSectionCells, exceedsLimits, firstStrongDirection, fitPage, fitSection, fitTouchedSections, foldCellPages, foldColumns, foldForSearch, foldPageCountMessage, foldPanelMap, formatNumber, fromMillimeters, gridDropMarkerBox, gridDropTarget, impose, impositionMarks, insertIntoGrid, isBookContents, isHebrew, isPrintedPageIdentityImposition, itemAt, itemHeight, languageDirection, layoutSection, lexiconVersion, localFontReferences, makeRoom, mergeSlotDeclarations, mirrorPlacement, motifFieldAttribute, moveItems, moveSection, nameMatches, noteMarker, noteMarkerIssues, pagePlacementLayout, pagePrintedPagesIssues, paperPixels, parsePlayback, printBoxes, printPadding, printProperties, printedPagesIssues, removeFromGrid, removeItems, resizeItem, resolveDirection, resolveParentPages, revealView, roundMillimeters, screenToBoard, settleBoard, sheetMm, shotsUsed, toMillimeters, visibleItems, zoomAt, zoomToFit };