@slidev/cli 51.0.0 → 51.0.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.
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-UNQ5DBLZ.js";
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
|
-
var version = "51.0.
|
|
12
|
+
var version = "51.0.2";
|
|
13
13
|
|
|
14
14
|
// node/integrations/themes.ts
|
|
15
15
|
import { join } from "node:path";
|
|
@@ -788,13 +788,14 @@ var templateShiki = {
|
|
|
788
788
|
const lines = [];
|
|
789
789
|
lines.push(
|
|
790
790
|
`import { createHighlighterCore } from "${await resolveImportUrl("shiki/core")}"`,
|
|
791
|
+
`import { createJavaScriptRegexEngine } from "${await resolveImportUrl("@shikijs/engine-javascript")}"`,
|
|
791
792
|
`export { shikiToMonaco } from "${await resolveImportUrl("@shikijs/monaco")}"`,
|
|
792
793
|
`export const languages = ${JSON.stringify(langNames)}`,
|
|
793
794
|
`export const themes = ${JSON.stringify(themeOptionsNames.themes || themeOptionsNames.theme)}`,
|
|
794
795
|
"export const shiki = createHighlighterCore({",
|
|
795
796
|
` themes: [${themesInit.join(",")}],`,
|
|
796
797
|
` langs: [${langsInit.join(",")}],`,
|
|
797
|
-
`
|
|
798
|
+
` engine: createJavaScriptRegexEngine(),`,
|
|
798
799
|
"})",
|
|
799
800
|
"let highlight",
|
|
800
801
|
"export async function getHighlighter() {",
|
|
@@ -1258,7 +1259,7 @@ function createSlidesLoader(options, serverOptions) {
|
|
|
1258
1259
|
import MagicString from "magic-string-stack";
|
|
1259
1260
|
import Markdown from "unplugin-vue-markdown/vite";
|
|
1260
1261
|
|
|
1261
|
-
// ../../node_modules/.pnpm/@hedgedoc+markdown-it-plugins@2.1.4_patch_hash=
|
|
1262
|
+
// ../../node_modules/.pnpm/@hedgedoc+markdown-it-plugins@2.1.4_patch_hash=tuyuxytl56b2vxulpkzt2wf4o4_markdown-it@14.1.0/node_modules/@hedgedoc/markdown-it-plugins/dist/esm/image-size/specialCharacters.js
|
|
1262
1263
|
var SpecialCharacters;
|
|
1263
1264
|
(function(SpecialCharacters2) {
|
|
1264
1265
|
SpecialCharacters2[SpecialCharacters2["EXCLAMATION_MARK"] = 33] = "EXCLAMATION_MARK";
|
|
@@ -1274,7 +1275,7 @@ var SpecialCharacters;
|
|
|
1274
1275
|
SpecialCharacters2[SpecialCharacters2["CLOSING_PARENTHESIS"] = 41] = "CLOSING_PARENTHESIS";
|
|
1275
1276
|
})(SpecialCharacters || (SpecialCharacters = {}));
|
|
1276
1277
|
|
|
1277
|
-
// ../../node_modules/.pnpm/@hedgedoc+markdown-it-plugins@2.1.4_patch_hash=
|
|
1278
|
+
// ../../node_modules/.pnpm/@hedgedoc+markdown-it-plugins@2.1.4_patch_hash=tuyuxytl56b2vxulpkzt2wf4o4_markdown-it@14.1.0/node_modules/@hedgedoc/markdown-it-plugins/dist/esm/task-lists/index.js
|
|
1278
1279
|
import Token from "markdown-it/lib/token.mjs";
|
|
1279
1280
|
var checkboxRegex = /^ *\[([\sx])] /i;
|
|
1280
1281
|
function taskLists(md, options = { enabled: false, label: false, lineNumber: false }) {
|
|
@@ -2086,10 +2087,10 @@ async function createMarkdownPlugin(options, { markdown: mdOptions }) {
|
|
|
2086
2087
|
},
|
|
2087
2088
|
transforms: {
|
|
2088
2089
|
...mdOptions?.transforms,
|
|
2089
|
-
before(code, id) {
|
|
2090
|
+
async before(code, id) {
|
|
2090
2091
|
if (options.data.markdownFiles[id])
|
|
2091
2092
|
return "";
|
|
2092
|
-
code = mdOptions?.transforms?.before?.(code, id) ?? code;
|
|
2093
|
+
code = await mdOptions?.transforms?.before?.(code, id) ?? code;
|
|
2093
2094
|
const match = id.match(regexSlideSourceId);
|
|
2094
2095
|
if (!match)
|
|
2095
2096
|
return code;
|
|
@@ -2103,7 +2104,7 @@ async function createMarkdownPlugin(options, { markdown: mdOptions }) {
|
|
|
2103
2104
|
for (const transformer of transformers) {
|
|
2104
2105
|
if (!transformer)
|
|
2105
2106
|
continue;
|
|
2106
|
-
transformer(ctx);
|
|
2107
|
+
await transformer(ctx);
|
|
2107
2108
|
if (!ctx.s.isEmpty())
|
|
2108
2109
|
ctx.s.commit();
|
|
2109
2110
|
}
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZZDNBP5E.js";
|
|
4
4
|
import {
|
|
5
5
|
getThemeMeta,
|
|
6
6
|
loadSetups,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveOptions,
|
|
10
10
|
resolveTheme,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3A4H5O5K.js";
|
|
13
13
|
import {
|
|
14
14
|
getRoots,
|
|
15
15
|
isInstalledGlobally,
|
|
@@ -332,7 +332,7 @@ cli.command(
|
|
|
332
332
|
}).strict().help(),
|
|
333
333
|
async (args) => {
|
|
334
334
|
const { entry, theme, base, download, out, inspect } = args;
|
|
335
|
-
const { build } = await import("./build-
|
|
335
|
+
const { build } = await import("./build-6ISJRAZE.js");
|
|
336
336
|
for (const entryFile of entry) {
|
|
337
337
|
const options = await resolveOptions({ entry: entryFile, theme, inspect, download }, "build");
|
|
338
338
|
printInfo(options);
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZZDNBP5E.js";
|
|
4
4
|
import {
|
|
5
5
|
ViteSlidevPlugin,
|
|
6
6
|
createDataUtils,
|
|
7
7
|
parser,
|
|
8
8
|
resolveOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3A4H5O5K.js";
|
|
10
10
|
import "./chunk-UNQ5DBLZ.js";
|
|
11
11
|
export {
|
|
12
12
|
ViteSlidevPlugin,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "51.0.
|
|
4
|
+
"version": "51.0.2",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@antfu/ni": "^23.2.0",
|
|
46
|
-
"@antfu/utils": "^8.
|
|
46
|
+
"@antfu/utils": "^8.1.0",
|
|
47
47
|
"@iconify-json/carbon": "^1.2.5",
|
|
48
48
|
"@iconify-json/ph": "^1.2.2",
|
|
49
49
|
"@iconify-json/svg-spinners": "^1.2.2",
|
|
50
50
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
51
|
-
"@shikijs/markdown-it": "^
|
|
52
|
-
"@shikijs/twoslash": "^
|
|
53
|
-
"@shikijs/vitepress-twoslash": "^
|
|
54
|
-
"@unocss/extractor-mdc": "^
|
|
55
|
-
"@unocss/reset": "^
|
|
51
|
+
"@shikijs/markdown-it": "^2.0.0",
|
|
52
|
+
"@shikijs/twoslash": "^2.0.0",
|
|
53
|
+
"@shikijs/vitepress-twoslash": "^2.0.0",
|
|
54
|
+
"@unocss/extractor-mdc": "^65.4.2",
|
|
55
|
+
"@unocss/reset": "^65.4.2",
|
|
56
56
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
57
57
|
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
58
58
|
"chokidar": "^4.0.3",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"debug": "^4.4.0",
|
|
62
62
|
"fast-deep-equal": "^3.1.3",
|
|
63
63
|
"fast-glob": "^3.3.3",
|
|
64
|
-
"fs-extra": "^11.
|
|
64
|
+
"fs-extra": "^11.3.0",
|
|
65
65
|
"get-port-please": "^3.1.2",
|
|
66
66
|
"global-directory": "^4.0.1",
|
|
67
67
|
"htmlparser2": "^10.0.0",
|
|
68
68
|
"is-installed-globally": "^1.0.0",
|
|
69
69
|
"jiti": "^2.4.2",
|
|
70
|
-
"katex": "^0.16.
|
|
70
|
+
"katex": "^0.16.21",
|
|
71
71
|
"kolorist": "^1.8.0",
|
|
72
|
-
"local-pkg": "^0.
|
|
72
|
+
"local-pkg": "^1.0.0",
|
|
73
73
|
"lz-string": "^1.5.0",
|
|
74
74
|
"magic-string": "^0.30.17",
|
|
75
75
|
"magic-string-stack": "^0.1.1",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"markdown-it-footnote": "^4.0.0",
|
|
78
78
|
"markdown-it-mdc": "^0.2.5",
|
|
79
79
|
"micromatch": "^4.0.8",
|
|
80
|
-
"mlly": "^1.7.
|
|
80
|
+
"mlly": "^1.7.4",
|
|
81
81
|
"monaco-editor": "0.51.0",
|
|
82
82
|
"open": "^10.1.0",
|
|
83
83
|
"pdf-lib": "^1.17.1",
|
|
@@ -89,19 +89,19 @@
|
|
|
89
89
|
"resolve-from": "^5.0.0",
|
|
90
90
|
"resolve-global": "^2.0.0",
|
|
91
91
|
"semver": "^7.6.3",
|
|
92
|
-
"shiki": "^
|
|
92
|
+
"shiki": "^2.0.0",
|
|
93
93
|
"shiki-magic-move": "^0.5.2",
|
|
94
94
|
"sirv": "^3.0.0",
|
|
95
95
|
"source-map-js": "^1.2.1",
|
|
96
96
|
"typescript": "^5.7.3",
|
|
97
|
-
"unocss": "^
|
|
97
|
+
"unocss": "^65.4.2",
|
|
98
98
|
"unplugin-icons": "^22.0.0",
|
|
99
99
|
"unplugin-vue-components": "^28.0.0",
|
|
100
|
-
"unplugin-vue-markdown": "^28.
|
|
100
|
+
"unplugin-vue-markdown": "^28.1.0",
|
|
101
101
|
"untun": "^0.1.3",
|
|
102
102
|
"uqr": "^0.1.2",
|
|
103
|
-
"vite": "^6.0.
|
|
104
|
-
"vite-plugin-inspect": "^0.
|
|
103
|
+
"vite": "^6.0.8",
|
|
104
|
+
"vite-plugin-inspect": "^10.0.7",
|
|
105
105
|
"vite-plugin-remote-assets": "^0.6.0",
|
|
106
106
|
"vite-plugin-static-copy": "^2.2.0",
|
|
107
107
|
"vite-plugin-vue-server-ref": "^0.4.2",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"vue": "^3.5.13",
|
|
110
110
|
"yaml": "^2.7.0",
|
|
111
111
|
"yargs": "^17.7.2",
|
|
112
|
-
"@slidev/client": "51.0.
|
|
113
|
-
"@slidev/parser": "51.0.
|
|
114
|
-
"@slidev/types": "51.0.
|
|
112
|
+
"@slidev/client": "51.0.2",
|
|
113
|
+
"@slidev/parser": "51.0.2",
|
|
114
|
+
"@slidev/types": "51.0.2"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|