@slidev/cli 0.27.9 → 0.27.10
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-2UTYTFJ6.js → build-DN7PSQNW.js} +4 -4
- package/dist/{build-5RVPBSEA.mjs → build-RLIFI6AI.mjs} +2 -2
- package/dist/{chunk-GUBNALPI.js → chunk-4UOEPPLN.js} +9 -0
- package/dist/{chunk-F4XRXVQ3.mjs → chunk-BSFZXWXJ.mjs} +1 -1
- package/dist/{chunk-J5P4T2PL.js → chunk-GIDUUUUI.js} +2 -2
- package/dist/{chunk-6EK52JVC.mjs → chunk-MOBV7WC6.mjs} +1 -1
- package/dist/{chunk-Z74MECPL.js → chunk-XOVMF5NQ.js} +1 -1
- package/dist/{chunk-I7UDTG7Z.mjs → chunk-YFUQAECE.mjs} +9 -0
- package/dist/cli.js +17 -17
- package/dist/cli.mjs +5 -5
- package/dist/{export-R46CUH3Z.js → export-D6ZVZTRQ.js} +2 -2
- package/dist/{export-XFVVZCI4.mjs → export-PR7SUYVR.mjs} +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/package.json +6 -4
- package/template.md +2 -2
|
@@ -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
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4UOEPPLNjs = require('./chunk-4UOEPPLN.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -324,12 +324,12 @@ async function build(options, viteConfig = {}) {
|
|
|
324
324
|
let originalIndexHTML;
|
|
325
325
|
if (_fsextra2.default.existsSync(indexPath))
|
|
326
326
|
originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
|
|
327
|
-
await _fsextra2.default.writeFile(indexPath, await
|
|
327
|
+
await _fsextra2.default.writeFile(indexPath, await _chunk4UOEPPLNjs.getIndexHtml.call(void 0, options), "utf-8");
|
|
328
328
|
let config = void 0;
|
|
329
329
|
try {
|
|
330
330
|
const inlineConfig = _vite.mergeConfig.call(void 0, viteConfig, {
|
|
331
331
|
plugins: [
|
|
332
|
-
await
|
|
332
|
+
await _chunk4UOEPPLNjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
|
|
333
333
|
{
|
|
334
334
|
name: "resolve-config",
|
|
335
335
|
configResolved(_config) {
|
|
@@ -379,7 +379,7 @@ async function build(options, viteConfig = {}) {
|
|
|
379
379
|
await _fsextra2.default.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
380
380
|
`, "utf-8");
|
|
381
381
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
382
|
-
const { exportSlides } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "./export-
|
|
382
|
+
const { exportSlides } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "./export-D6ZVZTRQ.js")));
|
|
383
383
|
const port = 12445;
|
|
384
384
|
const app = _connect2.default.call(void 0, );
|
|
385
385
|
const server = _http2.default.createServer(app);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
getIndexHtml
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YFUQAECE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require,
|
|
@@ -371,7 +371,7 @@ async function build(options, viteConfig = {}) {
|
|
|
371
371
|
await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
372
372
|
`, "utf-8");
|
|
373
373
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
374
|
-
const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-
|
|
374
|
+
const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-PR7SUYVR.mjs")));
|
|
375
375
|
const port = 12445;
|
|
376
376
|
const app = connect();
|
|
377
377
|
const server = http.createServer(app);
|
|
@@ -857,6 +857,7 @@ var _jsbase64 = require('js-base64'); var _jsbase642 = _interopRequireDefault(_j
|
|
|
857
857
|
|
|
858
858
|
var _markdownitfootnote = require('markdown-it-footnote'); var _markdownitfootnote2 = _interopRequireDefault(_markdownitfootnote);
|
|
859
859
|
var _shiki = require('shiki'); var Shiki = _interopRequireWildcard(_shiki);
|
|
860
|
+
var _plantumlencoder = require('plantuml-encoder');
|
|
860
861
|
|
|
861
862
|
// node/plugins/markdown-it-katex.ts
|
|
862
863
|
_chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
|
|
@@ -1169,6 +1170,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
|
|
|
1169
1170
|
const monaco = config.monaco === true || config.monaco === mode ? transformMarkdownMonaco : truncateMancoMark;
|
|
1170
1171
|
code = transformSlotSugar(code);
|
|
1171
1172
|
code = transformMermaid(code);
|
|
1173
|
+
code = transformPlantUml(code, config.plantUmlServer);
|
|
1172
1174
|
code = monaco(code);
|
|
1173
1175
|
code = transformHighlighter(code);
|
|
1174
1176
|
code = transformPageCSS(code, id);
|
|
@@ -1266,6 +1268,13 @@ function transformMermaid(md2) {
|
|
|
1266
1268
|
return `<Mermaid :code="'${encoded}'" v-bind="${options}" />`;
|
|
1267
1269
|
});
|
|
1268
1270
|
}
|
|
1271
|
+
function transformPlantUml(md2, server) {
|
|
1272
|
+
return md2.replace(/^```plantuml\s*?({.*?})?\n([\s\S]+?)\n```/mg, (full, options = "", content = "") => {
|
|
1273
|
+
const code = _plantumlencoder.encode.call(void 0, content.trim());
|
|
1274
|
+
options = options.trim() || "{}";
|
|
1275
|
+
return `<PlantUml :code="'${code}'" :server="'${server}'" v-bind="${options}" />`;
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1269
1278
|
function escapeVueInCode(md2) {
|
|
1270
1279
|
return md2.replace(/{{(.*?)}}/g, "{{$1}}");
|
|
1271
1280
|
}
|
|
@@ -10094,7 +10094,7 @@ var require_semver2 = __commonJS({
|
|
|
10094
10094
|
});
|
|
10095
10095
|
|
|
10096
10096
|
// package.json
|
|
10097
|
-
var version = "0.27.
|
|
10097
|
+
var version = "0.27.10";
|
|
10098
10098
|
|
|
10099
10099
|
// node/themes.ts
|
|
10100
10100
|
var import_ni = __toModule(require_dist());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4UOEPPLNjs = require('./chunk-4UOEPPLN.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk6GSA3UIYjs = require('./chunk-6GSA3UIY.js');
|
|
@@ -20,7 +20,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
plugins: [
|
|
23
|
-
await
|
|
23
|
+
await _chunk4UOEPPLNjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
|
|
24
24
|
]
|
|
25
25
|
}));
|
|
26
26
|
return server;
|
|
@@ -10144,7 +10144,7 @@ var require_semver2 = _chunk6GSA3UIYjs.__commonJS.call(void 0, {
|
|
|
10144
10144
|
});
|
|
10145
10145
|
|
|
10146
10146
|
// package.json
|
|
10147
|
-
var version = "0.27.
|
|
10147
|
+
var version = "0.27.10";
|
|
10148
10148
|
|
|
10149
10149
|
// node/themes.ts
|
|
10150
10150
|
_chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
|
|
@@ -844,6 +844,7 @@ import { slash as slash5 } from "@antfu/utils";
|
|
|
844
844
|
import mila2 from "markdown-it-link-attributes";
|
|
845
845
|
import mif from "markdown-it-footnote";
|
|
846
846
|
import * as Shiki from "shiki";
|
|
847
|
+
import { encode } from "plantuml-encoder";
|
|
847
848
|
|
|
848
849
|
// node/plugins/markdown-it-katex.ts
|
|
849
850
|
import katex from "katex";
|
|
@@ -1153,6 +1154,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
|
|
|
1153
1154
|
const monaco = config.monaco === true || config.monaco === mode ? transformMarkdownMonaco : truncateMancoMark;
|
|
1154
1155
|
code = transformSlotSugar(code);
|
|
1155
1156
|
code = transformMermaid(code);
|
|
1157
|
+
code = transformPlantUml(code, config.plantUmlServer);
|
|
1156
1158
|
code = monaco(code);
|
|
1157
1159
|
code = transformHighlighter(code);
|
|
1158
1160
|
code = transformPageCSS(code, id);
|
|
@@ -1250,6 +1252,13 @@ function transformMermaid(md2) {
|
|
|
1250
1252
|
return `<Mermaid :code="'${encoded}'" v-bind="${options}" />`;
|
|
1251
1253
|
});
|
|
1252
1254
|
}
|
|
1255
|
+
function transformPlantUml(md2, server) {
|
|
1256
|
+
return md2.replace(/^```plantuml\s*?({.*?})?\n([\s\S]+?)\n```/mg, (full, options = "", content = "") => {
|
|
1257
|
+
const code = encode(content.trim());
|
|
1258
|
+
options = options.trim() || "{}";
|
|
1259
|
+
return `<PlantUml :code="'${code}'" :server="'${server}'" v-bind="${options}" />`;
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1253
1262
|
function escapeVueInCode(md2) {
|
|
1254
1263
|
return md2.replace(/{{(.*?)}}/g, "{{$1}}");
|
|
1255
1264
|
}
|
package/dist/cli.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGIDUUUUIjs = require('./chunk-GIDUUUUI.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkXOVMF5NQjs = require('./chunk-XOVMF5NQ.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk4UOEPPLNjs = require('./chunk-4UOEPPLN.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,7 +19,7 @@ var _chunk6GSA3UIYjs = require('./chunk-6GSA3UIY.js');
|
|
|
19
19
|
|
|
20
20
|
// node/cli.ts
|
|
21
21
|
_chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
|
|
22
|
-
var import_fast_deep_equal = _chunk6GSA3UIYjs.__toModule.call(void 0,
|
|
22
|
+
var import_fast_deep_equal = _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk4UOEPPLNjs.require_fast_deep_equal.call(void 0, ));
|
|
23
23
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
24
24
|
var _net = require('net'); var _net2 = _interopRequireDefault(_net);
|
|
25
25
|
var _os = require('os'); var _os2 = _interopRequireDefault(_os);
|
|
@@ -42,7 +42,7 @@ var CONFIG_RESTART_FIELDS = [
|
|
|
42
42
|
"routerMode",
|
|
43
43
|
"fonts"
|
|
44
44
|
];
|
|
45
|
-
var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(
|
|
45
|
+
var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkXOVMF5NQjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
|
|
46
46
|
cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOptions(args).option("port", {
|
|
47
47
|
alias: "p",
|
|
48
48
|
type: "number",
|
|
@@ -86,9 +86,9 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
|
|
|
86
86
|
async function initServer() {
|
|
87
87
|
if (server)
|
|
88
88
|
await server.close();
|
|
89
|
-
const options = await
|
|
89
|
+
const options = await _chunkXOVMF5NQjs.resolveOptions.call(void 0, { entry, theme }, "dev");
|
|
90
90
|
port = userPort || await findFreePort(3030);
|
|
91
|
-
server = await
|
|
91
|
+
server = await _chunkGIDUUUUIjs.createServer.call(void 0, options, {
|
|
92
92
|
server: {
|
|
93
93
|
port,
|
|
94
94
|
strictPort: true,
|
|
@@ -99,7 +99,7 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
|
|
|
99
99
|
logLevel: log
|
|
100
100
|
}, {
|
|
101
101
|
onDataReload(newData, data) {
|
|
102
|
-
if (!theme &&
|
|
102
|
+
if (!theme && _chunkXOVMF5NQjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkXOVMF5NQjs.resolveThemeName.call(void 0, data.config.theme)) {
|
|
103
103
|
console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
|
|
104
104
|
initServer();
|
|
105
105
|
} else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
|
|
@@ -169,8 +169,8 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
|
|
|
169
169
|
type: "boolean",
|
|
170
170
|
describe: "allow download as PDF"
|
|
171
171
|
}).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
|
|
172
|
-
const { build } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "./build-
|
|
173
|
-
const options = await
|
|
172
|
+
const { build } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "./build-DN7PSQNW.js")));
|
|
173
|
+
const options = await _chunkXOVMF5NQjs.resolveOptions.call(void 0, { entry, theme }, "build");
|
|
174
174
|
if (download && !options.data.config.download)
|
|
175
175
|
options.data.config.download = download;
|
|
176
176
|
printInfo(options);
|
|
@@ -193,16 +193,16 @@ cli.command("theme [subcommand]", "Theme related operations", (command) => {
|
|
|
193
193
|
default: "theme"
|
|
194
194
|
}), async ({ entry, dir, theme: themeInput }) => {
|
|
195
195
|
const data = await _fs.load.call(void 0, entry);
|
|
196
|
-
const theme =
|
|
196
|
+
const theme = _chunkXOVMF5NQjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
|
|
197
197
|
if (theme === "none") {
|
|
198
198
|
console.error('Can not eject theme "none"');
|
|
199
199
|
process.exit(1);
|
|
200
200
|
}
|
|
201
|
-
if (
|
|
201
|
+
if (_chunkXOVMF5NQjs.isPath.call(void 0, theme)) {
|
|
202
202
|
console.error("Theme is already ejected");
|
|
203
203
|
process.exit(1);
|
|
204
204
|
}
|
|
205
|
-
const roots =
|
|
205
|
+
const roots = _chunkXOVMF5NQjs.getThemeRoots.call(void 0, theme, entry);
|
|
206
206
|
if (!roots.length) {
|
|
207
207
|
console.error(`Does not found theme "${theme}"`);
|
|
208
208
|
process.exit(1);
|
|
@@ -257,10 +257,10 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
|
|
|
257
257
|
}) => {
|
|
258
258
|
output = output || `${_path2.default.basename(entry, ".md")}-export`;
|
|
259
259
|
process.env.NODE_ENV = "production";
|
|
260
|
-
const { exportSlides } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "./export-
|
|
260
|
+
const { exportSlides } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "./export-D6ZVZTRQ.js")));
|
|
261
261
|
const port = await findFreePort(12445);
|
|
262
|
-
const options = await
|
|
263
|
-
const server = await
|
|
262
|
+
const options = await _chunkXOVMF5NQjs.resolveOptions.call(void 0, { entry, theme }, "build");
|
|
263
|
+
const server = await _chunkGIDUUUUIjs.createServer.call(void 0, options, {
|
|
264
264
|
server: { port },
|
|
265
265
|
clearScreen: false
|
|
266
266
|
});
|
|
@@ -303,7 +303,7 @@ function printInfo(options, port, remote) {
|
|
|
303
303
|
console.log();
|
|
304
304
|
console.log();
|
|
305
305
|
console.log(` ${_kolorist.cyan.call(void 0, "\u25CF") + _kolorist.blue.call(void 0, "\u25A0") + _kolorist.yellow.call(void 0, "\u25B2")}`);
|
|
306
|
-
console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${
|
|
306
|
+
console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkXOVMF5NQjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
|
|
307
307
|
console.log();
|
|
308
308
|
console.log(_kolorist.dim.call(void 0, " theme ") + (options.theme ? _kolorist.green.call(void 0, options.theme) : _kolorist.gray.call(void 0, "none")));
|
|
309
309
|
console.log(_kolorist.dim.call(void 0, " entry ") + _kolorist.dim.call(void 0, _path2.default.dirname(options.entry) + _path2.default.sep) + _path2.default.basename(options.entry));
|
package/dist/cli.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MOBV7WC6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getThemeRoots,
|
|
6
6
|
isPath,
|
|
7
7
|
resolveOptions,
|
|
8
8
|
resolveThemeName,
|
|
9
9
|
version
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BSFZXWXJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
require_fast_deep_equal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YFUQAECE.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__require,
|
|
16
16
|
__toModule
|
|
@@ -167,7 +167,7 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
|
|
|
167
167
|
type: "boolean",
|
|
168
168
|
describe: "allow download as PDF"
|
|
169
169
|
}).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
|
|
170
|
-
const { build } = await Promise.resolve().then(() => __toModule(__require("./build-
|
|
170
|
+
const { build } = await Promise.resolve().then(() => __toModule(__require("./build-RLIFI6AI.mjs")));
|
|
171
171
|
const options = await resolveOptions({ entry, theme }, "build");
|
|
172
172
|
if (download && !options.data.config.download)
|
|
173
173
|
options.data.config.download = download;
|
|
@@ -255,7 +255,7 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
|
|
|
255
255
|
}) => {
|
|
256
256
|
output = output || `${path.basename(entry, ".md")}-export`;
|
|
257
257
|
process.env.NODE_ENV = "production";
|
|
258
|
-
const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-
|
|
258
|
+
const { exportSlides } = await Promise.resolve().then(() => __toModule(__require("./export-PR7SUYVR.mjs")));
|
|
259
259
|
const port = await findFreePort(12445);
|
|
260
260
|
const options = await resolveOptions({ entry, theme }, "build");
|
|
261
261
|
const server = await createServer(options, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXOVMF5NQjs = require('./chunk-XOVMF5NQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -62,7 +62,7 @@ async function exportSlides({
|
|
|
62
62
|
height = 1080,
|
|
63
63
|
withClicks = false
|
|
64
64
|
}) {
|
|
65
|
-
if (!
|
|
65
|
+
if (!_chunkXOVMF5NQjs.packageExists.call(void 0, "playwright-chromium"))
|
|
66
66
|
throw new Error("The exporting for Slidev is powered by Playwright, please installed it via `npm i playwright-chromium`");
|
|
67
67
|
const { chromium } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "playwright-chromium")));
|
|
68
68
|
const browser = await chromium.launch();
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGIDUUUUIjs = require('./chunk-GIDUUUUI.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkXOVMF5NQjs = require('./chunk-XOVMF5NQ.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk4UOEPPLNjs = require('./chunk-4UOEPPLN.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk6GSA3UIYjs = require('./chunk-6GSA3UIY.js');
|
|
@@ -34,4 +34,4 @@ var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
exports.ViteSlidevPlugin =
|
|
37
|
+
exports.ViteSlidevPlugin = _chunk4UOEPPLNjs.ViteSlidevPlugin; exports.createServer = _chunkGIDUUUUIjs.createServer; exports.createWindiCSSPlugin = _chunk4UOEPPLNjs.createWindiCSSPlugin; exports.getCLIRoot = _chunkXOVMF5NQjs.getCLIRoot; exports.getClientRoot = _chunkXOVMF5NQjs.getClientRoot; exports.getThemeRoots = _chunkXOVMF5NQjs.getThemeRoots; exports.isPath = _chunkXOVMF5NQjs.isPath; exports.parser = parser; exports.resolveOptions = _chunkXOVMF5NQjs.resolveOptions;
|
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MOBV7WC6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getCLIRoot,
|
|
6
6
|
getClientRoot,
|
|
7
7
|
getThemeRoots,
|
|
8
8
|
isPath,
|
|
9
9
|
resolveOptions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BSFZXWXJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ViteSlidevPlugin,
|
|
13
13
|
createWindiCSSPlugin
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YFUQAECE.mjs";
|
|
15
15
|
import "./chunk-62N46WVW.mjs";
|
|
16
16
|
|
|
17
17
|
// node/index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.10",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"homepage": "https://sli.dev",
|
|
6
6
|
"bugs": "https://github.com/slidevjs/slidev/issues",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@antfu/utils": "^0.3.0",
|
|
43
43
|
"@iconify-json/carbon": "^1.0.7",
|
|
44
44
|
"@iconify-json/ph": "^1.0.1",
|
|
45
|
-
"@slidev/client": "0.27.
|
|
46
|
-
"@slidev/parser": "0.27.
|
|
47
|
-
"@slidev/types": "0.27.
|
|
45
|
+
"@slidev/client": "0.27.10",
|
|
46
|
+
"@slidev/parser": "0.27.10",
|
|
47
|
+
"@slidev/types": "0.27.10",
|
|
48
48
|
"@vitejs/plugin-vue": "^1.9.3",
|
|
49
49
|
"@vue/compiler-sfc": "^3.2.20",
|
|
50
50
|
"cli-progress": "^3.9.1",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"nanoid": "^3.1.30",
|
|
67
67
|
"open": "^8.3.0",
|
|
68
68
|
"pdf-lib": "^1.17.0",
|
|
69
|
+
"plantuml-encoder": "^1.4.0",
|
|
69
70
|
"prismjs": "^1.25.0",
|
|
70
71
|
"prompts": "^2.4.2",
|
|
71
72
|
"resolve": "^1.20.0",
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
"yargs": "^17.2.1"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|
|
88
|
+
"@types/plantuml-encoder": "^1.4.0",
|
|
87
89
|
"fast-deep-equal": "^3.1.3",
|
|
88
90
|
"semver": "^7.3.5",
|
|
89
91
|
"sirv": "^1.0.18"
|
package/template.md
CHANGED
|
@@ -66,7 +66,7 @@ h1 {
|
|
|
66
66
|
background-size: 100%;
|
|
67
67
|
-webkit-background-clip: text;
|
|
68
68
|
-moz-background-clip: text;
|
|
69
|
-
-webkit-text-fill-color: transparent;
|
|
69
|
+
-webkit-text-fill-color: transparent;
|
|
70
70
|
-moz-text-fill-color: transparent;
|
|
71
71
|
}
|
|
72
72
|
</style>
|
|
@@ -228,7 +228,7 @@ Animations are powered by [@vueuse/motion](https://motion.vueuse.org/).
|
|
|
228
228
|
/>
|
|
229
229
|
</div>
|
|
230
230
|
|
|
231
|
-
<div
|
|
231
|
+
<div
|
|
232
232
|
class="text-5xl absolute top-14 left-40 text-[#2B90B6] -z-1"
|
|
233
233
|
v-motion
|
|
234
234
|
:initial="{ x: -80, opacity: 0}"
|