@slidev/client 51.8.2 → 52.0.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.
@@ -277,7 +277,7 @@ const useNavState = createSharedComposable((): SlidevContextNavState => {
277
277
 
278
278
  const query = computed(() => {
279
279
  // eslint-disable-next-line ts/no-unused-expressions
280
- router.currentRoute.value.query
280
+ router?.currentRoute?.value?.query
281
281
  return new URLSearchParams(location.search)
282
282
  })
283
283
  const isPrintMode = computed(() => query.value.has('print') || currentRoute.name === 'export')
@@ -290,7 +290,7 @@ const useNavState = createSharedComposable((): SlidevContextNavState => {
290
290
  const hasPrimarySlide = computed(() => !!currentRoute.params.no)
291
291
  const currentSlideNo = computed(() => hasPrimarySlide.value ? getSlide(currentRoute.params.no as string)?.no ?? 1 : 1)
292
292
  const currentSlideRoute = computed(() => slides.value[currentSlideNo.value - 1])
293
- const printRange = ref(parseRangeString(slides.value.length, currentRoute.query.range as string | undefined))
293
+ const printRange = ref(parseRangeString(slides.value.length, currentRoute?.query?.range as string | undefined))
294
294
 
295
295
  const queryClicksRaw = useRouteQuery<string>('clicks', '0')
296
296
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
3
  "type": "module",
4
- "version": "51.8.2",
4
+ "version": "52.0.1",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -29,18 +29,18 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@antfu/utils": "^9.2.0",
32
- "@iconify-json/carbon": "^1.2.9",
32
+ "@iconify-json/carbon": "^1.2.10",
33
33
  "@iconify-json/ph": "^1.2.2",
34
34
  "@iconify-json/svg-spinners": "^1.2.2",
35
- "@shikijs/engine-javascript": "^3.6.0",
36
- "@shikijs/monaco": "^3.6.0",
37
- "@shikijs/vitepress-twoslash": "^3.6.0",
35
+ "@shikijs/engine-javascript": "^3.7.0",
36
+ "@shikijs/monaco": "^3.7.0",
37
+ "@shikijs/vitepress-twoslash": "^3.7.0",
38
38
  "@slidev/rough-notation": "^0.1.0",
39
39
  "@typescript/ata": "^0.9.8",
40
- "@unhead/vue": "^2.0.10",
41
- "@unocss/reset": "^66.2.0",
42
- "@vueuse/core": "^13.3.0",
43
- "@vueuse/math": "^13.3.0",
40
+ "@unhead/vue": "^2.0.11",
41
+ "@unocss/reset": "^66.3.2",
42
+ "@vueuse/core": "^13.4.0",
43
+ "@vueuse/math": "^13.4.0",
44
44
  "@vueuse/motion": "^3.0.3",
45
45
  "drauu": "^0.4.3",
46
46
  "file-saver": "^2.0.5",
@@ -48,23 +48,23 @@
48
48
  "fuse.js": "^7.1.0",
49
49
  "katex": "^0.16.22",
50
50
  "lz-string": "^1.5.0",
51
- "mermaid": "^11.6.0",
51
+ "mermaid": "^11.7.0",
52
52
  "monaco-editor": "^0.52.2",
53
53
  "nanotar": "^0.2.0",
54
- "pptxgenjs": "^4.0.0",
55
- "prettier": "^3.5.3",
54
+ "pptxgenjs": "^4.0.1",
55
+ "prettier": "^3.6.2",
56
56
  "recordrtc": "^5.6.2",
57
- "shiki": "^3.6.0",
57
+ "shiki": "^3.7.0",
58
58
  "shiki-magic-move": "^1.1.0",
59
59
  "typescript": "^5.8.3",
60
- "unocss": "^66.2.0",
61
- "vue": "^3.5.16",
60
+ "unocss": "^66.3.2",
61
+ "vue": "^3.5.17",
62
62
  "vue-router": "^4.5.1",
63
63
  "yaml": "^2.8.0",
64
- "@slidev/types": "51.8.2",
65
- "@slidev/parser": "51.8.2"
64
+ "@slidev/types": "52.0.1",
65
+ "@slidev/parser": "52.0.1"
66
66
  },
67
67
  "devDependencies": {
68
- "vite": "^6.3.5"
68
+ "vite": "^7.0.0"
69
69
  }
70
70
  }