@slidev/cli 0.42.6 → 0.42.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.
- package/dist/{build-V5TH5VWM.js → build-FGRU7R5C.js} +8 -8
- package/dist/{build-4X66UIV5.mjs → build-MQ5SJ6HF.mjs} +4 -4
- package/dist/{chunk-6ZL4B4HQ.js → chunk-34SGGZ4P.js} +5 -5
- package/dist/{chunk-T4MW747S.mjs → chunk-ACFLBCHI.mjs} +21 -21
- package/dist/{chunk-OFNPVCQ3.js → chunk-ELRZS7XI.js} +26 -26
- package/dist/{chunk-L5QH2WZE.mjs → chunk-KB3DQ2OE.mjs} +1 -1
- package/dist/{chunk-FP2Y7WJ3.mjs → chunk-LN5DOTNJ.mjs} +5 -5
- package/dist/{chunk-CIUEQ4TI.mjs → chunk-MZBIET7Y.mjs} +1 -1
- package/dist/{chunk-MJQETB73.js → chunk-QDKRARRU.js} +1 -1
- package/dist/{chunk-YI4ZV27K.js → chunk-RSZHGGR3.js} +4 -4
- package/dist/{chunk-X7P5WRYP.mjs → chunk-VPD6PH2L.mjs} +1 -1
- package/dist/{chunk-42FDW3LK.js → chunk-XWJGVGSP.js} +98 -98
- package/dist/cli.js +34 -34
- package/dist/cli.mjs +10 -10
- package/dist/{export-KRS4L4HC.mjs → export-6G7WYT32.mjs} +11 -3
- package/dist/{export-PN4EOI4Z.js → export-BGMCS4F2.js} +13 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/dist/{unocss-2CJUFE63.js → unocss-2T2KTWQ5.js} +1 -1
- package/dist/{unocss-ZLGTDCD7.mjs → unocss-ALFHEPHE.mjs} +1 -1
- package/dist/windicss-3HGYWXUJ.js +9 -0
- package/dist/{windicss-OSTDR2Z6.mjs → windicss-TWSVDM4O.mjs} +3 -3
- package/package.json +7 -7
- package/dist/windicss-YNIIPANV.js +0 -9
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkELRZS7XIjs = require('./chunk-ELRZS7XI.js');
|
|
6
6
|
require('./chunk-KKGXM3XL.js');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-34SGGZ4P.js');
|
|
8
|
+
require('./chunk-QDKRARRU.js');
|
|
9
9
|
|
|
10
10
|
// node/build.ts
|
|
11
11
|
var _path = require('path');
|
|
@@ -651,16 +651,16 @@ async function build(options, viteConfig = {}, args) {
|
|
|
651
651
|
let originalIndexHTML;
|
|
652
652
|
if (_fsextra2.default.existsSync(indexPath))
|
|
653
653
|
originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
|
|
654
|
-
await _fsextra2.default.writeFile(indexPath, await
|
|
654
|
+
await _fsextra2.default.writeFile(indexPath, await _chunkELRZS7XIjs.getIndexHtml.call(void 0, options), "utf-8");
|
|
655
655
|
let config = void 0;
|
|
656
656
|
try {
|
|
657
|
-
const inlineConfig = await
|
|
657
|
+
const inlineConfig = await _chunkELRZS7XIjs.mergeViteConfigs.call(void 0,
|
|
658
658
|
options,
|
|
659
659
|
viteConfig,
|
|
660
660
|
{
|
|
661
661
|
root: options.userRoot,
|
|
662
662
|
plugins: [
|
|
663
|
-
await
|
|
663
|
+
await _chunkELRZS7XIjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
|
|
664
664
|
{
|
|
665
665
|
name: "resolve-config",
|
|
666
666
|
configResolved(_config) {
|
|
@@ -681,7 +681,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
681
681
|
} else {
|
|
682
682
|
console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
|
|
683
683
|
await _vite.build.call(void 0,
|
|
684
|
-
await
|
|
684
|
+
await _chunkELRZS7XIjs.mergeViteConfigs.call(void 0,
|
|
685
685
|
options,
|
|
686
686
|
inlineConfig,
|
|
687
687
|
{
|
|
@@ -722,7 +722,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
722
722
|
await _fsextra2.default.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
723
723
|
`, "utf-8");
|
|
724
724
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
725
|
-
const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-
|
|
725
|
+
const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-BGMCS4F2.js"));
|
|
726
726
|
const port = 12445;
|
|
727
727
|
const app = _connect2.default.call(void 0, );
|
|
728
728
|
const server = _http2.default.createServer(app);
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
getIndexHtml,
|
|
4
4
|
mergeViteConfigs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LN5DOTNJ.mjs";
|
|
6
6
|
import "./chunk-6XVZLT3I.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-MZBIET7Y.mjs";
|
|
8
|
+
import "./chunk-KB3DQ2OE.mjs";
|
|
9
9
|
|
|
10
10
|
// node/build.ts
|
|
11
11
|
import { join as join3, resolve as resolve3 } from "path";
|
|
@@ -722,7 +722,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
722
722
|
await fs2.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
723
723
|
`, "utf-8");
|
|
724
724
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
725
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
725
|
+
const { exportSlides, getExportOptions } = await import("./export-6G7WYT32.mjs");
|
|
726
726
|
const port = 12445;
|
|
727
727
|
const app = connect();
|
|
728
728
|
const server = http.createServer(app);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQDKRARRUjs = require('./chunk-QDKRARRU.js');
|
|
4
4
|
|
|
5
5
|
// node/utils.ts
|
|
6
6
|
var _path = require('path');
|
|
@@ -20,11 +20,11 @@ function resolveImportPath(importName, ensure = false) {
|
|
|
20
20
|
}
|
|
21
21
|
if (_isinstalledglobally2.default) {
|
|
22
22
|
try {
|
|
23
|
-
return
|
|
23
|
+
return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.yarn.packages, importName));
|
|
24
24
|
} catch (e2) {
|
|
25
25
|
}
|
|
26
26
|
try {
|
|
27
|
-
return
|
|
27
|
+
return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.npm.packages, importName));
|
|
28
28
|
} catch (e3) {
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -38,11 +38,11 @@ function resolveGlobalImportPath(importName) {
|
|
|
38
38
|
} catch (e4) {
|
|
39
39
|
}
|
|
40
40
|
try {
|
|
41
|
-
return
|
|
41
|
+
return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.yarn.packages, importName));
|
|
42
42
|
} catch (e5) {
|
|
43
43
|
}
|
|
44
44
|
try {
|
|
45
|
-
return
|
|
45
|
+
return _chunkQDKRARRUjs.__require.resolve(_path.join.call(void 0, _globaldirs2.default.npm.packages, importName));
|
|
46
46
|
} catch (e6) {
|
|
47
47
|
}
|
|
48
48
|
throw new Error(`Failed to resolve global package "${importName}"`);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
mergeViteConfigs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LN5DOTNJ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
packageExists,
|
|
7
7
|
resolveImportPath
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MZBIET7Y.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__commonJS,
|
|
11
11
|
__privateAdd,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__privateSet,
|
|
14
14
|
__privateWrapper,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KB3DQ2OE.mjs";
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/.pnpm/semver@7.5.4/node_modules/semver/internal/constants.js
|
|
19
19
|
var require_constants = __commonJS({
|
|
@@ -190,10 +190,10 @@ var require_semver = __commonJS({
|
|
|
190
190
|
var { safeRe: re, t } = require_re();
|
|
191
191
|
var parseOptions = require_parse_options();
|
|
192
192
|
var { compareIdentifiers } = require_identifiers();
|
|
193
|
-
var SemVer = class {
|
|
193
|
+
var SemVer = class _SemVer {
|
|
194
194
|
constructor(version3, options) {
|
|
195
195
|
options = parseOptions(options);
|
|
196
|
-
if (version3 instanceof
|
|
196
|
+
if (version3 instanceof _SemVer) {
|
|
197
197
|
if (version3.loose === !!options.loose && version3.includePrerelease === !!options.includePrerelease) {
|
|
198
198
|
return version3;
|
|
199
199
|
} else {
|
|
@@ -256,11 +256,11 @@ var require_semver = __commonJS({
|
|
|
256
256
|
}
|
|
257
257
|
compare(other) {
|
|
258
258
|
debug2("SemVer.compare", this.version, this.options, other);
|
|
259
|
-
if (!(other instanceof
|
|
259
|
+
if (!(other instanceof _SemVer)) {
|
|
260
260
|
if (typeof other === "string" && other === this.version) {
|
|
261
261
|
return 0;
|
|
262
262
|
}
|
|
263
|
-
other = new
|
|
263
|
+
other = new _SemVer(other, this.options);
|
|
264
264
|
}
|
|
265
265
|
if (other.version === this.version) {
|
|
266
266
|
return 0;
|
|
@@ -268,14 +268,14 @@ var require_semver = __commonJS({
|
|
|
268
268
|
return this.compareMain(other) || this.comparePre(other);
|
|
269
269
|
}
|
|
270
270
|
compareMain(other) {
|
|
271
|
-
if (!(other instanceof
|
|
272
|
-
other = new
|
|
271
|
+
if (!(other instanceof _SemVer)) {
|
|
272
|
+
other = new _SemVer(other, this.options);
|
|
273
273
|
}
|
|
274
274
|
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
275
275
|
}
|
|
276
276
|
comparePre(other) {
|
|
277
|
-
if (!(other instanceof
|
|
278
|
-
other = new
|
|
277
|
+
if (!(other instanceof _SemVer)) {
|
|
278
|
+
other = new _SemVer(other, this.options);
|
|
279
279
|
}
|
|
280
280
|
if (this.prerelease.length && !other.prerelease.length) {
|
|
281
281
|
return -1;
|
|
@@ -303,8 +303,8 @@ var require_semver = __commonJS({
|
|
|
303
303
|
} while (++i);
|
|
304
304
|
}
|
|
305
305
|
compareBuild(other) {
|
|
306
|
-
if (!(other instanceof
|
|
307
|
-
other = new
|
|
306
|
+
if (!(other instanceof _SemVer)) {
|
|
307
|
+
other = new _SemVer(other, this.options);
|
|
308
308
|
}
|
|
309
309
|
let i = 0;
|
|
310
310
|
do {
|
|
@@ -1455,14 +1455,14 @@ var require_lru_cache = __commonJS({
|
|
|
1455
1455
|
var require_range = __commonJS({
|
|
1456
1456
|
"../../node_modules/.pnpm/semver@7.5.4/node_modules/semver/classes/range.js"(exports, module) {
|
|
1457
1457
|
"use strict";
|
|
1458
|
-
var Range = class {
|
|
1458
|
+
var Range = class _Range {
|
|
1459
1459
|
constructor(range, options) {
|
|
1460
1460
|
options = parseOptions(options);
|
|
1461
|
-
if (range instanceof
|
|
1461
|
+
if (range instanceof _Range) {
|
|
1462
1462
|
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
1463
1463
|
return range;
|
|
1464
1464
|
} else {
|
|
1465
|
-
return new
|
|
1465
|
+
return new _Range(range.raw, options);
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
if (range instanceof Comparator) {
|
|
@@ -1543,7 +1543,7 @@ var require_range = __commonJS({
|
|
|
1543
1543
|
return result;
|
|
1544
1544
|
}
|
|
1545
1545
|
intersects(range, options) {
|
|
1546
|
-
if (!(range instanceof
|
|
1546
|
+
if (!(range instanceof _Range)) {
|
|
1547
1547
|
throw new TypeError("a Range is required");
|
|
1548
1548
|
}
|
|
1549
1549
|
return this.set.some((thisComparators) => {
|
|
@@ -1814,13 +1814,13 @@ var require_comparator = __commonJS({
|
|
|
1814
1814
|
"../../node_modules/.pnpm/semver@7.5.4/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
1815
1815
|
"use strict";
|
|
1816
1816
|
var ANY = Symbol("SemVer ANY");
|
|
1817
|
-
var Comparator = class {
|
|
1817
|
+
var Comparator = class _Comparator {
|
|
1818
1818
|
static get ANY() {
|
|
1819
1819
|
return ANY;
|
|
1820
1820
|
}
|
|
1821
1821
|
constructor(comp, options) {
|
|
1822
1822
|
options = parseOptions(options);
|
|
1823
|
-
if (comp instanceof
|
|
1823
|
+
if (comp instanceof _Comparator) {
|
|
1824
1824
|
if (comp.loose === !!options.loose) {
|
|
1825
1825
|
return comp;
|
|
1826
1826
|
} else {
|
|
@@ -1873,7 +1873,7 @@ var require_comparator = __commonJS({
|
|
|
1873
1873
|
return cmp(version3, this.operator, this.semver, this.options);
|
|
1874
1874
|
}
|
|
1875
1875
|
intersects(comp, options) {
|
|
1876
|
-
if (!(comp instanceof
|
|
1876
|
+
if (!(comp instanceof _Comparator)) {
|
|
1877
1877
|
throw new TypeError("a Comparator is required");
|
|
1878
1878
|
}
|
|
1879
1879
|
if (this.operator === "") {
|
|
@@ -2523,7 +2523,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
2523
2523
|
import * as parser from "@slidev/parser/fs";
|
|
2524
2524
|
|
|
2525
2525
|
// package.json
|
|
2526
|
-
var version = "0.42.
|
|
2526
|
+
var version = "0.42.7";
|
|
2527
2527
|
|
|
2528
2528
|
// node/themes.ts
|
|
2529
2529
|
import prompts2 from "prompts";
|
|
@@ -7,15 +7,15 @@ var _chunkKKGXM3XLjs = require('./chunk-KKGXM3XL.js');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk34SGGZ4Pjs = require('./chunk-34SGGZ4P.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkQDKRARRUjs = require('./chunk-QDKRARRU.js');
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
18
|
-
var require_fast_deep_equal =
|
|
18
|
+
var require_fast_deep_equal = _chunkQDKRARRUjs.__commonJS.call(void 0, {
|
|
19
19
|
"../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
20
20
|
"use strict";
|
|
21
21
|
module.exports = function equal2(a, b) {
|
|
@@ -89,8 +89,8 @@ ${(((_b = index.match(/<body>([\s\S]*?)<\/body>/im)) == null ? void 0 : _b[1]) |
|
|
|
89
89
|
body += '\n<script async src="https://platform.twitter.com/widgets.js"></script>';
|
|
90
90
|
if (data.config.fonts.webfonts.length && data.config.fonts.provider !== "none")
|
|
91
91
|
head += `
|
|
92
|
-
<link rel="stylesheet" href="${
|
|
93
|
-
main = main.replace("__ENTRY__",
|
|
92
|
+
<link rel="stylesheet" href="${_chunk34SGGZ4Pjs.generateGoogleFontsUrl.call(void 0, data.config.fonts)}" type="text/css">`;
|
|
93
|
+
main = main.replace("__ENTRY__", _chunk34SGGZ4Pjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "main.ts"))).replace("<!-- head -->", head).replace("<!-- body -->", body);
|
|
94
94
|
return main;
|
|
95
95
|
}
|
|
96
96
|
async function mergeViteConfigs({ addonRoots, themeRoots }, viteConfig, config, command) {
|
|
@@ -203,9 +203,9 @@ var dependencies = {
|
|
|
203
203
|
mermaid: "^10.3.0",
|
|
204
204
|
"monaco-editor": "^0.37.1",
|
|
205
205
|
nanoid: "^4.0.2",
|
|
206
|
-
prettier: "^3.0.
|
|
206
|
+
prettier: "^3.0.1",
|
|
207
207
|
recordrtc: "^5.6.2",
|
|
208
|
-
resolve: "^1.22.
|
|
208
|
+
resolve: "^1.22.4",
|
|
209
209
|
unocss: "^0.54.1",
|
|
210
210
|
"vite-plugin-windicss": "^1.9.0",
|
|
211
211
|
vue: "^3.3.4",
|
|
@@ -287,7 +287,7 @@ function createConfigPlugin(options) {
|
|
|
287
287
|
define: getDefine(options),
|
|
288
288
|
resolve: {
|
|
289
289
|
alias: {
|
|
290
|
-
"@slidev/client/": `${
|
|
290
|
+
"@slidev/client/": `${_chunk34SGGZ4Pjs.toAtFS.call(void 0, options.clientRoot)}/`
|
|
291
291
|
},
|
|
292
292
|
dedupe: ["vue"]
|
|
293
293
|
},
|
|
@@ -322,7 +322,7 @@ function createConfigPlugin(options) {
|
|
|
322
322
|
allow: _utils.uniq.call(void 0, [
|
|
323
323
|
searchForWorkspaceRoot(options.userRoot),
|
|
324
324
|
searchForWorkspaceRoot(options.cliRoot),
|
|
325
|
-
..._isinstalledglobally2.default ? [_path.dirname.call(void 0,
|
|
325
|
+
..._isinstalledglobally2.default ? [_path.dirname.call(void 0, _chunk34SGGZ4Pjs.resolveGlobalImportPath.call(void 0, "@slidev/client/package.json")), _path.dirname.call(void 0, _chunk34SGGZ4Pjs.resolveGlobalImportPath.call(void 0, "katex/package.json"))] : []
|
|
326
326
|
])
|
|
327
327
|
}
|
|
328
328
|
},
|
|
@@ -331,7 +331,7 @@ function createConfigPlugin(options) {
|
|
|
331
331
|
if (_isinstalledglobally2.default) {
|
|
332
332
|
injection.cacheDir = _path.join.call(void 0, options.cliRoot, "node_modules/.vite");
|
|
333
333
|
injection.root = options.cliRoot;
|
|
334
|
-
injection.resolve.alias.vue = `${
|
|
334
|
+
injection.resolve.alias.vue = `${_chunk34SGGZ4Pjs.resolveImportPath.call(void 0, "vue/dist/vue.esm-browser.js", true)}`;
|
|
335
335
|
}
|
|
336
336
|
return _vite.mergeConfig.call(void 0, injection, config);
|
|
337
337
|
},
|
|
@@ -353,7 +353,7 @@ function createConfigPlugin(options) {
|
|
|
353
353
|
function getDefine(options) {
|
|
354
354
|
return {
|
|
355
355
|
__DEV__: options.mode === "dev" ? "true" : "false",
|
|
356
|
-
__SLIDEV_CLIENT_ROOT__: JSON.stringify(
|
|
356
|
+
__SLIDEV_CLIENT_ROOT__: JSON.stringify(_chunk34SGGZ4Pjs.toAtFS.call(void 0, options.clientRoot)),
|
|
357
357
|
__SLIDEV_HASH_ROUTE__: JSON.stringify(options.data.config.routerMode === "hash"),
|
|
358
358
|
__SLIDEV_FEATURE_DRAWINGS__: JSON.stringify(options.data.config.drawings.enabled === true || options.data.config.drawings.enabled === options.mode),
|
|
359
359
|
__SLIDEV_FEATURE_DRAWINGS_PERSIST__: JSON.stringify(!!options.data.config.drawings.persist === true),
|
|
@@ -364,7 +364,7 @@ function getDefine(options) {
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
// node/plugins/loaders.ts
|
|
367
|
-
var import_fast_deep_equal =
|
|
367
|
+
var import_fast_deep_equal = _chunkQDKRARRUjs.__toESM.call(void 0, require_fast_deep_equal());
|
|
368
368
|
|
|
369
369
|
|
|
370
370
|
|
|
@@ -634,7 +634,7 @@ ${title}
|
|
|
634
634
|
delete frontmatter.title;
|
|
635
635
|
const imports = [
|
|
636
636
|
'import { inject as vueInject } from "vue"',
|
|
637
|
-
`import InjectedLayout from "${
|
|
637
|
+
`import InjectedLayout from "${_chunk34SGGZ4Pjs.toAtFS.call(void 0, layouts[layoutName])}"`,
|
|
638
638
|
'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
|
|
639
639
|
`const frontmatter = ${JSON.stringify(frontmatter)}`,
|
|
640
640
|
"const $slidev = vueInject(injectionSlidevContext)"
|
|
@@ -739,10 +739,10 @@ defineProps<{ no: number | string }>()`);
|
|
|
739
739
|
}
|
|
740
740
|
async function generateUserStyles() {
|
|
741
741
|
const imports = [
|
|
742
|
-
`import "${
|
|
743
|
-
`import "${
|
|
744
|
-
`import "${
|
|
745
|
-
`import "${
|
|
742
|
+
`import "${_chunk34SGGZ4Pjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/vars.css"))}"`,
|
|
743
|
+
`import "${_chunk34SGGZ4Pjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/index.css"))}"`,
|
|
744
|
+
`import "${_chunk34SGGZ4Pjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/code.css"))}"`,
|
|
745
|
+
`import "${_chunk34SGGZ4Pjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/transitions.css"))}"`
|
|
746
746
|
];
|
|
747
747
|
const roots2 = _utils.uniq.call(void 0, [
|
|
748
748
|
...themeRoots,
|
|
@@ -759,13 +759,13 @@ defineProps<{ no: number | string }>()`);
|
|
|
759
759
|
];
|
|
760
760
|
for (const style of styles) {
|
|
761
761
|
if (_fsextra.existsSync.call(void 0, style)) {
|
|
762
|
-
imports.push(`import "${
|
|
762
|
+
imports.push(`import "${_chunk34SGGZ4Pjs.toAtFS.call(void 0, style)}"`);
|
|
763
763
|
continue;
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
if (data.features.katex)
|
|
768
|
-
imports.push(`import "${
|
|
768
|
+
imports.push(`import "${_chunk34SGGZ4Pjs.toAtFS.call(void 0, _chunk34SGGZ4Pjs.resolveImportPath.call(void 0, "katex/dist/katex.min.css", true))}"`);
|
|
769
769
|
if (data.config.css === "unocss") {
|
|
770
770
|
imports.unshift(
|
|
771
771
|
'import "@unocss/reset/tailwind.css"',
|
|
@@ -793,7 +793,7 @@ defineProps<{ no: number | string }>()`);
|
|
|
793
793
|
const layouts = _utils.objectMap.call(void 0,
|
|
794
794
|
await getLayouts(),
|
|
795
795
|
(k, v) => {
|
|
796
|
-
imports.push(`import __layout_${k} from "${
|
|
796
|
+
imports.push(`import __layout_${k} from "${_chunk34SGGZ4Pjs.toAtFS.call(void 0, v)}"`);
|
|
797
797
|
return [k, `__layout_${k}`];
|
|
798
798
|
}
|
|
799
799
|
);
|
|
@@ -842,7 +842,7 @@ ${redirects.join(",\n")}
|
|
|
842
842
|
const config = { ...data.config, remote };
|
|
843
843
|
if (_utils.isString.call(void 0, config.title)) {
|
|
844
844
|
const tokens = md.parseInline(config.title, {});
|
|
845
|
-
config.title =
|
|
845
|
+
config.title = _chunk34SGGZ4Pjs.stringifyMarkdownTokens.call(void 0, tokens);
|
|
846
846
|
}
|
|
847
847
|
if (_utils.isString.call(void 0, config.info))
|
|
848
848
|
config.info = md.render(config.info);
|
|
@@ -863,7 +863,7 @@ ${redirects.join(",\n")}
|
|
|
863
863
|
];
|
|
864
864
|
}
|
|
865
865
|
}).filter((i) => _fsextra2.default.existsSync(i));
|
|
866
|
-
const imports = components.map((i, idx) => `import __n${idx} from '${
|
|
866
|
+
const imports = components.map((i, idx) => `import __n${idx} from '${_chunk34SGGZ4Pjs.toAtFS.call(void 0, i)}'`).join("\n");
|
|
867
867
|
const render = components.map((i, idx) => `h(__n${idx})`).join(",");
|
|
868
868
|
return `
|
|
869
869
|
${imports}
|
|
@@ -882,7 +882,7 @@ export default {
|
|
|
882
882
|
_path.join.call(void 0, root, "CustomNavControls.vue")
|
|
883
883
|
];
|
|
884
884
|
}).filter((i) => _fsextra2.default.existsSync(i));
|
|
885
|
-
const imports = components.map((i, idx) => `import __n${idx} from '${
|
|
885
|
+
const imports = components.map((i, idx) => `import __n${idx} from '${_chunk34SGGZ4Pjs.toAtFS.call(void 0, i)}'`).join("\n");
|
|
886
886
|
const render = components.map((i, idx) => `h(__n${idx})`).join(",");
|
|
887
887
|
return `
|
|
888
888
|
${imports}
|
|
@@ -963,7 +963,7 @@ function createClientSetupPlugin({ clientRoot, themeRoots, addonRoots, userRoot
|
|
|
963
963
|
setups.forEach((path, idx) => {
|
|
964
964
|
if (!_fs.existsSync.call(void 0, path))
|
|
965
965
|
return;
|
|
966
|
-
imports.push(`import __n${idx} from '${
|
|
966
|
+
imports.push(`import __n${idx} from '${_chunk34SGGZ4Pjs.toAtFS.call(void 0, path)}'`);
|
|
967
967
|
let fn = `:AWAIT:__n${idx}`;
|
|
968
968
|
if (/\binjection_return\b/g.test(code))
|
|
969
969
|
fn = `injection_return = ${fn}`;
|
|
@@ -1186,7 +1186,7 @@ function loadPrismLang(lang) {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
function loadPrismPlugin(name) {
|
|
1188
1188
|
try {
|
|
1189
|
-
|
|
1189
|
+
_chunkQDKRARRUjs.__require.call(void 0, `prismjs/plugins/${name}/prism-${name}`);
|
|
1190
1190
|
} catch (e) {
|
|
1191
1191
|
throw new Error(`Cannot load Prism plugin "${name}". Please check the spelling.`);
|
|
1192
1192
|
}
|
|
@@ -1636,7 +1636,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
|
|
|
1636
1636
|
dev: true,
|
|
1637
1637
|
build: true
|
|
1638
1638
|
})) : null,
|
|
1639
|
-
config.css === "none" ? null : config.css === "windicss" ? Promise.resolve().then(() => require("./windicss-
|
|
1639
|
+
config.css === "none" ? null : config.css === "windicss" ? Promise.resolve().then(() => require("./windicss-3HGYWXUJ.js")).then((r) => r.createWindiCSSPlugin(options, pluginOptions)) : Promise.resolve().then(() => require("./unocss-2T2KTWQ5.js")).then((r) => r.createUnocssPlugin(options, pluginOptions))
|
|
1640
1640
|
];
|
|
1641
1641
|
return (await Promise.all(plugins)).flat().filter(_utils.notNullish);
|
|
1642
1642
|
}
|
|
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
9
9
|
}) : x)(function(x) {
|
|
10
10
|
if (typeof require !== "undefined")
|
|
11
11
|
return require.apply(this, arguments);
|
|
12
|
-
throw
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
13
|
});
|
|
14
14
|
var __commonJS = (cb, mod) => function __require2() {
|
|
15
15
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
resolveImportPath,
|
|
8
8
|
stringifyMarkdownTokens,
|
|
9
9
|
toAtFS
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MZBIET7Y.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__commonJS,
|
|
13
13
|
__require,
|
|
14
14
|
__toESM
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KB3DQ2OE.mjs";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
18
18
|
var require_fast_deep_equal = __commonJS({
|
|
@@ -203,9 +203,9 @@ var dependencies = {
|
|
|
203
203
|
mermaid: "^10.3.0",
|
|
204
204
|
"monaco-editor": "^0.37.1",
|
|
205
205
|
nanoid: "^4.0.2",
|
|
206
|
-
prettier: "^3.0.
|
|
206
|
+
prettier: "^3.0.1",
|
|
207
207
|
recordrtc: "^5.6.2",
|
|
208
|
-
resolve: "^1.22.
|
|
208
|
+
resolve: "^1.22.4",
|
|
209
209
|
unocss: "^0.54.1",
|
|
210
210
|
"vite-plugin-windicss": "^1.9.0",
|
|
211
211
|
vue: "^3.3.4",
|
|
@@ -1636,7 +1636,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
|
|
|
1636
1636
|
dev: true,
|
|
1637
1637
|
build: true
|
|
1638
1638
|
})) : null,
|
|
1639
|
-
config.css === "none" ? null : config.css === "windicss" ? import("./windicss-
|
|
1639
|
+
config.css === "none" ? null : config.css === "windicss" ? import("./windicss-TWSVDM4O.mjs").then((r) => r.createWindiCSSPlugin(options, pluginOptions)) : import("./unocss-ALFHEPHE.mjs").then((r) => r.createUnocssPlugin(options, pluginOptions))
|
|
1640
1640
|
];
|
|
1641
1641
|
return (await Promise.all(plugins)).flat().filter(notNullish2);
|
|
1642
1642
|
}
|
|
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
9
9
|
}) : x)(function(x) {
|
|
10
10
|
if (typeof require !== "undefined")
|
|
11
11
|
return require.apply(this, arguments);
|
|
12
|
-
throw
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
13
|
});
|
|
14
14
|
var __commonJS = (cb, mod) => function __require2() {
|
|
15
15
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkKKGXM3XLjs = require('./chunk-KKGXM3XL.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk34SGGZ4Pjs = require('./chunk-34SGGZ4P.js');
|
|
7
7
|
|
|
8
8
|
// node/plugins/windicss.ts
|
|
9
9
|
var _path = require('path');
|
|
@@ -51,9 +51,9 @@ async function createWindiCSSPlugin({ themeRoots, addonRoots, clientRoot, userRo
|
|
|
51
51
|
config2.scanOptions.include.push(`${i}/layouts/**/*.{vue,ts}`);
|
|
52
52
|
});
|
|
53
53
|
config2.scanOptions.include.push(`!${_utils.slash.call(void 0, _path.resolve.call(void 0, userRoot, "node_modules"))}`);
|
|
54
|
-
config2.scanOptions.exclude.push(_path.dirname.call(void 0,
|
|
55
|
-
config2.scanOptions.exclude.push(_path.dirname.call(void 0,
|
|
56
|
-
config2.scanOptions.exclude.push(_path.dirname.call(void 0,
|
|
54
|
+
config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk34SGGZ4Pjs.resolveImportPath.call(void 0, "monaco-editor/package.json", true)));
|
|
55
|
+
config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk34SGGZ4Pjs.resolveImportPath.call(void 0, "katex/package.json", true)));
|
|
56
|
+
config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk34SGGZ4Pjs.resolveImportPath.call(void 0, "prettier/package.json", true)));
|
|
57
57
|
},
|
|
58
58
|
...windiOptions
|
|
59
59
|
}
|