@slidev/cli 52.11.1 → 52.11.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.
@@ -1,5 +1,5 @@
1
1
  import "./resolver-B4CxEjJF.mjs";
2
- import { t as resolveViteConfigs } from "./shared-DgnE1q2H.mjs";
2
+ import { t as resolveViteConfigs } from "./shared-fikEk8xE.mjs";
3
3
  import { join, resolve } from "node:path";
4
4
  import { build as build$1 } from "vite";
5
5
  import { existsSync } from "node:fs";
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { i as resolveEntry, n as getRoots, r as isInstalledGlobally } from "./resolver-B4CxEjJF.mjs";
2
- import { a as parser, c as resolveAddons, d as updateFrontmatterPatch, i as resolveOptions, l as version, o as getThemeMeta, s as resolveTheme, u as loadSetups } from "./shared-DgnE1q2H.mjs";
3
- import { t as createServer } from "./serve-BdfnfhEP.mjs";
2
+ import { a as parser, c as resolveAddons, d as updateFrontmatterPatch, i as resolveOptions, l as version, o as getThemeMeta, s as resolveTheme, u as loadSetups } from "./shared-fikEk8xE.mjs";
3
+ import { t as createServer } from "./serve-Cy1sxyrb.mjs";
4
4
  import path from "node:path";
5
5
  import process from "node:process";
6
6
  import fs from "node:fs/promises";
@@ -291,7 +291,7 @@ cli.command("build [entry..]", "Build hostable SPA", (args) => exportOptions(com
291
291
  describe: "enable the inspect plugin for debugging"
292
292
  }).strict().help(), async (args) => {
293
293
  const { entry, theme, base, download, out, inspect, "without-notes": withoutNotes } = args;
294
- const { build } = await import("./build-CcB77kTG.mjs");
294
+ const { build } = await import("./build-P7coaoJg.mjs");
295
295
  for (const entryFile of entry) {
296
296
  const options = await resolveOptions({
297
297
  entry: entryFile,
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./resolver-B4CxEjJF.mjs";
2
- import { a as parser, i as resolveOptions, n as ViteSlidevPlugin, r as createDataUtils } from "./shared-DgnE1q2H.mjs";
3
- import { t as createServer } from "./serve-BdfnfhEP.mjs";
2
+ import { a as parser, i as resolveOptions, n as ViteSlidevPlugin, r as createDataUtils } from "./shared-fikEk8xE.mjs";
3
+ import { t as createServer } from "./serve-Cy1sxyrb.mjs";
4
4
 
5
5
  export { ViteSlidevPlugin, createDataUtils, createServer, parser, resolveOptions };
@@ -1,4 +1,4 @@
1
- import { t as resolveViteConfigs } from "./shared-DgnE1q2H.mjs";
1
+ import { t as resolveViteConfigs } from "./shared-fikEk8xE.mjs";
2
2
  import { join } from "node:path";
3
3
  import process from "node:process";
4
4
  import { createServer } from "vite";
@@ -278,7 +278,8 @@ const INCLUDE_GLOBAL = [
278
278
  "recordrtc",
279
279
  "typescript",
280
280
  "yaml",
281
- "pptxgenjs"
281
+ "pptxgenjs",
282
+ "ansis"
282
283
  ];
283
284
  const INCLUDE_LOCAL = INCLUDE_GLOBAL.map((i) => `@slidev/cli > @slidev/client > ${i}`);
284
285
  const EXCLUDE_GLOBAL = [
@@ -504,7 +505,7 @@ function createLayoutWrapperPlugin({ data, utils }) {
504
505
 
505
506
  //#endregion
506
507
  //#region package.json
507
- var version = "52.11.1";
508
+ var version = "52.11.2";
508
509
 
509
510
  //#endregion
510
511
  //#region node/integrations/addons.ts
@@ -1866,7 +1867,7 @@ async function setupTransformers(roots) {
1866
1867
 
1867
1868
  //#endregion
1868
1869
  //#region node/syntax/transform/code-wrapper.ts
1869
- const reCodeBlock = /^```([\w'-]+)?\s*(?:\[(.*?)\])?\s*(?:\{([\w*,|-]+)\}\s*?(\{[^}]*\})?([^\r\n]*))?\r?\n((?:(?!^```)[\s\S])*?)^```$/gm;
1870
+ const reCodeBlock = /^```([\w'-]+)?(?:[ \t]*|[ \t][ \w\t'-]*)(?:\[([^\]]*)\])?[ \t]*(?:\{([\w*,|-]+)\}[ \t]*(\{[^}]*\})?([^\r\n]*))?\r?\n((?:(?!^```)[\s\S])*?)^```$/gm;
1870
1871
  /**
1871
1872
  * Transform code block with wrapper
1872
1873
  */
@@ -1875,7 +1876,7 @@ function transformCodeWrapper(ctx) {
1875
1876
  const ranges = normalizeRangeStr(rangeStr);
1876
1877
  code = code.trimEnd();
1877
1878
  options = options.trim() || "{}";
1878
- return `\n<CodeBlockWrapper v-bind="${options}" :title='${JSON.stringify(title)}' :ranges='${JSON.stringify(ranges)}'>\n\n\`\`\`${lang}${title ? ` [${title}]` : ""}${attrs}\n${code}\n\`\`\`\n\n</CodeBlockWrapper>`;
1879
+ return `\n<CodeBlockWrapper v-bind="${options}" :title='${JSON.stringify(title)}' :ranges='${JSON.stringify(ranges)}'>\n\n\`\`\`${lang}${title ? ` [${title}]` : ""}${attrs ? ` ${attrs.trim()}` : ""}\n${code}\n\`\`\`\n\n</CodeBlockWrapper>`;
1879
1880
  });
1880
1881
  }
1881
1882
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
3
  "type": "module",
4
- "version": "52.11.1",
4
+ "version": "52.11.2",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -42,21 +42,21 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@antfu/ni": "^28.0.0",
45
+ "@antfu/ni": "^28.1.0",
46
46
  "@antfu/utils": "^9.3.0",
47
47
  "@iconify-json/carbon": "^1.2.15",
48
48
  "@iconify-json/ph": "^1.2.2",
49
49
  "@iconify-json/svg-spinners": "^1.2.4",
50
50
  "@lillallol/outline-pdf": "^4.0.0",
51
- "@shikijs/markdown-it": "^3.20.0",
52
- "@shikijs/twoslash": "^3.20.0",
53
- "@shikijs/vitepress-twoslash": "^3.20.0",
54
- "@unocss/extractor-mdc": "^66.5.10",
55
- "@unocss/reset": "^66.5.10",
51
+ "@shikijs/markdown-it": "^3.21.0",
52
+ "@shikijs/twoslash": "^3.21.0",
53
+ "@shikijs/vitepress-twoslash": "^3.21.0",
54
+ "@unocss/extractor-mdc": "^66.5.12",
55
+ "@unocss/reset": "^66.5.12",
56
56
  "@vitejs/plugin-vue": "^6.0.3",
57
- "@vitejs/plugin-vue-jsx": "^5.1.2",
57
+ "@vitejs/plugin-vue-jsx": "^5.1.3",
58
58
  "ansis": "^4.2.0",
59
- "chokidar": "^4.0.3",
59
+ "chokidar": "^5.0.0",
60
60
  "cli-progress": "^3.12.0",
61
61
  "connect": "^3.7.0",
62
62
  "fast-deep-equal": "^3.1.3",
@@ -88,19 +88,19 @@
88
88
  "resolve-from": "^5.0.0",
89
89
  "resolve-global": "^2.0.0",
90
90
  "semver": "^7.7.3",
91
- "shiki": "^3.20.0",
91
+ "shiki": "^3.21.0",
92
92
  "shiki-magic-move": "^1.2.1",
93
93
  "sirv": "^3.0.2",
94
94
  "source-map-js": "^1.2.1",
95
95
  "typescript": "^5.9.3",
96
- "unhead": "^2.0.19",
97
- "unocss": "^66.5.10",
96
+ "unhead": "^2.1.1",
97
+ "unocss": "^66.5.12",
98
98
  "unplugin-icons": "^22.5.0",
99
99
  "unplugin-vue-components": "^30.0.0",
100
100
  "unplugin-vue-markdown": "^29.2.0",
101
101
  "untun": "^0.1.3",
102
102
  "uqr": "^0.1.2",
103
- "vite": "^7.3.0",
103
+ "vite": "^7.3.1",
104
104
  "vite-plugin-inspect": "^11.3.3",
105
105
  "vite-plugin-remote-assets": "^2.1.0",
106
106
  "vite-plugin-static-copy": "^3.1.4",
@@ -109,9 +109,9 @@
109
109
  "vue": "^3.5.26",
110
110
  "yaml": "^2.8.2",
111
111
  "yargs": "^18.0.0",
112
- "@slidev/client": "52.11.1",
113
- "@slidev/parser": "52.11.1",
114
- "@slidev/types": "52.11.1"
112
+ "@slidev/client": "52.11.2",
113
+ "@slidev/types": "52.11.2",
114
+ "@slidev/parser": "52.11.2"
115
115
  },
116
116
  "devDependencies": {
117
117
  "@hedgedoc/markdown-it-plugins": "^2.1.4",