@slidev/cli 0.48.6 → 0.48.7
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.
|
@@ -62,7 +62,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
62
62
|
await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
63
63
|
`, "utf-8");
|
|
64
64
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
65
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
65
|
+
const { exportSlides, getExportOptions } = await import("./export-F3TWPZMI.mjs");
|
|
66
66
|
const port = 12445;
|
|
67
67
|
const app = connect();
|
|
68
68
|
const server = http.createServer(app);
|
|
@@ -48,7 +48,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
48
48
|
import * as parser from "@slidev/parser/fs";
|
|
49
49
|
|
|
50
50
|
// package.json
|
|
51
|
-
var version = "0.48.
|
|
51
|
+
var version = "0.48.7";
|
|
52
52
|
|
|
53
53
|
// node/integrations/themes.ts
|
|
54
54
|
import { join as join2 } from "node:path";
|
package/dist/cli.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveOptions,
|
|
7
7
|
resolveTheme,
|
|
8
8
|
version
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IYOBM2Q4.mjs";
|
|
10
10
|
import "./chunk-M3AHQMLP.mjs";
|
|
11
11
|
import {
|
|
12
12
|
loadSetups
|
|
@@ -325,7 +325,7 @@ cli.command(
|
|
|
325
325
|
}).strict().help(),
|
|
326
326
|
async (args) => {
|
|
327
327
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
328
|
-
const { build } = await import("./build-
|
|
328
|
+
const { build } = await import("./build-4QIFFIAR.mjs");
|
|
329
329
|
for (const entryFile of entry) {
|
|
330
330
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
331
331
|
if (download && !options.data.config.download)
|
|
@@ -406,7 +406,7 @@ cli.command(
|
|
|
406
406
|
(args) => exportOptions(commonOptions(args)).strict().help(),
|
|
407
407
|
async (args) => {
|
|
408
408
|
const { entry, theme } = args;
|
|
409
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
409
|
+
const { exportSlides, getExportOptions } = await import("./export-F3TWPZMI.mjs");
|
|
410
410
|
const port = await getPort(12445);
|
|
411
411
|
for (const entryFile of entry) {
|
|
412
412
|
const options = await resolveOptions({ entry: entryFile, theme }, "export");
|
|
@@ -450,7 +450,7 @@ cli.command(
|
|
|
450
450
|
output,
|
|
451
451
|
timeout
|
|
452
452
|
}) => {
|
|
453
|
-
const { exportNotes } = await import("./export-
|
|
453
|
+
const { exportNotes } = await import("./export-F3TWPZMI.mjs");
|
|
454
454
|
const port = await getPort(12445);
|
|
455
455
|
for (const entryFile of entry) {
|
|
456
456
|
const options = await resolveOptions({ entry: entryFile }, "export");
|
|
@@ -155,8 +155,8 @@ async function exportSlides({
|
|
|
155
155
|
});
|
|
156
156
|
await page.waitForLoadState("networkidle");
|
|
157
157
|
await page.emulateMedia({ colorScheme: dark ? "dark" : "light", media: "screen" });
|
|
158
|
-
const slide = page.locator(`[data-slidev-no="${no}"]`);
|
|
159
|
-
await slide.waitFor(
|
|
158
|
+
const slide = no === "print" ? page.locator("body") : page.locator(`[data-slidev-no="${no}"]`);
|
|
159
|
+
await slide.waitFor();
|
|
160
160
|
{
|
|
161
161
|
const elements = slide.locator(".slidev-slide-loading");
|
|
162
162
|
const count = await elements.count();
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.7",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"vitefu": "^0.2.5",
|
|
107
107
|
"vue": "^3.4.21",
|
|
108
108
|
"yargs": "^17.7.2",
|
|
109
|
-
"@slidev/parser": "0.48.
|
|
110
|
-
"@slidev/
|
|
111
|
-
"@slidev/
|
|
109
|
+
"@slidev/parser": "0.48.7",
|
|
110
|
+
"@slidev/types": "0.48.7",
|
|
111
|
+
"@slidev/client": "0.48.7"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|