@slidev/cli 0.43.15 → 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.
- package/dist/{build-MH7MLIPF.mjs → build-LX2GXXQG.mjs} +3 -3
- package/dist/{chunk-4TC2LEB7.mjs → chunk-G3XS4CNO.mjs} +1122 -836
- package/dist/{chunk-JZDN7P5W.mjs → chunk-VHBBQ77F.mjs} +13 -12
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +11 -6
- package/dist/{export-LYIOCUF2.mjs → export-T7HYPK5J.mjs} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{unocss-BTVZWCXM.mjs → unocss-GHP27KVT.mjs} +1 -1
- package/dist/{windicss-MS4GFOSZ.mjs → windicss-SDUK26CZ.mjs} +1 -1
- package/package.json +25 -25
- package/template.md +1 -1
- /package/dist/{chunk-65ITIFTL.mjs → chunk-BXO7ZPPU.mjs} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
__commonJS,
|
|
13
13
|
__toESM
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BXO7ZPPU.mjs";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
17
17
|
var require_fast_deep_equal = __commonJS({
|
|
@@ -185,10 +185,10 @@ var dependencies = {
|
|
|
185
185
|
"@antfu/utils": "^0.7.6",
|
|
186
186
|
"@slidev/parser": "workspace:*",
|
|
187
187
|
"@slidev/types": "workspace:*",
|
|
188
|
-
"@unhead/vue": "^1.8.
|
|
189
|
-
"@unocss/reset": "^0.
|
|
190
|
-
"@vueuse/core": "^10.
|
|
191
|
-
"@vueuse/math": "^10.
|
|
188
|
+
"@unhead/vue": "^1.8.8",
|
|
189
|
+
"@unocss/reset": "^0.58.0",
|
|
190
|
+
"@vueuse/core": "^10.6.1",
|
|
191
|
+
"@vueuse/math": "^10.6.1",
|
|
192
192
|
"@vueuse/motion": "^2.0.0",
|
|
193
193
|
codemirror: "^5.65.5",
|
|
194
194
|
defu: "^6.1.3",
|
|
@@ -200,13 +200,13 @@ var dependencies = {
|
|
|
200
200
|
katex: "^0.16.9",
|
|
201
201
|
mermaid: "^10.6.1",
|
|
202
202
|
"monaco-editor": "^0.37.1",
|
|
203
|
-
nanoid: "^5.0.
|
|
204
|
-
prettier: "^3.0
|
|
203
|
+
nanoid: "^5.0.4",
|
|
204
|
+
prettier: "^3.1.0",
|
|
205
205
|
recordrtc: "^5.6.2",
|
|
206
206
|
resolve: "^1.22.8",
|
|
207
|
-
unocss: "^0.
|
|
208
|
-
"vite-plugin-windicss": "^1.9.
|
|
209
|
-
vue: "^3.3.
|
|
207
|
+
unocss: "^0.58.0",
|
|
208
|
+
"vite-plugin-windicss": "^1.9.2",
|
|
209
|
+
vue: "^3.3.9",
|
|
210
210
|
"vue-router": "^4.2.5",
|
|
211
211
|
"vue-starport": "^0.4.0",
|
|
212
212
|
windicss: "^3.5.6"
|
|
@@ -1632,7 +1632,8 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
|
|
|
1632
1632
|
...themeRoots.map((i) => join8(i, "components")),
|
|
1633
1633
|
...addonRoots.map((i) => join8(i, "components")),
|
|
1634
1634
|
"src/components",
|
|
1635
|
-
"components"
|
|
1635
|
+
"components",
|
|
1636
|
+
join8(process3.cwd(), "components")
|
|
1636
1637
|
],
|
|
1637
1638
|
include: [/\.vue$/, /\.vue\?vue/, /\.vue\?v=/, /\.md$/],
|
|
1638
1639
|
exclude: [],
|
|
@@ -1696,7 +1697,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
|
|
|
1696
1697
|
dev: true,
|
|
1697
1698
|
build: true
|
|
1698
1699
|
})) : null,
|
|
1699
|
-
config.css === "none" ? null : config.css === "windicss" ? import("./windicss-
|
|
1700
|
+
config.css === "none" ? null : config.css === "windicss" ? import("./windicss-SDUK26CZ.mjs").then((r) => r.createWindiCSSPlugin(options, pluginOptions)) : import("./unocss-GHP27KVT.mjs").then((r) => r.createUnocssPlugin(options, pluginOptions))
|
|
1700
1701
|
];
|
|
1701
1702
|
return (await Promise.all(plugins)).flat().filter(notNullish2);
|
|
1702
1703
|
}
|
package/dist/cli.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { }
|
package/dist/cli.mjs
CHANGED
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
resolveOptions,
|
|
10
10
|
resolveThemeName,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G3XS4CNO.mjs";
|
|
13
13
|
import {
|
|
14
14
|
require_fast_deep_equal
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VHBBQ77F.mjs";
|
|
16
16
|
import {
|
|
17
17
|
loadSetups
|
|
18
18
|
} from "./chunk-CYLMMBRG.mjs";
|
|
19
19
|
import "./chunk-5L3XKTHL.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BXO7ZPPU.mjs";
|
|
23
23
|
|
|
24
24
|
// node/cli.ts
|
|
25
25
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
|
@@ -125,6 +125,11 @@ cli.command(
|
|
|
125
125
|
strictPort: true,
|
|
126
126
|
open,
|
|
127
127
|
host: remote !== void 0 ? "0.0.0.0" : "localhost",
|
|
128
|
+
// @ts-expect-error Vite <= 4
|
|
129
|
+
force
|
|
130
|
+
},
|
|
131
|
+
optimizeDeps: {
|
|
132
|
+
// Vite 5
|
|
128
133
|
force
|
|
129
134
|
},
|
|
130
135
|
logLevel: log
|
|
@@ -268,7 +273,7 @@ cli.command(
|
|
|
268
273
|
}).strict().help(),
|
|
269
274
|
async (args) => {
|
|
270
275
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
271
|
-
const { build } = await import("./build-
|
|
276
|
+
const { build } = await import("./build-LX2GXXQG.mjs");
|
|
272
277
|
for (const entryFile of entry) {
|
|
273
278
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
274
279
|
if (download && !options.data.config.download)
|
|
@@ -347,7 +352,7 @@ cli.command(
|
|
|
347
352
|
async (args) => {
|
|
348
353
|
const { entry, theme } = args;
|
|
349
354
|
process.env.NODE_ENV = "production";
|
|
350
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
355
|
+
const { exportSlides, getExportOptions } = await import("./export-T7HYPK5J.mjs");
|
|
351
356
|
const port = await findFreePort(12445);
|
|
352
357
|
for (const entryFile of entry) {
|
|
353
358
|
const options = await resolveOptions({ entry: entryFile, theme }, "export");
|
|
@@ -393,7 +398,7 @@ cli.command(
|
|
|
393
398
|
timeout
|
|
394
399
|
}) => {
|
|
395
400
|
process.env.NODE_ENV = "production";
|
|
396
|
-
const { exportNotes } = await import("./export-
|
|
401
|
+
const { exportNotes } = await import("./export-T7HYPK5J.mjs");
|
|
397
402
|
const port = await findFreePort(12445);
|
|
398
403
|
for (const entryFile of entry) {
|
|
399
404
|
const options = await resolveOptions({ entry: entryFile }, "export");
|
package/dist/index.d.mts
CHANGED
|
@@ -95,6 +95,6 @@ declare function createServer(options: ResolvedSlidevOptions, viteConfig?: Inlin
|
|
|
95
95
|
|
|
96
96
|
declare function ViteSlidevPlugin(options: ResolvedSlidevOptions, pluginOptions: SlidevPluginOptions, serverOptions?: SlidevServerOptions): Promise<Plugin[]>;
|
|
97
97
|
|
|
98
|
-
declare function createWindiCSSPlugin({ themeRoots, addonRoots, clientRoot, userRoot, roots, data }: ResolvedSlidevOptions, { windicss: windiOptions }: SlidevPluginOptions): Promise<vite.Plugin[]>;
|
|
98
|
+
declare function createWindiCSSPlugin({ themeRoots, addonRoots, clientRoot, userRoot, roots, data }: ResolvedSlidevOptions, { windicss: windiOptions }: SlidevPluginOptions): Promise<vite.Plugin<any>[]>;
|
|
99
99
|
|
|
100
|
-
export { ResolvedSlidevOptions, SlidevEntryOptions, SlidevPluginOptions, SlidevServerOptions, ViteSlidevPlugin, createServer, createWindiCSSPlugin, getAddonRoots, getCLIRoot, getClientRoot, getRoot, getThemeRoots, getUserRoot, isPath, resolveOptions };
|
|
100
|
+
export { type ResolvedSlidevOptions, type SlidevEntryOptions, type SlidevPluginOptions, type SlidevServerOptions, ViteSlidevPlugin, createServer, createWindiCSSPlugin, getAddonRoots, getCLIRoot, getClientRoot, getRoot, getThemeRoots, getUserRoot, isPath, resolveOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
isPath,
|
|
10
10
|
parser,
|
|
11
11
|
resolveOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G3XS4CNO.mjs";
|
|
13
13
|
import {
|
|
14
14
|
createWindiCSSPlugin
|
|
15
15
|
} from "./chunk-A7WCFT3T.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ViteSlidevPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VHBBQ77F.mjs";
|
|
19
19
|
import "./chunk-CYLMMBRG.mjs";
|
|
20
20
|
import "./chunk-5L3XKTHL.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-BXO7ZPPU.mjs";
|
|
22
22
|
export {
|
|
23
23
|
ViteSlidevPlugin,
|
|
24
24
|
createServer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,21 +44,21 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@antfu/utils": "^0.7.6",
|
|
46
46
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|
|
47
|
-
"@iconify-json/carbon": "^1.1.
|
|
48
|
-
"@iconify-json/ph": "^1.1.
|
|
47
|
+
"@iconify-json/carbon": "^1.1.24",
|
|
48
|
+
"@iconify-json/ph": "^1.1.8",
|
|
49
49
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
50
50
|
"@mrdrogdrog/optional": "^1.2.1",
|
|
51
|
-
"@unocss/extractor-mdc": "^0.
|
|
52
|
-
"@unocss/reset": "^0.
|
|
53
|
-
"@vitejs/plugin-vue": "^4.
|
|
54
|
-
"@vitejs/plugin-vue-jsx": "^3.0
|
|
55
|
-
"@windicss/config": "^1.9.
|
|
51
|
+
"@unocss/extractor-mdc": "^0.58.0",
|
|
52
|
+
"@unocss/reset": "^0.58.0",
|
|
53
|
+
"@vitejs/plugin-vue": "^4.5.1",
|
|
54
|
+
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
55
|
+
"@windicss/config": "^1.9.2",
|
|
56
56
|
"cli-progress": "^3.12.0",
|
|
57
57
|
"codemirror": "^5.65.5",
|
|
58
58
|
"connect": "^3.7.0",
|
|
59
59
|
"debug": "^4.3.4",
|
|
60
60
|
"fast-glob": "^3.3.2",
|
|
61
|
-
"fs-extra": "^11.
|
|
61
|
+
"fs-extra": "^11.2.0",
|
|
62
62
|
"get-port-please": "^3.1.1",
|
|
63
63
|
"global-directory": "^4.0.1",
|
|
64
64
|
"htmlparser2": "^9.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"markdown-it-link-attributes": "^4.0.1",
|
|
75
75
|
"markdown-it-mdc": "^0.1.4",
|
|
76
76
|
"monaco-editor": "^0.37.1",
|
|
77
|
-
"nanoid": "^5.0.
|
|
77
|
+
"nanoid": "^5.0.4",
|
|
78
78
|
"open": "^9.1.0",
|
|
79
79
|
"pdf-lib": "^1.17.1",
|
|
80
80
|
"plantuml-encoder": "^1.4.0",
|
|
@@ -85,25 +85,25 @@
|
|
|
85
85
|
"resolve": "^1.22.8",
|
|
86
86
|
"resolve-from": "^5.0.0",
|
|
87
87
|
"resolve-global": "^2.0.0",
|
|
88
|
-
"shiki": "npm:shikiji-compat@^0.6
|
|
89
|
-
"unocss": "^0.
|
|
90
|
-
"unplugin-icons": "^0.
|
|
91
|
-
"unplugin-vue-components": "^0.
|
|
92
|
-
"unplugin-vue-markdown": "^0.25.
|
|
88
|
+
"shiki": "npm:shikiji-compat@^0.7.6",
|
|
89
|
+
"unocss": "^0.58.0",
|
|
90
|
+
"unplugin-icons": "^0.18.1",
|
|
91
|
+
"unplugin-vue-components": "^0.26.0",
|
|
92
|
+
"unplugin-vue-markdown": "^0.25.2",
|
|
93
93
|
"uqr": "^0.1.2",
|
|
94
|
-
"vite": "^
|
|
95
|
-
"vite-plugin-inspect": "^0.
|
|
96
|
-
"vite-plugin-remote-assets": "^0.
|
|
97
|
-
"vite-plugin-static-copy": "^0.
|
|
98
|
-
"vite-plugin-vue-server-ref": "^0.
|
|
99
|
-
"vite-plugin-windicss": "^1.9.
|
|
94
|
+
"vite": "^5.0.5",
|
|
95
|
+
"vite-plugin-inspect": "^0.8.1",
|
|
96
|
+
"vite-plugin-remote-assets": "^0.4.0",
|
|
97
|
+
"vite-plugin-static-copy": "^1.0.0",
|
|
98
|
+
"vite-plugin-vue-server-ref": "^0.4.0",
|
|
99
|
+
"vite-plugin-windicss": "^1.9.2",
|
|
100
100
|
"vitefu": "^0.2.5",
|
|
101
|
-
"vue": "^3.3.
|
|
101
|
+
"vue": "^3.3.9",
|
|
102
102
|
"windicss": "^3.5.6",
|
|
103
103
|
"yargs": "^17.7.2",
|
|
104
|
-
"@slidev/
|
|
105
|
-
"@slidev/
|
|
106
|
-
"@slidev/types": "0.
|
|
104
|
+
"@slidev/client": "0.45.0",
|
|
105
|
+
"@slidev/parser": "0.45.0",
|
|
106
|
+
"@slidev/types": "0.45.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@types/plantuml-encoder": "^1.4.2",
|
package/template.md
CHANGED
|
@@ -164,7 +164,7 @@ class: px-20
|
|
|
164
164
|
|
|
165
165
|
Slidev comes with powerful theming support. Themes are able to provide styles, layouts, components, or even configurations for tools. Switching between themes by just **one edit** in your frontmatter:
|
|
166
166
|
|
|
167
|
-
<div grid="~ cols-2 gap-2" m="
|
|
167
|
+
<div grid="~ cols-2 gap-2" m="t-2">
|
|
168
168
|
|
|
169
169
|
```yaml
|
|
170
170
|
---
|
|
File without changes
|