@slidev/cli 0.33.0 → 0.33.1

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,13 +2,13 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-C7GPMAIX.mjs";
5
+ } from "./chunk-DGFMEJWT.mjs";
6
6
  import {
7
7
  __require,
8
8
  __spreadValues,
9
9
  __toESM,
10
10
  init_esm_shims
11
- } from "./chunk-ZWCVPYOA.mjs";
11
+ } from "./chunk-IWKTUAXD.mjs";
12
12
 
13
13
  // node/build.ts
14
14
  init_esm_shims();
@@ -714,7 +714,7 @@ async function build(options, viteConfig = {}) {
714
714
  await fs2.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
715
715
  `, "utf-8");
716
716
  if ([true, "true", "auto"].includes(options.data.config.download)) {
717
- const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-5R6FV775.mjs")));
717
+ const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-Z44PM4CT.mjs")));
718
718
  const port = 12445;
719
719
  const app = connect();
720
720
  const server = http.createServer(app);
@@ -2,16 +2,16 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkUNBXPUSGjs = require('./chunk-UNBXPUSG.js');
5
+ var _chunkWGEHDK3Kjs = require('./chunk-WGEHDK3K.js');
6
6
 
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkFFZLS6QKjs = require('./chunk-FFZLS6QK.js');
11
+ var _chunkIP7ZGKHIjs = require('./chunk-IP7ZGKHI.js');
12
12
 
13
13
  // node/build.ts
14
- _chunkFFZLS6QKjs.init_cjs_shims.call(void 0, );
14
+ _chunkIP7ZGKHIjs.init_cjs_shims.call(void 0, );
15
15
  var _path = require('path');
16
16
  var _http = require('http'); var _http2 = _interopRequireDefault(_http);
17
17
  var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
@@ -19,12 +19,12 @@ var _vite = require('vite');
19
19
  var _connect = require('connect'); var _connect2 = _interopRequireDefault(_connect);
20
20
 
21
21
  // ../../node_modules/.pnpm/sirv@2.0.2/node_modules/sirv/build.mjs
22
- _chunkFFZLS6QKjs.init_cjs_shims.call(void 0, );
22
+ _chunkIP7ZGKHIjs.init_cjs_shims.call(void 0, );
23
23
  var _fs = require('fs'); var fs = _interopRequireWildcard(_fs);
24
24
 
25
25
 
26
26
  // ../../node_modules/.pnpm/totalist@3.0.0/node_modules/totalist/sync/index.mjs
27
- _chunkFFZLS6QKjs.init_cjs_shims.call(void 0, );
27
+ _chunkIP7ZGKHIjs.init_cjs_shims.call(void 0, );
28
28
 
29
29
 
30
30
  function totalist(dir, callback, pre = "") {
@@ -39,7 +39,7 @@ function totalist(dir, callback, pre = "") {
39
39
  }
40
40
 
41
41
  // ../../node_modules/.pnpm/@polka+url@1.0.0-next.21/node_modules/@polka/url/build.mjs
42
- _chunkFFZLS6QKjs.init_cjs_shims.call(void 0, );
42
+ _chunkIP7ZGKHIjs.init_cjs_shims.call(void 0, );
43
43
  var _querystring = require('querystring'); var qs = _interopRequireWildcard(_querystring);
44
44
  function parse2(req) {
45
45
  let raw = req.url;
@@ -63,7 +63,7 @@ function parse2(req) {
63
63
  }
64
64
 
65
65
  // ../../node_modules/.pnpm/mrmime@1.0.0/node_modules/mrmime/index.mjs
66
- _chunkFFZLS6QKjs.init_cjs_shims.call(void 0, );
66
+ _chunkIP7ZGKHIjs.init_cjs_shims.call(void 0, );
67
67
  var mimes = {
68
68
  "ez": "application/andrew-inset",
69
69
  "aw": "application/applixware",
@@ -528,7 +528,7 @@ function is404(req, res) {
528
528
  }
529
529
  function send(req, res, file, stats, headers) {
530
530
  let code = 200, tmp, opts = {};
531
- headers = _chunkFFZLS6QKjs.__spreadValues.call(void 0, {}, headers);
531
+ headers = _chunkIP7ZGKHIjs.__spreadValues.call(void 0, {}, headers);
532
532
  for (let key in headers) {
533
533
  tmp = res.getHeader(key);
534
534
  if (tmp)
@@ -656,13 +656,13 @@ async function build(options, viteConfig = {}) {
656
656
  let originalIndexHTML;
657
657
  if (_fsextra2.default.existsSync(indexPath))
658
658
  originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
659
- await _fsextra2.default.writeFile(indexPath, await _chunkUNBXPUSGjs.getIndexHtml.call(void 0, options), "utf-8");
659
+ await _fsextra2.default.writeFile(indexPath, await _chunkWGEHDK3Kjs.getIndexHtml.call(void 0, options), "utf-8");
660
660
  let config = void 0;
661
661
  try {
662
- const inlineConfig = await _chunkUNBXPUSGjs.mergeViteConfigs.call(void 0, options, viteConfig, {
662
+ const inlineConfig = await _chunkWGEHDK3Kjs.mergeViteConfigs.call(void 0, options, viteConfig, {
663
663
  root: options.userRoot,
664
664
  plugins: [
665
- await _chunkUNBXPUSGjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
665
+ await _chunkWGEHDK3Kjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
666
666
  {
667
667
  name: "resolve-config",
668
668
  configResolved(_config) {
@@ -680,7 +680,7 @@ async function build(options, viteConfig = {}) {
680
680
  console.log(_kolorist.yellow.call(void 0, " Monaco is disabled in the build, to enabled it, set `monaco: true` in the frontmatter"));
681
681
  } else {
682
682
  console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
683
- await _vite.build.call(void 0, await _chunkUNBXPUSGjs.mergeViteConfigs.call(void 0, options, inlineConfig, {
683
+ await _vite.build.call(void 0, await _chunkWGEHDK3Kjs.mergeViteConfigs.call(void 0, options, inlineConfig, {
684
684
  root: _path.join.call(void 0, options.clientRoot, "iframes/monaco"),
685
685
  base: `${config.base}iframes/monaco/`,
686
686
  build: {
@@ -714,7 +714,7 @@ async function build(options, viteConfig = {}) {
714
714
  await _fsextra2.default.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
715
715
  `, "utf-8");
716
716
  if ([true, "true", "auto"].includes(options.data.config.download)) {
717
- const { exportSlides } = await Promise.resolve().then(() => _chunkFFZLS6QKjs.__toESM.call(void 0, _chunkFFZLS6QKjs.__require.call(void 0, "./export-LOKLMK66.js")));
717
+ const { exportSlides } = await Promise.resolve().then(() => _chunkIP7ZGKHIjs.__toESM.call(void 0, _chunkIP7ZGKHIjs.__require.call(void 0, "./export-JHIU6OQI.js")));
718
718
  const port = 12445;
719
719
  const app = _connect2.default.call(void 0, );
720
720
  const server = _http2.default.createServer(app);
@@ -11,7 +11,7 @@ import {
11
11
  resolveImportPath,
12
12
  stringifyMarkdownTokens,
13
13
  toAtFS
14
- } from "./chunk-ZWCVPYOA.mjs";
14
+ } from "./chunk-IWKTUAXD.mjs";
15
15
 
16
16
  // ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
17
17
  var require_fast_deep_equal = __commonJS({
@@ -268,7 +268,7 @@ var dependencies = {
268
268
  "@antfu/utils": "^0.5.2",
269
269
  "@slidev/parser": "workspace:*",
270
270
  "@slidev/types": "workspace:*",
271
- "@vueuse/core": "^8.6.0",
271
+ "@vueuse/core": "^8.7.4",
272
272
  "@vueuse/head": "^0.7.6",
273
273
  "@vueuse/motion": "^2.0.0-beta.18",
274
274
  codemirror: "^5.65.5",
@@ -277,17 +277,17 @@ var dependencies = {
277
277
  "file-saver": "^2.0.5",
278
278
  "js-base64": "^3.7.2",
279
279
  "js-yaml": "^4.1.0",
280
- katex: "^0.15.6",
281
- mermaid: "^9.1.1",
280
+ katex: "^0.16.0",
281
+ mermaid: "^9.1.2",
282
282
  "monaco-editor": "^0.33.0",
283
- nanoid: "^3.3.4",
284
- prettier: "^2.6.2",
283
+ nanoid: "^4.0.0",
284
+ prettier: "^2.7.1",
285
285
  recordrtc: "^5.6.2",
286
- resolve: "^1.22.0",
286
+ resolve: "^1.22.1",
287
287
  "vite-plugin-windicss": "^1.8.4",
288
288
  vue: "^3.2.36",
289
- "vue-router": "^4.0.15",
290
- "vue-starport": "^0.2.11",
289
+ "vue-router": "^4.0.16",
290
+ "vue-starport": "^0.3.0",
291
291
  windicss: "^3.5.4"
292
292
  };
293
293
 
@@ -993,7 +993,7 @@ function createClientSetupPlugin({ clientRoot, themeRoots, addonRoots, userRoot
993
993
 
994
994
  // node/plugins/markdown.ts
995
995
  init_esm_shims();
996
- import Markdown2 from "vite-plugin-md";
996
+ import Markdown2 from "vite-plugin-vue-markdown";
997
997
  import * as base64 from "js-base64";
998
998
  import { slash as slash5 } from "@antfu/utils";
999
999
  import mila2 from "markdown-it-link-attributes";
@@ -84,9 +84,9 @@ var __privateWrapper = (obj, member, setter, getter) => {
84
84
  };
85
85
  };
86
86
 
87
- // ../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.2/node_modules/tsup/assets/cjs_shims.js
87
+ // ../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.4/node_modules/tsup/assets/cjs_shims.js
88
88
  var init_cjs_shims = __esm({
89
- "../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.2/node_modules/tsup/assets/cjs_shims.js"() {
89
+ "../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.4/node_modules/tsup/assets/cjs_shims.js"() {
90
90
  }
91
91
  });
92
92
 
@@ -84,12 +84,12 @@ var __privateWrapper = (obj, member, setter, getter) => {
84
84
  };
85
85
  };
86
86
 
87
- // ../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.2/node_modules/tsup/assets/esm_shims.js
87
+ // ../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.4/node_modules/tsup/assets/esm_shims.js
88
88
  import { fileURLToPath } from "url";
89
89
  import path from "path";
90
90
  var getFilename, getDirname, __dirname, __filename;
91
91
  var init_esm_shims = __esm({
92
- "../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.2/node_modules/tsup/assets/esm_shims.js"() {
92
+ "../../node_modules/.pnpm/tsup@5.12.9_typescript@4.7.4/node_modules/tsup/assets/esm_shims.js"() {
93
93
  getFilename = () => fileURLToPath(import.meta.url);
94
94
  getDirname = () => path.dirname(getFilename());
95
95
  __dirname = /* @__PURE__ */ getDirname();