@slidev/types 51.1.0 → 51.1.2

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +10 -5
  2. package/package.json +7 -7
package/dist/index.d.mts CHANGED
@@ -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
- * hide the slide for the `<Toc>` components
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 level for the <TitleRenderer> and <Toc> components
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 <Link> component
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
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/types",
3
- "version": "51.1.0",
3
+ "version": "51.1.2",
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": "^8.1.0",
27
- "@shikijs/markdown-it": "^2.1.0",
26
+ "@antfu/utils": "^9.1.0",
27
+ "@shikijs/markdown-it": "^2.4.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.1.0",
34
- "unocss": "^65.4.3",
33
+ "shiki": "^2.4.2",
34
+ "unocss": "^65.5.0",
35
35
  "unplugin-icons": "^22.0.0",
36
- "unplugin-vue-markdown": "^28.2.0",
37
- "vite-plugin-inspect": "^10.1.0",
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",