@slidev/types 0.38.3 → 0.38.5
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 +24 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -172,6 +172,18 @@ interface SlidevConfig {
|
|
|
172
172
|
* @default 'windicss'
|
|
173
173
|
*/
|
|
174
174
|
css: 'windicss' | 'unocss';
|
|
175
|
+
/**
|
|
176
|
+
* Enable presenter mode
|
|
177
|
+
*
|
|
178
|
+
* @default true
|
|
179
|
+
*/
|
|
180
|
+
presenter: boolean | 'dev' | 'build';
|
|
181
|
+
/**
|
|
182
|
+
* Attributes to apply to the HTML element
|
|
183
|
+
*
|
|
184
|
+
* @default {}
|
|
185
|
+
*/
|
|
186
|
+
htmlAttrs: Record<string, string>;
|
|
175
187
|
}
|
|
176
188
|
interface FontOptions {
|
|
177
189
|
/**
|
|
@@ -378,4 +390,15 @@ declare function defineKatexSetup(fn: KatexSetup): KatexSetup;
|
|
|
378
390
|
declare function defineShortcutsSetup(fn: ShortcutsSetup): ShortcutsSetup;
|
|
379
391
|
declare function definePreparserSetup(fn: PreparserSetup): PreparserSetup;
|
|
380
392
|
|
|
381
|
-
|
|
393
|
+
interface TocItem {
|
|
394
|
+
active?: boolean;
|
|
395
|
+
activeParent?: boolean;
|
|
396
|
+
children: TocItem[];
|
|
397
|
+
hasActiveParent?: boolean;
|
|
398
|
+
level: number;
|
|
399
|
+
path: string;
|
|
400
|
+
hideInToc?: boolean;
|
|
401
|
+
title?: string;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export { AppContext, AppSetup, DrawingsOptions, FontOptions, KatexSetup, MermaidOptions, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, PreparserExtensionFromHeadmatter, PreparserExtensionLoader, PreparserSetup, RenderContext, ResolvedDrawingsOptions, ResolvedFontOptions, ShikiDarkModeThemes, ShikiOptions, ShikiSetup, ShortcutOptions, ShortcutsSetup, SlideInfo, SlideInfoBase, SlideInfoExtended, SlideInfoWithPath, SlidevConfig, SlidevFeatureFlags, SlidevMarkdown, SlidevPreparserExtension, SlidevThemeConfig, SlidevThemeMeta, TocItem, UnoSetup, WindiSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup, defineWindiSetup };
|