@slidev/cli 52.20.0 → 52.20.1
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-BrwsAFCa.mjs → build-BUQLxoIx.mjs} +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/index.mjs +1 -1
- package/dist/{serve-BRH-KJ3L.mjs → serve-Be4VBJJX.mjs} +1 -1
- package/dist/{stdio-B5Rvh_az.mjs → stdio-SXW6hFKc.mjs} +1 -1
- package/package.json +4 -4
- package/skills/slidev/references/code-magic-move.md +13 -0
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as isInstalledGlobally, o as resolveEntry } from "./resolver-BIhhHpe7.mjs";
|
|
2
|
-
import { c as getThemeMeta, d as loadSetups, f as updateFrontmatterPatch, l as resolveTheme, o as resolveOptions, s as parser, t as createServer, u as version } from "./serve-
|
|
2
|
+
import { c as getThemeMeta, d as loadSetups, f as updateFrontmatterPatch, l as resolveTheme, o as resolveOptions, s as parser, t as createServer, u as version } from "./serve-Be4VBJJX.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
@@ -311,7 +311,7 @@ cli.command("build [entry..]", "Build hostable SPA", (args) => exportOptions(com
|
|
|
311
311
|
describe: "enable the inspect plugin for debugging"
|
|
312
312
|
}).strict().help(), async (args) => {
|
|
313
313
|
const { entry, theme, base, download, out, inspect, "without-notes": withoutNotes, "router-mode": routerMode } = args;
|
|
314
|
-
const { build } = await import("./build-
|
|
314
|
+
const { build } = await import("./build-BUQLxoIx.mjs");
|
|
315
315
|
for (const entryFile of entry) {
|
|
316
316
|
const options = await resolveOptions({
|
|
317
317
|
entry: entryFile,
|
|
@@ -340,7 +340,7 @@ cli.command("format [entry..]", "Format the markdown file", (args) => commonOpti
|
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
342
|
cli.command("mcp [entry]", "Start an MCP (Model Context Protocol) server over stdio for AI agents to inspect and edit the slides", (args) => commonOptions(args).strict().help(), async ({ entry }) => {
|
|
343
|
-
const { startMcpStdioServer } = await import("./stdio-
|
|
343
|
+
const { startMcpStdioServer } = await import("./stdio-SXW6hFKc.mjs");
|
|
344
344
|
await startMcpStdioServer(await resolveEntry(entry));
|
|
345
345
|
});
|
|
346
346
|
cli.command("theme [subcommand]", "Theme related operations", (command) => {
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createDataUtils, o as resolveOptions, r as ViteSlidevPlugin, s as parser, t as createServer } from "./serve-
|
|
1
|
+
import { a as createDataUtils, o as resolveOptions, r as ViteSlidevPlugin, s as parser, t as createServer } from "./serve-Be4VBJJX.mjs";
|
|
2
2
|
export { ViteSlidevPlugin, createDataUtils, createServer, parser, resolveOptions };
|
|
@@ -722,7 +722,7 @@ function createLayoutWrapperPlugin({ data, utils }) {
|
|
|
722
722
|
}
|
|
723
723
|
//#endregion
|
|
724
724
|
//#region package.json
|
|
725
|
-
var version = "52.20.
|
|
725
|
+
var version = "52.20.1";
|
|
726
726
|
//#endregion
|
|
727
727
|
//#region node/integrations/addons.ts
|
|
728
728
|
async function resolveAddons(addonsInConfig) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as getRoots } from "./resolver-BIhhHpe7.mjs";
|
|
2
|
-
import { i as createSlidevMcpServer, s as parser, u as version } from "./serve-
|
|
2
|
+
import { i as createSlidevMcpServer, s as parser, u as version } from "./serve-Be4VBJJX.mjs";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";
|
|
4
4
|
//#region node/mcp/stdio.ts
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "52.20.
|
|
4
|
+
"version": "52.20.1",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@shikijs/markdown-it": "^4.4.3",
|
|
61
61
|
"@shikijs/twoslash": "^4.4.3",
|
|
62
62
|
"@shikijs/vitepress-twoslash": "^4.4.3",
|
|
63
|
-
"@slidev/client": "52.20.
|
|
64
|
-
"@slidev/parser": "52.20.
|
|
65
|
-
"@slidev/types": "52.20.
|
|
63
|
+
"@slidev/client": "52.20.1",
|
|
64
|
+
"@slidev/parser": "52.20.1",
|
|
65
|
+
"@slidev/types": "52.20.1",
|
|
66
66
|
"@unocss/extractor-mdc": "^66.10.4",
|
|
67
67
|
"@unocss/reset": "^66.10.4",
|
|
68
68
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
@@ -45,6 +45,19 @@ const add = () => count += 1
|
|
|
45
45
|
````
|
|
46
46
|
`````
|
|
47
47
|
|
|
48
|
+
## Animation Options
|
|
49
|
+
|
|
50
|
+
Customize duration globally with `magicMoveDuration` (ms, headmatter). Fine-tune easing, stagger, delays, and diffing behavior via `shiki.magicMove` (headmatter), which is passed through to [Shiki Magic Move](https://shiki.style/packages/magic-move#options):
|
|
51
|
+
|
|
52
|
+
```yaml
|
|
53
|
+
---
|
|
54
|
+
shiki:
|
|
55
|
+
magicMove:
|
|
56
|
+
easing: ease-in-out
|
|
57
|
+
stagger: 5
|
|
58
|
+
---
|
|
59
|
+
```
|
|
60
|
+
|
|
48
61
|
## How It Works
|
|
49
62
|
|
|
50
63
|
- Wraps multiple code blocks as one
|