create-slidev 0.48.0-beta.12 → 0.48.0-beta.14

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