@slidev/cli 0.43.0-beta.0 → 0.43.0-beta.2

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkROTHRPSWjs = require('./chunk-ROTHRPSW.js');
5
+ var _chunkZO5UYJSNjs = require('./chunk-ZO5UYJSN.js');
6
6
  require('./chunk-KKGXM3XL.js');
7
7
  require('./chunk-JQHGZJGJ.js');
8
8
  require('./chunk-YUG22S6W.js');
@@ -651,16 +651,16 @@ async function build(options, viteConfig = {}, args) {
651
651
  let originalIndexHTML;
652
652
  if (_fsextra2.default.existsSync(indexPath))
653
653
  originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
654
- await _fsextra2.default.writeFile(indexPath, await _chunkROTHRPSWjs.getIndexHtml.call(void 0, options), "utf-8");
654
+ await _fsextra2.default.writeFile(indexPath, await _chunkZO5UYJSNjs.getIndexHtml.call(void 0, options), "utf-8");
655
655
  let config = void 0;
656
656
  try {
657
- const inlineConfig = await _chunkROTHRPSWjs.mergeViteConfigs.call(void 0,
657
+ const inlineConfig = await _chunkZO5UYJSNjs.mergeViteConfigs.call(void 0,
658
658
  options,
659
659
  viteConfig,
660
660
  {
661
661
  root: options.userRoot,
662
662
  plugins: [
663
- await _chunkROTHRPSWjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
663
+ await _chunkZO5UYJSNjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
664
664
  {
665
665
  name: "resolve-config",
666
666
  configResolved(_config) {
@@ -681,7 +681,7 @@ async function build(options, viteConfig = {}, args) {
681
681
  } else {
682
682
  console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
683
683
  await _vite.build.call(void 0,
684
- await _chunkROTHRPSWjs.mergeViteConfigs.call(void 0,
684
+ await _chunkZO5UYJSNjs.mergeViteConfigs.call(void 0,
685
685
  options,
686
686
  inlineConfig,
687
687
  {
@@ -2,7 +2,7 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-HA2YGJJG.mjs";
5
+ } from "./chunk-LXUMODW4.mjs";
6
6
  import "./chunk-JDHANZ37.mjs";
7
7
  import "./chunk-ZEKM4EGL.mjs";
8
8
  import "./chunk-QHOBBTS4.mjs";
@@ -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(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkROTHRPSWjs = require('./chunk-ROTHRPSW.js');
4
+ var _chunkZO5UYJSNjs = require('./chunk-ZO5UYJSN.js');
5
5
 
6
6
 
7
7
 
@@ -2496,7 +2496,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
2496
2496
  const pluginOptions = rawConfig.slidev || {};
2497
2497
  _process2.default.env.EDITOR = _process2.default.env.EDITOR || "code";
2498
2498
  const server = await _vite.createServer.call(void 0,
2499
- await _chunkROTHRPSWjs.mergeViteConfigs.call(void 0,
2499
+ await _chunkZO5UYJSNjs.mergeViteConfigs.call(void 0,
2500
2500
  options,
2501
2501
  viteConfig,
2502
2502
  {
@@ -2506,7 +2506,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
2506
2506
  ]
2507
2507
  },
2508
2508
  plugins: [
2509
- await _chunkROTHRPSWjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
2509
+ await _chunkZO5UYJSNjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
2510
2510
  ]
2511
2511
  },
2512
2512
  "serve"
@@ -2519,7 +2519,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
2519
2519
  var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
2520
2520
 
2521
2521
  // package.json
2522
- var version = "0.43.0-beta.0";
2522
+ var version = "0.43.0-beta.2";
2523
2523
 
2524
2524
  // node/themes.ts
2525
2525
  var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts);
@@ -7640,7 +7640,7 @@ async function getRecursivePlugins(addons, depth) {
7640
7640
  return addonsArray.flat();
7641
7641
  }
7642
7642
  async function checkEngine(name, engines) {
7643
- if (engines.slidev && !(0, import_semver.satisfies)(version, engines.slidev))
7643
+ if (engines.slidev && !(0, import_semver.satisfies)(version, engines.slidev, { includePrerelease: true }))
7644
7644
  throw new Error(`[slidev] addon "${name}" requires Slidev version range "${engines.slidev}" but found "${version}"`);
7645
7645
  }
7646
7646
  function resolvePluginName(name) {
@@ -7756,7 +7756,7 @@ async function getThemeMeta(name, path2) {
7756
7756
  return {};
7757
7757
  if (path2) {
7758
7758
  const { slidev = {}, engines = {} } = await _fsextra2.default.readJSON(path2);
7759
- if (engines.slidev && !(0, import_semver2.satisfies)(version, engines.slidev))
7759
+ if (engines.slidev && !(0, import_semver2.satisfies)(version, engines.slidev, { includePrerelease: true }))
7760
7760
  throw new Error(`[slidev] theme "${name}" requires Slidev version range "${engines.slidev}" but found "${version}"`);
7761
7761
  return slidev;
7762
7762
  }
@@ -186,14 +186,14 @@ var dependencies = {
186
186
  "@antfu/utils": "^0.7.6",
187
187
  "@slidev/parser": "workspace:*",
188
188
  "@slidev/types": "workspace:*",
189
- "@unocss/reset": "^0.55.3",
190
- "@vueuse/core": "^10.4.0",
189
+ "@unocss/reset": "^0.55.4",
190
+ "@vueuse/core": "^10.4.1",
191
191
  "@vueuse/head": "^1.3.1",
192
- "@vueuse/math": "^10.4.0",
192
+ "@vueuse/math": "^10.4.1",
193
193
  "@vueuse/motion": "^2.0.0",
194
194
  codemirror: "^5.65.5",
195
195
  defu: "^6.1.2",
196
- drauu: "^0.3.4",
196
+ drauu: "^0.3.5",
197
197
  "file-saver": "^2.0.5",
198
198
  "fuse.js": "^6.6.2",
199
199
  "js-base64": "^3.7.5",
@@ -202,10 +202,10 @@ var dependencies = {
202
202
  mermaid: "^10.4.0",
203
203
  "monaco-editor": "^0.37.1",
204
204
  nanoid: "^4.0.2",
205
- prettier: "^3.0.2",
205
+ prettier: "^3.0.3",
206
206
  recordrtc: "^5.6.2",
207
207
  resolve: "^1.22.4",
208
- unocss: "^0.55.3",
208
+ unocss: "^0.55.4",
209
209
  "vite-plugin-windicss": "^1.9.1",
210
210
  vue: "^3.3.4",
211
211
  "vue-router": "^4.2.4",
@@ -613,11 +613,14 @@ Unknown layout "${bold(layoutName)}".${yellow(" Available layouts are:")}`) + Ob
613
613
  }
614
614
  delete frontmatter.title;
615
615
  const imports = [
616
- 'import { inject as vueInject } from "vue"',
616
+ 'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
617
617
  `import InjectedLayout from "${toAtFS(layouts[layoutName])}"`,
618
618
  'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
619
619
  `const frontmatter = ${JSON.stringify(frontmatter)}`,
620
- "const $slidev = vueInject(injectionSlidevContext)"
620
+ "const $frontmatter = frontmatter",
621
+ "const $slidev = _vueInject(injectionSlidevContext)",
622
+ 'const $nav = _vueToRef($slidev, "nav")',
623
+ 'const $clicks = _vueToRef($slidev.nav, "clicks")'
621
624
  ];
622
625
  code = code.replace(/(<script setup.*>)/g, `$1
623
626
  ${imports.join("\n")}
@@ -638,9 +641,11 @@ ${code.slice(injectB)}`;
638
641
  if (code.includes("injectionSlidevContext"))
639
642
  return code;
640
643
  const imports = [
641
- 'import { inject as vueInject } from "vue"',
644
+ 'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
642
645
  'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
643
- "const $slidev = vueInject(injectionSlidevContext)"
646
+ "const $slidev = _vueInject(injectionSlidevContext)",
647
+ 'const $nav = _vueToRef($slidev, "nav")',
648
+ 'const $clicks = _vueToRef($slidev.nav, "clicks")'
644
649
  ];
645
650
  const matchScript = code.match(/<script((?!setup).)*(setup)?.*>/);
646
651
  if (matchScript && matchScript[2]) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ViteSlidevPlugin,
3
3
  mergeViteConfigs
4
- } from "./chunk-HA2YGJJG.mjs";
4
+ } from "./chunk-LXUMODW4.mjs";
5
5
  import {
6
6
  packageExists,
7
7
  resolveImportPath
@@ -2519,7 +2519,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
2519
2519
  import * as parser from "@slidev/parser/fs";
2520
2520
 
2521
2521
  // package.json
2522
- var version = "0.43.0-beta.0";
2522
+ var version = "0.43.0-beta.2";
2523
2523
 
2524
2524
  // node/themes.ts
2525
2525
  import prompts2 from "prompts";
@@ -7630,7 +7630,7 @@ async function getRecursivePlugins(addons, depth) {
7630
7630
  return addonsArray.flat();
7631
7631
  }
7632
7632
  async function checkEngine(name, engines) {
7633
- if (engines.slidev && !(0, import_semver.satisfies)(version, engines.slidev))
7633
+ if (engines.slidev && !(0, import_semver.satisfies)(version, engines.slidev, { includePrerelease: true }))
7634
7634
  throw new Error(`[slidev] addon "${name}" requires Slidev version range "${engines.slidev}" but found "${version}"`);
7635
7635
  }
7636
7636
  function resolvePluginName(name) {
@@ -7746,7 +7746,7 @@ async function getThemeMeta(name, path2) {
7746
7746
  return {};
7747
7747
  if (path2) {
7748
7748
  const { slidev = {}, engines = {} } = await fs3.readJSON(path2);
7749
- if (engines.slidev && !(0, import_semver2.satisfies)(version, engines.slidev))
7749
+ if (engines.slidev && !(0, import_semver2.satisfies)(version, engines.slidev, { includePrerelease: true }))
7750
7750
  throw new Error(`[slidev] theme "${name}" requires Slidev version range "${engines.slidev}" but found "${version}"`);
7751
7751
  return slidev;
7752
7752
  }
@@ -186,14 +186,14 @@ var dependencies = {
186
186
  "@antfu/utils": "^0.7.6",
187
187
  "@slidev/parser": "workspace:*",
188
188
  "@slidev/types": "workspace:*",
189
- "@unocss/reset": "^0.55.3",
190
- "@vueuse/core": "^10.4.0",
189
+ "@unocss/reset": "^0.55.4",
190
+ "@vueuse/core": "^10.4.1",
191
191
  "@vueuse/head": "^1.3.1",
192
- "@vueuse/math": "^10.4.0",
192
+ "@vueuse/math": "^10.4.1",
193
193
  "@vueuse/motion": "^2.0.0",
194
194
  codemirror: "^5.65.5",
195
195
  defu: "^6.1.2",
196
- drauu: "^0.3.4",
196
+ drauu: "^0.3.5",
197
197
  "file-saver": "^2.0.5",
198
198
  "fuse.js": "^6.6.2",
199
199
  "js-base64": "^3.7.5",
@@ -202,10 +202,10 @@ var dependencies = {
202
202
  mermaid: "^10.4.0",
203
203
  "monaco-editor": "^0.37.1",
204
204
  nanoid: "^4.0.2",
205
- prettier: "^3.0.2",
205
+ prettier: "^3.0.3",
206
206
  recordrtc: "^5.6.2",
207
207
  resolve: "^1.22.4",
208
- unocss: "^0.55.3",
208
+ unocss: "^0.55.4",
209
209
  "vite-plugin-windicss": "^1.9.1",
210
210
  vue: "^3.3.4",
211
211
  "vue-router": "^4.2.4",
@@ -613,11 +613,14 @@ Unknown layout "${_kolorist.bold.call(void 0, layoutName)}".${_kolorist.yellow.c
613
613
  }
614
614
  delete frontmatter.title;
615
615
  const imports = [
616
- 'import { inject as vueInject } from "vue"',
616
+ 'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
617
617
  `import InjectedLayout from "${_chunkJQHGZJGJjs.toAtFS.call(void 0, layouts[layoutName])}"`,
618
618
  'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
619
619
  `const frontmatter = ${JSON.stringify(frontmatter)}`,
620
- "const $slidev = vueInject(injectionSlidevContext)"
620
+ "const $frontmatter = frontmatter",
621
+ "const $slidev = _vueInject(injectionSlidevContext)",
622
+ 'const $nav = _vueToRef($slidev, "nav")',
623
+ 'const $clicks = _vueToRef($slidev.nav, "clicks")'
621
624
  ];
622
625
  code = code.replace(/(<script setup.*>)/g, `$1
623
626
  ${imports.join("\n")}
@@ -638,9 +641,11 @@ ${code.slice(injectB)}`;
638
641
  if (code.includes("injectionSlidevContext"))
639
642
  return code;
640
643
  const imports = [
641
- 'import { inject as vueInject } from "vue"',
644
+ 'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
642
645
  'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
643
- "const $slidev = vueInject(injectionSlidevContext)"
646
+ "const $slidev = _vueInject(injectionSlidevContext)",
647
+ 'const $nav = _vueToRef($slidev, "nav")',
648
+ 'const $clicks = _vueToRef($slidev.nav, "clicks")'
644
649
  ];
645
650
  const matchScript = code.match(/<script((?!setup).)*(setup)?.*>/);
646
651
  if (matchScript && matchScript[2]) {
package/dist/cli.js CHANGED
@@ -9,10 +9,10 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkO7JFTQZ2js = require('./chunk-O7JFTQZ2.js');
12
+ var _chunkJALNY2K5js = require('./chunk-JALNY2K5.js');
13
13
 
14
14
 
15
- var _chunkROTHRPSWjs = require('./chunk-ROTHRPSW.js');
15
+ var _chunkZO5UYJSNjs = require('./chunk-ZO5UYJSN.js');
16
16
 
17
17
 
18
18
  var _chunkKKGXM3XLjs = require('./chunk-KKGXM3XL.js');
@@ -22,7 +22,7 @@ require('./chunk-JQHGZJGJ.js');
22
22
  var _chunkYUG22S6Wjs = require('./chunk-YUG22S6W.js');
23
23
 
24
24
  // node/cli.ts
25
- var import_fast_deep_equal = _chunkYUG22S6Wjs.__toESM.call(void 0, _chunkROTHRPSWjs.require_fast_deep_equal.call(void 0, ));
25
+ var import_fast_deep_equal = _chunkYUG22S6Wjs.__toESM.call(void 0, _chunkZO5UYJSNjs.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');
@@ -50,15 +50,15 @@ _fs.injectPreparserExtensionLoader.call(void 0, async (headmatter, filepath) =>
50
50
  const roots = (
51
51
  /* uniq */
52
52
  [
53
- _chunkO7JFTQZ2js.getUserRoot.call(void 0, {}).userRoot,
54
- ..._chunkO7JFTQZ2js.getAddonRoots.call(void 0, addons, ""),
55
- _chunkO7JFTQZ2js.getClientRoot.call(void 0, )
53
+ _chunkJALNY2K5js.getUserRoot.call(void 0, {}).userRoot,
54
+ ..._chunkJALNY2K5js.getAddonRoots.call(void 0, addons, ""),
55
+ _chunkJALNY2K5js.getClientRoot.call(void 0, )
56
56
  ]
57
57
  );
58
58
  const mergeArrays = (a, b) => a.concat(b);
59
59
  return await _chunkKKGXM3XLjs.loadSetups.call(void 0, roots, "preparser.ts", { filepath, headmatter }, [], false, mergeArrays);
60
60
  });
61
- var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkO7JFTQZ2js.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
61
+ var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkJALNY2K5js.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
62
62
  cli.command(
63
63
  "* [entry]",
64
64
  "Start a local server for Slidev",
@@ -114,9 +114,9 @@ cli.command(
114
114
  async function initServer() {
115
115
  if (server)
116
116
  await server.close();
117
- const options = await _chunkO7JFTQZ2js.resolveOptions.call(void 0, { entry, remote, theme, inspect }, "dev");
117
+ const options = await _chunkJALNY2K5js.resolveOptions.call(void 0, { entry, remote, theme, inspect }, "dev");
118
118
  port = userPort || await findFreePort(3030);
119
- server = await _chunkO7JFTQZ2js.createServer.call(void 0,
119
+ server = await _chunkJALNY2K5js.createServer.call(void 0,
120
120
  options,
121
121
  {
122
122
  server: {
@@ -130,7 +130,7 @@ cli.command(
130
130
  },
131
131
  {
132
132
  onDataReload(newData, data) {
133
- if (!theme && _chunkO7JFTQZ2js.resolveThemeName.call(void 0, newData.config.theme) !== _chunkO7JFTQZ2js.resolveThemeName.call(void 0, data.config.theme)) {
133
+ if (!theme && _chunkJALNY2K5js.resolveThemeName.call(void 0, newData.config.theme) !== _chunkJALNY2K5js.resolveThemeName.call(void 0, data.config.theme)) {
134
134
  console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
135
135
  initServer();
136
136
  } else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
@@ -259,9 +259,9 @@ cli.command(
259
259
  }).strict().help(),
260
260
  async (args) => {
261
261
  const { entry, theme, watch, base, download, out, inspect } = args;
262
- const { build } = await Promise.resolve().then(() => require("./build-J2XECXHU.js"));
262
+ const { build } = await Promise.resolve().then(() => require("./build-MW6VIQAE.js"));
263
263
  for (const entryFile of entry) {
264
- const options = await _chunkO7JFTQZ2js.resolveOptions.call(void 0, { entry: entryFile, theme, inspect }, "build");
264
+ const options = await _chunkJALNY2K5js.resolveOptions.call(void 0, { entry: entryFile, theme, inspect }, "build");
265
265
  if (download && !options.data.config.download)
266
266
  options.data.config.download = download;
267
267
  printInfo(options);
@@ -281,9 +281,9 @@ cli.command(
281
281
  (args) => commonOptions(args).strict().help(),
282
282
  async ({ entry }) => {
283
283
  for (const entryFile of entry) {
284
- const data = await _chunkO7JFTQZ2js.parser.load(entryFile);
285
- _chunkO7JFTQZ2js.parser.prettify(data);
286
- await _chunkO7JFTQZ2js.parser.save(data);
284
+ const data = await _chunkJALNY2K5js.parser.load(entryFile);
285
+ _chunkJALNY2K5js.parser.prettify(data);
286
+ await _chunkJALNY2K5js.parser.save(data);
287
287
  }
288
288
  }
289
289
  );
@@ -299,17 +299,17 @@ cli.command(
299
299
  default: "theme"
300
300
  }),
301
301
  async ({ entry, dir, theme: themeInput }) => {
302
- const data = await _chunkO7JFTQZ2js.parser.load(entry);
303
- const theme = _chunkO7JFTQZ2js.resolveThemeName.call(void 0, themeInput || data.config.theme);
302
+ const data = await _chunkJALNY2K5js.parser.load(entry);
303
+ const theme = _chunkJALNY2K5js.resolveThemeName.call(void 0, themeInput || data.config.theme);
304
304
  if (theme === "none") {
305
305
  console.error('Cannot eject theme "none"');
306
306
  _process2.default.exit(1);
307
307
  }
308
- if (_chunkO7JFTQZ2js.isPath.call(void 0, theme)) {
308
+ if (_chunkJALNY2K5js.isPath.call(void 0, theme)) {
309
309
  console.error("Theme is already ejected");
310
310
  _process2.default.exit(1);
311
311
  }
312
- const roots = _chunkO7JFTQZ2js.getThemeRoots.call(void 0, theme, entry);
312
+ const roots = _chunkJALNY2K5js.getThemeRoots.call(void 0, theme, entry);
313
313
  if (!roots.length) {
314
314
  console.error(`Could not find theme "${theme}"`);
315
315
  _process2.default.exit(1);
@@ -321,7 +321,7 @@ cli.command(
321
321
  const dirPath = `./${dir}`;
322
322
  data.slides[0].frontmatter.theme = dirPath;
323
323
  data.slides[0].raw = null;
324
- await _chunkO7JFTQZ2js.parser.save(data);
324
+ await _chunkJALNY2K5js.parser.save(data);
325
325
  console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
326
326
  }
327
327
  );
@@ -341,8 +341,8 @@ cli.command(
341
341
  const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-MCALG7XD.js"));
342
342
  const port = await findFreePort(12445);
343
343
  for (const entryFile of entry) {
344
- const options = await _chunkO7JFTQZ2js.resolveOptions.call(void 0, { entry: entryFile, theme }, "export");
345
- const server = await _chunkO7JFTQZ2js.createServer.call(void 0,
344
+ const options = await _chunkJALNY2K5js.resolveOptions.call(void 0, { entry: entryFile, theme }, "export");
345
+ const server = await _chunkJALNY2K5js.createServer.call(void 0,
346
346
  options,
347
347
  {
348
348
  server: { port },
@@ -351,7 +351,7 @@ cli.command(
351
351
  );
352
352
  await server.listen(port);
353
353
  printInfo(options);
354
- _chunkO7JFTQZ2js.parser.filterDisabled(options.data);
354
+ _chunkJALNY2K5js.parser.filterDisabled(options.data);
355
355
  const result = await exportSlides({
356
356
  port,
357
357
  ...getExportOptions({ ...args, entry: entryFile }, options)
@@ -387,8 +387,8 @@ cli.command(
387
387
  const { exportNotes } = await Promise.resolve().then(() => require("./export-MCALG7XD.js"));
388
388
  const port = await findFreePort(12445);
389
389
  for (const entryFile of entry) {
390
- const options = await _chunkO7JFTQZ2js.resolveOptions.call(void 0, { entry: entryFile }, "export");
391
- const server = await _chunkO7JFTQZ2js.createServer.call(void 0,
390
+ const options = await _chunkJALNY2K5js.resolveOptions.call(void 0, { entry: entryFile }, "export");
391
+ const server = await _chunkJALNY2K5js.createServer.call(void 0,
392
392
  options,
393
393
  {
394
394
  server: { port },
@@ -397,7 +397,7 @@ cli.command(
397
397
  );
398
398
  await server.listen(port);
399
399
  printInfo(options);
400
- _chunkO7JFTQZ2js.parser.filterDisabled(options.data);
400
+ _chunkJALNY2K5js.parser.filterDisabled(options.data);
401
401
  const result = await exportNotes({
402
402
  port,
403
403
  output: output || (options.data.config.exportFilename ? `${options.data.config.exportFilename}-notes` : `${_path2.default.basename(entryFile, ".md")}-export-notes`),
@@ -458,7 +458,7 @@ function printInfo(options, port, remote, tunnelUrl) {
458
458
  console.log();
459
459
  console.log();
460
460
  console.log(` ${_kolorist.cyan.call(void 0, "\u25CF") + _kolorist.blue.call(void 0, "\u25A0") + _kolorist.yellow.call(void 0, "\u25B2")}`);
461
- console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkO7JFTQZ2js.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
461
+ console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkJALNY2K5js.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
462
462
  console.log();
463
463
  _parser.verifyConfig.call(void 0, options.data.config, options.data.themeMeta, (v) => console.warn(_kolorist.yellow.call(void 0, ` ! ${v}`)));
464
464
  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,10 +9,10 @@ import {
9
9
  resolveOptions,
10
10
  resolveThemeName,
11
11
  version
12
- } from "./chunk-E3UONPQL.mjs";
12
+ } from "./chunk-ZGWBGB2K.mjs";
13
13
  import {
14
14
  require_fast_deep_equal
15
- } from "./chunk-HA2YGJJG.mjs";
15
+ } from "./chunk-LXUMODW4.mjs";
16
16
  import {
17
17
  loadSetups
18
18
  } from "./chunk-JDHANZ37.mjs";
@@ -259,7 +259,7 @@ cli.command(
259
259
  }).strict().help(),
260
260
  async (args) => {
261
261
  const { entry, theme, watch, base, download, out, inspect } = args;
262
- const { build } = await import("./build-C2GYF6EU.mjs");
262
+ const { build } = await import("./build-SUSDV6OM.mjs");
263
263
  for (const entryFile of entry) {
264
264
  const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
265
265
  if (download && !options.data.config.download)
package/dist/index.js CHANGED
@@ -9,13 +9,13 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkO7JFTQZ2js = require('./chunk-O7JFTQZ2.js');
12
+ var _chunkJALNY2K5js = require('./chunk-JALNY2K5.js');
13
13
 
14
14
 
15
15
  var _chunkJ7PXWEZ7js = require('./chunk-J7PXWEZ7.js');
16
16
 
17
17
 
18
- var _chunkROTHRPSWjs = require('./chunk-ROTHRPSW.js');
18
+ var _chunkZO5UYJSNjs = require('./chunk-ZO5UYJSN.js');
19
19
  require('./chunk-KKGXM3XL.js');
20
20
  require('./chunk-JQHGZJGJ.js');
21
21
  require('./chunk-YUG22S6W.js');
@@ -32,4 +32,4 @@ require('./chunk-YUG22S6W.js');
32
32
 
33
33
 
34
34
 
35
- exports.ViteSlidevPlugin = _chunkROTHRPSWjs.ViteSlidevPlugin; exports.createServer = _chunkO7JFTQZ2js.createServer; exports.createWindiCSSPlugin = _chunkJ7PXWEZ7js.createWindiCSSPlugin; exports.getAddonRoots = _chunkO7JFTQZ2js.getAddonRoots; exports.getCLIRoot = _chunkO7JFTQZ2js.getCLIRoot; exports.getClientRoot = _chunkO7JFTQZ2js.getClientRoot; exports.getRoot = _chunkO7JFTQZ2js.getRoot; exports.getThemeRoots = _chunkO7JFTQZ2js.getThemeRoots; exports.getUserRoot = _chunkO7JFTQZ2js.getUserRoot; exports.isPath = _chunkO7JFTQZ2js.isPath; exports.parser = _chunkO7JFTQZ2js.parser; exports.resolveOptions = _chunkO7JFTQZ2js.resolveOptions;
35
+ exports.ViteSlidevPlugin = _chunkZO5UYJSNjs.ViteSlidevPlugin; exports.createServer = _chunkJALNY2K5js.createServer; exports.createWindiCSSPlugin = _chunkJ7PXWEZ7js.createWindiCSSPlugin; exports.getAddonRoots = _chunkJALNY2K5js.getAddonRoots; exports.getCLIRoot = _chunkJALNY2K5js.getCLIRoot; exports.getClientRoot = _chunkJALNY2K5js.getClientRoot; exports.getRoot = _chunkJALNY2K5js.getRoot; exports.getThemeRoots = _chunkJALNY2K5js.getThemeRoots; exports.getUserRoot = _chunkJALNY2K5js.getUserRoot; exports.isPath = _chunkJALNY2K5js.isPath; exports.parser = _chunkJALNY2K5js.parser; exports.resolveOptions = _chunkJALNY2K5js.resolveOptions;
package/dist/index.mjs CHANGED
@@ -9,13 +9,13 @@ import {
9
9
  isPath,
10
10
  parser,
11
11
  resolveOptions
12
- } from "./chunk-E3UONPQL.mjs";
12
+ } from "./chunk-ZGWBGB2K.mjs";
13
13
  import {
14
14
  createWindiCSSPlugin
15
15
  } from "./chunk-HO75FTDI.mjs";
16
16
  import {
17
17
  ViteSlidevPlugin
18
- } from "./chunk-HA2YGJJG.mjs";
18
+ } from "./chunk-LXUMODW4.mjs";
19
19
  import "./chunk-JDHANZ37.mjs";
20
20
  import "./chunk-ZEKM4EGL.mjs";
21
21
  import "./chunk-QHOBBTS4.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.43.0-beta.0",
3
+ "version": "0.43.0-beta.2",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -48,7 +48,8 @@
48
48
  "@iconify-json/ph": "^1.1.6",
49
49
  "@lillallol/outline-pdf": "^4.0.0",
50
50
  "@mrdrogdrog/optional": "^1.2.1",
51
- "@vitejs/plugin-vue": "^4.3.3",
51
+ "@unocss/extractor-mdc": "^0.55.4",
52
+ "@vitejs/plugin-vue": "^4.3.4",
52
53
  "@vitejs/plugin-vue-jsx": "^3.0.2",
53
54
  "@windicss/config": "^1.9.1",
54
55
  "cli-progress": "^3.12.0",
@@ -57,7 +58,7 @@
57
58
  "debug": "^4.3.4",
58
59
  "fast-glob": "^3.3.1",
59
60
  "fs-extra": "^11.1.1",
60
- "get-port-please": "^3.0.1",
61
+ "get-port-please": "^3.0.2",
61
62
  "global-dirs": "^3.0.1",
62
63
  "htmlparser2": "^9.0.0",
63
64
  "import-from": "^4.0.0",
@@ -81,11 +82,11 @@
81
82
  "resolve": "^1.22.4",
82
83
  "resolve-from": "^5.0.0",
83
84
  "resolve-global": "^1.0.0",
84
- "shiki": "npm:shikiji-compat@^0.6.5",
85
- "unocss": "^0.55.3",
86
- "unplugin-icons": "^0.16.5",
87
- "unplugin-vue-components": "^0.25.1",
88
- "unplugin-vue-markdown": "^0.24.2",
85
+ "shiki": "npm:shikiji-compat@^0.6.6",
86
+ "unocss": "^0.55.4",
87
+ "unplugin-icons": "^0.16.6",
88
+ "unplugin-vue-components": "^0.25.2",
89
+ "unplugin-vue-markdown": "^0.24.3",
89
90
  "uqr": "^0.1.2",
90
91
  "vite": "^4.4.9",
91
92
  "vite-plugin-inspect": "^0.7.38",
@@ -96,9 +97,9 @@
96
97
  "vue": "^3.3.4",
97
98
  "windicss": "^3.5.6",
98
99
  "yargs": "^17.7.2",
99
- "@slidev/client": "0.43.0-beta.0",
100
- "@slidev/parser": "0.43.0-beta.0",
101
- "@slidev/types": "0.43.0-beta.0"
100
+ "@slidev/client": "0.43.0-beta.2",
101
+ "@slidev/parser": "0.43.0-beta.2",
102
+ "@slidev/types": "0.43.0-beta.2"
102
103
  },
103
104
  "devDependencies": {
104
105
  "@types/plantuml-encoder": "^1.4.0",