@slidev/cli 0.27.6 → 0.27.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.
@@ -9,12 +9,12 @@
9
9
 
10
10
 
11
11
 
12
- var _chunk37BJZLTEjs = require('./chunk-37BJZLTE.js');
12
+ var _chunk6GSA3UIYjs = require('./chunk-6GSA3UIY.js');
13
13
 
14
14
  // ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
15
- var require_fast_deep_equal = _chunk37BJZLTEjs.__commonJS.call(void 0, {
15
+ var require_fast_deep_equal = _chunk6GSA3UIYjs.__commonJS.call(void 0, {
16
16
  "../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
17
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
17
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
18
18
  "use strict";
19
19
  module.exports = function equal2(a, b) {
20
20
  if (a === b)
@@ -58,7 +58,7 @@ var require_fast_deep_equal = _chunk37BJZLTEjs.__commonJS.call(void 0, {
58
58
  });
59
59
 
60
60
  // node/common.ts
61
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
61
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
62
62
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
63
63
  var _path = require('path');
64
64
  var _utils = require('@antfu/utils');
@@ -85,13 +85,13 @@ ${(((_b = index.match(/<body>([\s\S]*?)<\/body>/im)) == null ? void 0 : _b[1]) |
85
85
  body += '\n<script async src="https://platform.twitter.com/widgets.js"><\/script>';
86
86
  if (data.config.fonts.webfonts.length && data.config.fonts.provider !== "none")
87
87
  head += `
88
- <link rel="stylesheet" href="${_chunk37BJZLTEjs.generateGoogleFontsUrl.call(void 0, data.config.fonts)}" type="text/css">`;
89
- main = main.replace("__ENTRY__", _chunk37BJZLTEjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "main.ts"))).replace("<!-- head -->", head).replace("<!-- body -->", body);
88
+ <link rel="stylesheet" href="${_chunk6GSA3UIYjs.generateGoogleFontsUrl.call(void 0, data.config.fonts)}" type="text/css">`;
89
+ main = main.replace("__ENTRY__", _chunk6GSA3UIYjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "main.ts"))).replace("<!-- head -->", head).replace("<!-- body -->", body);
90
90
  return main;
91
91
  }
92
92
 
93
93
  // node/plugins/windicss.ts
94
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
94
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
95
95
 
96
96
 
97
97
 
@@ -99,13 +99,13 @@ var _vitepluginwindicss = require('vite-plugin-windicss'); var _vitepluginwindic
99
99
  var _jiti = require('jiti'); var _jiti2 = _interopRequireDefault(_jiti);
100
100
 
101
101
  // node/plugins/setupNode.ts
102
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
102
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
103
103
 
104
104
  var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
105
105
 
106
106
 
107
107
  function deepMerge(a, b, rootPath = "") {
108
- a = _chunk37BJZLTEjs.__spreadValues.call(void 0, {}, a);
108
+ a = _chunk6GSA3UIYjs.__spreadValues.call(void 0, {}, a);
109
109
  Object.keys(b).forEach((key) => {
110
110
  if (_utils.isObject.call(void 0, a[key]))
111
111
  a[key] = deepMerge(a[key], b[key], rootPath ? `${rootPath}.${key}` : key);
@@ -143,7 +143,7 @@ async function createWindiCSSPlugin({ themeRoots, clientRoot, userRoot, roots, d
143
143
  if (config.default)
144
144
  config = config.default;
145
145
  config = await loadSetups(roots, "windicss.ts", {}, config, true);
146
- return _vitepluginwindicss2.default.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {
146
+ return _vitepluginwindicss2.default.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {
147
147
  configFiles: [configFile],
148
148
  config,
149
149
  onConfigResolved(config2) {
@@ -165,15 +165,15 @@ async function createWindiCSSPlugin({ themeRoots, clientRoot, userRoot, roots, d
165
165
  config2.scanOptions.include.push(`${i}/layouts/*.{vue,ts}`);
166
166
  });
167
167
  config2.scanOptions.include.push(`!${_utils.slash.call(void 0, _path.resolve.call(void 0, userRoot, "node_modules"))}`);
168
- config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk37BJZLTEjs.resolveImportPath.call(void 0, "monaco-editor/package.json", true)));
169
- config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk37BJZLTEjs.resolveImportPath.call(void 0, "katex/package.json", true)));
170
- config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk37BJZLTEjs.resolveImportPath.call(void 0, "prettier/package.json", true)));
168
+ config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk6GSA3UIYjs.resolveImportPath.call(void 0, "monaco-editor/package.json", true)));
169
+ config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk6GSA3UIYjs.resolveImportPath.call(void 0, "katex/package.json", true)));
170
+ config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunk6GSA3UIYjs.resolveImportPath.call(void 0, "prettier/package.json", true)));
171
171
  }
172
172
  }, windiOptions));
173
173
  }
174
174
 
175
175
  // node/plugins/preset.ts
176
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
176
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
177
177
  var _pluginvue = require('@vitejs/plugin-vue'); var _pluginvue2 = _interopRequireDefault(_pluginvue);
178
178
  var _vite = require('unplugin-icons/vite'); var _vite2 = _interopRequireDefault(_vite);
179
179
  var _resolver = require('unplugin-icons/resolver'); var _resolver2 = _interopRequireDefault(_resolver);
@@ -183,7 +183,7 @@ var _vitepluginvueserverref = require('vite-plugin-vue-server-ref'); var _vitepl
183
183
 
184
184
 
185
185
  // node/drawings.ts
186
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
186
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
187
187
 
188
188
 
189
189
  var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);
@@ -229,7 +229,7 @@ ${value}
229
229
  }
230
230
 
231
231
  // node/plugins/extendConfig.ts
232
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
232
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
233
233
 
234
234
  var _vite5 = require('vite');
235
235
  var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);
@@ -241,29 +241,29 @@ var dependencies = {
241
241
  "@antfu/utils": "^0.3.0",
242
242
  "@slidev/parser": "workspace:*",
243
243
  "@slidev/types": "workspace:*",
244
- "@vueuse/core": "^6.5.3",
244
+ "@vueuse/core": "^6.6.2",
245
245
  "@vueuse/head": "^0.6.0",
246
246
  "@vueuse/motion": "^2.0.0-beta.4",
247
- codemirror: "^5.63.1",
248
- drauu: "^0.2.0",
247
+ codemirror: "^5.63.3",
248
+ drauu: "^0.2.1",
249
249
  "file-saver": "^2.0.5",
250
250
  "js-base64": "^3.7.2",
251
251
  "js-yaml": "^4.1.0",
252
252
  katex: "^0.13.18",
253
253
  mermaid: "8.13.0",
254
- "monaco-editor": "^0.28.1",
255
- nanoid: "^3.1.28",
254
+ "monaco-editor": "^0.29.1",
255
+ nanoid: "^3.1.30",
256
256
  prettier: "^2.4.1",
257
257
  recordrtc: "^5.6.2",
258
258
  resolve: "^1.20.0",
259
- "vite-plugin-windicss": "^1.4.9",
260
- vue: "^3.2.19",
261
- "vue-router": "^4.0.11",
259
+ "vite-plugin-windicss": "^1.4.12",
260
+ vue: "^3.2.20",
261
+ "vue-router": "^4.0.12",
262
262
  windicss: "^3.1.9"
263
263
  };
264
264
 
265
265
  // node/vite/searchRoot.ts
266
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
266
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
267
267
 
268
268
 
269
269
  var ROOT_FILES = [
@@ -323,7 +323,7 @@ function createConfigPlugin(options) {
323
323
  define: getDefine(options),
324
324
  resolve: {
325
325
  alias: {
326
- "@slidev/client/": `${_chunk37BJZLTEjs.toAtFS.call(void 0, options.clientRoot)}/`
326
+ "@slidev/client/": `${_chunk6GSA3UIYjs.toAtFS.call(void 0, options.clientRoot)}/`
327
327
  }
328
328
  },
329
329
  optimizeDeps: {
@@ -357,7 +357,7 @@ function createConfigPlugin(options) {
357
357
  if (_isinstalledglobally2.default) {
358
358
  injection.cacheDir = _path.join.call(void 0, options.cliRoot, "node_modules/.vite");
359
359
  injection.root = options.cliRoot;
360
- injection.resolve.alias.vue = `${_chunk37BJZLTEjs.resolveImportPath.call(void 0, "vue/dist/vue.esm-browser.js", true)}`;
360
+ injection.resolve.alias.vue = `${_chunk6GSA3UIYjs.resolveImportPath.call(void 0, "vue/dist/vue.esm-browser.js", true)}`;
361
361
  }
362
362
  return _vite5.mergeConfig.call(void 0, config, injection);
363
363
  },
@@ -378,7 +378,7 @@ function createConfigPlugin(options) {
378
378
  }
379
379
  function getDefine(options) {
380
380
  return {
381
- __SLIDEV_CLIENT_ROOT__: JSON.stringify(_chunk37BJZLTEjs.toAtFS.call(void 0, options.clientRoot)),
381
+ __SLIDEV_CLIENT_ROOT__: JSON.stringify(_chunk6GSA3UIYjs.toAtFS.call(void 0, options.clientRoot)),
382
382
  __SLIDEV_HASH_ROUTE__: JSON.stringify(options.data.config.routerMode === "hash"),
383
383
  __SLIDEV_FEATURE_DRAWINGS__: JSON.stringify(options.data.config.drawings.enabled === true || options.data.config.drawings.enabled === options.mode),
384
384
  __SLIDEV_FEATURE_DRAWINGS_PERSIST__: JSON.stringify(!!options.data.config.drawings.persist === true),
@@ -387,8 +387,8 @@ function getDefine(options) {
387
387
  }
388
388
 
389
389
  // node/plugins/loaders.ts
390
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
391
- var import_fast_deep_equal = _chunk37BJZLTEjs.__toModule.call(void 0, require_fast_deep_equal());
390
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
391
+ var import_fast_deep_equal = _chunk6GSA3UIYjs.__toModule.call(void 0, require_fast_deep_equal());
392
392
 
393
393
 
394
394
 
@@ -425,7 +425,7 @@ md.use(_markdownitlinkattributes2.default, {
425
425
  }
426
426
  });
427
427
  function prepareSlideInfo(data) {
428
- return _chunk37BJZLTEjs.__spreadProps.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {}, data), {
428
+ return _chunk6GSA3UIYjs.__spreadProps.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {}, data), {
429
429
  notesHTML: md.render((data == null ? void 0 : data.note) || "")
430
430
  });
431
431
  }
@@ -514,7 +514,7 @@ function createSlidesLoader({ data, entry, clientRoot, themeRoots, userRoot, roo
514
514
  const file = `${slidePrefix}${i + 1}.md`;
515
515
  try {
516
516
  const md2 = await transformMarkdown(MarkdownPlugin.transform((_a2 = newData.slides[i]) == null ? void 0 : _a2.content, file), i, newData);
517
- return await VuePlugin.handleHotUpdate(_chunk37BJZLTEjs.__spreadProps.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {}, ctx), {
517
+ return await VuePlugin.handleHotUpdate(_chunk6GSA3UIYjs.__spreadProps.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {}, ctx), {
518
518
  modules: Array.from(ctx.server.moduleGraph.getModulesByFile(file) || []),
519
519
  file,
520
520
  read() {
@@ -596,13 +596,13 @@ function createSlidesLoader({ data, entry, clientRoot, themeRoots, userRoot, roo
596
596
  async function transformMarkdown(code, pageNo, data2) {
597
597
  var _a, _b;
598
598
  const layouts = await getLayouts();
599
- const frontmatter = _chunk37BJZLTEjs.__spreadValues.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {}, ((_a = data2.headmatter) == null ? void 0 : _a.defaults) || {}), ((_b = data2.slides[pageNo]) == null ? void 0 : _b.frontmatter) || {});
599
+ const frontmatter = _chunk6GSA3UIYjs.__spreadValues.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {}, ((_a = data2.headmatter) == null ? void 0 : _a.defaults) || {}), ((_b = data2.slides[pageNo]) == null ? void 0 : _b.frontmatter) || {});
600
600
  const layoutName = (frontmatter == null ? void 0 : frontmatter.layout) || (pageNo === 0 ? "cover" : "default");
601
601
  if (!layouts[layoutName])
602
602
  throw new Error(`Unknown layout "${layoutName}"`);
603
603
  delete frontmatter.title;
604
604
  const imports = [
605
- `import InjectedLayout from "${_chunk37BJZLTEjs.toAtFS.call(void 0, layouts[layoutName])}"`,
605
+ `import InjectedLayout from "${_chunk6GSA3UIYjs.toAtFS.call(void 0, layouts[layoutName])}"`,
606
606
  `const frontmatter = ${JSON.stringify(frontmatter)}`
607
607
  ];
608
608
  code = code.replace(/(<script setup.*>)/g, `$1
@@ -648,9 +648,9 @@ ${code.slice(injectB)}`;
648
648
  }
649
649
  async function generateUserStyles() {
650
650
  const imports = [
651
- `import "${_chunk37BJZLTEjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/vars.css"))}"`,
652
- `import "${_chunk37BJZLTEjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/index.css"))}"`,
653
- `import "${_chunk37BJZLTEjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/code.css"))}"`
651
+ `import "${_chunk6GSA3UIYjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/vars.css"))}"`,
652
+ `import "${_chunk6GSA3UIYjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/index.css"))}"`,
653
+ `import "${_chunk6GSA3UIYjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/code.css"))}"`
654
654
  ];
655
655
  const roots2 = _utils.uniq.call(void 0, [
656
656
  ...themeRoots,
@@ -666,13 +666,13 @@ ${code.slice(injectB)}`;
666
666
  ];
667
667
  for (const style of styles) {
668
668
  if (_fsextra.existsSync.call(void 0, style)) {
669
- imports.push(`import "${_chunk37BJZLTEjs.toAtFS.call(void 0, style)}"`);
669
+ imports.push(`import "${_chunk6GSA3UIYjs.toAtFS.call(void 0, style)}"`);
670
670
  continue;
671
671
  }
672
672
  }
673
673
  }
674
674
  if (data.features.katex)
675
- imports.push(`import "${_chunk37BJZLTEjs.toAtFS.call(void 0, _chunk37BJZLTEjs.resolveImportPath.call(void 0, "katex/dist/katex.min.css", true))}"`);
675
+ imports.push(`import "${_chunk6GSA3UIYjs.toAtFS.call(void 0, _chunk6GSA3UIYjs.resolveImportPath.call(void 0, "katex/dist/katex.min.css", true))}"`);
676
676
  return imports.join("\n");
677
677
  }
678
678
  async function generateMonacoTypes() {
@@ -681,7 +681,7 @@ ${code.slice(injectB)}`;
681
681
  async function generateLayouts() {
682
682
  const imports = [];
683
683
  const layouts = _utils.objectMap.call(void 0, await getLayouts(), (k, v) => {
684
- imports.push(`import __layout_${k} from "${_chunk37BJZLTEjs.toAtFS.call(void 0, v)}"`);
684
+ imports.push(`import __layout_${k} from "${_chunk6GSA3UIYjs.toAtFS.call(void 0, v)}"`);
685
685
  return [k, `__layout_${k}`];
686
686
  });
687
687
  return [
@@ -727,10 +727,10 @@ ${routes.join(",\n")}
727
727
  return [...imports, routesStr].join("\n");
728
728
  }
729
729
  function generateConfigs() {
730
- const config = _chunk37BJZLTEjs.__spreadValues.call(void 0, {}, data.config);
730
+ const config = _chunk6GSA3UIYjs.__spreadValues.call(void 0, {}, data.config);
731
731
  if (_utils.isString.call(void 0, config.title)) {
732
732
  const tokens = md.parseInline(config.title, {});
733
- config.title = _chunk37BJZLTEjs.stringifyMarkdownTokens.call(void 0, tokens);
733
+ config.title = _chunk6GSA3UIYjs.stringifyMarkdownTokens.call(void 0, tokens);
734
734
  }
735
735
  if (_utils.isString.call(void 0, config.info))
736
736
  config.info = md.render(config.info);
@@ -751,7 +751,7 @@ ${routes.join(",\n")}
751
751
  ];
752
752
  }
753
753
  }).filter((i) => _fsextra2.default.existsSync(i));
754
- const imports = components.map((i, idx) => `import __n${idx} from '${_chunk37BJZLTEjs.toAtFS.call(void 0, i)}'`).join("\n");
754
+ const imports = components.map((i, idx) => `import __n${idx} from '${_chunk6GSA3UIYjs.toAtFS.call(void 0, i)}'`).join("\n");
755
755
  const render = components.map((i, idx) => `h(__n${idx})`).join(",");
756
756
  return `
757
757
  ${imports}
@@ -766,7 +766,7 @@ export default {
766
766
  }
767
767
 
768
768
  // node/plugins/monacoTransform.ts
769
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
769
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
770
770
 
771
771
 
772
772
 
@@ -800,7 +800,7 @@ function createMonacoTypesLoader() {
800
800
  }
801
801
 
802
802
  // node/plugins/setupClient.ts
803
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
803
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
804
804
 
805
805
 
806
806
 
@@ -822,7 +822,7 @@ function createClientSetupPlugin({ clientRoot, themeRoots, userRoot }) {
822
822
  setups.forEach((path, idx) => {
823
823
  if (!_fs.existsSync.call(void 0, path))
824
824
  return;
825
- imports.push(`import __n${idx} from '${_chunk37BJZLTEjs.toAtFS.call(void 0, path)}'`);
825
+ imports.push(`import __n${idx} from '${_chunk6GSA3UIYjs.toAtFS.call(void 0, path)}'`);
826
826
  let fn = `__n${idx}`;
827
827
  let awaitFn = `await __n${idx}`;
828
828
  if (/\binjection_return\b/g.test(code)) {
@@ -850,16 +850,17 @@ function createClientSetupPlugin({ clientRoot, themeRoots, userRoot }) {
850
850
  }
851
851
 
852
852
  // node/plugins/markdown.ts
853
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
853
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
854
854
  var _vitepluginmd = require('vite-plugin-md'); var _vitepluginmd2 = _interopRequireDefault(_vitepluginmd);
855
855
  var _jsbase64 = require('js-base64'); var _jsbase642 = _interopRequireDefault(_jsbase64);
856
856
 
857
857
 
858
858
  var _markdownitfootnote = require('markdown-it-footnote'); var _markdownitfootnote2 = _interopRequireDefault(_markdownitfootnote);
859
859
  var _shiki = require('shiki'); var Shiki = _interopRequireWildcard(_shiki);
860
+ var _plantumlencoder = require('plantuml-encoder');
860
861
 
861
862
  // node/plugins/markdown-it-katex.ts
862
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
863
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
863
864
  var _katex = require('katex'); var _katex2 = _interopRequireDefault(_katex);
864
865
  function isValidDelim(state, pos) {
865
866
  const max = state.posMax;
@@ -1006,7 +1007,7 @@ function math_plugin(md2, options) {
1006
1007
  }
1007
1008
 
1008
1009
  // node/plugins/markdown-it-prism.ts
1009
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
1010
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
1010
1011
  var _prismjs = require('prismjs'); var _prismjs2 = _interopRequireDefault(_prismjs);
1011
1012
  var _ = require('prismjs/components/'); var _2 = _interopRequireDefault(_);
1012
1013
  var DEFAULTS = {
@@ -1029,7 +1030,7 @@ function loadPrismLang(lang) {
1029
1030
  }
1030
1031
  function loadPrismPlugin(name) {
1031
1032
  try {
1032
- _chunk37BJZLTEjs.__require.call(void 0, `prismjs/plugins/${name}/prism-${name}`);
1033
+ _chunk6GSA3UIYjs.__require.call(void 0, `prismjs/plugins/${name}/prism-${name}`);
1033
1034
  } catch (e) {
1034
1035
  throw new Error(`Cannot load Prism plugin "${name}". Please check the spelling.`);
1035
1036
  }
@@ -1069,7 +1070,7 @@ function markdownItPrism(markdownit, useroptions) {
1069
1070
  }
1070
1071
 
1071
1072
  // node/plugins/markdown-it-shiki.ts
1072
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
1073
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
1073
1074
  function getThemeName(theme) {
1074
1075
  if (typeof theme === "string")
1075
1076
  return theme;
@@ -1091,7 +1092,7 @@ function resolveShikiOptions(options) {
1091
1092
  themes.push(options.theme);
1092
1093
  }
1093
1094
  }
1094
- return _chunk37BJZLTEjs.__spreadProps.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {}, options), {
1095
+ return _chunk6GSA3UIYjs.__spreadProps.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {}, options), {
1095
1096
  themes,
1096
1097
  darkModeThemes: darkModeThemes ? {
1097
1098
  dark: getThemeName(darkModeThemes.dark),
@@ -1129,7 +1130,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
1129
1130
  const setups = [];
1130
1131
  const entryPath = _utils.slash.call(void 0, entry);
1131
1132
  if (config.highlighter === "shiki") {
1132
- const { getHighlighter } = await Promise.resolve().then(() => _chunk37BJZLTEjs.__toModule.call(void 0, _chunk37BJZLTEjs.__require.call(void 0, "shiki")));
1133
+ const { getHighlighter } = await Promise.resolve().then(() => _chunk6GSA3UIYjs.__toModule.call(void 0, _chunk6GSA3UIYjs.__require.call(void 0, "shiki")));
1133
1134
  const shikiOptions = await loadSetups(roots, "shiki.ts", Shiki, DEFAULT_SHIKI_OPTIONS, false);
1134
1135
  const { langs, themes } = resolveShikiOptions(shikiOptions);
1135
1136
  shikiOptions.highlighter = await getHighlighter({ themes, langs });
@@ -1138,11 +1139,11 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
1138
1139
  setups.push((md2) => md2.use(markdownItPrism));
1139
1140
  }
1140
1141
  const KatexOptions2 = await loadSetups(roots, "katex.ts", {}, { strict: false }, false);
1141
- return _vitepluginmd2.default.call(void 0, _chunk37BJZLTEjs.__spreadProps.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {
1142
+ return _vitepluginmd2.default.call(void 0, _chunk6GSA3UIYjs.__spreadProps.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {
1142
1143
  wrapperClasses: "",
1143
1144
  headEnabled: false,
1144
1145
  frontmatter: false,
1145
- markdownItOptions: _chunk37BJZLTEjs.__spreadValues.call(void 0, {
1146
+ markdownItOptions: _chunk6GSA3UIYjs.__spreadValues.call(void 0, {
1146
1147
  quotes: `""''`,
1147
1148
  html: true,
1148
1149
  xhtmlOut: true,
@@ -1169,6 +1170,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
1169
1170
  const monaco = config.monaco === true || config.monaco === mode ? transformMarkdownMonaco : truncateMancoMark;
1170
1171
  code = transformSlotSugar(code);
1171
1172
  code = transformMermaid(code);
1173
+ code = transformPlantUml(code, config.plantUmlServer);
1172
1174
  code = monaco(code);
1173
1175
  code = transformHighlighter(code);
1174
1176
  code = transformPageCSS(code, id);
@@ -1254,7 +1256,7 @@ function transformPageCSS(md2, id) {
1254
1256
  if (!start.includes("scoped"))
1255
1257
  start = start.replace("<style", "<style scoped");
1256
1258
  return `${start}
1257
- .slidev-page-${page}{${css}}${end}`;
1259
+ ${css}${end}`;
1258
1260
  });
1259
1261
  return result;
1260
1262
  }
@@ -1266,12 +1268,19 @@ function transformMermaid(md2) {
1266
1268
  return `<Mermaid :code="'${encoded}'" v-bind="${options}" />`;
1267
1269
  });
1268
1270
  }
1271
+ function transformPlantUml(md2, server) {
1272
+ return md2.replace(/^```plantuml\s*?({.*?})?\n([\s\S]+?)\n```/mg, (full, options = "", content = "") => {
1273
+ const code = _plantumlencoder.encode.call(void 0, content.trim());
1274
+ options = options.trim() || "{}";
1275
+ return `<PlantUml :code="'${code}'" :server="'${server}'" v-bind="${options}" />`;
1276
+ });
1277
+ }
1269
1278
  function escapeVueInCode(md2) {
1270
1279
  return md2.replace(/{{(.*?)}}/g, "&lbrace;&lbrace;$1&rbrace;&rbrace;");
1271
1280
  }
1272
1281
 
1273
1282
  // node/plugins/patchTransform.ts
1274
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
1283
+ _chunk6GSA3UIYjs.init_cjs_shims.call(void 0, );
1275
1284
 
1276
1285
  function createFixPlugins(options) {
1277
1286
  const define = _utils.objectEntries.call(void 0, getDefine(options));
@@ -1325,10 +1334,10 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
1325
1334
  clientRoot,
1326
1335
  data: { config }
1327
1336
  } = options;
1328
- const VuePlugin = _pluginvue2.default.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {
1337
+ const VuePlugin = _pluginvue2.default.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {
1329
1338
  include: [/\.vue$/, /\.md$/],
1330
1339
  exclude: [],
1331
- template: _chunk37BJZLTEjs.__spreadValues.call(void 0, {
1340
+ template: _chunk6GSA3UIYjs.__spreadValues.call(void 0, {
1332
1341
  compilerOptions: {
1333
1342
  isCustomElement(tag) {
1334
1343
  return customElements.has(tag);
@@ -1343,7 +1352,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
1343
1352
  MarkdownPlugin,
1344
1353
  VuePlugin,
1345
1354
  createSlidesLoader(options, pluginOptions, serverOptions, VuePlugin, MarkdownPlugin),
1346
- _vite4.default.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {
1355
+ _vite4.default.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {
1347
1356
  extensions: ["vue", "md", "ts"],
1348
1357
  dirs: [
1349
1358
  `${clientRoot}/builtin`,
@@ -1361,11 +1370,11 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
1361
1370
  })
1362
1371
  ]
1363
1372
  }, componentsOptions)),
1364
- _vite2.default.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {
1373
+ _vite2.default.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {
1365
1374
  defaultClass: "slidev-icon",
1366
1375
  autoInstall: true
1367
1376
  }, iconsOptions)),
1368
- config.remoteAssets === true || config.remoteAssets === mode ? _vitepluginremoteassets2.default.call(void 0, _chunk37BJZLTEjs.__spreadValues.call(void 0, {
1377
+ config.remoteAssets === true || config.remoteAssets === mode ? _vitepluginremoteassets2.default.call(void 0, _chunk6GSA3UIYjs.__spreadValues.call(void 0, {
1369
1378
  rules: [
1370
1379
  ..._vitepluginremoteassets.DefaultRules,
1371
1380
  {
@@ -22,9 +22,13 @@ var __spreadValues = (a, b) => {
22
22
  };
23
23
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
24
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
- var __require = typeof require !== "undefined" ? require : (x) => {
25
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
26
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
27
+ }) : x)(function(x) {
28
+ if (typeof require !== "undefined")
29
+ return require.apply(this, arguments);
26
30
  throw new Error('Dynamic require of "' + x + '" is not supported');
27
- };
31
+ });
28
32
  var __commonJS = (cb, mod) => function __require2() {
29
33
  return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
30
34
  };
@@ -22,9 +22,13 @@ var __spreadValues = (a, b) => {
22
22
  };
23
23
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
24
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
- var __require = typeof require !== "undefined" ? require : (x) => {
25
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
26
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
27
+ }) : x)(function(x) {
28
+ if (typeof require !== "undefined")
29
+ return require.apply(this, arguments);
26
30
  throw new Error('Dynamic require of "' + x + '" is not supported');
27
- };
31
+ });
28
32
  var __esm = (fn, res) => function __init() {
29
33
  return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
30
34
  };
@@ -43,10 +47,10 @@ var __toModule = (module) => {
43
47
  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);
44
48
  };
45
49
 
46
- // ../../node_modules/.pnpm/tsup@5.3.0_typescript@4.4.3/node_modules/tsup/assets/cjs_shims.js
50
+ // ../../node_modules/.pnpm/tsup@5.4.2_typescript@4.4.4/node_modules/tsup/assets/cjs_shims.js
47
51
  var importMetaUrlShim;
48
52
  var init_cjs_shims = __esm({
49
- "../../node_modules/.pnpm/tsup@5.3.0_typescript@4.4.3/node_modules/tsup/assets/cjs_shims.js"() {
53
+ "../../node_modules/.pnpm/tsup@5.4.2_typescript@4.4.4/node_modules/tsup/assets/cjs_shims.js"() {
50
54
  importMetaUrlShim = typeof document === "undefined" ? new (__require("url")).URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
51
55
  }
52
56
  });
@@ -3,11 +3,11 @@ import {
3
3
  __require,
4
4
  __toModule,
5
5
  resolveImportPath
6
- } from "./chunk-DFNSCAEG.mjs";
6
+ } from "./chunk-62N46WVW.mjs";
7
7
 
8
- // ../../node_modules/.pnpm/@antfu+ni@0.9.3/node_modules/@antfu/ni/dist/chunk-2MNBUMB6.js
9
- var require_chunk_2MNBUMB6 = __commonJS({
10
- "../../node_modules/.pnpm/@antfu+ni@0.9.3/node_modules/@antfu/ni/dist/chunk-2MNBUMB6.js"(exports) {
8
+ // ../../node_modules/.pnpm/@antfu+ni@0.10.0/node_modules/@antfu/ni/dist/chunk-2CETRAVM.js
9
+ var require_chunk_2CETRAVM = __commonJS({
10
+ "../../node_modules/.pnpm/@antfu+ni@0.10.0/node_modules/@antfu/ni/dist/chunk-2CETRAVM.js"(exports) {
11
11
  "use strict";
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  function _interopRequireDefault(obj) {
@@ -7440,7 +7440,7 @@ ${error.message}` : execaMessage;
7440
7440
  return false;
7441
7441
  }
7442
7442
  }
7443
- var version2 = "0.9.3";
7443
+ var version2 = "0.10.0";
7444
7444
  var npmRun = (agent) => (args) => {
7445
7445
  if (args.length > 1)
7446
7446
  return `${agent} run ${args[0]} -- ${args.slice(1).join(" ")}`;
@@ -7480,7 +7480,7 @@ ${error.message}` : execaMessage;
7480
7480
  "add": "pnpm i {0}",
7481
7481
  "upgrade": "pnpm update {0}",
7482
7482
  "upgrade-interactive": "pnpm update -i",
7483
- "execute": "pnpx {0}",
7483
+ "execute": "pnpm dlx {0}",
7484
7484
  "uninstall": "pnpm remove {0}",
7485
7485
  "global_uninstall": "pnpm remove -g {0}"
7486
7486
  }
@@ -7799,27 +7799,27 @@ ${error.message}` : execaMessage;
7799
7799
  }
7800
7800
  });
7801
7801
 
7802
- // ../../node_modules/.pnpm/@antfu+ni@0.9.3/node_modules/@antfu/ni/dist/index.js
7802
+ // ../../node_modules/.pnpm/@antfu+ni@0.10.0/node_modules/@antfu/ni/dist/index.js
7803
7803
  var require_dist = __commonJS({
7804
- "../../node_modules/.pnpm/@antfu+ni@0.9.3/node_modules/@antfu/ni/dist/index.js"(exports) {
7804
+ "../../node_modules/.pnpm/@antfu+ni@0.10.0/node_modules/@antfu/ni/dist/index.js"(exports) {
7805
7805
  "use strict";
7806
7806
  Object.defineProperty(exports, "__esModule", { value: true });
7807
- var _chunk2MNBUMB6js = require_chunk_2MNBUMB6();
7808
- exports.cmdExists = _chunk2MNBUMB6js.cmdExists;
7809
- exports.detect = _chunk2MNBUMB6js.detect;
7810
- exports.exclude = _chunk2MNBUMB6js.exclude;
7811
- exports.getCommand = _chunk2MNBUMB6js.getCommand;
7812
- exports.getConfig = _chunk2MNBUMB6js.getConfig;
7813
- exports.getDefaultAgent = _chunk2MNBUMB6js.getDefaultAgent;
7814
- exports.getGlobalAgent = _chunk2MNBUMB6js.getGlobalAgent;
7815
- exports.parseNi = _chunk2MNBUMB6js.parseNi;
7816
- exports.parseNr = _chunk2MNBUMB6js.parseNr;
7817
- exports.parseNrm = _chunk2MNBUMB6js.parseNrm;
7818
- exports.parseNu = _chunk2MNBUMB6js.parseNu;
7819
- exports.parseNx = _chunk2MNBUMB6js.parseNx;
7820
- exports.remove = _chunk2MNBUMB6js.remove;
7821
- exports.run = _chunk2MNBUMB6js.run;
7822
- exports.runCli = _chunk2MNBUMB6js.runCli;
7807
+ var _chunk2CETRAVMjs = require_chunk_2CETRAVM();
7808
+ exports.cmdExists = _chunk2CETRAVMjs.cmdExists;
7809
+ exports.detect = _chunk2CETRAVMjs.detect;
7810
+ exports.exclude = _chunk2CETRAVMjs.exclude;
7811
+ exports.getCommand = _chunk2CETRAVMjs.getCommand;
7812
+ exports.getConfig = _chunk2CETRAVMjs.getConfig;
7813
+ exports.getDefaultAgent = _chunk2CETRAVMjs.getDefaultAgent;
7814
+ exports.getGlobalAgent = _chunk2CETRAVMjs.getGlobalAgent;
7815
+ exports.parseNi = _chunk2CETRAVMjs.parseNi;
7816
+ exports.parseNr = _chunk2CETRAVMjs.parseNr;
7817
+ exports.parseNrm = _chunk2CETRAVMjs.parseNrm;
7818
+ exports.parseNu = _chunk2CETRAVMjs.parseNu;
7819
+ exports.parseNx = _chunk2CETRAVMjs.parseNx;
7820
+ exports.remove = _chunk2CETRAVMjs.remove;
7821
+ exports.run = _chunk2CETRAVMjs.run;
7822
+ exports.runCli = _chunk2CETRAVMjs.runCli;
7823
7823
  }
7824
7824
  });
7825
7825
 
@@ -10094,7 +10094,7 @@ var require_semver2 = __commonJS({
10094
10094
  });
10095
10095
 
10096
10096
  // package.json
10097
- var version = "0.27.6";
10097
+ var version = "0.27.10";
10098
10098
 
10099
10099
  // node/themes.ts
10100
10100
  var import_ni = __toModule(require_dist());
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMI63EDKHjs = require('./chunk-MI63EDKH.js');
3
+ var _chunk4UOEPPLNjs = require('./chunk-4UOEPPLN.js');
4
4
 
5
5
 
6
- var _chunk37BJZLTEjs = require('./chunk-37BJZLTE.js');
6
+ var _chunk6GSA3UIYjs = require('./chunk-6GSA3UIY.js');
7
7
 
8
8
  // node/server.ts
9
- _chunk37BJZLTEjs.init_cjs_shims.call(void 0, );
9
+ _chunk6GSA3UIYjs.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 _chunkMI63EDKHjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
23
+ await _chunk4UOEPPLNjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
24
24
  ]
25
25
  }));
26
26
  return server;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ViteSlidevPlugin
3
- } from "./chunk-WV5JPB3F.mjs";
3
+ } from "./chunk-YFUQAECE.mjs";
4
4
 
5
5
  // node/server.ts
6
6
  import { join } from "path";