@slidev/types 51.8.0 → 51.8.2
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 +2 -13
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -46,7 +46,6 @@ interface BuildArgs extends ExportArgs {
|
|
|
46
46
|
download?: boolean;
|
|
47
47
|
inspect: boolean;
|
|
48
48
|
}
|
|
49
|
-
|
|
50
49
|
//#endregion
|
|
51
50
|
//#region src/clicks.d.ts
|
|
52
51
|
type RawSingleAtValue = null | undefined | boolean | string | number;
|
|
@@ -101,7 +100,6 @@ interface ClicksContext {
|
|
|
101
100
|
readonly currentOffset: number;
|
|
102
101
|
readonly total: number;
|
|
103
102
|
}
|
|
104
|
-
|
|
105
103
|
//#endregion
|
|
106
104
|
//#region src/code-runner.d.ts
|
|
107
105
|
interface CodeRunnerContext {
|
|
@@ -157,11 +155,9 @@ type CodeRunnerOutput = CodeRunnerOutputHtml | CodeRunnerOutputError | CodeRunne
|
|
|
157
155
|
type CodeRunnerOutputs = MaybeRefOrGetter<Arrayable<CodeRunnerOutput>>;
|
|
158
156
|
type CodeRunner = (code: string, ctx: CodeRunnerContext) => Awaitable<CodeRunnerOutputs>;
|
|
159
157
|
type CodeRunnerProviders = Record<string, CodeRunner>;
|
|
160
|
-
|
|
161
158
|
//#endregion
|
|
162
159
|
//#region src/builtin-layouts.d.ts
|
|
163
160
|
type BuiltinLayouts = '404' | 'center' | 'cover' | 'default' | 'end' | 'error' | 'fact' | 'full' | 'iframe-left' | 'iframe-right' | 'iframe' | 'image-left' | 'image-right' | 'image' | 'intro' | 'none' | 'quote' | 'section' | 'statement' | 'two-cols-header' | 'two-cols';
|
|
164
|
-
|
|
165
161
|
//#endregion
|
|
166
162
|
//#region src/types.d.ts
|
|
167
163
|
type FrontmatterStyle = 'frontmatter' | 'yaml';
|
|
@@ -298,7 +294,6 @@ interface SlideRoute {
|
|
|
298
294
|
*/
|
|
299
295
|
component: Component;
|
|
300
296
|
}
|
|
301
|
-
|
|
302
297
|
//#endregion
|
|
303
298
|
//#region src/frontmatter.d.ts
|
|
304
299
|
interface Headmatter extends HeadmatterConfig, Omit<Frontmatter, 'title'> {
|
|
@@ -764,7 +759,8 @@ interface SeoMeta {
|
|
|
764
759
|
twitterDescription?: string;
|
|
765
760
|
twitterImage?: string;
|
|
766
761
|
twitterUrl?: string;
|
|
767
|
-
}
|
|
762
|
+
}
|
|
763
|
+
//#endregion
|
|
768
764
|
//#region src/config.d.ts
|
|
769
765
|
interface ResolvedSlidevConfigSub {
|
|
770
766
|
export: ResolvedExportOptions;
|
|
@@ -794,7 +790,6 @@ interface ResolvedExportOptions extends Omit<ExportArgs, 'entry' | 'theme'> {
|
|
|
794
790
|
executablePath?: string;
|
|
795
791
|
withToc?: boolean;
|
|
796
792
|
}
|
|
797
|
-
|
|
798
793
|
//#endregion
|
|
799
794
|
//#region src/context-menu.d.ts
|
|
800
795
|
type ContextMenuOption = {
|
|
@@ -810,7 +805,6 @@ type ContextMenuOption = {
|
|
|
810
805
|
label: string;
|
|
811
806
|
});
|
|
812
807
|
type ContextMenuItem = ContextMenuOption | 'separator';
|
|
813
|
-
|
|
814
808
|
//#endregion
|
|
815
809
|
//#region src/options.d.ts
|
|
816
810
|
interface RootsInfo {
|
|
@@ -874,7 +868,6 @@ interface SlidevServerOptions {
|
|
|
874
868
|
*/
|
|
875
869
|
loadData?: (loadedSource: Record<string, string>) => Promise<SlidevData | false>;
|
|
876
870
|
}
|
|
877
|
-
|
|
878
871
|
//#endregion
|
|
879
872
|
//#region src/transform.d.ts
|
|
880
873
|
interface MarkdownTransformContext {
|
|
@@ -892,7 +885,6 @@ interface MarkdownTransformContext {
|
|
|
892
885
|
options: ResolvedSlidevOptions;
|
|
893
886
|
}
|
|
894
887
|
type MarkdownTransformer = (ctx: MarkdownTransformContext) => Awaitable<void>;
|
|
895
|
-
|
|
896
888
|
//#endregion
|
|
897
889
|
//#region src/setups.d.ts
|
|
898
890
|
interface AppContext {
|
|
@@ -972,7 +964,6 @@ declare const definePreparserSetup: (fn: PreparserSetup) => PreparserSetup;
|
|
|
972
964
|
declare const defineVitePluginsSetup: (fn: VitePluginsSetup) => VitePluginsSetup;
|
|
973
965
|
declare const defineCodeRunnersSetup: (fn: CodeRunnersSetup) => CodeRunnersSetup;
|
|
974
966
|
declare const defineContextMenuSetup: (fn: ContextMenuSetup) => ContextMenuSetup;
|
|
975
|
-
|
|
976
967
|
//#endregion
|
|
977
968
|
//#region src/toc.d.ts
|
|
978
969
|
interface TocItem {
|
|
@@ -987,7 +978,6 @@ interface TocItem {
|
|
|
987
978
|
hideInToc?: boolean;
|
|
988
979
|
title?: string;
|
|
989
980
|
}
|
|
990
|
-
|
|
991
981
|
//#endregion
|
|
992
982
|
//#region src/vite.d.ts
|
|
993
983
|
interface SlidevPluginOptions {
|
|
@@ -1012,6 +1002,5 @@ declare module 'vite' {
|
|
|
1012
1002
|
slidev?: SlidevPluginOptions;
|
|
1013
1003
|
}
|
|
1014
1004
|
}
|
|
1015
|
-
|
|
1016
1005
|
//#endregion
|
|
1017
1006
|
export { AppContext, AppSetup, BuildArgs, BuiltinSlideTransition, ClicksContext, ClicksElement, ClicksInfo, CodeRunner, CodeRunnerContext, CodeRunnerOutput, CodeRunnerOutputDom, CodeRunnerOutputError, CodeRunnerOutputHtml, CodeRunnerOutputText, CodeRunnerOutputTextArray, CodeRunnerOutputs, CodeRunnerProviders, CodeRunnersSetup, CommonArgs, ContextMenuItem, ContextMenuSetup, DrawingsOptions, ExportArgs, FontOptions, Frontmatter, FrontmatterStyle, Headmatter, HeadmatterConfig, KatexSetup, MarkdownTransformContext, MarkdownTransformer, MermaidSetup, MonacoSetup, MonacoSetupReturn, NavOperations, NormalizedAtValue, NormalizedRangeClickValue, NormalizedSingleClickValue, PreparserExtensionLoader, PreparserSetup, RawAtValue, RawRangeAtValue, RawSingleAtValue, RenderContext, ResolvedDrawingsOptions, ResolvedExportOptions, ResolvedFontOptions, ResolvedSlidevConfigSub, ResolvedSlidevOptions, ResolvedSlidevUtils, RootSetup, RootsInfo, RoutesSetup, SeoMeta, ShikiContext, ShikiSetup, ShikiSetupReturn, ShortcutOptions, ShortcutsSetup, SlideInfo, SlideInfoBase, SlidePatch, SlideRoute, SlidevConfig, SlidevData, SlidevDetectedFeatures, SlidevEntryOptions, SlidevMarkdown, SlidevPluginOptions, SlidevPreparserExtension, SlidevServerOptions, SlidevThemeConfig, SlidevThemeMeta, SourceSlideInfo, TocItem, TransformersSetup, TransformersSetupReturn, TransitionGroupProps, TransitionOptions, UnoSetup, VitePluginsSetup, defineAppSetup, defineCodeRunnersSetup, defineContextMenuSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineRootSetup, defineRoutesSetup, defineShikiSetup, defineShortcutsSetup, defineTransformersSetup, defineUnoSetup, defineVitePluginsSetup };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "51.8.
|
|
3
|
+
"version": "51.8.2",
|
|
4
4
|
"description": "Shared types declarations for Slidev",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@antfu/utils": "^9.2.0",
|
|
27
|
-
"@shikijs/markdown-it": "^3.
|
|
27
|
+
"@shikijs/markdown-it": "^3.6.0",
|
|
28
28
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
29
29
|
"@vitejs/plugin-vue-jsx": "^4.2.0",
|
|
30
30
|
"katex": "^0.16.22",
|
|
31
31
|
"mermaid": "^11.6.0",
|
|
32
32
|
"monaco-editor": "^0.52.2",
|
|
33
|
-
"shiki": "^3.
|
|
34
|
-
"unocss": "^66.
|
|
33
|
+
"shiki": "^3.6.0",
|
|
34
|
+
"unocss": "^66.2.0",
|
|
35
35
|
"unplugin-icons": "^22.1.0",
|
|
36
36
|
"unplugin-vue-markdown": "^28.3.1",
|
|
37
37
|
"vite-plugin-inspect": "^11.1.0",
|
|
38
38
|
"vite-plugin-remote-assets": "^2.0.0",
|
|
39
39
|
"vite-plugin-static-copy": "^3.0.0",
|
|
40
40
|
"vite-plugin-vue-server-ref": "^1.0.0",
|
|
41
|
-
"vue": "^3.5.
|
|
41
|
+
"vue": "^3.5.16",
|
|
42
42
|
"vue-router": "^4.5.1"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|