@slidev/client 0.44.0 → 0.45.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.
@@ -118,6 +118,24 @@ export default defineComponent({
118
118
  if (defaults.length === 1 && listTags.includes(defaults[0].type as string) && Array.isArray(defaults[0].children))
119
119
  return h(defaults[0], {}, [mapChildren(defaults[0].children)[0]])
120
120
 
121
+ if (defaults.length === 1 && defaults[0].type as string === 'table') {
122
+ const tableNode = defaults[0]
123
+ if (Array.isArray(tableNode.children)) {
124
+ return h(tableNode, {}, tableNode.children.map((i) => {
125
+ if (!isVNode(i)) {
126
+ return i
127
+ }
128
+ else {
129
+ if (i.type === 'tbody' && Array.isArray(i.children))
130
+ return h(i, {}, [mapChildren(i.children)[0]])
131
+
132
+ else
133
+ return h(i)
134
+ }
135
+ }))
136
+ }
137
+ }
138
+
121
139
  return mapChildren(defaults)[0]
122
140
  },
123
141
  })
@@ -4,7 +4,7 @@ import { useDraggable, useLocalStorage } from '@vueuse/core'
4
4
 
5
5
  const props = defineProps<{
6
6
  storageKey?: string
7
- initial?: { x: number; y: number }
7
+ initial?: { x: number, y: number }
8
8
  }>()
9
9
 
10
10
  const el = ref<HTMLElement | null>(null)
@@ -19,6 +19,7 @@ import Goto from './Goto.vue'
19
19
  import SlidesShow from './SlidesShow.vue'
20
20
  import SlideWrapper from './SlideWrapper'
21
21
  import DrawingControls from './DrawingControls.vue'
22
+ import HiddenText from './HiddenText.vue'
22
23
 
23
24
  const main = ref<HTMLDivElement>()
24
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@antfu/utils": "^0.7.6",
23
- "@unhead/vue": "^1.8.4",
24
- "@unocss/reset": "^0.57.4",
23
+ "@unhead/vue": "^1.8.8",
24
+ "@unocss/reset": "^0.58.0",
25
25
  "@vueuse/core": "^10.6.1",
26
26
  "@vueuse/math": "^10.6.1",
27
27
  "@vueuse/motion": "^2.0.0",
@@ -35,20 +35,20 @@
35
35
  "katex": "^0.16.9",
36
36
  "mermaid": "^10.6.1",
37
37
  "monaco-editor": "^0.37.1",
38
- "nanoid": "^5.0.3",
38
+ "nanoid": "^5.0.4",
39
39
  "prettier": "^3.1.0",
40
40
  "recordrtc": "^5.6.2",
41
41
  "resolve": "^1.22.8",
42
- "unocss": "^0.57.4",
43
- "vite-plugin-windicss": "^1.9.1",
44
- "vue": "^3.3.8",
42
+ "unocss": "^0.58.0",
43
+ "vite-plugin-windicss": "^1.9.2",
44
+ "vue": "^3.3.9",
45
45
  "vue-router": "^4.2.5",
46
46
  "vue-starport": "^0.4.0",
47
47
  "windicss": "^3.5.6",
48
- "@slidev/parser": "0.44.0",
49
- "@slidev/types": "0.44.0"
48
+ "@slidev/parser": "0.45.0",
49
+ "@slidev/types": "0.45.0"
50
50
  },
51
51
  "devDependencies": {
52
- "vite": "^4.5.0"
52
+ "vite": "^5.0.5"
53
53
  }
54
54
  }