@slidev/client 0.49.23 → 0.49.25

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.
@@ -115,6 +115,7 @@ onMounted(async () => {
115
115
  fontSize: 11.5,
116
116
  fontFamily: 'var(--slidev-code-font-family)',
117
117
  scrollBeyondLastLine: false,
118
+ useInlineViewWhenSpaceIsLimited: false,
118
119
  ...editorOptions,
119
120
  ...props.editorOptions,
120
121
  } satisfies monaco.editor.IStandaloneEditorConstructionOptions & monaco.editor.IDiffEditorConstructionOptions
@@ -69,15 +69,15 @@ export function useDragElementsUpdater(no: number) {
69
69
 
70
70
  section = type === 'prop'
71
71
  // eslint-disable-next-line regexp/no-super-linear-backtracking
72
- ? section.replace(/<(v-?drag-?\w*)(.*?)>/gi, (full, tag, attrs, index) => {
72
+ ? section.replace(/<(v-?drag-?\w*)(.*?)(\/)?>/gi, (full, tag, attrs, selfClose, index) => {
73
73
  if (index === idx) {
74
74
  replaced = true
75
75
  const posMatch = attrs.match(/pos=".*?"/)
76
76
  if (!posMatch)
77
- return `<${tag}${ensureSuffix(' ', attrs)}pos="${posStr}">`
77
+ return `<${tag}${ensureSuffix(' ', attrs)}pos="${posStr}"${selfClose}>`
78
78
  const start = posMatch.index
79
79
  const end = start + posMatch[0].length
80
- return `<${tag}${attrs.slice(0, start)}pos="${posStr}"${attrs.slice(end)}>`
80
+ return `<${tag}${attrs.slice(0, start)}pos="${posStr}"${attrs.slice(end)}${selfClose}>`
81
81
  }
82
82
  return full
83
83
  })
@@ -28,8 +28,7 @@ getHighlighter().then(h => highlight.value = h)
28
28
  <style scoped>
29
29
  :deep(code),
30
30
  textarea {
31
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
32
- 'Liberation Mono', 'Courier New', monospace;
31
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
33
32
  font-feature-settings: normal;
34
33
  font-variation-settings: normal;
35
34
  font-size: 1em;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
3
  "type": "module",
4
- "version": "0.49.23",
4
+ "version": "0.49.25",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -29,17 +29,17 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@antfu/utils": "^0.7.10",
32
- "@iconify-json/carbon": "^1.1.36",
33
- "@iconify-json/ph": "^1.1.13",
34
- "@iconify-json/svg-spinners": "^1.1.2",
35
- "@shikijs/monaco": "^1.11.1",
36
- "@shikijs/vitepress-twoslash": "^1.11.1",
32
+ "@iconify-json/carbon": "^1.1.37",
33
+ "@iconify-json/ph": "^1.1.14",
34
+ "@iconify-json/svg-spinners": "^1.1.3",
35
+ "@shikijs/monaco": "^1.13.0",
36
+ "@shikijs/vitepress-twoslash": "^1.13.0",
37
37
  "@slidev/rough-notation": "^0.1.0",
38
- "@typescript/ata": "^0.9.6",
38
+ "@typescript/ata": "^0.9.7",
39
39
  "@unhead/vue": "^1.9.16",
40
- "@unocss/reset": "^0.61.5",
41
- "@vueuse/core": "^10.11.0",
42
- "@vueuse/math": "^10.11.0",
40
+ "@unocss/reset": "^0.62.2",
41
+ "@vueuse/core": "^11.0.0",
42
+ "@vueuse/math": "^11.0.0",
43
43
  "@vueuse/motion": "^2.2.3",
44
44
  "drauu": "^0.4.0",
45
45
  "file-saver": "^2.0.5",
@@ -51,17 +51,17 @@
51
51
  "monaco-editor": "^0.50.0",
52
52
  "prettier": "^3.3.3",
53
53
  "recordrtc": "^5.6.2",
54
- "shiki": "^1.11.1",
54
+ "shiki": "^1.13.0",
55
55
  "shiki-magic-move": "^0.4.3",
56
56
  "typescript": "^5.5.4",
57
- "unocss": "^0.61.5",
58
- "vue": "^3.4.33",
59
- "vue-router": "^4.4.0",
60
- "yaml": "^2.4.5",
61
- "@slidev/parser": "0.49.23",
62
- "@slidev/types": "0.49.23"
57
+ "unocss": "^0.62.2",
58
+ "vue": "^3.4.38",
59
+ "vue-router": "^4.4.3",
60
+ "yaml": "^2.5.0",
61
+ "@slidev/parser": "0.49.25",
62
+ "@slidev/types": "0.49.25"
63
63
  },
64
64
  "devDependencies": {
65
- "vite": "^5.3.4"
65
+ "vite": "^5.4.1"
66
66
  }
67
67
  }
package/styles/index.css CHANGED
@@ -81,8 +81,7 @@ html {
81
81
  user-select: none;
82
82
  font-size: 0.7em;
83
83
  display: inline-flex;
84
- --uno: text-violet bg-violet/10 px1 font-mono rounded items-center border
85
- border-transparent;
84
+ --uno: text-violet bg-violet/10 px1 font-mono rounded items-center border border-transparent;
86
85
  }
87
86
  .slidev-note-click-mark.slidev-note-click-mark-active {
88
87
  --uno: border border-violet;