@slidev/types 52.5.0 → 52.7.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +38 -0
  2. package/package.json +6 -6
package/dist/index.d.mts CHANGED
@@ -558,6 +558,12 @@ interface HeadmatterConfig extends TransitionOptions {
558
558
  * @default []
559
559
  */
560
560
  monacoRunAdditionalDeps?: string[];
561
+ /**
562
+ * Whether to run monaco runnable code in strict mode
563
+ *
564
+ * @default true
565
+ */
566
+ monacoRunUseStrict?: boolean;
561
567
  /**
562
568
  * Seo meta tags settings
563
569
  *
@@ -576,6 +582,23 @@ interface HeadmatterConfig extends TransitionOptions {
576
582
  * ```
577
583
  */
578
584
  notesAutoRuby?: Record<string, string>;
585
+ /**
586
+ * The expected duration of the slide
587
+ *
588
+ * @example
589
+ * ```yaml
590
+ * duration: 35min
591
+ * ```
592
+ *
593
+ * @default '30min'
594
+ */
595
+ duration?: string | number;
596
+ /**
597
+ * Timer mode
598
+ *
599
+ * @default 'stopwatch'
600
+ */
601
+ timer?: 'stopwatch' | 'countdown';
579
602
  }
580
603
  interface Frontmatter extends TransitionOptions {
581
604
  /**
@@ -828,6 +851,21 @@ type ContextMenuOption = {
828
851
  });
829
852
  type ContextMenuItem = ContextMenuOption | 'separator';
830
853
  //#endregion
854
+ //#region src/hmr.d.ts
855
+ declare module 'vite' {
856
+ interface CustomEventMap {
857
+ 'slidev:update-slide': {
858
+ no: number;
859
+ data: SlideInfo;
860
+ };
861
+ 'slidev:update-note': {
862
+ no: number;
863
+ note: string;
864
+ noteHTML: string;
865
+ };
866
+ }
867
+ }
868
+ //#endregion
831
869
  //#region src/options.d.ts
832
870
  interface RootsInfo {
833
871
  cliRoot: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/types",
3
- "version": "52.5.0",
3
+ "version": "52.7.0",
4
4
  "description": "Shared types declarations for Slidev",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@antfu/utils": "^9.3.0",
27
- "@shikijs/markdown-it": "^3.13.0",
27
+ "@shikijs/markdown-it": "^3.15.0",
28
28
  "@vitejs/plugin-vue": "^6.0.1",
29
29
  "@vitejs/plugin-vue-jsx": "^5.1.1",
30
30
  "katex": "^0.16.25",
31
- "mermaid": "^11.12.0",
32
- "monaco-editor": "^0.53.0",
33
- "shiki": "^3.13.0",
31
+ "mermaid": "^11.12.1",
32
+ "monaco-editor": "^0.54.0",
33
+ "shiki": "^3.15.0",
34
34
  "unocss": "^66.5.4",
35
35
  "unplugin-icons": "^22.5.0",
36
36
  "unplugin-vue-markdown": "^29.2.0",
@@ -38,7 +38,7 @@
38
38
  "vite-plugin-remote-assets": "^2.1.0",
39
39
  "vite-plugin-static-copy": "^3.1.4",
40
40
  "vite-plugin-vue-server-ref": "^1.0.0",
41
- "vue": "^3.5.22",
41
+ "vue": "^3.5.23",
42
42
  "vue-router": "^4.6.3"
43
43
  },
44
44
  "scripts": {