@segnavia/format 0.37.0 → 0.39.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.
Files changed (66) hide show
  1. package/dist/board-edit.d.ts +2 -1
  2. package/dist/board-geometry.d.ts +2 -1
  3. package/dist/board-section-grid.d.ts +2 -1
  4. package/dist/board-sections.d.ts +2 -1
  5. package/dist/board.d.ts +8 -8
  6. package/dist/board.js +15 -11
  7. package/dist/book-exports.d.ts +4 -0
  8. package/dist/book-section.d.ts +225 -3
  9. package/dist/book-section.js +82 -17
  10. package/dist/book.d.ts +878 -416
  11. package/dist/book.js +236 -37
  12. package/dist/cover.d.ts +337 -0
  13. package/dist/cover.js +100 -0
  14. package/dist/deck-from-slides.d.ts +23 -4
  15. package/dist/deck.d.ts +144 -42
  16. package/dist/deck.js +22 -24
  17. package/dist/dependency-policy.d.ts +12 -0
  18. package/dist/dependency-policy.js +42 -0
  19. package/dist/direction.d.ts +1 -1
  20. package/dist/font-collection.d.ts +8 -0
  21. package/dist/font-collection.js +191 -0
  22. package/dist/font-face.d.ts +8 -0
  23. package/dist/font-face.js +24 -0
  24. package/dist/font-refusal.d.ts +5 -0
  25. package/dist/font-refusal.js +9 -0
  26. package/dist/font-signature.d.ts +5 -0
  27. package/dist/font-signature.js +13 -0
  28. package/dist/fonts.d.ts +6 -1
  29. package/dist/fonts.js +3 -1
  30. package/dist/geometry.d.ts +20 -0
  31. package/dist/geometry.js +18 -0
  32. package/dist/image-fit.d.ts +10 -0
  33. package/dist/image-fit.js +10 -0
  34. package/dist/imposition-marks.d.ts +1 -1
  35. package/dist/imposition-schema.d.ts +185 -0
  36. package/dist/imposition-schema.js +122 -0
  37. package/dist/imposition.d.ts +8 -6
  38. package/dist/index.d.ts +29 -1797
  39. package/dist/index.js +30 -210
  40. package/dist/json-schemas.d.ts +1860 -0
  41. package/dist/json-schemas.js +43 -0
  42. package/dist/local-font-limits.d.ts +15 -0
  43. package/dist/local-font-limits.js +24 -0
  44. package/dist/media.d.ts +152 -0
  45. package/dist/media.js +119 -0
  46. package/dist/note-series.d.ts +70 -0
  47. package/dist/note-series.js +153 -0
  48. package/dist/page.d.ts +174 -0
  49. package/dist/page.js +37 -0
  50. package/dist/paper.d.ts +2 -1
  51. package/dist/paper.js +2 -1
  52. package/dist/placement-cycle.d.ts +5 -0
  53. package/dist/placement-cycle.js +30 -0
  54. package/dist/placement-refusal.d.ts +5 -0
  55. package/dist/placement-refusal.js +6 -0
  56. package/dist/placement.d.ts +76 -0
  57. package/dist/placement.js +100 -0
  58. package/dist/print.d.ts +72 -0
  59. package/dist/print.js +38 -0
  60. package/dist/printed-page-imposition.d.ts +2 -1
  61. package/dist/printed-pages.d.ts +14 -0
  62. package/dist/printed-pages.js +14 -1
  63. package/dist/shots-used.d.ts +0 -1
  64. package/dist/shots-used.js +2 -2
  65. package/dist/slots.d.ts +13 -13
  66. package/package.json +1 -1
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 { ResolvedNoteSeries } from "./note-series.js";
2
+ import { BookChapterEntry, BookContents, BookDivision, BookDivisions, BookFrontMatterEntry, BookItem, BookOpens, BookSection, BookSectionEntry, BookSectionParents, BookTemplate, Chapter, DesignedPage, DesignedSection, MAX_PART_DEPTH, Part, PlacedSection, REGION_NAME, TemplatedPage, TemplatedSection, bookSections, isBookContents, isChapter, isDesignedSection, isPart, isPlacedSection, isTemplatedSection } from "./book-section.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,176 +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
- flow: z.ZodOptional<z.ZodString>;
177
- pagination: z.ZodOptional<z.ZodObject<{
178
- paper: z.ZodObject<{
179
- width: z.ZodNumber;
180
- height: z.ZodNumber;
181
- }, z.core.$strip>;
182
- margin: z.ZodObject<{
183
- top: z.ZodNumber;
184
- bottom: z.ZodNumber;
185
- inner: z.ZodNumber;
186
- outer: z.ZodNumber;
187
- }, z.core.$strip>;
188
- columnGap: z.ZodNumber;
189
- direction: z.ZodEnum<{
190
- ltr: "ltr";
191
- rtl: "rtl";
192
- }>;
193
- numbering: z.ZodObject<{
194
- frontMatter: z.ZodEnum<{
195
- arabic: "arabic";
196
- "roman-lower": "roman-lower";
197
- "roman-upper": "roman-upper";
198
- hebrew: "hebrew";
199
- }>;
200
- body: z.ZodEnum<{
201
- arabic: "arabic";
202
- "roman-lower": "roman-lower";
203
- "roman-upper": "roman-upper";
204
- hebrew: "hebrew";
205
- }>;
206
- }, z.core.$strip>;
207
- rectoOpenings: z.ZodBoolean;
208
- orphans: z.ZodNumber;
209
- widows: z.ZodNumber;
210
- parents: z.ZodArray<z.ZodObject<{
211
- name: z.ZodString;
212
- basedOn: z.ZodOptional<z.ZodString>;
213
- margin: z.ZodOptional<z.ZodObject<{
214
- top: z.ZodNumber;
215
- bottom: z.ZodNumber;
216
- inner: z.ZodNumber;
217
- outer: z.ZodNumber;
218
- }, z.core.$strip>>;
219
- head: z.ZodOptional<z.ZodString>;
220
- foot: z.ZodOptional<z.ZodString>;
221
- }, z.core.$strip>>;
222
- endnotePlacement: z.ZodEnum<{
223
- chapter: "chapter";
224
- book: "book";
225
- }>;
226
- contents: z.ZodObject<{
227
- pageNumbers: z.ZodBoolean;
228
- depth: z.ZodNumber;
229
- }, z.core.$strip>;
230
- runningHead: z.ZodObject<{
231
- recto: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
232
- mark: z.ZodString;
233
- which: z.ZodEnum<{
234
- first: "first";
235
- last: "last";
236
- }>;
237
- }, z.core.$strip>]>>;
238
- verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
239
- mark: z.ZodString;
240
- which: z.ZodEnum<{
241
- first: "first";
242
- last: "last";
243
- }>;
244
- }, z.core.$strip>]>>;
245
- }, z.core.$strip>;
246
- }, z.core.$strip>>;
247
- }, z.core.$strip>;
248
- export type BookView = z.infer<typeof BookView>;
249
- export type BookViewInput = z.input<typeof BookView>;
250
- export declare const Book: z.ZodPipe<z.ZodObject<{
92
+ export declare const BookShape: z.ZodObject<{
251
93
  title: z.ZodString;
94
+ authors: z.ZodOptional<z.ZodArray<z.ZodString>>;
95
+ subject: z.ZodOptional<z.ZodString>;
252
96
  mode: z.ZodEnum<{
253
97
  continuous: "continuous";
254
98
  paginated: "paginated";
@@ -308,12 +152,15 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
308
152
  sandboxed: "sandboxed";
309
153
  }>>;
310
154
  dir: z.ZodOptional<z.ZodEnum<{
155
+ auto: "auto";
311
156
  ltr: "ltr";
312
157
  rtl: "rtl";
313
- auto: "auto";
314
158
  }>>;
315
159
  lang: z.ZodOptional<z.ZodString>;
316
- frontMatter: z.ZodDefault<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<{
317
164
  pages: z.ZodArray<z.ZodObject<{
318
165
  html: z.ZodString;
319
166
  }, z.core.$strip>>;
@@ -354,63 +201,6 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
354
201
  }, z.core.$strip>>;
355
202
  kind: z.ZodLiteral<"templated">;
356
203
  }, z.core.$strip>, z.ZodObject<{
357
- kind: z.ZodLiteral<"contents">;
358
- title: z.ZodOptional<z.ZodString>;
359
- opens: z.ZodOptional<z.ZodEnum<{
360
- any: "any";
361
- recto: "recto";
362
- verso: "verso";
363
- }>>;
364
- parents: z.ZodOptional<z.ZodObject<{
365
- opener: z.ZodOptional<z.ZodString>;
366
- recto: z.ZodOptional<z.ZodString>;
367
- verso: z.ZodOptional<z.ZodString>;
368
- blank: z.ZodOptional<z.ZodString>;
369
- fixed: z.ZodOptional<z.ZodString>;
370
- }, z.core.$strip>>;
371
- }, z.core.$strip>, z.ZodObject<{
372
- title: z.ZodOptional<z.ZodString>;
373
- contents: z.ZodDefault<z.ZodBoolean>;
374
- opens: z.ZodOptional<z.ZodEnum<{
375
- any: "any";
376
- recto: "recto";
377
- verso: "verso";
378
- }>>;
379
- parents: z.ZodOptional<z.ZodObject<{
380
- opener: z.ZodOptional<z.ZodString>;
381
- recto: z.ZodOptional<z.ZodString>;
382
- verso: z.ZodOptional<z.ZodString>;
383
- blank: z.ZodOptional<z.ZodString>;
384
- fixed: z.ZodOptional<z.ZodString>;
385
- }, z.core.$strip>>;
386
- html: z.ZodString;
387
- kind: z.ZodOptional<z.ZodLiteral<"front">>;
388
- }, z.core.$strip>], "kind">>>;
389
- chapters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
390
- pages: z.ZodArray<z.ZodObject<{
391
- html: z.ZodString;
392
- }, z.core.$strip>>;
393
- title: z.ZodOptional<z.ZodString>;
394
- contents: z.ZodDefault<z.ZodBoolean>;
395
- opens: z.ZodOptional<z.ZodEnum<{
396
- any: "any";
397
- recto: "recto";
398
- verso: "verso";
399
- }>>;
400
- parents: z.ZodOptional<z.ZodObject<{
401
- opener: z.ZodOptional<z.ZodString>;
402
- recto: z.ZodOptional<z.ZodString>;
403
- verso: z.ZodOptional<z.ZodString>;
404
- blank: z.ZodOptional<z.ZodString>;
405
- fixed: z.ZodOptional<z.ZodString>;
406
- }, z.core.$strip>>;
407
- kind: z.ZodLiteral<"designed">;
408
- }, z.core.$strip>, z.ZodObject<{
409
- template: z.ZodString;
410
- pages: z.ZodArray<z.ZodObject<{
411
- template: z.ZodOptional<z.ZodString>;
412
- regions: z.ZodRecord<z.ZodString, z.ZodString>;
413
- }, z.core.$strip>>;
414
204
  title: z.ZodOptional<z.ZodString>;
415
205
  contents: z.ZodDefault<z.ZodBoolean>;
416
206
  opens: z.ZodOptional<z.ZodEnum<{
@@ -425,7 +215,47 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
425
215
  blank: z.ZodOptional<z.ZodString>;
426
216
  fixed: z.ZodOptional<z.ZodString>;
427
217
  }, z.core.$strip>>;
428
- kind: z.ZodLiteral<"templated">;
218
+ kind: z.ZodLiteral<"placed">;
219
+ placement: z.ZodObject<{
220
+ kind: z.ZodEnum<{
221
+ deck: "deck";
222
+ page: "page";
223
+ paper: "paper";
224
+ book: "book";
225
+ media: "media";
226
+ shot: "shot";
227
+ }>;
228
+ address: z.ZodString;
229
+ page: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
230
+ box: z.ZodOptional<z.ZodEnum<{
231
+ media: "media";
232
+ bleed: "bleed";
233
+ crop: "crop";
234
+ trim: "trim";
235
+ art: "art";
236
+ }>>;
237
+ crop: z.ZodOptional<z.ZodObject<{
238
+ top: z.ZodOptional<z.ZodString>;
239
+ right: z.ZodOptional<z.ZodString>;
240
+ bottom: z.ZodOptional<z.ZodString>;
241
+ left: z.ZodOptional<z.ZodString>;
242
+ }, z.core.$strip>>;
243
+ fit: z.ZodOptional<z.ZodEnum<{
244
+ width: "width";
245
+ contain: "contain";
246
+ cover: "cover";
247
+ focus: "focus";
248
+ }>>;
249
+ alt: z.ZodOptional<z.ZodObject<{
250
+ text: z.ZodString;
251
+ lang: z.ZodOptional<z.ZodString>;
252
+ dir: z.ZodOptional<z.ZodEnum<{
253
+ auto: "auto";
254
+ ltr: "ltr";
255
+ rtl: "rtl";
256
+ }>>;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>;
429
259
  }, z.core.$strip>, z.ZodObject<{
430
260
  title: z.ZodString;
431
261
  html: z.ZodString;
@@ -443,7 +273,7 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
443
273
  fixed: z.ZodOptional<z.ZodString>;
444
274
  }, z.core.$strip>>;
445
275
  kind: z.ZodOptional<z.ZodLiteral<"chapter">>;
446
- }, z.core.$strip>], "kind">>;
276
+ }, z.core.$strip>], "kind">>>;
447
277
  parentPages: z.ZodDefault<z.ZodArray<z.ZodObject<{
448
278
  name: z.ZodString;
449
279
  basedOn: z.ZodOptional<z.ZodString>;
@@ -472,11 +302,11 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
472
302
  label: z.ZodString;
473
303
  type: z.ZodEnum<{
474
304
  text: "text";
305
+ image: "image";
475
306
  phone: "phone";
476
307
  email: "email";
477
308
  link: "link";
478
309
  qr: "qr";
479
- image: "image";
480
310
  }>;
481
311
  required: z.ZodDefault<z.ZodBoolean>;
482
312
  placeholder: z.ZodOptional<z.ZodString>;
@@ -490,7 +320,7 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
490
320
  }, z.core.$strip>, z.ZodTransform<{
491
321
  key: string;
492
322
  label: string;
493
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
323
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
494
324
  required: boolean;
495
325
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
496
326
  placeholder?: string | undefined;
@@ -498,7 +328,7 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
498
328
  }, {
499
329
  key: string;
500
330
  label: string;
501
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
331
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
502
332
  required: boolean;
503
333
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
504
334
  placeholder?: string | undefined;
@@ -533,8 +363,8 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
533
363
  hebrew: "hebrew";
534
364
  }>, z.ZodLiteral<"symbols">]>>;
535
365
  restart: z.ZodDefault<z.ZodEnum<{
536
- chapter: "chapter";
537
366
  book: "book";
367
+ chapter: "chapter";
538
368
  }>>;
539
369
  }, z.core.$strip>>;
540
370
  endnotes: z.ZodDefault<z.ZodObject<{
@@ -545,11 +375,32 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
545
375
  hebrew: "hebrew";
546
376
  }>, z.ZodLiteral<"symbols">]>>;
547
377
  placement: z.ZodDefault<z.ZodEnum<{
548
- chapter: "chapter";
549
378
  book: "book";
379
+ chapter: "chapter";
550
380
  }>>;
551
381
  title: z.ZodOptional<z.ZodString>;
552
382
  }, z.core.$strip>>;
383
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
384
+ name: z.ZodString;
385
+ placement: z.ZodOptional<z.ZodEnum<{
386
+ page: "page";
387
+ book: "book";
388
+ chapter: "chapter";
389
+ part: "part";
390
+ }>>;
391
+ numbering: z.ZodOptional<z.ZodEnum<{
392
+ book: "book";
393
+ chapter: "chapter";
394
+ part: "part";
395
+ }>>;
396
+ marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
397
+ arabic: "arabic";
398
+ "roman-lower": "roman-lower";
399
+ "roman-upper": "roman-upper";
400
+ hebrew: "hebrew";
401
+ }>, z.ZodLiteral<"symbols">]>>;
402
+ title: z.ZodOptional<z.ZodString>;
403
+ }, z.core.$strip>>>;
553
404
  rectoOpenings: z.ZodDefault<z.ZodBoolean>;
554
405
  orphans: z.ZodDefault<z.ZodNumber>;
555
406
  widows: z.ZodDefault<z.ZodNumber>;
@@ -560,6 +411,8 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
560
411
  first: "first";
561
412
  last: "last";
562
413
  }>;
414
+ }, z.core.$strip>, z.ZodObject<{
415
+ part: z.ZodString;
563
416
  }, z.core.$strip>]>>;
564
417
  verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
565
418
  mark: z.ZodString;
@@ -567,132 +420,549 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
567
420
  first: "first";
568
421
  last: "last";
569
422
  }>;
423
+ }, z.core.$strip>, z.ZodObject<{
424
+ part: z.ZodString;
570
425
  }, z.core.$strip>]>>;
571
426
  }, z.core.$strip>>;
572
427
  contents: z.ZodDefault<z.ZodObject<{
573
428
  pageNumbers: z.ZodDefault<z.ZodBoolean>;
574
429
  depth: z.ZodDefault<z.ZodNumber>;
575
430
  }, z.core.$strip>>;
576
- }, z.core.$strip>, z.ZodTransform<{
577
- numbering: {
578
- frontMatter: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
579
- body: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
580
- };
581
- footnotes: {
582
- marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
583
- restart: "chapter" | "book";
584
- };
585
- endnotes: {
586
- marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
587
- title: string;
588
- placement: "chapter" | "book";
589
- };
590
- title: string;
591
- mode: "continuous" | "paginated";
592
- scripts: "refuse" | "sandboxed";
593
- frontMatter: ({
594
- pages: {
595
- html: string;
596
- }[];
597
- contents: boolean;
598
- kind: "designed";
599
- title?: string | undefined;
600
- opens?: "any" | "recto" | "verso" | undefined;
601
- parents?: {
602
- opener?: string | undefined;
603
- recto?: string | undefined;
604
- verso?: string | undefined;
605
- blank?: string | undefined;
606
- fixed?: string | undefined;
607
- } | undefined;
608
- } | {
609
- template: string;
610
- pages: {
611
- regions: Record<string, string>;
612
- template?: string | undefined;
613
- }[];
614
- contents: boolean;
615
- kind: "templated";
616
- title?: string | undefined;
617
- opens?: "any" | "recto" | "verso" | undefined;
618
- parents?: {
619
- opener?: string | undefined;
620
- recto?: string | undefined;
621
- verso?: string | undefined;
622
- blank?: string | undefined;
623
- fixed?: string | undefined;
624
- } | undefined;
625
- } | {
626
- kind: "contents";
627
- title?: string | undefined;
628
- opens?: "any" | "recto" | "verso" | undefined;
629
- parents?: {
630
- opener?: string | undefined;
631
- recto?: string | undefined;
632
- verso?: string | undefined;
633
- blank?: string | undefined;
634
- fixed?: string | undefined;
635
- } | undefined;
636
- } | {
637
- contents: boolean;
638
- html: string;
639
- title?: string | undefined;
640
- opens?: "any" | "recto" | "verso" | undefined;
641
- parents?: {
642
- opener?: string | undefined;
643
- recto?: string | undefined;
644
- verso?: string | undefined;
645
- blank?: string | undefined;
646
- fixed?: string | undefined;
647
- } | undefined;
648
- kind?: "front" | undefined;
649
- })[];
650
- chapters: ({
651
- pages: {
652
- html: string;
653
- }[];
654
- contents: boolean;
655
- kind: "designed";
656
- title?: string | undefined;
657
- opens?: "any" | "recto" | "verso" | undefined;
658
- parents?: {
659
- opener?: string | undefined;
660
- recto?: string | undefined;
661
- verso?: string | undefined;
662
- blank?: string | undefined;
663
- fixed?: string | undefined;
664
- } | undefined;
665
- } | {
666
- template: string;
667
- pages: {
668
- regions: Record<string, string>;
669
- template?: string | undefined;
670
- }[];
671
- contents: boolean;
672
- kind: "templated";
673
- title?: string | undefined;
674
- opens?: "any" | "recto" | "verso" | undefined;
675
- parents?: {
676
- opener?: string | undefined;
677
- recto?: string | undefined;
678
- verso?: string | undefined;
679
- blank?: string | undefined;
680
- fixed?: string | undefined;
681
- } | undefined;
682
- } | {
431
+ }, z.core.$strip>;
432
+ export declare const BookViewPagination: z.ZodObject<{
433
+ paper: z.ZodObject<{
434
+ width: z.ZodNumber;
435
+ height: z.ZodNumber;
436
+ }, z.core.$strip>;
437
+ margin: z.ZodObject<{
438
+ top: z.ZodNumber;
439
+ bottom: z.ZodNumber;
440
+ inner: z.ZodNumber;
441
+ outer: z.ZodNumber;
442
+ }, z.core.$strip>;
443
+ columnGap: z.ZodNumber;
444
+ direction: z.ZodEnum<{
445
+ ltr: "ltr";
446
+ rtl: "rtl";
447
+ }>;
448
+ numbering: z.ZodObject<{
449
+ frontMatter: z.ZodEnum<{
450
+ arabic: "arabic";
451
+ "roman-lower": "roman-lower";
452
+ "roman-upper": "roman-upper";
453
+ hebrew: "hebrew";
454
+ }>;
455
+ body: z.ZodEnum<{
456
+ arabic: "arabic";
457
+ "roman-lower": "roman-lower";
458
+ "roman-upper": "roman-upper";
459
+ hebrew: "hebrew";
460
+ }>;
461
+ }, z.core.$strip>;
462
+ rectoOpenings: z.ZodBoolean;
463
+ orphans: z.ZodNumber;
464
+ widows: z.ZodNumber;
465
+ parents: z.ZodArray<z.ZodObject<{
466
+ name: z.ZodString;
467
+ basedOn: z.ZodOptional<z.ZodString>;
468
+ margin: z.ZodOptional<z.ZodObject<{
469
+ top: z.ZodNumber;
470
+ bottom: z.ZodNumber;
471
+ inner: z.ZodNumber;
472
+ outer: z.ZodNumber;
473
+ }, z.core.$strip>>;
474
+ head: z.ZodOptional<z.ZodString>;
475
+ foot: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$strip>>;
477
+ endnotePlacement: z.ZodEnum<{
478
+ book: "book";
479
+ chapter: "chapter";
480
+ }>;
481
+ contents: z.ZodObject<{
482
+ pageNumbers: z.ZodBoolean;
483
+ depth: z.ZodNumber;
484
+ }, z.core.$strip>;
485
+ runningHead: z.ZodObject<{
486
+ recto: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
487
+ mark: z.ZodString;
488
+ which: z.ZodEnum<{
489
+ first: "first";
490
+ last: "last";
491
+ }>;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ part: z.ZodString;
494
+ }, z.core.$strip>]>>;
495
+ verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
496
+ mark: z.ZodString;
497
+ which: z.ZodEnum<{
498
+ first: "first";
499
+ last: "last";
500
+ }>;
501
+ }, z.core.$strip>, z.ZodObject<{
502
+ part: z.ZodString;
503
+ }, z.core.$strip>]>>;
504
+ }, z.core.$strip>;
505
+ }, z.core.$strip>;
506
+ export type BookViewPagination = z.infer<typeof BookViewPagination>;
507
+ export declare const BookView: z.ZodObject<{
508
+ scripts: z.ZodDefault<z.ZodEnum<{
509
+ refuse: "refuse";
510
+ sandboxed: "sandboxed";
511
+ }>>;
512
+ dir: z.ZodOptional<z.ZodEnum<{
513
+ auto: "auto";
514
+ ltr: "ltr";
515
+ rtl: "rtl";
516
+ }>>;
517
+ lang: z.ZodOptional<z.ZodString>;
518
+ fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
519
+ app: z.ZodString;
520
+ }, z.core.$strip>, z.ZodObject<{
521
+ local: z.ZodString;
522
+ fallback: z.ZodString;
523
+ }, z.core.$strip>]>>>;
524
+ css: z.ZodOptional<z.ZodString>;
525
+ title: z.ZodOptional<z.ZodString>;
526
+ html: z.ZodString;
527
+ flow: z.ZodOptional<z.ZodString>;
528
+ pagination: z.ZodOptional<z.ZodObject<{
529
+ paper: z.ZodObject<{
530
+ width: z.ZodNumber;
531
+ height: z.ZodNumber;
532
+ }, z.core.$strip>;
533
+ margin: z.ZodObject<{
534
+ top: z.ZodNumber;
535
+ bottom: z.ZodNumber;
536
+ inner: z.ZodNumber;
537
+ outer: z.ZodNumber;
538
+ }, z.core.$strip>;
539
+ columnGap: z.ZodNumber;
540
+ direction: z.ZodEnum<{
541
+ ltr: "ltr";
542
+ rtl: "rtl";
543
+ }>;
544
+ numbering: z.ZodObject<{
545
+ frontMatter: z.ZodEnum<{
546
+ arabic: "arabic";
547
+ "roman-lower": "roman-lower";
548
+ "roman-upper": "roman-upper";
549
+ hebrew: "hebrew";
550
+ }>;
551
+ body: z.ZodEnum<{
552
+ arabic: "arabic";
553
+ "roman-lower": "roman-lower";
554
+ "roman-upper": "roman-upper";
555
+ hebrew: "hebrew";
556
+ }>;
557
+ }, z.core.$strip>;
558
+ rectoOpenings: z.ZodBoolean;
559
+ orphans: z.ZodNumber;
560
+ widows: z.ZodNumber;
561
+ parents: z.ZodArray<z.ZodObject<{
562
+ name: z.ZodString;
563
+ basedOn: z.ZodOptional<z.ZodString>;
564
+ margin: z.ZodOptional<z.ZodObject<{
565
+ top: z.ZodNumber;
566
+ bottom: z.ZodNumber;
567
+ inner: z.ZodNumber;
568
+ outer: z.ZodNumber;
569
+ }, z.core.$strip>>;
570
+ head: z.ZodOptional<z.ZodString>;
571
+ foot: z.ZodOptional<z.ZodString>;
572
+ }, z.core.$strip>>;
573
+ endnotePlacement: z.ZodEnum<{
574
+ book: "book";
575
+ chapter: "chapter";
576
+ }>;
577
+ contents: z.ZodObject<{
578
+ pageNumbers: z.ZodBoolean;
579
+ depth: z.ZodNumber;
580
+ }, z.core.$strip>;
581
+ runningHead: z.ZodObject<{
582
+ recto: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
583
+ mark: z.ZodString;
584
+ which: z.ZodEnum<{
585
+ first: "first";
586
+ last: "last";
587
+ }>;
588
+ }, z.core.$strip>, z.ZodObject<{
589
+ part: z.ZodString;
590
+ }, z.core.$strip>]>>;
591
+ verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
592
+ mark: z.ZodString;
593
+ which: z.ZodEnum<{
594
+ first: "first";
595
+ last: "last";
596
+ }>;
597
+ }, z.core.$strip>, z.ZodObject<{
598
+ part: z.ZodString;
599
+ }, z.core.$strip>]>>;
600
+ }, z.core.$strip>;
601
+ }, z.core.$strip>>;
602
+ }, z.core.$strip>;
603
+ export type BookView = z.infer<typeof BookView>;
604
+ export type BookViewInput = z.input<typeof BookView>;
605
+ export declare const Book: z.ZodPipe<z.ZodPreprocess<z.ZodPipe<z.ZodObject<{
606
+ title: z.ZodString;
607
+ authors: z.ZodOptional<z.ZodArray<z.ZodString>>;
608
+ subject: z.ZodOptional<z.ZodString>;
609
+ mode: z.ZodEnum<{
610
+ continuous: "continuous";
611
+ paginated: "paginated";
612
+ }>;
613
+ page: z.ZodOptional<z.ZodObject<{
614
+ paper: z.ZodUnion<readonly [z.ZodEnum<{
615
+ letter: "letter";
616
+ legal: "legal";
617
+ tabloid: "tabloid";
618
+ a3: "a3";
619
+ a4: "a4";
620
+ a5: "a5";
621
+ "business-card-us": "business-card-us";
622
+ "business-card-eu": "business-card-eu";
623
+ "business-card-square-us": "business-card-square-us";
624
+ "business-card-slim-us": "business-card-slim-us";
625
+ "postcard-4x6": "postcard-4x6";
626
+ "postcard-5x7": "postcard-5x7";
627
+ "postcard-6x9": "postcard-6x9";
628
+ "postcard-6x11": "postcard-6x11";
629
+ "card-square-4in": "card-square-4in";
630
+ "half-letter": "half-letter";
631
+ a6: "a6";
632
+ dl: "dl";
633
+ "rack-card-4x9": "rack-card-4x9";
634
+ "rack-card-3.5x8.5": "rack-card-3.5x8.5";
635
+ "poster-12x18": "poster-12x18";
636
+ "poster-16x20": "poster-16x20";
637
+ "poster-18x24": "poster-18x24";
638
+ "poster-24x36": "poster-24x36";
639
+ a2: "a2";
640
+ a1: "a1";
641
+ a0: "a0";
642
+ }>, z.ZodObject<{
643
+ width: z.ZodNumber;
644
+ height: z.ZodNumber;
645
+ unit: z.ZodEnum<{
646
+ mm: "mm";
647
+ in: "in";
648
+ pt: "pt";
649
+ }>;
650
+ }, z.core.$strip>]>;
651
+ orientation: z.ZodDefault<z.ZodEnum<{
652
+ portrait: "portrait";
653
+ landscape: "landscape";
654
+ }>>;
655
+ margin: z.ZodObject<{
656
+ top: z.ZodNumber;
657
+ bottom: z.ZodNumber;
658
+ inner: z.ZodNumber;
659
+ outer: z.ZodNumber;
660
+ }, z.core.$strip>;
661
+ columnGap: z.ZodDefault<z.ZodNumber>;
662
+ }, z.core.$strip>>;
663
+ scripts: z.ZodDefault<z.ZodEnum<{
664
+ refuse: "refuse";
665
+ sandboxed: "sandboxed";
666
+ }>>;
667
+ dir: z.ZodOptional<z.ZodEnum<{
668
+ auto: "auto";
669
+ ltr: "ltr";
670
+ rtl: "rtl";
671
+ }>>;
672
+ lang: z.ZodOptional<z.ZodString>;
673
+ frontMatter: z.ZodDefault<z.ZodArray<z.ZodType<BookItem, unknown, z.core.$ZodTypeInternals<BookItem, unknown>>>>;
674
+ body: z.ZodOptional<z.ZodArray<z.ZodType<BookItem, unknown, z.core.$ZodTypeInternals<BookItem, unknown>>>>;
675
+ endMatter: z.ZodDefault<z.ZodArray<z.ZodType<BookItem, unknown, z.core.$ZodTypeInternals<BookItem, unknown>>>>;
676
+ chapters: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
677
+ pages: z.ZodArray<z.ZodObject<{
678
+ html: z.ZodString;
679
+ }, z.core.$strip>>;
680
+ title: z.ZodOptional<z.ZodString>;
681
+ contents: z.ZodDefault<z.ZodBoolean>;
682
+ opens: z.ZodOptional<z.ZodEnum<{
683
+ any: "any";
684
+ recto: "recto";
685
+ verso: "verso";
686
+ }>>;
687
+ parents: z.ZodOptional<z.ZodObject<{
688
+ opener: z.ZodOptional<z.ZodString>;
689
+ recto: z.ZodOptional<z.ZodString>;
690
+ verso: z.ZodOptional<z.ZodString>;
691
+ blank: z.ZodOptional<z.ZodString>;
692
+ fixed: z.ZodOptional<z.ZodString>;
693
+ }, z.core.$strip>>;
694
+ kind: z.ZodLiteral<"designed">;
695
+ }, z.core.$strip>, z.ZodObject<{
696
+ template: z.ZodString;
697
+ pages: z.ZodArray<z.ZodObject<{
698
+ template: z.ZodOptional<z.ZodString>;
699
+ regions: z.ZodRecord<z.ZodString, z.ZodString>;
700
+ }, z.core.$strip>>;
701
+ title: z.ZodOptional<z.ZodString>;
702
+ contents: z.ZodDefault<z.ZodBoolean>;
703
+ opens: z.ZodOptional<z.ZodEnum<{
704
+ any: "any";
705
+ recto: "recto";
706
+ verso: "verso";
707
+ }>>;
708
+ parents: z.ZodOptional<z.ZodObject<{
709
+ opener: z.ZodOptional<z.ZodString>;
710
+ recto: z.ZodOptional<z.ZodString>;
711
+ verso: z.ZodOptional<z.ZodString>;
712
+ blank: z.ZodOptional<z.ZodString>;
713
+ fixed: z.ZodOptional<z.ZodString>;
714
+ }, z.core.$strip>>;
715
+ kind: z.ZodLiteral<"templated">;
716
+ }, z.core.$strip>, z.ZodObject<{
717
+ title: z.ZodOptional<z.ZodString>;
718
+ contents: z.ZodDefault<z.ZodBoolean>;
719
+ opens: z.ZodOptional<z.ZodEnum<{
720
+ any: "any";
721
+ recto: "recto";
722
+ verso: "verso";
723
+ }>>;
724
+ parents: z.ZodOptional<z.ZodObject<{
725
+ opener: z.ZodOptional<z.ZodString>;
726
+ recto: z.ZodOptional<z.ZodString>;
727
+ verso: z.ZodOptional<z.ZodString>;
728
+ blank: z.ZodOptional<z.ZodString>;
729
+ fixed: z.ZodOptional<z.ZodString>;
730
+ }, z.core.$strip>>;
731
+ kind: z.ZodLiteral<"placed">;
732
+ placement: z.ZodObject<{
733
+ kind: z.ZodEnum<{
734
+ deck: "deck";
735
+ page: "page";
736
+ paper: "paper";
737
+ book: "book";
738
+ media: "media";
739
+ shot: "shot";
740
+ }>;
741
+ address: z.ZodString;
742
+ page: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
743
+ box: z.ZodOptional<z.ZodEnum<{
744
+ media: "media";
745
+ bleed: "bleed";
746
+ crop: "crop";
747
+ trim: "trim";
748
+ art: "art";
749
+ }>>;
750
+ crop: z.ZodOptional<z.ZodObject<{
751
+ top: z.ZodOptional<z.ZodString>;
752
+ right: z.ZodOptional<z.ZodString>;
753
+ bottom: z.ZodOptional<z.ZodString>;
754
+ left: z.ZodOptional<z.ZodString>;
755
+ }, z.core.$strip>>;
756
+ fit: z.ZodOptional<z.ZodEnum<{
757
+ width: "width";
758
+ contain: "contain";
759
+ cover: "cover";
760
+ focus: "focus";
761
+ }>>;
762
+ alt: z.ZodOptional<z.ZodObject<{
763
+ text: z.ZodString;
764
+ lang: z.ZodOptional<z.ZodString>;
765
+ dir: z.ZodOptional<z.ZodEnum<{
766
+ auto: "auto";
767
+ ltr: "ltr";
768
+ rtl: "rtl";
769
+ }>>;
770
+ }, z.core.$strip>>;
771
+ }, z.core.$strip>;
772
+ }, z.core.$strip>, z.ZodObject<{
773
+ title: z.ZodString;
774
+ html: z.ZodString;
775
+ runningHead: z.ZodOptional<z.ZodString>;
776
+ opens: z.ZodOptional<z.ZodEnum<{
777
+ any: "any";
778
+ recto: "recto";
779
+ verso: "verso";
780
+ }>>;
781
+ parents: z.ZodOptional<z.ZodObject<{
782
+ opener: z.ZodOptional<z.ZodString>;
783
+ recto: z.ZodOptional<z.ZodString>;
784
+ verso: z.ZodOptional<z.ZodString>;
785
+ blank: z.ZodOptional<z.ZodString>;
786
+ fixed: z.ZodOptional<z.ZodString>;
787
+ }, z.core.$strip>>;
788
+ kind: z.ZodOptional<z.ZodLiteral<"chapter">>;
789
+ }, z.core.$strip>], "kind">>>;
790
+ parentPages: z.ZodDefault<z.ZodArray<z.ZodObject<{
791
+ name: z.ZodString;
792
+ basedOn: z.ZodOptional<z.ZodString>;
793
+ margin: z.ZodOptional<z.ZodObject<{
794
+ top: z.ZodNumber;
795
+ bottom: z.ZodNumber;
796
+ inner: z.ZodNumber;
797
+ outer: z.ZodNumber;
798
+ }, z.core.$strip>>;
799
+ head: z.ZodOptional<z.ZodString>;
800
+ foot: z.ZodOptional<z.ZodString>;
801
+ }, z.core.$strip>>>;
802
+ templates: z.ZodDefault<z.ZodArray<z.ZodObject<{
803
+ name: z.ZodString;
804
+ html: z.ZodString;
805
+ parents: z.ZodOptional<z.ZodObject<{
806
+ opener: z.ZodOptional<z.ZodString>;
807
+ recto: z.ZodOptional<z.ZodString>;
808
+ verso: z.ZodOptional<z.ZodString>;
809
+ blank: z.ZodOptional<z.ZodString>;
810
+ fixed: z.ZodOptional<z.ZodString>;
811
+ }, z.core.$strip>>;
812
+ }, z.core.$strip>>>;
813
+ slots: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
814
+ key: z.ZodString;
815
+ label: z.ZodString;
816
+ type: z.ZodEnum<{
817
+ text: "text";
818
+ image: "image";
819
+ phone: "phone";
820
+ email: "email";
821
+ link: "link";
822
+ qr: "qr";
823
+ }>;
824
+ required: z.ZodDefault<z.ZodBoolean>;
825
+ placeholder: z.ZodOptional<z.ZodString>;
826
+ overflow: z.ZodDefault<z.ZodEnum<{
827
+ refuse: "refuse";
828
+ shrink: "shrink";
829
+ truncate: "truncate";
830
+ wrap: "wrap";
831
+ }>>;
832
+ minSize: z.ZodOptional<z.ZodNumber>;
833
+ }, z.core.$strip>, z.ZodTransform<{
834
+ key: string;
835
+ label: string;
836
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
837
+ required: boolean;
838
+ overflow: "refuse" | "shrink" | "truncate" | "wrap";
839
+ placeholder?: string | undefined;
840
+ minSize?: number | undefined;
841
+ }, {
842
+ key: string;
843
+ label: string;
844
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
845
+ required: boolean;
846
+ overflow: "refuse" | "shrink" | "truncate" | "wrap";
847
+ placeholder?: string | undefined;
848
+ minSize?: number | undefined;
849
+ }>>>>;
850
+ fonts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
851
+ app: z.ZodString;
852
+ }, z.core.$strip>, z.ZodObject<{
853
+ local: z.ZodString;
854
+ fallback: z.ZodString;
855
+ }, z.core.$strip>]>>>;
856
+ css: z.ZodOptional<z.ZodString>;
857
+ numbering: z.ZodDefault<z.ZodObject<{
858
+ frontMatter: z.ZodOptional<z.ZodEnum<{
859
+ arabic: "arabic";
860
+ "roman-lower": "roman-lower";
861
+ "roman-upper": "roman-upper";
862
+ hebrew: "hebrew";
863
+ }>>;
864
+ body: z.ZodOptional<z.ZodEnum<{
865
+ arabic: "arabic";
866
+ "roman-lower": "roman-lower";
867
+ "roman-upper": "roman-upper";
868
+ hebrew: "hebrew";
869
+ }>>;
870
+ }, z.core.$strip>>;
871
+ footnotes: z.ZodDefault<z.ZodObject<{
872
+ marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
873
+ arabic: "arabic";
874
+ "roman-lower": "roman-lower";
875
+ "roman-upper": "roman-upper";
876
+ hebrew: "hebrew";
877
+ }>, z.ZodLiteral<"symbols">]>>;
878
+ restart: z.ZodDefault<z.ZodEnum<{
879
+ book: "book";
880
+ chapter: "chapter";
881
+ }>>;
882
+ }, z.core.$strip>>;
883
+ endnotes: z.ZodDefault<z.ZodObject<{
884
+ marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
885
+ arabic: "arabic";
886
+ "roman-lower": "roman-lower";
887
+ "roman-upper": "roman-upper";
888
+ hebrew: "hebrew";
889
+ }>, z.ZodLiteral<"symbols">]>>;
890
+ placement: z.ZodDefault<z.ZodEnum<{
891
+ book: "book";
892
+ chapter: "chapter";
893
+ }>>;
894
+ title: z.ZodOptional<z.ZodString>;
895
+ }, z.core.$strip>>;
896
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
897
+ name: z.ZodString;
898
+ placement: z.ZodOptional<z.ZodEnum<{
899
+ page: "page";
900
+ book: "book";
901
+ chapter: "chapter";
902
+ part: "part";
903
+ }>>;
904
+ numbering: z.ZodOptional<z.ZodEnum<{
905
+ book: "book";
906
+ chapter: "chapter";
907
+ part: "part";
908
+ }>>;
909
+ marker: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
910
+ arabic: "arabic";
911
+ "roman-lower": "roman-lower";
912
+ "roman-upper": "roman-upper";
913
+ hebrew: "hebrew";
914
+ }>, z.ZodLiteral<"symbols">]>>;
915
+ title: z.ZodOptional<z.ZodString>;
916
+ }, z.core.$strip>>>;
917
+ rectoOpenings: z.ZodDefault<z.ZodBoolean>;
918
+ orphans: z.ZodDefault<z.ZodNumber>;
919
+ widows: z.ZodDefault<z.ZodNumber>;
920
+ runningHead: z.ZodDefault<z.ZodObject<{
921
+ recto: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
922
+ mark: z.ZodString;
923
+ which: z.ZodEnum<{
924
+ first: "first";
925
+ last: "last";
926
+ }>;
927
+ }, z.core.$strip>, z.ZodObject<{
928
+ part: z.ZodString;
929
+ }, z.core.$strip>]>>;
930
+ verso: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"title">, z.ZodObject<{
931
+ mark: z.ZodString;
932
+ which: z.ZodEnum<{
933
+ first: "first";
934
+ last: "last";
935
+ }>;
936
+ }, z.core.$strip>, z.ZodObject<{
937
+ part: z.ZodString;
938
+ }, z.core.$strip>]>>;
939
+ }, z.core.$strip>>;
940
+ contents: z.ZodDefault<z.ZodObject<{
941
+ pageNumbers: z.ZodDefault<z.ZodBoolean>;
942
+ depth: z.ZodDefault<z.ZodNumber>;
943
+ }, z.core.$strip>>;
944
+ }, z.core.$strip>, z.ZodTransform<{
945
+ body: BookItem[];
946
+ bodyKey: "body" | "chapters";
947
+ numbering: {
948
+ frontMatter: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
949
+ body: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
950
+ };
951
+ footnotes: {
952
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
953
+ restart: "book" | "chapter";
954
+ };
955
+ endnotes: {
956
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
683
957
  title: string;
684
- html: string;
685
- runningHead?: string | undefined;
686
- opens?: "any" | "recto" | "verso" | undefined;
687
- parents?: {
688
- opener?: string | undefined;
689
- recto?: string | undefined;
690
- verso?: string | undefined;
691
- blank?: string | undefined;
692
- fixed?: string | undefined;
693
- } | undefined;
694
- kind?: "chapter" | undefined;
695
- })[];
958
+ placement: "book" | "chapter";
959
+ };
960
+ notes: ResolvedNoteSeries[];
961
+ title: string;
962
+ mode: "continuous" | "paginated";
963
+ scripts: "refuse" | "sandboxed";
964
+ frontMatter: BookItem[];
965
+ endMatter: BookItem[];
696
966
  parentPages: {
697
967
  name: string;
698
968
  basedOn?: string | undefined;
@@ -723,16 +993,22 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
723
993
  recto: "title" | {
724
994
  mark: string;
725
995
  which: "first" | "last";
996
+ } | {
997
+ part: string;
726
998
  };
727
999
  verso: "title" | {
728
1000
  mark: string;
729
1001
  which: "first" | "last";
1002
+ } | {
1003
+ part: string;
730
1004
  };
731
1005
  };
732
1006
  contents: {
733
1007
  pageNumbers: boolean;
734
1008
  depth: number;
735
1009
  };
1010
+ authors?: string[] | undefined;
1011
+ subject?: string | undefined;
736
1012
  page?: {
737
1013
  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" | {
738
1014
  width: number;
@@ -748,12 +1024,12 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
748
1024
  };
749
1025
  columnGap: number;
750
1026
  } | undefined;
751
- dir?: "ltr" | "rtl" | "auto" | undefined;
1027
+ dir?: "auto" | "ltr" | "rtl" | undefined;
752
1028
  lang?: string | undefined;
753
1029
  slots?: {
754
1030
  key: string;
755
1031
  label: string;
756
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
1032
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
757
1033
  required: boolean;
758
1034
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
759
1035
  placeholder?: string | undefined;
@@ -770,14 +1046,23 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
770
1046
  title: string;
771
1047
  mode: "continuous" | "paginated";
772
1048
  scripts: "refuse" | "sandboxed";
773
- frontMatter: ({
774
- pages: {
775
- html: string;
776
- }[];
777
- contents: boolean;
778
- kind: "designed";
779
- title?: string | undefined;
780
- opens?: "any" | "recto" | "verso" | undefined;
1049
+ frontMatter: BookItem[];
1050
+ endMatter: BookItem[];
1051
+ parentPages: {
1052
+ name: string;
1053
+ basedOn?: string | undefined;
1054
+ margin?: {
1055
+ top: number;
1056
+ bottom: number;
1057
+ inner: number;
1058
+ outer: number;
1059
+ } | undefined;
1060
+ head?: string | undefined;
1061
+ foot?: string | undefined;
1062
+ }[];
1063
+ templates: {
1064
+ name: string;
1065
+ html: string;
781
1066
  parents?: {
782
1067
  opener?: string | undefined;
783
1068
  recto?: string | undefined;
@@ -785,25 +1070,74 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
785
1070
  blank?: string | undefined;
786
1071
  fixed?: string | undefined;
787
1072
  } | undefined;
788
- } | {
789
- template: string;
1073
+ }[];
1074
+ numbering: {
1075
+ frontMatter?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | undefined;
1076
+ body?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | undefined;
1077
+ };
1078
+ footnotes: {
1079
+ restart: "book" | "chapter";
1080
+ marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
1081
+ };
1082
+ endnotes: {
1083
+ placement: "book" | "chapter";
1084
+ marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
1085
+ title?: string | undefined;
1086
+ };
1087
+ notes: {
1088
+ name: string;
1089
+ placement?: "page" | "book" | "chapter" | "part" | undefined;
1090
+ numbering?: "book" | "chapter" | "part" | undefined;
1091
+ marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
1092
+ title?: string | undefined;
1093
+ }[];
1094
+ rectoOpenings: boolean;
1095
+ orphans: number;
1096
+ widows: number;
1097
+ runningHead: {
1098
+ recto: "title" | {
1099
+ mark: string;
1100
+ which: "first" | "last";
1101
+ } | {
1102
+ part: string;
1103
+ };
1104
+ verso: "title" | {
1105
+ mark: string;
1106
+ which: "first" | "last";
1107
+ } | {
1108
+ part: string;
1109
+ };
1110
+ };
1111
+ contents: {
1112
+ pageNumbers: boolean;
1113
+ depth: number;
1114
+ };
1115
+ authors?: string[] | undefined;
1116
+ subject?: string | undefined;
1117
+ page?: {
1118
+ 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" | {
1119
+ width: number;
1120
+ height: number;
1121
+ unit: "mm" | "in" | "pt";
1122
+ };
1123
+ orientation: "portrait" | "landscape";
1124
+ margin: {
1125
+ top: number;
1126
+ bottom: number;
1127
+ inner: number;
1128
+ outer: number;
1129
+ };
1130
+ columnGap: number;
1131
+ } | undefined;
1132
+ dir?: "auto" | "ltr" | "rtl" | undefined;
1133
+ lang?: string | undefined;
1134
+ body?: BookItem[] | undefined;
1135
+ chapters?: ({
790
1136
  pages: {
791
- regions: Record<string, string>;
792
- template?: string | undefined;
1137
+ html: string;
793
1138
  }[];
794
1139
  contents: boolean;
795
- kind: "templated";
796
- title?: string | undefined;
797
- opens?: "any" | "recto" | "verso" | undefined;
798
- parents?: {
799
- opener?: string | undefined;
800
- recto?: string | undefined;
801
- verso?: string | undefined;
802
- blank?: string | undefined;
803
- fixed?: string | undefined;
804
- } | undefined;
805
- } | {
806
- kind: "contents";
1140
+ kind: "designed";
807
1141
  title?: string | undefined;
808
1142
  opens?: "any" | "recto" | "verso" | undefined;
809
1143
  parents?: {
@@ -814,25 +1148,13 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
814
1148
  fixed?: string | undefined;
815
1149
  } | undefined;
816
1150
  } | {
817
- contents: boolean;
818
- html: string;
819
- title?: string | undefined;
820
- opens?: "any" | "recto" | "verso" | undefined;
821
- parents?: {
822
- opener?: string | undefined;
823
- recto?: string | undefined;
824
- verso?: string | undefined;
825
- blank?: string | undefined;
826
- fixed?: string | undefined;
827
- } | undefined;
828
- kind?: "front" | undefined;
829
- })[];
830
- chapters: ({
1151
+ template: string;
831
1152
  pages: {
832
- html: string;
1153
+ regions: Record<string, string>;
1154
+ template?: string | undefined;
833
1155
  }[];
834
1156
  contents: boolean;
835
- kind: "designed";
1157
+ kind: "templated";
836
1158
  title?: string | undefined;
837
1159
  opens?: "any" | "recto" | "verso" | undefined;
838
1160
  parents?: {
@@ -843,13 +1165,26 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
843
1165
  fixed?: string | undefined;
844
1166
  } | undefined;
845
1167
  } | {
846
- template: string;
847
- pages: {
848
- regions: Record<string, string>;
849
- template?: string | undefined;
850
- }[];
851
1168
  contents: boolean;
852
- kind: "templated";
1169
+ kind: "placed";
1170
+ placement: {
1171
+ kind: "deck" | "page" | "paper" | "book" | "media" | "shot";
1172
+ address: string;
1173
+ page?: string | number | undefined;
1174
+ box?: "media" | "bleed" | "crop" | "trim" | "art" | undefined;
1175
+ crop?: {
1176
+ top?: string | undefined;
1177
+ right?: string | undefined;
1178
+ bottom?: string | undefined;
1179
+ left?: string | undefined;
1180
+ } | undefined;
1181
+ fit?: "width" | "contain" | "cover" | "focus" | undefined;
1182
+ alt?: {
1183
+ text: string;
1184
+ lang?: string | undefined;
1185
+ dir?: "auto" | "ltr" | "rtl" | undefined;
1186
+ } | undefined;
1187
+ };
853
1188
  title?: string | undefined;
854
1189
  opens?: "any" | "recto" | "verso" | undefined;
855
1190
  parents?: {
@@ -872,7 +1207,44 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
872
1207
  fixed?: string | undefined;
873
1208
  } | undefined;
874
1209
  kind?: "chapter" | undefined;
875
- })[];
1210
+ })[] | undefined;
1211
+ slots?: {
1212
+ key: string;
1213
+ label: string;
1214
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
1215
+ required: boolean;
1216
+ overflow: "refuse" | "shrink" | "truncate" | "wrap";
1217
+ placeholder?: string | undefined;
1218
+ minSize?: number | undefined;
1219
+ }[] | undefined;
1220
+ fonts?: ({
1221
+ app: string;
1222
+ } | {
1223
+ local: string;
1224
+ fallback: string;
1225
+ })[] | undefined;
1226
+ css?: string | undefined;
1227
+ }>>, unknown>, z.ZodTransform<{
1228
+ body: BookItem[];
1229
+ numbering: {
1230
+ frontMatter: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
1231
+ body: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
1232
+ };
1233
+ footnotes: {
1234
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
1235
+ restart: "book" | "chapter";
1236
+ };
1237
+ endnotes: {
1238
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
1239
+ title: string;
1240
+ placement: "book" | "chapter";
1241
+ };
1242
+ notes: ResolvedNoteSeries[];
1243
+ title: string;
1244
+ mode: "continuous" | "paginated";
1245
+ scripts: "refuse" | "sandboxed";
1246
+ frontMatter: BookItem[];
1247
+ endMatter: BookItem[];
876
1248
  parentPages: {
877
1249
  name: string;
878
1250
  basedOn?: string | undefined;
@@ -896,19 +1268,107 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
896
1268
  fixed?: string | undefined;
897
1269
  } | undefined;
898
1270
  }[];
1271
+ rectoOpenings: boolean;
1272
+ orphans: number;
1273
+ widows: number;
1274
+ runningHead: {
1275
+ recto: "title" | {
1276
+ mark: string;
1277
+ which: "first" | "last";
1278
+ } | {
1279
+ part: string;
1280
+ };
1281
+ verso: "title" | {
1282
+ mark: string;
1283
+ which: "first" | "last";
1284
+ } | {
1285
+ part: string;
1286
+ };
1287
+ };
1288
+ contents: {
1289
+ pageNumbers: boolean;
1290
+ depth: number;
1291
+ };
1292
+ authors?: string[] | undefined;
1293
+ subject?: string | undefined;
1294
+ page?: {
1295
+ 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" | {
1296
+ width: number;
1297
+ height: number;
1298
+ unit: "mm" | "in" | "pt";
1299
+ };
1300
+ orientation: "portrait" | "landscape";
1301
+ margin: {
1302
+ top: number;
1303
+ bottom: number;
1304
+ inner: number;
1305
+ outer: number;
1306
+ };
1307
+ columnGap: number;
1308
+ } | undefined;
1309
+ dir?: "auto" | "ltr" | "rtl" | undefined;
1310
+ lang?: string | undefined;
1311
+ slots?: {
1312
+ key: string;
1313
+ label: string;
1314
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
1315
+ required: boolean;
1316
+ overflow: "refuse" | "shrink" | "truncate" | "wrap";
1317
+ placeholder?: string | undefined;
1318
+ minSize?: number | undefined;
1319
+ }[] | undefined;
1320
+ fonts?: ({
1321
+ app: string;
1322
+ } | {
1323
+ local: string;
1324
+ fallback: string;
1325
+ })[] | undefined;
1326
+ css?: string | undefined;
1327
+ }, {
1328
+ body: BookItem[];
1329
+ bodyKey: "body" | "chapters";
899
1330
  numbering: {
900
- frontMatter?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | undefined;
901
- body?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | undefined;
1331
+ frontMatter: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
1332
+ body: "arabic" | "roman-lower" | "roman-upper" | "hebrew";
902
1333
  };
903
1334
  footnotes: {
904
- restart: "chapter" | "book";
905
- marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
1335
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
1336
+ restart: "book" | "chapter";
906
1337
  };
907
1338
  endnotes: {
908
- placement: "chapter" | "book";
909
- marker?: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols" | undefined;
910
- title?: string | undefined;
1339
+ marker: "arabic" | "roman-lower" | "roman-upper" | "hebrew" | "symbols";
1340
+ title: string;
1341
+ placement: "book" | "chapter";
911
1342
  };
1343
+ notes: ResolvedNoteSeries[];
1344
+ title: string;
1345
+ mode: "continuous" | "paginated";
1346
+ scripts: "refuse" | "sandboxed";
1347
+ frontMatter: BookItem[];
1348
+ endMatter: BookItem[];
1349
+ parentPages: {
1350
+ name: string;
1351
+ basedOn?: string | undefined;
1352
+ margin?: {
1353
+ top: number;
1354
+ bottom: number;
1355
+ inner: number;
1356
+ outer: number;
1357
+ } | undefined;
1358
+ head?: string | undefined;
1359
+ foot?: string | undefined;
1360
+ }[];
1361
+ templates: {
1362
+ name: string;
1363
+ html: string;
1364
+ parents?: {
1365
+ opener?: string | undefined;
1366
+ recto?: string | undefined;
1367
+ verso?: string | undefined;
1368
+ blank?: string | undefined;
1369
+ fixed?: string | undefined;
1370
+ } | undefined;
1371
+ }[];
912
1372
  rectoOpenings: boolean;
913
1373
  orphans: number;
914
1374
  widows: number;
@@ -916,16 +1376,22 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
916
1376
  recto: "title" | {
917
1377
  mark: string;
918
1378
  which: "first" | "last";
1379
+ } | {
1380
+ part: string;
919
1381
  };
920
1382
  verso: "title" | {
921
1383
  mark: string;
922
1384
  which: "first" | "last";
1385
+ } | {
1386
+ part: string;
923
1387
  };
924
1388
  };
925
1389
  contents: {
926
1390
  pageNumbers: boolean;
927
1391
  depth: number;
928
1392
  };
1393
+ authors?: string[] | undefined;
1394
+ subject?: string | undefined;
929
1395
  page?: {
930
1396
  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" | {
931
1397
  width: number;
@@ -941,12 +1407,12 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
941
1407
  };
942
1408
  columnGap: number;
943
1409
  } | undefined;
944
- dir?: "ltr" | "rtl" | "auto" | undefined;
1410
+ dir?: "auto" | "ltr" | "rtl" | undefined;
945
1411
  lang?: string | undefined;
946
1412
  slots?: {
947
1413
  key: string;
948
1414
  label: string;
949
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
1415
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
950
1416
  required: boolean;
951
1417
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
952
1418
  placeholder?: string | undefined;
@@ -961,11 +1427,7 @@ export declare const Book: z.ZodPipe<z.ZodObject<{
961
1427
  css?: string | undefined;
962
1428
  }>>;
963
1429
  export type Book = z.infer<typeof Book>;
964
- export type BookInput = z.input<typeof Book>;
1430
+ export type BookInput = z.input<typeof BookShape>;
965
1431
  export declare function resolveBookPagination(book: Book): BookViewPagination | undefined;
966
- export declare function noteMarkerIssues(book: Book, used: {
967
- footnotes: boolean;
968
- endnotes: boolean;
969
- }): string[];
970
1432
  //#endregion
971
- export { BookChapterEntry, BookContents, BookFrontMatterEntry, BookOpens, BookSection, BookSectionParents, BookTemplate, Chapter, DesignedPage, DesignedSection, REGION_NAME, TemplatedPage, TemplatedSection, isBookContents, isChapter, isDesignedSection, isTemplatedSection };
1433
+ export { BookChapterEntry, BookContents, type BookDivision, type BookDivisions, BookFrontMatterEntry, BookItem, BookOpens, BookSection, type BookSectionEntry, BookSectionParents, BookTemplate, Chapter, DesignedPage, DesignedSection, MAX_PART_DEPTH, Part, PlacedSection, REGION_NAME, TemplatedPage, TemplatedSection, bookSections, isBookContents, isChapter, isDesignedSection, isPart, isPlacedSection, isTemplatedSection };