@slidev/types 52.6.0 → 52.8.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 +27 -0
  2. package/package.json +7 -7
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
  *
@@ -593,6 +599,12 @@ interface HeadmatterConfig extends TransitionOptions {
593
599
  * @default 'stopwatch'
594
600
  */
595
601
  timer?: 'stopwatch' | 'countdown';
602
+ /**
603
+ * Duration for shiki magic move transitions in milliseconds
604
+ *
605
+ * @default 800
606
+ */
607
+ magicMoveDuration?: number;
596
608
  }
597
609
  interface Frontmatter extends TransitionOptions {
598
610
  /**
@@ -845,6 +857,21 @@ type ContextMenuOption = {
845
857
  });
846
858
  type ContextMenuItem = ContextMenuOption | 'separator';
847
859
  //#endregion
860
+ //#region src/hmr.d.ts
861
+ declare module 'vite' {
862
+ interface CustomEventMap {
863
+ 'slidev:update-slide': {
864
+ no: number;
865
+ data: SlideInfo;
866
+ };
867
+ 'slidev:update-note': {
868
+ no: number;
869
+ note: string;
870
+ noteHTML: string;
871
+ };
872
+ }
873
+ }
874
+ //#endregion
848
875
  //#region src/options.d.ts
849
876
  interface RootsInfo {
850
877
  cliRoot: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/types",
3
- "version": "52.6.0",
3
+ "version": "52.8.0",
4
4
  "description": "Shared types declarations for Slidev",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -24,21 +24,21 @@
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",
34
- "unocss": "^66.5.4",
31
+ "mermaid": "^11.12.1",
32
+ "monaco-editor": "^0.54.0",
33
+ "shiki": "^3.15.0",
34
+ "unocss": "^66.5.5",
35
35
  "unplugin-icons": "^22.5.0",
36
36
  "unplugin-vue-markdown": "^29.2.0",
37
37
  "vite-plugin-inspect": "^11.3.3",
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.24",
42
42
  "vue-router": "^4.6.3"
43
43
  },
44
44
  "scripts": {