@slidev/cli 0.46.2 → 0.46.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-A2SUQOYQ.mjs";
5
+ } from "./chunk-BDBBIE6Z.mjs";
6
6
  import "./chunk-CTBVOVLQ.mjs";
7
7
  import "./chunk-5L3XKTHL.mjs";
8
8
  import "./chunk-BXO7ZPPU.mjs";
@@ -149,18 +149,18 @@ var dependencies = {
149
149
  drauu: "^0.3.7",
150
150
  "file-saver": "^2.0.5",
151
151
  "fuse.js": "^7.0.0",
152
- "js-base64": "^3.7.5",
152
+ "js-base64": "^3.7.6",
153
153
  "js-yaml": "^4.1.0",
154
154
  katex: "^0.16.9",
155
155
  mermaid: "^10.7.0",
156
156
  "monaco-editor": "^0.37.1",
157
157
  nanoid: "^5.0.4",
158
- prettier: "^3.2.3",
158
+ prettier: "^3.2.4",
159
159
  recordrtc: "^5.6.2",
160
160
  resolve: "^1.22.8",
161
161
  unocss: "^0.58.3",
162
162
  "vite-plugin-windicss": "^1.9.3",
163
- vue: "^3.4.14",
163
+ vue: "^3.4.15",
164
164
  "vue-router": "^4.2.5",
165
165
  "vue-starport": "^0.4.0",
166
166
  windicss: "^3.5.6"
@@ -1530,10 +1530,11 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
1530
1530
  });
1531
1531
  }
1532
1532
  function transformKaTex(md2) {
1533
- return md2.replace(/^\$\$(?:\s*{([\d\w*,\|-]+)}\s*?({.*?})?\s*?)?\n([\s\S]+?)^\$\$/mg, (full, rangeStr = "", _, code) => {
1533
+ return md2.replace(/^\$\$(?:\s*{([\d\w*,\|-]+)}\s*?({.*?})?\s*?)?\n([\s\S]+?)^\$\$/mg, (full, rangeStr = "", options = "", code) => {
1534
1534
  const ranges = rangeStr.split(/\|/g).map((i) => i.trim());
1535
1535
  code = code.trimEnd();
1536
- return `<KaTexBlockWrapper :ranges='${JSON.stringify(ranges)}'>
1536
+ options = options.trim() || "{}";
1537
+ return `<KaTexBlockWrapper v-bind="${options}" :ranges='${JSON.stringify(ranges)}'>
1537
1538
 
1538
1539
  $$
1539
1540
  ${code}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ViteSlidevPlugin,
3
3
  mergeViteConfigs
4
- } from "./chunk-A2SUQOYQ.mjs";
4
+ } from "./chunk-BDBBIE6Z.mjs";
5
5
  import {
6
6
  packageExists,
7
7
  resolveImportPath
@@ -2523,7 +2523,7 @@ async function createServer(options2, viteConfig = {}, serverOptions = {}) {
2523
2523
  import * as parser from "@slidev/parser/fs";
2524
2524
 
2525
2525
  // package.json
2526
- var version = "0.46.2";
2526
+ var version = "0.46.3";
2527
2527
 
2528
2528
  // node/themes.ts
2529
2529
  import prompts2 from "prompts";
package/dist/cli.mjs CHANGED
@@ -9,8 +9,8 @@ import {
9
9
  resolveOptions,
10
10
  resolveThemeName,
11
11
  version
12
- } from "./chunk-EX3A73BD.mjs";
13
- import "./chunk-A2SUQOYQ.mjs";
12
+ } from "./chunk-P5XEHWCU.mjs";
13
+ import "./chunk-BDBBIE6Z.mjs";
14
14
  import {
15
15
  loadSetups
16
16
  } from "./chunk-CTBVOVLQ.mjs";
@@ -269,7 +269,7 @@ cli.command(
269
269
  }).strict().help(),
270
270
  async (args) => {
271
271
  const { entry, theme, watch, base, download, out, inspect } = args;
272
- const { build } = await import("./build-IAPZKWXB.mjs");
272
+ const { build } = await import("./build-XIN6SGB6.mjs");
273
273
  for (const entryFile of entry) {
274
274
  const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
275
275
  if (download && !options.data.config.download)
package/dist/index.mjs CHANGED
@@ -9,13 +9,13 @@ import {
9
9
  isPath,
10
10
  parser,
11
11
  resolveOptions
12
- } from "./chunk-EX3A73BD.mjs";
12
+ } from "./chunk-P5XEHWCU.mjs";
13
13
  import {
14
14
  createWindiCSSPlugin
15
15
  } from "./chunk-GLZC72RJ.mjs";
16
16
  import {
17
17
  ViteSlidevPlugin
18
- } from "./chunk-A2SUQOYQ.mjs";
18
+ } from "./chunk-BDBBIE6Z.mjs";
19
19
  import "./chunk-CTBVOVLQ.mjs";
20
20
  import "./chunk-5L3XKTHL.mjs";
21
21
  import "./chunk-BXO7ZPPU.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.46.2",
3
+ "version": "0.46.3",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@antfu/utils": "^0.7.7",
46
- "@iconify-json/carbon": "^1.1.27",
46
+ "@iconify-json/carbon": "^1.1.28",
47
47
  "@iconify-json/ph": "^1.1.10",
48
48
  "@lillallol/outline-pdf": "^4.0.0",
49
49
  "@mrdrogdrog/optional": "^1.2.1",
@@ -65,7 +65,7 @@
65
65
  "import-from": "^4.0.0",
66
66
  "is-installed-globally": "^1.0.0",
67
67
  "jiti": "^1.21.0",
68
- "js-base64": "^3.7.5",
68
+ "js-base64": "^3.7.6",
69
69
  "katex": "^0.16.9",
70
70
  "kolorist": "^1.8.0",
71
71
  "local-pkg": "^0.5.0",
@@ -87,8 +87,8 @@
87
87
  "resolve": "^1.22.8",
88
88
  "resolve-from": "^5.0.0",
89
89
  "resolve-global": "^2.0.0",
90
- "shiki": "npm:shikiji-compat@^0.9.19",
91
90
  "shikiji": "^0.9.19",
91
+ "shiki": "npm:shikiji-compat@^0.9.19",
92
92
  "shikiji-twoslash": "^0.9.19",
93
93
  "sirv": "^2.0.4",
94
94
  "unocss": "^0.58.3",
@@ -96,19 +96,19 @@
96
96
  "unplugin-vue-components": "^0.26.0",
97
97
  "unplugin-vue-markdown": "^0.25.2",
98
98
  "uqr": "^0.1.2",
99
- "vite": "^5.0.11",
99
+ "vite": "^5.0.12",
100
100
  "vite-plugin-inspect": "^0.8.1",
101
101
  "vite-plugin-remote-assets": "^0.4.1",
102
102
  "vite-plugin-static-copy": "^1.0.0",
103
103
  "vite-plugin-vue-server-ref": "^0.4.0",
104
104
  "vite-plugin-windicss": "^1.9.3",
105
105
  "vitefu": "^0.2.5",
106
- "vue": "^3.4.14",
106
+ "vue": "^3.4.15",
107
107
  "windicss": "^3.5.6",
108
108
  "yargs": "^17.7.2",
109
- "@slidev/client": "0.46.2",
110
- "@slidev/parser": "0.46.2",
111
- "@slidev/types": "0.46.2"
109
+ "@slidev/client": "0.46.3",
110
+ "@slidev/parser": "0.46.3",
111
+ "@slidev/types": "0.46.3"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@hedgedoc/markdown-it-plugins": "^2.1.4",