@slidev/client 51.4.0 → 51.6.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.
@@ -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/constants.ts CHANGED
@@ -83,4 +83,5 @@ export const HEADMATTER_FIELDS = [
83
83
  'mdc',
84
84
  'contextMenu',
85
85
  'wakeLock',
86
+ 'seoMeta',
86
87
  ]
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>
@@ -11,6 +11,6 @@ const value = defineModel<boolean>('modelValue', {
11
11
  <template>
12
12
  <div border="~ main rounded" flex="~ gap-2 items-center" relative h-5 w-5 p0.5 hover:bg-active p1>
13
13
  <div i-ri-check-line :class="value ? '' : 'op0'" />
14
- <input v-model="value" type="checkbox" absolute inset-0 opacity-0.1 :disabled="disabled">
14
+ <input v-model="value" type="checkbox" absolute inset-0 opacity-10 :disabled="disabled">
15
15
  </div>
16
16
  </template>
@@ -26,7 +26,7 @@ watch(
26
26
  if (!isInputting.value) {
27
27
  note.value = (v?.note || '').trim()
28
28
  const frontmatterPart = v?.frontmatterRaw?.trim() ? `---\n${v.frontmatterRaw.trim()}\n---\n\n` : ''
29
- content.value = frontmatterPart + (v?.content || '').trim()
29
+ content.value = frontmatterPart + (v?.source.contentRaw || '').trim()
30
30
  dirty.value = false
31
31
  }
32
32
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
3
  "type": "module",
4
- "version": "51.4.0",
4
+ "version": "51.6.0",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -28,43 +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.1.0",
36
- "@shikijs/monaco": "^3.1.0",
37
- "@shikijs/vitepress-twoslash": "^3.1.0",
35
+ "@shikijs/engine-javascript": "^3.3.0",
36
+ "@shikijs/monaco": "^3.3.0",
37
+ "@shikijs/vitepress-twoslash": "^3.3.0",
38
38
  "@slidev/rough-notation": "^0.1.0",
39
39
  "@typescript/ata": "^0.9.7",
40
- "@unhead/vue": "^1.11.20",
40
+ "@unhead/vue": "^2.0.8",
41
41
  "@unocss/reset": "^66.0.0",
42
- "@vueuse/core": "^13.0.0",
43
- "@vueuse/math": "^13.0.0",
44
- "@vueuse/motion": "^3.0.1",
42
+ "@vueuse/core": "^13.1.0",
43
+ "@vueuse/math": "^13.1.0",
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
- "mermaid": "^11.4.1",
51
+ "mermaid": "^11.6.0",
52
52
  "monaco-editor": "0.51.0",
53
53
  "nanotar": "^0.2.0",
54
54
  "pptxgenjs": "^3.12.0",
55
- "prettier": "^3.5.3",
56
55
  "recordrtc": "^5.6.2",
57
- "shiki": "^3.1.0",
58
- "shiki-magic-move": "^1.0.1",
59
- "typescript": "^5.8.2",
56
+ "shiki": "^3.3.0",
57
+ "shiki-magic-move": "^1.1.0",
58
+ "typescript": "^5.8.3",
60
59
  "unocss": "^66.0.0",
61
60
  "vue": "^3.5.13",
62
61
  "vue-router": "^4.5.0",
63
- "yaml": "^2.7.0",
64
- "@slidev/parser": "51.4.0",
65
- "@slidev/types": "51.4.0"
62
+ "yaml": "^2.7.1",
63
+ "@slidev/parser": "51.6.0",
64
+ "@slidev/types": "51.6.0"
66
65
  },
67
66
  "devDependencies": {
68
- "vite": "^6.2.1"
67
+ "vite": "^6.3.2"
69
68
  }
70
69
  }
package/setup/main.ts CHANGED
@@ -2,7 +2,7 @@ import type { AppContext } from '@slidev/types'
2
2
  import type { App } from 'vue'
3
3
  import setups from '#slidev/setups/main'
4
4
  import TwoSlashFloatingVue from '@shikijs/vitepress-twoslash/client'
5
- import { createHead } from '@unhead/vue'
5
+ import { createHead } from '@unhead/vue/client'
6
6
  import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
7
7
  import { createVClickDirectives } from '../modules/v-click'
8
8
  import { createVDragDirective } from '../modules/v-drag'