@slidev/cli 52.20.0 → 53.0.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/README.md CHANGED
@@ -62,7 +62,7 @@ Presentation <b>slide</b>s for <b>dev</b>elopers 🧑‍💻👩‍💻👨‍
62
62
 
63
63
  ### Init Project Locally
64
64
 
65
- Install [Node.js >= 20.12.0](https://nodejs.org/) and run the following command:
65
+ Install [Node.js >= 22.12.0](https://nodejs.org/) and run the following command:
66
66
 
67
67
  ```bash
68
68
  npm init slidev
@@ -1,4 +1,4 @@
1
- import { n as resolveViteConfigs } from "./serve-BRH-KJ3L.mjs";
1
+ import { n as resolveViteConfigs } from "./serve-DzvJFv6v.mjs";
2
2
  import { join, resolve } from "pathe";
3
3
  import { build as build$1 } from "vite";
4
4
  import { existsSync } from "node:fs";
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-BRH-KJ3L.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-DzvJFv6v.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-BrwsAFCa.mjs");
314
+ const { build } = await import("./build-DasIcfzi.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-B5Rvh_az.mjs");
343
+ const { startMcpStdioServer } = await import("./stdio-BcdFsXyc.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-BRH-KJ3L.mjs";
1
+ import { a as createDataUtils, o as resolveOptions, r as ViteSlidevPlugin, s as parser, t as createServer } from "./serve-DzvJFv6v.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.0";
725
+ var version = "53.0.0";
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-BRH-KJ3L.mjs";
2
+ import { i as createSlidevMcpServer, s as parser, u as version } from "./serve-DzvJFv6v.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.0",
4
+ "version": "53.0.0",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "template.md"
33
33
  ],
34
34
  "engines": {
35
- "node": ">=20.12.0"
35
+ "node": ">=22.12.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "playwright-chromium": "^1.10.0",
@@ -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.0",
64
- "@slidev/parser": "52.20.0",
65
- "@slidev/types": "52.20.0",
63
+ "@slidev/client": "53.0.0",
64
+ "@slidev/parser": "53.0.0",
65
+ "@slidev/types": "53.0.0",
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