@slidev/client 51.5.0 → 51.6.1

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.
@@ -17,17 +17,30 @@ export function useHideCursorIdle(
17
17
  document.body.style.cursor = ''
18
18
  }
19
19
 
20
- // If disabled, immediately show the cursor
20
+ let timer: ReturnType<typeof setTimeout> | null = null
21
+
22
+ // If disabled, immediately show the cursor and stop the timer
21
23
  watch(
22
24
  shouldHide,
23
25
  (value) => {
24
- if (!value)
26
+ if (!value) {
25
27
  show()
28
+ if (timer) {
29
+ clearTimeout(timer)
30
+ }
31
+ timer = null
32
+ }
26
33
  },
27
34
  )
28
- onScopeDispose(show)
29
35
 
30
- let timer: ReturnType<typeof setTimeout> | null = null
36
+ onScopeDispose(() => {
37
+ show()
38
+ if (timer) {
39
+ clearTimeout(timer)
40
+ }
41
+ timer = null
42
+ })
43
+
31
44
  useEventListener(
32
45
  document.body,
33
46
  ['pointermove', 'pointerdown'],
package/index.html CHANGED
@@ -3,7 +3,6 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <!-- head -->
7
6
  </head>
8
7
  <body>
9
8
  <div id="app"></div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
3
  "type": "module",
4
- "version": "51.5.0",
4
+ "version": "51.6.1",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -28,42 +28,42 @@
28
28
  "node": ">=18.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@antfu/utils": "^9.1.0",
31
+ "@antfu/utils": "^9.2.0",
32
32
  "@iconify-json/carbon": "^1.2.8",
33
33
  "@iconify-json/ph": "^1.2.2",
34
34
  "@iconify-json/svg-spinners": "^1.2.2",
35
- "@shikijs/engine-javascript": "^3.2.1",
36
- "@shikijs/monaco": "^3.2.1",
37
- "@shikijs/vitepress-twoslash": "^3.2.1",
35
+ "@shikijs/engine-javascript": "^3.4.2",
36
+ "@shikijs/monaco": "^3.4.2",
37
+ "@shikijs/vitepress-twoslash": "^3.4.2",
38
38
  "@slidev/rough-notation": "^0.1.0",
39
39
  "@typescript/ata": "^0.9.7",
40
- "@unhead/vue": "^2.0.2",
41
- "@unocss/reset": "^66.0.0",
42
- "@vueuse/core": "^13.0.0",
43
- "@vueuse/math": "^13.0.0",
40
+ "@unhead/vue": "^2.0.8",
41
+ "@unocss/reset": "^66.1.2",
42
+ "@vueuse/core": "^13.2.0",
43
+ "@vueuse/math": "^13.2.0",
44
44
  "@vueuse/motion": "^3.0.3",
45
45
  "drauu": "^0.4.3",
46
46
  "file-saver": "^2.0.5",
47
47
  "floating-vue": "^5.2.2",
48
48
  "fuse.js": "^7.1.0",
49
- "katex": "^0.16.21",
49
+ "katex": "^0.16.22",
50
50
  "lz-string": "^1.5.0",
51
51
  "mermaid": "^11.6.0",
52
52
  "monaco-editor": "0.51.0",
53
53
  "nanotar": "^0.2.0",
54
- "pptxgenjs": "^3.12.0",
54
+ "pptxgenjs": "^4.0.0",
55
55
  "recordrtc": "^5.6.2",
56
- "shiki": "^3.2.1",
56
+ "shiki": "^3.4.2",
57
57
  "shiki-magic-move": "^1.1.0",
58
- "typescript": "^5.8.2",
59
- "unocss": "^66.0.0",
60
- "vue": "^3.5.13",
61
- "vue-router": "^4.5.0",
62
- "yaml": "^2.7.1",
63
- "@slidev/types": "51.5.0",
64
- "@slidev/parser": "51.5.0"
58
+ "typescript": "^5.8.3",
59
+ "unocss": "^66.1.2",
60
+ "vue": "^3.5.14",
61
+ "vue-router": "^4.5.1",
62
+ "yaml": "^2.8.0",
63
+ "@slidev/parser": "51.6.1",
64
+ "@slidev/types": "51.6.1"
65
65
  },
66
66
  "devDependencies": {
67
- "vite": "^6.2.3"
67
+ "vite": "^6.3.5"
68
68
  }
69
69
  }