create-slidev 0.48.0-beta.11 → 0.48.0-beta.13

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": "create-slidev",
3
3
  "type": "module",
4
- "version": "0.48.0-beta.11",
4
+ "version": "0.48.0-beta.13",
5
5
  "description": "Create starter template for Slidev",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -8,9 +8,9 @@
8
8
  "export": "slidev export"
9
9
  },
10
10
  "dependencies": {
11
- "@slidev/cli": "^0.48.0-beta.11",
11
+ "@slidev/cli": "^0.48.0-beta.13",
12
12
  "@slidev/theme-default": "latest",
13
13
  "@slidev/theme-seriph": "latest",
14
- "vue": "^3.4.19"
14
+ "vue": "^3.4.20"
15
15
  }
16
16
  }
@@ -166,6 +166,69 @@ doubled.value = 2
166
166
  }
167
167
  </style>
168
168
 
169
+ <!--
170
+ Notes can also sync with clicks
171
+
172
+ [click] This will be highlighted after the first click
173
+
174
+ [click] Highlighted with `count = ref(0)`
175
+
176
+ [click:3] Last click (skip two clicks)
177
+ -->
178
+
179
+ ---
180
+
181
+ # Shiki Magic Move
182
+
183
+ (this feature is still experimental)
184
+
185
+ Powered by [shiki-magic-move](https://shiki-magic-move.netlify.app/), Slidev supports animations across multiple code snippets.
186
+
187
+ Add multiple code blocks and wrap them with <code>````md magic-move</code> (four backticks) to enable the magic move. For example:
188
+
189
+ ````md magic-move
190
+ ```ts
191
+ const author = reactive({
192
+ name: 'John Doe',
193
+ books: [
194
+ 'Vue 2 - Advanced Guide',
195
+ 'Vue 3 - Basic Guide',
196
+ 'Vue 4 - The Mystery'
197
+ ]
198
+ })
199
+ ```
200
+ ```ts
201
+ export default {
202
+ data() {
203
+ return {
204
+ author: {
205
+ name: 'John Doe',
206
+ books: [
207
+ 'Vue 2 - Advanced Guide',
208
+ 'Vue 3 - Basic Guide',
209
+ 'Vue 4 - The Mystery'
210
+ ]
211
+ }
212
+ }
213
+ }
214
+ }
215
+ ```
216
+ ```ts
217
+ export default {
218
+ data: () => ({
219
+ author: {
220
+ name: 'John Doe',
221
+ books: [
222
+ 'Vue 2 - Advanced Guide',
223
+ 'Vue 3 - Basic Guide',
224
+ 'Vue 4 - The Mystery'
225
+ ]
226
+ }
227
+ })
228
+ }
229
+ ```
230
+ ````
231
+
169
232
  ---
170
233
 
171
234
  # Components