@slidev/cli 0.42.6 → 0.42.7
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/{build-V5TH5VWM.js → build-FGRU7R5C.js} +8 -8
- package/dist/{build-4X66UIV5.mjs → build-MQ5SJ6HF.mjs} +4 -4
- package/dist/{chunk-6ZL4B4HQ.js → chunk-34SGGZ4P.js} +5 -5
- package/dist/{chunk-T4MW747S.mjs → chunk-ACFLBCHI.mjs} +21 -21
- package/dist/{chunk-OFNPVCQ3.js → chunk-ELRZS7XI.js} +26 -26
- package/dist/{chunk-L5QH2WZE.mjs → chunk-KB3DQ2OE.mjs} +1 -1
- package/dist/{chunk-FP2Y7WJ3.mjs → chunk-LN5DOTNJ.mjs} +5 -5
- package/dist/{chunk-CIUEQ4TI.mjs → chunk-MZBIET7Y.mjs} +1 -1
- package/dist/{chunk-MJQETB73.js → chunk-QDKRARRU.js} +1 -1
- package/dist/{chunk-YI4ZV27K.js → chunk-RSZHGGR3.js} +4 -4
- package/dist/{chunk-X7P5WRYP.mjs → chunk-VPD6PH2L.mjs} +1 -1
- package/dist/{chunk-42FDW3LK.js → chunk-XWJGVGSP.js} +98 -98
- package/dist/cli.js +34 -34
- package/dist/cli.mjs +10 -10
- package/dist/{export-KRS4L4HC.mjs → export-6G7WYT32.mjs} +11 -3
- package/dist/{export-PN4EOI4Z.js → export-BGMCS4F2.js} +13 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/dist/{unocss-2CJUFE63.js → unocss-2T2KTWQ5.js} +1 -1
- package/dist/{unocss-ZLGTDCD7.mjs → unocss-ALFHEPHE.mjs} +1 -1
- package/dist/windicss-3HGYWXUJ.js +9 -0
- package/dist/{windicss-OSTDR2Z6.mjs → windicss-TWSVDM4O.mjs} +3 -3
- package/package.json +7 -7
- package/dist/windicss-YNIIPANV.js +0 -9
package/dist/cli.js
CHANGED
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkXWJGVGSPjs = require('./chunk-XWJGVGSP.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkELRZS7XIjs = require('./chunk-ELRZS7XI.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkKKGXM3XLjs = require('./chunk-KKGXM3XL.js');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-34SGGZ4P.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkQDKRARRUjs = require('./chunk-QDKRARRU.js');
|
|
23
23
|
|
|
24
24
|
// node/cli.ts
|
|
25
|
-
var import_fast_deep_equal =
|
|
25
|
+
var import_fast_deep_equal = _chunkQDKRARRUjs.__toESM.call(void 0, _chunkELRZS7XIjs.require_fast_deep_equal.call(void 0, ));
|
|
26
26
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
27
27
|
var _os = require('os'); var _os2 = _interopRequireDefault(_os);
|
|
28
28
|
var _child_process = require('child_process');
|
|
@@ -49,15 +49,15 @@ _fs.injectPreparserExtensionLoader.call(void 0, async (headmatter, filepath) =>
|
|
|
49
49
|
const roots = (
|
|
50
50
|
/* uniq */
|
|
51
51
|
[
|
|
52
|
-
|
|
53
|
-
...
|
|
54
|
-
|
|
52
|
+
_chunkXWJGVGSPjs.getUserRoot.call(void 0, {}).userRoot,
|
|
53
|
+
..._chunkXWJGVGSPjs.getAddonRoots.call(void 0, addons, ""),
|
|
54
|
+
_chunkXWJGVGSPjs.getClientRoot.call(void 0, )
|
|
55
55
|
]
|
|
56
56
|
);
|
|
57
57
|
const mergeArrays = (a, b) => a.concat(b);
|
|
58
58
|
return await _chunkKKGXM3XLjs.loadSetups.call(void 0, roots, "preparser.ts", { filepath, headmatter }, [], false, mergeArrays);
|
|
59
59
|
});
|
|
60
|
-
var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(
|
|
60
|
+
var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkXWJGVGSPjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
|
|
61
61
|
cli.command(
|
|
62
62
|
"* [entry]",
|
|
63
63
|
"Start a local server for Slidev",
|
|
@@ -113,9 +113,9 @@ cli.command(
|
|
|
113
113
|
async function initServer() {
|
|
114
114
|
if (server)
|
|
115
115
|
await server.close();
|
|
116
|
-
const options = await
|
|
116
|
+
const options = await _chunkXWJGVGSPjs.resolveOptions.call(void 0, { entry, remote, theme, inspect }, "dev");
|
|
117
117
|
port = userPort || await findFreePort(3030);
|
|
118
|
-
server = await
|
|
118
|
+
server = await _chunkXWJGVGSPjs.createServer.call(void 0,
|
|
119
119
|
options,
|
|
120
120
|
{
|
|
121
121
|
server: {
|
|
@@ -129,7 +129,7 @@ cli.command(
|
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
onDataReload(newData, data) {
|
|
132
|
-
if (!theme &&
|
|
132
|
+
if (!theme && _chunkXWJGVGSPjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkXWJGVGSPjs.resolveThemeName.call(void 0, data.config.theme)) {
|
|
133
133
|
console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
|
|
134
134
|
initServer();
|
|
135
135
|
} else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
|
|
@@ -196,13 +196,13 @@ cli.command(
|
|
|
196
196
|
async action() {
|
|
197
197
|
if (!lastRemoteUrl)
|
|
198
198
|
return;
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
await Promise.resolve().then(() => require("uqr")).then((r) => {
|
|
200
|
+
const code = r.renderUnicodeCompact(lastRemoteUrl);
|
|
201
201
|
console.log(`
|
|
202
202
|
${_kolorist.dim.call(void 0, " QR Code for remote control: ")}
|
|
203
203
|
${_kolorist.blue.call(void 0, lastRemoteUrl)}
|
|
204
204
|
`);
|
|
205
|
-
console.log(
|
|
205
|
+
console.log(code.split("\n").map((i) => ` ${i}`).join("\n"));
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -258,9 +258,9 @@ cli.command(
|
|
|
258
258
|
}).strict().help(),
|
|
259
259
|
async (args) => {
|
|
260
260
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
261
|
-
const { build } = await Promise.resolve().then(() => require("./build-
|
|
261
|
+
const { build } = await Promise.resolve().then(() => require("./build-FGRU7R5C.js"));
|
|
262
262
|
for (const entryFile of entry) {
|
|
263
|
-
const options = await
|
|
263
|
+
const options = await _chunkXWJGVGSPjs.resolveOptions.call(void 0, { entry: entryFile, theme, inspect }, "build");
|
|
264
264
|
if (download && !options.data.config.download)
|
|
265
265
|
options.data.config.download = download;
|
|
266
266
|
printInfo(options);
|
|
@@ -280,9 +280,9 @@ cli.command(
|
|
|
280
280
|
(args) => commonOptions(args).strict().help(),
|
|
281
281
|
async ({ entry }) => {
|
|
282
282
|
for (const entryFile of entry) {
|
|
283
|
-
const data = await
|
|
284
|
-
|
|
285
|
-
await
|
|
283
|
+
const data = await _chunkXWJGVGSPjs.parser.load(entryFile);
|
|
284
|
+
_chunkXWJGVGSPjs.parser.prettify(data);
|
|
285
|
+
await _chunkXWJGVGSPjs.parser.save(data);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
);
|
|
@@ -298,17 +298,17 @@ cli.command(
|
|
|
298
298
|
default: "theme"
|
|
299
299
|
}),
|
|
300
300
|
async ({ entry, dir, theme: themeInput }) => {
|
|
301
|
-
const data = await
|
|
302
|
-
const theme =
|
|
301
|
+
const data = await _chunkXWJGVGSPjs.parser.load(entry);
|
|
302
|
+
const theme = _chunkXWJGVGSPjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
|
|
303
303
|
if (theme === "none") {
|
|
304
304
|
console.error('Cannot eject theme "none"');
|
|
305
305
|
_process2.default.exit(1);
|
|
306
306
|
}
|
|
307
|
-
if (
|
|
307
|
+
if (_chunkXWJGVGSPjs.isPath.call(void 0, theme)) {
|
|
308
308
|
console.error("Theme is already ejected");
|
|
309
309
|
_process2.default.exit(1);
|
|
310
310
|
}
|
|
311
|
-
const roots =
|
|
311
|
+
const roots = _chunkXWJGVGSPjs.getThemeRoots.call(void 0, theme, entry);
|
|
312
312
|
if (!roots.length) {
|
|
313
313
|
console.error(`Could not find theme "${theme}"`);
|
|
314
314
|
_process2.default.exit(1);
|
|
@@ -320,7 +320,7 @@ cli.command(
|
|
|
320
320
|
const dirPath = `./${dir}`;
|
|
321
321
|
data.slides[0].frontmatter.theme = dirPath;
|
|
322
322
|
data.slides[0].raw = null;
|
|
323
|
-
await
|
|
323
|
+
await _chunkXWJGVGSPjs.parser.save(data);
|
|
324
324
|
console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
|
|
325
325
|
}
|
|
326
326
|
);
|
|
@@ -337,11 +337,11 @@ cli.command(
|
|
|
337
337
|
async (args) => {
|
|
338
338
|
const { entry, theme } = args;
|
|
339
339
|
_process2.default.env.NODE_ENV = "production";
|
|
340
|
-
const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-
|
|
340
|
+
const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-BGMCS4F2.js"));
|
|
341
341
|
const port = await findFreePort(12445);
|
|
342
342
|
for (const entryFile of entry) {
|
|
343
|
-
const options = await
|
|
344
|
-
const server = await
|
|
343
|
+
const options = await _chunkXWJGVGSPjs.resolveOptions.call(void 0, { entry: entryFile, theme }, "export");
|
|
344
|
+
const server = await _chunkXWJGVGSPjs.createServer.call(void 0,
|
|
345
345
|
options,
|
|
346
346
|
{
|
|
347
347
|
server: { port },
|
|
@@ -350,7 +350,7 @@ cli.command(
|
|
|
350
350
|
);
|
|
351
351
|
await server.listen(port);
|
|
352
352
|
printInfo(options);
|
|
353
|
-
|
|
353
|
+
_chunkXWJGVGSPjs.parser.filterDisabled(options.data);
|
|
354
354
|
const result = await exportSlides({
|
|
355
355
|
port,
|
|
356
356
|
...getExportOptions({ ...args, entry: entryFile }, options)
|
|
@@ -383,11 +383,11 @@ cli.command(
|
|
|
383
383
|
timeout
|
|
384
384
|
}) => {
|
|
385
385
|
_process2.default.env.NODE_ENV = "production";
|
|
386
|
-
const { exportNotes } = await Promise.resolve().then(() => require("./export-
|
|
386
|
+
const { exportNotes } = await Promise.resolve().then(() => require("./export-BGMCS4F2.js"));
|
|
387
387
|
const port = await findFreePort(12445);
|
|
388
388
|
for (const entryFile of entry) {
|
|
389
|
-
const options = await
|
|
390
|
-
const server = await
|
|
389
|
+
const options = await _chunkXWJGVGSPjs.resolveOptions.call(void 0, { entry: entryFile }, "export");
|
|
390
|
+
const server = await _chunkXWJGVGSPjs.createServer.call(void 0,
|
|
391
391
|
options,
|
|
392
392
|
{
|
|
393
393
|
server: { port },
|
|
@@ -396,7 +396,7 @@ cli.command(
|
|
|
396
396
|
);
|
|
397
397
|
await server.listen(port);
|
|
398
398
|
printInfo(options);
|
|
399
|
-
|
|
399
|
+
_chunkXWJGVGSPjs.parser.filterDisabled(options.data);
|
|
400
400
|
const result = await exportNotes({
|
|
401
401
|
port,
|
|
402
402
|
output: output || (options.data.config.exportFilename ? `${options.data.config.exportFilename}-notes` : `${_path2.default.basename(entryFile, ".md")}-export-notes`),
|
|
@@ -457,7 +457,7 @@ function printInfo(options, port, remote, tunnelUrl) {
|
|
|
457
457
|
console.log();
|
|
458
458
|
console.log();
|
|
459
459
|
console.log(` ${_kolorist.cyan.call(void 0, "\u25CF") + _kolorist.blue.call(void 0, "\u25A0") + _kolorist.yellow.call(void 0, "\u25B2")}`);
|
|
460
|
-
console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${
|
|
460
|
+
console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkXWJGVGSPjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
|
|
461
461
|
console.log();
|
|
462
462
|
_parser.verifyConfig.call(void 0, options.data.config, options.data.themeMeta, (v) => console.warn(_kolorist.yellow.call(void 0, ` ! ${v}`)));
|
|
463
463
|
console.log(_kolorist.dim.call(void 0, " theme ") + (options.theme ? _kolorist.green.call(void 0, options.theme) : _kolorist.gray.call(void 0, "none")));
|
package/dist/cli.mjs
CHANGED
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
resolveOptions,
|
|
10
10
|
resolveThemeName,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ACFLBCHI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
require_fast_deep_equal
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LN5DOTNJ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
loadSetups
|
|
18
18
|
} from "./chunk-6XVZLT3I.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-MZBIET7Y.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KB3DQ2OE.mjs";
|
|
23
23
|
|
|
24
24
|
// node/cli.ts
|
|
25
25
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
|
@@ -196,13 +196,13 @@ cli.command(
|
|
|
196
196
|
async action() {
|
|
197
197
|
if (!lastRemoteUrl)
|
|
198
198
|
return;
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
await import("uqr").then((r) => {
|
|
200
|
+
const code = r.renderUnicodeCompact(lastRemoteUrl);
|
|
201
201
|
console.log(`
|
|
202
202
|
${dim(" QR Code for remote control: ")}
|
|
203
203
|
${blue(lastRemoteUrl)}
|
|
204
204
|
`);
|
|
205
|
-
console.log(
|
|
205
|
+
console.log(code.split("\n").map((i) => ` ${i}`).join("\n"));
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -258,7 +258,7 @@ cli.command(
|
|
|
258
258
|
}).strict().help(),
|
|
259
259
|
async (args) => {
|
|
260
260
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
261
|
-
const { build } = await import("./build-
|
|
261
|
+
const { build } = await import("./build-MQ5SJ6HF.mjs");
|
|
262
262
|
for (const entryFile of entry) {
|
|
263
263
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
264
264
|
if (download && !options.data.config.download)
|
|
@@ -337,7 +337,7 @@ cli.command(
|
|
|
337
337
|
async (args) => {
|
|
338
338
|
const { entry, theme } = args;
|
|
339
339
|
process.env.NODE_ENV = "production";
|
|
340
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
340
|
+
const { exportSlides, getExportOptions } = await import("./export-6G7WYT32.mjs");
|
|
341
341
|
const port = await findFreePort(12445);
|
|
342
342
|
for (const entryFile of entry) {
|
|
343
343
|
const options = await resolveOptions({ entry: entryFile, theme }, "export");
|
|
@@ -383,7 +383,7 @@ cli.command(
|
|
|
383
383
|
timeout
|
|
384
384
|
}) => {
|
|
385
385
|
process.env.NODE_ENV = "production";
|
|
386
|
-
const { exportNotes } = await import("./export-
|
|
386
|
+
const { exportNotes } = await import("./export-6G7WYT32.mjs");
|
|
387
387
|
const port = await findFreePort(12445);
|
|
388
388
|
for (const entryFile of entry) {
|
|
389
389
|
const options = await resolveOptions({ entry: entryFile }, "export");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packageExists
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-MZBIET7Y.mjs";
|
|
4
|
+
import "./chunk-KB3DQ2OE.mjs";
|
|
5
5
|
|
|
6
6
|
// node/export.ts
|
|
7
7
|
import path from "path";
|
|
@@ -225,7 +225,7 @@ async function exportSlides({
|
|
|
225
225
|
await fs.writeFile(output, buffer);
|
|
226
226
|
}
|
|
227
227
|
async function genPagePdfOnePiece() {
|
|
228
|
-
var _a;
|
|
228
|
+
var _a, _b, _c, _d, _e, _f;
|
|
229
229
|
await go("print");
|
|
230
230
|
const slideIndexes = await getSlidesIndex();
|
|
231
231
|
await page.pdf({
|
|
@@ -248,6 +248,14 @@ async function exportSlides({
|
|
|
248
248
|
pdf.setTitle(titleSlide.title);
|
|
249
249
|
if ((_a = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _a.info)
|
|
250
250
|
pdf.setSubject(titleSlide.frontmatter.info);
|
|
251
|
+
if ((_b = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _b.author)
|
|
252
|
+
pdf.setAuthor(titleSlide.frontmatter.author);
|
|
253
|
+
if ((_c = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _c.keywords) {
|
|
254
|
+
if (Array.isArray((_d = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _d.keywords))
|
|
255
|
+
pdf.setKeywords((_e = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _e.keywords);
|
|
256
|
+
else
|
|
257
|
+
pdf.setKeywords((_f = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _f.keywords.split(","));
|
|
258
|
+
}
|
|
251
259
|
if (withToc) {
|
|
252
260
|
const outlinePdf = outlinePdfFactory(pdfLib);
|
|
253
261
|
const tocTree = slides.filter((slide) => slide.title).reduce((acc, slide) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk34SGGZ4Pjs = require('./chunk-34SGGZ4P.js');
|
|
4
|
+
require('./chunk-QDKRARRU.js');
|
|
5
5
|
|
|
6
6
|
// node/export.ts
|
|
7
7
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
@@ -77,7 +77,7 @@ async function exportNotes({
|
|
|
77
77
|
output = "notes",
|
|
78
78
|
timeout = 3e4
|
|
79
79
|
}) {
|
|
80
|
-
if (!
|
|
80
|
+
if (!_chunk34SGGZ4Pjs.packageExists.call(void 0, "playwright-chromium"))
|
|
81
81
|
throw new Error("The exporting for Slidev is powered by Playwright, please install it via `npm i -D playwright-chromium`");
|
|
82
82
|
const { chromium } = await Promise.resolve().then(() => require("playwright-chromium"));
|
|
83
83
|
const browser = await chromium.launch();
|
|
@@ -123,7 +123,7 @@ async function exportSlides({
|
|
|
123
123
|
withToc = false,
|
|
124
124
|
perSlide = false
|
|
125
125
|
}) {
|
|
126
|
-
if (!
|
|
126
|
+
if (!_chunk34SGGZ4Pjs.packageExists.call(void 0, "playwright-chromium"))
|
|
127
127
|
throw new Error("The exporting for Slidev is powered by Playwright, please install it via `npm i -D playwright-chromium`");
|
|
128
128
|
const pages = _core.parseRangeString.call(void 0, total, range);
|
|
129
129
|
const { chromium } = await Promise.resolve().then(() => require("playwright-chromium"));
|
|
@@ -225,7 +225,7 @@ async function exportSlides({
|
|
|
225
225
|
await _fsextra2.default.writeFile(output, buffer);
|
|
226
226
|
}
|
|
227
227
|
async function genPagePdfOnePiece() {
|
|
228
|
-
var _a;
|
|
228
|
+
var _a, _b, _c, _d, _e, _f;
|
|
229
229
|
await go("print");
|
|
230
230
|
const slideIndexes = await getSlidesIndex();
|
|
231
231
|
await page.pdf({
|
|
@@ -248,6 +248,14 @@ async function exportSlides({
|
|
|
248
248
|
pdf.setTitle(titleSlide.title);
|
|
249
249
|
if ((_a = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _a.info)
|
|
250
250
|
pdf.setSubject(titleSlide.frontmatter.info);
|
|
251
|
+
if ((_b = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _b.author)
|
|
252
|
+
pdf.setAuthor(titleSlide.frontmatter.author);
|
|
253
|
+
if ((_c = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _c.keywords) {
|
|
254
|
+
if (Array.isArray((_d = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _d.keywords))
|
|
255
|
+
pdf.setKeywords((_e = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _e.keywords);
|
|
256
|
+
else
|
|
257
|
+
pdf.setKeywords((_f = titleSlide == null ? void 0 : titleSlide.frontmatter) == null ? void 0 : _f.keywords.split(","));
|
|
258
|
+
}
|
|
251
259
|
if (withToc) {
|
|
252
260
|
const outlinePdf = _outlinepdf.outlinePdfFactory.call(void 0, pdfLib);
|
|
253
261
|
const tocTree = slides.filter((slide) => slide.title).reduce((acc, slide) => {
|
package/dist/index.js
CHANGED
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkXWJGVGSPjs = require('./chunk-XWJGVGSP.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkRSZHGGR3js = require('./chunk-RSZHGGR3.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkELRZS7XIjs = require('./chunk-ELRZS7XI.js');
|
|
19
19
|
require('./chunk-KKGXM3XL.js');
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
20
|
+
require('./chunk-34SGGZ4P.js');
|
|
21
|
+
require('./chunk-QDKRARRU.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -32,4 +32,4 @@ require('./chunk-MJQETB73.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
exports.ViteSlidevPlugin =
|
|
35
|
+
exports.ViteSlidevPlugin = _chunkELRZS7XIjs.ViteSlidevPlugin; exports.createServer = _chunkXWJGVGSPjs.createServer; exports.createWindiCSSPlugin = _chunkRSZHGGR3js.createWindiCSSPlugin; exports.getAddonRoots = _chunkXWJGVGSPjs.getAddonRoots; exports.getCLIRoot = _chunkXWJGVGSPjs.getCLIRoot; exports.getClientRoot = _chunkXWJGVGSPjs.getClientRoot; exports.getRoot = _chunkXWJGVGSPjs.getRoot; exports.getThemeRoots = _chunkXWJGVGSPjs.getThemeRoots; exports.getUserRoot = _chunkXWJGVGSPjs.getUserRoot; exports.isPath = _chunkXWJGVGSPjs.isPath; exports.parser = _chunkXWJGVGSPjs.parser; exports.resolveOptions = _chunkXWJGVGSPjs.resolveOptions;
|
package/dist/index.mjs
CHANGED
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
isPath,
|
|
10
10
|
parser,
|
|
11
11
|
resolveOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ACFLBCHI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
createWindiCSSPlugin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VPD6PH2L.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ViteSlidevPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LN5DOTNJ.mjs";
|
|
19
19
|
import "./chunk-6XVZLT3I.mjs";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-MZBIET7Y.mjs";
|
|
21
|
+
import "./chunk-KB3DQ2OE.mjs";
|
|
22
22
|
export {
|
|
23
23
|
ViteSlidevPlugin,
|
|
24
24
|
createServer,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
3
|
var _chunkKKGXM3XLjs = require('./chunk-KKGXM3XL.js');
|
|
4
|
-
require('./chunk-
|
|
4
|
+
require('./chunk-QDKRARRU.js');
|
|
5
5
|
|
|
6
6
|
// node/plugins/unocss.ts
|
|
7
7
|
var _path = require('path');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkRSZHGGR3js = require('./chunk-RSZHGGR3.js');
|
|
4
|
+
require('./chunk-KKGXM3XL.js');
|
|
5
|
+
require('./chunk-34SGGZ4P.js');
|
|
6
|
+
require('./chunk-QDKRARRU.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.createWindiCSSPlugin = _chunkRSZHGGR3js.createWindiCSSPlugin;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWindiCSSPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VPD6PH2L.mjs";
|
|
4
4
|
import "./chunk-6XVZLT3I.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-MZBIET7Y.mjs";
|
|
6
|
+
import "./chunk-KB3DQ2OE.mjs";
|
|
7
7
|
export {
|
|
8
8
|
createWindiCSSPlugin
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.7",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@antfu/utils": "^0.7.5",
|
|
46
|
-
"@hedgedoc/markdown-it-plugins": "^2.1.
|
|
46
|
+
"@hedgedoc/markdown-it-plugins": "^2.1.3",
|
|
47
47
|
"@iconify-json/carbon": "^1.1.18",
|
|
48
48
|
"@iconify-json/ph": "^1.1.5",
|
|
49
49
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
@@ -78,14 +78,14 @@
|
|
|
78
78
|
"postcss-nested": "^6.0.1",
|
|
79
79
|
"prismjs": "^1.29.0",
|
|
80
80
|
"prompts": "^2.4.2",
|
|
81
|
-
"
|
|
82
|
-
"resolve": "^1.22.2",
|
|
81
|
+
"resolve": "^1.22.4",
|
|
83
82
|
"resolve-from": "^5.0.0",
|
|
84
83
|
"resolve-global": "^1.0.0",
|
|
85
84
|
"shiki": "^0.14.3",
|
|
86
85
|
"unocss": "^0.54.1",
|
|
87
86
|
"unplugin-icons": "^0.16.5",
|
|
88
87
|
"unplugin-vue-components": "^0.25.1",
|
|
88
|
+
"uqr": "^0.0.3",
|
|
89
89
|
"vite": "^4.4.8",
|
|
90
90
|
"vite-plugin-inspect": "^0.7.35",
|
|
91
91
|
"vite-plugin-remote-assets": "^0.3.2",
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
"vue": "^3.3.4",
|
|
97
97
|
"windicss": "^3.5.6",
|
|
98
98
|
"yargs": "^17.7.2",
|
|
99
|
-
"@slidev/client": "0.42.
|
|
100
|
-
"@slidev/parser": "0.42.
|
|
101
|
-
"@slidev/types": "0.42.
|
|
99
|
+
"@slidev/client": "0.42.7",
|
|
100
|
+
"@slidev/parser": "0.42.7",
|
|
101
|
+
"@slidev/types": "0.42.7"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@types/plantuml-encoder": "^1.4.0",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkYI4ZV27Kjs = require('./chunk-YI4ZV27K.js');
|
|
4
|
-
require('./chunk-KKGXM3XL.js');
|
|
5
|
-
require('./chunk-6ZL4B4HQ.js');
|
|
6
|
-
require('./chunk-MJQETB73.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.createWindiCSSPlugin = _chunkYI4ZV27Kjs.createWindiCSSPlugin;
|