@slidev/types 51.0.2 → 51.1.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/dist/index.d.mts +8 -3
- package/package.json +6 -6
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';
|
|
@@ -668,7 +668,7 @@ interface FontOptions {
|
|
|
668
668
|
/**
|
|
669
669
|
* @default 'google'
|
|
670
670
|
*/
|
|
671
|
-
provider?: 'none' | 'google';
|
|
671
|
+
provider?: 'none' | 'google' | 'coollabs';
|
|
672
672
|
/**
|
|
673
673
|
* Specify web fonts names, will detect from `sans`, `mono`, `serif` if not provided
|
|
674
674
|
*/
|
|
@@ -737,7 +737,7 @@ interface ResolvedFontOptions {
|
|
|
737
737
|
serif: string[];
|
|
738
738
|
weights: string[];
|
|
739
739
|
italic: boolean;
|
|
740
|
-
provider: 'none' | 'google';
|
|
740
|
+
provider: 'none' | 'google' | 'coollabs';
|
|
741
741
|
webfonts: string[];
|
|
742
742
|
local: string[];
|
|
743
743
|
}
|
|
@@ -809,6 +809,10 @@ interface SlidevEntryOptions {
|
|
|
809
809
|
* Build with --download option
|
|
810
810
|
*/
|
|
811
811
|
download?: boolean;
|
|
812
|
+
/**
|
|
813
|
+
* Base URL in dev or build mode
|
|
814
|
+
*/
|
|
815
|
+
base?: string;
|
|
812
816
|
}
|
|
813
817
|
interface ResolvedSlidevOptions extends RootsInfo, SlidevEntryOptions {
|
|
814
818
|
data: SlidevData;
|
|
@@ -825,6 +829,7 @@ interface ResolvedSlidevOptions extends RootsInfo, SlidevEntryOptions {
|
|
|
825
829
|
interface ResolvedSlidevUtils {
|
|
826
830
|
shiki: HighlighterGeneric<any, any>;
|
|
827
831
|
shikiOptions: MarkdownItShikiOptions;
|
|
832
|
+
katexOptions: KatexOptions | null;
|
|
828
833
|
indexHtml: string;
|
|
829
834
|
define: Record<string, string>;
|
|
830
835
|
iconsResolvePath: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "51.0
|
|
3
|
+
"version": "51.1.0",
|
|
4
4
|
"description": "Shared types declarations for Slidev",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@antfu/utils": "^8.1.0",
|
|
27
|
-
"@shikijs/markdown-it": "^2.
|
|
27
|
+
"@shikijs/markdown-it": "^2.1.0",
|
|
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.4.
|
|
33
|
+
"shiki": "^2.1.0",
|
|
34
|
+
"unocss": "^65.4.3",
|
|
35
35
|
"unplugin-icons": "^22.0.0",
|
|
36
|
-
"unplugin-vue-markdown": "^28.
|
|
37
|
-
"vite-plugin-inspect": "^10.0
|
|
36
|
+
"unplugin-vue-markdown": "^28.2.0",
|
|
37
|
+
"vite-plugin-inspect": "^10.1.0",
|
|
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",
|