@vivliostyle/cli 10.3.0 → 10.4.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/README.md +7 -4
- package/dist/{chunk-RBKPG6VU.js → chunk-4DTPH2XX.js} +2 -2
- package/dist/{chunk-QLK3XMQI.js → chunk-DEJL63H2.js} +195 -130
- package/dist/chunk-DEJL63H2.js.map +1 -0
- package/dist/{chunk-ZEBXHUJX.js → chunk-DK3HFVHX.js} +27 -51
- package/dist/chunk-DK3HFVHX.js.map +1 -0
- package/dist/{chunk-3QOSSWIX.js → chunk-J2YGULSR.js} +58 -10
- package/dist/chunk-J2YGULSR.js.map +1 -0
- package/dist/{chunk-ALY3QX7K.js → chunk-L4PJ2SP3.js} +22 -25
- package/dist/chunk-L4PJ2SP3.js.map +1 -0
- package/dist/{chunk-WIGLU3EK.js → chunk-LE3QOQ5F.js} +11 -9
- package/dist/{chunk-WIGLU3EK.js.map → chunk-LE3QOQ5F.js.map} +1 -1
- package/dist/{chunk-YNX6D2I6.js → chunk-P33ELNYE.js} +342 -383
- package/dist/chunk-P33ELNYE.js.map +1 -0
- package/dist/chunk-Q4EIXB5V.js +330 -0
- package/dist/chunk-Q4EIXB5V.js.map +1 -0
- package/dist/{chunk-NVNEYZ3J.js → chunk-RLV2H3QB.js} +11 -11
- package/dist/chunk-RLV2H3QB.js.map +1 -0
- package/dist/{chunk-RILZCPJE.js → chunk-VAPIKX4A.js} +308 -503
- package/dist/chunk-VAPIKX4A.js.map +1 -0
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/build.js +17 -10
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/create.js +14 -7
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/init.js +7 -6
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/preview.js +16 -9
- package/dist/commands/preview.js.map +1 -1
- package/dist/config/schema.d.ts +13293 -1796
- package/dist/config/schema.js +7 -2
- package/dist/constants.d.ts +250 -0
- package/dist/constants.js +60 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/dist/vite-adapter.js +6 -5
- package/package.json +16 -12
- package/dist/chunk-3QOSSWIX.js.map +0 -1
- package/dist/chunk-ALY3QX7K.js.map +0 -1
- package/dist/chunk-NVNEYZ3J.js.map +0 -1
- package/dist/chunk-QLK3XMQI.js.map +0 -1
- package/dist/chunk-RILZCPJE.js.map +0 -1
- package/dist/chunk-YNX6D2I6.js.map +0 -1
- package/dist/chunk-ZEBXHUJX.js.map +0 -1
- /package/dist/{chunk-RBKPG6VU.js.map → chunk-4DTPH2XX.js.map} +0 -0
package/dist/config/schema.js
CHANGED
|
@@ -23,6 +23,8 @@ import {
|
|
|
23
23
|
ThemeSpecifier,
|
|
24
24
|
TocConfig,
|
|
25
25
|
ValidString,
|
|
26
|
+
VfmFootnoteMode,
|
|
27
|
+
VfmFootnoteOptions,
|
|
26
28
|
VfmReplaceRule,
|
|
27
29
|
VivliostyleConfigSchema,
|
|
28
30
|
VivliostyleInlineConfig,
|
|
@@ -30,8 +32,9 @@ import {
|
|
|
30
32
|
VivliostylePackageMetadata,
|
|
31
33
|
VivliostyleTemplateMetadata,
|
|
32
34
|
VivliostyleThemeMetadata
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
+
} from "../chunk-J2YGULSR.js";
|
|
36
|
+
import "../chunk-VAPIKX4A.js";
|
|
37
|
+
import "../chunk-DK3HFVHX.js";
|
|
35
38
|
import "../chunk-I7BWSAN6.js";
|
|
36
39
|
export {
|
|
37
40
|
ArticleEntryConfig,
|
|
@@ -58,6 +61,8 @@ export {
|
|
|
58
61
|
ThemeSpecifier,
|
|
59
62
|
TocConfig,
|
|
60
63
|
ValidString,
|
|
64
|
+
VfmFootnoteMode,
|
|
65
|
+
VfmFootnoteOptions,
|
|
61
66
|
VfmReplaceRule,
|
|
62
67
|
VivliostyleConfigSchema,
|
|
63
68
|
VivliostyleInlineConfig,
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
declare const MANIFEST_FILENAME = "publication.json";
|
|
2
|
+
declare const TOC_FILENAME = "index.html";
|
|
3
|
+
declare const TOC_TITLE = "Table of Contents";
|
|
4
|
+
declare const COVER_HTML_FILENAME = "cover.html";
|
|
5
|
+
declare const COVER_HTML_IMAGE_ALT = "Cover image";
|
|
6
|
+
declare const XML_DECLARATION = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
|
|
7
|
+
declare const EPUB_OUTPUT_VERSION = "3.0";
|
|
8
|
+
declare const EPUB_MIMETYPE = "application/epub+zip";
|
|
9
|
+
declare const EPUB_NS = "http://www.idpf.org/2007/ops";
|
|
10
|
+
declare const EPUB_CONTAINER_XML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<container version=\"1.0\" xmlns=\"urn:oasis:names:tc:opendocument:xmlns:container\">\n <rootfiles>\n <rootfile full-path=\"EPUB/content.opf\" media-type=\"application/oebps-package+xml\" />\n </rootfiles>\n</container>";
|
|
11
|
+
declare const EPUB_LANDMARKS_TITLE = "Landmarks";
|
|
12
|
+
declare const EPUB_LANDMARKS_TOC_ENTRY = "Table of Contents";
|
|
13
|
+
declare const EPUB_LANDMARKS_COVER_ENTRY = "Cover Page";
|
|
14
|
+
declare const CMYK_RESERVE_MAP_FILENAME = "cmyk-reserve-map.json";
|
|
15
|
+
declare const EMPTY_DATA_URI = "data:,";
|
|
16
|
+
declare const VIEWER_ROOT_PATH = "/__vivliostyle-viewer";
|
|
17
|
+
declare const CONTAINER_URL = "ghcr.io/vivliostyle/cli";
|
|
18
|
+
declare const CONTAINER_ROOT_DIR = "/data";
|
|
19
|
+
declare const CONTAINER_LOCAL_HOSTNAME = "host.docker.internal";
|
|
20
|
+
declare const DEFAULT_BROWSER_VERSIONS: {
|
|
21
|
+
readonly chrome: {
|
|
22
|
+
readonly linux: "146.0.7680.153";
|
|
23
|
+
readonly linux_arm: "146.0.7680.153";
|
|
24
|
+
readonly mac: "146.0.7680.153";
|
|
25
|
+
readonly mac_arm: "146.0.7680.153";
|
|
26
|
+
readonly win32: "146.0.7680.153";
|
|
27
|
+
readonly win64: "146.0.7680.153";
|
|
28
|
+
};
|
|
29
|
+
readonly chromium: {
|
|
30
|
+
readonly linux: "1603217";
|
|
31
|
+
readonly linux_arm: "1603215";
|
|
32
|
+
readonly mac: "1603215";
|
|
33
|
+
readonly mac_arm: "1603217";
|
|
34
|
+
readonly win32: "1603213";
|
|
35
|
+
readonly win64: "1603210";
|
|
36
|
+
};
|
|
37
|
+
readonly firefox: {
|
|
38
|
+
readonly linux: "stable_148.0.2";
|
|
39
|
+
readonly linux_arm: "stable_148.0.2";
|
|
40
|
+
readonly mac: "stable_148.0.2";
|
|
41
|
+
readonly mac_arm: "stable_148.0.2";
|
|
42
|
+
readonly win32: "stable_148.0.2";
|
|
43
|
+
readonly win64: "stable_148.0.2";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
declare const DEFAULT_CONFIG_FILENAME = "vivliostyle.config.js";
|
|
47
|
+
declare const DEFAULT_PROJECT_TITLE = "My Title";
|
|
48
|
+
declare const DEFAULT_PROJECT_AUTHOR = "My Name";
|
|
49
|
+
declare const TEMPLATE_SETTINGS: readonly [{
|
|
50
|
+
readonly value: "minimal";
|
|
51
|
+
readonly label: "Minimal";
|
|
52
|
+
readonly hint: "Use a minimal template with empty content";
|
|
53
|
+
readonly template: "gh:vivliostyle/vivliostyle-cli/templates/minimal";
|
|
54
|
+
}, {
|
|
55
|
+
readonly value: "basic";
|
|
56
|
+
readonly label: "Basic";
|
|
57
|
+
readonly hint: "Use a basic template with starter content";
|
|
58
|
+
readonly template: "gh:vivliostyle/vivliostyle-cli/templates/basic";
|
|
59
|
+
}, {
|
|
60
|
+
readonly value: "basic-ja";
|
|
61
|
+
readonly label: "Basic (Japanese)";
|
|
62
|
+
readonly hint: "Use a basic template with starter content in Japanese";
|
|
63
|
+
readonly template: "gh:vivliostyle/vivliostyle-cli/templates/basic-ja";
|
|
64
|
+
}];
|
|
65
|
+
declare const TEMPLATE_DEFAULT_PACKAGE_JSON = "{\n \"name\": \"{{kebab title}}\",\n \"description\": \"{{proper title}}\",\n \"author\": \"{{author}}\",\n \"version\": \"0.0.0\",\n \"type\": \"module\",\n \"private\": true,\n \"scripts\": {\n \"build\": \"vivliostyle build\",\n \"preview\": \"vivliostyle preview\"\n },\n \"dependencies\": {\n \"@vivliostyle/cli\": \"{{cliVersion}}\"\n }\n}\n";
|
|
66
|
+
declare const TEMPLATE_DEFAULT_VIVLIOSTYLE_CONFIG_JS = "// @ts-check\nimport { defineConfig } from '@vivliostyle/cli';\n\nexport default defineConfig({\n title: \"{{proper title}}\",\n author: \"{{author}}\",\n {{#if language}}\n language: \"{{language}}\",\n {{/if}}\n {{#if size}}\n size: \"{{size}}\",\n {{/if}}\n {{#if theme}}\n theme: {{json theme}},\n {{/if}}\n {{#if browser}}\n browser: \"{{browser.type}}{{#if browser.tag}}@{{browser.tag}}{{/if}}\",\n {{/if}}\n image: \"ghcr.io/vivliostyle/cli:{{cliVersion}}\",\n entry: [\"manuscript.md\"],\n});\n";
|
|
67
|
+
declare const LANGUAGES: {
|
|
68
|
+
aa: string;
|
|
69
|
+
ab: string;
|
|
70
|
+
af: string;
|
|
71
|
+
ak: string;
|
|
72
|
+
am: string;
|
|
73
|
+
an: string;
|
|
74
|
+
ar: string;
|
|
75
|
+
'ar-001': string;
|
|
76
|
+
as: string;
|
|
77
|
+
az: string;
|
|
78
|
+
ba: string;
|
|
79
|
+
be: string;
|
|
80
|
+
bg: string;
|
|
81
|
+
bm: string;
|
|
82
|
+
bn: string;
|
|
83
|
+
bo: string;
|
|
84
|
+
br: string;
|
|
85
|
+
bs: string;
|
|
86
|
+
ca: string;
|
|
87
|
+
ce: string;
|
|
88
|
+
co: string;
|
|
89
|
+
cs: string;
|
|
90
|
+
cu: string;
|
|
91
|
+
cv: string;
|
|
92
|
+
cy: string;
|
|
93
|
+
da: string;
|
|
94
|
+
de: string;
|
|
95
|
+
'de-AT': string;
|
|
96
|
+
'de-CH': string;
|
|
97
|
+
dv: string;
|
|
98
|
+
dz: string;
|
|
99
|
+
ee: string;
|
|
100
|
+
el: string;
|
|
101
|
+
en: string;
|
|
102
|
+
'en-AU': string;
|
|
103
|
+
'en-CA': string;
|
|
104
|
+
'en-GB': string;
|
|
105
|
+
'en-US': string;
|
|
106
|
+
eo: string;
|
|
107
|
+
es: string;
|
|
108
|
+
'es-419': string;
|
|
109
|
+
'es-ES': string;
|
|
110
|
+
'es-MX': string;
|
|
111
|
+
et: string;
|
|
112
|
+
eu: string;
|
|
113
|
+
fa: string;
|
|
114
|
+
'fa-AF': string;
|
|
115
|
+
ff: string;
|
|
116
|
+
fi: string;
|
|
117
|
+
fo: string;
|
|
118
|
+
fr: string;
|
|
119
|
+
'fr-CA': string;
|
|
120
|
+
'fr-CH': string;
|
|
121
|
+
fy: string;
|
|
122
|
+
ga: string;
|
|
123
|
+
gd: string;
|
|
124
|
+
gl: string;
|
|
125
|
+
gn: string;
|
|
126
|
+
gu: string;
|
|
127
|
+
gv: string;
|
|
128
|
+
ha: string;
|
|
129
|
+
he: string;
|
|
130
|
+
hi: string;
|
|
131
|
+
'hi-Latn': string;
|
|
132
|
+
hr: string;
|
|
133
|
+
ht: string;
|
|
134
|
+
hu: string;
|
|
135
|
+
hy: string;
|
|
136
|
+
ia: string;
|
|
137
|
+
id: string;
|
|
138
|
+
ie: string;
|
|
139
|
+
ig: string;
|
|
140
|
+
ii: string;
|
|
141
|
+
io: string;
|
|
142
|
+
is: string;
|
|
143
|
+
it: string;
|
|
144
|
+
iu: string;
|
|
145
|
+
ja: string;
|
|
146
|
+
jv: string;
|
|
147
|
+
ka: string;
|
|
148
|
+
ki: string;
|
|
149
|
+
kk: string;
|
|
150
|
+
kl: string;
|
|
151
|
+
km: string;
|
|
152
|
+
kn: string;
|
|
153
|
+
ko: string;
|
|
154
|
+
ks: string;
|
|
155
|
+
ku: string;
|
|
156
|
+
kw: string;
|
|
157
|
+
ky: string;
|
|
158
|
+
la: string;
|
|
159
|
+
lb: string;
|
|
160
|
+
lg: string;
|
|
161
|
+
ln: string;
|
|
162
|
+
lo: string;
|
|
163
|
+
lt: string;
|
|
164
|
+
lu: string;
|
|
165
|
+
lv: string;
|
|
166
|
+
mg: string;
|
|
167
|
+
mi: string;
|
|
168
|
+
mk: string;
|
|
169
|
+
ml: string;
|
|
170
|
+
mn: string;
|
|
171
|
+
mr: string;
|
|
172
|
+
ms: string;
|
|
173
|
+
mt: string;
|
|
174
|
+
my: string;
|
|
175
|
+
nb: string;
|
|
176
|
+
nd: string;
|
|
177
|
+
ne: string;
|
|
178
|
+
nl: string;
|
|
179
|
+
'nl-BE': string;
|
|
180
|
+
nn: string;
|
|
181
|
+
no: string;
|
|
182
|
+
nr: string;
|
|
183
|
+
nv: string;
|
|
184
|
+
ny: string;
|
|
185
|
+
oc: string;
|
|
186
|
+
om: string;
|
|
187
|
+
or: string;
|
|
188
|
+
os: string;
|
|
189
|
+
pa: string;
|
|
190
|
+
pl: string;
|
|
191
|
+
ps: string;
|
|
192
|
+
pt: string;
|
|
193
|
+
'pt-BR': string;
|
|
194
|
+
'pt-PT': string;
|
|
195
|
+
qu: string;
|
|
196
|
+
rm: string;
|
|
197
|
+
rn: string;
|
|
198
|
+
ro: string;
|
|
199
|
+
'ro-MD': string;
|
|
200
|
+
ru: string;
|
|
201
|
+
rw: string;
|
|
202
|
+
sa: string;
|
|
203
|
+
sc: string;
|
|
204
|
+
sd: string;
|
|
205
|
+
se: string;
|
|
206
|
+
sg: string;
|
|
207
|
+
si: string;
|
|
208
|
+
sk: string;
|
|
209
|
+
sl: string;
|
|
210
|
+
sn: string;
|
|
211
|
+
so: string;
|
|
212
|
+
sq: string;
|
|
213
|
+
sr: string;
|
|
214
|
+
ss: string;
|
|
215
|
+
st: string;
|
|
216
|
+
su: string;
|
|
217
|
+
sv: string;
|
|
218
|
+
sw: string;
|
|
219
|
+
'sw-CD': string;
|
|
220
|
+
ta: string;
|
|
221
|
+
te: string;
|
|
222
|
+
tg: string;
|
|
223
|
+
th: string;
|
|
224
|
+
ti: string;
|
|
225
|
+
tk: string;
|
|
226
|
+
tn: string;
|
|
227
|
+
to: string;
|
|
228
|
+
tr: string;
|
|
229
|
+
ts: string;
|
|
230
|
+
tt: string;
|
|
231
|
+
ug: string;
|
|
232
|
+
uk: string;
|
|
233
|
+
ur: string;
|
|
234
|
+
uz: string;
|
|
235
|
+
ve: string;
|
|
236
|
+
vi: string;
|
|
237
|
+
vo: string;
|
|
238
|
+
wa: string;
|
|
239
|
+
wo: string;
|
|
240
|
+
xh: string;
|
|
241
|
+
yi: string;
|
|
242
|
+
yo: string;
|
|
243
|
+
za: string;
|
|
244
|
+
zh: string;
|
|
245
|
+
'zh-Hans': string;
|
|
246
|
+
'zh-Hant': string;
|
|
247
|
+
zu: string;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export { CMYK_RESERVE_MAP_FILENAME, CONTAINER_LOCAL_HOSTNAME, CONTAINER_ROOT_DIR, CONTAINER_URL, COVER_HTML_FILENAME, COVER_HTML_IMAGE_ALT, DEFAULT_BROWSER_VERSIONS, DEFAULT_CONFIG_FILENAME, DEFAULT_PROJECT_AUTHOR, DEFAULT_PROJECT_TITLE, EMPTY_DATA_URI, EPUB_CONTAINER_XML, EPUB_LANDMARKS_COVER_ENTRY, EPUB_LANDMARKS_TITLE, EPUB_LANDMARKS_TOC_ENTRY, EPUB_MIMETYPE, EPUB_NS, EPUB_OUTPUT_VERSION, LANGUAGES, MANIFEST_FILENAME, TEMPLATE_DEFAULT_PACKAGE_JSON, TEMPLATE_DEFAULT_VIVLIOSTYLE_CONFIG_JS, TEMPLATE_SETTINGS, TOC_FILENAME, TOC_TITLE, VIEWER_ROOT_PATH, XML_DECLARATION };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CMYK_RESERVE_MAP_FILENAME,
|
|
3
|
+
CONTAINER_LOCAL_HOSTNAME,
|
|
4
|
+
CONTAINER_ROOT_DIR,
|
|
5
|
+
CONTAINER_URL,
|
|
6
|
+
COVER_HTML_FILENAME,
|
|
7
|
+
COVER_HTML_IMAGE_ALT,
|
|
8
|
+
DEFAULT_BROWSER_VERSIONS,
|
|
9
|
+
DEFAULT_CONFIG_FILENAME,
|
|
10
|
+
DEFAULT_PROJECT_AUTHOR,
|
|
11
|
+
DEFAULT_PROJECT_TITLE,
|
|
12
|
+
EMPTY_DATA_URI,
|
|
13
|
+
EPUB_CONTAINER_XML,
|
|
14
|
+
EPUB_LANDMARKS_COVER_ENTRY,
|
|
15
|
+
EPUB_LANDMARKS_TITLE,
|
|
16
|
+
EPUB_LANDMARKS_TOC_ENTRY,
|
|
17
|
+
EPUB_MIMETYPE,
|
|
18
|
+
EPUB_NS,
|
|
19
|
+
EPUB_OUTPUT_VERSION,
|
|
20
|
+
LANGUAGES,
|
|
21
|
+
MANIFEST_FILENAME,
|
|
22
|
+
TEMPLATE_DEFAULT_PACKAGE_JSON,
|
|
23
|
+
TEMPLATE_DEFAULT_VIVLIOSTYLE_CONFIG_JS,
|
|
24
|
+
TEMPLATE_SETTINGS,
|
|
25
|
+
TOC_FILENAME,
|
|
26
|
+
TOC_TITLE,
|
|
27
|
+
VIEWER_ROOT_PATH,
|
|
28
|
+
XML_DECLARATION
|
|
29
|
+
} from "./chunk-DK3HFVHX.js";
|
|
30
|
+
import "./chunk-I7BWSAN6.js";
|
|
31
|
+
export {
|
|
32
|
+
CMYK_RESERVE_MAP_FILENAME,
|
|
33
|
+
CONTAINER_LOCAL_HOSTNAME,
|
|
34
|
+
CONTAINER_ROOT_DIR,
|
|
35
|
+
CONTAINER_URL,
|
|
36
|
+
COVER_HTML_FILENAME,
|
|
37
|
+
COVER_HTML_IMAGE_ALT,
|
|
38
|
+
DEFAULT_BROWSER_VERSIONS,
|
|
39
|
+
DEFAULT_CONFIG_FILENAME,
|
|
40
|
+
DEFAULT_PROJECT_AUTHOR,
|
|
41
|
+
DEFAULT_PROJECT_TITLE,
|
|
42
|
+
EMPTY_DATA_URI,
|
|
43
|
+
EPUB_CONTAINER_XML,
|
|
44
|
+
EPUB_LANDMARKS_COVER_ENTRY,
|
|
45
|
+
EPUB_LANDMARKS_TITLE,
|
|
46
|
+
EPUB_LANDMARKS_TOC_ENTRY,
|
|
47
|
+
EPUB_MIMETYPE,
|
|
48
|
+
EPUB_NS,
|
|
49
|
+
EPUB_OUTPUT_VERSION,
|
|
50
|
+
LANGUAGES,
|
|
51
|
+
MANIFEST_FILENAME,
|
|
52
|
+
TEMPLATE_DEFAULT_PACKAGE_JSON,
|
|
53
|
+
TEMPLATE_DEFAULT_VIVLIOSTYLE_CONFIG_JS,
|
|
54
|
+
TEMPLATE_SETTINGS,
|
|
55
|
+
TOC_FILENAME,
|
|
56
|
+
TOC_TITLE,
|
|
57
|
+
VIEWER_ROOT_PATH,
|
|
58
|
+
XML_DECLARATION
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
preview
|
|
3
|
+
} from "./chunk-RLV2H3QB.js";
|
|
1
4
|
import {
|
|
2
5
|
createVitePlugin
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LE3QOQ5F.js";
|
|
4
7
|
import {
|
|
5
8
|
build
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L4PJ2SP3.js";
|
|
10
|
+
import "./chunk-4DTPH2XX.js";
|
|
11
|
+
import "./chunk-P33ELNYE.js";
|
|
12
|
+
import "./chunk-ECEGM36O.js";
|
|
7
13
|
import {
|
|
8
14
|
create
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import
|
|
11
|
-
preview
|
|
12
|
-
} from "./chunk-NVNEYZ3J.js";
|
|
13
|
-
import "./chunk-RBKPG6VU.js";
|
|
14
|
-
import "./chunk-YNX6D2I6.js";
|
|
15
|
-
import "./chunk-ECEGM36O.js";
|
|
16
|
-
import "./chunk-RILZCPJE.js";
|
|
15
|
+
} from "./chunk-DEJL63H2.js";
|
|
16
|
+
import "./chunk-Q4EIXB5V.js";
|
|
17
17
|
import {
|
|
18
18
|
VivliostyleInlineConfig
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-J2YGULSR.js";
|
|
20
|
+
import "./chunk-VAPIKX4A.js";
|
|
21
|
+
import "./chunk-DK3HFVHX.js";
|
|
21
22
|
import "./chunk-I7BWSAN6.js";
|
|
22
23
|
|
|
23
24
|
// src/index.ts
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/config/define.ts"],"sourcesContent":["import * as v from 'valibot';\nimport { VivliostyleInlineConfig } from './config/schema.js';\nimport { build as _build } from './core/build.js';\nimport { create as _create } from './core/create.js';\nimport { preview as _preview } from './core/preview.js';\nimport type { PublicationManifest as _PublicationManifest } from './schema/publication.schema.js';\n\nexport { defineConfig } from './config/define.js';\nexport {\n VFM,\n readMetadata,\n type Metadata,\n type StringifyMarkdownOptions,\n} from '@vivliostyle/vfm';\nexport type {\n StructuredDocument,\n StructuredDocumentSection,\n VivliostyleConfigSchema,\n VivliostylePackageMetadata,\n} from './config/schema.js';\nexport type { TemplateVariable } from './create-template.js';\nexport { createVitePlugin } from './vite-adapter.js';\n/** @hidden */\nexport type PublicationManifest = _PublicationManifest;\n\n/**\n * Build publication file(s) from the given configuration.\n *\n * ```ts\n * import { build } from '@vivliostyle/cli';\n * build({\n * configPath: './vivliostyle.config.js',\n * logLevel: 'silent',\n * });\n * ```\n *\n * @param options\n * @returns\n */\nexport async function build(options: VivliostyleInlineConfig) {\n const parsed = v.parse(VivliostyleInlineConfig, options);\n return await _build(parsed);\n}\n\n/**\n * Open a browser for previewing the publication.\n *\n * @param options\n * @returns\n */\nexport async function preview(options: VivliostyleInlineConfig) {\n const parsed = v.parse(VivliostyleInlineConfig, options);\n return await _preview(parsed);\n}\n\n/**\n * Scaffold a new Vivliostyle project.\n *\n * @param options\n * @returns\n */\nexport async function create(options: VivliostyleInlineConfig) {\n const parsed = v.parse(VivliostyleInlineConfig, options);\n return await _create(parsed);\n}\n","import { VivliostyleConfigSchema } from './schema.js';\n\n/**\n * Define the configuration for Vivliostyle CLI.\n */\nexport function defineConfig(\n config: VivliostyleConfigSchema,\n): VivliostyleConfigSchema {\n return config;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/config/define.ts"],"sourcesContent":["import * as v from 'valibot';\nimport { VivliostyleInlineConfig } from './config/schema.js';\nimport { build as _build } from './core/build.js';\nimport { create as _create } from './core/create.js';\nimport { preview as _preview } from './core/preview.js';\nimport type { PublicationManifest as _PublicationManifest } from './schema/publication.schema.js';\n\nexport { defineConfig } from './config/define.js';\nexport {\n VFM,\n readMetadata,\n type Metadata,\n type StringifyMarkdownOptions,\n} from '@vivliostyle/vfm';\nexport type {\n StructuredDocument,\n StructuredDocumentSection,\n VivliostyleConfigSchema,\n VivliostylePackageMetadata,\n} from './config/schema.js';\nexport type { TemplateVariable } from './create-template.js';\nexport { createVitePlugin } from './vite-adapter.js';\n/** @hidden */\nexport type PublicationManifest = _PublicationManifest;\n\n/**\n * Build publication file(s) from the given configuration.\n *\n * ```ts\n * import { build } from '@vivliostyle/cli';\n * build({\n * configPath: './vivliostyle.config.js',\n * logLevel: 'silent',\n * });\n * ```\n *\n * @param options\n * @returns\n */\nexport async function build(options: VivliostyleInlineConfig) {\n const parsed = v.parse(VivliostyleInlineConfig, options);\n return await _build(parsed);\n}\n\n/**\n * Open a browser for previewing the publication.\n *\n * @param options\n * @returns\n */\nexport async function preview(options: VivliostyleInlineConfig) {\n const parsed = v.parse(VivliostyleInlineConfig, options);\n return await _preview(parsed);\n}\n\n/**\n * Scaffold a new Vivliostyle project.\n *\n * @param options\n * @returns\n */\nexport async function create(options: VivliostyleInlineConfig) {\n const parsed = v.parse(VivliostyleInlineConfig, options);\n return await _create(parsed);\n}\n","import { VivliostyleConfigSchema } from './schema.js';\n\n/**\n * Define the configuration for Vivliostyle CLI.\n */\nexport function defineConfig(\n config: VivliostyleConfigSchema,\n): VivliostyleConfigSchema {\n return config;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAY,OAAO;;;ACKZ,SAAS,aACd,QACyB;AACzB,SAAO;AACT;;;ADDA;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AA0BP,eAAsBA,OAAM,SAAkC;AAC5D,QAAM,SAAW,QAAM,yBAAyB,OAAO;AACvD,SAAO,MAAM,MAAO,MAAM;AAC5B;AAQA,eAAsBC,SAAQ,SAAkC;AAC9D,QAAM,SAAW,QAAM,yBAAyB,OAAO;AACvD,SAAO,MAAM,QAAS,MAAM;AAC9B;AAQA,eAAsBC,QAAO,SAAkC;AAC7D,QAAM,SAAW,QAAM,yBAAyB,OAAO;AACvD,SAAO,MAAM,OAAQ,MAAM;AAC7B;","names":["build","preview","create"]}
|
package/dist/vite-adapter.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createVitePlugin
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LE3QOQ5F.js";
|
|
4
|
+
import "./chunk-P33ELNYE.js";
|
|
5
5
|
import "./chunk-ECEGM36O.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-Q4EIXB5V.js";
|
|
7
|
+
import "./chunk-J2YGULSR.js";
|
|
8
|
+
import "./chunk-VAPIKX4A.js";
|
|
9
|
+
import "./chunk-DK3HFVHX.js";
|
|
9
10
|
import "./chunk-I7BWSAN6.js";
|
|
10
11
|
export {
|
|
11
12
|
createVitePlugin
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivliostyle/cli",
|
|
3
3
|
"description": "Save the pdf file via headless browser and Vivliostyle.",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.4.0",
|
|
5
5
|
"author": "spring_raining <harusamex.com@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"peerDependencies": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@npmcli/arborist": "9.1.7",
|
|
18
18
|
"@puppeteer/browsers": "2.10.5",
|
|
19
19
|
"@vivliostyle/jsdom": "25.0.1-vivliostyle-cli.1",
|
|
20
|
-
"@vivliostyle/vfm": "2.
|
|
20
|
+
"@vivliostyle/vfm": "2.6.0",
|
|
21
21
|
"@vivliostyle/viewer": "2.40.0",
|
|
22
|
-
"ajv": "8.
|
|
22
|
+
"ajv": "8.18.0",
|
|
23
23
|
"ajv-formats": "3.0.1",
|
|
24
24
|
"archiver": "7.0.1",
|
|
25
25
|
"bcp-47-match": "2.0.3",
|
|
@@ -28,24 +28,24 @@
|
|
|
28
28
|
"commander": "13.1.0",
|
|
29
29
|
"debug": "4.4.0",
|
|
30
30
|
"decamelize": "6.0.0",
|
|
31
|
-
"dompurify": "3.2
|
|
31
|
+
"dompurify": "3.3.2",
|
|
32
32
|
"escape-string-regexp": "5.0.0",
|
|
33
33
|
"fast-wrap-ansi": "0.1.3",
|
|
34
|
-
"fast-xml-
|
|
34
|
+
"fast-xml-builder": "1.1.4",
|
|
35
|
+
"fast-xml-parser": "5.5.10",
|
|
35
36
|
"fs-extra": "11.2.0",
|
|
36
37
|
"github-slugger": "2.0.0",
|
|
37
|
-
"handlebars": "4.7.
|
|
38
|
+
"handlebars": "4.7.9",
|
|
38
39
|
"hast-util-to-html": "9.0.5",
|
|
39
40
|
"hastscript": "9.0.1",
|
|
40
|
-
"lcid": "5.0.0",
|
|
41
41
|
"mime-types": "3.0.1",
|
|
42
|
-
"mupdf": "1.
|
|
42
|
+
"mupdf": "npm:@u1f992/mupdf@1.27.0-patched.1",
|
|
43
43
|
"node-fetch-native": "1.6.7",
|
|
44
44
|
"node-stream-zip": "1.15.0",
|
|
45
45
|
"npm-package-arg": "12.0.2",
|
|
46
|
-
"os-locale": "
|
|
46
|
+
"os-locale": "8.0.0",
|
|
47
47
|
"pdf-lib": "1.17.1",
|
|
48
|
-
"picomatch": "4.0.
|
|
48
|
+
"picomatch": "4.0.4",
|
|
49
49
|
"press-ready": "4.0.3",
|
|
50
50
|
"puppeteer-core": "24.27.0",
|
|
51
51
|
"resolve-pkg": "2.0.0",
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
"@types/whatwg-mimetype": "3.0.2",
|
|
93
93
|
"@vitest/coverage-v8": "3.1.2",
|
|
94
94
|
"adm-zip": "0.5.16",
|
|
95
|
-
"file-type": "
|
|
95
|
+
"file-type": "21.3.2",
|
|
96
96
|
"husky": "9.1.7",
|
|
97
97
|
"json-schema-to-typescript": "15.0.4",
|
|
98
98
|
"memfs": "4.17.0",
|
|
99
|
-
"pnpm": "10.
|
|
99
|
+
"pnpm": "10.28.2",
|
|
100
100
|
"prettier": "3.5.3",
|
|
101
101
|
"prettier-plugin-astro": "0.14.1",
|
|
102
102
|
"pretty-quick": "4.1.1",
|
|
@@ -125,6 +125,10 @@
|
|
|
125
125
|
"types": "./dist/commands/*.d.ts",
|
|
126
126
|
"import": "./dist/commands/*.js"
|
|
127
127
|
},
|
|
128
|
+
"./constants": {
|
|
129
|
+
"types": "./dist/constants.d.ts",
|
|
130
|
+
"import": "./dist/constants.js"
|
|
131
|
+
},
|
|
128
132
|
"./node-modules": {
|
|
129
133
|
"types": "./dist/node-modules.d.ts",
|
|
130
134
|
"import": "./dist/node-modules.js"
|