@segnavia/format 0.36.0 → 0.38.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 CHANGED
@@ -1,4 +1,5 @@
1
- import { BookChapterEntry, BookContents, BookFrontMatterEntry, BookOpens, BookSection, BookSectionParents, BookTemplate, Chapter, DesignedPage, DesignedSection, REGION_NAME, TemplatedPage, TemplatedSection, isBookContents, isChapter, isDesignedSection, isTemplatedSection } from "./book-section.js";
1
+ import { BookChapterEntry, BookContents, BookDivision, BookDivisions, BookFrontMatterEntry, BookItem, BookOpens, BookSection, BookSectionEntry, BookSectionParents, BookTemplate, Chapter, DesignedPage, DesignedSection, MAX_PART_DEPTH, Part, REGION_NAME, TemplatedPage, TemplatedSection, bookSections, isBookContents, isChapter, isDesignedSection, isPart, isTemplatedSection } from "./book-section.js";
2
+ import { ResolvedNoteSeries } from "./note-series.js";
2
3
  import { z } from "zod";
3
4
  //#region src/book.d.ts
4
5
  export declare const BookMode: z.ZodEnum<{
@@ -63,6 +64,8 @@ export declare const BookRunningHeadSource: z.ZodUnion<readonly [z.ZodLiteral<"t
63
64
  first: "first";
64
65
  last: "last";
65
66
  }>;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ part: z.ZodString;
66
69
  }, z.core.$strip>]>;
67
70
  export type BookRunningHeadSource = z.infer<typeof BookRunningHeadSource>;
68
71
  export declare const BookRunningHead: z.ZodObject<{
@@ -72,6 +75,8 @@ export declare const BookRunningHead: z.ZodObject<{
72
75
  first: "first";
73
76
  last: "last";
74
77
  }>;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ part: z.ZodString;
75
80
  }, z.core.$strip>]>>;
76
81
  verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
77
82
  mark: z.ZodString;
@@ -79,175 +84,15 @@ export declare const BookRunningHead: z.ZodObject<{
79
84
  first: "first";
80
85
  last: "last";
81
86
  }>;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ part: z.ZodString;
82
89
  }, z.core.$strip>]>>;
83
90
  }, z.core.$strip>;
84
91
  export type BookRunningHead = z.infer<typeof BookRunningHead>;
85
- export declare const BookViewPagination: z.ZodObject<{
86
- paper: z.ZodObject<{
87
- width: z.ZodNumber;
88
- height: z.ZodNumber;
89
- }, z.core.$strip>;
90
- margin: z.ZodObject<{
91
- top: z.ZodNumber;
92
- bottom: z.ZodNumber;
93
- inner: z.ZodNumber;
94
- outer: z.ZodNumber;
95
- }, z.core.$strip>;
96
- columnGap: z.ZodNumber;
97
- direction: z.ZodEnum<{
98
- ltr: "ltr";
99
- rtl: "rtl";
100
- }>;
101
- numbering: z.ZodObject<{
102
- frontMatter: z.ZodEnum<{
103
- arabic: "arabic";
104
- "roman-lower": "roman-lower";
105
- "roman-upper": "roman-upper";
106
- hebrew: "hebrew";
107
- }>;
108
- body: z.ZodEnum<{
109
- arabic: "arabic";
110
- "roman-lower": "roman-lower";
111
- "roman-upper": "roman-upper";
112
- hebrew: "hebrew";
113
- }>;
114
- }, z.core.$strip>;
115
- rectoOpenings: z.ZodBoolean;
116
- orphans: z.ZodNumber;
117
- widows: z.ZodNumber;
118
- parents: z.ZodArray<z.ZodObject<{
119
- name: z.ZodString;
120
- basedOn: z.ZodOptional<z.ZodString>;
121
- margin: z.ZodOptional<z.ZodObject<{
122
- top: z.ZodNumber;
123
- bottom: z.ZodNumber;
124
- inner: z.ZodNumber;
125
- outer: z.ZodNumber;
126
- }, z.core.$strip>>;
127
- head: z.ZodOptional<z.ZodString>;
128
- foot: z.ZodOptional<z.ZodString>;
129
- }, z.core.$strip>>;
130
- endnotePlacement: z.ZodEnum<{
131
- chapter: "chapter";
132
- book: "book";
133
- }>;
134
- contents: z.ZodObject<{
135
- pageNumbers: z.ZodBoolean;
136
- depth: z.ZodNumber;
137
- }, z.core.$strip>;
138
- runningHead: z.ZodObject<{
139
- recto: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
140
- mark: z.ZodString;
141
- which: z.ZodEnum<{
142
- first: "first";
143
- last: "last";
144
- }>;
145
- }, z.core.$strip>]>>;
146
- verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
147
- mark: z.ZodString;
148
- which: z.ZodEnum<{
149
- first: "first";
150
- last: "last";
151
- }>;
152
- }, z.core.$strip>]>>;
153
- }, z.core.$strip>;
154
- }, z.core.$strip>;
155
- export type BookViewPagination = z.infer<typeof BookViewPagination>;
156
- export declare const BookView: z.ZodObject<{
157
- dir: z.ZodOptional<z.ZodEnum<{
158
- ltr: "ltr";
159
- rtl: "rtl";
160
- auto: "auto";
161
- }>>;
162
- scripts: z.ZodDefault<z.ZodEnum<{
163
- refuse: "refuse";
164
- sandboxed: "sandboxed";
165
- }>>;
166
- lang: z.ZodOptional<z.ZodString>;
167
- fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
168
- app: z.ZodString;
169
- }, z.core.$strip>, z.ZodObject<{
170
- local: z.ZodString;
171
- fallback: z.ZodString;
172
- }, z.core.$strip>]>>>;
173
- css: z.ZodOptional<z.ZodString>;
174
- title: z.ZodOptional<z.ZodString>;
175
- html: z.ZodString;
176
- pagination: z.ZodOptional<z.ZodObject<{
177
- paper: z.ZodObject<{
178
- width: z.ZodNumber;
179
- height: z.ZodNumber;
180
- }, z.core.$strip>;
181
- margin: z.ZodObject<{
182
- top: z.ZodNumber;
183
- bottom: z.ZodNumber;
184
- inner: z.ZodNumber;
185
- outer: z.ZodNumber;
186
- }, z.core.$strip>;
187
- columnGap: z.ZodNumber;
188
- direction: z.ZodEnum<{
189
- ltr: "ltr";
190
- rtl: "rtl";
191
- }>;
192
- numbering: z.ZodObject<{
193
- frontMatter: z.ZodEnum<{
194
- arabic: "arabic";
195
- "roman-lower": "roman-lower";
196
- "roman-upper": "roman-upper";
197
- hebrew: "hebrew";
198
- }>;
199
- body: z.ZodEnum<{
200
- arabic: "arabic";
201
- "roman-lower": "roman-lower";
202
- "roman-upper": "roman-upper";
203
- hebrew: "hebrew";
204
- }>;
205
- }, z.core.$strip>;
206
- rectoOpenings: z.ZodBoolean;
207
- orphans: z.ZodNumber;
208
- widows: z.ZodNumber;
209
- parents: z.ZodArray<z.ZodObject<{
210
- name: z.ZodString;
211
- basedOn: z.ZodOptional<z.ZodString>;
212
- margin: z.ZodOptional<z.ZodObject<{
213
- top: z.ZodNumber;
214
- bottom: z.ZodNumber;
215
- inner: z.ZodNumber;
216
- outer: z.ZodNumber;
217
- }, z.core.$strip>>;
218
- head: z.ZodOptional<z.ZodString>;
219
- foot: z.ZodOptional<z.ZodString>;
220
- }, z.core.$strip>>;
221
- endnotePlacement: z.ZodEnum<{
222
- chapter: "chapter";
223
- book: "book";
224
- }>;
225
- contents: z.ZodObject<{
226
- pageNumbers: z.ZodBoolean;
227
- depth: z.ZodNumber;
228
- }, z.core.$strip>;
229
- runningHead: z.ZodObject<{
230
- recto: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
231
- mark: z.ZodString;
232
- which: z.ZodEnum<{
233
- first: "first";
234
- last: "last";
235
- }>;
236
- }, z.core.$strip>]>>;
237
- verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
238
- mark: z.ZodString;
239
- which: z.ZodEnum<{
240
- first: "first";
241
- last: "last";
242
- }>;
243
- }, z.core.$strip>]>>;
244
- }, z.core.$strip>;
245
- }, z.core.$strip>>;
246
- }, z.core.$strip>;
247
- export type BookView = z.infer<typeof BookView>;
248
- export type BookViewInput = z.input<typeof BookView>;
249
- export declare const Book: z.ZodPipe<z.ZodObject<{
92
+ export declare const BookShape: z.ZodObject<{
250
93
  title: z.ZodString;
94
+ authors: z.ZodOptional<z.ZodArray<z.ZodString>>;
95
+ subject: z.ZodOptional<z.ZodString>;
251
96
  mode: z.ZodEnum<{
252
97
  continuous: "continuous";
253
98
  paginated: "paginated";
@@ -312,80 +157,10 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
312
157
  auto: "auto";
313
158
  }>>;
314
159
  lang: z.ZodOptional<z.ZodString>;
315
- frontMatter: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
316
- pages: z.ZodArray<z.ZodObject<{
317
- html: z.ZodString;
318
- }, z.core.$strip>>;
319
- title: z.ZodOptional<z.ZodString>;
320
- contents: z.ZodDefault<z.ZodBoolean>;
321
- opens: z.ZodOptional<z.ZodEnum<{
322
- any: "any";
323
- recto: "recto";
324
- verso: "verso";
325
- }>>;
326
- parents: z.ZodOptional<z.ZodObject<{
327
- opener: z.ZodOptional<z.ZodString>;
328
- recto: z.ZodOptional<z.ZodString>;
329
- verso: z.ZodOptional<z.ZodString>;
330
- blank: z.ZodOptional<z.ZodString>;
331
- fixed: z.ZodOptional<z.ZodString>;
332
- }, z.core.$strip>>;
333
- kind: z.ZodLiteral<"designed">;
334
- }, z.core.$strip>, z.ZodObject<{
335
- template: z.ZodString;
336
- pages: z.ZodArray<z.ZodObject<{
337
- template: z.ZodOptional<z.ZodString>;
338
- regions: z.ZodRecord<z.ZodString, z.ZodString>;
339
- }, z.core.$strip>>;
340
- title: z.ZodOptional<z.ZodString>;
341
- contents: z.ZodDefault<z.ZodBoolean>;
342
- opens: z.ZodOptional<z.ZodEnum<{
343
- any: "any";
344
- recto: "recto";
345
- verso: "verso";
346
- }>>;
347
- parents: z.ZodOptional<z.ZodObject<{
348
- opener: z.ZodOptional<z.ZodString>;
349
- recto: z.ZodOptional<z.ZodString>;
350
- verso: z.ZodOptional<z.ZodString>;
351
- blank: z.ZodOptional<z.ZodString>;
352
- fixed: z.ZodOptional<z.ZodString>;
353
- }, z.core.$strip>>;
354
- kind: z.ZodLiteral<"templated">;
355
- }, z.core.$strip>, z.ZodObject<{
356
- kind: z.ZodLiteral<"contents">;
357
- title: z.ZodOptional<z.ZodString>;
358
- opens: z.ZodOptional<z.ZodEnum<{
359
- any: "any";
360
- recto: "recto";
361
- verso: "verso";
362
- }>>;
363
- parents: z.ZodOptional<z.ZodObject<{
364
- opener: z.ZodOptional<z.ZodString>;
365
- recto: z.ZodOptional<z.ZodString>;
366
- verso: z.ZodOptional<z.ZodString>;
367
- blank: z.ZodOptional<z.ZodString>;
368
- fixed: z.ZodOptional<z.ZodString>;
369
- }, z.core.$strip>>;
370
- }, z.core.$strip>, z.ZodObject<{
371
- title: z.ZodOptional<z.ZodString>;
372
- contents: z.ZodDefault<z.ZodBoolean>;
373
- opens: z.ZodOptional<z.ZodEnum<{
374
- any: "any";
375
- recto: "recto";
376
- verso: "verso";
377
- }>>;
378
- parents: z.ZodOptional<z.ZodObject<{
379
- opener: z.ZodOptional<z.ZodString>;
380
- recto: z.ZodOptional<z.ZodString>;
381
- verso: z.ZodOptional<z.ZodString>;
382
- blank: z.ZodOptional<z.ZodString>;
383
- fixed: z.ZodOptional<z.ZodString>;
384
- }, z.core.$strip>>;
385
- html: z.ZodString;
386
- kind: z.ZodOptional<z.ZodLiteral<"front">>;
387
- }, z.core.$strip>], "kind">>>;
388
- chapters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
160
+ frontMatter: z.ZodDefault<z.ZodArray<z.ZodType<BookItem, unknown, z.core.$ZodTypeInternals<BookItem, unknown>>>>;
161
+ body: z.ZodOptional<z.ZodArray<z.ZodType<BookItem, unknown, z.core.$ZodTypeInternals<BookItem, unknown>>>>;
162
+ endMatter: z.ZodDefault<z.ZodArray<z.ZodType<BookItem, unknown, z.core.$ZodTypeInternals<BookItem, unknown>>>>;
163
+ chapters: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
389
164
  pages: z.ZodArray<z.ZodObject<{
390
165
  html: z.ZodString;
391
166
  }, z.core.$strip>>;
@@ -442,7 +217,7 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
442
217
  fixed: z.ZodOptional<z.ZodString>;
443
218
  }, z.core.$strip>>;
444
219
  kind: z.ZodOptional<z.ZodLiteral<"chapter">>;
445
- }, z.core.$strip>], "kind">>;
220
+ }, z.core.$strip>], "kind">>>;
446
221
  parentPages: z.ZodDefault<z.ZodArray<z.ZodObject<{
447
222
  name: z.ZodString;
448
223
  basedOn: z.ZodOptional<z.ZodString>;
@@ -549,6 +324,27 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
549
324
  }>>;
550
325
  title: z.ZodOptional<z.ZodString>;
551
326
  }, z.core.$strip>>;
327
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
328
+ name: z.ZodString;
329
+ placement: z.ZodOptional<z.ZodEnum<{
330
+ page: "page";
331
+ chapter: "chapter";
332
+ book: "book";
333
+ part: "part";
334
+ }>>;
335
+ numbering: z.ZodOptional<z.ZodEnum<{
336
+ chapter: "chapter";
337
+ book: "book";
338
+ part: "part";
339
+ }>>;
340
+ marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
341
+ arabic: "arabic";
342
+ "roman-lower": "roman-lower";
343
+ "roman-upper": "roman-upper";
344
+ hebrew: "hebrew";
345
+ }>, z.ZodLiteral<"symbols">]>>;
346
+ title: z.ZodOptional<z.ZodString>;
347
+ }, z.core.$strip>>>;
552
348
  rectoOpenings: z.ZodDefault<z.ZodBoolean>;
553
349
  orphans: z.ZodDefault<z.ZodNumber>;
554
350
  widows: z.ZodDefault<z.ZodNumber>;
@@ -559,6 +355,8 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
559
355
  first: "first";
560
356
  last: "last";
561
357
  }>;
358
+ }, z.core.$strip>, z.ZodObject<{
359
+ part: z.ZodString;
562
360
  }, z.core.$strip>]>>;
563
361
  verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
564
362
  mark: z.ZodString;
@@ -566,132 +364,493 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
566
364
  first: "first";
567
365
  last: "last";
568
366
  }>;
367
+ }, z.core.$strip>, z.ZodObject<{
368
+ part: z.ZodString;
569
369
  }, z.core.$strip>]>>;
570
370
  }, z.core.$strip>>;
571
371
  contents: z.ZodDefault<z.ZodObject<{
572
372
  pageNumbers: z.ZodDefault<z.ZodBoolean>;
573
373
  depth: z.ZodDefault<z.ZodNumber>;
574
374
  }, z.core.$strip>>;
575
- }, z.core.$strip>, z.ZodTransform<{
576
- numbering: {
577
- frontMatter: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
578
- body: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
579
- };
580
- footnotes: {
581
- marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
582
- restart: "chapter" | "book";
583
- };
584
- endnotes: {
585
- marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
586
- title: string;
587
- placement: "chapter" | "book";
588
- };
589
- title: string;
590
- mode: "continuous" | "paginated";
591
- scripts: "refuse" | "sandboxed";
592
- frontMatter: ({
593
- pages: {
594
- html: string;
595
- }[];
596
- contents: boolean;
597
- kind: "designed";
598
- title?: string | undefined;
599
- opens?: "any" | "recto" | "verso" | undefined;
600
- parents?: {
601
- opener?: string | undefined;
602
- recto?: string | undefined;
603
- verso?: string | undefined;
604
- blank?: string | undefined;
605
- fixed?: string | undefined;
606
- } | undefined;
607
- } | {
608
- template: string;
609
- pages: {
610
- regions: Record<string, string>;
611
- template?: string | undefined;
612
- }[];
613
- contents: boolean;
614
- kind: "templated";
615
- title?: string | undefined;
616
- opens?: "any" | "recto" | "verso" | undefined;
617
- parents?: {
618
- opener?: string | undefined;
619
- recto?: string | undefined;
620
- verso?: string | undefined;
621
- blank?: string | undefined;
622
- fixed?: string | undefined;
623
- } | undefined;
624
- } | {
625
- kind: "contents";
626
- title?: string | undefined;
627
- opens?: "any" | "recto" | "verso" | undefined;
628
- parents?: {
629
- opener?: string | undefined;
630
- recto?: string | undefined;
631
- verso?: string | undefined;
632
- blank?: string | undefined;
633
- fixed?: string | undefined;
634
- } | undefined;
635
- } | {
636
- contents: boolean;
637
- html: string;
638
- title?: string | undefined;
639
- opens?: "any" | "recto" | "verso" | undefined;
640
- parents?: {
641
- opener?: string | undefined;
642
- recto?: string | undefined;
643
- verso?: string | undefined;
644
- blank?: string | undefined;
645
- fixed?: string | undefined;
646
- } | undefined;
647
- kind?: "front" | undefined;
648
- })[];
649
- chapters: ({
650
- pages: {
651
- html: string;
652
- }[];
653
- contents: boolean;
654
- kind: "designed";
655
- title?: string | undefined;
656
- opens?: "any" | "recto" | "verso" | undefined;
657
- parents?: {
658
- opener?: string | undefined;
659
- recto?: string | undefined;
660
- verso?: string | undefined;
661
- blank?: string | undefined;
662
- fixed?: string | undefined;
663
- } | undefined;
664
- } | {
665
- template: string;
666
- pages: {
667
- regions: Record<string, string>;
668
- template?: string | undefined;
669
- }[];
670
- contents: boolean;
671
- kind: "templated";
672
- title?: string | undefined;
673
- opens?: "any" | "recto" | "verso" | undefined;
674
- parents?: {
675
- opener?: string | undefined;
676
- recto?: string | undefined;
677
- verso?: string | undefined;
678
- blank?: string | undefined;
679
- fixed?: string | undefined;
680
- } | undefined;
681
- } | {
375
+ }, z.core.$strip>;
376
+ export declare const BookViewPagination: z.ZodObject<{
377
+ paper: z.ZodObject<{
378
+ width: z.ZodNumber;
379
+ height: z.ZodNumber;
380
+ }, z.core.$strip>;
381
+ margin: z.ZodObject<{
382
+ top: z.ZodNumber;
383
+ bottom: z.ZodNumber;
384
+ inner: z.ZodNumber;
385
+ outer: z.ZodNumber;
386
+ }, z.core.$strip>;
387
+ columnGap: z.ZodNumber;
388
+ direction: z.ZodEnum<{
389
+ ltr: "ltr";
390
+ rtl: "rtl";
391
+ }>;
392
+ numbering: z.ZodObject<{
393
+ frontMatter: z.ZodEnum<{
394
+ arabic: "arabic";
395
+ "roman-lower": "roman-lower";
396
+ "roman-upper": "roman-upper";
397
+ hebrew: "hebrew";
398
+ }>;
399
+ body: z.ZodEnum<{
400
+ arabic: "arabic";
401
+ "roman-lower": "roman-lower";
402
+ "roman-upper": "roman-upper";
403
+ hebrew: "hebrew";
404
+ }>;
405
+ }, z.core.$strip>;
406
+ rectoOpenings: z.ZodBoolean;
407
+ orphans: z.ZodNumber;
408
+ widows: z.ZodNumber;
409
+ parents: z.ZodArray<z.ZodObject<{
410
+ name: z.ZodString;
411
+ basedOn: z.ZodOptional<z.ZodString>;
412
+ margin: z.ZodOptional<z.ZodObject<{
413
+ top: z.ZodNumber;
414
+ bottom: z.ZodNumber;
415
+ inner: z.ZodNumber;
416
+ outer: z.ZodNumber;
417
+ }, z.core.$strip>>;
418
+ head: z.ZodOptional<z.ZodString>;
419
+ foot: z.ZodOptional<z.ZodString>;
420
+ }, z.core.$strip>>;
421
+ endnotePlacement: z.ZodEnum<{
422
+ chapter: "chapter";
423
+ book: "book";
424
+ }>;
425
+ contents: z.ZodObject<{
426
+ pageNumbers: z.ZodBoolean;
427
+ depth: z.ZodNumber;
428
+ }, z.core.$strip>;
429
+ runningHead: z.ZodObject<{
430
+ recto: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
431
+ mark: z.ZodString;
432
+ which: z.ZodEnum<{
433
+ first: "first";
434
+ last: "last";
435
+ }>;
436
+ }, z.core.$strip>, z.ZodObject<{
437
+ part: z.ZodString;
438
+ }, z.core.$strip>]>>;
439
+ verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
440
+ mark: z.ZodString;
441
+ which: z.ZodEnum<{
442
+ first: "first";
443
+ last: "last";
444
+ }>;
445
+ }, z.core.$strip>, z.ZodObject<{
446
+ part: z.ZodString;
447
+ }, z.core.$strip>]>>;
448
+ }, z.core.$strip>;
449
+ }, z.core.$strip>;
450
+ export type BookViewPagination = z.infer<typeof BookViewPagination>;
451
+ export declare const BookView: z.ZodObject<{
452
+ dir: z.ZodOptional<z.ZodEnum<{
453
+ ltr: "ltr";
454
+ rtl: "rtl";
455
+ auto: "auto";
456
+ }>>;
457
+ scripts: z.ZodDefault<z.ZodEnum<{
458
+ refuse: "refuse";
459
+ sandboxed: "sandboxed";
460
+ }>>;
461
+ lang: z.ZodOptional<z.ZodString>;
462
+ fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
463
+ app: z.ZodString;
464
+ }, z.core.$strip>, z.ZodObject<{
465
+ local: z.ZodString;
466
+ fallback: z.ZodString;
467
+ }, z.core.$strip>]>>>;
468
+ css: z.ZodOptional<z.ZodString>;
469
+ title: z.ZodOptional<z.ZodString>;
470
+ html: z.ZodString;
471
+ flow: z.ZodOptional<z.ZodString>;
472
+ pagination: z.ZodOptional<z.ZodObject<{
473
+ paper: z.ZodObject<{
474
+ width: z.ZodNumber;
475
+ height: z.ZodNumber;
476
+ }, z.core.$strip>;
477
+ margin: z.ZodObject<{
478
+ top: z.ZodNumber;
479
+ bottom: z.ZodNumber;
480
+ inner: z.ZodNumber;
481
+ outer: z.ZodNumber;
482
+ }, z.core.$strip>;
483
+ columnGap: z.ZodNumber;
484
+ direction: z.ZodEnum<{
485
+ ltr: "ltr";
486
+ rtl: "rtl";
487
+ }>;
488
+ numbering: z.ZodObject<{
489
+ frontMatter: z.ZodEnum<{
490
+ arabic: "arabic";
491
+ "roman-lower": "roman-lower";
492
+ "roman-upper": "roman-upper";
493
+ hebrew: "hebrew";
494
+ }>;
495
+ body: z.ZodEnum<{
496
+ arabic: "arabic";
497
+ "roman-lower": "roman-lower";
498
+ "roman-upper": "roman-upper";
499
+ hebrew: "hebrew";
500
+ }>;
501
+ }, z.core.$strip>;
502
+ rectoOpenings: z.ZodBoolean;
503
+ orphans: z.ZodNumber;
504
+ widows: z.ZodNumber;
505
+ parents: z.ZodArray<z.ZodObject<{
506
+ name: z.ZodString;
507
+ basedOn: z.ZodOptional<z.ZodString>;
508
+ margin: z.ZodOptional<z.ZodObject<{
509
+ top: z.ZodNumber;
510
+ bottom: z.ZodNumber;
511
+ inner: z.ZodNumber;
512
+ outer: z.ZodNumber;
513
+ }, z.core.$strip>>;
514
+ head: z.ZodOptional<z.ZodString>;
515
+ foot: z.ZodOptional<z.ZodString>;
516
+ }, z.core.$strip>>;
517
+ endnotePlacement: z.ZodEnum<{
518
+ chapter: "chapter";
519
+ book: "book";
520
+ }>;
521
+ contents: z.ZodObject<{
522
+ pageNumbers: z.ZodBoolean;
523
+ depth: z.ZodNumber;
524
+ }, z.core.$strip>;
525
+ runningHead: z.ZodObject<{
526
+ recto: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
527
+ mark: z.ZodString;
528
+ which: z.ZodEnum<{
529
+ first: "first";
530
+ last: "last";
531
+ }>;
532
+ }, z.core.$strip>, z.ZodObject<{
533
+ part: z.ZodString;
534
+ }, z.core.$strip>]>>;
535
+ verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
536
+ mark: z.ZodString;
537
+ which: z.ZodEnum<{
538
+ first: "first";
539
+ last: "last";
540
+ }>;
541
+ }, z.core.$strip>, z.ZodObject<{
542
+ part: z.ZodString;
543
+ }, z.core.$strip>]>>;
544
+ }, z.core.$strip>;
545
+ }, z.core.$strip>>;
546
+ }, z.core.$strip>;
547
+ export type BookView = z.infer<typeof BookView>;
548
+ export type BookViewInput = z.input<typeof BookView>;
549
+ export declare const Book: z.ZodPipe<z.ZodPreprocess<z.ZodPipe<z.ZodObject<{
550
+ title: z.ZodString;
551
+ authors: z.ZodOptional<z.ZodArray<z.ZodString>>;
552
+ subject: z.ZodOptional<z.ZodString>;
553
+ mode: z.ZodEnum<{
554
+ continuous: "continuous";
555
+ paginated: "paginated";
556
+ }>;
557
+ page: z.ZodOptional<z.ZodObject<{
558
+ paper: z.ZodUnion<readonly [z.ZodEnum<{
559
+ letter: "letter";
560
+ legal: "legal";
561
+ tabloid: "tabloid";
562
+ a3: "a3";
563
+ a4: "a4";
564
+ a5: "a5";
565
+ "business-card-us": "business-card-us";
566
+ "business-card-eu": "business-card-eu";
567
+ "business-card-square-us": "business-card-square-us";
568
+ "business-card-slim-us": "business-card-slim-us";
569
+ "postcard-4x6": "postcard-4x6";
570
+ "postcard-5x7": "postcard-5x7";
571
+ "postcard-6x9": "postcard-6x9";
572
+ "postcard-6x11": "postcard-6x11";
573
+ "card-square-4in": "card-square-4in";
574
+ "half-letter": "half-letter";
575
+ a6: "a6";
576
+ dl: "dl";
577
+ "rack-card-4x9": "rack-card-4x9";
578
+ "rack-card-3.5x8.5": "rack-card-3.5x8.5";
579
+ "poster-12x18": "poster-12x18";
580
+ "poster-16x20": "poster-16x20";
581
+ "poster-18x24": "poster-18x24";
582
+ "poster-24x36": "poster-24x36";
583
+ a2: "a2";
584
+ a1: "a1";
585
+ a0: "a0";
586
+ }>, z.ZodObject<{
587
+ width: z.ZodNumber;
588
+ height: z.ZodNumber;
589
+ unit: z.ZodEnum<{
590
+ mm: "mm";
591
+ in: "in";
592
+ pt: "pt";
593
+ }>;
594
+ }, z.core.$strip>]>;
595
+ orientation: z.ZodDefault<z.ZodEnum<{
596
+ portrait: "portrait";
597
+ landscape: "landscape";
598
+ }>>;
599
+ margin: z.ZodObject<{
600
+ top: z.ZodNumber;
601
+ bottom: z.ZodNumber;
602
+ inner: z.ZodNumber;
603
+ outer: z.ZodNumber;
604
+ }, z.core.$strip>;
605
+ columnGap: z.ZodDefault<z.ZodNumber>;
606
+ }, z.core.$strip>>;
607
+ scripts: z.ZodDefault<z.ZodEnum<{
608
+ refuse: "refuse";
609
+ sandboxed: "sandboxed";
610
+ }>>;
611
+ dir: z.ZodOptional<z.ZodEnum<{
612
+ ltr: "ltr";
613
+ rtl: "rtl";
614
+ auto: "auto";
615
+ }>>;
616
+ lang: z.ZodOptional<z.ZodString>;
617
+ frontMatter: z.ZodDefault<z.ZodArray<z.ZodType<BookItem, unknown, z.core.$ZodTypeInternals<BookItem, unknown>>>>;
618
+ body: z.ZodOptional<z.ZodArray<z.ZodType<BookItem, unknown, z.core.$ZodTypeInternals<BookItem, unknown>>>>;
619
+ endMatter: z.ZodDefault<z.ZodArray<z.ZodType<BookItem, unknown, z.core.$ZodTypeInternals<BookItem, unknown>>>>;
620
+ chapters: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
621
+ pages: z.ZodArray<z.ZodObject<{
622
+ html: z.ZodString;
623
+ }, z.core.$strip>>;
624
+ title: z.ZodOptional<z.ZodString>;
625
+ contents: z.ZodDefault<z.ZodBoolean>;
626
+ opens: z.ZodOptional<z.ZodEnum<{
627
+ any: "any";
628
+ recto: "recto";
629
+ verso: "verso";
630
+ }>>;
631
+ parents: z.ZodOptional<z.ZodObject<{
632
+ opener: z.ZodOptional<z.ZodString>;
633
+ recto: z.ZodOptional<z.ZodString>;
634
+ verso: z.ZodOptional<z.ZodString>;
635
+ blank: z.ZodOptional<z.ZodString>;
636
+ fixed: z.ZodOptional<z.ZodString>;
637
+ }, z.core.$strip>>;
638
+ kind: z.ZodLiteral<"designed">;
639
+ }, z.core.$strip>, z.ZodObject<{
640
+ template: z.ZodString;
641
+ pages: z.ZodArray<z.ZodObject<{
642
+ template: z.ZodOptional<z.ZodString>;
643
+ regions: z.ZodRecord<z.ZodString, z.ZodString>;
644
+ }, z.core.$strip>>;
645
+ title: z.ZodOptional<z.ZodString>;
646
+ contents: z.ZodDefault<z.ZodBoolean>;
647
+ opens: z.ZodOptional<z.ZodEnum<{
648
+ any: "any";
649
+ recto: "recto";
650
+ verso: "verso";
651
+ }>>;
652
+ parents: z.ZodOptional<z.ZodObject<{
653
+ opener: z.ZodOptional<z.ZodString>;
654
+ recto: z.ZodOptional<z.ZodString>;
655
+ verso: z.ZodOptional<z.ZodString>;
656
+ blank: z.ZodOptional<z.ZodString>;
657
+ fixed: z.ZodOptional<z.ZodString>;
658
+ }, z.core.$strip>>;
659
+ kind: z.ZodLiteral<"templated">;
660
+ }, z.core.$strip>, z.ZodObject<{
661
+ title: z.ZodString;
662
+ html: z.ZodString;
663
+ runningHead: z.ZodOptional<z.ZodString>;
664
+ opens: z.ZodOptional<z.ZodEnum<{
665
+ any: "any";
666
+ recto: "recto";
667
+ verso: "verso";
668
+ }>>;
669
+ parents: z.ZodOptional<z.ZodObject<{
670
+ opener: z.ZodOptional<z.ZodString>;
671
+ recto: z.ZodOptional<z.ZodString>;
672
+ verso: z.ZodOptional<z.ZodString>;
673
+ blank: z.ZodOptional<z.ZodString>;
674
+ fixed: z.ZodOptional<z.ZodString>;
675
+ }, z.core.$strip>>;
676
+ kind: z.ZodOptional<z.ZodLiteral<"chapter">>;
677
+ }, z.core.$strip>], "kind">>>;
678
+ parentPages: z.ZodDefault<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
+ templates: z.ZodDefault<z.ZodArray<z.ZodObject<{
691
+ name: z.ZodString;
692
+ html: z.ZodString;
693
+ parents: z.ZodOptional<z.ZodObject<{
694
+ opener: z.ZodOptional<z.ZodString>;
695
+ recto: z.ZodOptional<z.ZodString>;
696
+ verso: z.ZodOptional<z.ZodString>;
697
+ blank: z.ZodOptional<z.ZodString>;
698
+ fixed: z.ZodOptional<z.ZodString>;
699
+ }, z.core.$strip>>;
700
+ }, z.core.$strip>>>;
701
+ slots: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
702
+ key: z.ZodString;
703
+ label: z.ZodString;
704
+ type: z.ZodEnum<{
705
+ text: "text";
706
+ phone: "phone";
707
+ email: "email";
708
+ link: "link";
709
+ qr: "qr";
710
+ image: "image";
711
+ }>;
712
+ required: z.ZodDefault<z.ZodBoolean>;
713
+ placeholder: z.ZodOptional<z.ZodString>;
714
+ overflow: z.ZodDefault<z.ZodEnum<{
715
+ refuse: "refuse";
716
+ shrink: "shrink";
717
+ truncate: "truncate";
718
+ wrap: "wrap";
719
+ }>>;
720
+ minSize: z.ZodOptional<z.ZodNumber>;
721
+ }, z.core.$strip>, z.ZodTransform<{
722
+ key: string;
723
+ label: string;
724
+ type: "text" | "phone" | "email" | "link" | "qr" | "image";
725
+ required: boolean;
726
+ overflow: "refuse" | "shrink" | "truncate" | "wrap";
727
+ placeholder?: string | undefined;
728
+ minSize?: number | undefined;
729
+ }, {
730
+ key: string;
731
+ label: string;
732
+ type: "text" | "phone" | "email" | "link" | "qr" | "image";
733
+ required: boolean;
734
+ overflow: "refuse" | "shrink" | "truncate" | "wrap";
735
+ placeholder?: string | undefined;
736
+ minSize?: number | undefined;
737
+ }>>>>;
738
+ fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
739
+ app: z.ZodString;
740
+ }, z.core.$strip>, z.ZodObject<{
741
+ local: z.ZodString;
742
+ fallback: z.ZodString;
743
+ }, z.core.$strip>]>>>;
744
+ css: z.ZodOptional<z.ZodString>;
745
+ numbering: z.ZodDefault<z.ZodObject<{
746
+ frontMatter: z.ZodOptional<z.ZodEnum<{
747
+ arabic: "arabic";
748
+ "roman-lower": "roman-lower";
749
+ "roman-upper": "roman-upper";
750
+ hebrew: "hebrew";
751
+ }>>;
752
+ body: z.ZodOptional<z.ZodEnum<{
753
+ arabic: "arabic";
754
+ "roman-lower": "roman-lower";
755
+ "roman-upper": "roman-upper";
756
+ hebrew: "hebrew";
757
+ }>>;
758
+ }, z.core.$strip>>;
759
+ footnotes: z.ZodDefault<z.ZodObject<{
760
+ marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
761
+ arabic: "arabic";
762
+ "roman-lower": "roman-lower";
763
+ "roman-upper": "roman-upper";
764
+ hebrew: "hebrew";
765
+ }>, z.ZodLiteral<"symbols">]>>;
766
+ restart: z.ZodDefault<z.ZodEnum<{
767
+ chapter: "chapter";
768
+ book: "book";
769
+ }>>;
770
+ }, z.core.$strip>>;
771
+ endnotes: z.ZodDefault<z.ZodObject<{
772
+ marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
773
+ arabic: "arabic";
774
+ "roman-lower": "roman-lower";
775
+ "roman-upper": "roman-upper";
776
+ hebrew: "hebrew";
777
+ }>, z.ZodLiteral<"symbols">]>>;
778
+ placement: z.ZodDefault<z.ZodEnum<{
779
+ chapter: "chapter";
780
+ book: "book";
781
+ }>>;
782
+ title: z.ZodOptional<z.ZodString>;
783
+ }, z.core.$strip>>;
784
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
785
+ name: z.ZodString;
786
+ placement: z.ZodOptional<z.ZodEnum<{
787
+ page: "page";
788
+ chapter: "chapter";
789
+ book: "book";
790
+ part: "part";
791
+ }>>;
792
+ numbering: z.ZodOptional<z.ZodEnum<{
793
+ chapter: "chapter";
794
+ book: "book";
795
+ part: "part";
796
+ }>>;
797
+ marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
798
+ arabic: "arabic";
799
+ "roman-lower": "roman-lower";
800
+ "roman-upper": "roman-upper";
801
+ hebrew: "hebrew";
802
+ }>, z.ZodLiteral<"symbols">]>>;
803
+ title: z.ZodOptional<z.ZodString>;
804
+ }, z.core.$strip>>>;
805
+ rectoOpenings: z.ZodDefault<z.ZodBoolean>;
806
+ orphans: z.ZodDefault<z.ZodNumber>;
807
+ widows: z.ZodDefault<z.ZodNumber>;
808
+ runningHead: z.ZodDefault<z.ZodObject<{
809
+ recto: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
810
+ mark: z.ZodString;
811
+ which: z.ZodEnum<{
812
+ first: "first";
813
+ last: "last";
814
+ }>;
815
+ }, z.core.$strip>, z.ZodObject<{
816
+ part: z.ZodString;
817
+ }, z.core.$strip>]>>;
818
+ verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
819
+ mark: z.ZodString;
820
+ which: z.ZodEnum<{
821
+ first: "first";
822
+ last: "last";
823
+ }>;
824
+ }, z.core.$strip>, z.ZodObject<{
825
+ part: z.ZodString;
826
+ }, z.core.$strip>]>>;
827
+ }, z.core.$strip>>;
828
+ contents: z.ZodDefault<z.ZodObject<{
829
+ pageNumbers: z.ZodDefault<z.ZodBoolean>;
830
+ depth: z.ZodDefault<z.ZodNumber>;
831
+ }, z.core.$strip>>;
832
+ }, z.core.$strip>, z.ZodTransform<{
833
+ body: BookItem[];
834
+ bodyKey: "body" | "chapters";
835
+ numbering: {
836
+ frontMatter: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
837
+ body: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
838
+ };
839
+ footnotes: {
840
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
841
+ restart: "chapter" | "book";
842
+ };
843
+ endnotes: {
844
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
682
845
  title: string;
683
- html: string;
684
- runningHead?: string | undefined;
685
- opens?: "any" | "recto" | "verso" | undefined;
686
- parents?: {
687
- opener?: string | undefined;
688
- recto?: string | undefined;
689
- verso?: string | undefined;
690
- blank?: string | undefined;
691
- fixed?: string | undefined;
692
- } | undefined;
693
- kind?: "chapter" | undefined;
694
- })[];
846
+ placement: "chapter" | "book";
847
+ };
848
+ notes: ResolvedNoteSeries[];
849
+ title: string;
850
+ mode: "continuous" | "paginated";
851
+ scripts: "refuse" | "sandboxed";
852
+ frontMatter: BookItem[];
853
+ endMatter: BookItem[];
695
854
  parentPages: {
696
855
  name: string;
697
856
  basedOn?: string | undefined;
@@ -722,16 +881,22 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
722
881
  recto: "title" | {
723
882
  mark: string;
724
883
  which: "first" | "last";
884
+ } | {
885
+ part: string;
725
886
  };
726
887
  verso: "title" | {
727
888
  mark: string;
728
889
  which: "first" | "last";
890
+ } | {
891
+ part: string;
729
892
  };
730
893
  };
731
894
  contents: {
732
895
  pageNumbers: boolean;
733
896
  depth: number;
734
897
  };
898
+ authors?: string[] | undefined;
899
+ subject?: string | undefined;
735
900
  page?: {
736
901
  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" | {
737
902
  width: number;
@@ -769,31 +934,23 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
769
934
  title: string;
770
935
  mode: "continuous" | "paginated";
771
936
  scripts: "refuse" | "sandboxed";
772
- frontMatter: ({
773
- pages: {
774
- html: string;
775
- }[];
776
- contents: boolean;
777
- kind: "designed";
778
- title?: string | undefined;
779
- opens?: "any" | "recto" | "verso" | undefined;
780
- parents?: {
781
- opener?: string | undefined;
782
- recto?: string | undefined;
783
- verso?: string | undefined;
784
- blank?: string | undefined;
785
- fixed?: string | undefined;
937
+ frontMatter: BookItem[];
938
+ endMatter: BookItem[];
939
+ parentPages: {
940
+ name: string;
941
+ basedOn?: string | undefined;
942
+ margin?: {
943
+ top: number;
944
+ bottom: number;
945
+ inner: number;
946
+ outer: number;
786
947
  } | undefined;
787
- } | {
788
- template: string;
789
- pages: {
790
- regions: Record<string, string>;
791
- template?: string | undefined;
792
- }[];
793
- contents: boolean;
794
- kind: "templated";
795
- title?: string | undefined;
796
- opens?: "any" | "recto" | "verso" | undefined;
948
+ head?: string | undefined;
949
+ foot?: string | undefined;
950
+ }[];
951
+ templates: {
952
+ name: string;
953
+ html: string;
797
954
  parents?: {
798
955
  opener?: string | undefined;
799
956
  recto?: string | undefined;
@@ -801,32 +958,69 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
801
958
  blank?: string | undefined;
802
959
  fixed?: string | undefined;
803
960
  } | undefined;
804
- } | {
805
- kind: "contents";
961
+ }[];
962
+ numbering: {
963
+ frontMatter?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | undefined;
964
+ body?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | undefined;
965
+ };
966
+ footnotes: {
967
+ restart: "chapter" | "book";
968
+ marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
969
+ };
970
+ endnotes: {
971
+ placement: "chapter" | "book";
972
+ marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
806
973
  title?: string | undefined;
807
- opens?: "any" | "recto" | "verso" | undefined;
808
- parents?: {
809
- opener?: string | undefined;
810
- recto?: string | undefined;
811
- verso?: string | undefined;
812
- blank?: string | undefined;
813
- fixed?: string | undefined;
814
- } | undefined;
815
- } | {
816
- contents: boolean;
817
- html: string;
974
+ };
975
+ notes: {
976
+ name: string;
977
+ placement?: "page" | "chapter" | "book" | "part" | undefined;
978
+ numbering?: "chapter" | "book" | "part" | undefined;
979
+ marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
818
980
  title?: string | undefined;
819
- opens?: "any" | "recto" | "verso" | undefined;
820
- parents?: {
821
- opener?: string | undefined;
822
- recto?: string | undefined;
823
- verso?: string | undefined;
824
- blank?: string | undefined;
825
- fixed?: string | undefined;
826
- } | undefined;
827
- kind?: "front" | undefined;
828
- })[];
829
- chapters: ({
981
+ }[];
982
+ rectoOpenings: boolean;
983
+ orphans: number;
984
+ widows: number;
985
+ runningHead: {
986
+ recto: "title" | {
987
+ mark: string;
988
+ which: "first" | "last";
989
+ } | {
990
+ part: string;
991
+ };
992
+ verso: "title" | {
993
+ mark: string;
994
+ which: "first" | "last";
995
+ } | {
996
+ part: string;
997
+ };
998
+ };
999
+ contents: {
1000
+ pageNumbers: boolean;
1001
+ depth: number;
1002
+ };
1003
+ authors?: string[] | undefined;
1004
+ subject?: string | undefined;
1005
+ page?: {
1006
+ 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" | {
1007
+ width: number;
1008
+ height: number;
1009
+ unit: "mm" | "in" | "pt";
1010
+ };
1011
+ orientation: "portrait" | "landscape";
1012
+ margin: {
1013
+ top: number;
1014
+ bottom: number;
1015
+ inner: number;
1016
+ outer: number;
1017
+ };
1018
+ columnGap: number;
1019
+ } | undefined;
1020
+ dir?: "ltr" | "rtl" | "auto" | undefined;
1021
+ lang?: string | undefined;
1022
+ body?: BookItem[] | undefined;
1023
+ chapters?: ({
830
1024
  pages: {
831
1025
  html: string;
832
1026
  }[];
@@ -871,7 +1065,44 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
871
1065
  fixed?: string | undefined;
872
1066
  } | undefined;
873
1067
  kind?: "chapter" | undefined;
874
- })[];
1068
+ })[] | undefined;
1069
+ slots?: {
1070
+ key: string;
1071
+ label: string;
1072
+ type: "text" | "phone" | "email" | "link" | "qr" | "image";
1073
+ required: boolean;
1074
+ overflow: "refuse" | "shrink" | "truncate" | "wrap";
1075
+ placeholder?: string | undefined;
1076
+ minSize?: number | undefined;
1077
+ }[] | undefined;
1078
+ fonts?: ({
1079
+ app: string;
1080
+ } | {
1081
+ local: string;
1082
+ fallback: string;
1083
+ })[] | undefined;
1084
+ css?: string | undefined;
1085
+ }>>, unknown>, z.ZodTransform<{
1086
+ body: BookItem[];
1087
+ numbering: {
1088
+ frontMatter: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
1089
+ body: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
1090
+ };
1091
+ footnotes: {
1092
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
1093
+ restart: "chapter" | "book";
1094
+ };
1095
+ endnotes: {
1096
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
1097
+ title: string;
1098
+ placement: "chapter" | "book";
1099
+ };
1100
+ notes: ResolvedNoteSeries[];
1101
+ title: string;
1102
+ mode: "continuous" | "paginated";
1103
+ scripts: "refuse" | "sandboxed";
1104
+ frontMatter: BookItem[];
1105
+ endMatter: BookItem[];
875
1106
  parentPages: {
876
1107
  name: string;
877
1108
  basedOn?: string | undefined;
@@ -895,19 +1126,107 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
895
1126
  fixed?: string | undefined;
896
1127
  } | undefined;
897
1128
  }[];
1129
+ rectoOpenings: boolean;
1130
+ orphans: number;
1131
+ widows: number;
1132
+ runningHead: {
1133
+ recto: "title" | {
1134
+ mark: string;
1135
+ which: "first" | "last";
1136
+ } | {
1137
+ part: string;
1138
+ };
1139
+ verso: "title" | {
1140
+ mark: string;
1141
+ which: "first" | "last";
1142
+ } | {
1143
+ part: string;
1144
+ };
1145
+ };
1146
+ contents: {
1147
+ pageNumbers: boolean;
1148
+ depth: number;
1149
+ };
1150
+ authors?: string[] | undefined;
1151
+ subject?: string | undefined;
1152
+ page?: {
1153
+ 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" | {
1154
+ width: number;
1155
+ height: number;
1156
+ unit: "mm" | "in" | "pt";
1157
+ };
1158
+ orientation: "portrait" | "landscape";
1159
+ margin: {
1160
+ top: number;
1161
+ bottom: number;
1162
+ inner: number;
1163
+ outer: number;
1164
+ };
1165
+ columnGap: number;
1166
+ } | undefined;
1167
+ dir?: "ltr" | "rtl" | "auto" | undefined;
1168
+ lang?: string | undefined;
1169
+ slots?: {
1170
+ key: string;
1171
+ label: string;
1172
+ type: "text" | "phone" | "email" | "link" | "qr" | "image";
1173
+ required: boolean;
1174
+ overflow: "refuse" | "shrink" | "truncate" | "wrap";
1175
+ placeholder?: string | undefined;
1176
+ minSize?: number | undefined;
1177
+ }[] | undefined;
1178
+ fonts?: ({
1179
+ app: string;
1180
+ } | {
1181
+ local: string;
1182
+ fallback: string;
1183
+ })[] | undefined;
1184
+ css?: string | undefined;
1185
+ }, {
1186
+ body: BookItem[];
1187
+ bodyKey: "body" | "chapters";
898
1188
  numbering: {
899
- frontMatter?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | undefined;
900
- body?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | undefined;
1189
+ frontMatter: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
1190
+ body: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
901
1191
  };
902
1192
  footnotes: {
1193
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
903
1194
  restart: "chapter" | "book";
904
- marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
905
1195
  };
906
1196
  endnotes: {
1197
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
1198
+ title: string;
907
1199
  placement: "chapter" | "book";
908
- marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
909
- title?: string | undefined;
910
1200
  };
1201
+ notes: ResolvedNoteSeries[];
1202
+ title: string;
1203
+ mode: "continuous" | "paginated";
1204
+ scripts: "refuse" | "sandboxed";
1205
+ frontMatter: BookItem[];
1206
+ endMatter: BookItem[];
1207
+ parentPages: {
1208
+ name: string;
1209
+ basedOn?: string | undefined;
1210
+ margin?: {
1211
+ top: number;
1212
+ bottom: number;
1213
+ inner: number;
1214
+ outer: number;
1215
+ } | undefined;
1216
+ head?: string | undefined;
1217
+ foot?: string | undefined;
1218
+ }[];
1219
+ templates: {
1220
+ name: string;
1221
+ html: string;
1222
+ parents?: {
1223
+ opener?: string | undefined;
1224
+ recto?: string | undefined;
1225
+ verso?: string | undefined;
1226
+ blank?: string | undefined;
1227
+ fixed?: string | undefined;
1228
+ } | undefined;
1229
+ }[];
911
1230
  rectoOpenings: boolean;
912
1231
  orphans: number;
913
1232
  widows: number;
@@ -915,16 +1234,22 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
915
1234
  recto: "title" | {
916
1235
  mark: string;
917
1236
  which: "first" | "last";
1237
+ } | {
1238
+ part: string;
918
1239
  };
919
1240
  verso: "title" | {
920
1241
  mark: string;
921
1242
  which: "first" | "last";
1243
+ } | {
1244
+ part: string;
922
1245
  };
923
1246
  };
924
1247
  contents: {
925
1248
  pageNumbers: boolean;
926
1249
  depth: number;
927
1250
  };
1251
+ authors?: string[] | undefined;
1252
+ subject?: string | undefined;
928
1253
  page?: {
929
1254
  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" | {
930
1255
  width: number;
@@ -960,11 +1285,7 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
960
1285
  css?: string | undefined;
961
1286
  }>>;
962
1287
  export type Book = z.infer<typeof Book>;
963
- export type BookInput = z.input<typeof Book>;
1288
+ export type BookInput = z.input<typeof BookShape>;
964
1289
  export declare function resolveBookPagination(book: Book): BookViewPagination | undefined;
965
- export declare function noteMarkerIssues(book: Book, used: {
966
- footnotes: boolean;
967
- endnotes: boolean;
968
- }): string[];
969
1290
  //#endregion
970
- export { BookChapterEntry, BookContents, BookFrontMatterEntry, BookOpens, BookSection, BookSectionParents, BookTemplate, Chapter, DesignedPage, DesignedSection, REGION_NAME, TemplatedPage, TemplatedSection, isBookContents, isChapter, isDesignedSection, isTemplatedSection };
1291
+ export { BookChapterEntry, BookContents, type BookDivision, type BookDivisions, BookFrontMatterEntry, BookItem, BookOpens, BookSection, type BookSectionEntry, BookSectionParents, BookTemplate, Chapter, DesignedPage, DesignedSection, MAX_PART_DEPTH, Part, REGION_NAME, TemplatedPage, TemplatedSection, bookSections, isBookContents, isChapter, isDesignedSection, isPart, isTemplatedSection };