create-slidev 0.48.0-beta.15 → 0.48.0-beta.17

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.15",
4
+ "version": "0.48.0-beta.17",
5
5
  "description": "Create starter template for Slidev",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "export": "slidev export"
9
9
  },
10
10
  "dependencies": {
11
- "@slidev/cli": "^0.48.0-beta.15",
11
+ "@slidev/cli": "^0.48.0-beta.17",
12
12
  "@slidev/theme-default": "latest",
13
13
  "@slidev/theme-seriph": "latest",
14
14
  "vue": "^3.4.20"
@@ -16,6 +16,10 @@ defaults:
16
16
  transition: slide-left
17
17
  title: Welcome to Slidev
18
18
  mdc: true
19
+ monaco: true
20
+ monacoTypesSource: local # or cdn or none
21
+ monacoTypesAdditionalPackages:
22
+ - '@slidev/types'
19
23
  ---
20
24
 
21
25
  # Welcome to Slidev
@@ -313,6 +317,7 @@ You can add `v-click` to elements to add a click animation.
313
317
  <div v-click>
314
318
 
315
319
  This shows up when you click the slide:
320
+
316
321
  ```html
317
322
  <div v-click>This shows up when you click the slide.</div>
318
323
  ```
@@ -530,6 +535,18 @@ src: ./pages/multiple-entries.md
530
535
  hide: false
531
536
  ---
532
537
 
538
+ ---
539
+
540
+ # Monaco Editor
541
+
542
+ ```ts {monaco}
543
+ import { ref } from 'vue'
544
+ import hello from './external'
545
+
546
+ const code = ref('const a = 1')
547
+ hello()
548
+ ```
549
+
533
550
  ---
534
551
  layout: center
535
552
  class: text-center