@slidev/cli 52.14.2 → 52.15.1
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/dist/{build-DvtR2mFf.mjs → build-yk6Ejluk.mjs} +29 -21
- package/dist/cli.mjs +15 -9
- package/dist/{export-C4evmDwN.mjs → export-DA_9kPXd.mjs} +4 -3
- package/dist/index.mjs +3 -3
- package/dist/{resolver-B4CxEjJF.mjs → resolver-XedCEhxI.mjs} +2 -1
- package/dist/{serve-D_ugeQhq.mjs → serve-CYSWeFFN.mjs} +1 -1
- package/dist/{shared-ZIXcnTKJ.mjs → shared-ClfjhvJo.mjs} +486 -450
- package/package.json +32 -31
- package/skills/slidev/references/api-slide-hooks.md +2 -2
- package/skills/slidev/references/core-global-context.md +2 -2
- /package/skills/slidev/references/{syntax-mdc.md → syntax-comark.md} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "52.
|
|
4
|
+
"version": "52.15.1",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@antfu/ni": "^
|
|
46
|
+
"@antfu/ni": "^30.1.0",
|
|
47
47
|
"@antfu/utils": "^9.3.0",
|
|
48
|
-
"@comark/markdown-it": "^0.3.
|
|
49
|
-
"@iconify-json/carbon": "^1.2.
|
|
48
|
+
"@comark/markdown-it": "^0.3.4",
|
|
49
|
+
"@iconify-json/carbon": "^1.2.20",
|
|
50
50
|
"@iconify-json/ph": "^1.2.2",
|
|
51
51
|
"@iconify-json/svg-spinners": "^1.2.4",
|
|
52
52
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
53
|
-
"@shikijs/markdown-it": "^4.0.
|
|
54
|
-
"@shikijs/twoslash": "^4.0.
|
|
55
|
-
"@shikijs/vitepress-twoslash": "^4.0.
|
|
56
|
-
"@unocss/extractor-mdc": "^66.6.
|
|
57
|
-
"@unocss/reset": "^66.6.
|
|
58
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
59
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
53
|
+
"@shikijs/markdown-it": "^4.0.2",
|
|
54
|
+
"@shikijs/twoslash": "^4.0.2",
|
|
55
|
+
"@shikijs/vitepress-twoslash": "^4.0.2",
|
|
56
|
+
"@unocss/extractor-mdc": "^66.6.8",
|
|
57
|
+
"@unocss/reset": "^66.6.8",
|
|
58
|
+
"@vitejs/plugin-vue": "^6.0.6",
|
|
59
|
+
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
60
60
|
"ansis": "^4.2.0",
|
|
61
61
|
"chokidar": "^5.0.0",
|
|
62
62
|
"cli-progress": "^3.12.0",
|
|
@@ -65,22 +65,23 @@
|
|
|
65
65
|
"fast-glob": "^3.3.3",
|
|
66
66
|
"get-port-please": "^3.2.0",
|
|
67
67
|
"global-directory": "^5.0.0",
|
|
68
|
-
"htmlparser2": "^
|
|
68
|
+
"htmlparser2": "^12.0.0",
|
|
69
69
|
"is-installed-globally": "^1.0.0",
|
|
70
70
|
"jiti": "^2.6.1",
|
|
71
|
-
"katex": "^0.16.
|
|
71
|
+
"katex": "^0.16.45",
|
|
72
72
|
"local-pkg": "^1.1.2",
|
|
73
73
|
"lz-string": "^1.5.0",
|
|
74
74
|
"magic-string": "^0.30.21",
|
|
75
75
|
"magic-string-stack": "^1.1.0",
|
|
76
|
-
"markdown-exit": "^1.0.0-beta.
|
|
76
|
+
"markdown-exit": "^1.0.0-beta.9",
|
|
77
77
|
"markdown-it-footnote": "^4.0.0",
|
|
78
|
-
"
|
|
78
|
+
"markdown-it-github-alerts": "^1.0.1",
|
|
79
|
+
"mlly": "^1.8.2",
|
|
79
80
|
"monaco-editor": "^0.55.1",
|
|
80
81
|
"obug": "^2.1.1",
|
|
81
82
|
"open": "^11.0.0",
|
|
82
83
|
"pdf-lib": "^1.17.1",
|
|
83
|
-
"picomatch": "^4.0.
|
|
84
|
+
"picomatch": "^4.0.4",
|
|
84
85
|
"plantuml-encoder": "^1.4.0",
|
|
85
86
|
"postcss-nested": "^7.0.2",
|
|
86
87
|
"pptxgenjs": "^4.0.1",
|
|
@@ -89,34 +90,34 @@
|
|
|
89
90
|
"resolve-from": "^5.0.0",
|
|
90
91
|
"resolve-global": "^2.0.0",
|
|
91
92
|
"semver": "^7.7.4",
|
|
92
|
-
"shiki": "^4.0.
|
|
93
|
-
"shiki-magic-move": "^1.
|
|
93
|
+
"shiki": "^4.0.2",
|
|
94
|
+
"shiki-magic-move": "^1.3.0",
|
|
94
95
|
"sirv": "^3.0.2",
|
|
95
96
|
"source-map-js": "^1.2.1",
|
|
96
97
|
"typescript": "^5.9.3",
|
|
97
|
-
"unhead": "^2.1.
|
|
98
|
-
"unocss": "^66.6.
|
|
98
|
+
"unhead": "^2.1.13",
|
|
99
|
+
"unocss": "^66.6.8",
|
|
99
100
|
"unplugin-icons": "^23.0.1",
|
|
100
|
-
"unplugin-vue-components": "^
|
|
101
|
+
"unplugin-vue-components": "^32.0.0",
|
|
101
102
|
"unplugin-vue-markdown": "^30.0.0",
|
|
102
103
|
"untun": "^0.1.3",
|
|
103
|
-
"uqr": "^0.1.
|
|
104
|
-
"vite": "^
|
|
104
|
+
"uqr": "^0.1.3",
|
|
105
|
+
"vite": "^8.0.10",
|
|
105
106
|
"vite-plugin-inspect": "^11.3.3",
|
|
106
107
|
"vite-plugin-remote-assets": "^2.1.0",
|
|
107
|
-
"vite-plugin-static-copy": "^
|
|
108
|
+
"vite-plugin-static-copy": "^4.1.0",
|
|
108
109
|
"vite-plugin-vue-server-ref": "^1.0.0",
|
|
109
|
-
"vitefu": "^1.1.
|
|
110
|
-
"vue": "^3.5.
|
|
111
|
-
"yaml": "^2.8.
|
|
110
|
+
"vitefu": "^1.1.3",
|
|
111
|
+
"vue": "^3.5.33",
|
|
112
|
+
"yaml": "^2.8.3",
|
|
112
113
|
"yargs": "^18.0.0",
|
|
113
|
-
"@slidev/
|
|
114
|
-
"@slidev/parser": "52.
|
|
115
|
-
"@slidev/
|
|
114
|
+
"@slidev/types": "52.15.1",
|
|
115
|
+
"@slidev/parser": "52.15.1",
|
|
116
|
+
"@slidev/client": "52.15.1"
|
|
116
117
|
},
|
|
117
118
|
"devDependencies": {
|
|
118
119
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|
|
119
|
-
"@types/picomatch": "^4.0.
|
|
120
|
+
"@types/picomatch": "^4.0.3",
|
|
120
121
|
"@types/plantuml-encoder": "^1.4.2"
|
|
121
122
|
},
|
|
122
123
|
"scripts": {
|
|
@@ -14,11 +14,11 @@ import { onSlideEnter, onSlideLeave, useIsSlideActive } from '@slidev/client'
|
|
|
14
14
|
|
|
15
15
|
const isActive = useIsSlideActive()
|
|
16
16
|
|
|
17
|
-
onSlideEnter(() => {
|
|
17
|
+
onSlideEnter((to, from) => {
|
|
18
18
|
// Called when slide becomes active
|
|
19
19
|
})
|
|
20
20
|
|
|
21
|
-
onSlideLeave(() => {
|
|
21
|
+
onSlideLeave((to, from) => {
|
|
22
22
|
// Called when slide becomes inactive
|
|
23
23
|
})
|
|
24
24
|
```
|
|
@@ -113,12 +113,12 @@ const { $page, $clicks, $frontmatter } = useSlideContext()
|
|
|
113
113
|
```ts
|
|
114
114
|
import { onSlideEnter, onSlideLeave } from '@slidev/client'
|
|
115
115
|
|
|
116
|
-
onSlideEnter(() => {
|
|
116
|
+
onSlideEnter((to, from) => {
|
|
117
117
|
// Slide became active
|
|
118
118
|
startAnimation()
|
|
119
119
|
})
|
|
120
120
|
|
|
121
|
-
onSlideLeave(() => {
|
|
121
|
+
onSlideLeave((to, from) => {
|
|
122
122
|
// Slide became inactive
|
|
123
123
|
cleanup()
|
|
124
124
|
})
|
|
File without changes
|