@vivliostyle/cli 8.14.1 → 8.15.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/build.js.map +1 -1
- package/dist/commands/build.js +1 -1
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/build.parser.js.map +1 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/preview.js +1 -1
- package/dist/commands/preview.js.map +1 -1
- package/dist/const.d.ts +1 -1
- package/dist/const.d.ts.map +1 -1
- package/dist/const.js.map +1 -1
- package/dist/container.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/init.js.map +1 -1
- package/dist/input/config.d.ts +12 -3
- package/dist/input/config.d.ts.map +1 -1
- package/dist/input/config.js +109 -58
- package/dist/input/config.js.map +1 -1
- package/dist/input/input-types.js.map +1 -1
- package/dist/input/schema.d.ts +10061 -0
- package/dist/input/schema.d.ts.map +1 -0
- package/dist/input/schema.js +202 -0
- package/dist/input/schema.js.map +1 -0
- package/dist/output/epub.js.map +1 -1
- package/dist/output/output-types.d.ts +3 -3
- package/dist/output/output-types.d.ts.map +1 -1
- package/dist/output/output-types.js.map +1 -1
- package/dist/output/pdf-postprocess.d.ts +0 -1
- package/dist/output/pdf-postprocess.d.ts.map +1 -1
- package/dist/output/pdf-postprocess.js.map +1 -1
- package/dist/output/pdf.d.ts.map +1 -1
- package/dist/output/pdf.js +15 -13
- package/dist/output/pdf.js.map +1 -1
- package/dist/output/webbook.d.ts.map +1 -1
- package/dist/output/webbook.js +6 -2
- package/dist/output/webbook.js.map +1 -1
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +3 -2
- package/dist/preview.js.map +1 -1
- package/dist/processor/compile.d.ts +1 -1
- package/dist/processor/compile.d.ts.map +1 -1
- package/dist/processor/compile.js +83 -61
- package/dist/processor/compile.js.map +1 -1
- package/dist/processor/html.d.ts +24 -18
- package/dist/processor/html.d.ts.map +1 -1
- package/dist/processor/html.js +79 -24
- package/dist/processor/html.js.map +1 -1
- package/dist/processor/theme.js.map +1 -1
- package/dist/schema/publication.schema.d.ts +4 -4
- package/dist/schema/publication.schema.js +1 -1
- package/dist/server.d.ts +0 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js.map +1 -1
- package/dist/util.d.ts +28 -7
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +60 -58
- package/dist/util.js.map +1 -1
- package/package.json +12 -11
- package/dist/schema/vivliostyle.d.ts +0 -17
- package/dist/schema/vivliostyle.d.ts.map +0 -1
- package/dist/schema/vivliostyle.js +0 -6
- package/dist/schema/vivliostyle.js.map +0 -1
- package/dist/schema/vivliostyleConfig.schema.d.ts +0 -264
- package/dist/schema/vivliostyleConfig.schema.d.ts.map +0 -1
- package/dist/schema/vivliostyleConfig.schema.js +0 -8
- package/dist/schema/vivliostyleConfig.schema.js.map +0 -1
- package/schemas/vivliostyle/vivliostyleConfig.schema.json +0 -466
- package/types/better-ajv-errors.d.ts +0 -28
|
@@ -1,466 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"definitions": {
|
|
3
|
-
"entry": {
|
|
4
|
-
"type": "string",
|
|
5
|
-
"minLength": 1
|
|
6
|
-
},
|
|
7
|
-
"articleEntryObject": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"properties": {
|
|
10
|
-
"path": { "type": "string" },
|
|
11
|
-
"title": { "type": "string" },
|
|
12
|
-
"theme": { "$ref": "#/definitions/themeSpecifier" },
|
|
13
|
-
"encodingFormat": { "type": "string" },
|
|
14
|
-
"rel": {
|
|
15
|
-
"type": ["string", "array"],
|
|
16
|
-
"items": {
|
|
17
|
-
"type": "string"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"required": ["path"],
|
|
22
|
-
"additionalProperties": false
|
|
23
|
-
},
|
|
24
|
-
"browserType": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"enum": ["chromium", "firefox", "webkit"]
|
|
27
|
-
},
|
|
28
|
-
"contentsEntryObject": {
|
|
29
|
-
"type": "object",
|
|
30
|
-
"properties": {
|
|
31
|
-
"rel": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"const": "contents"
|
|
34
|
-
},
|
|
35
|
-
"title": { "type": "string" },
|
|
36
|
-
"theme": { "$ref": "#/definitions/themeSpecifier" },
|
|
37
|
-
"pageBreakBefore": {
|
|
38
|
-
"description": "Specify the page break position before this document. It is useful when you want to specify which side a first page of the document should be placed on a two-page spread.",
|
|
39
|
-
"type": "string",
|
|
40
|
-
"enum": ["left", "right", "recto", "verso"]
|
|
41
|
-
},
|
|
42
|
-
"pageCounterReset": {
|
|
43
|
-
"description": "Reset the starting page number of this document by the specified integer. It is useful when you want to control page numbers when including a cover page.",
|
|
44
|
-
"type": "integer",
|
|
45
|
-
"minimum": 1
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"required": ["rel"],
|
|
49
|
-
"additionalProperties": false
|
|
50
|
-
},
|
|
51
|
-
"coverEntryObject": {
|
|
52
|
-
"type": "object",
|
|
53
|
-
"properties": {
|
|
54
|
-
"rel": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"const": "cover"
|
|
57
|
-
},
|
|
58
|
-
"path": { "type": "string" },
|
|
59
|
-
"title": { "type": "string" },
|
|
60
|
-
"theme": { "$ref": "#/definitions/themeSpecifier" },
|
|
61
|
-
"imageSrc": { "type": "string" },
|
|
62
|
-
"imageAlt": { "type": "string" },
|
|
63
|
-
"pageBreakBefore": {
|
|
64
|
-
"description": "Specify the page break position before this document. It is useful when you want to specify which side a first page of the document should be placed on a two-page spread.",
|
|
65
|
-
"type": "string",
|
|
66
|
-
"enum": ["left", "right", "recto", "verso"]
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"required": ["rel"],
|
|
70
|
-
"additionalProperties": false
|
|
71
|
-
},
|
|
72
|
-
"entryObject": {
|
|
73
|
-
"anyOf": [
|
|
74
|
-
{ "$ref": "#/definitions/contentsEntryObject" },
|
|
75
|
-
{ "$ref": "#/definitions/coverEntryObject" },
|
|
76
|
-
{ "$ref": "#/definitions/articleEntryObject" }
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
|
-
"output": {
|
|
80
|
-
"type": "string",
|
|
81
|
-
"minLength": 1
|
|
82
|
-
},
|
|
83
|
-
"outputObject": {
|
|
84
|
-
"type": "object",
|
|
85
|
-
"properties": {
|
|
86
|
-
"path": {
|
|
87
|
-
"description": "Specify output file name or directory [<title>.pdf].",
|
|
88
|
-
"type": "string"
|
|
89
|
-
},
|
|
90
|
-
"format": {
|
|
91
|
-
"description": "Specify output format.",
|
|
92
|
-
"type": "string"
|
|
93
|
-
},
|
|
94
|
-
"renderMode": {
|
|
95
|
-
"description": "if docker is set, Vivliostyle try to render PDF on Docker container [local].",
|
|
96
|
-
"type": "string",
|
|
97
|
-
"enum": ["local", "docker"]
|
|
98
|
-
},
|
|
99
|
-
"preflight": {
|
|
100
|
-
"description": "Apply the process to generate PDF for printing.",
|
|
101
|
-
"type": "string",
|
|
102
|
-
"enum": ["press-ready", "press-ready-local"]
|
|
103
|
-
},
|
|
104
|
-
"preflightOption": {
|
|
105
|
-
"description": "Options for preflight process (ex: gray-scale, enforce-outline). Please refer the document of press-ready for further information. https://github.com/vibranthq/press-ready",
|
|
106
|
-
"type": "array",
|
|
107
|
-
"items": { "type": "string" }
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"required": ["path"],
|
|
111
|
-
"additionalProperties": false
|
|
112
|
-
},
|
|
113
|
-
"theme": {
|
|
114
|
-
"type": "string",
|
|
115
|
-
"minLength": 1
|
|
116
|
-
},
|
|
117
|
-
"themeObject": {
|
|
118
|
-
"type": "object",
|
|
119
|
-
"properties": {
|
|
120
|
-
"specifier": {
|
|
121
|
-
"description": "Sepcifier name of importing theme package or a path of CSS file. \n- A npm-style package argument is allowed (ex: @vivliostyle/theme-academic@1 ./local-pkg)\n- A URL or a local path of CSS is allowed (ex: ./style.css, https://example.com/style.css)",
|
|
122
|
-
"type": "string",
|
|
123
|
-
"minLength": 1
|
|
124
|
-
},
|
|
125
|
-
"import": {
|
|
126
|
-
"description": "Importing CSS path(s) of the package. Specify this if you want to import other than the default file.",
|
|
127
|
-
"type": ["string", "array"],
|
|
128
|
-
"items": {
|
|
129
|
-
"type": "string"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"required": ["specifier"],
|
|
134
|
-
"additionalProperties": false
|
|
135
|
-
},
|
|
136
|
-
"themeSpecifier": {
|
|
137
|
-
"oneOf": [
|
|
138
|
-
{ "$ref": "#/definitions/theme" },
|
|
139
|
-
{ "$ref": "#/definitions/themeObject" },
|
|
140
|
-
{
|
|
141
|
-
"type": "array",
|
|
142
|
-
"items": {
|
|
143
|
-
"oneOf": [
|
|
144
|
-
{ "$ref": "#/definitions/theme" },
|
|
145
|
-
{ "$ref": "#/definitions/themeObject" }
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
"vfmReplaceRule": {
|
|
152
|
-
"type": "object",
|
|
153
|
-
"properties": {
|
|
154
|
-
"test": {
|
|
155
|
-
"type": "object",
|
|
156
|
-
"tsType": "RegExp"
|
|
157
|
-
},
|
|
158
|
-
"match": {
|
|
159
|
-
"instanceOf": "Function",
|
|
160
|
-
"tsType": "(result: RegExpMatchArray, h: any) => Object | string"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"required": ["test", "match"],
|
|
164
|
-
"additionalProperties": false
|
|
165
|
-
},
|
|
166
|
-
"vivliostyleConfigEntry": {
|
|
167
|
-
"type": "object",
|
|
168
|
-
"properties": {
|
|
169
|
-
"title": {
|
|
170
|
-
"type": "string",
|
|
171
|
-
"description": "Title",
|
|
172
|
-
"minLength": 1
|
|
173
|
-
},
|
|
174
|
-
"author": {
|
|
175
|
-
"type": "string",
|
|
176
|
-
"description": "Author",
|
|
177
|
-
"minLength": 1
|
|
178
|
-
},
|
|
179
|
-
"theme": {
|
|
180
|
-
"$ref": "#/definitions/themeSpecifier",
|
|
181
|
-
"description": "Theme package path(s) or URL(s) of css file."
|
|
182
|
-
},
|
|
183
|
-
"entry": {
|
|
184
|
-
"description": "Entry file(s) of document.",
|
|
185
|
-
"oneOf": [
|
|
186
|
-
{ "$ref": "#/definitions/entry" },
|
|
187
|
-
{ "$ref": "#/definitions/articleEntryObject" },
|
|
188
|
-
{
|
|
189
|
-
"type": "array",
|
|
190
|
-
"items": {
|
|
191
|
-
"oneOf": [
|
|
192
|
-
{ "$ref": "#/definitions/entry" },
|
|
193
|
-
{ "$ref": "#/definitions/entryObject" }
|
|
194
|
-
]
|
|
195
|
-
},
|
|
196
|
-
"uniqueItems": true
|
|
197
|
-
}
|
|
198
|
-
]
|
|
199
|
-
},
|
|
200
|
-
"entryContext": {
|
|
201
|
-
"description": "Directory of referencing entry file(s).",
|
|
202
|
-
"type": "string",
|
|
203
|
-
"minLength": 1
|
|
204
|
-
},
|
|
205
|
-
"output": {
|
|
206
|
-
"description": "Options about outputs.",
|
|
207
|
-
"oneOf": [
|
|
208
|
-
{
|
|
209
|
-
"type": "array",
|
|
210
|
-
"items": {
|
|
211
|
-
"oneOf": [
|
|
212
|
-
{ "$ref": "#/definitions/output" },
|
|
213
|
-
{ "$ref": "#/definitions/outputObject" }
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
{ "$ref": "#/definitions/output" },
|
|
218
|
-
{ "$ref": "#/definitions/outputObject" }
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
|
-
"workspaceDir": {
|
|
222
|
-
"type": "string",
|
|
223
|
-
"description": "",
|
|
224
|
-
"minLength": 1
|
|
225
|
-
},
|
|
226
|
-
"includeAssets": {
|
|
227
|
-
"deprecated": true,
|
|
228
|
-
"description": "@deprecated Use 'copyAsset.includes' instead",
|
|
229
|
-
"oneOf": [
|
|
230
|
-
{
|
|
231
|
-
"type": "array",
|
|
232
|
-
"items": { "$ref": "#/definitions/entry" }
|
|
233
|
-
},
|
|
234
|
-
{ "$ref": "#/definitions/entry" }
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
"copyAsset": {
|
|
238
|
-
"description": "Options about asset files to be copied when exporting output.",
|
|
239
|
-
"type": "object",
|
|
240
|
-
"properties": {
|
|
241
|
-
"includes": {
|
|
242
|
-
"description": "Specify directories and files you want to include as asset files. This option supports wildcard characters to make glob patterns.",
|
|
243
|
-
"type": "array",
|
|
244
|
-
"items": {
|
|
245
|
-
"type": "string",
|
|
246
|
-
"minLength": 1
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
"excludes": {
|
|
250
|
-
"description": "Specify directories and files you want to exclude from the asset file. This option supports wildcard characters to make glob patterns.",
|
|
251
|
-
"type": "array",
|
|
252
|
-
"items": {
|
|
253
|
-
"type": "string",
|
|
254
|
-
"minLength": 1
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
"includeFileExtensions": {
|
|
258
|
-
"description": "Specify extensions of the file you want to include as an asset file. (default: [png, jpg, jpeg, svg, gif, webp, apng, ttf, otf, woff, woff2])",
|
|
259
|
-
"type": "array",
|
|
260
|
-
"items": {
|
|
261
|
-
"type": "string",
|
|
262
|
-
"minLength": 1
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
"excludeFileExtensions": {
|
|
266
|
-
"description": "Specify extensions of the file you want to exclude as an asset file. ",
|
|
267
|
-
"type": "array",
|
|
268
|
-
"items": {
|
|
269
|
-
"type": "string",
|
|
270
|
-
"minLength": 1
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
"size": {
|
|
276
|
-
"description": "Output pdf size [Letter]. preset: A5, A4, A3, B5, B4, JIS-B5, JIS-B4, letter, legal, ledger. custom(comma separated): 182mm,257mm or 8.5in,11in.",
|
|
277
|
-
"type": "string",
|
|
278
|
-
"minLength": 1
|
|
279
|
-
},
|
|
280
|
-
"pressReady": {
|
|
281
|
-
"description": "Make generated PDF compatible with press ready PDF/X-1a [false]. This option is equivalent with \"preflight\": \"press-ready\"",
|
|
282
|
-
"type": "boolean"
|
|
283
|
-
},
|
|
284
|
-
"language": {
|
|
285
|
-
"description": "Language",
|
|
286
|
-
"type": "string",
|
|
287
|
-
"minLength": 1
|
|
288
|
-
},
|
|
289
|
-
"readingProgression": {
|
|
290
|
-
"type": "string",
|
|
291
|
-
"enum": ["ltr", "rtl"],
|
|
292
|
-
"default": "ltr"
|
|
293
|
-
},
|
|
294
|
-
"toc": {
|
|
295
|
-
"description": "Options about Table of Contents (ToC) documents.",
|
|
296
|
-
"oneOf": [
|
|
297
|
-
{ "type": "boolean" },
|
|
298
|
-
{
|
|
299
|
-
"type": "string",
|
|
300
|
-
"minLength": 1
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"type": "object",
|
|
304
|
-
"properties": {
|
|
305
|
-
"title": {
|
|
306
|
-
"description": "Specify the title of the generated ToC document.",
|
|
307
|
-
"type": "string",
|
|
308
|
-
"minLength": 1
|
|
309
|
-
},
|
|
310
|
-
"htmlPath": {
|
|
311
|
-
"description": "Specify the location where the generated ToC document will be saved. (default: index.html)",
|
|
312
|
-
"type": "string",
|
|
313
|
-
"minLength": 1
|
|
314
|
-
},
|
|
315
|
-
"sectionDepth": {
|
|
316
|
-
"description": "Specify the depth of the section to be included in the ToC document. (default: 0)",
|
|
317
|
-
"type": "integer",
|
|
318
|
-
"minimum": 0,
|
|
319
|
-
"maximum": 6
|
|
320
|
-
},
|
|
321
|
-
"transformDocumentList": {
|
|
322
|
-
"description": "Specify the transform function for the document list.",
|
|
323
|
-
"instanceOf": "Function",
|
|
324
|
-
"tsType": "(nodeList: import('@vivliostyle/cli').StructuredDocument[]) => (propsList: { children: any }[]) => any"
|
|
325
|
-
},
|
|
326
|
-
"transformSectionList": {
|
|
327
|
-
"description": "Specify the transform function for the section list.",
|
|
328
|
-
"instanceOf": "Function",
|
|
329
|
-
"tsType": "(nodeList: import('@vivliostyle/cli').StructuredDocumentSection[]) => (propsList: { children: any }[]) => any"
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
"required": []
|
|
333
|
-
}
|
|
334
|
-
]
|
|
335
|
-
},
|
|
336
|
-
"tocTitle": {
|
|
337
|
-
"deprecated": true,
|
|
338
|
-
"description": "@deprecated Use 'toc.title' instead",
|
|
339
|
-
"type": "string",
|
|
340
|
-
"minLength": 1
|
|
341
|
-
},
|
|
342
|
-
"cover": {
|
|
343
|
-
"description": "Options about cover images and cover page documents",
|
|
344
|
-
"oneOf": [
|
|
345
|
-
{
|
|
346
|
-
"type": "string",
|
|
347
|
-
"minLength": 1
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"type": "object",
|
|
351
|
-
"properties": {
|
|
352
|
-
"src": {
|
|
353
|
-
"description": "Specify the cover image to be used for the cover page.",
|
|
354
|
-
"type": "string",
|
|
355
|
-
"minLength": 1
|
|
356
|
-
},
|
|
357
|
-
"name": {
|
|
358
|
-
"description": "Specify alternative text for the cover image.",
|
|
359
|
-
"type": "string",
|
|
360
|
-
"minLength": 1
|
|
361
|
-
},
|
|
362
|
-
"htmlPath": {
|
|
363
|
-
"description": "Specify the location where the generated cover document will be saved. (default: cover.html) If falsy value is set, the cover document won't be generated.",
|
|
364
|
-
"oneOf": [
|
|
365
|
-
{
|
|
366
|
-
"type": "string",
|
|
367
|
-
"minLength": 1
|
|
368
|
-
},
|
|
369
|
-
{ "type": "boolean" }
|
|
370
|
-
]
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
"required": ["src"]
|
|
374
|
-
}
|
|
375
|
-
]
|
|
376
|
-
},
|
|
377
|
-
"timeout": {
|
|
378
|
-
"description": "Timeout limit for waiting Vivliostyle process [120000]",
|
|
379
|
-
"type": "number",
|
|
380
|
-
"minimum": 0
|
|
381
|
-
},
|
|
382
|
-
"vfm": {
|
|
383
|
-
"description": "Option for convert Markdown to a stringify (HTML).",
|
|
384
|
-
"type": "object",
|
|
385
|
-
"properties": {
|
|
386
|
-
"style": {
|
|
387
|
-
"description": "Custom stylesheet path/URL.",
|
|
388
|
-
"type": ["string", "array"],
|
|
389
|
-
"items": {
|
|
390
|
-
"type": "string"
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
"partial": {
|
|
394
|
-
"description": "Output markdown fragments.",
|
|
395
|
-
"type": "boolean"
|
|
396
|
-
},
|
|
397
|
-
"title": {
|
|
398
|
-
"description": "Document title (ignored in partial mode).",
|
|
399
|
-
"type": "string"
|
|
400
|
-
},
|
|
401
|
-
"language": {
|
|
402
|
-
"description": "Document language (ignored in partial mode).",
|
|
403
|
-
"type": "string"
|
|
404
|
-
},
|
|
405
|
-
"replace": {
|
|
406
|
-
"description": "Replacement handler for HTML string.",
|
|
407
|
-
"type": "array",
|
|
408
|
-
"items": {
|
|
409
|
-
"$ref": "#/definitions/vfmReplaceRule"
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
"hardLineBreaks": {
|
|
413
|
-
"description": "Add `<br>` at the position of hard line breaks, without needing spaces.",
|
|
414
|
-
"type": "boolean"
|
|
415
|
-
},
|
|
416
|
-
"disableFormatHtml": {
|
|
417
|
-
"description": "Disable automatic HTML format.",
|
|
418
|
-
"type": "boolean"
|
|
419
|
-
},
|
|
420
|
-
"math": {
|
|
421
|
-
"description": "Enable math syntax.",
|
|
422
|
-
"type": "boolean"
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
"image": {
|
|
427
|
-
"description": "Specify a docker image to render.",
|
|
428
|
-
"type": "string",
|
|
429
|
-
"minLength": 1
|
|
430
|
-
},
|
|
431
|
-
"http": {
|
|
432
|
-
"description": "Launch an HTTP server hosting contents instead of file protocol. It is useful that requires CORS such as external web fonts.",
|
|
433
|
-
"type": "boolean"
|
|
434
|
-
},
|
|
435
|
-
"viewer": {
|
|
436
|
-
"description": "Specify a URL of displaying viewer instead of vivliostyle-cli's one. It is useful that using own viewer that has staging features. (ex: https://vivliostyle.vercel.app/)",
|
|
437
|
-
"type": "string",
|
|
438
|
-
"minLength": 1
|
|
439
|
-
},
|
|
440
|
-
"viewerParam": {
|
|
441
|
-
"description": "specify viewer parameters. (ex: \"allowScripts=false&pixelRatio=16\")",
|
|
442
|
-
"type": "string",
|
|
443
|
-
"minLength": 1
|
|
444
|
-
},
|
|
445
|
-
"browser": {
|
|
446
|
-
"description": "EXPERIMENTAL SUPPORT: Specify a browser type to launch Vivliostyle viewer. Currently, Firefox and Webkit support preview command only!",
|
|
447
|
-
"oneOf": [{ "$ref": "#/definitions/browserType" }],
|
|
448
|
-
"default": "chromium"
|
|
449
|
-
}
|
|
450
|
-
},
|
|
451
|
-
"required": ["entry"]
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
"oneOf": [
|
|
455
|
-
{
|
|
456
|
-
"$ref": "#/definitions/vivliostyleConfigEntry"
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
"type": "array",
|
|
460
|
-
"items": {
|
|
461
|
-
"$ref": "#/definitions/vivliostyleConfigEntry"
|
|
462
|
-
},
|
|
463
|
-
"minItems": 1
|
|
464
|
-
}
|
|
465
|
-
]
|
|
466
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// Type file providing better-ajv-errors package seems not to be loaded
|
|
2
|
-
// because newer TypeScript doesn't look "types" settings in `type: module` context.
|
|
3
|
-
declare module 'better-ajv-errors' {
|
|
4
|
-
import type { ErrorObject } from 'ajv';
|
|
5
|
-
|
|
6
|
-
export interface IOutputError {
|
|
7
|
-
start: { line: number; column: number; offset: number };
|
|
8
|
-
// Optional for required
|
|
9
|
-
end?: { line: number; column: number; offset: number };
|
|
10
|
-
error: string;
|
|
11
|
-
suggestion?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface IInputOptions {
|
|
15
|
-
format?: 'cli' | 'js';
|
|
16
|
-
indent?: number | null;
|
|
17
|
-
|
|
18
|
-
/** Raw JSON used when highlighting error location */
|
|
19
|
-
json?: string | null;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export default function <S, T, Options extends IInputOptions>(
|
|
23
|
-
schema: S,
|
|
24
|
-
data: T,
|
|
25
|
-
errors: Array<ErrorObject>,
|
|
26
|
-
options?: Options,
|
|
27
|
-
): Options extends { format: 'js' } ? Array<IOutputError> : string;
|
|
28
|
-
}
|