@slidev/client 0.33.0 → 0.33.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.
- package/builtin/Mermaid.vue +1 -1
- package/internals/ShadowRoot.vue +7 -1
- package/package.json +11 -11
- package/setup/shortcuts.ts +2 -1
- package/shim.d.ts +1 -1
package/builtin/Mermaid.vue
CHANGED
package/internals/ShadowRoot.vue
CHANGED
|
@@ -5,11 +5,17 @@ const props = defineProps<{
|
|
|
5
5
|
innerHtml: string
|
|
6
6
|
}>()
|
|
7
7
|
|
|
8
|
+
const emit = defineEmits<{
|
|
9
|
+
(event: 'shadow', div: ShadowRoot): void
|
|
10
|
+
}>()
|
|
11
|
+
|
|
8
12
|
const el = ref<HTMLDivElement>()
|
|
9
13
|
const shadow = computed(() => el.value ? (el.value.shadowRoot || el.value.attachShadow({ mode: 'open' })) : null)
|
|
10
14
|
watchEffect(() => {
|
|
11
|
-
if (shadow.value)
|
|
15
|
+
if (shadow.value) {
|
|
16
|
+
emit('shadow', shadow.value)
|
|
12
17
|
shadow.value.innerHTML = props.innerHtml
|
|
18
|
+
}
|
|
13
19
|
})
|
|
14
20
|
</script>
|
|
15
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/client",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@antfu/utils": "^0.5.2",
|
|
19
|
-
"@slidev/parser": "0.33.
|
|
20
|
-
"@slidev/types": "0.33.
|
|
21
|
-
"@vueuse/core": "^8.
|
|
19
|
+
"@slidev/parser": "0.33.1",
|
|
20
|
+
"@slidev/types": "0.33.1",
|
|
21
|
+
"@vueuse/core": "^8.7.4",
|
|
22
22
|
"@vueuse/head": "^0.7.6",
|
|
23
23
|
"@vueuse/motion": "^2.0.0-beta.18",
|
|
24
24
|
"codemirror": "^5.65.5",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"file-saver": "^2.0.5",
|
|
28
28
|
"js-base64": "^3.7.2",
|
|
29
29
|
"js-yaml": "^4.1.0",
|
|
30
|
-
"katex": "^0.
|
|
31
|
-
"mermaid": "^9.1.
|
|
30
|
+
"katex": "^0.16.0",
|
|
31
|
+
"mermaid": "^9.1.2",
|
|
32
32
|
"monaco-editor": "^0.33.0",
|
|
33
|
-
"nanoid": "^
|
|
34
|
-
"prettier": "^2.
|
|
33
|
+
"nanoid": "^4.0.0",
|
|
34
|
+
"prettier": "^2.7.1",
|
|
35
35
|
"recordrtc": "^5.6.2",
|
|
36
|
-
"resolve": "^1.22.
|
|
36
|
+
"resolve": "^1.22.1",
|
|
37
37
|
"vite-plugin-windicss": "^1.8.4",
|
|
38
38
|
"vue": "^3.2.36",
|
|
39
|
-
"vue-router": "^4.0.
|
|
40
|
-
"vue-starport": "^0.
|
|
39
|
+
"vue-router": "^4.0.16",
|
|
40
|
+
"vue-starport": "^0.3.0",
|
|
41
41
|
"windicss": "^3.5.4"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/setup/shortcuts.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* __imports__ */
|
|
2
2
|
|
|
3
3
|
import type { NavOperations, ShortcutOptions } from '@slidev/types'
|
|
4
|
-
import { downloadPDF, next, nextSlide, prev, prevSlide } from '../logic/nav'
|
|
4
|
+
import { downloadPDF, go, next, nextSlide, prev, prevSlide } from '../logic/nav'
|
|
5
5
|
import { toggleDark } from '../logic/dark'
|
|
6
6
|
import { showGotoDialog, showOverview, toggleOverview } from '../state'
|
|
7
7
|
import { drawingEnabled } from '../logic/drawings'
|
|
@@ -14,6 +14,7 @@ export default function setupShortcuts() {
|
|
|
14
14
|
prev,
|
|
15
15
|
nextSlide,
|
|
16
16
|
prevSlide,
|
|
17
|
+
go,
|
|
17
18
|
downloadPDF,
|
|
18
19
|
toggleDark,
|
|
19
20
|
toggleOverview,
|
package/shim.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ declare interface Window {
|
|
|
2
2
|
// extend the window
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
// with vite-plugin-
|
|
5
|
+
// with vite-plugin-vue-markdown, markdowns can be treat as Vue components
|
|
6
6
|
declare module '*.md' {
|
|
7
7
|
import type { ComponentOptions } from 'vue'
|
|
8
8
|
const component: ComponentOptions
|