@slidev/types 0.30.2 → 0.30.3
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.ts +23 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,37 +14,41 @@ interface SlidevConfig {
|
|
|
14
14
|
* String template to compose title
|
|
15
15
|
*
|
|
16
16
|
* @example "%s - Slidev" - to suffix " - Slidev" to all pages
|
|
17
|
-
* @
|
|
17
|
+
* @default '%s - Slidev'
|
|
18
18
|
*/
|
|
19
19
|
titleTemplate: string;
|
|
20
20
|
/**
|
|
21
|
+
* Theme to use for the slides
|
|
22
|
+
*
|
|
21
23
|
* @see https://sli.dev/themes/use.html
|
|
22
|
-
* @
|
|
24
|
+
* @default 'default'
|
|
23
25
|
*/
|
|
24
26
|
theme: string;
|
|
25
27
|
/**
|
|
26
|
-
*
|
|
28
|
+
* Download remote assets in local using vite-plugin-remote-assets
|
|
29
|
+
*
|
|
30
|
+
* @default true
|
|
27
31
|
*/
|
|
28
32
|
remoteAssets: boolean | 'dev' | 'build';
|
|
29
33
|
/**
|
|
30
34
|
* Enable Monaco
|
|
31
35
|
*
|
|
32
36
|
* @see https://sli.dev/custom/config-monaco.html
|
|
33
|
-
* @
|
|
37
|
+
* @default 'dev'
|
|
34
38
|
*/
|
|
35
39
|
monaco: boolean | 'dev' | 'build';
|
|
36
40
|
/**
|
|
37
41
|
* Show a download button in the SPA build,
|
|
38
42
|
* could also be a link to custom pdf
|
|
39
43
|
*
|
|
40
|
-
* @default
|
|
44
|
+
* @default false
|
|
41
45
|
*/
|
|
42
46
|
download: boolean | string;
|
|
43
47
|
/**
|
|
44
48
|
* Information shows on the built SPA
|
|
45
49
|
* Can be a markdown string
|
|
46
50
|
*
|
|
47
|
-
* @default
|
|
51
|
+
* @default false
|
|
48
52
|
*/
|
|
49
53
|
info: string | boolean;
|
|
50
54
|
/**
|
|
@@ -69,7 +73,7 @@ interface SlidevConfig {
|
|
|
69
73
|
/**
|
|
70
74
|
* Router mode for vue-router
|
|
71
75
|
*
|
|
72
|
-
* @default '
|
|
76
|
+
* @default 'history'
|
|
73
77
|
*/
|
|
74
78
|
routerMode: 'hash' | 'history';
|
|
75
79
|
/**
|
|
@@ -89,12 +93,14 @@ interface SlidevConfig {
|
|
|
89
93
|
/**
|
|
90
94
|
* Force the filename used when exporting the presentation.
|
|
91
95
|
* The extension, e.g. .pdf, gets automatically added.
|
|
96
|
+
*
|
|
97
|
+
* @default ''
|
|
92
98
|
*/
|
|
93
99
|
exportFilename: string | null;
|
|
94
100
|
/**
|
|
95
101
|
* Controls whether texts in slides are selectable
|
|
96
102
|
*
|
|
97
|
-
* @default
|
|
103
|
+
* @default true
|
|
98
104
|
*/
|
|
99
105
|
selectable: boolean;
|
|
100
106
|
/**
|
|
@@ -121,6 +127,8 @@ interface SlidevConfig {
|
|
|
121
127
|
favicon: string;
|
|
122
128
|
/**
|
|
123
129
|
* Options for drawings
|
|
130
|
+
*
|
|
131
|
+
* @default {}
|
|
124
132
|
*/
|
|
125
133
|
drawings: ResolvedDrawingsOptions;
|
|
126
134
|
/**
|
|
@@ -129,6 +137,12 @@ interface SlidevConfig {
|
|
|
129
137
|
* @default https://www.plantuml.com/plantuml
|
|
130
138
|
*/
|
|
131
139
|
plantUmlServer: string;
|
|
140
|
+
/**
|
|
141
|
+
* Enable slides recording
|
|
142
|
+
*
|
|
143
|
+
* @default 'dev'
|
|
144
|
+
*/
|
|
145
|
+
record: boolean | 'dev' | 'build';
|
|
132
146
|
}
|
|
133
147
|
interface FontOptions {
|
|
134
148
|
/**
|
|
@@ -187,7 +201,7 @@ interface DrawingsOptions {
|
|
|
187
201
|
*/
|
|
188
202
|
persist?: boolean | string;
|
|
189
203
|
/**
|
|
190
|
-
* @
|
|
204
|
+
* @default true
|
|
191
205
|
*/
|
|
192
206
|
enabled?: boolean | 'dev' | 'build';
|
|
193
207
|
/**
|