@slidev/client 0.46.2 → 0.46.3
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.
|
@@ -34,6 +34,10 @@ const props = defineProps({
|
|
|
34
34
|
type: Number,
|
|
35
35
|
default: 1,
|
|
36
36
|
},
|
|
37
|
+
at: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: undefined,
|
|
40
|
+
},
|
|
37
41
|
})
|
|
38
42
|
|
|
39
43
|
const clicks = inject(injectionClicks)
|
|
@@ -44,7 +48,7 @@ const el = ref<HTMLDivElement>()
|
|
|
44
48
|
const vm = getCurrentInstance()
|
|
45
49
|
|
|
46
50
|
onMounted(() => {
|
|
47
|
-
const prev = elements?.value.length
|
|
51
|
+
const prev = props.at == null ? elements?.value.length : props.at
|
|
48
52
|
const index = computed(() => {
|
|
49
53
|
if (disabled?.value)
|
|
50
54
|
return props.ranges.length - 1
|
|
@@ -70,7 +74,7 @@ onMounted(() => {
|
|
|
70
74
|
|
|
71
75
|
// For each row we extract the individual equation rows
|
|
72
76
|
const equationRowsOfEachParent = Array.from(equationParents)
|
|
73
|
-
.map(item => Array.from(item.querySelectorAll('.vlist-t > .vlist-r > .vlist > span > .mord')))
|
|
77
|
+
.map(item => Array.from(item.querySelectorAll(':scope > .vlist-t > .vlist-r > .vlist > span > .mord')))
|
|
74
78
|
// This list maps rows from different parents to line them up
|
|
75
79
|
const lines: Element[][] = []
|
|
76
80
|
for (const equationRowParent of equationRowsOfEachParent) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/client",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.3",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,25 +30,25 @@
|
|
|
30
30
|
"drauu": "^0.3.7",
|
|
31
31
|
"file-saver": "^2.0.5",
|
|
32
32
|
"fuse.js": "^7.0.0",
|
|
33
|
-
"js-base64": "^3.7.
|
|
33
|
+
"js-base64": "^3.7.6",
|
|
34
34
|
"js-yaml": "^4.1.0",
|
|
35
35
|
"katex": "^0.16.9",
|
|
36
36
|
"mermaid": "^10.7.0",
|
|
37
37
|
"monaco-editor": "^0.37.1",
|
|
38
38
|
"nanoid": "^5.0.4",
|
|
39
|
-
"prettier": "^3.2.
|
|
39
|
+
"prettier": "^3.2.4",
|
|
40
40
|
"recordrtc": "^5.6.2",
|
|
41
41
|
"resolve": "^1.22.8",
|
|
42
42
|
"unocss": "^0.58.3",
|
|
43
43
|
"vite-plugin-windicss": "^1.9.3",
|
|
44
|
-
"vue": "^3.4.
|
|
44
|
+
"vue": "^3.4.15",
|
|
45
45
|
"vue-router": "^4.2.5",
|
|
46
46
|
"vue-starport": "^0.4.0",
|
|
47
47
|
"windicss": "^3.5.6",
|
|
48
|
-
"@slidev/
|
|
49
|
-
"@slidev/
|
|
48
|
+
"@slidev/parser": "0.46.3",
|
|
49
|
+
"@slidev/types": "0.46.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"vite": "^5.0.
|
|
52
|
+
"vite": "^5.0.12"
|
|
53
53
|
}
|
|
54
54
|
}
|