@slidev/types 52.16.0 → 52.17.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/index.d.mts +19 -3
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -20,7 +20,6 @@ import { ViteInspectOptions } from "vite-plugin-inspect";
|
|
|
20
20
|
import RemoteAssets from "vite-plugin-remote-assets";
|
|
21
21
|
import { ViteStaticCopyOptions } from "vite-plugin-static-copy";
|
|
22
22
|
import ServerRef from "vite-plugin-vue-server-ref";
|
|
23
|
-
|
|
24
23
|
//#region src/cli.d.ts
|
|
25
24
|
interface CommonArgs {
|
|
26
25
|
entry: string;
|
|
@@ -402,9 +401,13 @@ interface HeadmatterConfig extends TransitionOptions {
|
|
|
402
401
|
/**
|
|
403
402
|
* Router mode for vue-router
|
|
404
403
|
*
|
|
404
|
+
* - `history`: the slide number is reflected in the URL path
|
|
405
|
+
* - `hash`: hash-based routing, for static hosts or subdirectory deploys
|
|
406
|
+
* - `memory`: routing is kept in memory, so the URL never reflects the slide number and cannot be used to navigate — useful for kiosk or externally driven "follower" decks (deep-links, `/presenter`, `/overview` and export-by-URL are unavailable)
|
|
407
|
+
*
|
|
405
408
|
* @default 'history'
|
|
406
409
|
*/
|
|
407
|
-
routerMode?: 'hash' | 'history';
|
|
410
|
+
routerMode?: 'hash' | 'history' | 'memory';
|
|
408
411
|
/**
|
|
409
412
|
* Aspect ratio for slides
|
|
410
413
|
* should be like `16/9` or `1:1`
|
|
@@ -518,6 +521,13 @@ interface HeadmatterConfig extends TransitionOptions {
|
|
|
518
521
|
* @default true
|
|
519
522
|
*/
|
|
520
523
|
editor?: boolean;
|
|
524
|
+
/**
|
|
525
|
+
* Enable the MCP (Model Context Protocol) server endpoint on the dev server,
|
|
526
|
+
* allowing AI agents to inspect and edit the slides
|
|
527
|
+
*
|
|
528
|
+
* @default true
|
|
529
|
+
*/
|
|
530
|
+
mcp?: boolean;
|
|
521
531
|
/**
|
|
522
532
|
* Enable context menu
|
|
523
533
|
*
|
|
@@ -528,6 +538,12 @@ interface HeadmatterConfig extends TransitionOptions {
|
|
|
528
538
|
* Enable wake lock
|
|
529
539
|
*/
|
|
530
540
|
wakeLock?: boolean | 'dev' | 'build';
|
|
541
|
+
/**
|
|
542
|
+
* Enable PWA support: a service worker precaches all deck assets on first
|
|
543
|
+
* load so a served deck works fully offline afterward. Heavy; opt-in.
|
|
544
|
+
* @default false
|
|
545
|
+
*/
|
|
546
|
+
pwa?: boolean | 'dev' | 'build';
|
|
531
547
|
/**
|
|
532
548
|
* Force the filename used when exporting the presentation.
|
|
533
549
|
* The extension, e.g. .pdf, gets automatically added.
|
|
@@ -944,7 +960,7 @@ interface SlidevEntryOptions {
|
|
|
944
960
|
/**
|
|
945
961
|
* Override routerMode at build time
|
|
946
962
|
*/
|
|
947
|
-
routerMode?: 'hash' | 'history';
|
|
963
|
+
routerMode?: 'hash' | 'history' | 'memory';
|
|
948
964
|
}
|
|
949
965
|
interface ResolvedSlidevOptions extends RootsInfo, SlidevEntryOptions {
|
|
950
966
|
data: SlidevData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "52.
|
|
3
|
+
"version": "52.17.1",
|
|
4
4
|
"description": "Shared types declarations for Slidev",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@antfu/utils": "^9.3.0",
|
|
27
|
-
"@shikijs/markdown-it": "^4.
|
|
27
|
+
"@shikijs/markdown-it": "^4.3.1",
|
|
28
28
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
29
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
29
|
+
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
30
30
|
"katex": "^0.17.0",
|
|
31
|
-
"mermaid": "^11.
|
|
31
|
+
"mermaid": "^11.16.0",
|
|
32
32
|
"monaco-editor": "^0.55.1",
|
|
33
|
-
"shiki": "^4.
|
|
34
|
-
"unocss": "^66.7.
|
|
33
|
+
"shiki": "^4.3.1",
|
|
34
|
+
"unocss": "^66.7.5",
|
|
35
35
|
"unplugin-icons": "^23.0.1",
|
|
36
36
|
"unplugin-vue-markdown": "^32.0.0",
|
|
37
37
|
"vite-plugin-inspect": "^11.4.1",
|
|
38
38
|
"vite-plugin-remote-assets": "^2.1.0",
|
|
39
|
-
"vite-plugin-static-copy": "^4.1.
|
|
39
|
+
"vite-plugin-static-copy": "^4.1.1",
|
|
40
40
|
"vite-plugin-vue-server-ref": "^1.0.0",
|
|
41
|
-
"vue": "^3.5.
|
|
41
|
+
"vue": "^3.5.39",
|
|
42
42
|
"vue-router": "^5.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|