@slidev/types 0.45.0 → 0.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,4 +7,3 @@ Shared types for [Slidev](https://sli.dev).
7
7
  ## License
8
8
 
9
9
  MIT License © 2021 [Anthony Fu](https://github.com/antfu)
10
-
package/dist/index.d.mts CHANGED
@@ -2,6 +2,7 @@ import { TransitionGroupProps, App, Ref } from 'vue';
2
2
  import { Awaitable } from '@antfu/utils';
3
3
  import * as Shiki from 'shiki';
4
4
  import { IThemeRegistration, Theme, ILanguageRegistration, Lang, Highlighter } from 'shiki';
5
+ import { CodeToHastOptions } from 'shikiji';
5
6
  import * as monaco from 'monaco-editor';
6
7
  import { Router } from 'vue-router';
7
8
  import mermaid from 'mermaid';
@@ -99,7 +100,7 @@ interface SlidevConfig {
99
100
  * @see https://sli.dev/custom/highlighters.html
100
101
  * @default prism
101
102
  */
102
- highlighter: 'prism' | 'shiki';
103
+ highlighter: 'prism' | 'shiki' | 'shikiji';
103
104
  /**
104
105
  * Show line numbers in code blocks
105
106
  *
@@ -229,7 +230,7 @@ interface SlidevConfig {
229
230
  */
230
231
  transition?: BuiltinSlideTransition | string | TransitionGroupProps;
231
232
  /**
232
- * Suppport **experimental** MDC syntax
233
+ * Suppport MDC syntax
233
234
  *
234
235
  * @see https://github.com/antfu/markdown-it-mdc
235
236
  * @see https://content.nuxtjs.org/guide/writing/mdc
@@ -447,6 +448,7 @@ interface ShortcutOptions {
447
448
  name?: string;
448
449
  }
449
450
  type ShikiSetup = (shiki: typeof Shiki) => Awaitable<ShikiOptions | undefined>;
451
+ type ShikijiSetup = () => Awaitable<Partial<CodeToHastOptions> | undefined>;
450
452
  type KatexSetup = () => Awaitable<Partial<KatexOptions> | undefined>;
451
453
  type WindiSetup = () => Awaitable<Partial<WindiCssOptions> | undefined>;
452
454
  type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | undefined>;
@@ -476,4 +478,4 @@ interface TocItem {
476
478
  title?: string;
477
479
  }
478
480
 
479
- export { type AppContext, type AppSetup, type BuildArgs, type BuiltinSlideTransition, type CommonArgs, type DrawingsOptions, type ExportArgs, type FontOptions, type FrontmatterStyle, type KatexSetup, type MermaidOptions, type MermaidSetup, type MonacoSetup, type MonacoSetupReturn, type NavOperations, type PreparserExtensionFromHeadmatter, type PreparserExtensionLoader, type PreparserSetup, type RenderContext, type ResolvedDrawingsOptions, type ResolvedExportOptions, type ResolvedFontOptions, type ResolvedShikiOptions, type ShikiDarkModeThemes, type ShikiOptions, type ShikiSetup, type ShortcutOptions, type ShortcutsSetup, type SlideInfo, type SlideInfoBase, type SlideInfoExtended, type SlideInfoWithPath, type SlidevConfig, type SlidevFeatureFlags, type SlidevMarkdown, type SlidevPreparserExtension, type SlidevThemeConfig, type SlidevThemeMeta, type TocItem, type UnoSetup, type WindiSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup, defineWindiSetup };
481
+ export { type AppContext, type AppSetup, type BuildArgs, type BuiltinSlideTransition, type CommonArgs, type DrawingsOptions, type ExportArgs, type FontOptions, type FrontmatterStyle, type KatexSetup, type MermaidOptions, type MermaidSetup, type MonacoSetup, type MonacoSetupReturn, type NavOperations, type PreparserExtensionFromHeadmatter, type PreparserExtensionLoader, type PreparserSetup, type RenderContext, type ResolvedDrawingsOptions, type ResolvedExportOptions, type ResolvedFontOptions, type ResolvedShikiOptions, type ShikiDarkModeThemes, type ShikiOptions, type ShikiSetup, type ShikijiSetup, type ShortcutOptions, type ShortcutsSetup, type SlideInfo, type SlideInfoBase, type SlideInfoExtended, type SlideInfoWithPath, type SlidevConfig, type SlidevFeatureFlags, type SlidevMarkdown, type SlidevPreparserExtension, type SlidevThemeConfig, type SlidevThemeMeta, type TocItem, type UnoSetup, type WindiSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup, defineWindiSetup };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/types",
3
- "version": "0.45.0",
3
+ "version": "0.46.1",
4
4
  "description": "Shared types declarations for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",