@slidev/client 0.51.0-beta.3 → 51.0.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.
@@ -28,7 +28,7 @@ const value = defineModel<number>('modelValue', {
28
28
  />
29
29
  </div>
30
30
  <div relative h-22px>
31
- <input v-model.number="value" type="number" v-bind="props" border="~ base rounded" m0 w-20 bg-gray:5 pl2 align-top text-sm>
31
+ <input v-model.number="value" type="number" v-bind="props" border="~ main rounded" m0 w-20 bg-gray:5 pl2 align-top text-sm>
32
32
  <span v-if="props.unit" pointer-events-none absolute right-1 top-0.5 text-xs op25>{{ props.unit }}</span>
33
33
  </div>
34
34
  </template>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
3
  "type": "module",
4
- "version": "0.51.0-beta.3",
4
+ "version": "51.0.0",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -28,24 +28,24 @@
28
28
  "node": ">=18.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@antfu/utils": "^0.7.10",
31
+ "@antfu/utils": "^8.0.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.24.4",
36
- "@shikijs/vitepress-twoslash": "^1.24.4",
35
+ "@shikijs/monaco": "^1.26.1",
36
+ "@shikijs/vitepress-twoslash": "^1.26.1",
37
37
  "@slidev/rough-notation": "^0.1.0",
38
38
  "@typescript/ata": "^0.9.7",
39
- "@unhead/vue": "^1.11.14",
40
- "@unocss/reset": "^0.65.3",
41
- "@vueuse/core": "^12.2.0",
42
- "@vueuse/math": "^12.2.0",
39
+ "@unhead/vue": "^1.11.15",
40
+ "@unocss/reset": "^0.65.4",
41
+ "@vueuse/core": "^12.3.0",
42
+ "@vueuse/math": "^12.3.0",
43
43
  "@vueuse/motion": "^2.2.6",
44
44
  "drauu": "^0.4.2",
45
45
  "file-saver": "^2.0.5",
46
46
  "floating-vue": "^5.2.2",
47
47
  "fuse.js": "^7.0.0",
48
- "katex": "^0.16.18",
48
+ "katex": "^0.16.19",
49
49
  "lz-string": "^1.5.0",
50
50
  "mermaid": "^11.4.1",
51
51
  "monaco-editor": "0.51.0",
@@ -53,17 +53,17 @@
53
53
  "pptxgenjs": "^3.12.0",
54
54
  "prettier": "^3.4.2",
55
55
  "recordrtc": "^5.6.2",
56
- "shiki": "^1.24.4",
56
+ "shiki": "^1.26.1",
57
57
  "shiki-magic-move": "^0.5.2",
58
- "typescript": "5.6.3",
59
- "unocss": "^0.65.3",
58
+ "typescript": "^5.7.3",
59
+ "unocss": "^0.65.4",
60
60
  "vue": "^3.5.13",
61
61
  "vue-router": "^4.5.0",
62
- "yaml": "^2.6.1",
63
- "@slidev/parser": "0.51.0-beta.3",
64
- "@slidev/types": "0.51.0-beta.3"
62
+ "yaml": "^2.7.0",
63
+ "@slidev/parser": "51.0.0",
64
+ "@slidev/types": "51.0.0"
65
65
  },
66
66
  "devDependencies": {
67
- "vite": "^6.0.6"
67
+ "vite": "^6.0.7"
68
68
  }
69
69
  }
package/pages/export.vue CHANGED
@@ -275,8 +275,8 @@ if (import.meta.hot) {
275
275
  Clear Captured Images
276
276
  </button>
277
277
  <button v-else class="slidev-form-button flex justify-center items-center gap-2" @click="capturePngs">
278
- <div class="i-carbon:camera-action inline-block text-xl" />
279
- Pre-capture Slides as Images
278
+ <div class="i-carbon:drop-photo inline-block text-xl" />
279
+ Pre-capture slides as Images
280
280
  </button>
281
281
  <FormItem title="Delay" description="Delay between capturing each slide in milliseconds.<br>Increase this value if slides are captured incompletely. <br>(Not related to PDF export)">
282
282
  <input v-model="captureDelay" type="number" step="50" min="50">
@@ -127,16 +127,17 @@ onMounted(() => {
127
127
  <template v-if="mainSlideMode === 'mirror'">
128
128
  <ScreenCaptureMirror />
129
129
  </template>
130
- <template v-else>
131
- <SlideContainer
132
- key="main"
133
- class="p-2 lg:p-4 flex-auto"
134
- is-main
135
- @contextmenu="onContextMenu"
136
- >
137
- <SlidesShow render-context="presenter" />
138
- </SlideContainer>
139
- </template>
130
+
131
+ <!-- We use v-show here to still infer the clicks context -->
132
+ <SlideContainer
133
+ v-show="mainSlideMode === 'slides'"
134
+ key="main"
135
+ class="p-2 lg:p-4 flex-auto"
136
+ is-main
137
+ @contextmenu="onContextMenu"
138
+ >
139
+ <SlidesShow render-context="presenter" />
140
+ </SlideContainer>
140
141
 
141
142
  <ClicksSlider
142
143
  :key="currentSlideRoute?.no"
package/styles/index.css CHANGED
@@ -123,8 +123,8 @@ html {
123
123
 
124
124
  .slidev-form-button {
125
125
  --uno: text-white px-4 py-1 rounded border-b-2;
126
- --uno: 'bg-gray-400:50 border-gray-800:50';
127
- --uno: 'hover:(bg-gray-400:75 border-gray8:75)';
126
+ --uno: 'bg-gray-500 border-gray-700';
127
+ --uno: 'hover:(bg-gray-400 border-gray6)';
128
128
  }
129
129
  .slidev-form-button.primary {
130
130
  --uno: bg-teal-600 border-teal-800;