@slidev/cli 0.43.13 → 0.43.14

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,9 +2,9 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-G52N36S6.mjs";
5
+ } from "./chunk-72OPDAKL.mjs";
6
6
  import "./chunk-CYLMMBRG.mjs";
7
- import "./chunk-2ZQP2W7X.mjs";
7
+ import "./chunk-5L3XKTHL.mjs";
8
8
  import "./chunk-65ITIFTL.mjs";
9
9
 
10
10
  // node/build.ts
@@ -722,7 +722,7 @@ async function build(options, viteConfig = {}, args) {
722
722
  await fs2.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
723
723
  `, "utf-8");
724
724
  if ([true, "true", "auto"].includes(options.data.config.download)) {
725
- const { exportSlides, getExportOptions } = await import("./export-HQUH6WSD.mjs");
725
+ const { exportSlides, getExportOptions } = await import("./export-LYIOCUF2.mjs");
726
726
  const port = 12445;
727
727
  const app = connect();
728
728
  const server = http.createServer(app);
@@ -5,7 +5,7 @@ import { fileURLToPath } from "node:url";
5
5
  import { ensurePrefix, slash } from "@antfu/utils";
6
6
  import isInstalledGlobally from "is-installed-globally";
7
7
  import resolve from "resolve";
8
- import globalDirs from "global-dirs";
8
+ import globalDirs from "global-directory";
9
9
  var require2 = createRequire(import.meta.url);
10
10
  var __dirname = dirname(fileURLToPath(import.meta.url));
11
11
  function toAtFS(path) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ViteSlidevPlugin,
3
3
  mergeViteConfigs
4
- } from "./chunk-G52N36S6.mjs";
4
+ } from "./chunk-72OPDAKL.mjs";
5
5
  import {
6
6
  packageExists,
7
7
  resolveImportPath
8
- } from "./chunk-2ZQP2W7X.mjs";
8
+ } from "./chunk-5L3XKTHL.mjs";
9
9
  import {
10
10
  __commonJS,
11
11
  __toESM
@@ -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.13";
2522
+ var version = "0.43.14";
2523
2523
 
2524
2524
  // node/themes.ts
2525
2525
  import prompts2 from "prompts";
@@ -7,7 +7,7 @@ import {
7
7
  resolveImportPath,
8
8
  stringifyMarkdownTokens,
9
9
  toAtFS
10
- } from "./chunk-2ZQP2W7X.mjs";
10
+ } from "./chunk-5L3XKTHL.mjs";
11
11
  import {
12
12
  __commonJS,
13
13
  __toESM
@@ -185,7 +185,7 @@ var dependencies = {
185
185
  "@antfu/utils": "^0.7.6",
186
186
  "@slidev/parser": "workspace:*",
187
187
  "@slidev/types": "workspace:*",
188
- "@unocss/reset": "^0.57.1",
188
+ "@unocss/reset": "^0.57.2",
189
189
  "@vueuse/core": "^10.5.0",
190
190
  "@vueuse/head": "^2.0.0",
191
191
  "@vueuse/math": "^10.5.0",
@@ -198,15 +198,15 @@ var dependencies = {
198
198
  "js-base64": "^3.7.5",
199
199
  "js-yaml": "^4.1.0",
200
200
  katex: "^0.16.9",
201
- mermaid: "^10.6.0",
201
+ mermaid: "^10.6.1",
202
202
  "monaco-editor": "^0.37.1",
203
- nanoid: "^5.0.2",
203
+ nanoid: "^5.0.3",
204
204
  prettier: "^3.0.3",
205
205
  recordrtc: "^5.6.2",
206
206
  resolve: "^1.22.8",
207
- unocss: "^0.57.1",
207
+ unocss: "^0.57.2",
208
208
  "vite-plugin-windicss": "^1.9.1",
209
- vue: "^3.3.7",
209
+ vue: "^3.3.8",
210
210
  "vue-router": "^4.2.5",
211
211
  "vue-starport": "^0.4.0",
212
212
  windicss: "^3.5.6"
@@ -568,6 +568,7 @@ ${title}
568
568
  class: computed(() => frontmatter.class),
569
569
  clicks: computed(() => frontmatter.clicks),
570
570
  name: computed(() => frontmatter.name),
571
+ preload: computed(() => frontmatter.preload),
571
572
  slide: {
572
573
  ...(${JSON.stringify({
573
574
  ...prepareSlideInfo(slide),
@@ -1649,7 +1650,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
1649
1650
  autoInstall: true,
1650
1651
  ...iconsOptions
1651
1652
  }),
1652
- config.remoteAssets === true || config.remoteAssets === mode ? import("vite-plugin-remote-assets").then((r) => r.default({
1653
+ config.remoteAssets === true || config.remoteAssets === mode ? import("vite-plugin-remote-assets").then((r) => r.VitePluginRemoteAssets({
1653
1654
  rules: [
1654
1655
  ...r.DefaultRules,
1655
1656
  {
@@ -1695,7 +1696,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
1695
1696
  dev: true,
1696
1697
  build: true
1697
1698
  })) : null,
1698
- config.css === "none" ? null : config.css === "windicss" ? import("./windicss-GLRSRVVQ.mjs").then((r) => r.createWindiCSSPlugin(options, pluginOptions)) : import("./unocss-BTVZWCXM.mjs").then((r) => r.createUnocssPlugin(options, pluginOptions))
1699
+ config.css === "none" ? null : config.css === "windicss" ? import("./windicss-MS4GFOSZ.mjs").then((r) => r.createWindiCSSPlugin(options, pluginOptions)) : import("./unocss-BTVZWCXM.mjs").then((r) => r.createUnocssPlugin(options, pluginOptions))
1699
1700
  ];
1700
1701
  return (await Promise.all(plugins)).flat().filter(notNullish2);
1701
1702
  }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-CYLMMBRG.mjs";
4
4
  import {
5
5
  resolveImportPath
6
- } from "./chunk-2ZQP2W7X.mjs";
6
+ } from "./chunk-5L3XKTHL.mjs";
7
7
 
8
8
  // node/plugins/windicss.ts
9
9
  import { dirname, resolve } from "node:path";
package/dist/cli.mjs CHANGED
@@ -9,14 +9,14 @@ import {
9
9
  resolveOptions,
10
10
  resolveThemeName,
11
11
  version
12
- } from "./chunk-QHSQGFN7.mjs";
12
+ } from "./chunk-5UPLHNRA.mjs";
13
13
  import {
14
14
  require_fast_deep_equal
15
- } from "./chunk-G52N36S6.mjs";
15
+ } from "./chunk-72OPDAKL.mjs";
16
16
  import {
17
17
  loadSetups
18
18
  } from "./chunk-CYLMMBRG.mjs";
19
- import "./chunk-2ZQP2W7X.mjs";
19
+ import "./chunk-5L3XKTHL.mjs";
20
20
  import {
21
21
  __toESM
22
22
  } from "./chunk-65ITIFTL.mjs";
@@ -268,7 +268,7 @@ cli.command(
268
268
  }).strict().help(),
269
269
  async (args) => {
270
270
  const { entry, theme, watch, base, download, out, inspect } = args;
271
- const { build } = await import("./build-OR7YTV2S.mjs");
271
+ const { build } = await import("./build-N3LDIQVR.mjs");
272
272
  for (const entryFile of entry) {
273
273
  const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
274
274
  if (download && !options.data.config.download)
@@ -347,7 +347,7 @@ cli.command(
347
347
  async (args) => {
348
348
  const { entry, theme } = args;
349
349
  process.env.NODE_ENV = "production";
350
- const { exportSlides, getExportOptions } = await import("./export-HQUH6WSD.mjs");
350
+ const { exportSlides, getExportOptions } = await import("./export-LYIOCUF2.mjs");
351
351
  const port = await findFreePort(12445);
352
352
  for (const entryFile of entry) {
353
353
  const options = await resolveOptions({ entry: entryFile, theme }, "export");
@@ -393,7 +393,7 @@ cli.command(
393
393
  timeout
394
394
  }) => {
395
395
  process.env.NODE_ENV = "production";
396
- const { exportNotes } = await import("./export-HQUH6WSD.mjs");
396
+ const { exportNotes } = await import("./export-LYIOCUF2.mjs");
397
397
  const port = await findFreePort(12445);
398
398
  for (const entryFile of entry) {
399
399
  const options = await resolveOptions({ entry: entryFile }, "export");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  packageExists
3
- } from "./chunk-2ZQP2W7X.mjs";
3
+ } from "./chunk-5L3XKTHL.mjs";
4
4
  import "./chunk-65ITIFTL.mjs";
5
5
 
6
6
  // node/export.ts
package/dist/index.mjs CHANGED
@@ -9,15 +9,15 @@ import {
9
9
  isPath,
10
10
  parser,
11
11
  resolveOptions
12
- } from "./chunk-QHSQGFN7.mjs";
12
+ } from "./chunk-5UPLHNRA.mjs";
13
13
  import {
14
14
  createWindiCSSPlugin
15
- } from "./chunk-AA5PR2W4.mjs";
15
+ } from "./chunk-A7WCFT3T.mjs";
16
16
  import {
17
17
  ViteSlidevPlugin
18
- } from "./chunk-G52N36S6.mjs";
18
+ } from "./chunk-72OPDAKL.mjs";
19
19
  import "./chunk-CYLMMBRG.mjs";
20
- import "./chunk-2ZQP2W7X.mjs";
20
+ import "./chunk-5L3XKTHL.mjs";
21
21
  import "./chunk-65ITIFTL.mjs";
22
22
  export {
23
23
  ViteSlidevPlugin,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createWindiCSSPlugin
3
- } from "./chunk-AA5PR2W4.mjs";
3
+ } from "./chunk-A7WCFT3T.mjs";
4
4
  import "./chunk-CYLMMBRG.mjs";
5
- import "./chunk-2ZQP2W7X.mjs";
5
+ import "./chunk-5L3XKTHL.mjs";
6
6
  import "./chunk-65ITIFTL.mjs";
7
7
  export {
8
8
  createWindiCSSPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.43.13",
3
+ "version": "0.43.14",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -48,22 +48,22 @@
48
48
  "@iconify-json/ph": "^1.1.6",
49
49
  "@lillallol/outline-pdf": "^4.0.0",
50
50
  "@mrdrogdrog/optional": "^1.2.1",
51
- "@unocss/extractor-mdc": "^0.57.1",
52
- "@unocss/reset": "^0.57.1",
53
- "@vitejs/plugin-vue": "^4.4.0",
51
+ "@unocss/extractor-mdc": "^0.57.2",
52
+ "@unocss/reset": "^0.57.2",
53
+ "@vitejs/plugin-vue": "^4.4.1",
54
54
  "@vitejs/plugin-vue-jsx": "^3.0.2",
55
55
  "@windicss/config": "^1.9.1",
56
56
  "cli-progress": "^3.12.0",
57
57
  "codemirror": "^5.65.5",
58
58
  "connect": "^3.7.0",
59
59
  "debug": "^4.3.4",
60
- "fast-glob": "^3.3.1",
60
+ "fast-glob": "^3.3.2",
61
61
  "fs-extra": "^11.1.1",
62
62
  "get-port-please": "^3.1.1",
63
- "global-dirs": "^3.0.1",
63
+ "global-directory": "^4.0.1",
64
64
  "htmlparser2": "^9.0.0",
65
65
  "import-from": "^4.0.0",
66
- "is-installed-globally": "^0.4.0",
66
+ "is-installed-globally": "^1.0.0",
67
67
  "jiti": "^1.21.0",
68
68
  "js-base64": "^3.7.5",
69
69
  "katex": "^0.16.9",
@@ -74,7 +74,7 @@
74
74
  "markdown-it-link-attributes": "^4.0.1",
75
75
  "markdown-it-mdc": "^0.1.4",
76
76
  "monaco-editor": "^0.37.1",
77
- "nanoid": "^5.0.2",
77
+ "nanoid": "^5.0.3",
78
78
  "open": "^9.1.0",
79
79
  "pdf-lib": "^1.17.1",
80
80
  "plantuml-encoder": "^1.4.0",
@@ -84,9 +84,9 @@
84
84
  "public-ip": "^6.0.1",
85
85
  "resolve": "^1.22.8",
86
86
  "resolve-from": "^5.0.0",
87
- "resolve-global": "^1.0.0",
87
+ "resolve-global": "^2.0.0",
88
88
  "shiki": "npm:shikiji-compat@^0.6.12",
89
- "unocss": "^0.57.1",
89
+ "unocss": "^0.57.2",
90
90
  "unplugin-icons": "^0.17.3",
91
91
  "unplugin-vue-components": "^0.25.2",
92
92
  "unplugin-vue-markdown": "^0.24.3",
@@ -98,15 +98,15 @@
98
98
  "vite-plugin-vue-server-ref": "^0.3.4",
99
99
  "vite-plugin-windicss": "^1.9.1",
100
100
  "vitefu": "^0.2.5",
101
- "vue": "^3.3.7",
101
+ "vue": "^3.3.8",
102
102
  "windicss": "^3.5.6",
103
103
  "yargs": "^17.7.2",
104
- "@slidev/client": "0.43.13",
105
- "@slidev/types": "0.43.13",
106
- "@slidev/parser": "0.43.13"
104
+ "@slidev/client": "0.43.14",
105
+ "@slidev/parser": "0.43.14",
106
+ "@slidev/types": "0.43.14"
107
107
  },
108
108
  "devDependencies": {
109
- "@types/plantuml-encoder": "^1.4.1",
109
+ "@types/plantuml-encoder": "^1.4.2",
110
110
  "fast-deep-equal": "^3.1.3",
111
111
  "local-pkg": "^0.5.0",
112
112
  "semver": "^7.5.4",