@vivliostyle/cli 5.9.0 → 6.0.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/browser.d.ts +1 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +20 -51
- package/dist/browser.js.map +1 -1
- package/dist/build.d.ts +1 -1
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +46 -47
- package/dist/build.js.map +1 -1
- package/dist/builder.d.ts +5 -6
- package/dist/builder.d.ts.map +1 -1
- package/dist/builder.js +124 -103
- package/dist/builder.js.map +1 -1
- package/dist/cli.js +5 -10
- package/dist/cli.js.map +1 -1
- package/dist/commands/build.js +10 -16
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/build.parser.d.ts +3 -3
- package/dist/commands/build.parser.d.ts.map +1 -1
- package/dist/commands/build.parser.js +13 -21
- package/dist/commands/build.parser.js.map +1 -1
- package/dist/commands/init.js +7 -9
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/init.parser.d.ts +2 -2
- package/dist/commands/init.parser.d.ts.map +1 -1
- package/dist/commands/init.parser.js +3 -10
- package/dist/commands/init.parser.js.map +1 -1
- package/dist/commands/preview.js +8 -11
- package/dist/commands/preview.js.map +1 -1
- package/dist/commands/preview.parser.d.ts +2 -2
- package/dist/commands/preview.parser.d.ts.map +1 -1
- package/dist/commands/preview.parser.js +5 -12
- package/dist/commands/preview.parser.js.map +1 -1
- package/dist/config.d.ts +29 -18
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +285 -251
- package/dist/config.js.map +1 -1
- package/dist/const.d.ts +2 -0
- package/dist/const.d.ts.map +1 -1
- package/dist/const.js +12 -15
- package/dist/const.js.map +1 -1
- package/dist/container.js +31 -41
- package/dist/container.js.map +1 -1
- package/dist/epub.d.ts.map +1 -1
- package/dist/epub.js +10 -17
- package/dist/epub.js.map +1 -1
- package/dist/html.d.ts +3 -3
- package/dist/html.d.ts.map +1 -1
- package/dist/html.js +21 -30
- package/dist/html.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/init.js +12 -19
- package/dist/init.js.map +1 -1
- package/dist/input.d.ts +2 -2
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +8 -16
- package/dist/input.js.map +1 -1
- package/dist/markdown.js +9 -17
- package/dist/markdown.js.map +1 -1
- package/dist/output.d.ts +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +6 -16
- package/dist/output.js.map +1 -1
- package/dist/pdf.d.ts +3 -3
- package/dist/pdf.d.ts.map +1 -1
- package/dist/pdf.js +66 -79
- package/dist/pdf.js.map +1 -1
- package/dist/postprocess.d.ts +5 -5
- package/dist/postprocess.d.ts.map +1 -1
- package/dist/postprocess.js +54 -81
- package/dist/postprocess.js.map +1 -1
- package/dist/preview.d.ts +1 -1
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +53 -58
- package/dist/preview.js.map +1 -1
- package/dist/schema/pubManifest.d.ts +2 -471
- package/dist/schema/pubManifest.d.ts.map +1 -1
- package/dist/schema/pubManifest.js +41 -42
- package/dist/schema/pubManifest.js.map +1 -1
- package/dist/schema/publication.schema.d.ts +12 -12
- package/dist/schema/publication.schema.d.ts.map +1 -1
- package/dist/schema/publication.schema.js +1 -2
- package/dist/schema/publication.schema.js.map +1 -1
- package/dist/schema/vivliostyle.d.ts +1 -1
- package/dist/schema/vivliostyle.d.ts.map +1 -1
- package/dist/schema/vivliostyle.js +7 -8
- package/dist/schema/vivliostyle.js.map +1 -1
- package/dist/schema/vivliostyleConfig.schema.d.ts +22 -9
- package/dist/schema/vivliostyleConfig.schema.d.ts.map +1 -1
- package/dist/schema/vivliostyleConfig.schema.js +1 -2
- package/dist/schema/vivliostyleConfig.schema.js.map +1 -1
- package/dist/server.d.ts +7 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +26 -38
- package/dist/server.js.map +1 -1
- package/dist/theme.d.ts +6 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +74 -0
- package/dist/theme.js.map +1 -0
- package/dist/util.d.ts +3 -3
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +80 -98
- package/dist/util.js.map +1 -1
- package/dist/webbook.d.ts +1 -1
- package/dist/webbook.d.ts.map +1 -1
- package/dist/webbook.js +40 -44
- package/dist/webbook.js.map +1 -1
- package/package.json +32 -16
- package/schemas/pubManifest/README.md +5 -0
- package/schemas/pubManifest/module/ItemList.schema.json +32 -0
- package/schemas/pubManifest/module/bcp.schema.json +7 -0
- package/schemas/pubManifest/module/context.schema.json +62 -0
- package/schemas/pubManifest/module/contributor-object.schema.json +42 -0
- package/schemas/pubManifest/module/contributor.schema.json +26 -0
- package/schemas/pubManifest/module/date.schema.json +7 -0
- package/schemas/pubManifest/module/duration.schema.json +7 -0
- package/schemas/pubManifest/module/item-lists.schema.json +16 -0
- package/schemas/pubManifest/module/language.schema.json +16 -0
- package/schemas/pubManifest/module/link.schema.json +60 -0
- package/schemas/pubManifest/module/localizable-object.schema.json +15 -0
- package/schemas/pubManifest/module/localizable.schema.json +26 -0
- package/schemas/pubManifest/module/resource.categorization.schema.json +31 -0
- package/schemas/pubManifest/module/strings.schema.json +9 -0
- package/schemas/pubManifest/module/url.schema.json +7 -0
- package/schemas/pubManifest/module/urls.schema.json +18 -0
- package/schemas/pubManifest/publication.schema.json +123 -0
- package/schemas/vivliostyle/vivliostyleConfig.schema.json +348 -0
- package/types/better-ajv-errors.d.ts +28 -0
- package/types/custom.d.ts +9 -0
- package/types/playwright.d.ts +49 -0
- package/dist/schema/pubManifest/module/ItemList.schema.json +0 -32
- package/dist/schema/pubManifest/module/bcp.schema.json +0 -7
- package/dist/schema/pubManifest/module/context.schema.json +0 -62
- package/dist/schema/pubManifest/module/contributor-object.schema.json +0 -42
- package/dist/schema/pubManifest/module/contributor.schema.json +0 -26
- package/dist/schema/pubManifest/module/date.schema.json +0 -7
- package/dist/schema/pubManifest/module/duration.schema.json +0 -7
- package/dist/schema/pubManifest/module/item-lists.schema.json +0 -16
- package/dist/schema/pubManifest/module/language.schema.json +0 -16
- package/dist/schema/pubManifest/module/link.schema.json +0 -60
- package/dist/schema/pubManifest/module/localizable-object.schema.json +0 -15
- package/dist/schema/pubManifest/module/localizable.schema.json +0 -26
- package/dist/schema/pubManifest/module/resource.categorization.schema.json +0 -31
- package/dist/schema/pubManifest/module/strings.schema.json +0 -9
- package/dist/schema/pubManifest/module/url.schema.json +0 -7
- package/dist/schema/pubManifest/module/urls.schema.json +0 -18
- package/dist/schema/pubManifest/publication.schema.json +0 -123
- package/dist/schema/vivliostyle/vivliostyleConfig.schema.json +0 -296
|
@@ -1,473 +1,4 @@
|
|
|
1
|
-
|
|
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":"
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"pubManifest.js","sourceRoot":"","sources":["../../src/schema/pubManifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,OAAO,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,iEAAiE;AACjE,MAAM,UAAU,GAAG,CAAC,CAAS,EAAE,EAAE,CAC/B,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;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AAC;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
|
|
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
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
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,
|
|
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;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,CAAC;QAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CACJ,EAAE;CACJ,CAAC;AACN,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACtC,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AACzB,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAC9C,MAAM,MAAM,eAAe,GACvB,uBAAuB,GACvB,uBAAuB,EAAE,CAAC;AAC9B,MAAM,MAAM,yBAAyB,GACjC,MAAM,GACN,CAAC,MAAM,GAAG,uBAAuB,CAAC,EAAE,GACpC,uBAAuB,CAAC;AAC5B,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,CAAC,MAAM,GAAG,iBAAiB,CAAC,EAAE,GAC9B,iBAAiB,CAAC;AACtB,MAAM,MAAM,IAAI,GAAG,MAAM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C,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
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"publication.schema.js","sourceRoot":"","sources":["../../src/schema/publication.schema.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vivliostyle.d.ts","sourceRoot":"","sources":["../../src/schema/vivliostyle.ts"],"names":[],"mappings":"
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|