@slidev/types 0.44.0 → 0.46.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/README.md +0 -1
- package/dist/index.d.mts +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import { TransitionGroupProps, App, Ref } from 'vue';
|
|
|
2
2
|
import { Awaitable } from '@antfu/utils';
|
|
3
3
|
import * as Shiki from 'shiki';
|
|
4
4
|
import { IThemeRegistration, Theme, ILanguageRegistration, Lang, Highlighter } from 'shiki';
|
|
5
|
+
import { CodeToHastOptions } from 'shikiji';
|
|
5
6
|
import * as monaco from 'monaco-editor';
|
|
6
7
|
import { Router } from 'vue-router';
|
|
7
8
|
import mermaid from 'mermaid';
|
|
@@ -99,7 +100,7 @@ interface SlidevConfig {
|
|
|
99
100
|
* @see https://sli.dev/custom/highlighters.html
|
|
100
101
|
* @default prism
|
|
101
102
|
*/
|
|
102
|
-
highlighter: 'prism' | 'shiki';
|
|
103
|
+
highlighter: 'prism' | 'shiki' | 'shikiji';
|
|
103
104
|
/**
|
|
104
105
|
* Show line numbers in code blocks
|
|
105
106
|
*
|
|
@@ -229,7 +230,7 @@ interface SlidevConfig {
|
|
|
229
230
|
*/
|
|
230
231
|
transition?: BuiltinSlideTransition | string | TransitionGroupProps;
|
|
231
232
|
/**
|
|
232
|
-
* Suppport
|
|
233
|
+
* Suppport MDC syntax
|
|
233
234
|
*
|
|
234
235
|
* @see https://github.com/antfu/markdown-it-mdc
|
|
235
236
|
* @see https://content.nuxtjs.org/guide/writing/mdc
|
|
@@ -447,6 +448,7 @@ interface ShortcutOptions {
|
|
|
447
448
|
name?: string;
|
|
448
449
|
}
|
|
449
450
|
type ShikiSetup = (shiki: typeof Shiki) => Awaitable<ShikiOptions | undefined>;
|
|
451
|
+
type ShikijiSetup = () => Awaitable<Partial<CodeToHastOptions> | undefined>;
|
|
450
452
|
type KatexSetup = () => Awaitable<Partial<KatexOptions> | undefined>;
|
|
451
453
|
type WindiSetup = () => Awaitable<Partial<WindiCssOptions> | undefined>;
|
|
452
454
|
type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | undefined>;
|
|
@@ -476,4 +478,4 @@ interface TocItem {
|
|
|
476
478
|
title?: string;
|
|
477
479
|
}
|
|
478
480
|
|
|
479
|
-
export { AppContext, AppSetup, BuildArgs, BuiltinSlideTransition, CommonArgs, DrawingsOptions, ExportArgs, FontOptions, FrontmatterStyle, 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 };
|
|
481
|
+
export { type AppContext, type AppSetup, type BuildArgs, type BuiltinSlideTransition, type CommonArgs, type DrawingsOptions, type ExportArgs, type FontOptions, type FrontmatterStyle, type KatexSetup, type MermaidOptions, type MermaidSetup, type MonacoSetup, type MonacoSetupReturn, type NavOperations, type PreparserExtensionFromHeadmatter, type PreparserExtensionLoader, type PreparserSetup, type RenderContext, type ResolvedDrawingsOptions, type ResolvedExportOptions, type ResolvedFontOptions, type ResolvedShikiOptions, type ShikiDarkModeThemes, type ShikiOptions, type ShikiSetup, type ShikijiSetup, type ShortcutOptions, type ShortcutsSetup, type SlideInfo, type SlideInfoBase, type SlideInfoExtended, type SlideInfoWithPath, type SlidevConfig, type SlidevFeatureFlags, type SlidevMarkdown, type SlidevPreparserExtension, type SlidevThemeConfig, type SlidevThemeMeta, type TocItem, type UnoSetup, type WindiSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup, defineWindiSetup };
|