@slidev/client 0.28.2 → 0.28.6

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.
@@ -18,9 +18,7 @@ withDefaults(defineProps<{
18
18
  <template>
19
19
  <ul v-if="list && list.length > 0" :class="['slidev-toc-list', `slidev-toc-list-level-${level}`]">
20
20
  <li v-for="item in list" :key="item.path" :class="['slidev-toc-item', {'slidev-toc-item-active': item.active}, {'slidev-toc-item-parent-active': item.activeParent}]">
21
- <RouterLink :to="item.path">
22
- {{ item.title }}
23
- </RouterLink>
21
+ <RouterLink :to="item.path" v-html="item.title" />
24
22
  <TocList :level="level + 1" :list="item.children" />
25
23
  </li>
26
24
  </ul>
@@ -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)
@@ -2,7 +2,9 @@
2
2
  import { onClickOutside, useVModel } from '@vueuse/core'
3
3
  import { ref } from 'vue'
4
4
 
5
- const emit = defineEmits<{}>()
5
+ const emit = defineEmits<{
6
+ (e: any): void
7
+ }>()
6
8
  const props = defineProps({
7
9
  modelValue: {
8
10
  default: false,
@@ -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,
@@ -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>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
- "version": "0.28.2",
3
+ "version": "0.28.6",
4
4
  "description": "Presentation slides for developers",
5
5
  "homepage": "https://sli.dev",
6
6
  "bugs": "https://github.com/slidevjs/slidev/issues",
@@ -12,28 +12,28 @@
12
12
  "funding": "https://github.com/sponsors/antfu",
13
13
  "author": "antfu <anthonyfu117@hotmail.com>",
14
14
  "dependencies": {
15
- "@antfu/utils": "^0.4.0",
16
- "@slidev/parser": "0.28.2",
17
- "@slidev/types": "0.28.2",
18
- "@vueuse/core": "^7.5.3",
19
- "@vueuse/head": "^0.7.4",
15
+ "@antfu/utils": "^0.5.0",
16
+ "@slidev/parser": "0.28.6",
17
+ "@slidev/types": "0.28.6",
18
+ "@vueuse/core": "^7.6.0",
19
+ "@vueuse/head": "^0.7.5",
20
20
  "@vueuse/motion": "^2.0.0-beta.9",
21
- "codemirror": "^5.65.0",
21
+ "codemirror": "^5.65.1",
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
27
  "mermaid": "8.13.0",
28
- "monaco-editor": "^0.31.1",
29
- "nanoid": "^3.1.32",
28
+ "monaco-editor": "^0.32.1",
29
+ "nanoid": "^3.2.0",
30
30
  "prettier": "^2.5.1",
31
31
  "recordrtc": "^5.6.2",
32
- "resolve": "^1.21.0",
33
- "vite-plugin-windicss": "^1.6.2",
34
- "vue": "^3.2.26",
32
+ "resolve": "^1.22.0",
33
+ "vite-plugin-windicss": "^1.7.0",
34
+ "vue": "^3.2.30",
35
35
  "vue-router": "^4.0.12",
36
- "windicss": "^3.4.2"
36
+ "windicss": "^3.4.3"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=14.0.0"