@slidev/cli 0.28.9 → 0.28.10
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/README.md +2 -2
- package/dist/{build-UAXLRRRY.mjs → build-SSE6CJNH.mjs} +3 -3
- package/dist/{build-LNYEZJHB.js → build-VQ6LBTZA.js} +11 -11
- package/dist/{chunk-7EOQAS5A.js → chunk-27R37BMF.js} +119 -119
- package/dist/{chunk-3GUS44Q2.js → chunk-2SSJRGTD.js} +4 -4
- package/dist/{chunk-G3ZLZVFZ.mjs → chunk-2TR76FQE.mjs} +2 -2
- package/dist/{chunk-7DP4LAWN.js → chunk-427KVGZF.js} +59 -59
- package/dist/{chunk-QT3EQ43A.js → chunk-7QXPSYEZ.js} +2 -2
- package/dist/{chunk-GVUUNY2S.mjs → chunk-FOVZ2FGH.mjs} +6 -6
- package/dist/{chunk-QAJFKNCE.mjs → chunk-OIWGD2TC.mjs} +2 -2
- package/dist/{chunk-4OPORETI.mjs → chunk-VYBQLH2X.mjs} +2 -2
- package/dist/cli.js +25 -25
- package/dist/cli.mjs +6 -6
- package/dist/{export-64ZO3O77.mjs → export-C3RVIEF4.mjs} +2 -2
- package/dist/{export-OMYGNP7W.js → export-ZRXUVXEE.js} +5 -5
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/package.json +10 -10
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk427KVGZFjs = require('./chunk-427KVGZF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7QXPSYEZjs = require('./chunk-7QXPSYEZ.js');
|
|
7
7
|
|
|
8
8
|
// node/server.ts
|
|
9
|
-
|
|
9
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var _path = require('path');
|
|
11
11
|
var _vite = require('vite');
|
|
12
12
|
async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
@@ -20,7 +20,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
plugins: [
|
|
23
|
-
await
|
|
23
|
+
await _chunk427KVGZFjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
|
|
24
24
|
]
|
|
25
25
|
}));
|
|
26
26
|
return server;
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__toModule,
|
|
9
9
|
init_esm_shims,
|
|
10
10
|
resolveImportPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VYBQLH2X.mjs";
|
|
12
12
|
|
|
13
13
|
// ../../node_modules/.pnpm/semver@7.3.5/node_modules/semver/internal/constants.js
|
|
14
14
|
var require_constants = __commonJS({
|
|
@@ -5372,7 +5372,7 @@ async function saveExternalSlide(slide) {
|
|
|
5372
5372
|
init_esm_shims();
|
|
5373
5373
|
|
|
5374
5374
|
// package.json
|
|
5375
|
-
var version = "0.28.
|
|
5375
|
+
var version = "0.28.10";
|
|
5376
5376
|
|
|
5377
5377
|
// node/themes.ts
|
|
5378
5378
|
init_esm_shims();
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk7QXPSYEZjs = require('./chunk-7QXPSYEZ.js');
|
|
14
14
|
|
|
15
15
|
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
16
|
-
var require_fast_deep_equal =
|
|
16
|
+
var require_fast_deep_equal = _chunk7QXPSYEZjs.__commonJS.call(void 0, {
|
|
17
17
|
"../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
18
18
|
"use strict";
|
|
19
|
-
|
|
19
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
20
20
|
module.exports = function equal2(a, b) {
|
|
21
21
|
if (a === b)
|
|
22
22
|
return true;
|
|
@@ -59,7 +59,7 @@ var require_fast_deep_equal = _chunkQT3EQ43Ajs.__commonJS.call(void 0, {
|
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
// node/common.ts
|
|
62
|
-
|
|
62
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
63
63
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
64
64
|
var _path = require('path');
|
|
65
65
|
var _utils = require('@antfu/utils');
|
|
@@ -87,13 +87,13 @@ ${(((_b = index.match(/<body>([\s\S]*?)<\/body>/im)) == null ? void 0 : _b[1]) |
|
|
|
87
87
|
body += '\n<script async src="https://platform.twitter.com/widgets.js"><\/script>';
|
|
88
88
|
if (data.config.fonts.webfonts.length && data.config.fonts.provider !== "none")
|
|
89
89
|
head += `
|
|
90
|
-
<link rel="stylesheet" href="${
|
|
91
|
-
main = main.replace("__ENTRY__",
|
|
90
|
+
<link rel="stylesheet" href="${_chunk7QXPSYEZjs.generateGoogleFontsUrl.call(void 0, data.config.fonts)}" type="text/css">`;
|
|
91
|
+
main = main.replace("__ENTRY__", _chunk7QXPSYEZjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "main.ts"))).replace("<!-- head -->", head).replace("<!-- body -->", body);
|
|
92
92
|
return main;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
// node/plugins/windicss.ts
|
|
96
|
-
|
|
96
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
|
|
@@ -101,13 +101,13 @@ var _vitepluginwindicss = require('vite-plugin-windicss'); var _vitepluginwindic
|
|
|
101
101
|
var _jiti = require('jiti'); var _jiti2 = _interopRequireDefault(_jiti);
|
|
102
102
|
|
|
103
103
|
// node/plugins/setupNode.ts
|
|
104
|
-
|
|
104
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
105
105
|
|
|
106
106
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
function deepMerge(a, b, rootPath = "") {
|
|
110
|
-
a =
|
|
110
|
+
a = _chunk7QXPSYEZjs.__spreadValues.call(void 0, {}, a);
|
|
111
111
|
Object.keys(b).forEach((key) => {
|
|
112
112
|
if (_utils.isObject.call(void 0, a[key]))
|
|
113
113
|
a[key] = deepMerge(a[key], b[key], rootPath ? `${rootPath}.${key}` : key);
|
|
@@ -145,7 +145,7 @@ async function createWindiCSSPlugin({ themeRoots, clientRoot, userRoot, roots, d
|
|
|
145
145
|
if (config.default)
|
|
146
146
|
config = config.default;
|
|
147
147
|
config = await loadSetups(roots, "windicss.ts", {}, config, true);
|
|
148
|
-
return _vitepluginwindicss2.default.call(void 0,
|
|
148
|
+
return _vitepluginwindicss2.default.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {
|
|
149
149
|
configFiles: [configFile],
|
|
150
150
|
config,
|
|
151
151
|
onConfigResolved(config2) {
|
|
@@ -167,15 +167,15 @@ async function createWindiCSSPlugin({ themeRoots, clientRoot, userRoot, roots, d
|
|
|
167
167
|
config2.scanOptions.include.push(`${i}/layouts/*.{vue,ts}`);
|
|
168
168
|
});
|
|
169
169
|
config2.scanOptions.include.push(`!${_utils.slash.call(void 0, _path.resolve.call(void 0, userRoot, "node_modules"))}`);
|
|
170
|
-
config2.scanOptions.exclude.push(_path.dirname.call(void 0,
|
|
171
|
-
config2.scanOptions.exclude.push(_path.dirname.call(void 0,
|
|
172
|
-
config2.scanOptions.exclude.push(_path.dirname.call(void 0,
|
|
170
|
+
config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk7QXPSYEZjs.resolveImportPath.call(void 0, "monaco-editor/package.json", true)));
|
|
171
|
+
config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk7QXPSYEZjs.resolveImportPath.call(void 0, "katex/package.json", true)));
|
|
172
|
+
config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk7QXPSYEZjs.resolveImportPath.call(void 0, "prettier/package.json", true)));
|
|
173
173
|
}
|
|
174
174
|
}, windiOptions));
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
// node/plugins/preset.ts
|
|
178
|
-
|
|
178
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
179
179
|
var _pluginvue = require('@vitejs/plugin-vue'); var _pluginvue2 = _interopRequireDefault(_pluginvue);
|
|
180
180
|
var _vite = require('unplugin-icons/vite'); var _vite2 = _interopRequireDefault(_vite);
|
|
181
181
|
var _resolver = require('unplugin-icons/resolver'); var _resolver2 = _interopRequireDefault(_resolver);
|
|
@@ -185,7 +185,7 @@ var _vitepluginvueserverref = require('vite-plugin-vue-server-ref'); var _vitepl
|
|
|
185
185
|
|
|
186
186
|
|
|
187
187
|
// node/drawings.ts
|
|
188
|
-
|
|
188
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
189
189
|
|
|
190
190
|
|
|
191
191
|
var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);
|
|
@@ -231,7 +231,7 @@ ${value}
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
// node/plugins/extendConfig.ts
|
|
234
|
-
|
|
234
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
235
235
|
|
|
236
236
|
var _vite5 = require('vite');
|
|
237
237
|
var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);
|
|
@@ -242,11 +242,11 @@ var dependencies = {
|
|
|
242
242
|
"@antfu/utils": "^0.5.0",
|
|
243
243
|
"@slidev/parser": "workspace:*",
|
|
244
244
|
"@slidev/types": "workspace:*",
|
|
245
|
-
"@vueuse/core": "^7.
|
|
245
|
+
"@vueuse/core": "^7.7.0",
|
|
246
246
|
"@vueuse/head": "^0.7.5",
|
|
247
247
|
"@vueuse/motion": "^2.0.0-beta.9",
|
|
248
248
|
codemirror: "^5.65.2",
|
|
249
|
-
drauu: "^0.
|
|
249
|
+
drauu: "^0.3.0",
|
|
250
250
|
"file-saver": "^2.0.5",
|
|
251
251
|
"js-base64": "^3.7.2",
|
|
252
252
|
"js-yaml": "^4.1.0",
|
|
@@ -257,14 +257,14 @@ var dependencies = {
|
|
|
257
257
|
prettier: "^2.5.1",
|
|
258
258
|
recordrtc: "^5.6.2",
|
|
259
259
|
resolve: "^1.22.0",
|
|
260
|
-
"vite-plugin-windicss": "^1.
|
|
260
|
+
"vite-plugin-windicss": "^1.8.2",
|
|
261
261
|
vue: "^3.2.31",
|
|
262
|
-
"vue-router": "^4.0.
|
|
263
|
-
windicss: "^3.
|
|
262
|
+
"vue-router": "^4.0.13",
|
|
263
|
+
windicss: "^3.5.1"
|
|
264
264
|
};
|
|
265
265
|
|
|
266
266
|
// node/vite/searchRoot.ts
|
|
267
|
-
|
|
267
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
268
268
|
|
|
269
269
|
|
|
270
270
|
var ROOT_FILES = [
|
|
@@ -324,7 +324,7 @@ function createConfigPlugin(options) {
|
|
|
324
324
|
define: getDefine(options),
|
|
325
325
|
resolve: {
|
|
326
326
|
alias: {
|
|
327
|
-
"@slidev/client/": `${
|
|
327
|
+
"@slidev/client/": `${_chunk7QXPSYEZjs.toAtFS.call(void 0, options.clientRoot)}/`
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
330
|
optimizeDeps: {
|
|
@@ -351,7 +351,7 @@ function createConfigPlugin(options) {
|
|
|
351
351
|
allow: _utils.uniq.call(void 0, [
|
|
352
352
|
searchForWorkspaceRoot(options.userRoot),
|
|
353
353
|
searchForWorkspaceRoot(options.cliRoot),
|
|
354
|
-
..._isinstalledglobally2.default ? [_path.dirname.call(void 0,
|
|
354
|
+
..._isinstalledglobally2.default ? [_path.dirname.call(void 0, _chunk7QXPSYEZjs.resolveGlobalImportPath.call(void 0, "@slidev/client/package.json")), _path.dirname.call(void 0, _chunk7QXPSYEZjs.resolveGlobalImportPath.call(void 0, "katex/package.json"))] : []
|
|
355
355
|
])
|
|
356
356
|
}
|
|
357
357
|
}
|
|
@@ -360,7 +360,7 @@ function createConfigPlugin(options) {
|
|
|
360
360
|
injection.cacheDir = _path.join.call(void 0, options.cliRoot, "node_modules/.vite");
|
|
361
361
|
injection.publicDir = _path.join.call(void 0, options.userRoot, "public");
|
|
362
362
|
injection.root = options.cliRoot;
|
|
363
|
-
injection.resolve.alias.vue = `${
|
|
363
|
+
injection.resolve.alias.vue = `${_chunk7QXPSYEZjs.resolveImportPath.call(void 0, "vue/dist/vue.esm-browser.js", true)}`;
|
|
364
364
|
}
|
|
365
365
|
return _vite5.mergeConfig.call(void 0, config, injection);
|
|
366
366
|
},
|
|
@@ -381,7 +381,7 @@ function createConfigPlugin(options) {
|
|
|
381
381
|
}
|
|
382
382
|
function getDefine(options) {
|
|
383
383
|
return {
|
|
384
|
-
__SLIDEV_CLIENT_ROOT__: JSON.stringify(
|
|
384
|
+
__SLIDEV_CLIENT_ROOT__: JSON.stringify(_chunk7QXPSYEZjs.toAtFS.call(void 0, options.clientRoot)),
|
|
385
385
|
__SLIDEV_HASH_ROUTE__: JSON.stringify(options.data.config.routerMode === "hash"),
|
|
386
386
|
__SLIDEV_FEATURE_DRAWINGS__: JSON.stringify(options.data.config.drawings.enabled === true || options.data.config.drawings.enabled === options.mode),
|
|
387
387
|
__SLIDEV_FEATURE_DRAWINGS_PERSIST__: JSON.stringify(!!options.data.config.drawings.persist === true),
|
|
@@ -390,8 +390,8 @@ function getDefine(options) {
|
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
// node/plugins/loaders.ts
|
|
393
|
-
|
|
394
|
-
var import_fast_deep_equal =
|
|
393
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
394
|
+
var import_fast_deep_equal = _chunk7QXPSYEZjs.__toModule.call(void 0, require_fast_deep_equal());
|
|
395
395
|
|
|
396
396
|
|
|
397
397
|
|
|
@@ -423,7 +423,7 @@ md.use(_markdownitlinkattributes2.default, {
|
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
function prepareSlideInfo(data) {
|
|
426
|
-
return
|
|
426
|
+
return _chunk7QXPSYEZjs.__spreadProps.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {}, data), {
|
|
427
427
|
notesHTML: md.render((data == null ? void 0 : data.note) || "")
|
|
428
428
|
});
|
|
429
429
|
}
|
|
@@ -512,7 +512,7 @@ function createSlidesLoader({ data, entry, clientRoot, themeRoots, userRoot, roo
|
|
|
512
512
|
const file = `${slidePrefix}${i + 1}.md`;
|
|
513
513
|
try {
|
|
514
514
|
const md2 = await transformMarkdown(MarkdownPlugin.transform((_a2 = newData.slides[i]) == null ? void 0 : _a2.content, file), i, newData);
|
|
515
|
-
return await VuePlugin.handleHotUpdate(
|
|
515
|
+
return await VuePlugin.handleHotUpdate(_chunk7QXPSYEZjs.__spreadProps.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {}, ctx), {
|
|
516
516
|
modules: Array.from(ctx.server.moduleGraph.getModulesByFile(file) || []),
|
|
517
517
|
file,
|
|
518
518
|
read() {
|
|
@@ -601,13 +601,13 @@ function createSlidesLoader({ data, entry, clientRoot, themeRoots, userRoot, roo
|
|
|
601
601
|
async function transformMarkdown(code, pageNo, data2) {
|
|
602
602
|
var _a, _b;
|
|
603
603
|
const layouts = await getLayouts();
|
|
604
|
-
const frontmatter =
|
|
604
|
+
const frontmatter = _chunk7QXPSYEZjs.__spreadValues.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {}, ((_a = data2.headmatter) == null ? void 0 : _a.defaults) || {}), ((_b = data2.slides[pageNo]) == null ? void 0 : _b.frontmatter) || {});
|
|
605
605
|
const layoutName = (frontmatter == null ? void 0 : frontmatter.layout) || (pageNo === 0 ? "cover" : "default");
|
|
606
606
|
if (!layouts[layoutName])
|
|
607
607
|
throw new Error(`Unknown layout "${layoutName}"`);
|
|
608
608
|
delete frontmatter.title;
|
|
609
609
|
const imports = [
|
|
610
|
-
`import InjectedLayout from "${
|
|
610
|
+
`import InjectedLayout from "${_chunk7QXPSYEZjs.toAtFS.call(void 0, layouts[layoutName])}"`,
|
|
611
611
|
`const frontmatter = ${JSON.stringify(frontmatter)}`
|
|
612
612
|
];
|
|
613
613
|
code = code.replace(/(<script setup.*>)/g, `$1
|
|
@@ -653,9 +653,9 @@ ${code.slice(injectB)}`;
|
|
|
653
653
|
}
|
|
654
654
|
async function generateUserStyles() {
|
|
655
655
|
const imports = [
|
|
656
|
-
`import "${
|
|
657
|
-
`import "${
|
|
658
|
-
`import "${
|
|
656
|
+
`import "${_chunk7QXPSYEZjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/vars.css"))}"`,
|
|
657
|
+
`import "${_chunk7QXPSYEZjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/index.css"))}"`,
|
|
658
|
+
`import "${_chunk7QXPSYEZjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/code.css"))}"`
|
|
659
659
|
];
|
|
660
660
|
const roots2 = _utils.uniq.call(void 0, [
|
|
661
661
|
...themeRoots,
|
|
@@ -671,13 +671,13 @@ ${code.slice(injectB)}`;
|
|
|
671
671
|
];
|
|
672
672
|
for (const style of styles) {
|
|
673
673
|
if (_fsextra.existsSync.call(void 0, style)) {
|
|
674
|
-
imports.push(`import "${
|
|
674
|
+
imports.push(`import "${_chunk7QXPSYEZjs.toAtFS.call(void 0, style)}"`);
|
|
675
675
|
continue;
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
if (data.features.katex)
|
|
680
|
-
imports.push(`import "${
|
|
680
|
+
imports.push(`import "${_chunk7QXPSYEZjs.toAtFS.call(void 0, _chunk7QXPSYEZjs.resolveImportPath.call(void 0, "katex/dist/katex.min.css", true))}"`);
|
|
681
681
|
return imports.join("\n");
|
|
682
682
|
}
|
|
683
683
|
async function generateMonacoTypes() {
|
|
@@ -686,7 +686,7 @@ ${code.slice(injectB)}`;
|
|
|
686
686
|
async function generateLayouts() {
|
|
687
687
|
const imports = [];
|
|
688
688
|
const layouts = _utils.objectMap.call(void 0, await getLayouts(), (k, v) => {
|
|
689
|
-
imports.push(`import __layout_${k} from "${
|
|
689
|
+
imports.push(`import __layout_${k} from "${_chunk7QXPSYEZjs.toAtFS.call(void 0, v)}"`);
|
|
690
690
|
return [k, `__layout_${k}`];
|
|
691
691
|
});
|
|
692
692
|
return [
|
|
@@ -734,10 +734,10 @@ ${routes.join(",\n")}
|
|
|
734
734
|
return [...imports, routesStr].join("\n");
|
|
735
735
|
}
|
|
736
736
|
function generateConfigs() {
|
|
737
|
-
const config =
|
|
737
|
+
const config = _chunk7QXPSYEZjs.__spreadValues.call(void 0, {}, data.config);
|
|
738
738
|
if (_utils.isString.call(void 0, config.title)) {
|
|
739
739
|
const tokens = md.parseInline(config.title, {});
|
|
740
|
-
config.title =
|
|
740
|
+
config.title = _chunk7QXPSYEZjs.stringifyMarkdownTokens.call(void 0, tokens);
|
|
741
741
|
}
|
|
742
742
|
if (_utils.isString.call(void 0, config.info))
|
|
743
743
|
config.info = md.render(config.info);
|
|
@@ -758,7 +758,7 @@ ${routes.join(",\n")}
|
|
|
758
758
|
];
|
|
759
759
|
}
|
|
760
760
|
}).filter((i) => _fsextra2.default.existsSync(i));
|
|
761
|
-
const imports = components.map((i, idx) => `import __n${idx} from '${
|
|
761
|
+
const imports = components.map((i, idx) => `import __n${idx} from '${_chunk7QXPSYEZjs.toAtFS.call(void 0, i)}'`).join("\n");
|
|
762
762
|
const render = components.map((i, idx) => `h(__n${idx})`).join(",");
|
|
763
763
|
return `
|
|
764
764
|
${imports}
|
|
@@ -773,7 +773,7 @@ export default {
|
|
|
773
773
|
}
|
|
774
774
|
|
|
775
775
|
// node/plugins/monacoTransform.ts
|
|
776
|
-
|
|
776
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
777
777
|
|
|
778
778
|
|
|
779
779
|
|
|
@@ -807,7 +807,7 @@ function createMonacoTypesLoader() {
|
|
|
807
807
|
}
|
|
808
808
|
|
|
809
809
|
// node/plugins/setupClient.ts
|
|
810
|
-
|
|
810
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
811
811
|
|
|
812
812
|
|
|
813
813
|
|
|
@@ -829,7 +829,7 @@ function createClientSetupPlugin({ clientRoot, themeRoots, userRoot }) {
|
|
|
829
829
|
setups.forEach((path, idx) => {
|
|
830
830
|
if (!_fs.existsSync.call(void 0, path))
|
|
831
831
|
return;
|
|
832
|
-
imports.push(`import __n${idx} from '${
|
|
832
|
+
imports.push(`import __n${idx} from '${_chunk7QXPSYEZjs.toAtFS.call(void 0, path)}'`);
|
|
833
833
|
let fn = `__n${idx}`;
|
|
834
834
|
let awaitFn = `await __n${idx}`;
|
|
835
835
|
if (/\binjection_return\b/g.test(code)) {
|
|
@@ -857,7 +857,7 @@ function createClientSetupPlugin({ clientRoot, themeRoots, userRoot }) {
|
|
|
857
857
|
}
|
|
858
858
|
|
|
859
859
|
// node/plugins/markdown.ts
|
|
860
|
-
|
|
860
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
861
861
|
var _vitepluginmd = require('vite-plugin-md'); var _vitepluginmd2 = _interopRequireDefault(_vitepluginmd);
|
|
862
862
|
var _jsbase64 = require('js-base64'); var base64 = _interopRequireWildcard(_jsbase64);
|
|
863
863
|
|
|
@@ -867,7 +867,7 @@ var _shiki = require('shiki'); var Shiki = _interopRequireWildcard(_shiki);
|
|
|
867
867
|
var _plantumlencoder = require('plantuml-encoder');
|
|
868
868
|
|
|
869
869
|
// node/plugins/markdown-it-katex.ts
|
|
870
|
-
|
|
870
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
871
871
|
var _katex = require('katex'); var _katex2 = _interopRequireDefault(_katex);
|
|
872
872
|
function isValidDelim(state, pos) {
|
|
873
873
|
const max = state.posMax;
|
|
@@ -1014,7 +1014,7 @@ function math_plugin(md2, options) {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
1016
1016
|
// node/plugins/markdown-it-prism.ts
|
|
1017
|
-
|
|
1017
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
1018
1018
|
var _prismjs = require('prismjs'); var _prismjs2 = _interopRequireDefault(_prismjs);
|
|
1019
1019
|
var _ = require('prismjs/components/'); var _2 = _interopRequireDefault(_);
|
|
1020
1020
|
var DEFAULTS = {
|
|
@@ -1037,7 +1037,7 @@ function loadPrismLang(lang) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
function loadPrismPlugin(name) {
|
|
1039
1039
|
try {
|
|
1040
|
-
|
|
1040
|
+
_chunk7QXPSYEZjs.__require.call(void 0, `prismjs/plugins/${name}/prism-${name}`);
|
|
1041
1041
|
} catch (e) {
|
|
1042
1042
|
throw new Error(`Cannot load Prism plugin "${name}". Please check the spelling.`);
|
|
1043
1043
|
}
|
|
@@ -1077,7 +1077,7 @@ function markdownItPrism(markdownit, useroptions) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
// node/plugins/markdown-it-shiki.ts
|
|
1080
|
-
|
|
1080
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
1081
1081
|
function getThemeName(theme) {
|
|
1082
1082
|
if (typeof theme === "string")
|
|
1083
1083
|
return theme;
|
|
@@ -1099,7 +1099,7 @@ function resolveShikiOptions(options) {
|
|
|
1099
1099
|
themes.push(options.theme);
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
|
-
return
|
|
1102
|
+
return _chunk7QXPSYEZjs.__spreadProps.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {}, options), {
|
|
1103
1103
|
themes,
|
|
1104
1104
|
darkModeThemes: darkModeThemes ? {
|
|
1105
1105
|
dark: getThemeName(darkModeThemes.dark),
|
|
@@ -1137,7 +1137,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
|
|
|
1137
1137
|
const setups = [];
|
|
1138
1138
|
const entryPath = _utils.slash.call(void 0, entry);
|
|
1139
1139
|
if (config.highlighter === "shiki") {
|
|
1140
|
-
const { getHighlighter } = await Promise.resolve().then(() =>
|
|
1140
|
+
const { getHighlighter } = await Promise.resolve().then(() => _chunk7QXPSYEZjs.__toModule.call(void 0, _chunk7QXPSYEZjs.__require.call(void 0, "shiki")));
|
|
1141
1141
|
const shikiOptions = await loadSetups(roots, "shiki.ts", Shiki, DEFAULT_SHIKI_OPTIONS, false);
|
|
1142
1142
|
const { langs, themes } = resolveShikiOptions(shikiOptions);
|
|
1143
1143
|
shikiOptions.highlighter = await getHighlighter({ themes, langs });
|
|
@@ -1146,11 +1146,11 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
|
|
|
1146
1146
|
setups.push((md2) => md2.use(markdownItPrism));
|
|
1147
1147
|
}
|
|
1148
1148
|
const KatexOptions = await loadSetups(roots, "katex.ts", {}, { strict: false }, false);
|
|
1149
|
-
return _vitepluginmd2.default.call(void 0,
|
|
1149
|
+
return _vitepluginmd2.default.call(void 0, _chunk7QXPSYEZjs.__spreadProps.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {
|
|
1150
1150
|
wrapperClasses: "",
|
|
1151
1151
|
headEnabled: false,
|
|
1152
1152
|
frontmatter: false,
|
|
1153
|
-
markdownItOptions:
|
|
1153
|
+
markdownItOptions: _chunk7QXPSYEZjs.__spreadValues.call(void 0, {
|
|
1154
1154
|
quotes: `""''`,
|
|
1155
1155
|
html: true,
|
|
1156
1156
|
xhtmlOut: true,
|
|
@@ -1287,7 +1287,7 @@ function escapeVueInCode(md2) {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
|
|
1289
1289
|
// node/plugins/patchTransform.ts
|
|
1290
|
-
|
|
1290
|
+
_chunk7QXPSYEZjs.init_cjs_shims.call(void 0, );
|
|
1291
1291
|
|
|
1292
1292
|
function createFixPlugins(options) {
|
|
1293
1293
|
const define = _utils.objectEntries.call(void 0, getDefine(options));
|
|
@@ -1350,10 +1350,10 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
|
|
|
1350
1350
|
clientRoot,
|
|
1351
1351
|
data: { config }
|
|
1352
1352
|
} = options;
|
|
1353
|
-
const VuePlugin = _pluginvue2.default.call(void 0,
|
|
1353
|
+
const VuePlugin = _pluginvue2.default.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {
|
|
1354
1354
|
include: [/\.vue$/, /\.md$/],
|
|
1355
1355
|
exclude: [],
|
|
1356
|
-
template:
|
|
1356
|
+
template: _chunk7QXPSYEZjs.__spreadValues.call(void 0, {
|
|
1357
1357
|
compilerOptions: {
|
|
1358
1358
|
isCustomElement(tag) {
|
|
1359
1359
|
return customElements.has(tag);
|
|
@@ -1368,7 +1368,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
|
|
|
1368
1368
|
MarkdownPlugin,
|
|
1369
1369
|
VuePlugin,
|
|
1370
1370
|
createSlidesLoader(options, pluginOptions, serverOptions, VuePlugin, MarkdownPlugin),
|
|
1371
|
-
_vite4.default.call(void 0,
|
|
1371
|
+
_vite4.default.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {
|
|
1372
1372
|
extensions: ["vue", "md", "ts"],
|
|
1373
1373
|
dirs: [
|
|
1374
1374
|
`${clientRoot}/builtin`,
|
|
@@ -1386,11 +1386,11 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
|
|
|
1386
1386
|
})
|
|
1387
1387
|
]
|
|
1388
1388
|
}, componentsOptions)),
|
|
1389
|
-
_vite2.default.call(void 0,
|
|
1389
|
+
_vite2.default.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {
|
|
1390
1390
|
defaultClass: "slidev-icon",
|
|
1391
1391
|
autoInstall: true
|
|
1392
1392
|
}, iconsOptions)),
|
|
1393
|
-
config.remoteAssets === true || config.remoteAssets === mode ? _vitepluginremoteassets2.default.call(void 0,
|
|
1393
|
+
config.remoteAssets === true || config.remoteAssets === mode ? _vitepluginremoteassets2.default.call(void 0, _chunk7QXPSYEZjs.__spreadValues.call(void 0, {
|
|
1394
1394
|
rules: [
|
|
1395
1395
|
..._vitepluginremoteassets.DefaultRules,
|
|
1396
1396
|
{
|
|
@@ -52,9 +52,9 @@ var __toModule = (module) => {
|
|
|
52
52
|
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
// ../../node_modules/.pnpm/tsup@5.11.13_typescript@4.
|
|
55
|
+
// ../../node_modules/.pnpm/tsup@5.11.13_typescript@4.6.2/node_modules/tsup/assets/cjs_shims.js
|
|
56
56
|
var init_cjs_shims = __esm({
|
|
57
|
-
"../../node_modules/.pnpm/tsup@5.11.13_typescript@4.
|
|
57
|
+
"../../node_modules/.pnpm/tsup@5.11.13_typescript@4.6.2/node_modules/tsup/assets/cjs_shims.js"() {
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveImportPath,
|
|
12
12
|
stringifyMarkdownTokens,
|
|
13
13
|
toAtFS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VYBQLH2X.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({
|
|
@@ -243,11 +243,11 @@ var dependencies = {
|
|
|
243
243
|
"@antfu/utils": "^0.5.0",
|
|
244
244
|
"@slidev/parser": "workspace:*",
|
|
245
245
|
"@slidev/types": "workspace:*",
|
|
246
|
-
"@vueuse/core": "^7.
|
|
246
|
+
"@vueuse/core": "^7.7.0",
|
|
247
247
|
"@vueuse/head": "^0.7.5",
|
|
248
248
|
"@vueuse/motion": "^2.0.0-beta.9",
|
|
249
249
|
codemirror: "^5.65.2",
|
|
250
|
-
drauu: "^0.
|
|
250
|
+
drauu: "^0.3.0",
|
|
251
251
|
"file-saver": "^2.0.5",
|
|
252
252
|
"js-base64": "^3.7.2",
|
|
253
253
|
"js-yaml": "^4.1.0",
|
|
@@ -258,10 +258,10 @@ var dependencies = {
|
|
|
258
258
|
prettier: "^2.5.1",
|
|
259
259
|
recordrtc: "^5.6.2",
|
|
260
260
|
resolve: "^1.22.0",
|
|
261
|
-
"vite-plugin-windicss": "^1.
|
|
261
|
+
"vite-plugin-windicss": "^1.8.2",
|
|
262
262
|
vue: "^3.2.31",
|
|
263
|
-
"vue-router": "^4.0.
|
|
264
|
-
windicss: "^3.
|
|
263
|
+
"vue-router": "^4.0.13",
|
|
264
|
+
windicss: "^3.5.1"
|
|
265
265
|
};
|
|
266
266
|
|
|
267
267
|
// node/vite/searchRoot.ts
|
|
@@ -52,12 +52,12 @@ var __toModule = (module) => {
|
|
|
52
52
|
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
// ../../node_modules/.pnpm/tsup@5.11.13_typescript@4.
|
|
55
|
+
// ../../node_modules/.pnpm/tsup@5.11.13_typescript@4.6.2/node_modules/tsup/assets/esm_shims.js
|
|
56
56
|
import { fileURLToPath } from "url";
|
|
57
57
|
import path from "path";
|
|
58
58
|
var getFilename, getDirname, __dirname, __filename;
|
|
59
59
|
var init_esm_shims = __esm({
|
|
60
|
-
"../../node_modules/.pnpm/tsup@5.11.13_typescript@4.
|
|
60
|
+
"../../node_modules/.pnpm/tsup@5.11.13_typescript@4.6.2/node_modules/tsup/assets/esm_shims.js"() {
|
|
61
61
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
62
62
|
getDirname = () => path.dirname(getFilename());
|
|
63
63
|
__dirname = /* @__PURE__ */ getDirname();
|