@slidev/client 0.28.5 → 0.28.8
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/iframes/monaco/index.ts
CHANGED
|
@@ -135,6 +135,8 @@ async function start() {
|
|
|
135
135
|
window.addEventListener('message', (payload) => {
|
|
136
136
|
if (payload.source === window)
|
|
137
137
|
return
|
|
138
|
+
if (payload.origin !== location.origin)
|
|
139
|
+
return
|
|
138
140
|
if (typeof payload.data !== 'string')
|
|
139
141
|
return
|
|
140
142
|
const { type, data } = JSON.parse(payload.data)
|
package/internals/Goto.vue
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import { computed, nextTick, ref } from 'vue'
|
|
2
|
+
import { computed, nextTick, ref, watch } from 'vue'
|
|
4
3
|
import { go, total } from '../logic/nav'
|
|
5
4
|
import { showGotoDialog } from '../state'
|
|
6
5
|
|
|
@@ -19,10 +18,21 @@ function close() {
|
|
|
19
18
|
showGotoDialog.value = false
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
watch(showGotoDialog, async(show) => {
|
|
22
|
+
if (show) {
|
|
23
|
+
await nextTick()
|
|
24
|
+
text.value = ''
|
|
25
|
+
input.value?.focus()
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
input.value?.blur()
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
// remove the g character coming from the key that triggered showGotoDialog (e.g. in Firefox)
|
|
33
|
+
watch(text, (t) => {
|
|
34
|
+
if (t.match(/^[^0-9]/))
|
|
35
|
+
text.value = text.value.substr(1)
|
|
26
36
|
})
|
|
27
37
|
</script>
|
|
28
38
|
|
|
@@ -38,7 +48,7 @@ whenever(showGotoDialog, async() => {
|
|
|
38
48
|
<input
|
|
39
49
|
ref="input"
|
|
40
50
|
v-model="text"
|
|
41
|
-
type="
|
|
51
|
+
type="text"
|
|
42
52
|
:disabled="!showGotoDialog"
|
|
43
53
|
class="outline-none bg-transparent"
|
|
44
54
|
placeholder="Goto..."
|
|
@@ -49,16 +59,3 @@ whenever(showGotoDialog, async() => {
|
|
|
49
59
|
>
|
|
50
60
|
</div>
|
|
51
61
|
</template>
|
|
52
|
-
|
|
53
|
-
<style scoped>
|
|
54
|
-
input::-webkit-outer-spin-button,
|
|
55
|
-
input::-webkit-inner-spin-button {
|
|
56
|
-
-webkit-appearance: none;
|
|
57
|
-
margin: 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Firefox */
|
|
61
|
-
input[type="number"] {
|
|
62
|
-
-moz-appearance: textfield;
|
|
63
|
-
}
|
|
64
|
-
</style>
|
package/internals/MenuButton.vue
CHANGED
|
@@ -5,7 +5,9 @@ import { getFilename, recordCamera, recorder, recordingName } from '../logic/rec
|
|
|
5
5
|
import Modal from './Modal.vue'
|
|
6
6
|
import DevicesList from './DevicesList.vue'
|
|
7
7
|
|
|
8
|
-
const emit = defineEmits<{
|
|
8
|
+
const emit = defineEmits<{
|
|
9
|
+
(e: any): void
|
|
10
|
+
}>()
|
|
9
11
|
const props = defineProps({
|
|
10
12
|
modelValue: {
|
|
11
13
|
default: false,
|
package/internals/SelectList.vue
CHANGED
|
@@ -3,7 +3,9 @@ import { useVModel } from '@vueuse/core'
|
|
|
3
3
|
import type { PropType } from 'vue'
|
|
4
4
|
import type { SelectionItem } from './types'
|
|
5
5
|
|
|
6
|
-
const emit = defineEmits<{
|
|
6
|
+
const emit = defineEmits<{
|
|
7
|
+
(e: any): void
|
|
8
|
+
}>()
|
|
7
9
|
const props = defineProps({
|
|
8
10
|
modelValue: {
|
|
9
11
|
type: [Object, String, Number] as PropType<any>,
|
|
@@ -60,12 +60,12 @@ const cardWidth = computed(() => {
|
|
|
60
60
|
:clicks-disabled="true"
|
|
61
61
|
class="pointer-events-none"
|
|
62
62
|
>
|
|
63
|
-
<DrawingPreview :page="+route.path" />
|
|
64
63
|
<SlideWrapper
|
|
65
64
|
:is="route?.component"
|
|
66
65
|
:clicks-disabled="true"
|
|
67
66
|
:class="getSlideClass(route)"
|
|
68
67
|
/>
|
|
68
|
+
<DrawingPreview :page="+route.path" />
|
|
69
69
|
</SlideContainer>
|
|
70
70
|
</div>
|
|
71
71
|
<div
|
package/logic/recording.ts
CHANGED
|
@@ -58,6 +58,8 @@ export function useRecording() {
|
|
|
58
58
|
const config: RecorderOptions = {
|
|
59
59
|
type: 'video',
|
|
60
60
|
bitsPerSecond: 4 * 256 * 8 * 1024,
|
|
61
|
+
// Extending recording limit as default is only 1h (see https://github.com/muaz-khan/RecordRTC/issues/144)
|
|
62
|
+
timeSlice: 24 * 60 * 60 * 1000,
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
async function toggleAvatar() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/client",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.8",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"homepage": "https://sli.dev",
|
|
6
6
|
"bugs": "https://github.com/slidevjs/slidev/issues",
|
|
@@ -13,27 +13,27 @@
|
|
|
13
13
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@antfu/utils": "^0.5.0",
|
|
16
|
-
"@slidev/parser": "0.28.
|
|
17
|
-
"@slidev/types": "0.28.
|
|
18
|
-
"@vueuse/core": "^7.6.
|
|
16
|
+
"@slidev/parser": "0.28.8",
|
|
17
|
+
"@slidev/types": "0.28.8",
|
|
18
|
+
"@vueuse/core": "^7.6.2",
|
|
19
19
|
"@vueuse/head": "^0.7.5",
|
|
20
20
|
"@vueuse/motion": "^2.0.0-beta.9",
|
|
21
|
-
"codemirror": "^5.65.
|
|
21
|
+
"codemirror": "^5.65.2",
|
|
22
22
|
"drauu": "^0.2.1",
|
|
23
23
|
"file-saver": "^2.0.5",
|
|
24
24
|
"js-base64": "^3.7.2",
|
|
25
25
|
"js-yaml": "^4.1.0",
|
|
26
26
|
"katex": "^0.15.2",
|
|
27
|
-
"mermaid": "8.
|
|
27
|
+
"mermaid": "^8.14.0",
|
|
28
28
|
"monaco-editor": "^0.32.1",
|
|
29
|
-
"nanoid": "^3.
|
|
29
|
+
"nanoid": "^3.3.1",
|
|
30
30
|
"prettier": "^2.5.1",
|
|
31
31
|
"recordrtc": "^5.6.2",
|
|
32
32
|
"resolve": "^1.22.0",
|
|
33
|
-
"vite-plugin-windicss": "^1.7.
|
|
34
|
-
"vue": "^3.2.
|
|
33
|
+
"vite-plugin-windicss": "^1.7.1",
|
|
34
|
+
"vue": "^3.2.31",
|
|
35
35
|
"vue-router": "^4.0.12",
|
|
36
|
-
"windicss": "^3.4.
|
|
36
|
+
"windicss": "^3.4.4"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=14.0.0"
|