@slidev/client 52.0.0 → 52.1.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.
@@ -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": "52.0.0",
4
+ "version": "52.1.0",
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.10",
32
+ "@iconify-json/carbon": "^1.2.11",
33
33
  "@iconify-json/ph": "^1.2.2",
34
34
  "@iconify-json/svg-spinners": "^1.2.2",
35
- "@shikijs/engine-javascript": "^3.7.0",
36
- "@shikijs/monaco": "^3.7.0",
37
- "@shikijs/vitepress-twoslash": "^3.7.0",
35
+ "@shikijs/engine-javascript": "^3.8.1",
36
+ "@shikijs/monaco": "^3.8.1",
37
+ "@shikijs/vitepress-twoslash": "^3.8.1",
38
38
  "@slidev/rough-notation": "^0.1.0",
39
39
  "@typescript/ata": "^0.9.8",
40
- "@unhead/vue": "^2.0.11",
41
- "@unocss/reset": "^66.3.2",
42
- "@vueuse/core": "^13.4.0",
43
- "@vueuse/math": "^13.4.0",
40
+ "@unhead/vue": "^2.0.12",
41
+ "@unocss/reset": "^66.3.3",
42
+ "@vueuse/core": "^13.5.0",
43
+ "@vueuse/math": "^13.5.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.7.0",
51
+ "mermaid": "^11.9.0",
52
52
  "monaco-editor": "^0.52.2",
53
53
  "nanotar": "^0.2.0",
54
54
  "pptxgenjs": "^4.0.1",
55
55
  "prettier": "^3.6.2",
56
56
  "recordrtc": "^5.6.2",
57
- "shiki": "^3.7.0",
57
+ "shiki": "^3.8.1",
58
58
  "shiki-magic-move": "^1.1.0",
59
59
  "typescript": "^5.8.3",
60
- "unocss": "^66.3.2",
61
- "vue": "^3.5.17",
60
+ "unocss": "^66.3.3",
61
+ "vue": "^3.5.18",
62
62
  "vue-router": "^4.5.1",
63
63
  "yaml": "^2.8.0",
64
- "@slidev/parser": "52.0.0",
65
- "@slidev/types": "52.0.0"
64
+ "@slidev/types": "52.1.0",
65
+ "@slidev/parser": "52.1.0"
66
66
  },
67
67
  "devDependencies": {
68
- "vite": "^7.0.0"
68
+ "vite": "^7.0.6"
69
69
  }
70
70
  }
package/styles/code.css CHANGED
@@ -123,6 +123,7 @@ html:not(.dark) .shiki span {
123
123
  }
124
124
 
125
125
  /* Inline Code */
126
+ .slidev-note :not(pre) > code,
126
127
  .slidev-layout :not(pre) > code {
127
128
  font-size: 0.9em;
128
129
  background: var(--slidev-code-background);
@@ -130,6 +131,11 @@ html:not(.dark) .shiki span {
130
131
  --uno: font-light py-0.5 px-1.5;
131
132
  }
132
133
 
134
+ .slidev-note :not(pre) > code:after,
135
+ .slidev-note :not(pre) > code:before {
136
+ content: '';
137
+ }
138
+
133
139
  .slidev-layout :not(pre) > code:before {
134
140
  margin-right: -0.08em;
135
141
  }
package/styles/index.css CHANGED
@@ -144,3 +144,7 @@ html {
144
144
  transform: scale(calc(1 * var(--slidev-slide-scale)));
145
145
  transform-origin: 30px top;
146
146
  }
147
+
148
+ .slidev-note ul {
149
+ margin: 0;
150
+ }