@slidev/cli 0.50.0-beta.3 → 0.50.0-beta.4

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveViteConfigs
3
- } from "./chunk-OBUVLPJZ.js";
3
+ } from "./chunk-SVHETE4L.js";
4
4
  import "./chunk-UNQ5DBLZ.js";
5
5
 
6
6
  // node/commands/build.ts
@@ -50,7 +50,7 @@ async function build(options, viteConfig = {}, args) {
50
50
  await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
51
51
  `, "utf-8");
52
52
  if ([true, "true", "auto"].includes(options.data.config.download)) {
53
- const { exportSlides, getExportOptions } = await import("./export-WMRLKOJP.js");
53
+ const { exportSlides, getExportOptions } = await import("./export-I2C456L6.js");
54
54
  const port = 12445;
55
55
  const app = connect();
56
56
  const server = http.createServer(app);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveViteConfigs
3
- } from "./chunk-OBUVLPJZ.js";
3
+ } from "./chunk-SVHETE4L.js";
4
4
 
5
5
  // node/commands/serve.ts
6
6
  import { join } from "node:path";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-UNQ5DBLZ.js";
10
10
 
11
11
  // package.json
12
- var version = "0.50.0-beta.3";
12
+ var version = "0.50.0-beta.4";
13
13
 
14
14
  // node/integrations/themes.ts
15
15
  import { join } from "node:path";
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-22D4K34T.js";
3
+ } from "./chunk-5KWWP3AD.js";
4
4
  import {
5
5
  getThemeMeta,
6
6
  loadSetups,
@@ -9,7 +9,7 @@ import {
9
9
  resolveOptions,
10
10
  resolveTheme,
11
11
  version
12
- } from "./chunk-OBUVLPJZ.js";
12
+ } from "./chunk-SVHETE4L.js";
13
13
  import {
14
14
  getRoots,
15
15
  isInstalledGlobally,
@@ -33,7 +33,7 @@ import yargs from "yargs";
33
33
  // node/setups/preparser.ts
34
34
  import { uniq } from "@antfu/utils";
35
35
  import { injectPreparserExtensionLoader } from "@slidev/parser/fs";
36
- async function setupPreparser() {
36
+ function setupPreparser() {
37
37
  injectPreparserExtensionLoader(async (headmatter, filepath, mode) => {
38
38
  const addons = headmatter?.addons;
39
39
  if (!addons?.length)
@@ -332,7 +332,7 @@ cli.command(
332
332
  }).strict().help(),
333
333
  async (args) => {
334
334
  const { entry, theme, base, download, out, inspect } = args;
335
- const { build } = await import("./build-ZP4MQTE4.js");
335
+ const { build } = await import("./build-NQO4YXCP.js");
336
336
  for (const entryFile of entry) {
337
337
  const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
338
338
  if (download && !options.data.config.download)
@@ -412,7 +412,7 @@ cli.command(
412
412
  (args) => exportOptions(commonOptions(args)).strict().help(),
413
413
  async (args) => {
414
414
  const { entry, theme } = args;
415
- const { exportSlides, getExportOptions } = await import("./export-WMRLKOJP.js");
415
+ const { exportSlides, getExportOptions } = await import("./export-I2C456L6.js");
416
416
  const port = await getPort(12445);
417
417
  for (const entryFile of entry) {
418
418
  const options = await resolveOptions({ entry: entryFile, theme }, "export");
@@ -461,7 +461,7 @@ cli.command(
461
461
  timeout,
462
462
  wait
463
463
  }) => {
464
- const { exportNotes } = await import("./export-WMRLKOJP.js");
464
+ const { exportNotes } = await import("./export-I2C456L6.js");
465
465
  const port = await getPort(12445);
466
466
  for (const entryFile of entry) {
467
467
  const options = await resolveOptions({ entry: entryFile }, "export");
@@ -77,8 +77,7 @@ async function exportNotes({
77
77
  base = "/",
78
78
  output = "notes",
79
79
  timeout = 3e4,
80
- wait = 0,
81
- waitUntil
80
+ wait = 0
82
81
  }) {
83
82
  const { chromium } = await importPlaywright();
84
83
  const browser = await chromium.launch();
@@ -88,9 +87,8 @@ async function exportNotes({
88
87
  progress.start(1);
89
88
  if (!output.endsWith(".pdf"))
90
89
  output = `${output}.pdf`;
91
- await page.goto(`http://localhost:${port}${base}presenter/print`, { waitUntil, timeout });
92
- if (waitUntil)
93
- await page.waitForLoadState(waitUntil);
90
+ await page.goto(`http://localhost:${port}${base}presenter/print`, { waitUntil: "networkidle", timeout });
91
+ await page.waitForLoadState("networkidle");
94
92
  await page.emulateMedia({ media: "screen" });
95
93
  if (wait)
96
94
  await page.waitForTimeout(wait);
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-22D4K34T.js";
3
+ } from "./chunk-5KWWP3AD.js";
4
4
  import {
5
5
  ViteSlidevPlugin,
6
6
  createDataUtils,
7
7
  parser,
8
8
  resolveOptions
9
- } from "./chunk-OBUVLPJZ.js";
9
+ } from "./chunk-SVHETE4L.js";
10
10
  import "./chunk-UNQ5DBLZ.js";
11
11
  export {
12
12
  ViteSlidevPlugin,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
3
  "type": "module",
4
- "version": "0.50.0-beta.3",
4
+ "version": "0.50.0-beta.4",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -44,15 +44,15 @@
44
44
  "dependencies": {
45
45
  "@antfu/ni": "^0.23.0",
46
46
  "@antfu/utils": "^0.7.10",
47
- "@iconify-json/carbon": "^1.2.1",
48
- "@iconify-json/ph": "^1.2.0",
49
- "@iconify-json/svg-spinners": "^1.2.0",
47
+ "@iconify-json/carbon": "^1.2.3",
48
+ "@iconify-json/ph": "^1.2.1",
49
+ "@iconify-json/svg-spinners": "^1.2.1",
50
50
  "@lillallol/outline-pdf": "^4.0.0",
51
- "@shikijs/markdown-it": "^1.21.0",
52
- "@shikijs/twoslash": "^1.21.0",
53
- "@shikijs/vitepress-twoslash": "^1.21.0",
54
- "@unocss/extractor-mdc": "^0.63.2",
55
- "@unocss/reset": "^0.63.2",
51
+ "@shikijs/markdown-it": "^1.22.0",
52
+ "@shikijs/twoslash": "^1.22.0",
53
+ "@shikijs/vitepress-twoslash": "^1.22.0",
54
+ "@unocss/extractor-mdc": "^0.63.4",
55
+ "@unocss/reset": "^0.63.4",
56
56
  "@vitejs/plugin-vue": "^5.1.4",
57
57
  "@vitejs/plugin-vue-jsx": "^4.0.1",
58
58
  "chokidar": "^4.0.1",
@@ -66,18 +66,18 @@
66
66
  "global-directory": "^4.0.1",
67
67
  "htmlparser2": "^9.1.0",
68
68
  "is-installed-globally": "^1.0.0",
69
- "jiti": "^2.1.0",
69
+ "jiti": "^2.3.3",
70
70
  "katex": "^0.16.11",
71
71
  "kolorist": "^1.8.0",
72
72
  "local-pkg": "^0.5.0",
73
73
  "lz-string": "^1.5.0",
74
- "magic-string": "^0.30.11",
74
+ "magic-string": "^0.30.12",
75
75
  "magic-string-stack": "^0.1.1",
76
76
  "markdown-it": "^14.1.0",
77
77
  "markdown-it-footnote": "^4.0.0",
78
78
  "markdown-it-mdc": "^0.2.5",
79
79
  "micromatch": "^4.0.8",
80
- "mlly": "^1.7.1",
80
+ "mlly": "^1.7.2",
81
81
  "monaco-editor": "^0.52.0",
82
82
  "open": "^10.1.0",
83
83
  "pdf-lib": "^1.17.1",
@@ -89,29 +89,29 @@
89
89
  "resolve-from": "^5.0.0",
90
90
  "resolve-global": "^2.0.0",
91
91
  "semver": "^7.6.3",
92
- "shiki": "^1.21.0",
93
- "shiki-magic-move": "^0.4.5",
94
- "sirv": "^2.0.4",
92
+ "shiki": "^1.22.0",
93
+ "shiki-magic-move": "^0.5.0",
94
+ "sirv": "^3.0.0",
95
95
  "source-map-js": "^1.2.1",
96
- "typescript": "^5.6.2",
97
- "unocss": "^0.63.2",
96
+ "typescript": "^5.6.3",
97
+ "unocss": "^0.63.4",
98
98
  "unplugin-icons": "^0.19.3",
99
99
  "unplugin-vue-components": "^0.27.4",
100
100
  "unplugin-vue-markdown": "^0.26.2",
101
101
  "untun": "^0.1.3",
102
102
  "uqr": "^0.1.2",
103
- "vite": "^5.4.8",
103
+ "vite": "^5.4.9",
104
104
  "vite-plugin-inspect": "^0.8.7",
105
105
  "vite-plugin-remote-assets": "^0.5.0",
106
- "vite-plugin-static-copy": "^1.0.6",
106
+ "vite-plugin-static-copy": "^2.0.0",
107
107
  "vite-plugin-vue-server-ref": "^0.4.2",
108
- "vitefu": "^1.0.2",
109
- "vue": "^3.5.10",
110
- "yaml": "^2.5.1",
108
+ "vitefu": "^1.0.3",
109
+ "vue": "^3.5.12",
110
+ "yaml": "^2.6.0",
111
111
  "yargs": "^17.7.2",
112
- "@slidev/client": "0.50.0-beta.3",
113
- "@slidev/types": "0.50.0-beta.3",
114
- "@slidev/parser": "0.50.0-beta.3"
112
+ "@slidev/parser": "0.50.0-beta.4",
113
+ "@slidev/types": "0.50.0-beta.4",
114
+ "@slidev/client": "0.50.0-beta.4"
115
115
  },
116
116
  "devDependencies": {
117
117
  "@hedgedoc/markdown-it-plugins": "^2.1.4",