@slidev/cli 0.44.0 → 0.45.0
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.
- package/dist/{build-33WYS4TI.mjs → build-LX2GXXQG.mjs} +3 -3
- package/dist/{chunk-BG3X5KM2.mjs → chunk-G3XS4CNO.mjs} +23 -17
- package/dist/{chunk-WSLI6C3D.mjs → chunk-VHBBQ77F.mjs} +10 -9
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +11 -6
- package/dist/{export-LYIOCUF2.mjs → export-T7HYPK5J.mjs} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{unocss-BTVZWCXM.mjs → unocss-GHP27KVT.mjs} +1 -1
- package/dist/{windicss-MS4GFOSZ.mjs → windicss-SDUK26CZ.mjs} +1 -1
- package/package.json +25 -25
- package/template.md +1 -1
- /package/dist/{chunk-65ITIFTL.mjs → chunk-BXO7ZPPU.mjs} +0 -0
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
getIndexHtml,
|
|
4
4
|
mergeViteConfigs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VHBBQ77F.mjs";
|
|
6
6
|
import "./chunk-CYLMMBRG.mjs";
|
|
7
7
|
import "./chunk-5L3XKTHL.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-BXO7ZPPU.mjs";
|
|
9
9
|
|
|
10
10
|
// node/build.ts
|
|
11
11
|
import { join as join3, resolve as resolve3 } from "node:path";
|
|
@@ -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-
|
|
725
|
+
const { exportSlides, getExportOptions } = await import("./export-T7HYPK5J.mjs");
|
|
726
726
|
const port = 12445;
|
|
727
727
|
const app = connect();
|
|
728
728
|
const server = http.createServer(app);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
mergeViteConfigs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VHBBQ77F.mjs";
|
|
5
5
|
import {
|
|
6
6
|
packageExists,
|
|
7
7
|
resolveImportPath
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
__commonJS,
|
|
11
11
|
__toESM
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BXO7ZPPU.mjs";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/.pnpm/semver@7.5.4/node_modules/semver/internal/constants.js
|
|
15
15
|
var require_constants = __commonJS({
|
|
@@ -2500,6 +2500,7 @@ async function createServer(options2, viteConfig = {}, serverOptions = {}) {
|
|
|
2500
2500
|
options2,
|
|
2501
2501
|
viteConfig,
|
|
2502
2502
|
{
|
|
2503
|
+
root: options2.userRoot,
|
|
2503
2504
|
optimizeDeps: {
|
|
2504
2505
|
entries: [
|
|
2505
2506
|
join(options2.clientRoot, "main.ts")
|
|
@@ -2519,12 +2520,12 @@ async function createServer(options2, viteConfig = {}, serverOptions = {}) {
|
|
|
2519
2520
|
import * as parser from "@slidev/parser/fs";
|
|
2520
2521
|
|
|
2521
2522
|
// package.json
|
|
2522
|
-
var version = "0.
|
|
2523
|
+
var version = "0.45.0";
|
|
2523
2524
|
|
|
2524
2525
|
// node/themes.ts
|
|
2525
2526
|
import prompts2 from "prompts";
|
|
2526
2527
|
|
|
2527
|
-
// ../../node_modules/.pnpm/@antfu+ni@0.21.
|
|
2528
|
+
// ../../node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/dist/shared/ni.f699cf8a.mjs
|
|
2528
2529
|
import fs$1, { createWriteStream, createReadStream, promises, existsSync } from "node:fs";
|
|
2529
2530
|
import path$3, { join as join$1, dirname, resolve } from "node:path";
|
|
2530
2531
|
import process$2 from "node:process";
|
|
@@ -4480,8 +4481,8 @@ var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBu
|
|
|
4480
4481
|
]);
|
|
4481
4482
|
}
|
|
4482
4483
|
};
|
|
4483
|
-
var nativePromisePrototype = (
|
|
4484
|
-
})()
|
|
4484
|
+
var nativePromisePrototype = (async () => {
|
|
4485
|
+
})().constructor.prototype;
|
|
4485
4486
|
var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
4486
4487
|
property,
|
|
4487
4488
|
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
@@ -4806,12 +4807,12 @@ var typeMappings = {
|
|
|
4806
4807
|
file: "isFile"
|
|
4807
4808
|
};
|
|
4808
4809
|
function checkType(type) {
|
|
4809
|
-
if (type
|
|
4810
|
+
if (Object.hasOwnProperty.call(typeMappings, type)) {
|
|
4810
4811
|
return;
|
|
4811
4812
|
}
|
|
4812
4813
|
throw new Error(`Invalid type specified: ${type}`);
|
|
4813
4814
|
}
|
|
4814
|
-
var matchType = (type, stat) =>
|
|
4815
|
+
var matchType = (type, stat) => stat[typeMappings[type]]();
|
|
4815
4816
|
var toPath$1 = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
4816
4817
|
async function locatePath(paths, {
|
|
4817
4818
|
cwd = process$2.cwd(),
|
|
@@ -7611,14 +7612,16 @@ async function detect({ autoInstall, programmatic, cwd } = {}) {
|
|
|
7611
7612
|
if (typeof pkg.packageManager === "string") {
|
|
7612
7613
|
const [name, ver] = pkg.packageManager.replace(/^\^/, "").split("@");
|
|
7613
7614
|
version3 = ver;
|
|
7614
|
-
if (name === "yarn" && Number.parseInt(ver) > 1)
|
|
7615
|
+
if (name === "yarn" && Number.parseInt(ver) > 1) {
|
|
7615
7616
|
agent = "yarn@berry";
|
|
7616
|
-
|
|
7617
|
+
version3 = "berry";
|
|
7618
|
+
} else if (name === "pnpm" && Number.parseInt(ver) < 7) {
|
|
7617
7619
|
agent = "pnpm@6";
|
|
7618
|
-
else if (name in AGENTS)
|
|
7620
|
+
} else if (name in AGENTS) {
|
|
7619
7621
|
agent = name;
|
|
7620
|
-
else if (!programmatic)
|
|
7622
|
+
} else if (!programmatic) {
|
|
7621
7623
|
console.warn("[ni] Unknown packageManager:", pkg.packageManager);
|
|
7624
|
+
}
|
|
7622
7625
|
}
|
|
7623
7626
|
} catch {
|
|
7624
7627
|
}
|
|
@@ -7640,7 +7643,7 @@ async function detect({ autoInstall, programmatic, cwd } = {}) {
|
|
|
7640
7643
|
if (!tryInstall)
|
|
7641
7644
|
process$2.exit(1);
|
|
7642
7645
|
}
|
|
7643
|
-
await execaCommand(`npm i -g ${agent}${version3 ? `@${version3}` : ""}`, { stdio: "inherit", cwd });
|
|
7646
|
+
await execaCommand(`npm i -g ${agent.split("@")[0]}${version3 ? `@${version3}` : ""}`, { stdio: "inherit", cwd });
|
|
7644
7647
|
}
|
|
7645
7648
|
return agent;
|
|
7646
7649
|
}
|
|
@@ -7655,11 +7658,14 @@ var defaultConfig = {
|
|
|
7655
7658
|
var config;
|
|
7656
7659
|
async function getConfig() {
|
|
7657
7660
|
if (!config) {
|
|
7661
|
+
config = Object.assign(
|
|
7662
|
+
{},
|
|
7663
|
+
defaultConfig,
|
|
7664
|
+
fs$1.existsSync(rcPath) ? ini$1.parse(fs$1.readFileSync(rcPath, "utf-8")) : null
|
|
7665
|
+
);
|
|
7658
7666
|
const agent = await detect({ programmatic: true });
|
|
7659
7667
|
if (agent)
|
|
7660
|
-
config =
|
|
7661
|
-
else
|
|
7662
|
-
config = Object.assign({}, defaultConfig, ini$1.parse(fs$1.readFileSync(rcPath, "utf-8")));
|
|
7668
|
+
config.defaultAgent = agent;
|
|
7663
7669
|
}
|
|
7664
7670
|
return config;
|
|
7665
7671
|
}
|
|
@@ -7801,7 +7807,7 @@ function init(open, close) {
|
|
|
7801
7807
|
return txt === void 0 ? chain([open], [blk]) : $.enabled ? run$1([blk], txt + "") : txt + "";
|
|
7802
7808
|
};
|
|
7803
7809
|
}
|
|
7804
|
-
var version2 = "0.21.
|
|
7810
|
+
var version2 = "0.21.12";
|
|
7805
7811
|
var DEBUG_SIGN = "?";
|
|
7806
7812
|
async function getCliCommand(fn, args, options2 = {}, cwd = options2.cwd ?? process$2.cwd()) {
|
|
7807
7813
|
const isGlobal = args.includes("-g");
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
__commonJS,
|
|
13
13
|
__toESM
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BXO7ZPPU.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({
|
|
@@ -185,8 +185,8 @@ var dependencies = {
|
|
|
185
185
|
"@antfu/utils": "^0.7.6",
|
|
186
186
|
"@slidev/parser": "workspace:*",
|
|
187
187
|
"@slidev/types": "workspace:*",
|
|
188
|
-
"@unhead/vue": "^1.8.
|
|
189
|
-
"@unocss/reset": "^0.
|
|
188
|
+
"@unhead/vue": "^1.8.8",
|
|
189
|
+
"@unocss/reset": "^0.58.0",
|
|
190
190
|
"@vueuse/core": "^10.6.1",
|
|
191
191
|
"@vueuse/math": "^10.6.1",
|
|
192
192
|
"@vueuse/motion": "^2.0.0",
|
|
@@ -200,13 +200,13 @@ var dependencies = {
|
|
|
200
200
|
katex: "^0.16.9",
|
|
201
201
|
mermaid: "^10.6.1",
|
|
202
202
|
"monaco-editor": "^0.37.1",
|
|
203
|
-
nanoid: "^5.0.
|
|
203
|
+
nanoid: "^5.0.4",
|
|
204
204
|
prettier: "^3.1.0",
|
|
205
205
|
recordrtc: "^5.6.2",
|
|
206
206
|
resolve: "^1.22.8",
|
|
207
|
-
unocss: "^0.
|
|
208
|
-
"vite-plugin-windicss": "^1.9.
|
|
209
|
-
vue: "^3.3.
|
|
207
|
+
unocss: "^0.58.0",
|
|
208
|
+
"vite-plugin-windicss": "^1.9.2",
|
|
209
|
+
vue: "^3.3.9",
|
|
210
210
|
"vue-router": "^4.2.5",
|
|
211
211
|
"vue-starport": "^0.4.0",
|
|
212
212
|
windicss: "^3.5.6"
|
|
@@ -1632,7 +1632,8 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
|
|
|
1632
1632
|
...themeRoots.map((i) => join8(i, "components")),
|
|
1633
1633
|
...addonRoots.map((i) => join8(i, "components")),
|
|
1634
1634
|
"src/components",
|
|
1635
|
-
"components"
|
|
1635
|
+
"components",
|
|
1636
|
+
join8(process3.cwd(), "components")
|
|
1636
1637
|
],
|
|
1637
1638
|
include: [/\.vue$/, /\.vue\?vue/, /\.vue\?v=/, /\.md$/],
|
|
1638
1639
|
exclude: [],
|
|
@@ -1696,7 +1697,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
|
|
|
1696
1697
|
dev: true,
|
|
1697
1698
|
build: true
|
|
1698
1699
|
})) : null,
|
|
1699
|
-
config.css === "none" ? null : config.css === "windicss" ? import("./windicss-
|
|
1700
|
+
config.css === "none" ? null : config.css === "windicss" ? import("./windicss-SDUK26CZ.mjs").then((r) => r.createWindiCSSPlugin(options, pluginOptions)) : import("./unocss-GHP27KVT.mjs").then((r) => r.createUnocssPlugin(options, pluginOptions))
|
|
1700
1701
|
];
|
|
1701
1702
|
return (await Promise.all(plugins)).flat().filter(notNullish2);
|
|
1702
1703
|
}
|
package/dist/cli.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { }
|
package/dist/cli.mjs
CHANGED
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
resolveOptions,
|
|
10
10
|
resolveThemeName,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G3XS4CNO.mjs";
|
|
13
13
|
import {
|
|
14
14
|
require_fast_deep_equal
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VHBBQ77F.mjs";
|
|
16
16
|
import {
|
|
17
17
|
loadSetups
|
|
18
18
|
} from "./chunk-CYLMMBRG.mjs";
|
|
19
19
|
import "./chunk-5L3XKTHL.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BXO7ZPPU.mjs";
|
|
23
23
|
|
|
24
24
|
// node/cli.ts
|
|
25
25
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
|
@@ -125,6 +125,11 @@ cli.command(
|
|
|
125
125
|
strictPort: true,
|
|
126
126
|
open,
|
|
127
127
|
host: remote !== void 0 ? "0.0.0.0" : "localhost",
|
|
128
|
+
// @ts-expect-error Vite <= 4
|
|
129
|
+
force
|
|
130
|
+
},
|
|
131
|
+
optimizeDeps: {
|
|
132
|
+
// Vite 5
|
|
128
133
|
force
|
|
129
134
|
},
|
|
130
135
|
logLevel: log
|
|
@@ -268,7 +273,7 @@ cli.command(
|
|
|
268
273
|
}).strict().help(),
|
|
269
274
|
async (args) => {
|
|
270
275
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
271
|
-
const { build } = await import("./build-
|
|
276
|
+
const { build } = await import("./build-LX2GXXQG.mjs");
|
|
272
277
|
for (const entryFile of entry) {
|
|
273
278
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
274
279
|
if (download && !options.data.config.download)
|
|
@@ -347,7 +352,7 @@ cli.command(
|
|
|
347
352
|
async (args) => {
|
|
348
353
|
const { entry, theme } = args;
|
|
349
354
|
process.env.NODE_ENV = "production";
|
|
350
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
355
|
+
const { exportSlides, getExportOptions } = await import("./export-T7HYPK5J.mjs");
|
|
351
356
|
const port = await findFreePort(12445);
|
|
352
357
|
for (const entryFile of entry) {
|
|
353
358
|
const options = await resolveOptions({ entry: entryFile, theme }, "export");
|
|
@@ -393,7 +398,7 @@ cli.command(
|
|
|
393
398
|
timeout
|
|
394
399
|
}) => {
|
|
395
400
|
process.env.NODE_ENV = "production";
|
|
396
|
-
const { exportNotes } = await import("./export-
|
|
401
|
+
const { exportNotes } = await import("./export-T7HYPK5J.mjs");
|
|
397
402
|
const port = await findFreePort(12445);
|
|
398
403
|
for (const entryFile of entry) {
|
|
399
404
|
const options = await resolveOptions({ entry: entryFile }, "export");
|
package/dist/index.d.mts
CHANGED
|
@@ -95,6 +95,6 @@ declare function createServer(options: ResolvedSlidevOptions, viteConfig?: Inlin
|
|
|
95
95
|
|
|
96
96
|
declare function ViteSlidevPlugin(options: ResolvedSlidevOptions, pluginOptions: SlidevPluginOptions, serverOptions?: SlidevServerOptions): Promise<Plugin[]>;
|
|
97
97
|
|
|
98
|
-
declare function createWindiCSSPlugin({ themeRoots, addonRoots, clientRoot, userRoot, roots, data }: ResolvedSlidevOptions, { windicss: windiOptions }: SlidevPluginOptions): Promise<vite.Plugin[]>;
|
|
98
|
+
declare function createWindiCSSPlugin({ themeRoots, addonRoots, clientRoot, userRoot, roots, data }: ResolvedSlidevOptions, { windicss: windiOptions }: SlidevPluginOptions): Promise<vite.Plugin<any>[]>;
|
|
99
99
|
|
|
100
|
-
export { ResolvedSlidevOptions, SlidevEntryOptions, SlidevPluginOptions, SlidevServerOptions, ViteSlidevPlugin, createServer, createWindiCSSPlugin, getAddonRoots, getCLIRoot, getClientRoot, getRoot, getThemeRoots, getUserRoot, isPath, resolveOptions };
|
|
100
|
+
export { type ResolvedSlidevOptions, type SlidevEntryOptions, type SlidevPluginOptions, type SlidevServerOptions, ViteSlidevPlugin, createServer, createWindiCSSPlugin, getAddonRoots, getCLIRoot, getClientRoot, getRoot, getThemeRoots, getUserRoot, isPath, resolveOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
isPath,
|
|
10
10
|
parser,
|
|
11
11
|
resolveOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G3XS4CNO.mjs";
|
|
13
13
|
import {
|
|
14
14
|
createWindiCSSPlugin
|
|
15
15
|
} from "./chunk-A7WCFT3T.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ViteSlidevPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VHBBQ77F.mjs";
|
|
19
19
|
import "./chunk-CYLMMBRG.mjs";
|
|
20
20
|
import "./chunk-5L3XKTHL.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-BXO7ZPPU.mjs";
|
|
22
22
|
export {
|
|
23
23
|
ViteSlidevPlugin,
|
|
24
24
|
createServer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,21 +44,21 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@antfu/utils": "^0.7.6",
|
|
46
46
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|
|
47
|
-
"@iconify-json/carbon": "^1.1.
|
|
48
|
-
"@iconify-json/ph": "^1.1.
|
|
47
|
+
"@iconify-json/carbon": "^1.1.24",
|
|
48
|
+
"@iconify-json/ph": "^1.1.8",
|
|
49
49
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
50
50
|
"@mrdrogdrog/optional": "^1.2.1",
|
|
51
|
-
"@unocss/extractor-mdc": "^0.
|
|
52
|
-
"@unocss/reset": "^0.
|
|
53
|
-
"@vitejs/plugin-vue": "^4.
|
|
54
|
-
"@vitejs/plugin-vue-jsx": "^3.0
|
|
55
|
-
"@windicss/config": "^1.9.
|
|
51
|
+
"@unocss/extractor-mdc": "^0.58.0",
|
|
52
|
+
"@unocss/reset": "^0.58.0",
|
|
53
|
+
"@vitejs/plugin-vue": "^4.5.1",
|
|
54
|
+
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
55
|
+
"@windicss/config": "^1.9.2",
|
|
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
60
|
"fast-glob": "^3.3.2",
|
|
61
|
-
"fs-extra": "^11.
|
|
61
|
+
"fs-extra": "^11.2.0",
|
|
62
62
|
"get-port-please": "^3.1.1",
|
|
63
63
|
"global-directory": "^4.0.1",
|
|
64
64
|
"htmlparser2": "^9.0.0",
|
|
@@ -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.
|
|
77
|
+
"nanoid": "^5.0.4",
|
|
78
78
|
"open": "^9.1.0",
|
|
79
79
|
"pdf-lib": "^1.17.1",
|
|
80
80
|
"plantuml-encoder": "^1.4.0",
|
|
@@ -85,25 +85,25 @@
|
|
|
85
85
|
"resolve": "^1.22.8",
|
|
86
86
|
"resolve-from": "^5.0.0",
|
|
87
87
|
"resolve-global": "^2.0.0",
|
|
88
|
-
"shiki": "npm:shikiji-compat@^0.6
|
|
89
|
-
"unocss": "^0.
|
|
90
|
-
"unplugin-icons": "^0.
|
|
91
|
-
"unplugin-vue-components": "^0.
|
|
92
|
-
"unplugin-vue-markdown": "^0.25.
|
|
88
|
+
"shiki": "npm:shikiji-compat@^0.7.6",
|
|
89
|
+
"unocss": "^0.58.0",
|
|
90
|
+
"unplugin-icons": "^0.18.1",
|
|
91
|
+
"unplugin-vue-components": "^0.26.0",
|
|
92
|
+
"unplugin-vue-markdown": "^0.25.2",
|
|
93
93
|
"uqr": "^0.1.2",
|
|
94
|
-
"vite": "^
|
|
95
|
-
"vite-plugin-inspect": "^0.
|
|
96
|
-
"vite-plugin-remote-assets": "^0.
|
|
97
|
-
"vite-plugin-static-copy": "^0.
|
|
98
|
-
"vite-plugin-vue-server-ref": "^0.
|
|
99
|
-
"vite-plugin-windicss": "^1.9.
|
|
94
|
+
"vite": "^5.0.5",
|
|
95
|
+
"vite-plugin-inspect": "^0.8.1",
|
|
96
|
+
"vite-plugin-remote-assets": "^0.4.0",
|
|
97
|
+
"vite-plugin-static-copy": "^1.0.0",
|
|
98
|
+
"vite-plugin-vue-server-ref": "^0.4.0",
|
|
99
|
+
"vite-plugin-windicss": "^1.9.2",
|
|
100
100
|
"vitefu": "^0.2.5",
|
|
101
|
-
"vue": "^3.3.
|
|
101
|
+
"vue": "^3.3.9",
|
|
102
102
|
"windicss": "^3.5.6",
|
|
103
103
|
"yargs": "^17.7.2",
|
|
104
|
-
"@slidev/client": "0.
|
|
105
|
-
"@slidev/parser": "0.
|
|
106
|
-
"@slidev/types": "0.
|
|
104
|
+
"@slidev/client": "0.45.0",
|
|
105
|
+
"@slidev/parser": "0.45.0",
|
|
106
|
+
"@slidev/types": "0.45.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@types/plantuml-encoder": "^1.4.2",
|
package/template.md
CHANGED
|
@@ -164,7 +164,7 @@ class: px-20
|
|
|
164
164
|
|
|
165
165
|
Slidev comes with powerful theming support. Themes are able to provide styles, layouts, components, or even configurations for tools. Switching between themes by just **one edit** in your frontmatter:
|
|
166
166
|
|
|
167
|
-
<div grid="~ cols-2 gap-2" m="
|
|
167
|
+
<div grid="~ cols-2 gap-2" m="t-2">
|
|
168
168
|
|
|
169
169
|
```yaml
|
|
170
170
|
---
|
|
File without changes
|