@slidev/types 0.50.0-beta.1 → 0.50.0-beta.11
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 -7
- package/package.json +16 -16
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;
|
|
@@ -335,6 +335,10 @@ interface HeadmatterConfig extends TransitionOptions {
|
|
|
335
335
|
* @default true
|
|
336
336
|
*/
|
|
337
337
|
codeCopy?: boolean;
|
|
338
|
+
/**
|
|
339
|
+
* The author of the slides
|
|
340
|
+
*/
|
|
341
|
+
author?: string;
|
|
338
342
|
/**
|
|
339
343
|
* Information shows on the built SPA
|
|
340
344
|
* Can be a markdown string
|
|
@@ -348,7 +352,7 @@ interface HeadmatterConfig extends TransitionOptions {
|
|
|
348
352
|
* See https://sli.dev/custom/config-highlighter.html
|
|
349
353
|
* @default shiki
|
|
350
354
|
*/
|
|
351
|
-
highlighter?: 'shiki'
|
|
355
|
+
highlighter?: 'shiki';
|
|
352
356
|
/**
|
|
353
357
|
* Enable Twoslash
|
|
354
358
|
*
|
|
@@ -455,6 +459,12 @@ interface HeadmatterConfig extends TransitionOptions {
|
|
|
455
459
|
* @default true
|
|
456
460
|
*/
|
|
457
461
|
presenter?: boolean | 'dev' | 'build';
|
|
462
|
+
/**
|
|
463
|
+
* Enable browser exporter
|
|
464
|
+
*
|
|
465
|
+
* @default 'dev'
|
|
466
|
+
*/
|
|
467
|
+
browserExporter?: boolean | 'dev' | 'build';
|
|
458
468
|
/**
|
|
459
469
|
* Attributes to apply to the HTML element
|
|
460
470
|
*
|
|
@@ -755,11 +765,11 @@ type ContextMenuOption = {
|
|
|
755
765
|
disabled?: boolean;
|
|
756
766
|
} & ({
|
|
757
767
|
small?: false;
|
|
758
|
-
icon?: Component;
|
|
768
|
+
icon?: Component | string;
|
|
759
769
|
label: string | Component;
|
|
760
770
|
} | {
|
|
761
771
|
small: true;
|
|
762
|
-
icon: Component;
|
|
772
|
+
icon: Component | string;
|
|
763
773
|
label: string;
|
|
764
774
|
});
|
|
765
775
|
type ContextMenuItem = ContextMenuOption | 'separator';
|
|
@@ -802,6 +812,10 @@ interface SlidevEntryOptions {
|
|
|
802
812
|
* Enable inspect plugin
|
|
803
813
|
*/
|
|
804
814
|
inspect?: boolean;
|
|
815
|
+
/**
|
|
816
|
+
* Build with --download option
|
|
817
|
+
*/
|
|
818
|
+
download?: boolean;
|
|
805
819
|
}
|
|
806
820
|
interface ResolvedSlidevOptions extends RootsInfo, SlidevEntryOptions {
|
|
807
821
|
data: SlidevData;
|
|
@@ -819,6 +833,7 @@ interface ResolvedSlidevUtils {
|
|
|
819
833
|
shiki: HighlighterGeneric<any, any>;
|
|
820
834
|
shikiOptions: MarkdownItShikiOptions;
|
|
821
835
|
indexHtml: string;
|
|
836
|
+
define: Record<string, string>;
|
|
822
837
|
iconsResolvePath: string[];
|
|
823
838
|
isMonacoTypesIgnored: (pkg: string) => boolean;
|
|
824
839
|
getLayouts: () => Record<string, string>;
|
|
@@ -945,7 +960,7 @@ interface SlidevPluginOptions {
|
|
|
945
960
|
serverRef?: ArgumentsType<typeof ServerRef>[0];
|
|
946
961
|
unocss?: VitePluginConfig;
|
|
947
962
|
staticCopy?: ViteStaticCopyOptions;
|
|
948
|
-
inspect?:
|
|
963
|
+
inspect?: ViteInspectOptions;
|
|
949
964
|
}
|
|
950
965
|
declare module 'vite' {
|
|
951
966
|
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.11",
|
|
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.
|
|
30
|
-
"katex": "^0.16.
|
|
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": "^
|
|
27
|
+
"@shikijs/markdown-it": "^1.24.2",
|
|
28
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
29
|
+
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
30
|
+
"katex": "^0.16.15",
|
|
31
|
+
"mermaid": "^11.4.1",
|
|
32
|
+
"monaco-editor": "0.51.0",
|
|
33
|
+
"shiki": "^1.24.2",
|
|
34
|
+
"unocss": "^0.65.1",
|
|
35
|
+
"unplugin-icons": "^0.22.0",
|
|
36
|
+
"unplugin-vue-markdown": "^0.28.0",
|
|
37
|
+
"vite-plugin-inspect": "^0.10.3",
|
|
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",
|