@vivliostyle/cli 5.9.0 → 6.1.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 (150) hide show
  1. package/dist/browser.d.ts +1 -1
  2. package/dist/browser.d.ts.map +1 -1
  3. package/dist/browser.js +21 -63
  4. package/dist/browser.js.map +1 -1
  5. package/dist/build.d.ts +1 -1
  6. package/dist/build.d.ts.map +1 -1
  7. package/dist/build.js +46 -47
  8. package/dist/build.js.map +1 -1
  9. package/dist/builder.d.ts +5 -6
  10. package/dist/builder.d.ts.map +1 -1
  11. package/dist/builder.js +124 -103
  12. package/dist/builder.js.map +1 -1
  13. package/dist/cli.js +5 -10
  14. package/dist/cli.js.map +1 -1
  15. package/dist/commands/build.js +10 -16
  16. package/dist/commands/build.js.map +1 -1
  17. package/dist/commands/build.parser.d.ts +3 -3
  18. package/dist/commands/build.parser.d.ts.map +1 -1
  19. package/dist/commands/build.parser.js +13 -21
  20. package/dist/commands/build.parser.js.map +1 -1
  21. package/dist/commands/init.js +7 -9
  22. package/dist/commands/init.js.map +1 -1
  23. package/dist/commands/init.parser.d.ts +2 -2
  24. package/dist/commands/init.parser.d.ts.map +1 -1
  25. package/dist/commands/init.parser.js +3 -10
  26. package/dist/commands/init.parser.js.map +1 -1
  27. package/dist/commands/preview.js +8 -11
  28. package/dist/commands/preview.js.map +1 -1
  29. package/dist/commands/preview.parser.d.ts +2 -2
  30. package/dist/commands/preview.parser.d.ts.map +1 -1
  31. package/dist/commands/preview.parser.js +5 -12
  32. package/dist/commands/preview.parser.js.map +1 -1
  33. package/dist/config.d.ts +29 -18
  34. package/dist/config.d.ts.map +1 -1
  35. package/dist/config.js +285 -251
  36. package/dist/config.js.map +1 -1
  37. package/dist/const.d.ts +2 -0
  38. package/dist/const.d.ts.map +1 -1
  39. package/dist/const.js +12 -15
  40. package/dist/const.js.map +1 -1
  41. package/dist/container.js +31 -41
  42. package/dist/container.js.map +1 -1
  43. package/dist/epub.d.ts.map +1 -1
  44. package/dist/epub.js +10 -17
  45. package/dist/epub.js.map +1 -1
  46. package/dist/html.d.ts +3 -3
  47. package/dist/html.d.ts.map +1 -1
  48. package/dist/html.js +21 -30
  49. package/dist/html.js.map +1 -1
  50. package/dist/index.d.ts +5 -5
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +3 -9
  53. package/dist/index.js.map +1 -1
  54. package/dist/init.js +12 -19
  55. package/dist/init.js.map +1 -1
  56. package/dist/input.d.ts +2 -2
  57. package/dist/input.d.ts.map +1 -1
  58. package/dist/input.js +8 -16
  59. package/dist/input.js.map +1 -1
  60. package/dist/markdown.js +9 -17
  61. package/dist/markdown.js.map +1 -1
  62. package/dist/output.d.ts +1 -1
  63. package/dist/output.d.ts.map +1 -1
  64. package/dist/output.js +6 -16
  65. package/dist/output.js.map +1 -1
  66. package/dist/pdf.d.ts +3 -3
  67. package/dist/pdf.d.ts.map +1 -1
  68. package/dist/pdf.js +66 -79
  69. package/dist/pdf.js.map +1 -1
  70. package/dist/postprocess.d.ts +5 -5
  71. package/dist/postprocess.d.ts.map +1 -1
  72. package/dist/postprocess.js +54 -81
  73. package/dist/postprocess.js.map +1 -1
  74. package/dist/preview.d.ts +1 -1
  75. package/dist/preview.d.ts.map +1 -1
  76. package/dist/preview.js +53 -58
  77. package/dist/preview.js.map +1 -1
  78. package/dist/schema/pubManifest.d.ts +2 -471
  79. package/dist/schema/pubManifest.d.ts.map +1 -1
  80. package/dist/schema/pubManifest.js +41 -42
  81. package/dist/schema/pubManifest.js.map +1 -1
  82. package/dist/schema/publication.schema.d.ts +12 -12
  83. package/dist/schema/publication.schema.d.ts.map +1 -1
  84. package/dist/schema/publication.schema.js +1 -2
  85. package/dist/schema/publication.schema.js.map +1 -1
  86. package/dist/schema/vivliostyle.d.ts +1 -1
  87. package/dist/schema/vivliostyle.d.ts.map +1 -1
  88. package/dist/schema/vivliostyle.js +7 -8
  89. package/dist/schema/vivliostyle.js.map +1 -1
  90. package/dist/schema/vivliostyleConfig.schema.d.ts +22 -9
  91. package/dist/schema/vivliostyleConfig.schema.d.ts.map +1 -1
  92. package/dist/schema/vivliostyleConfig.schema.js +1 -2
  93. package/dist/schema/vivliostyleConfig.schema.js.map +1 -1
  94. package/dist/server.d.ts +7 -6
  95. package/dist/server.d.ts.map +1 -1
  96. package/dist/server.js +26 -38
  97. package/dist/server.js.map +1 -1
  98. package/dist/theme.d.ts +6 -0
  99. package/dist/theme.d.ts.map +1 -0
  100. package/dist/theme.js +74 -0
  101. package/dist/theme.js.map +1 -0
  102. package/dist/util.d.ts +3 -3
  103. package/dist/util.d.ts.map +1 -1
  104. package/dist/util.js +80 -98
  105. package/dist/util.js.map +1 -1
  106. package/dist/webbook.d.ts +1 -1
  107. package/dist/webbook.d.ts.map +1 -1
  108. package/dist/webbook.js +40 -44
  109. package/dist/webbook.js.map +1 -1
  110. package/package.json +33 -17
  111. package/schemas/pubManifest/README.md +5 -0
  112. package/schemas/pubManifest/module/ItemList.schema.json +32 -0
  113. package/schemas/pubManifest/module/bcp.schema.json +7 -0
  114. package/schemas/pubManifest/module/context.schema.json +62 -0
  115. package/schemas/pubManifest/module/contributor-object.schema.json +42 -0
  116. package/schemas/pubManifest/module/contributor.schema.json +26 -0
  117. package/schemas/pubManifest/module/date.schema.json +7 -0
  118. package/schemas/pubManifest/module/duration.schema.json +7 -0
  119. package/schemas/pubManifest/module/item-lists.schema.json +16 -0
  120. package/schemas/pubManifest/module/language.schema.json +16 -0
  121. package/schemas/pubManifest/module/link.schema.json +60 -0
  122. package/schemas/pubManifest/module/localizable-object.schema.json +15 -0
  123. package/schemas/pubManifest/module/localizable.schema.json +26 -0
  124. package/schemas/pubManifest/module/resource.categorization.schema.json +31 -0
  125. package/schemas/pubManifest/module/strings.schema.json +9 -0
  126. package/schemas/pubManifest/module/url.schema.json +7 -0
  127. package/schemas/pubManifest/module/urls.schema.json +18 -0
  128. package/schemas/pubManifest/publication.schema.json +123 -0
  129. package/schemas/vivliostyle/vivliostyleConfig.schema.json +348 -0
  130. package/types/better-ajv-errors.d.ts +28 -0
  131. package/types/custom.d.ts +9 -0
  132. package/types/playwright.d.ts +49 -0
  133. package/dist/schema/pubManifest/module/ItemList.schema.json +0 -32
  134. package/dist/schema/pubManifest/module/bcp.schema.json +0 -7
  135. package/dist/schema/pubManifest/module/context.schema.json +0 -62
  136. package/dist/schema/pubManifest/module/contributor-object.schema.json +0 -42
  137. package/dist/schema/pubManifest/module/contributor.schema.json +0 -26
  138. package/dist/schema/pubManifest/module/date.schema.json +0 -7
  139. package/dist/schema/pubManifest/module/duration.schema.json +0 -7
  140. package/dist/schema/pubManifest/module/item-lists.schema.json +0 -16
  141. package/dist/schema/pubManifest/module/language.schema.json +0 -16
  142. package/dist/schema/pubManifest/module/link.schema.json +0 -60
  143. package/dist/schema/pubManifest/module/localizable-object.schema.json +0 -15
  144. package/dist/schema/pubManifest/module/localizable.schema.json +0 -26
  145. package/dist/schema/pubManifest/module/resource.categorization.schema.json +0 -31
  146. package/dist/schema/pubManifest/module/strings.schema.json +0 -9
  147. package/dist/schema/pubManifest/module/url.schema.json +0 -7
  148. package/dist/schema/pubManifest/module/urls.schema.json +0 -18
  149. package/dist/schema/pubManifest/publication.schema.json +0 -123
  150. package/dist/schema/vivliostyle/vivliostyleConfig.schema.json +0 -296
@@ -1,473 +1,4 @@
1
- import publicationSchema from './pubManifest/publication.schema.json';
2
- export declare const publicationSchemas: readonly [{
3
- $schema: string;
4
- $id: string;
5
- title: string;
6
- type: string;
7
- pattern: string;
8
- }, {
9
- $schema: string;
10
- $id: string;
11
- title: string;
12
- type: string;
13
- items: {
14
- const: string;
15
- }[];
16
- additionalItems: {
17
- anyOf: ({
18
- type: string;
19
- properties?: undefined;
20
- required?: undefined;
21
- } | {
22
- type: string;
23
- properties: {
24
- language: {
25
- $ref: string;
26
- };
27
- direction: boolean;
28
- };
29
- required: string[];
30
- } | {
31
- type: string;
32
- properties: {
33
- direction: {
34
- type: string;
35
- enum: string[];
36
- };
37
- language: boolean;
38
- };
39
- required: string[];
40
- } | {
41
- type: string;
42
- properties: {
43
- language: {
44
- $ref: string;
45
- };
46
- direction: {
47
- type: string;
48
- enum: string[];
49
- };
50
- };
51
- required: string[];
52
- } | {
53
- type: string;
54
- properties: {
55
- language: boolean;
56
- direction: boolean;
57
- };
58
- required?: undefined;
59
- })[];
60
- };
61
- }, {
62
- $schema: string;
63
- $id: string;
64
- title: string;
65
- type: string;
66
- properties: {
67
- name: {
68
- $ref: string;
69
- };
70
- id: {
71
- $ref: string;
72
- };
73
- type: {
74
- oneOf: ({
75
- type: string;
76
- enum: string[];
77
- default: string;
78
- items?: undefined;
79
- contains?: undefined;
80
- } | {
81
- type: string;
82
- items: {
83
- type: string;
84
- };
85
- contains: {
86
- enum: string[];
87
- };
88
- enum?: undefined;
89
- default?: undefined;
90
- })[];
91
- };
92
- url: {
93
- $ref: string;
94
- };
95
- identifier: {
96
- type: string;
97
- items: {
98
- type: string;
99
- };
100
- };
101
- };
102
- required: string[];
103
- }, {
104
- $schema: string;
105
- $id: string;
106
- title: string;
107
- anyOf: ({
108
- type: string;
109
- items?: undefined;
110
- $ref?: undefined;
111
- } | {
112
- type: string;
113
- items: {
114
- anyOf: ({
115
- type: string;
116
- $ref?: undefined;
117
- } | {
118
- $ref: string;
119
- type?: undefined;
120
- })[];
121
- };
122
- $ref?: undefined;
123
- } | {
124
- $ref: string;
125
- type?: undefined;
126
- items?: undefined;
127
- })[];
128
- }, {
129
- $schema: string;
130
- $id: string;
131
- title: string;
132
- type: string;
133
- format: string;
134
- }, {
135
- $schema: string;
136
- $id: string;
137
- title: string;
138
- type: string;
139
- pattern: string;
140
- }, {
141
- $schema: string;
142
- $id: string;
143
- title: string;
144
- oneOf: ({
145
- $ref: string;
146
- type?: undefined;
147
- items?: undefined;
148
- } | {
149
- type: string;
150
- items: {
151
- $ref: string;
152
- };
153
- $ref?: undefined;
154
- })[];
155
- }, {
156
- $schema: string;
157
- $id: string;
158
- title: string;
159
- type: string;
160
- properties: {
161
- type: {
162
- oneOf: ({
163
- type: string;
164
- const: string;
165
- items?: undefined;
166
- contains?: undefined;
167
- } | {
168
- type: string;
169
- items: {
170
- type: string;
171
- };
172
- contains: {
173
- const: string;
174
- };
175
- const?: undefined;
176
- })[];
177
- };
178
- itemListElement: {
179
- type: string[];
180
- items: {
181
- type: string;
182
- };
183
- };
184
- };
185
- required: string[];
186
- }, {
187
- $schema: string;
188
- $id: string;
189
- title: string;
190
- oneOf: ({
191
- $ref: string;
192
- type?: undefined;
193
- items?: undefined;
194
- } | {
195
- type: string;
196
- items: {
197
- $ref: string;
198
- };
199
- $ref?: undefined;
200
- })[];
201
- }, {
202
- $schema: string;
203
- $id: string;
204
- title: string;
205
- type: string;
206
- properties: {
207
- type: {
208
- oneOf: ({
209
- type: string;
210
- const: string;
211
- items?: undefined;
212
- contains?: undefined;
213
- } | {
214
- type: string;
215
- items: {
216
- type: string;
217
- };
218
- contains: {
219
- const: string;
220
- };
221
- const?: undefined;
222
- })[];
223
- };
224
- url: {
225
- $ref: string;
226
- };
227
- encodingFormat: {
228
- type: string;
229
- };
230
- name: {
231
- $ref: string;
232
- };
233
- description: {
234
- anyOf: ({
235
- type: string;
236
- $ref?: undefined;
237
- } | {
238
- $ref: string;
239
- type?: undefined;
240
- })[];
241
- };
242
- rel: {
243
- type: string[];
244
- items: {
245
- type: string;
246
- };
247
- };
248
- integrity: {
249
- type: string;
250
- };
251
- duration: {
252
- $ref: string;
253
- };
254
- alternate: {
255
- $ref: string;
256
- };
257
- };
258
- required: string[];
259
- }, {
260
- $schema: string;
261
- $id: string;
262
- title: string;
263
- type: string;
264
- properties: {
265
- value: {
266
- type: string;
267
- };
268
- language: {
269
- $ref: string;
270
- };
271
- };
272
- required: string[];
273
- }, {
274
- $schema: string;
275
- $id: string;
276
- title: string;
277
- anyOf: ({
278
- type: string;
279
- items?: undefined;
280
- $ref?: undefined;
281
- } | {
282
- type: string;
283
- items: {
284
- anyOf: ({
285
- type: string;
286
- $ref?: undefined;
287
- } | {
288
- $ref: string;
289
- type?: undefined;
290
- })[];
291
- };
292
- $ref?: undefined;
293
- } | {
294
- $ref: string;
295
- type?: undefined;
296
- items?: undefined;
297
- })[];
298
- }, {
299
- $schema: string;
300
- $id: string;
301
- title: string;
302
- oneOf: ({
303
- oneOf: {
304
- $ref: string;
305
- }[];
306
- type?: undefined;
307
- items?: undefined;
308
- uniqueItems?: undefined;
309
- } | {
310
- type: string;
311
- items: {
312
- anyOf: {
313
- $ref: string;
314
- }[];
315
- };
316
- uniqueItems: boolean;
317
- oneOf?: undefined;
318
- })[];
319
- }, {
320
- $schema: string;
321
- $id: string;
322
- title: string;
323
- type: string[];
324
- items: {
325
- type: string;
326
- };
327
- }, {
328
- $schema: string;
329
- $id: string;
330
- title: string;
331
- type: string;
332
- format: string;
333
- }, {
334
- $schema: string;
335
- $id: string;
336
- title: string;
337
- oneOf: ({
338
- type: string;
339
- format: string;
340
- items?: undefined;
341
- } | {
342
- type: string;
343
- items: {
344
- type: string;
345
- format: string;
346
- };
347
- format?: undefined;
348
- })[];
349
- }, {
350
- $schema: string;
351
- $id: string;
352
- title: string;
353
- type: string;
354
- properties: {
355
- "@context": {
356
- $ref: string;
357
- };
358
- type: {
359
- type: string[];
360
- items: {
361
- type: string;
362
- };
363
- };
364
- conformsTo: {
365
- oneOf: ({
366
- $ref: string;
367
- type?: undefined;
368
- items?: undefined;
369
- } | {
370
- type: string;
371
- items: {
372
- $ref: string;
373
- };
374
- $ref?: undefined;
375
- })[];
376
- };
377
- id: {
378
- type: string;
379
- };
380
- abridged: {
381
- type: string;
382
- };
383
- accessMode: {
384
- $ref: string;
385
- };
386
- accessModeSufficient: {
387
- $ref: string;
388
- };
389
- accessibilityFeature: {
390
- $ref: string;
391
- };
392
- accessibilityHazard: {
393
- $ref: string;
394
- };
395
- accessibilitySummary: {
396
- $ref: string;
397
- };
398
- artist: {
399
- $ref: string;
400
- };
401
- author: {
402
- $ref: string;
403
- };
404
- colorist: {
405
- $ref: string;
406
- };
407
- contributor: {
408
- $ref: string;
409
- };
410
- creator: {
411
- $ref: string;
412
- };
413
- editor: {
414
- $ref: string;
415
- };
416
- illustrator: {
417
- $ref: string;
418
- };
419
- inker: {
420
- $ref: string;
421
- };
422
- letterer: {
423
- $ref: string;
424
- };
425
- penciler: {
426
- $ref: string;
427
- };
428
- publisher: {
429
- $ref: string;
430
- };
431
- readBy: {
432
- $ref: string;
433
- };
434
- translator: {
435
- $ref: string;
436
- };
437
- url: {
438
- $ref: string;
439
- };
440
- duration: {
441
- $ref: string;
442
- };
443
- inLanguage: {
444
- $ref: string;
445
- };
446
- dateModified: {
447
- $ref: string;
448
- };
449
- datePublished: {
450
- $ref: string;
451
- };
452
- name: {
453
- $ref: string;
454
- };
455
- readingOrder: {
456
- $ref: string;
457
- };
458
- resources: {
459
- $ref: string;
460
- };
461
- links: {
462
- $ref: string;
463
- };
464
- readingProgression: {
465
- type: string;
466
- enum: string[];
467
- default: string;
468
- };
469
- };
470
- required: string[];
471
- }];
1
+ declare const publicationSchema: any;
2
+ export declare const publicationSchemas: readonly [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any];
472
3
  export { publicationSchema };
473
4
  //# sourceMappingURL=pubManifest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pubManifest.d.ts","sourceRoot":"","sources":["../../src/schema/pubManifest.ts"],"names":[],"mappings":"AAgBA,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBrB,CAAC;AAEX,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"pubManifest.d.ts","sourceRoot":"","sources":["../../src/schema/pubManifest.ts"],"names":[],"mappings":"AA6CA,QAAA,MAAM,iBAAiB,KAEtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,gGAkBrB,CAAC;AAEX,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,44 +1,43 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.publicationSchema = exports.publicationSchemas = void 0;
7
- const bcp_schema_json_1 = __importDefault(require("./pubManifest/module/bcp.schema.json"));
8
- const context_schema_json_1 = __importDefault(require("./pubManifest/module/context.schema.json"));
9
- const contributor_object_schema_json_1 = __importDefault(require("./pubManifest/module/contributor-object.schema.json"));
10
- const contributor_schema_json_1 = __importDefault(require("./pubManifest/module/contributor.schema.json"));
11
- const date_schema_json_1 = __importDefault(require("./pubManifest/module/date.schema.json"));
12
- const duration_schema_json_1 = __importDefault(require("./pubManifest/module/duration.schema.json"));
13
- const item_lists_schema_json_1 = __importDefault(require("./pubManifest/module/item-lists.schema.json"));
14
- const ItemList_schema_json_1 = __importDefault(require("./pubManifest/module/ItemList.schema.json"));
15
- const language_schema_json_1 = __importDefault(require("./pubManifest/module/language.schema.json"));
16
- const link_schema_json_1 = __importDefault(require("./pubManifest/module/link.schema.json"));
17
- const localizable_object_schema_json_1 = __importDefault(require("./pubManifest/module/localizable-object.schema.json"));
18
- const localizable_schema_json_1 = __importDefault(require("./pubManifest/module/localizable.schema.json"));
19
- const resource_categorization_schema_json_1 = __importDefault(require("./pubManifest/module/resource.categorization.schema.json"));
20
- const strings_schema_json_1 = __importDefault(require("./pubManifest/module/strings.schema.json"));
21
- const url_schema_json_1 = __importDefault(require("./pubManifest/module/url.schema.json"));
22
- const urls_schema_json_1 = __importDefault(require("./pubManifest/module/urls.schema.json"));
23
- const publication_schema_json_1 = __importDefault(require("./pubManifest/publication.schema.json"));
24
- exports.publicationSchema = publication_schema_json_1.default;
25
- exports.publicationSchemas = [
26
- bcp_schema_json_1.default,
27
- context_schema_json_1.default,
28
- contributor_object_schema_json_1.default,
29
- contributor_schema_json_1.default,
30
- date_schema_json_1.default,
31
- duration_schema_json_1.default,
32
- item_lists_schema_json_1.default,
33
- ItemList_schema_json_1.default,
34
- language_schema_json_1.default,
35
- link_schema_json_1.default,
36
- localizable_object_schema_json_1.default,
37
- localizable_schema_json_1.default,
38
- resource_categorization_schema_json_1.default,
39
- strings_schema_json_1.default,
40
- url_schema_json_1.default,
41
- urls_schema_json_1.default,
42
- publication_schema_json_1.default,
1
+ import fs from 'node:fs';
2
+ import path from 'upath';
3
+ import { cliRoot } from '../const.js';
4
+ // TODO: Change to static import after JSON module becomes stable
5
+ const importJSON = (p) => JSON.parse(fs.readFileSync(path.join(cliRoot, p), 'utf8'));
6
+ const bcpSchema = importJSON('schemas/pubManifest/module/bcp.schema.json');
7
+ const contextSchema = importJSON('schemas/pubManifest/module/context.schema.json');
8
+ const contributorObjectSchema = importJSON('schemas/pubManifest/module/contributor-object.schema.json');
9
+ const contributorSchema = importJSON('schemas/pubManifest/module/contributor.schema.json');
10
+ const dateSchema = importJSON('schemas/pubManifest/module/date.schema.json');
11
+ const durationSchema = importJSON('schemas/pubManifest/module/duration.schema.json');
12
+ const itemListsSchema = importJSON('schemas/pubManifest/module/item-lists.schema.json');
13
+ const itemListSchema = importJSON('schemas/pubManifest/module/ItemList.schema.json');
14
+ const languageSchema = importJSON('schemas/pubManifest/module/language.schema.json');
15
+ const linkSchema = importJSON('schemas/pubManifest/module/link.schema.json');
16
+ const localizableObjectSchema = importJSON('schemas/pubManifest/module/localizable-object.schema.json');
17
+ const localizableSchema = importJSON('schemas/pubManifest/module/localizable.schema.json');
18
+ const resourceCategorizationSchema = importJSON('schemas/pubManifest/module/resource.categorization.schema.json');
19
+ const stringsSchema = importJSON('schemas/pubManifest/module/strings.schema.json');
20
+ const urlSchema = importJSON('schemas/pubManifest/module/url.schema.json');
21
+ const urlsSchema = importJSON('schemas/pubManifest/module/urls.schema.json');
22
+ const publicationSchema = importJSON('schemas/pubManifest/publication.schema.json');
23
+ export const publicationSchemas = [
24
+ bcpSchema,
25
+ contextSchema,
26
+ contributorObjectSchema,
27
+ contributorSchema,
28
+ dateSchema,
29
+ durationSchema,
30
+ itemListsSchema,
31
+ itemListSchema,
32
+ languageSchema,
33
+ linkSchema,
34
+ localizableObjectSchema,
35
+ localizableSchema,
36
+ resourceCategorizationSchema,
37
+ stringsSchema,
38
+ urlSchema,
39
+ urlsSchema,
40
+ publicationSchema,
43
41
  ];
42
+ export { publicationSchema };
44
43
  //# sourceMappingURL=pubManifest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pubManifest.js","sourceRoot":"","sources":["../../src/schema/pubManifest.ts"],"names":[],"mappings":";;;;;;AAAA,2FAA6D;AAC7D,mGAAqE;AACrE,yHAA0F;AAC1F,2GAA6E;AAC7E,6FAA+D;AAC/D,qGAAuE;AACvE,yGAA0E;AAC1E,qGAAuE;AACvE,qGAAuE;AACvE,6FAA+D;AAC/D,yHAA0F;AAC1F,2GAA6E;AAC7E,mIAAoG;AACpG,mGAAqE;AACrE,2FAA6D;AAC7D,6FAA+D;AAC/D,oGAAsE;AAsB7D,4BAtBF,iCAAiB,CAsBE;AApBb,QAAA,kBAAkB,GAAG;IAChC,yBAAS;IACT,6B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,CAAC;AACF,MAAM,iBAAiB,GAAG,UAAU,CAClC,oDAAoD,CACrD,CAAC;AACF,MAAM,4BAA4B,GAAG,UAAU,CAC7C,gEAAgE,CACjE,CAAC;AACF,MAAM,aAAa,GAAG,UAAU,CAC9B,gDAAgD,CACjD,CAAC;AACF,MAAM,SAAS,GAAG,UAAU,CAAC,4CAA4C,CAAC,CAAC;AAC3E,MAAM,UAAU,GAAG,UAAU,CAAC,6CAA6C,CAAC,CAAC;AAC7E,MAAM,iBAAiB,GAAG,UAAU,CAClC,6CAA6C,CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,SAAS;IACT,aAAa;IACb,uBAAuB;IACvB,iBAAiB;IACjB,UAAU;IACV,cAAc;IACd,eAAe;IACf,cAAc;IACd,cAAc;IACd,UAAU;IACV,uBAAuB;IACvB,iBAAiB;IACjB,4BAA4B;IAC5B,aAAa;IACb,SAAS;IACT,UAAU;IACV,iBAAiB;CACT,CAAC;AAEX,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
- export declare type PublicationContexts = [] | ['https://schema.org'] | [
6
+ export type PublicationContexts = [] | ['https://schema.org'] | [
7
7
  'https://schema.org',
8
8
  'https://www.w3.org/ns/pub-context',
9
9
  ...(string | {
@@ -24,17 +24,17 @@ export declare type PublicationContexts = [] | ['https://schema.org'] | [
24
24
  [k: string]: unknown;
25
25
  })[]
26
26
  ];
27
- export declare type BCP47LanguageTag = string;
28
- export declare type URL = string;
29
- export declare type UniqueStrings = string | string[];
30
- export declare type ListsOfItemList = SchemaOrgItemListObject | SchemaOrgItemListObject[];
31
- export declare type LocalizableStringOrObject = string | (string | LocalizableStringObject)[] | LocalizableStringObject;
32
- export declare type Contributor = string | (string | ContributorObject)[] | ContributorObject;
33
- export declare type URLs = string | string[];
34
- export declare type Duration = string;
35
- export declare type Languages = BCP47LanguageTag | BCP47LanguageTag[];
36
- export declare type Dates = string;
37
- export declare type ResourceCategorization = (URL | PublicationLinks) | (URL | PublicationLinks)[];
27
+ export type BCP47LanguageTag = string;
28
+ export type URL = string;
29
+ export type UniqueStrings = string | string[];
30
+ export type ListsOfItemList = SchemaOrgItemListObject | SchemaOrgItemListObject[];
31
+ export type LocalizableStringOrObject = string | (string | LocalizableStringObject)[] | LocalizableStringObject;
32
+ export type Contributor = string | (string | ContributorObject)[] | ContributorObject;
33
+ export type URLs = string | string[];
34
+ export type Duration = string;
35
+ export type Languages = BCP47LanguageTag | BCP47LanguageTag[];
36
+ export type Dates = string;
37
+ export type ResourceCategorization = (URL | PublicationLinks) | (URL | PublicationLinks)[];
38
38
  export interface PublicationManifest {
39
39
  '@context': PublicationContexts;
40
40
  type?: string | string[];
@@ -1 +1 @@
1
- {"version":3,"file":"publication.schema.d.ts","sourceRoot":"","sources":["../../src/schema/publication.schema.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,oBAAY,mBAAmB,GAC3B,EAAE,GACF,CAAC,oBAAoB,CAAC,GACtB;IACE,oBAAoB;IACpB,mCAAmC;IACnC,GAAG,CACC,MAAM,GACN;QACE,QAAQ,EAAE,gBAAgB,CAAC;QAC3B,SAAS,CAAC,EAAE,KAAK,CAAC;QAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GACD;QACE,SAAS,EAAE,KAAK,GAAG,KAAK,CAAC;QACzB,QAAQ,CAAC,EAAE,KAAK,CAAC;QACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GACD;QACE,QAAQ,EAAE,gBAAgB,CAAC;QAC3B,SAAS,EAAE,KAAK,GAAG,KAAK,CAAC;QACzB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GACD;QACE,QAAQ,CAAC,EAAE,KAAK,CAAC;QACjB,SAAS,CAAC,EAAE,KAAK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iB;IAChC,IAAI,EAAE,yBAAyB,CAAC;IAChC,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,IAAI,CAAC,EAAE,CAAC,QAAQ,GAAG,cAAc,CAAC,GAAG,MAAM,EAAE,CAAC;IAC9C,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAAC;IACnC,GAAG,EAAE,GAAG,CAAC;IACT,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;IAC/C,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"publication.schema.d.ts","sourceRoot":"","sources":["../../src/schema/publication.schema.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,MAAM,MAAM,mBAAmB,GAC3B,EAAE,GACF,CAAC,oBAAoB,CAAC,GACtB;IACE,oBAAoB;IACpB,mCAAmC;IACnC,GAAG,CACC,MAAM,GACN;QACE,QAAQ,EAAE,gBAAgB,CAAC;QAC3B,SAAS,CAAC,EAAE,KAAK,CAAC;QAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GACD;QACE,SAAS,EAAE,KAAK,GAAG,KAAK,CAAC;QACzB,QAAQ,CAAC,EAAE,KAAK,CAAC;QACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GACD;Q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,EAAE,MAAM,EAAE,CAAC;IAC1B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,yBAAyB,CAAC;IAChC,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,IAAI,CAAC,EAAE,CAAC,QAAQ,GAAG,cAAc,CAAC,GAAG,MAAM,EAAE,CAAC;IAC9C,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAAC;IACnC,GAAG,EAAE,GAAG,CAAC;IACT,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;IAC/C,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -1,9 +1,8 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /**
4
3
  * This file was automatically generated by json-schema-to-typescript.
5
4
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
6
5
  * and run json-schema-to-typescript to regenerate this file.
7
6
  */
8
- Object.defineProperty(exports, "__esModule", { value: true });
7
+ export {};
9
8
  //# sourceMappingURL=publication.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"publication.schema.js","sourceRoot":"","sources":["../../src/schema/publication.schema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;;;GAIG"}
1
+ {"version":3,"file":"publication.schema.js","sourceRoot":"","sources":["../../src/schema/publication.schema.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG"}
@@ -1,3 +1,3 @@
1
- import vivliostyleConfigSchema from './vivliostyle/vivliostyleConfig.schema.json';
1
+ declare const vivliostyleConfigSchema: any;
2
2
  export { vivliostyleConfigSchema };
3
3
  //# sourceMappingURL=vivliostyle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vivliostyle.d.ts","sourceRoot":"","sources":["../../src/schema/vivliostyle.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
1
+ {"version":3,"file":"vivliostyle.d.ts","sourceRoot":"","sources":["../../src/schema/vivliostyle.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,uBAAuB,KAE5B,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1,9 +1,8 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.vivliostyleConfigSchema = void 0;
7
- const vivliostyleConfig_schema_json_1 = __importDefault(require("./vivliostyle/vivliostyleConfig.schema.json"));
8
- exports.vivliostyleConfigSchema = vivliostyleConfig_schema_json_1.default;
1
+ import fs from 'node:fs';
2
+ import path from 'upath';
3
+ import { cliRoot } from '../const.js';
4
+ // TODO: Change to static import after JSON module becomes stable
5
+ const importJSON = (p) => JSON.parse(fs.readFileSync(path.join(cliRoot, p), 'utf8'));
6
+ const vivliostyleConfigSchema = importJSON('schemas/vivliostyle/vivliostyleConfig.schema.json');
7
+ export { vivliostyleConfigSchema };
9
8
  //# sourceMappingURL=vivliostyle.js.map