@slidev/cli 0.43.0-beta.1 → 0.43.0-beta.3

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 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-HA2YGJJG.mjs";
5
+ } from "./chunk-WAD6PHVC.mjs";
6
6
  import "./chunk-JDHANZ37.mjs";
7
7
  import "./chunk-ZEKM4EGL.mjs";
8
8
  import "./chunk-QHOBBTS4.mjs";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkROTHRPSWjs = require('./chunk-ROTHRPSW.js');
5
+ var _chunkXPOF53GOjs = require('./chunk-XPOF53GO.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 _chunkXPOF53GOjs.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 _chunkXPOF53GOjs.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 _chunkXPOF53GOjs.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 _chunkXPOF53GOjs.mergeViteConfigs.call(void 0,
685
685
  options,
686
686
  inlineConfig,
687
687
  {
@@ -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 _chunkXPOF53GOjs = require('./chunk-XPOF53GO.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 _chunkXPOF53GOjs.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 _chunkXPOF53GOjs.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.1";
2522
+ var version = "0.43.0-beta.3";
2523
2523
 
2524
2524
  // node/themes.ts
2525
2525
  var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ViteSlidevPlugin,
3
3
  mergeViteConfigs
4
- } from "./chunk-HA2YGJJG.mjs";
4
+ } from "./chunk-WAD6PHVC.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.1";
2522
+ var version = "0.43.0-beta.3";
2523
2523
 
2524
2524
  // node/themes.ts
2525
2525
  import prompts2 from "prompts";
@@ -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",
@@ -569,7 +569,7 @@ ${title}
569
569
  name: "slidev:context-transform:pre",
570
570
  enforce: "pre",
571
571
  async transform(code, id) {
572
- if (!id.endsWith(".vue"))
572
+ if (!id.endsWith(".vue") || id.includes("/@slidev/client/") || id.includes("/packages/client/"))
573
573
  return;
574
574
  return transformVue(code);
575
575
  }
@@ -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
- 'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
618
+ 'import { injectionSlidevContext as _injectionSlidevContext, injectionClicks as _injectionClicks } 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 = _vueInject(_injectionClicks)"
621
624
  ];
622
625
  code = code.replace(/(<script setup.*>)/g, `$1
623
626
  ${imports.join("\n")}
@@ -635,12 +638,14 @@ ${code.slice(injectB)}`;
635
638
  return code;
636
639
  }
637
640
  function transformVue(code) {
638
- if (code.includes("injectionSlidevContext"))
641
+ if (code.includes("injectionSlidevContext") || code.includes("injectionClicks") || code.includes("const $slidev"))
639
642
  return code;
640
643
  const imports = [
641
- 'import { inject as vueInject } from "vue"',
642
- 'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
643
- "const $slidev = vueInject(injectionSlidevContext)"
644
+ 'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
645
+ 'import { injectionSlidevContext as _injectionSlidevContext, injectionClicks as _injectionClicks } from "@slidev/client/constants.ts"',
646
+ "const $slidev = _vueInject(_injectionSlidevContext)",
647
+ 'const $nav = _vueToRef($slidev, "nav")',
648
+ "const $clicks = _vueInject(_injectionClicks)"
644
649
  ];
645
650
  const matchScript = code.match(/<script((?!setup).)*(setup)?.*>/);
646
651
  if (matchScript && matchScript[2]) {
@@ -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",
@@ -569,7 +569,7 @@ ${title}
569
569
  name: "slidev:context-transform:pre",
570
570
  enforce: "pre",
571
571
  async transform(code, id) {
572
- if (!id.endsWith(".vue"))
572
+ if (!id.endsWith(".vue") || id.includes("/@slidev/client/") || id.includes("/packages/client/"))
573
573
  return;
574
574
  return transformVue(code);
575
575
  }
@@ -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
- 'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
618
+ 'import { injectionSlidevContext as _injectionSlidevContext, injectionClicks as _injectionClicks } 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 = _vueInject(_injectionClicks)"
621
624
  ];
622
625
  code = code.replace(/(<script setup.*>)/g, `$1
623
626
  ${imports.join("\n")}
@@ -635,12 +638,14 @@ ${code.slice(injectB)}`;
635
638
  return code;
636
639
  }
637
640
  function transformVue(code) {
638
- if (code.includes("injectionSlidevContext"))
641
+ if (code.includes("injectionSlidevContext") || code.includes("injectionClicks") || code.includes("const $slidev"))
639
642
  return code;
640
643
  const imports = [
641
- 'import { inject as vueInject } from "vue"',
642
- 'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
643
- "const $slidev = vueInject(injectionSlidevContext)"
644
+ 'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
645
+ 'import { injectionSlidevContext as _injectionSlidevContext, injectionClicks as _injectionClicks } from "@slidev/client/constants.ts"',
646
+ "const $slidev = _vueInject(_injectionSlidevContext)",
647
+ 'const $nav = _vueToRef($slidev, "nav")',
648
+ "const $clicks = _vueInject(_injectionClicks)"
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 _chunkCJW2UL6Kjs = require('./chunk-CJW2UL6K.js');
12
+ var _chunkO2663AU4js = require('./chunk-O2663AU4.js');
13
13
 
14
14
 
15
- var _chunkROTHRPSWjs = require('./chunk-ROTHRPSW.js');
15
+ var _chunkXPOF53GOjs = require('./chunk-XPOF53GO.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, _chunkXPOF53GOjs.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
- _chunkCJW2UL6Kjs.getUserRoot.call(void 0, {}).userRoot,
54
- ..._chunkCJW2UL6Kjs.getAddonRoots.call(void 0, addons, ""),
55
- _chunkCJW2UL6Kjs.getClientRoot.call(void 0, )
53
+ _chunkO2663AU4js.getUserRoot.call(void 0, {}).userRoot,
54
+ ..._chunkO2663AU4js.getAddonRoots.call(void 0, addons, ""),
55
+ _chunkO2663AU4js.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(_chunkCJW2UL6Kjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
61
+ var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkO2663AU4js.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 _chunkCJW2UL6Kjs.resolveOptions.call(void 0, { entry, remote, theme, inspect }, "dev");
117
+ const options = await _chunkO2663AU4js.resolveOptions.call(void 0, { entry, remote, theme, inspect }, "dev");
118
118
  port = userPort || await findFreePort(3030);
119
- server = await _chunkCJW2UL6Kjs.createServer.call(void 0,
119
+ server = await _chunkO2663AU4js.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 && _chunkCJW2UL6Kjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkCJW2UL6Kjs.resolveThemeName.call(void 0, data.config.theme)) {
133
+ if (!theme && _chunkO2663AU4js.resolveThemeName.call(void 0, newData.config.theme) !== _chunkO2663AU4js.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-BMJKCMWK.js"));
263
263
  for (const entryFile of entry) {
264
- const options = await _chunkCJW2UL6Kjs.resolveOptions.call(void 0, { entry: entryFile, theme, inspect }, "build");
264
+ const options = await _chunkO2663AU4js.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 _chunkCJW2UL6Kjs.parser.load(entryFile);
285
- _chunkCJW2UL6Kjs.parser.prettify(data);
286
- await _chunkCJW2UL6Kjs.parser.save(data);
284
+ const data = await _chunkO2663AU4js.parser.load(entryFile);
285
+ _chunkO2663AU4js.parser.prettify(data);
286
+ await _chunkO2663AU4js.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 _chunkCJW2UL6Kjs.parser.load(entry);
303
- const theme = _chunkCJW2UL6Kjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
302
+ const data = await _chunkO2663AU4js.parser.load(entry);
303
+ const theme = _chunkO2663AU4js.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 (_chunkCJW2UL6Kjs.isPath.call(void 0, theme)) {
308
+ if (_chunkO2663AU4js.isPath.call(void 0, theme)) {
309
309
  console.error("Theme is already ejected");
310
310
  _process2.default.exit(1);
311
311
  }
312
- const roots = _chunkCJW2UL6Kjs.getThemeRoots.call(void 0, theme, entry);
312
+ const roots = _chunkO2663AU4js.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 _chunkCJW2UL6Kjs.parser.save(data);
324
+ await _chunkO2663AU4js.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 _chunkCJW2UL6Kjs.resolveOptions.call(void 0, { entry: entryFile, theme }, "export");
345
- const server = await _chunkCJW2UL6Kjs.createServer.call(void 0,
344
+ const options = await _chunkO2663AU4js.resolveOptions.call(void 0, { entry: entryFile, theme }, "export");
345
+ const server = await _chunkO2663AU4js.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
- _chunkCJW2UL6Kjs.parser.filterDisabled(options.data);
354
+ _chunkO2663AU4js.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 _chunkCJW2UL6Kjs.resolveOptions.call(void 0, { entry: entryFile }, "export");
391
- const server = await _chunkCJW2UL6Kjs.createServer.call(void 0,
390
+ const options = await _chunkO2663AU4js.resolveOptions.call(void 0, { entry: entryFile }, "export");
391
+ const server = await _chunkO2663AU4js.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
- _chunkCJW2UL6Kjs.parser.filterDisabled(options.data);
400
+ _chunkO2663AU4js.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${_chunkCJW2UL6Kjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
461
+ console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkO2663AU4js.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-Y2TFMOHQ.mjs";
12
+ } from "./chunk-SWZ5SM6V.mjs";
13
13
  import {
14
14
  require_fast_deep_equal
15
- } from "./chunk-HA2YGJJG.mjs";
15
+ } from "./chunk-WAD6PHVC.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-4JRH4QXK.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 _chunkCJW2UL6Kjs = require('./chunk-CJW2UL6K.js');
12
+ var _chunkO2663AU4js = require('./chunk-O2663AU4.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 _chunkXPOF53GOjs = require('./chunk-XPOF53GO.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 = _chunkCJW2UL6Kjs.createServer; exports.createWindiCSSPlugin = _chunkJ7PXWEZ7js.createWindiCSSPlugin; exports.getAddonRoots = _chunkCJW2UL6Kjs.getAddonRoots; exports.getCLIRoot = _chunkCJW2UL6Kjs.getCLIRoot; exports.getClientRoot = _chunkCJW2UL6Kjs.getClientRoot; exports.getRoot = _chunkCJW2UL6Kjs.getRoot; exports.getThemeRoots = _chunkCJW2UL6Kjs.getThemeRoots; exports.getUserRoot = _chunkCJW2UL6Kjs.getUserRoot; exports.isPath = _chunkCJW2UL6Kjs.isPath; exports.parser = _chunkCJW2UL6Kjs.parser; exports.resolveOptions = _chunkCJW2UL6Kjs.resolveOptions;
35
+ exports.ViteSlidevPlugin = _chunkXPOF53GOjs.ViteSlidevPlugin; exports.createServer = _chunkO2663AU4js.createServer; exports.createWindiCSSPlugin = _chunkJ7PXWEZ7js.createWindiCSSPlugin; exports.getAddonRoots = _chunkO2663AU4js.getAddonRoots; exports.getCLIRoot = _chunkO2663AU4js.getCLIRoot; exports.getClientRoot = _chunkO2663AU4js.getClientRoot; exports.getRoot = _chunkO2663AU4js.getRoot; exports.getThemeRoots = _chunkO2663AU4js.getThemeRoots; exports.getUserRoot = _chunkO2663AU4js.getUserRoot; exports.isPath = _chunkO2663AU4js.isPath; exports.parser = _chunkO2663AU4js.parser; exports.resolveOptions = _chunkO2663AU4js.resolveOptions;
package/dist/index.mjs CHANGED
@@ -9,13 +9,13 @@ import {
9
9
  isPath,
10
10
  parser,
11
11
  resolveOptions
12
- } from "./chunk-Y2TFMOHQ.mjs";
12
+ } from "./chunk-SWZ5SM6V.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-WAD6PHVC.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.1",
3
+ "version": "0.43.0-beta.3",
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.1",
100
- "@slidev/parser": "0.43.0-beta.1",
101
- "@slidev/types": "0.43.0-beta.1"
100
+ "@slidev/client": "0.43.0-beta.3",
101
+ "@slidev/parser": "0.43.0-beta.3",
102
+ "@slidev/types": "0.43.0-beta.3"
102
103
  },
103
104
  "devDependencies": {
104
105
  "@types/plantuml-encoder": "^1.4.0",