@slidev/types 0.49.12 → 0.49.14

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/client.d.ts CHANGED
@@ -49,7 +49,7 @@ declare module '#slidev/shiki' {
49
49
  export const langs: BundledLanguage[]
50
50
  export const themes: BundledTheme | Record<string, BundledTheme>
51
51
  export const shiki: Promise<ShikiHighlighterCore>
52
- export function getHighlighter(): Promise<(code: string, lang: string, options?: Partial<CodeToHastOptions>) => Promise<string>>
52
+ export function getHighlighter(): Promise<(code: string, lang: string, options?: Partial<CodeToHastOptions>) => string>
53
53
  }
54
54
 
55
55
  declare module '#slidev/setups/monaco' {
package/dist/index.d.mts CHANGED
@@ -239,9 +239,10 @@ interface SlidevConfig {
239
239
  * Engine for Atomic CSS
240
240
  *
241
241
  * @see https://unocss.dev/
242
+ * @deprecated
242
243
  * @default 'unocss'
243
244
  */
244
- css: 'unocss' | 'none';
245
+ css: 'unocss';
245
246
  /**
246
247
  * Enable presenter mode
247
248
  *
@@ -478,6 +479,10 @@ interface SlidevMarkdown {
478
479
  * All slides in this markdown file
479
480
  */
480
481
  slides: SourceSlideInfo[];
482
+ errors?: {
483
+ row: number;
484
+ message: string;
485
+ }[];
481
486
  }
482
487
  interface SlidevData {
483
488
  /**
@@ -516,7 +521,7 @@ interface CodeRunnerContext {
516
521
  /**
517
522
  * Highlight code with shiki.
518
523
  */
519
- highlight: (code: string, lang: string, options?: Partial<CodeToHastOptions>) => Promise<string>;
524
+ highlight: (code: string, lang: string, options?: Partial<CodeToHastOptions>) => string;
520
525
  /**
521
526
  * Use (other) code runner to run code.
522
527
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/types",
3
- "version": "0.49.12",
3
+ "version": "0.49.14",
4
4
  "description": "Shared types declarations for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -23,19 +23,19 @@
23
23
  "node": ">=18.0.0"
24
24
  },
25
25
  "dependencies": {
26
- "@antfu/utils": "^0.7.8",
26
+ "@antfu/utils": "^0.7.10",
27
27
  "@vitejs/plugin-vue": "^5.0.5",
28
28
  "@vitejs/plugin-vue-jsx": "^4.0.0",
29
29
  "katex": "^0.16.10",
30
30
  "mermaid": "^10.9.1",
31
31
  "monaco-editor": "^0.50.0",
32
- "shiki": "^1.9.1",
33
- "unocss": "^0.61.0",
32
+ "shiki": "^1.10.0",
33
+ "unocss": "^0.61.2",
34
34
  "unplugin-icons": "^0.19.0",
35
35
  "unplugin-vue-markdown": "^0.26.2",
36
36
  "vite-plugin-remote-assets": "^0.4.1",
37
37
  "vite-plugin-vue-server-ref": "^0.4.2",
38
- "vue": "^3.4.30",
38
+ "vue": "^3.4.31",
39
39
  "vue-router": "^4.4.0"
40
40
  },
41
41
  "scripts": {