@slidev/types 0.32.3 → 0.33.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.ts +3 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -294,6 +294,7 @@ interface SlidevMarkdown {
|
|
|
294
294
|
entries?: string[];
|
|
295
295
|
themeMeta?: SlidevThemeMeta;
|
|
296
296
|
}
|
|
297
|
+
declare type RenderContext = 'slide' | 'overview' | 'presenter' | 'previewNext';
|
|
297
298
|
|
|
298
299
|
interface AppContext {
|
|
299
300
|
app: App;
|
|
@@ -320,6 +321,7 @@ interface NavOperations {
|
|
|
320
321
|
prev: () => Promise<void>;
|
|
321
322
|
nextSlide: () => void;
|
|
322
323
|
prevSlide: () => Promise<void>;
|
|
324
|
+
go: (index: number) => void;
|
|
323
325
|
downloadPDF: () => Promise<void>;
|
|
324
326
|
toggleDark: () => void;
|
|
325
327
|
toggleOverview: () => void;
|
|
@@ -347,4 +349,4 @@ declare function defineMermaidSetup(fn: MermaidSetup): MermaidSetup;
|
|
|
347
349
|
declare function defineKatexSetup(fn: KatexSetup): KatexSetup;
|
|
348
350
|
declare function defineShortcutsSetup(fn: ShortcutsSetup): ShortcutsSetup;
|
|
349
351
|
|
|
350
|
-
export { AppContext, AppSetup, DrawingsOptions, FontOptions, KatexSetup, MermaidOptions, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, ResolvedDrawingsOptions, ResolvedFontOptions, ShikiDarkModeThemes, ShikiOptions, ShikiSetup, ShortcutOptions, ShortcutsSetup, SlideInfo, SlideInfoBase, SlideInfoExtended, SlideInfoWithPath, SlidevConfig, SlidevFeatureFlags, SlidevMarkdown, SlidevThemeConfig, SlidevThemeMeta, WindiSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, defineShikiSetup, defineShortcutsSetup, defineWindiSetup };
|
|
352
|
+
export { AppContext, AppSetup, DrawingsOptions, FontOptions, KatexSetup, MermaidOptions, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, RenderContext, ResolvedDrawingsOptions, ResolvedFontOptions, ShikiDarkModeThemes, ShikiOptions, ShikiSetup, ShortcutOptions, ShortcutsSetup, SlideInfo, SlideInfoBase, SlideInfoExtended, SlideInfoWithPath, SlidevConfig, SlidevFeatureFlags, SlidevMarkdown, SlidevThemeConfig, SlidevThemeMeta, WindiSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, defineShikiSetup, defineShortcutsSetup, defineWindiSetup };
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Shared types declerations for Slidev",
|
|
5
|
-
"homepage": "https://sli.dev",
|
|
6
|
-
"bugs": "https://github.com/slidevjs/slidev/issues",
|
|
7
|
-
"license": "MIT",
|
|
8
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"funding": "https://github.com/sponsors/antfu",
|
|
8
|
+
"homepage": "https://sli.dev",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/slidevjs/slidev"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"bugs": "https://github.com/slidevjs/slidev/issues",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"module": "dist/index.mjs",
|
|
16
16
|
"types": "index.d.ts",
|