@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.
- package/composables/useHideCursorIdle.ts +17 -4
- package/constants.ts +1 -0
- package/index.html +0 -1
- package/internals/FormCheckbox.vue +1 -1
- package/internals/SideEditor.vue +1 -1
- package/package.json +18 -19
- package/setup/main.ts +1 -1
|
@@ -17,17 +17,30 @@ export function useHideCursorIdle(
|
|
|
17
17
|
document.body.style.cursor = ''
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
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
|
-
|
|
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
package/index.html
CHANGED
|
@@ -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-
|
|
14
|
+
<input v-model="value" type="checkbox" absolute inset-0 opacity-10 :disabled="disabled">
|
|
15
15
|
</div>
|
|
16
16
|
</template>
|
package/internals/SideEditor.vue
CHANGED
|
@@ -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?.
|
|
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
|
+
"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.
|
|
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.
|
|
36
|
-
"@shikijs/monaco": "^3.
|
|
37
|
-
"@shikijs/vitepress-twoslash": "^3.
|
|
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": "^
|
|
40
|
+
"@unhead/vue": "^2.0.8",
|
|
41
41
|
"@unocss/reset": "^66.0.0",
|
|
42
|
-
"@vueuse/core": "^13.
|
|
43
|
-
"@vueuse/math": "^13.
|
|
44
|
-
"@vueuse/motion": "^3.0.
|
|
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.
|
|
49
|
+
"katex": "^0.16.22",
|
|
50
50
|
"lz-string": "^1.5.0",
|
|
51
|
-
"mermaid": "^11.
|
|
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.
|
|
58
|
-
"shiki-magic-move": "^1.0
|
|
59
|
-
"typescript": "^5.8.
|
|
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.
|
|
64
|
-
"@slidev/parser": "51.
|
|
65
|
-
"@slidev/types": "51.
|
|
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
|
|
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'
|