@slidev/types 0.50.0-beta.1 → 0.50.0-beta.10
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 +12 -7
- package/package.json +15 -15
package/dist/index.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ import VueJsx from '@vitejs/plugin-vue-jsx';
|
|
|
15
15
|
import Icons from 'unplugin-icons/vite';
|
|
16
16
|
import Components from 'unplugin-vue-components/vite';
|
|
17
17
|
import Markdown from 'unplugin-vue-markdown/vite';
|
|
18
|
-
import {
|
|
18
|
+
import { ViteInspectOptions } from 'vite-plugin-inspect';
|
|
19
19
|
import RemoteAssets from 'vite-plugin-remote-assets';
|
|
20
20
|
import { ViteStaticCopyOptions } from 'vite-plugin-static-copy';
|
|
21
21
|
import ServerRef from 'vite-plugin-vue-server-ref';
|
|
@@ -220,7 +220,7 @@ type SlidePatch = Partial<Pick<SlideInfoBase, 'content' | 'note' | 'frontmatterR
|
|
|
220
220
|
interface SlidevThemeMeta {
|
|
221
221
|
defaults?: Partial<SlidevConfig>;
|
|
222
222
|
colorSchema?: 'dark' | 'light' | 'both';
|
|
223
|
-
highlighter?: '
|
|
223
|
+
highlighter?: 'shiki';
|
|
224
224
|
}
|
|
225
225
|
type SlidevThemeConfig = Record<string, string | number>;
|
|
226
226
|
interface SlidevDetectedFeatures {
|
|
@@ -306,7 +306,7 @@ interface HeadmatterConfig extends TransitionOptions {
|
|
|
306
306
|
/**
|
|
307
307
|
* Theme to use for the slides
|
|
308
308
|
*
|
|
309
|
-
* See https://sli.dev/
|
|
309
|
+
* See https://sli.dev/guide/theme-addon#use-theme
|
|
310
310
|
* @default 'default'
|
|
311
311
|
*/
|
|
312
312
|
theme?: string;
|
|
@@ -348,7 +348,7 @@ interface HeadmatterConfig extends TransitionOptions {
|
|
|
348
348
|
* See https://sli.dev/custom/config-highlighter.html
|
|
349
349
|
* @default shiki
|
|
350
350
|
*/
|
|
351
|
-
highlighter?: 'shiki'
|
|
351
|
+
highlighter?: 'shiki';
|
|
352
352
|
/**
|
|
353
353
|
* Enable Twoslash
|
|
354
354
|
*
|
|
@@ -755,11 +755,11 @@ type ContextMenuOption = {
|
|
|
755
755
|
disabled?: boolean;
|
|
756
756
|
} & ({
|
|
757
757
|
small?: false;
|
|
758
|
-
icon?: Component;
|
|
758
|
+
icon?: Component | string;
|
|
759
759
|
label: string | Component;
|
|
760
760
|
} | {
|
|
761
761
|
small: true;
|
|
762
|
-
icon: Component;
|
|
762
|
+
icon: Component | string;
|
|
763
763
|
label: string;
|
|
764
764
|
});
|
|
765
765
|
type ContextMenuItem = ContextMenuOption | 'separator';
|
|
@@ -802,6 +802,10 @@ interface SlidevEntryOptions {
|
|
|
802
802
|
* Enable inspect plugin
|
|
803
803
|
*/
|
|
804
804
|
inspect?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Build with --download option
|
|
807
|
+
*/
|
|
808
|
+
download?: boolean;
|
|
805
809
|
}
|
|
806
810
|
interface ResolvedSlidevOptions extends RootsInfo, SlidevEntryOptions {
|
|
807
811
|
data: SlidevData;
|
|
@@ -819,6 +823,7 @@ interface ResolvedSlidevUtils {
|
|
|
819
823
|
shiki: HighlighterGeneric<any, any>;
|
|
820
824
|
shikiOptions: MarkdownItShikiOptions;
|
|
821
825
|
indexHtml: string;
|
|
826
|
+
define: Record<string, string>;
|
|
822
827
|
iconsResolvePath: string[];
|
|
823
828
|
isMonacoTypesIgnored: (pkg: string) => boolean;
|
|
824
829
|
getLayouts: () => Record<string, string>;
|
|
@@ -945,7 +950,7 @@ interface SlidevPluginOptions {
|
|
|
945
950
|
serverRef?: ArgumentsType<typeof ServerRef>[0];
|
|
946
951
|
unocss?: VitePluginConfig;
|
|
947
952
|
staticCopy?: ViteStaticCopyOptions;
|
|
948
|
-
inspect?:
|
|
953
|
+
inspect?: ViteInspectOptions;
|
|
949
954
|
}
|
|
950
955
|
declare module 'vite' {
|
|
951
956
|
interface UserConfig {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "0.50.0-beta.
|
|
3
|
+
"version": "0.50.0-beta.10",
|
|
4
4
|
"description": "Shared types declarations for Slidev",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@antfu/utils": "^0.7.10",
|
|
27
|
-
"@shikijs/markdown-it": "^1.
|
|
28
|
-
"@vitejs/plugin-vue": "^5.1
|
|
29
|
-
"@vitejs/plugin-vue-jsx": "^4.
|
|
27
|
+
"@shikijs/markdown-it": "^1.24.0",
|
|
28
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
29
|
+
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
30
30
|
"katex": "^0.16.11",
|
|
31
|
-
"mermaid": "^11.
|
|
32
|
-
"monaco-editor": "
|
|
33
|
-
"shiki": "^1.
|
|
34
|
-
"unocss": "^0.
|
|
35
|
-
"unplugin-icons": "^0.
|
|
36
|
-
"unplugin-vue-markdown": "^0.
|
|
37
|
-
"vite-plugin-inspect": "^0.
|
|
38
|
-
"vite-plugin-remote-assets": "^0.
|
|
39
|
-
"vite-plugin-static-copy": "^
|
|
31
|
+
"mermaid": "^11.4.1",
|
|
32
|
+
"monaco-editor": "0.51.0",
|
|
33
|
+
"shiki": "^1.24.0",
|
|
34
|
+
"unocss": "^0.65.0",
|
|
35
|
+
"unplugin-icons": "^0.20.2",
|
|
36
|
+
"unplugin-vue-markdown": "^0.27.1",
|
|
37
|
+
"vite-plugin-inspect": "^0.10.2",
|
|
38
|
+
"vite-plugin-remote-assets": "^0.6.0",
|
|
39
|
+
"vite-plugin-static-copy": "^2.2.0",
|
|
40
40
|
"vite-plugin-vue-server-ref": "^0.4.2",
|
|
41
|
-
"vue": "^3.5.
|
|
42
|
-
"vue-router": "^4.
|
|
41
|
+
"vue": "^3.5.13",
|
|
42
|
+
"vue-router": "^4.5.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsup src/index.ts",
|