@slidev/types 0.42.10 → 0.43.0-beta.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/dist/index.d.mts +22 -6
- package/dist/index.d.ts +22 -6
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransitionGroupProps, App, Ref } from 'vue';
|
|
2
2
|
import { Awaitable } from '@antfu/utils';
|
|
3
3
|
import * as Shiki from 'shiki';
|
|
4
|
-
import { IThemeRegistration, ILanguageRegistration, Highlighter } from 'shiki';
|
|
4
|
+
import { IThemeRegistration, Theme, ILanguageRegistration, Lang, Highlighter } from 'shiki';
|
|
5
5
|
import * as monaco from 'monaco-editor';
|
|
6
6
|
import { Router } from 'vue-router';
|
|
7
7
|
import mermaid from 'mermaid';
|
|
@@ -228,6 +228,15 @@ interface SlidevConfig {
|
|
|
228
228
|
* @see https://vuejs.org/guide/built-ins/transition.html
|
|
229
229
|
*/
|
|
230
230
|
transition?: BuiltinSlideTransition | string | TransitionGroupProps;
|
|
231
|
+
/**
|
|
232
|
+
* Suppport **experimental** MDC syntax
|
|
233
|
+
*
|
|
234
|
+
* @see https://github.com/antfu/markdown-it-mdc
|
|
235
|
+
* @see https://content.nuxtjs.org/guide/writing/mdc
|
|
236
|
+
* @experimental
|
|
237
|
+
* @default false
|
|
238
|
+
*/
|
|
239
|
+
mdc?: boolean;
|
|
231
240
|
}
|
|
232
241
|
interface FontOptions {
|
|
233
242
|
/**
|
|
@@ -385,14 +394,21 @@ interface AppContext {
|
|
|
385
394
|
router: Router;
|
|
386
395
|
}
|
|
387
396
|
interface ShikiDarkModeThemes {
|
|
388
|
-
dark: IThemeRegistration;
|
|
389
|
-
light: IThemeRegistration;
|
|
397
|
+
dark: IThemeRegistration | Theme;
|
|
398
|
+
light: IThemeRegistration | Theme;
|
|
390
399
|
}
|
|
391
400
|
interface ShikiOptions {
|
|
392
|
-
theme?: IThemeRegistration | ShikiDarkModeThemes;
|
|
393
|
-
langs?: ILanguageRegistration[];
|
|
401
|
+
theme?: IThemeRegistration | ShikiDarkModeThemes | Theme;
|
|
402
|
+
langs?: (ILanguageRegistration | Lang)[];
|
|
394
403
|
highlighter?: Highlighter;
|
|
395
404
|
}
|
|
405
|
+
interface ResolvedShikiOptions extends ShikiOptions {
|
|
406
|
+
themes: (IThemeRegistration | Theme)[];
|
|
407
|
+
darkModeThemes?: {
|
|
408
|
+
dark: Theme;
|
|
409
|
+
light: Theme;
|
|
410
|
+
};
|
|
411
|
+
}
|
|
396
412
|
interface MonacoSetupReturn {
|
|
397
413
|
theme?: {
|
|
398
414
|
light?: string;
|
|
@@ -451,4 +467,4 @@ interface TocItem {
|
|
|
451
467
|
title?: string;
|
|
452
468
|
}
|
|
453
469
|
|
|
454
|
-
export { AppContext, AppSetup, BuildArgs, BuiltinSlideTransition, CommonArgs, DrawingsOptions, ExportArgs, FontOptions, KatexSetup, MermaidOptions, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, PreparserExtensionFromHeadmatter, PreparserExtensionLoader, PreparserSetup, RenderContext, ResolvedDrawingsOptions, ResolvedExportOptions, 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 };
|
|
470
|
+
export { AppContext, AppSetup, BuildArgs, BuiltinSlideTransition, CommonArgs, DrawingsOptions, ExportArgs, FontOptions, KatexSetup, MermaidOptions, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, PreparserExtensionFromHeadmatter, PreparserExtensionLoader, PreparserSetup, RenderContext, ResolvedDrawingsOptions, ResolvedExportOptions, ResolvedFontOptions, ResolvedShikiOptions, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransitionGroupProps, App, Ref } from 'vue';
|
|
2
2
|
import { Awaitable } from '@antfu/utils';
|
|
3
3
|
import * as Shiki from 'shiki';
|
|
4
|
-
import { IThemeRegistration, ILanguageRegistration, Highlighter } from 'shiki';
|
|
4
|
+
import { IThemeRegistration, Theme, ILanguageRegistration, Lang, Highlighter } from 'shiki';
|
|
5
5
|
import * as monaco from 'monaco-editor';
|
|
6
6
|
import { Router } from 'vue-router';
|
|
7
7
|
import mermaid from 'mermaid';
|
|
@@ -228,6 +228,15 @@ interface SlidevConfig {
|
|
|
228
228
|
* @see https://vuejs.org/guide/built-ins/transition.html
|
|
229
229
|
*/
|
|
230
230
|
transition?: BuiltinSlideTransition | string | TransitionGroupProps;
|
|
231
|
+
/**
|
|
232
|
+
* Suppport **experimental** MDC syntax
|
|
233
|
+
*
|
|
234
|
+
* @see https://github.com/antfu/markdown-it-mdc
|
|
235
|
+
* @see https://content.nuxtjs.org/guide/writing/mdc
|
|
236
|
+
* @experimental
|
|
237
|
+
* @default false
|
|
238
|
+
*/
|
|
239
|
+
mdc?: boolean;
|
|
231
240
|
}
|
|
232
241
|
interface FontOptions {
|
|
233
242
|
/**
|
|
@@ -385,14 +394,21 @@ interface AppContext {
|
|
|
385
394
|
router: Router;
|
|
386
395
|
}
|
|
387
396
|
interface ShikiDarkModeThemes {
|
|
388
|
-
dark: IThemeRegistration;
|
|
389
|
-
light: IThemeRegistration;
|
|
397
|
+
dark: IThemeRegistration | Theme;
|
|
398
|
+
light: IThemeRegistration | Theme;
|
|
390
399
|
}
|
|
391
400
|
interface ShikiOptions {
|
|
392
|
-
theme?: IThemeRegistration | ShikiDarkModeThemes;
|
|
393
|
-
langs?: ILanguageRegistration[];
|
|
401
|
+
theme?: IThemeRegistration | ShikiDarkModeThemes | Theme;
|
|
402
|
+
langs?: (ILanguageRegistration | Lang)[];
|
|
394
403
|
highlighter?: Highlighter;
|
|
395
404
|
}
|
|
405
|
+
interface ResolvedShikiOptions extends ShikiOptions {
|
|
406
|
+
themes: (IThemeRegistration | Theme)[];
|
|
407
|
+
darkModeThemes?: {
|
|
408
|
+
dark: Theme;
|
|
409
|
+
light: Theme;
|
|
410
|
+
};
|
|
411
|
+
}
|
|
396
412
|
interface MonacoSetupReturn {
|
|
397
413
|
theme?: {
|
|
398
414
|
light?: string;
|
|
@@ -451,4 +467,4 @@ interface TocItem {
|
|
|
451
467
|
title?: string;
|
|
452
468
|
}
|
|
453
469
|
|
|
454
|
-
export { AppContext, AppSetup, BuildArgs, BuiltinSlideTransition, CommonArgs, DrawingsOptions, ExportArgs, FontOptions, KatexSetup, MermaidOptions, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, PreparserExtensionFromHeadmatter, PreparserExtensionLoader, PreparserSetup, RenderContext, ResolvedDrawingsOptions, ResolvedExportOptions, 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 };
|
|
470
|
+
export { AppContext, AppSetup, BuildArgs, BuiltinSlideTransition, CommonArgs, DrawingsOptions, ExportArgs, FontOptions, KatexSetup, MermaidOptions, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, PreparserExtensionFromHeadmatter, PreparserExtensionLoader, PreparserSetup, RenderContext, ResolvedDrawingsOptions, ResolvedExportOptions, ResolvedFontOptions, ResolvedShikiOptions, 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0-beta.0",
|
|
4
4
|
"description": "Shared types declarations for Slidev",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"index.d.ts"
|
|
21
21
|
],
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": ">=
|
|
23
|
+
"node": ">=18.0.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts",
|