@slidev/types 51.0.2 → 51.1.1
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 +18 -8
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -4,8 +4,8 @@ import { CodeToHastOptions, CodeToHastOptionsCommon, BuiltinLanguage, CodeOption
|
|
|
4
4
|
import { RouteMeta, RouteComponent, Router, RouteRecordRaw } from 'vue-router';
|
|
5
5
|
import YAML from 'yaml';
|
|
6
6
|
import { MarkdownItShikiOptions } from '@shikijs/markdown-it/index.mjs';
|
|
7
|
-
import { HighlighterGeneric } from 'shiki/types.mjs';
|
|
8
7
|
import { KatexOptions } from 'katex';
|
|
8
|
+
import { HighlighterGeneric } from 'shiki/types.mjs';
|
|
9
9
|
import { MermaidConfig } from 'mermaid';
|
|
10
10
|
import * as monaco from 'monaco-editor';
|
|
11
11
|
import { VitePluginConfig } from 'unocss/vite';
|
|
@@ -285,7 +285,7 @@ interface SlideRoute {
|
|
|
285
285
|
component: Component;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
interface Headmatter extends HeadmatterConfig, Frontmatter {
|
|
288
|
+
interface Headmatter extends HeadmatterConfig, Omit<Frontmatter, 'title'> {
|
|
289
289
|
/**
|
|
290
290
|
* Default frontmatter options applied to all slides
|
|
291
291
|
*/
|
|
@@ -578,18 +578,23 @@ interface Frontmatter extends TransitionOptions {
|
|
|
578
578
|
*/
|
|
579
579
|
disabled?: boolean;
|
|
580
580
|
/**
|
|
581
|
-
*
|
|
581
|
+
* Hide the slide for the `<Toc>` components
|
|
582
582
|
*
|
|
583
583
|
* See https://sli.dev/builtin/components#toc
|
|
584
584
|
*/
|
|
585
585
|
hideInToc?: boolean;
|
|
586
586
|
/**
|
|
587
|
-
* Override the title
|
|
587
|
+
* Override the title for the `<TitleRenderer>` and `<Toc>` components
|
|
588
|
+
* Only if `title` has also been declared
|
|
589
|
+
*/
|
|
590
|
+
title?: string;
|
|
591
|
+
/**
|
|
592
|
+
* Override the title level for the `<TitleRenderer>` and `<Toc>` components
|
|
588
593
|
* Only if `title` has also been declared
|
|
589
594
|
*/
|
|
590
595
|
level?: number;
|
|
591
596
|
/**
|
|
592
|
-
* Create a route alias that can be used in the URL or with the
|
|
597
|
+
* Create a route alias that can be used in the URL or with the `<Link>` component
|
|
593
598
|
*/
|
|
594
599
|
routeAlias?: string;
|
|
595
600
|
/**
|
|
@@ -603,7 +608,7 @@ interface Frontmatter extends TransitionOptions {
|
|
|
603
608
|
*
|
|
604
609
|
* See https://sli.dev/features/draggable
|
|
605
610
|
*/
|
|
606
|
-
dragPos?: Record<string, string
|
|
611
|
+
dragPos?: Record<string, string>;
|
|
607
612
|
/**
|
|
608
613
|
* Includes a markdown file
|
|
609
614
|
*
|
|
@@ -668,7 +673,7 @@ interface FontOptions {
|
|
|
668
673
|
/**
|
|
669
674
|
* @default 'google'
|
|
670
675
|
*/
|
|
671
|
-
provider?: 'none' | 'google';
|
|
676
|
+
provider?: 'none' | 'google' | 'coollabs';
|
|
672
677
|
/**
|
|
673
678
|
* Specify web fonts names, will detect from `sans`, `mono`, `serif` if not provided
|
|
674
679
|
*/
|
|
@@ -737,7 +742,7 @@ interface ResolvedFontOptions {
|
|
|
737
742
|
serif: string[];
|
|
738
743
|
weights: string[];
|
|
739
744
|
italic: boolean;
|
|
740
|
-
provider: 'none' | 'google';
|
|
745
|
+
provider: 'none' | 'google' | 'coollabs';
|
|
741
746
|
webfonts: string[];
|
|
742
747
|
local: string[];
|
|
743
748
|
}
|
|
@@ -809,6 +814,10 @@ interface SlidevEntryOptions {
|
|
|
809
814
|
* Build with --download option
|
|
810
815
|
*/
|
|
811
816
|
download?: boolean;
|
|
817
|
+
/**
|
|
818
|
+
* Base URL in dev or build mode
|
|
819
|
+
*/
|
|
820
|
+
base?: string;
|
|
812
821
|
}
|
|
813
822
|
interface ResolvedSlidevOptions extends RootsInfo, SlidevEntryOptions {
|
|
814
823
|
data: SlidevData;
|
|
@@ -825,6 +834,7 @@ interface ResolvedSlidevOptions extends RootsInfo, SlidevEntryOptions {
|
|
|
825
834
|
interface ResolvedSlidevUtils {
|
|
826
835
|
shiki: HighlighterGeneric<any, any>;
|
|
827
836
|
shikiOptions: MarkdownItShikiOptions;
|
|
837
|
+
katexOptions: KatexOptions | null;
|
|
828
838
|
indexHtml: string;
|
|
829
839
|
define: Record<string, string>;
|
|
830
840
|
iconsResolvePath: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "51.
|
|
3
|
+
"version": "51.1.1",
|
|
4
4
|
"description": "Shared types declarations for Slidev",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"node": ">=18.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@antfu/utils": "^
|
|
27
|
-
"@shikijs/markdown-it": "^2.
|
|
26
|
+
"@antfu/utils": "^9.0.0",
|
|
27
|
+
"@shikijs/markdown-it": "^2.3.2",
|
|
28
28
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
29
29
|
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
30
30
|
"katex": "^0.16.21",
|
|
31
31
|
"mermaid": "^11.4.1",
|
|
32
32
|
"monaco-editor": "0.51.0",
|
|
33
|
-
"shiki": "^2.
|
|
34
|
-
"unocss": "^65.
|
|
33
|
+
"shiki": "^2.3.2",
|
|
34
|
+
"unocss": "^65.5.0",
|
|
35
35
|
"unplugin-icons": "^22.0.0",
|
|
36
|
-
"unplugin-vue-markdown": "^28.
|
|
37
|
-
"vite-plugin-inspect": "^10.
|
|
36
|
+
"unplugin-vue-markdown": "^28.3.0",
|
|
37
|
+
"vite-plugin-inspect": "^10.2.1",
|
|
38
38
|
"vite-plugin-remote-assets": "^0.6.0",
|
|
39
39
|
"vite-plugin-static-copy": "^2.2.0",
|
|
40
40
|
"vite-plugin-vue-server-ref": "^0.4.2",
|