@slidev/types 0.49.27 → 0.49.29
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 +3 -2
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -510,6 +510,7 @@ type FrontmatterStyle = 'frontmatter' | 'yaml';
|
|
|
510
510
|
interface SlideInfoBase {
|
|
511
511
|
frontmatter: Record<string, any>;
|
|
512
512
|
content: string;
|
|
513
|
+
frontmatterRaw?: string;
|
|
513
514
|
note?: string;
|
|
514
515
|
title?: string;
|
|
515
516
|
level?: number;
|
|
@@ -534,7 +535,6 @@ interface SourceSlideInfo extends SlideInfoBase {
|
|
|
534
535
|
* Slides import by this slide.
|
|
535
536
|
*/
|
|
536
537
|
imports?: SourceSlideInfo[];
|
|
537
|
-
frontmatterRaw?: string;
|
|
538
538
|
frontmatterDoc?: YAML.Document;
|
|
539
539
|
frontmatterStyle?: FrontmatterStyle;
|
|
540
540
|
}
|
|
@@ -556,7 +556,7 @@ interface SlideInfo extends SlideInfoBase {
|
|
|
556
556
|
/**
|
|
557
557
|
* Editable fields for a slide
|
|
558
558
|
*/
|
|
559
|
-
type SlidePatch = Partial<Pick<SlideInfoBase, 'content' | 'note'>> & {
|
|
559
|
+
type SlidePatch = Partial<Pick<SlideInfoBase, 'content' | 'note' | 'frontmatterRaw'>> & {
|
|
560
560
|
skipHmr?: boolean;
|
|
561
561
|
/**
|
|
562
562
|
* The frontmatter patch (only the changed fields)
|
|
@@ -744,6 +744,7 @@ interface ResolvedSlidevUtils {
|
|
|
744
744
|
shiki: HighlighterGeneric<any, any>;
|
|
745
745
|
shikiOptions: MarkdownItShikiOptions;
|
|
746
746
|
indexHtml: string;
|
|
747
|
+
iconsResolvePath: string[];
|
|
747
748
|
isMonacoTypesIgnored: (pkg: string) => boolean;
|
|
748
749
|
getLayouts: () => Record<string, string>;
|
|
749
750
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.29",
|
|
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": "^0.7.10",
|
|
27
|
-
"@shikijs/markdown-it": "^1.
|
|
27
|
+
"@shikijs/markdown-it": "^1.14.1",
|
|
28
28
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
29
29
|
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
|
30
30
|
"katex": "^0.16.11",
|
|
31
|
-
"mermaid": "^
|
|
32
|
-
"monaco-editor": "^0.
|
|
33
|
-
"shiki": "^1.
|
|
34
|
-
"unocss": "^0.62.
|
|
31
|
+
"mermaid": "^11.0.2",
|
|
32
|
+
"monaco-editor": "^0.51.0",
|
|
33
|
+
"shiki": "^1.14.1",
|
|
34
|
+
"unocss": "^0.62.3",
|
|
35
35
|
"unplugin-icons": "^0.19.2",
|
|
36
36
|
"unplugin-vue-markdown": "^0.26.2",
|
|
37
|
-
"vite-plugin-inspect": "^0.8.
|
|
37
|
+
"vite-plugin-inspect": "^0.8.7",
|
|
38
38
|
"vite-plugin-remote-assets": "^0.5.0",
|
|
39
39
|
"vite-plugin-static-copy": "^1.0.6",
|
|
40
40
|
"vite-plugin-vue-server-ref": "^0.4.2",
|