@slidev/cli 0.43.0-beta.2 → 0.43.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZO5UYJSNjs = require('./chunk-ZO5UYJSN.js');
5
+ var _chunk4D4M2E5Mjs = require('./chunk-4D4M2E5M.js');
6
6
  require('./chunk-KKGXM3XL.js');
7
7
  require('./chunk-JQHGZJGJ.js');
8
8
  require('./chunk-YUG22S6W.js');
@@ -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 _chunkZO5UYJSNjs.getIndexHtml.call(void 0, options), "utf-8");
654
+ await _fsextra2.default.writeFile(indexPath, await _chunk4D4M2E5Mjs.getIndexHtml.call(void 0, options), "utf-8");
655
655
  let config = void 0;
656
656
  try {
657
- const inlineConfig = await _chunkZO5UYJSNjs.mergeViteConfigs.call(void 0,
657
+ const inlineConfig = await _chunk4D4M2E5Mjs.mergeViteConfigs.call(void 0,
658
658
  options,
659
659
  viteConfig,
660
660
  {
661
661
  root: options.userRoot,
662
662
  plugins: [
663
- await _chunkZO5UYJSNjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
663
+ await _chunk4D4M2E5Mjs.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 _chunkZO5UYJSNjs.mergeViteConfigs.call(void 0,
684
+ await _chunk4D4M2E5Mjs.mergeViteConfigs.call(void 0,
685
685
  options,
686
686
  inlineConfig,
687
687
  {
@@ -2,7 +2,7 @@ import {
2
2
  ViteSlidevPlugin,
3
3
  getIndexHtml,
4
4
  mergeViteConfigs
5
- } from "./chunk-LXUMODW4.mjs";
5
+ } from "./chunk-4VXY5G3T.mjs";
6
6
  import "./chunk-JDHANZ37.mjs";
7
7
  import "./chunk-ZEKM4EGL.mjs";
8
8
  import "./chunk-QHOBBTS4.mjs";
@@ -186,7 +186,7 @@ var dependencies = {
186
186
  "@antfu/utils": "^0.7.6",
187
187
  "@slidev/parser": "workspace:*",
188
188
  "@slidev/types": "workspace:*",
189
- "@unocss/reset": "^0.55.4",
189
+ "@unocss/reset": "^0.55.5",
190
190
  "@vueuse/core": "^10.4.1",
191
191
  "@vueuse/head": "^1.3.1",
192
192
  "@vueuse/math": "^10.4.1",
@@ -205,7 +205,7 @@ var dependencies = {
205
205
  prettier: "^3.0.3",
206
206
  recordrtc: "^5.6.2",
207
207
  resolve: "^1.22.4",
208
- unocss: "^0.55.4",
208
+ unocss: "^0.55.5",
209
209
  "vite-plugin-windicss": "^1.9.1",
210
210
  vue: "^3.3.4",
211
211
  "vue-router": "^4.2.4",
@@ -355,6 +355,7 @@ function getDefine(options) {
355
355
  __SLIDEV_CLIENT_ROOT__: JSON.stringify(_chunkJQHGZJGJjs.toAtFS.call(void 0, options.clientRoot)),
356
356
  __SLIDEV_HASH_ROUTE__: JSON.stringify(options.data.config.routerMode === "hash"),
357
357
  __SLIDEV_FEATURE_DRAWINGS__: JSON.stringify(options.data.config.drawings.enabled === true || options.data.config.drawings.enabled === options.mode),
358
+ __SLIDEV_FEATURE_EDITOR__: JSON.stringify(options.mode === "dev" && options.data.config.editor !== false),
358
359
  __SLIDEV_FEATURE_DRAWINGS_PERSIST__: JSON.stringify(!!options.data.config.drawings.persist === true),
359
360
  __SLIDEV_FEATURE_RECORD__: JSON.stringify(options.data.config.record === true || options.data.config.record === options.mode),
360
361
  __SLIDEV_FEATURE_PRESENTER__: JSON.stringify(options.data.config.presenter === true || options.data.config.presenter === options.mode),
@@ -569,7 +570,7 @@ ${title}
569
570
  name: "slidev:context-transform:pre",
570
571
  enforce: "pre",
571
572
  async transform(code, id) {
572
- if (!id.endsWith(".vue"))
573
+ if (!id.endsWith(".vue") || id.includes("/@slidev/client/") || id.includes("/packages/client/"))
573
574
  return;
574
575
  return transformVue(code);
575
576
  }
@@ -615,12 +616,12 @@ Unknown layout "${_kolorist.bold.call(void 0, layoutName)}".${_kolorist.yellow.c
615
616
  const imports = [
616
617
  'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
617
618
  `import InjectedLayout from "${_chunkJQHGZJGJjs.toAtFS.call(void 0, layouts[layoutName])}"`,
618
- 'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
619
+ 'import { injectionSlidevContext as _injectionSlidevContext, injectionClicks as _injectionClicks } from "@slidev/client/constants.ts"',
619
620
  `const frontmatter = ${JSON.stringify(frontmatter)}`,
620
621
  "const $frontmatter = frontmatter",
621
- "const $slidev = _vueInject(injectionSlidevContext)",
622
+ "const $slidev = _vueInject(_injectionSlidevContext)",
622
623
  'const $nav = _vueToRef($slidev, "nav")',
623
- 'const $clicks = _vueToRef($slidev.nav, "clicks")'
624
+ "const $clicks = _vueInject(_injectionClicks)"
624
625
  ];
625
626
  code = code.replace(/(<script setup.*>)/g, `$1
626
627
  ${imports.join("\n")}
@@ -638,14 +639,14 @@ ${code.slice(injectB)}`;
638
639
  return code;
639
640
  }
640
641
  function transformVue(code) {
641
- if (code.includes("injectionSlidevContext"))
642
+ if (code.includes("injectionSlidevContext") || code.includes("injectionClicks") || code.includes("const $slidev"))
642
643
  return code;
643
644
  const imports = [
644
645
  'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
645
- 'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
646
- "const $slidev = _vueInject(injectionSlidevContext)",
646
+ 'import { injectionSlidevContext as _injectionSlidevContext, injectionClicks as _injectionClicks } from "@slidev/client/constants.ts"',
647
+ "const $slidev = _vueInject(_injectionSlidevContext)",
647
648
  'const $nav = _vueToRef($slidev, "nav")',
648
- 'const $clicks = _vueToRef($slidev.nav, "clicks")'
649
+ "const $clicks = _vueInject(_injectionClicks)"
649
650
  ];
650
651
  const matchScript = code.match(/<script((?!setup).)*(setup)?.*>/);
651
652
  if (matchScript && matchScript[2]) {
@@ -986,9 +987,6 @@ var _markdownitfootnote = require('markdown-it-footnote'); var _markdownitfootno
986
987
  var _markdownitplugins = require('@hedgedoc/markdown-it-plugins');
987
988
  var _plantumlencoder = require('plantuml-encoder');
988
989
 
989
- // ../../node_modules/.pnpm/markdown-it-mdc@0.0.4_@types+markdown-it@13.0.1_markdown-it@13.0.1/node_modules/markdown-it-mdc/dist/index.mjs
990
- var _tokenjs = require('markdown-it/lib/token.js'); var _tokenjs2 = _interopRequireDefault(_tokenjs);
991
-
992
990
  // ../../node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/dist/js-yaml.mjs
993
991
  function isNothing(subject) {
994
992
  return typeof subject === "undefined" || subject === null;
@@ -3685,7 +3683,8 @@ var jsYaml = {
3685
3683
  };
3686
3684
  var js_yaml_default = jsYaml;
3687
3685
 
3688
- // ../../node_modules/.pnpm/markdown-it-mdc@0.0.4_@types+markdown-it@13.0.1_markdown-it@13.0.1/node_modules/markdown-it-mdc/dist/index.mjs
3686
+ // ../../node_modules/.pnpm/markdown-it-mdc@0.1.0_@types+markdown-it@13.0.1_markdown-it@13.0.1/node_modules/markdown-it-mdc/dist/index.mjs
3687
+ var _tokenjs = require('markdown-it/lib/token.js'); var _tokenjs2 = _interopRequireDefault(_tokenjs);
3689
3688
  var bracketPairs = {
3690
3689
  "[": "]",
3691
3690
  "{": "}",
@@ -3943,6 +3942,90 @@ var MarkdownItMdcBlock = (md2) => {
3943
3942
  alt: ["paragraph", "reference", "blockquote", "list"]
3944
3943
  }
3945
3944
  );
3945
+ md2.block.ruler.after(
3946
+ "code",
3947
+ "mdc_block_yaml",
3948
+ // eslint-disable-next-line prefer-arrow-callback
3949
+ function mdc_block_yaml(state, startLine, endLine, silent) {
3950
+ if (!_optionalChain([state, 'access', _58 => _58.env, 'access', _59 => _59.mdcBlockTokens, 'optionalAccess', _60 => _60.length]))
3951
+ return false;
3952
+ const start = state.bMarks[startLine] + state.tShift[startLine];
3953
+ const end = state.eMarks[startLine];
3954
+ if (state.src.slice(start, end) !== "---")
3955
+ return false;
3956
+ let lineEnd = startLine + 1;
3957
+ let found = false;
3958
+ while (lineEnd < endLine) {
3959
+ const line = state.src.slice(state.bMarks[lineEnd] + state.tShift[startLine], state.eMarks[lineEnd]);
3960
+ if (line === "---") {
3961
+ found = true;
3962
+ break;
3963
+ }
3964
+ lineEnd += 1;
3965
+ }
3966
+ if (!found)
3967
+ return false;
3968
+ if (!silent) {
3969
+ const yaml = state.src.slice(state.bMarks[startLine + 1], state.eMarks[lineEnd - 1]);
3970
+ const data = js_yaml_default.load(yaml);
3971
+ const token = state.env.mdcBlockTokens[0];
3972
+ Object.entries(data).forEach(([key, value]) => {
3973
+ if (key === "class")
3974
+ token.attrJoin(key, value);
3975
+ else
3976
+ token.attrSet(key, typeof value === "string" ? value : JSON.stringify(value));
3977
+ });
3978
+ }
3979
+ state.line = lineEnd + 1;
3980
+ state.lineMax = lineEnd + 1;
3981
+ return true;
3982
+ }
3983
+ );
3984
+ md2.block.ruler.after(
3985
+ "code",
3986
+ "mdc_block_slots",
3987
+ // eslint-disable-next-line prefer-arrow-callback
3988
+ function mdc_block(state, startLine, endLine, silent) {
3989
+ if (!_optionalChain([state, 'access', _61 => _61.env, 'access', _62 => _62.mdcBlockTokens, 'optionalAccess', _63 => _63.length]))
3990
+ return false;
3991
+ const start = state.bMarks[startLine] + state.tShift[startLine];
3992
+ if (!(state.src[start] === "#" && state.src[start + 1] !== " "))
3993
+ return false;
3994
+ const line = state.src.slice(start, state.eMarks[startLine]);
3995
+ const {
3996
+ name,
3997
+ props
3998
+ } = parseBlockParams(line.slice(1));
3999
+ let lineEnd = startLine + 1;
4000
+ while (lineEnd < endLine) {
4001
+ const line2 = state.src.slice(state.bMarks[lineEnd] + state.tShift[startLine], state.eMarks[lineEnd]);
4002
+ if (line2.match(/^#(\w)+/) || line2.startsWith("::"))
4003
+ break;
4004
+ lineEnd += 1;
4005
+ }
4006
+ if (silent) {
4007
+ state.line = lineEnd;
4008
+ state.lineMax = lineEnd;
4009
+ return true;
4010
+ }
4011
+ state.lineMax = startLine + 1;
4012
+ const slot = state.push("mdc_block_slot", "template", 1);
4013
+ slot.attrSet(`#${name}`, "");
4014
+ _optionalChain([props, 'optionalAccess', _64 => _64.forEach, 'call', _65 => _65(([key, value]) => {
4015
+ if (key === "class")
4016
+ slot.attrJoin(key, value);
4017
+ else
4018
+ slot.attrSet(key, value);
4019
+ })]);
4020
+ state.line = startLine + 1;
4021
+ state.lineMax = lineEnd;
4022
+ state.md.block.tokenize(state, startLine + 1, lineEnd);
4023
+ state.push("mdc_block_slot", "template", -1);
4024
+ state.line = lineEnd;
4025
+ state.lineMax = lineEnd;
4026
+ return true;
4027
+ }
4028
+ );
3946
4029
  };
3947
4030
  var MarkdownItInlineProps = (md2) => {
3948
4031
  md2.inline.ruler.after("entity", "mdc_inline_props", (state, silent) => {
@@ -3970,6 +4053,26 @@ var MarkdownItInlineProps = (md2) => {
3970
4053
  md2.renderer.rules.mdc_inline_props = () => {
3971
4054
  return "";
3972
4055
  };
4056
+ const _parse = md2.parse;
4057
+ md2.parse = function(src, env) {
4058
+ const tokens = _parse.call(this, src, env);
4059
+ tokens.forEach((token, index) => {
4060
+ const prev = tokens[index - 1];
4061
+ if (_optionalChain([prev, 'optionalAccess', _66 => _66.type]) !== "heading_open" && _optionalChain([prev, 'optionalAccess', _67 => _67.type]) !== "paragraph_open")
4062
+ return;
4063
+ if (token.type === "inline" && _optionalChain([token, 'access', _68 => _68.children, 'optionalAccess', _69 => _69.length]) === 2 && token.children[0].type === "text" && token.children[1].type === "mdc_inline_props") {
4064
+ const props = token.children[1].attrs;
4065
+ token.children.splice(1, 1);
4066
+ _optionalChain([props, 'optionalAccess', _70 => _70.forEach, 'call', _71 => _71(([key, value]) => {
4067
+ if (key === "class")
4068
+ prev.attrJoin("class", value);
4069
+ else
4070
+ prev.attrSet(key, value);
4071
+ })]);
4072
+ }
4073
+ });
4074
+ return tokens;
4075
+ };
3973
4076
  const _renderInline = md2.renderer.renderInline;
3974
4077
  md2.renderer.renderInline = function(tokens, options, env) {
3975
4078
  tokens = [...tokens];
@@ -4003,7 +4106,7 @@ var MarkdownItInlineProps = (md2) => {
4003
4106
  }
4004
4107
  if (prev.nesting === -1)
4005
4108
  throw new Error(`No matching opening tag found for ${JSON.stringify(prev)}`);
4006
- _optionalChain([token, 'access', _58 => _58.attrs, 'optionalAccess', _59 => _59.forEach, 'call', _60 => _60(([key, value]) => {
4109
+ _optionalChain([token, 'access', _72 => _72.attrs, 'optionalAccess', _73 => _73.forEach, 'call', _74 => _74(([key, value]) => {
4007
4110
  if (key === "class")
4008
4111
  prev.attrJoin("class", value);
4009
4112
  else
@@ -4101,94 +4204,21 @@ var MarkdownItInlineSpan = (md2) => {
4101
4204
  return true;
4102
4205
  });
4103
4206
  };
4104
- var MarkdownItMdcBlockContent = (md2) => {
4105
- md2.block.ruler.after(
4106
- "code",
4107
- "mdc_block_yaml",
4108
- // eslint-disable-next-line prefer-arrow-callback
4109
- function mdc_block_yaml(state, startLine, endLine, silent) {
4110
- if (!_optionalChain([state, 'access', _61 => _61.env, 'access', _62 => _62.mdcBlockTokens, 'optionalAccess', _63 => _63.length]))
4111
- return false;
4112
- const start = state.bMarks[startLine] + state.tShift[startLine];
4113
- const end = state.eMarks[startLine];
4114
- if (state.src.slice(start, end) !== "---")
4115
- return false;
4116
- let lineEnd = startLine + 1;
4117
- let found = false;
4118
- while (lineEnd < endLine) {
4119
- const line = state.src.slice(state.bMarks[lineEnd] + state.tShift[startLine], state.eMarks[lineEnd]);
4120
- if (line === "---") {
4121
- found = true;
4122
- break;
4123
- }
4124
- lineEnd += 1;
4125
- }
4126
- if (!found)
4127
- return false;
4128
- if (!silent) {
4129
- const yaml = state.src.slice(state.bMarks[startLine + 1], state.eMarks[lineEnd - 1]);
4130
- const data = js_yaml_default.load(yaml);
4131
- const token = state.env.mdcBlockTokens[0];
4132
- Object.entries(data).forEach(([key, value]) => {
4133
- if (key === "class")
4134
- token.attrJoin(key, value);
4135
- else
4136
- token.attrSet(key, typeof value === "string" ? value : JSON.stringify(value));
4137
- });
4138
- }
4139
- state.line = lineEnd + 1;
4140
- state.lineMax = lineEnd + 1;
4141
- return true;
4142
- }
4143
- );
4144
- md2.block.ruler.after(
4145
- "code",
4146
- "mdc_block_slots",
4147
- // eslint-disable-next-line prefer-arrow-callback
4148
- function mdc_block(state, startLine, endLine, silent) {
4149
- if (!_optionalChain([state, 'access', _64 => _64.env, 'access', _65 => _65.mdcBlockTokens, 'optionalAccess', _66 => _66.length]))
4150
- return false;
4151
- const start = state.bMarks[startLine] + state.tShift[startLine];
4152
- if (!(state.src[start] === "#" && state.src[start + 1] !== " "))
4153
- return false;
4154
- const line = state.src.slice(start, state.eMarks[startLine]);
4155
- const {
4156
- name,
4157
- props
4158
- } = parseBlockParams(line.slice(1));
4159
- let lineEnd = startLine + 1;
4160
- while (lineEnd < endLine) {
4161
- const line2 = state.src.slice(state.bMarks[lineEnd] + state.tShift[startLine], state.eMarks[lineEnd]);
4162
- if (line2.match(/^#(\w)+/) || line2.startsWith("::"))
4163
- break;
4164
- lineEnd += 1;
4165
- }
4166
- if (silent) {
4167
- state.line = lineEnd;
4168
- state.lineMax = lineEnd;
4169
- return true;
4170
- }
4171
- state.lineMax = startLine + 1;
4172
- const slot = state.push("mdc_block_slot", "template", 1);
4173
- slot.attrSet(`#${name}`, "");
4174
- _optionalChain([props, 'optionalAccess', _67 => _67.forEach, 'call', _68 => _68(([key, value]) => {
4175
- if (key === "class")
4176
- slot.attrJoin(key, value);
4177
- else
4178
- slot.attrSet(key, value);
4179
- })]);
4180
- state.line = startLine + 1;
4181
- state.lineMax = lineEnd;
4182
- state.md.block.tokenize(state, startLine + 1, lineEnd);
4183
- state.push("mdc_block_slot", "template", -1);
4184
- state.line = lineEnd;
4185
- state.lineMax = lineEnd;
4186
- return true;
4187
- }
4188
- );
4189
- };
4190
- var MarkdownItMdc = (md2, _options = {}) => {
4191
- md2.use(MarkdownItMdcBlock).use(MarkdownItInlineProps).use(MarkdownItInlineComponent).use(MarkdownItInlineSpan).use(MarkdownItMdcBlockContent);
4207
+ var MarkdownItMdc = (md2, options = {}) => {
4208
+ const {
4209
+ blockComponent = true,
4210
+ inlineProps = true,
4211
+ inlineSpan = true,
4212
+ inlineComponent = true
4213
+ } = options.syntax || {};
4214
+ if (blockComponent)
4215
+ md2.use(MarkdownItMdcBlock);
4216
+ if (inlineProps)
4217
+ md2.use(MarkdownItInlineProps);
4218
+ if (inlineSpan)
4219
+ md2.use(MarkdownItInlineSpan);
4220
+ if (inlineComponent)
4221
+ md2.use(MarkdownItInlineComponent);
4192
4222
  };
4193
4223
 
4194
4224
  // node/plugins/markdown-it-katex.ts
@@ -4522,7 +4552,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
4522
4552
  html: true,
4523
4553
  xhtmlOut: true,
4524
4554
  linkify: true,
4525
- ..._optionalChain([mdOptions, 'optionalAccess', _69 => _69.markdownItOptions])
4555
+ ..._optionalChain([mdOptions, 'optionalAccess', _75 => _75.markdownItOptions])
4526
4556
  },
4527
4557
  ...mdOptions,
4528
4558
  markdownItSetup(md2) {
@@ -4536,7 +4566,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
4536
4566
  md2.use(_markdownitplugins.taskLists, { enabled: true, lineNumber: true, label: true });
4537
4567
  md2.use(math_plugin, KatexOptions);
4538
4568
  setups.forEach((i) => i(md2));
4539
- _optionalChain([mdOptions, 'optionalAccess', _70 => _70.markdownItSetup, 'optionalCall', _71 => _71(md2)]);
4569
+ _optionalChain([mdOptions, 'optionalAccess', _76 => _76.markdownItSetup, 'optionalCall', _77 => _77(md2)]);
4540
4570
  },
4541
4571
  transforms: {
4542
4572
  before(code, id) {
@@ -4610,8 +4640,8 @@ function getCodeBlocks(md2) {
4610
4640
  const codeblocks = Array.from(md2.matchAll(/^```[\s\S]*?^```/mg)).map((m) => {
4611
4641
  const start = m.index;
4612
4642
  const end = m.index + m[0].length;
4613
- const startLine = _optionalChain([md2, 'access', _72 => _72.slice, 'call', _73 => _73(0, start), 'access', _74 => _74.match, 'call', _75 => _75(/\n/g), 'optionalAccess', _76 => _76.length]) || 0;
4614
- const endLine = _optionalChain([md2, 'access', _77 => _77.slice, 'call', _78 => _78(0, end), 'access', _79 => _79.match, 'call', _80 => _80(/\n/g), 'optionalAccess', _81 => _81.length]) || 0;
4643
+ const startLine = _optionalChain([md2, 'access', _78 => _78.slice, 'call', _79 => _79(0, start), 'access', _80 => _80.match, 'call', _81 => _81(/\n/g), 'optionalAccess', _82 => _82.length]) || 0;
4644
+ const endLine = _optionalChain([md2, 'access', _83 => _83.slice, 'call', _84 => _84(0, end), 'access', _85 => _85.match, 'call', _86 => _86(/\n/g), 'optionalAccess', _87 => _87.length]) || 0;
4615
4645
  return [start, end, startLine, endLine];
4616
4646
  });
4617
4647
  return {
@@ -4625,7 +4655,7 @@ function getCodeBlocks(md2) {
4625
4655
  };
4626
4656
  }
4627
4657
  function transformPageCSS(md2, id) {
4628
- const page = _optionalChain([id, 'access', _82 => _82.match, 'call', _83 => _83(/(\d+)\.md$/), 'optionalAccess', _84 => _84[1]]);
4658
+ const page = _optionalChain([id, 'access', _88 => _88.match, 'call', _89 => _89(/(\d+)\.md$/), 'optionalAccess', _90 => _90[1]]);
4629
4659
  if (!page)
4630
4660
  return md2;
4631
4661
  const { isInsideCodeblocks } = getCodeBlocks(md2);
@@ -4739,7 +4769,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
4739
4769
  return customElements.has(tag);
4740
4770
  }
4741
4771
  },
4742
- ..._optionalChain([vueOptions, 'optionalAccess', _85 => _85.template])
4772
+ ..._optionalChain([vueOptions, 'optionalAccess', _91 => _91.template])
4743
4773
  },
4744
4774
  ...vueOptions
4745
4775
  });
@@ -186,7 +186,7 @@ var dependencies = {
186
186
  "@antfu/utils": "^0.7.6",
187
187
  "@slidev/parser": "workspace:*",
188
188
  "@slidev/types": "workspace:*",
189
- "@unocss/reset": "^0.55.4",
189
+ "@unocss/reset": "^0.55.5",
190
190
  "@vueuse/core": "^10.4.1",
191
191
  "@vueuse/head": "^1.3.1",
192
192
  "@vueuse/math": "^10.4.1",
@@ -205,7 +205,7 @@ var dependencies = {
205
205
  prettier: "^3.0.3",
206
206
  recordrtc: "^5.6.2",
207
207
  resolve: "^1.22.4",
208
- unocss: "^0.55.4",
208
+ unocss: "^0.55.5",
209
209
  "vite-plugin-windicss": "^1.9.1",
210
210
  vue: "^3.3.4",
211
211
  "vue-router": "^4.2.4",
@@ -355,6 +355,7 @@ function getDefine(options) {
355
355
  __SLIDEV_CLIENT_ROOT__: JSON.stringify(toAtFS(options.clientRoot)),
356
356
  __SLIDEV_HASH_ROUTE__: JSON.stringify(options.data.config.routerMode === "hash"),
357
357
  __SLIDEV_FEATURE_DRAWINGS__: JSON.stringify(options.data.config.drawings.enabled === true || options.data.config.drawings.enabled === options.mode),
358
+ __SLIDEV_FEATURE_EDITOR__: JSON.stringify(options.mode === "dev" && options.data.config.editor !== false),
358
359
  __SLIDEV_FEATURE_DRAWINGS_PERSIST__: JSON.stringify(!!options.data.config.drawings.persist === true),
359
360
  __SLIDEV_FEATURE_RECORD__: JSON.stringify(options.data.config.record === true || options.data.config.record === options.mode),
360
361
  __SLIDEV_FEATURE_PRESENTER__: JSON.stringify(options.data.config.presenter === true || options.data.config.presenter === options.mode),
@@ -569,7 +570,7 @@ ${title}
569
570
  name: "slidev:context-transform:pre",
570
571
  enforce: "pre",
571
572
  async transform(code, id) {
572
- if (!id.endsWith(".vue"))
573
+ if (!id.endsWith(".vue") || id.includes("/@slidev/client/") || id.includes("/packages/client/"))
573
574
  return;
574
575
  return transformVue(code);
575
576
  }
@@ -615,12 +616,12 @@ Unknown layout "${bold(layoutName)}".${yellow(" Available layouts are:")}`) + Ob
615
616
  const imports = [
616
617
  'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
617
618
  `import InjectedLayout from "${toAtFS(layouts[layoutName])}"`,
618
- 'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
619
+ 'import { injectionSlidevContext as _injectionSlidevContext, injectionClicks as _injectionClicks } from "@slidev/client/constants.ts"',
619
620
  `const frontmatter = ${JSON.stringify(frontmatter)}`,
620
621
  "const $frontmatter = frontmatter",
621
- "const $slidev = _vueInject(injectionSlidevContext)",
622
+ "const $slidev = _vueInject(_injectionSlidevContext)",
622
623
  'const $nav = _vueToRef($slidev, "nav")',
623
- 'const $clicks = _vueToRef($slidev.nav, "clicks")'
624
+ "const $clicks = _vueInject(_injectionClicks)"
624
625
  ];
625
626
  code = code.replace(/(<script setup.*>)/g, `$1
626
627
  ${imports.join("\n")}
@@ -638,14 +639,14 @@ ${code.slice(injectB)}`;
638
639
  return code;
639
640
  }
640
641
  function transformVue(code) {
641
- if (code.includes("injectionSlidevContext"))
642
+ if (code.includes("injectionSlidevContext") || code.includes("injectionClicks") || code.includes("const $slidev"))
642
643
  return code;
643
644
  const imports = [
644
645
  'import { inject as _vueInject, toRef as _vueToRef } from "vue"',
645
- 'import { injectionSlidevContext } from "@slidev/client/constants.ts"',
646
- "const $slidev = _vueInject(injectionSlidevContext)",
646
+ 'import { injectionSlidevContext as _injectionSlidevContext, injectionClicks as _injectionClicks } from "@slidev/client/constants.ts"',
647
+ "const $slidev = _vueInject(_injectionSlidevContext)",
647
648
  'const $nav = _vueToRef($slidev, "nav")',
648
- 'const $clicks = _vueToRef($slidev.nav, "clicks")'
649
+ "const $clicks = _vueInject(_injectionClicks)"
649
650
  ];
650
651
  const matchScript = code.match(/<script((?!setup).)*(setup)?.*>/);
651
652
  if (matchScript && matchScript[2]) {
@@ -986,9 +987,6 @@ import mif from "markdown-it-footnote";
986
987
  import { taskLists } from "@hedgedoc/markdown-it-plugins";
987
988
  import { encode as encode2 } from "plantuml-encoder";
988
989
 
989
- // ../../node_modules/.pnpm/markdown-it-mdc@0.0.4_@types+markdown-it@13.0.1_markdown-it@13.0.1/node_modules/markdown-it-mdc/dist/index.mjs
990
- import Token from "markdown-it/lib/token.js";
991
-
992
990
  // ../../node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/dist/js-yaml.mjs
993
991
  function isNothing(subject) {
994
992
  return typeof subject === "undefined" || subject === null;
@@ -3685,7 +3683,8 @@ var jsYaml = {
3685
3683
  };
3686
3684
  var js_yaml_default = jsYaml;
3687
3685
 
3688
- // ../../node_modules/.pnpm/markdown-it-mdc@0.0.4_@types+markdown-it@13.0.1_markdown-it@13.0.1/node_modules/markdown-it-mdc/dist/index.mjs
3686
+ // ../../node_modules/.pnpm/markdown-it-mdc@0.1.0_@types+markdown-it@13.0.1_markdown-it@13.0.1/node_modules/markdown-it-mdc/dist/index.mjs
3687
+ import Token from "markdown-it/lib/token.js";
3689
3688
  var bracketPairs = {
3690
3689
  "[": "]",
3691
3690
  "{": "}",
@@ -3943,6 +3942,90 @@ var MarkdownItMdcBlock = (md2) => {
3943
3942
  alt: ["paragraph", "reference", "blockquote", "list"]
3944
3943
  }
3945
3944
  );
3945
+ md2.block.ruler.after(
3946
+ "code",
3947
+ "mdc_block_yaml",
3948
+ // eslint-disable-next-line prefer-arrow-callback
3949
+ function mdc_block_yaml(state, startLine, endLine, silent) {
3950
+ if (!state.env.mdcBlockTokens?.length)
3951
+ return false;
3952
+ const start = state.bMarks[startLine] + state.tShift[startLine];
3953
+ const end = state.eMarks[startLine];
3954
+ if (state.src.slice(start, end) !== "---")
3955
+ return false;
3956
+ let lineEnd = startLine + 1;
3957
+ let found = false;
3958
+ while (lineEnd < endLine) {
3959
+ const line = state.src.slice(state.bMarks[lineEnd] + state.tShift[startLine], state.eMarks[lineEnd]);
3960
+ if (line === "---") {
3961
+ found = true;
3962
+ break;
3963
+ }
3964
+ lineEnd += 1;
3965
+ }
3966
+ if (!found)
3967
+ return false;
3968
+ if (!silent) {
3969
+ const yaml = state.src.slice(state.bMarks[startLine + 1], state.eMarks[lineEnd - 1]);
3970
+ const data = js_yaml_default.load(yaml);
3971
+ const token = state.env.mdcBlockTokens[0];
3972
+ Object.entries(data).forEach(([key, value]) => {
3973
+ if (key === "class")
3974
+ token.attrJoin(key, value);
3975
+ else
3976
+ token.attrSet(key, typeof value === "string" ? value : JSON.stringify(value));
3977
+ });
3978
+ }
3979
+ state.line = lineEnd + 1;
3980
+ state.lineMax = lineEnd + 1;
3981
+ return true;
3982
+ }
3983
+ );
3984
+ md2.block.ruler.after(
3985
+ "code",
3986
+ "mdc_block_slots",
3987
+ // eslint-disable-next-line prefer-arrow-callback
3988
+ function mdc_block(state, startLine, endLine, silent) {
3989
+ if (!state.env.mdcBlockTokens?.length)
3990
+ return false;
3991
+ const start = state.bMarks[startLine] + state.tShift[startLine];
3992
+ if (!(state.src[start] === "#" && state.src[start + 1] !== " "))
3993
+ return false;
3994
+ const line = state.src.slice(start, state.eMarks[startLine]);
3995
+ const {
3996
+ name,
3997
+ props
3998
+ } = parseBlockParams(line.slice(1));
3999
+ let lineEnd = startLine + 1;
4000
+ while (lineEnd < endLine) {
4001
+ const line2 = state.src.slice(state.bMarks[lineEnd] + state.tShift[startLine], state.eMarks[lineEnd]);
4002
+ if (line2.match(/^#(\w)+/) || line2.startsWith("::"))
4003
+ break;
4004
+ lineEnd += 1;
4005
+ }
4006
+ if (silent) {
4007
+ state.line = lineEnd;
4008
+ state.lineMax = lineEnd;
4009
+ return true;
4010
+ }
4011
+ state.lineMax = startLine + 1;
4012
+ const slot = state.push("mdc_block_slot", "template", 1);
4013
+ slot.attrSet(`#${name}`, "");
4014
+ props?.forEach(([key, value]) => {
4015
+ if (key === "class")
4016
+ slot.attrJoin(key, value);
4017
+ else
4018
+ slot.attrSet(key, value);
4019
+ });
4020
+ state.line = startLine + 1;
4021
+ state.lineMax = lineEnd;
4022
+ state.md.block.tokenize(state, startLine + 1, lineEnd);
4023
+ state.push("mdc_block_slot", "template", -1);
4024
+ state.line = lineEnd;
4025
+ state.lineMax = lineEnd;
4026
+ return true;
4027
+ }
4028
+ );
3946
4029
  };
3947
4030
  var MarkdownItInlineProps = (md2) => {
3948
4031
  md2.inline.ruler.after("entity", "mdc_inline_props", (state, silent) => {
@@ -3970,6 +4053,26 @@ var MarkdownItInlineProps = (md2) => {
3970
4053
  md2.renderer.rules.mdc_inline_props = () => {
3971
4054
  return "";
3972
4055
  };
4056
+ const _parse = md2.parse;
4057
+ md2.parse = function(src, env) {
4058
+ const tokens = _parse.call(this, src, env);
4059
+ tokens.forEach((token, index) => {
4060
+ const prev = tokens[index - 1];
4061
+ if (prev?.type !== "heading_open" && prev?.type !== "paragraph_open")
4062
+ return;
4063
+ if (token.type === "inline" && token.children?.length === 2 && token.children[0].type === "text" && token.children[1].type === "mdc_inline_props") {
4064
+ const props = token.children[1].attrs;
4065
+ token.children.splice(1, 1);
4066
+ props?.forEach(([key, value]) => {
4067
+ if (key === "class")
4068
+ prev.attrJoin("class", value);
4069
+ else
4070
+ prev.attrSet(key, value);
4071
+ });
4072
+ }
4073
+ });
4074
+ return tokens;
4075
+ };
3973
4076
  const _renderInline = md2.renderer.renderInline;
3974
4077
  md2.renderer.renderInline = function(tokens, options, env) {
3975
4078
  tokens = [...tokens];
@@ -4101,94 +4204,21 @@ var MarkdownItInlineSpan = (md2) => {
4101
4204
  return true;
4102
4205
  });
4103
4206
  };
4104
- var MarkdownItMdcBlockContent = (md2) => {
4105
- md2.block.ruler.after(
4106
- "code",
4107
- "mdc_block_yaml",
4108
- // eslint-disable-next-line prefer-arrow-callback
4109
- function mdc_block_yaml(state, startLine, endLine, silent) {
4110
- if (!state.env.mdcBlockTokens?.length)
4111
- return false;
4112
- const start = state.bMarks[startLine] + state.tShift[startLine];
4113
- const end = state.eMarks[startLine];
4114
- if (state.src.slice(start, end) !== "---")
4115
- return false;
4116
- let lineEnd = startLine + 1;
4117
- let found = false;
4118
- while (lineEnd < endLine) {
4119
- const line = state.src.slice(state.bMarks[lineEnd] + state.tShift[startLine], state.eMarks[lineEnd]);
4120
- if (line === "---") {
4121
- found = true;
4122
- break;
4123
- }
4124
- lineEnd += 1;
4125
- }
4126
- if (!found)
4127
- return false;
4128
- if (!silent) {
4129
- const yaml = state.src.slice(state.bMarks[startLine + 1], state.eMarks[lineEnd - 1]);
4130
- const data = js_yaml_default.load(yaml);
4131
- const token = state.env.mdcBlockTokens[0];
4132
- Object.entries(data).forEach(([key, value]) => {
4133
- if (key === "class")
4134
- token.attrJoin(key, value);
4135
- else
4136
- token.attrSet(key, typeof value === "string" ? value : JSON.stringify(value));
4137
- });
4138
- }
4139
- state.line = lineEnd + 1;
4140
- state.lineMax = lineEnd + 1;
4141
- return true;
4142
- }
4143
- );
4144
- md2.block.ruler.after(
4145
- "code",
4146
- "mdc_block_slots",
4147
- // eslint-disable-next-line prefer-arrow-callback
4148
- function mdc_block(state, startLine, endLine, silent) {
4149
- if (!state.env.mdcBlockTokens?.length)
4150
- return false;
4151
- const start = state.bMarks[startLine] + state.tShift[startLine];
4152
- if (!(state.src[start] === "#" && state.src[start + 1] !== " "))
4153
- return false;
4154
- const line = state.src.slice(start, state.eMarks[startLine]);
4155
- const {
4156
- name,
4157
- props
4158
- } = parseBlockParams(line.slice(1));
4159
- let lineEnd = startLine + 1;
4160
- while (lineEnd < endLine) {
4161
- const line2 = state.src.slice(state.bMarks[lineEnd] + state.tShift[startLine], state.eMarks[lineEnd]);
4162
- if (line2.match(/^#(\w)+/) || line2.startsWith("::"))
4163
- break;
4164
- lineEnd += 1;
4165
- }
4166
- if (silent) {
4167
- state.line = lineEnd;
4168
- state.lineMax = lineEnd;
4169
- return true;
4170
- }
4171
- state.lineMax = startLine + 1;
4172
- const slot = state.push("mdc_block_slot", "template", 1);
4173
- slot.attrSet(`#${name}`, "");
4174
- props?.forEach(([key, value]) => {
4175
- if (key === "class")
4176
- slot.attrJoin(key, value);
4177
- else
4178
- slot.attrSet(key, value);
4179
- });
4180
- state.line = startLine + 1;
4181
- state.lineMax = lineEnd;
4182
- state.md.block.tokenize(state, startLine + 1, lineEnd);
4183
- state.push("mdc_block_slot", "template", -1);
4184
- state.line = lineEnd;
4185
- state.lineMax = lineEnd;
4186
- return true;
4187
- }
4188
- );
4189
- };
4190
- var MarkdownItMdc = (md2, _options = {}) => {
4191
- md2.use(MarkdownItMdcBlock).use(MarkdownItInlineProps).use(MarkdownItInlineComponent).use(MarkdownItInlineSpan).use(MarkdownItMdcBlockContent);
4207
+ var MarkdownItMdc = (md2, options = {}) => {
4208
+ const {
4209
+ blockComponent = true,
4210
+ inlineProps = true,
4211
+ inlineSpan = true,
4212
+ inlineComponent = true
4213
+ } = options.syntax || {};
4214
+ if (blockComponent)
4215
+ md2.use(MarkdownItMdcBlock);
4216
+ if (inlineProps)
4217
+ md2.use(MarkdownItInlineProps);
4218
+ if (inlineSpan)
4219
+ md2.use(MarkdownItInlineSpan);
4220
+ if (inlineComponent)
4221
+ md2.use(MarkdownItInlineComponent);
4192
4222
  };
4193
4223
 
4194
4224
  // node/plugins/markdown-it-katex.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ViteSlidevPlugin,
3
3
  mergeViteConfigs
4
- } from "./chunk-LXUMODW4.mjs";
4
+ } from "./chunk-4VXY5G3T.mjs";
5
5
  import {
6
6
  packageExists,
7
7
  resolveImportPath
@@ -2519,12 +2519,12 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
2519
2519
  import * as parser from "@slidev/parser/fs";
2520
2520
 
2521
2521
  // package.json
2522
- var version = "0.43.0-beta.2";
2522
+ var version = "0.43.0-beta.4";
2523
2523
 
2524
2524
  // node/themes.ts
2525
2525
  import prompts2 from "prompts";
2526
2526
 
2527
- // ../../node_modules/.pnpm/@antfu+ni@0.21.6/node_modules/@antfu/ni/dist/shared/ni.add7487c.mjs
2527
+ // ../../node_modules/.pnpm/@antfu+ni@0.21.8/node_modules/@antfu/ni/dist/shared/ni.82314ed6.mjs
2528
2528
  import fs$1, { promises, createWriteStream, createReadStream, existsSync } from "node:fs";
2529
2529
  import path$3, { join as join$1, dirname, resolve } from "node:path";
2530
2530
  import process$2 from "node:process";
@@ -3064,7 +3064,7 @@ async function getConfig() {
3064
3064
  let packageManager = "";
3065
3065
  if (result)
3066
3066
  packageManager = JSON.parse(fs$1.readFileSync(result, "utf8")).packageManager ?? "";
3067
- const [, agent, version3] = packageManager.match(new RegExp(`^(${Object.values(LOCKS).join("|")})@(d).*?$`)) || [];
3067
+ const [, agent, version3] = packageManager.match(new RegExp(`^(${Object.values(LOCKS).join("|")})@(\\d).*?$`)) || [];
3068
3068
  if (agent)
3069
3069
  config = Object.assign({}, defaultConfig, { defaultAgent: agent === "yarn" && Number.parseInt(version3) > 1 ? "yarn@berry" : agent });
3070
3070
  else if (!fs$1.existsSync(rcPath))
@@ -7523,7 +7523,7 @@ function init(open, close) {
7523
7523
  return txt === void 0 ? chain([open], [blk]) : $.enabled ? run$1([blk], txt + "") : txt + "";
7524
7524
  };
7525
7525
  }
7526
- var version2 = "0.21.6";
7526
+ var version2 = "0.21.8";
7527
7527
  var DEBUG_SIGN = "?";
7528
7528
  async function getCliCommand(fn, args, options = {}, cwd = options.cwd ?? process$2.cwd()) {
7529
7529
  const isGlobal = args.includes("-g");
@@ -7550,6 +7550,29 @@ async function run(fn, args, options = {}) {
7550
7550
  const debug2 = args.includes(DEBUG_SIGN);
7551
7551
  if (debug2)
7552
7552
  remove(args, DEBUG_SIGN);
7553
+ let cwd = options.cwd ?? process$2.cwd();
7554
+ if (args[0] === "-C") {
7555
+ cwd = resolve(cwd, args[1]);
7556
+ args.splice(0, 2);
7557
+ }
7558
+ if (args.length === 1 && args[0]?.toLowerCase() === "-v") {
7559
+ const getV = (a, o) => execaCommand(`${a} -v`, o).then((e) => e.stdout).then((e) => e.startsWith("v") ? e : `v${e}`);
7560
+ const globalAgentPromise = getGlobalAgent();
7561
+ const globalAgentVersionPromise = globalAgentPromise.then(getV);
7562
+ const agentPromise = detect({ ...options, cwd }).then((a) => a || "");
7563
+ const agentVersionPromise = agentPromise.then((a) => a && getV(a, { cwd }));
7564
+ const nodeVersionPromise = getV("node", { cwd });
7565
+ console.log(`@antfu/ni ${$.cyan(`v${version2}`)}`);
7566
+ console.log(`node ${$.green(await nodeVersionPromise)}`);
7567
+ const [agent, agentVersion] = await Promise.all([agentPromise, agentVersionPromise]);
7568
+ if (agent)
7569
+ console.log(`${agent.padEnd(10)} ${$.blue(agentVersion)}`);
7570
+ else
7571
+ console.log("agent no lock file");
7572
+ const [globalAgent, globalAgentVersion] = await Promise.all([globalAgentPromise, globalAgentVersionPromise]);
7573
+ console.log(`${`${globalAgent} -g`.padEnd(10)} ${$.blue(globalAgentVersion)}`);
7574
+ return;
7575
+ }
7553
7576
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
7554
7577
  console.log(`@antfu/ni v${version2}`);
7555
7578
  return;
@@ -7568,11 +7591,6 @@ async function run(fn, args, options = {}) {
7568
7591
  console.log($.yellow("\ncheck https://github.com/antfu/ni for more documentation."));
7569
7592
  return;
7570
7593
  }
7571
- let cwd = options.cwd ?? process$2.cwd();
7572
- if (args[0] === "-C") {
7573
- cwd = resolve(cwd, args[1]);
7574
- args.splice(0, 2);
7575
- }
7576
7594
  let command = await getCliCommand(fn, args, options, cwd);
7577
7595
  if (!command)
7578
7596
  return;
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkZO5UYJSNjs = require('./chunk-ZO5UYJSN.js');
4
+ var _chunk4D4M2E5Mjs = require('./chunk-4D4M2E5M.js');
5
5
 
6
6
 
7
7
 
@@ -2496,7 +2496,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
2496
2496
  const pluginOptions = rawConfig.slidev || {};
2497
2497
  _process2.default.env.EDITOR = _process2.default.env.EDITOR || "code";
2498
2498
  const server = await _vite.createServer.call(void 0,
2499
- await _chunkZO5UYJSNjs.mergeViteConfigs.call(void 0,
2499
+ await _chunk4D4M2E5Mjs.mergeViteConfigs.call(void 0,
2500
2500
  options,
2501
2501
  viteConfig,
2502
2502
  {
@@ -2506,7 +2506,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
2506
2506
  ]
2507
2507
  },
2508
2508
  plugins: [
2509
- await _chunkZO5UYJSNjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
2509
+ await _chunk4D4M2E5Mjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
2510
2510
  ]
2511
2511
  },
2512
2512
  "serve"
@@ -2519,12 +2519,12 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
2519
2519
  var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
2520
2520
 
2521
2521
  // package.json
2522
- var version = "0.43.0-beta.2";
2522
+ var version = "0.43.0-beta.4";
2523
2523
 
2524
2524
  // node/themes.ts
2525
2525
  var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts);
2526
2526
 
2527
- // ../../node_modules/.pnpm/@antfu+ni@0.21.6/node_modules/@antfu/ni/dist/shared/ni.add7487c.mjs
2527
+ // ../../node_modules/.pnpm/@antfu+ni@0.21.8/node_modules/@antfu/ni/dist/shared/ni.82314ed6.mjs
2528
2528
  var _fs2 = require('fs'); var _fs3 = _interopRequireDefault(_fs2);
2529
2529
 
2530
2530
 
@@ -3064,7 +3064,7 @@ async function getConfig() {
3064
3064
  let packageManager = "";
3065
3065
  if (result)
3066
3066
  packageManager = _nullishCoalesce(JSON.parse(_fs3.default.readFileSync(result, "utf8")).packageManager, () => ( ""));
3067
- const [, agent, version3] = packageManager.match(new RegExp(`^(${Object.values(LOCKS).join("|")})@(d).*?$`)) || [];
3067
+ const [, agent, version3] = packageManager.match(new RegExp(`^(${Object.values(LOCKS).join("|")})@(\\d).*?$`)) || [];
3068
3068
  if (agent)
3069
3069
  config = Object.assign({}, defaultConfig, { defaultAgent: agent === "yarn" && Number.parseInt(version3) > 1 ? "yarn@berry" : agent });
3070
3070
  else if (!_fs3.default.existsSync(rcPath))
@@ -7523,7 +7523,7 @@ function init(open, close) {
7523
7523
  return txt === void 0 ? chain([open], [blk]) : $.enabled ? run$1([blk], txt + "") : txt + "";
7524
7524
  };
7525
7525
  }
7526
- var version2 = "0.21.6";
7526
+ var version2 = "0.21.8";
7527
7527
  var DEBUG_SIGN = "?";
7528
7528
  async function getCliCommand(fn, args, options = {}, cwd = _nullishCoalesce(options.cwd, () => ( _process2.default.cwd()))) {
7529
7529
  const isGlobal = args.includes("-g");
@@ -7550,6 +7550,29 @@ async function run(fn, args, options = {}) {
7550
7550
  const debug2 = args.includes(DEBUG_SIGN);
7551
7551
  if (debug2)
7552
7552
  remove(args, DEBUG_SIGN);
7553
+ let cwd = _nullishCoalesce(options.cwd, () => ( _process2.default.cwd()));
7554
+ if (args[0] === "-C") {
7555
+ cwd = _path.resolve.call(void 0, cwd, args[1]);
7556
+ args.splice(0, 2);
7557
+ }
7558
+ if (args.length === 1 && _optionalChain([args, 'access', _4 => _4[0], 'optionalAccess', _5 => _5.toLowerCase, 'call', _6 => _6()]) === "-v") {
7559
+ const getV = (a, o) => execaCommand(`${a} -v`, o).then((e) => e.stdout).then((e) => e.startsWith("v") ? e : `v${e}`);
7560
+ const globalAgentPromise = getGlobalAgent();
7561
+ const globalAgentVersionPromise = globalAgentPromise.then(getV);
7562
+ const agentPromise = detect({ ...options, cwd }).then((a) => a || "");
7563
+ const agentVersionPromise = agentPromise.then((a) => a && getV(a, { cwd }));
7564
+ const nodeVersionPromise = getV("node", { cwd });
7565
+ console.log(`@antfu/ni ${$.cyan(`v${version2}`)}`);
7566
+ console.log(`node ${$.green(await nodeVersionPromise)}`);
7567
+ const [agent, agentVersion] = await Promise.all([agentPromise, agentVersionPromise]);
7568
+ if (agent)
7569
+ console.log(`${agent.padEnd(10)} ${$.blue(agentVersion)}`);
7570
+ else
7571
+ console.log("agent no lock file");
7572
+ const [globalAgent, globalAgentVersion] = await Promise.all([globalAgentPromise, globalAgentVersionPromise]);
7573
+ console.log(`${`${globalAgent} -g`.padEnd(10)} ${$.blue(globalAgentVersion)}`);
7574
+ return;
7575
+ }
7553
7576
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
7554
7577
  console.log(`@antfu/ni v${version2}`);
7555
7578
  return;
@@ -7568,11 +7591,6 @@ async function run(fn, args, options = {}) {
7568
7591
  console.log($.yellow("\ncheck https://github.com/antfu/ni for more documentation."));
7569
7592
  return;
7570
7593
  }
7571
- let cwd = _nullishCoalesce(options.cwd, () => ( _process2.default.cwd()));
7572
- if (args[0] === "-C") {
7573
- cwd = _path.resolve.call(void 0, cwd, args[1]);
7574
- args.splice(0, 2);
7575
- }
7576
7594
  let command = await getCliCommand(fn, args, options, cwd);
7577
7595
  if (!command)
7578
7596
  return;
@@ -7586,7 +7604,7 @@ async function run(fn, args, options = {}) {
7586
7604
  await execaCommand(command, { stdio: "inherit", encoding: "utf-8", cwd });
7587
7605
  }
7588
7606
 
7589
- // ../../node_modules/.pnpm/@antfu+ni@0.21.6/node_modules/@antfu/ni/dist/index.mjs
7607
+ // ../../node_modules/.pnpm/@antfu+ni@0.21.8/node_modules/@antfu/ni/dist/index.mjs
7590
7608
 
7591
7609
 
7592
7610
 
@@ -7624,14 +7642,14 @@ async function getPackageJson(root) {
7624
7642
  async function getAddons(userRoot, config2) {
7625
7643
  const { slidev = {} } = await getPackageJson(userRoot);
7626
7644
  const configAddons = Array.isArray(config2.addons) ? config2.addons : [];
7627
- const addons = configAddons.concat(Array.isArray(_optionalChain([slidev, 'optionalAccess', _4 => _4.addons])) ? slidev.addons : []);
7645
+ const addons = configAddons.concat(Array.isArray(_optionalChain([slidev, 'optionalAccess', _7 => _7.addons])) ? slidev.addons : []);
7628
7646
  return (await getRecursivePlugins(addons.map(resolvePluginName), 3)).filter(Boolean);
7629
7647
  }
7630
7648
  async function getRecursivePlugins(addons, depth) {
7631
7649
  const addonsArray = await Promise.all(addons.map(async (addon) => {
7632
7650
  const { slidev = {}, engines = {} } = await getPackageJson(addon);
7633
7651
  checkEngine(addon, engines);
7634
- let addons2 = Array.isArray(_optionalChain([slidev, 'optionalAccess', _5 => _5.addons])) ? slidev.addons : [];
7652
+ let addons2 = Array.isArray(_optionalChain([slidev, 'optionalAccess', _8 => _8.addons])) ? slidev.addons : [];
7635
7653
  if (addons2.length > 0 && depth)
7636
7654
  addons2 = await getRecursivePlugins(addons2.map(resolvePluginName), depth - 1);
7637
7655
  addons2.push(addon);
package/dist/cli.js CHANGED
@@ -9,10 +9,10 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkJALNY2K5js = require('./chunk-JALNY2K5.js');
12
+ var _chunkWVI7OC5Ajs = require('./chunk-WVI7OC5A.js');
13
13
 
14
14
 
15
- var _chunkZO5UYJSNjs = require('./chunk-ZO5UYJSN.js');
15
+ var _chunk4D4M2E5Mjs = require('./chunk-4D4M2E5M.js');
16
16
 
17
17
 
18
18
  var _chunkKKGXM3XLjs = require('./chunk-KKGXM3XL.js');
@@ -22,7 +22,7 @@ require('./chunk-JQHGZJGJ.js');
22
22
  var _chunkYUG22S6Wjs = require('./chunk-YUG22S6W.js');
23
23
 
24
24
  // node/cli.ts
25
- var import_fast_deep_equal = _chunkYUG22S6Wjs.__toESM.call(void 0, _chunkZO5UYJSNjs.require_fast_deep_equal.call(void 0, ));
25
+ var import_fast_deep_equal = _chunkYUG22S6Wjs.__toESM.call(void 0, _chunk4D4M2E5Mjs.require_fast_deep_equal.call(void 0, ));
26
26
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
27
27
  var _os = require('os'); var _os2 = _interopRequireDefault(_os);
28
28
  var _child_process = require('child_process');
@@ -43,22 +43,23 @@ var CONFIG_RESTART_FIELDS = [
43
43
  "routerMode",
44
44
  "fonts",
45
45
  "css",
46
- "mdc"
46
+ "mdc",
47
+ "editor"
47
48
  ];
48
49
  _fs.injectPreparserExtensionLoader.call(void 0, async (headmatter, filepath) => {
49
50
  const addons = _nullishCoalesce(_optionalChain([headmatter, 'optionalAccess', _ => _.addons]), () => ( []));
50
51
  const roots = (
51
52
  /* uniq */
52
53
  [
53
- _chunkJALNY2K5js.getUserRoot.call(void 0, {}).userRoot,
54
- ..._chunkJALNY2K5js.getAddonRoots.call(void 0, addons, ""),
55
- _chunkJALNY2K5js.getClientRoot.call(void 0, )
54
+ _chunkWVI7OC5Ajs.getUserRoot.call(void 0, {}).userRoot,
55
+ ..._chunkWVI7OC5Ajs.getAddonRoots.call(void 0, addons, ""),
56
+ _chunkWVI7OC5Ajs.getClientRoot.call(void 0, )
56
57
  ]
57
58
  );
58
59
  const mergeArrays = (a, b) => a.concat(b);
59
60
  return await _chunkKKGXM3XLjs.loadSetups.call(void 0, roots, "preparser.ts", { filepath, headmatter }, [], false, mergeArrays);
60
61
  });
61
- var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkJALNY2K5js.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
62
+ var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkWVI7OC5Ajs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
62
63
  cli.command(
63
64
  "* [entry]",
64
65
  "Start a local server for Slidev",
@@ -114,9 +115,9 @@ cli.command(
114
115
  async function initServer() {
115
116
  if (server)
116
117
  await server.close();
117
- const options = await _chunkJALNY2K5js.resolveOptions.call(void 0, { entry, remote, theme, inspect }, "dev");
118
+ const options = await _chunkWVI7OC5Ajs.resolveOptions.call(void 0, { entry, remote, theme, inspect }, "dev");
118
119
  port = userPort || await findFreePort(3030);
119
- server = await _chunkJALNY2K5js.createServer.call(void 0,
120
+ server = await _chunkWVI7OC5Ajs.createServer.call(void 0,
120
121
  options,
121
122
  {
122
123
  server: {
@@ -130,7 +131,7 @@ cli.command(
130
131
  },
131
132
  {
132
133
  onDataReload(newData, data) {
133
- if (!theme && _chunkJALNY2K5js.resolveThemeName.call(void 0, newData.config.theme) !== _chunkJALNY2K5js.resolveThemeName.call(void 0, data.config.theme)) {
134
+ if (!theme && _chunkWVI7OC5Ajs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkWVI7OC5Ajs.resolveThemeName.call(void 0, data.config.theme)) {
134
135
  console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
135
136
  initServer();
136
137
  } else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
@@ -259,9 +260,9 @@ cli.command(
259
260
  }).strict().help(),
260
261
  async (args) => {
261
262
  const { entry, theme, watch, base, download, out, inspect } = args;
262
- const { build } = await Promise.resolve().then(() => require("./build-MW6VIQAE.js"));
263
+ const { build } = await Promise.resolve().then(() => require("./build-C6YSRCET.js"));
263
264
  for (const entryFile of entry) {
264
- const options = await _chunkJALNY2K5js.resolveOptions.call(void 0, { entry: entryFile, theme, inspect }, "build");
265
+ const options = await _chunkWVI7OC5Ajs.resolveOptions.call(void 0, { entry: entryFile, theme, inspect }, "build");
265
266
  if (download && !options.data.config.download)
266
267
  options.data.config.download = download;
267
268
  printInfo(options);
@@ -281,9 +282,9 @@ cli.command(
281
282
  (args) => commonOptions(args).strict().help(),
282
283
  async ({ entry }) => {
283
284
  for (const entryFile of entry) {
284
- const data = await _chunkJALNY2K5js.parser.load(entryFile);
285
- _chunkJALNY2K5js.parser.prettify(data);
286
- await _chunkJALNY2K5js.parser.save(data);
285
+ const data = await _chunkWVI7OC5Ajs.parser.load(entryFile);
286
+ _chunkWVI7OC5Ajs.parser.prettify(data);
287
+ await _chunkWVI7OC5Ajs.parser.save(data);
287
288
  }
288
289
  }
289
290
  );
@@ -299,17 +300,17 @@ cli.command(
299
300
  default: "theme"
300
301
  }),
301
302
  async ({ entry, dir, theme: themeInput }) => {
302
- const data = await _chunkJALNY2K5js.parser.load(entry);
303
- const theme = _chunkJALNY2K5js.resolveThemeName.call(void 0, themeInput || data.config.theme);
303
+ const data = await _chunkWVI7OC5Ajs.parser.load(entry);
304
+ const theme = _chunkWVI7OC5Ajs.resolveThemeName.call(void 0, themeInput || data.config.theme);
304
305
  if (theme === "none") {
305
306
  console.error('Cannot eject theme "none"');
306
307
  _process2.default.exit(1);
307
308
  }
308
- if (_chunkJALNY2K5js.isPath.call(void 0, theme)) {
309
+ if (_chunkWVI7OC5Ajs.isPath.call(void 0, theme)) {
309
310
  console.error("Theme is already ejected");
310
311
  _process2.default.exit(1);
311
312
  }
312
- const roots = _chunkJALNY2K5js.getThemeRoots.call(void 0, theme, entry);
313
+ const roots = _chunkWVI7OC5Ajs.getThemeRoots.call(void 0, theme, entry);
313
314
  if (!roots.length) {
314
315
  console.error(`Could not find theme "${theme}"`);
315
316
  _process2.default.exit(1);
@@ -321,7 +322,7 @@ cli.command(
321
322
  const dirPath = `./${dir}`;
322
323
  data.slides[0].frontmatter.theme = dirPath;
323
324
  data.slides[0].raw = null;
324
- await _chunkJALNY2K5js.parser.save(data);
325
+ await _chunkWVI7OC5Ajs.parser.save(data);
325
326
  console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
326
327
  }
327
328
  );
@@ -341,8 +342,8 @@ cli.command(
341
342
  const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-MCALG7XD.js"));
342
343
  const port = await findFreePort(12445);
343
344
  for (const entryFile of entry) {
344
- const options = await _chunkJALNY2K5js.resolveOptions.call(void 0, { entry: entryFile, theme }, "export");
345
- const server = await _chunkJALNY2K5js.createServer.call(void 0,
345
+ const options = await _chunkWVI7OC5Ajs.resolveOptions.call(void 0, { entry: entryFile, theme }, "export");
346
+ const server = await _chunkWVI7OC5Ajs.createServer.call(void 0,
346
347
  options,
347
348
  {
348
349
  server: { port },
@@ -351,7 +352,7 @@ cli.command(
351
352
  );
352
353
  await server.listen(port);
353
354
  printInfo(options);
354
- _chunkJALNY2K5js.parser.filterDisabled(options.data);
355
+ _chunkWVI7OC5Ajs.parser.filterDisabled(options.data);
355
356
  const result = await exportSlides({
356
357
  port,
357
358
  ...getExportOptions({ ...args, entry: entryFile }, options)
@@ -387,8 +388,8 @@ cli.command(
387
388
  const { exportNotes } = await Promise.resolve().then(() => require("./export-MCALG7XD.js"));
388
389
  const port = await findFreePort(12445);
389
390
  for (const entryFile of entry) {
390
- const options = await _chunkJALNY2K5js.resolveOptions.call(void 0, { entry: entryFile }, "export");
391
- const server = await _chunkJALNY2K5js.createServer.call(void 0,
391
+ const options = await _chunkWVI7OC5Ajs.resolveOptions.call(void 0, { entry: entryFile }, "export");
392
+ const server = await _chunkWVI7OC5Ajs.createServer.call(void 0,
392
393
  options,
393
394
  {
394
395
  server: { port },
@@ -397,7 +398,7 @@ cli.command(
397
398
  );
398
399
  await server.listen(port);
399
400
  printInfo(options);
400
- _chunkJALNY2K5js.parser.filterDisabled(options.data);
401
+ _chunkWVI7OC5Ajs.parser.filterDisabled(options.data);
401
402
  const result = await exportNotes({
402
403
  port,
403
404
  output: output || (options.data.config.exportFilename ? `${options.data.config.exportFilename}-notes` : `${_path2.default.basename(entryFile, ".md")}-export-notes`),
@@ -458,7 +459,7 @@ function printInfo(options, port, remote, tunnelUrl) {
458
459
  console.log();
459
460
  console.log();
460
461
  console.log(` ${_kolorist.cyan.call(void 0, "\u25CF") + _kolorist.blue.call(void 0, "\u25A0") + _kolorist.yellow.call(void 0, "\u25B2")}`);
461
- console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkJALNY2K5js.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
462
+ console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkWVI7OC5Ajs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
462
463
  console.log();
463
464
  _parser.verifyConfig.call(void 0, options.data.config, options.data.themeMeta, (v) => console.warn(_kolorist.yellow.call(void 0, ` ! ${v}`)));
464
465
  console.log(_kolorist.dim.call(void 0, " theme ") + (options.theme ? _kolorist.green.call(void 0, options.theme) : _kolorist.gray.call(void 0, "none")));
package/dist/cli.mjs CHANGED
@@ -9,10 +9,10 @@ import {
9
9
  resolveOptions,
10
10
  resolveThemeName,
11
11
  version
12
- } from "./chunk-ZGWBGB2K.mjs";
12
+ } from "./chunk-B2WFHX3U.mjs";
13
13
  import {
14
14
  require_fast_deep_equal
15
- } from "./chunk-LXUMODW4.mjs";
15
+ } from "./chunk-4VXY5G3T.mjs";
16
16
  import {
17
17
  loadSetups
18
18
  } from "./chunk-JDHANZ37.mjs";
@@ -43,7 +43,8 @@ var CONFIG_RESTART_FIELDS = [
43
43
  "routerMode",
44
44
  "fonts",
45
45
  "css",
46
- "mdc"
46
+ "mdc",
47
+ "editor"
47
48
  ];
48
49
  injectPreparserExtensionLoader(async (headmatter, filepath) => {
49
50
  const addons = headmatter?.addons ?? [];
@@ -259,7 +260,7 @@ cli.command(
259
260
  }).strict().help(),
260
261
  async (args) => {
261
262
  const { entry, theme, watch, base, download, out, inspect } = args;
262
- const { build } = await import("./build-SUSDV6OM.mjs");
263
+ const { build } = await import("./build-ZIF7XMD2.mjs");
263
264
  for (const entryFile of entry) {
264
265
  const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
265
266
  if (download && !options.data.config.download)
package/dist/index.js CHANGED
@@ -9,13 +9,13 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkJALNY2K5js = require('./chunk-JALNY2K5.js');
12
+ var _chunkWVI7OC5Ajs = require('./chunk-WVI7OC5A.js');
13
13
 
14
14
 
15
15
  var _chunkJ7PXWEZ7js = require('./chunk-J7PXWEZ7.js');
16
16
 
17
17
 
18
- var _chunkZO5UYJSNjs = require('./chunk-ZO5UYJSN.js');
18
+ var _chunk4D4M2E5Mjs = require('./chunk-4D4M2E5M.js');
19
19
  require('./chunk-KKGXM3XL.js');
20
20
  require('./chunk-JQHGZJGJ.js');
21
21
  require('./chunk-YUG22S6W.js');
@@ -32,4 +32,4 @@ require('./chunk-YUG22S6W.js');
32
32
 
33
33
 
34
34
 
35
- exports.ViteSlidevPlugin = _chunkZO5UYJSNjs.ViteSlidevPlugin; exports.createServer = _chunkJALNY2K5js.createServer; exports.createWindiCSSPlugin = _chunkJ7PXWEZ7js.createWindiCSSPlugin; exports.getAddonRoots = _chunkJALNY2K5js.getAddonRoots; exports.getCLIRoot = _chunkJALNY2K5js.getCLIRoot; exports.getClientRoot = _chunkJALNY2K5js.getClientRoot; exports.getRoot = _chunkJALNY2K5js.getRoot; exports.getThemeRoots = _chunkJALNY2K5js.getThemeRoots; exports.getUserRoot = _chunkJALNY2K5js.getUserRoot; exports.isPath = _chunkJALNY2K5js.isPath; exports.parser = _chunkJALNY2K5js.parser; exports.resolveOptions = _chunkJALNY2K5js.resolveOptions;
35
+ exports.ViteSlidevPlugin = _chunk4D4M2E5Mjs.ViteSlidevPlugin; exports.createServer = _chunkWVI7OC5Ajs.createServer; exports.createWindiCSSPlugin = _chunkJ7PXWEZ7js.createWindiCSSPlugin; exports.getAddonRoots = _chunkWVI7OC5Ajs.getAddonRoots; exports.getCLIRoot = _chunkWVI7OC5Ajs.getCLIRoot; exports.getClientRoot = _chunkWVI7OC5Ajs.getClientRoot; exports.getRoot = _chunkWVI7OC5Ajs.getRoot; exports.getThemeRoots = _chunkWVI7OC5Ajs.getThemeRoots; exports.getUserRoot = _chunkWVI7OC5Ajs.getUserRoot; exports.isPath = _chunkWVI7OC5Ajs.isPath; exports.parser = _chunkWVI7OC5Ajs.parser; exports.resolveOptions = _chunkWVI7OC5Ajs.resolveOptions;
package/dist/index.mjs CHANGED
@@ -9,13 +9,13 @@ import {
9
9
  isPath,
10
10
  parser,
11
11
  resolveOptions
12
- } from "./chunk-ZGWBGB2K.mjs";
12
+ } from "./chunk-B2WFHX3U.mjs";
13
13
  import {
14
14
  createWindiCSSPlugin
15
15
  } from "./chunk-HO75FTDI.mjs";
16
16
  import {
17
17
  ViteSlidevPlugin
18
- } from "./chunk-LXUMODW4.mjs";
18
+ } from "./chunk-4VXY5G3T.mjs";
19
19
  import "./chunk-JDHANZ37.mjs";
20
20
  import "./chunk-ZEKM4EGL.mjs";
21
21
  import "./chunk-QHOBBTS4.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
- "version": "0.43.0-beta.2",
3
+ "version": "0.43.0-beta.4",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -44,11 +44,11 @@
44
44
  "dependencies": {
45
45
  "@antfu/utils": "^0.7.6",
46
46
  "@hedgedoc/markdown-it-plugins": "^2.1.4",
47
- "@iconify-json/carbon": "^1.1.20",
47
+ "@iconify-json/carbon": "^1.1.21",
48
48
  "@iconify-json/ph": "^1.1.6",
49
49
  "@lillallol/outline-pdf": "^4.0.0",
50
50
  "@mrdrogdrog/optional": "^1.2.1",
51
- "@unocss/extractor-mdc": "^0.55.4",
51
+ "@unocss/extractor-mdc": "^0.55.5",
52
52
  "@vitejs/plugin-vue": "^4.3.4",
53
53
  "@vitejs/plugin-vue-jsx": "^3.0.2",
54
54
  "@windicss/config": "^1.9.1",
@@ -83,7 +83,7 @@
83
83
  "resolve-from": "^5.0.0",
84
84
  "resolve-global": "^1.0.0",
85
85
  "shiki": "npm:shikiji-compat@^0.6.6",
86
- "unocss": "^0.55.4",
86
+ "unocss": "^0.55.5",
87
87
  "unplugin-icons": "^0.16.6",
88
88
  "unplugin-vue-components": "^0.25.2",
89
89
  "unplugin-vue-markdown": "^0.24.3",
@@ -97,15 +97,15 @@
97
97
  "vue": "^3.3.4",
98
98
  "windicss": "^3.5.6",
99
99
  "yargs": "^17.7.2",
100
- "@slidev/client": "0.43.0-beta.2",
101
- "@slidev/parser": "0.43.0-beta.2",
102
- "@slidev/types": "0.43.0-beta.2"
100
+ "@slidev/client": "0.43.0-beta.4",
101
+ "@slidev/parser": "0.43.0-beta.4",
102
+ "@slidev/types": "0.43.0-beta.4"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@types/plantuml-encoder": "^1.4.0",
106
106
  "fast-deep-equal": "^3.1.3",
107
107
  "local-pkg": "^0.4.3",
108
- "markdown-it-mdc": "^0.0.4",
108
+ "markdown-it-mdc": "^0.1.0",
109
109
  "semver": "^7.5.4",
110
110
  "sirv": "^2.0.3"
111
111
  },