@slidev/client 51.0.1 → 51.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
3
  "type": "module",
4
- "version": "51.0.1",
4
+ "version": "51.1.0",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -28,42 +28,43 @@
28
28
  "node": ">=18.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@antfu/utils": "^8.0.0",
31
+ "@antfu/utils": "^8.1.0",
32
32
  "@iconify-json/carbon": "^1.2.5",
33
33
  "@iconify-json/ph": "^1.2.2",
34
34
  "@iconify-json/svg-spinners": "^1.2.2",
35
- "@shikijs/monaco": "^1.26.1",
36
- "@shikijs/vitepress-twoslash": "^1.26.1",
35
+ "@shikijs/engine-javascript": "^2.1.0",
36
+ "@shikijs/monaco": "^2.1.0",
37
+ "@shikijs/vitepress-twoslash": "^2.1.0",
37
38
  "@slidev/rough-notation": "^0.1.0",
38
39
  "@typescript/ata": "^0.9.7",
39
- "@unhead/vue": "^1.11.15",
40
- "@unocss/reset": "^65.4.0",
41
- "@vueuse/core": "^12.4.0",
42
- "@vueuse/math": "^12.4.0",
40
+ "@unhead/vue": "^1.11.18",
41
+ "@unocss/reset": "^65.4.3",
42
+ "@vueuse/core": "^12.5.0",
43
+ "@vueuse/math": "^12.5.0",
43
44
  "@vueuse/motion": "^2.2.6",
44
45
  "drauu": "^0.4.2",
45
46
  "file-saver": "^2.0.5",
46
47
  "floating-vue": "^5.2.2",
47
48
  "fuse.js": "^7.0.0",
48
- "katex": "^0.16.20",
49
+ "katex": "^0.16.21",
49
50
  "lz-string": "^1.5.0",
50
51
  "mermaid": "^11.4.1",
51
52
  "monaco-editor": "0.51.0",
52
- "nanotar": "^0.1.1",
53
+ "nanotar": "^0.2.0",
53
54
  "pptxgenjs": "^3.12.0",
54
55
  "prettier": "^3.4.2",
55
56
  "recordrtc": "^5.6.2",
56
- "shiki": "^1.26.1",
57
- "shiki-magic-move": "^0.5.2",
57
+ "shiki": "^2.1.0",
58
+ "shiki-magic-move": "^1.0.0",
58
59
  "typescript": "^5.7.3",
59
- "unocss": "^65.4.0",
60
+ "unocss": "^65.4.3",
60
61
  "vue": "^3.5.13",
61
62
  "vue-router": "^4.5.0",
62
63
  "yaml": "^2.7.0",
63
- "@slidev/parser": "51.0.1",
64
- "@slidev/types": "51.0.1"
64
+ "@slidev/parser": "51.1.0",
65
+ "@slidev/types": "51.1.0"
65
66
  },
66
67
  "devDependencies": {
67
- "vite": "^6.0.7"
68
+ "vite": "^6.0.11"
68
69
  }
69
70
  }
package/pages/export.vue CHANGED
@@ -253,7 +253,7 @@ if (import.meta.hot) {
253
253
 
254
254
  <div border="~ main rounded-lg" p3 flex="~ col gap-2" :class="isScreenshotSupported ? '' : 'border-orange'">
255
255
  <h2>Export as Images</h2>
256
- <div v-if="!isScreenshotSupported" class="min-w-full w-0 text-orange/100 p-1 mb--4 bg-orange/10 rounded">
256
+ <div v-if="!isScreenshotSupported" class="min-w-full w-0 text-orange/100 p-1 mb-2 bg-orange/10 rounded">
257
257
  <span class="i-carbon:warning-alt inline-block mb--.5" />
258
258
  Your browser may not support image capturing.
259
259
  If you encounter issues, please use a modern Chromium-based browser,
@@ -131,10 +131,10 @@ function runJavaScript(code: string): CodeRunnerOutputs {
131
131
  // JSON.stringify omits any keys with a value of undefined. To get around this, we replace undefined with the text __undefined__ and then do a global replace using regex back to keyword undefined
132
132
  textRep
133
133
  = prefix
134
- + JSON.stringify(arg, (_, value) => (value === undefined ? '__undefined__' : value), 2).replace(
135
- /"__undefined__"/g,
136
- 'undefined',
137
- )
134
+ + JSON.stringify(arg, (_, value) => (value === undefined ? '__undefined__' : value), 2).replace(
135
+ /"__undefined__"/g,
136
+ 'undefined',
137
+ )
138
138
 
139
139
  textRep = String(textRep)
140
140
  }