@slidev/types 0.48.8 → 0.48.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +12 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ import Components from 'unplugin-vue-components/vite';
|
|
|
13
13
|
import Markdown from 'unplugin-vue-markdown/vite';
|
|
14
14
|
import RemoteAssets from 'vite-plugin-remote-assets';
|
|
15
15
|
import ServerRef from 'vite-plugin-vue-server-ref';
|
|
16
|
+
import MagicString from 'magic-string';
|
|
16
17
|
|
|
17
18
|
interface CommonArgs {
|
|
18
19
|
entry: string;
|
|
@@ -520,6 +521,10 @@ interface CodeRunnerContext {
|
|
|
520
521
|
* Highlight code with shiki.
|
|
521
522
|
*/
|
|
522
523
|
highlight: (code: string, lang: string, options?: Partial<CodeToHastOptions>) => Promise<string>;
|
|
524
|
+
/**
|
|
525
|
+
* Resolve the import path of a module.
|
|
526
|
+
*/
|
|
527
|
+
resolveId: (specifer: string) => Promise<string | null>;
|
|
523
528
|
/**
|
|
524
529
|
* Use (other) code runner to run code.
|
|
525
530
|
*/
|
|
@@ -719,4 +724,10 @@ declare module 'vite' {
|
|
|
719
724
|
}
|
|
720
725
|
}
|
|
721
726
|
|
|
722
|
-
|
|
727
|
+
interface MarkdownTransformContext {
|
|
728
|
+
s: MagicString;
|
|
729
|
+
ignores: [number, number][];
|
|
730
|
+
isIgnored: (index: number) => boolean;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
export { type AppContext, type AppSetup, type BuildArgs, type BuiltinSlideTransition, type ClicksContext, type ClicksElement, type ClicksInfo, type ClicksMap, type ClicksRelativeEls, type CodeRunner, type CodeRunnerContext, type CodeRunnerOutput, type CodeRunnerOutputDom, type CodeRunnerOutputError, type CodeRunnerOutputHtml, type CodeRunnerOutputText, type CodeRunnerOutputTextArray, type CodeRunnerOutputs, type CodeRunnerProviders, type CodeRunnersSetup, type CommonArgs, type DrawingsOptions, type ExportArgs, type FontOptions, type FrontmatterStyle, type KatexSetup, type LoadedSnippets, type MarkdownTransformContext, type MermaidOptions, type MermaidSetup, type MonacoSetup, type MonacoSetupReturn, type NavOperations, type PreparserExtensionLoader, type PreparserSetup, type RenderContext, type ResolvedClicksInfo, type ResolvedDrawingsOptions, type ResolvedExportOptions, type ResolvedFontOptions, type ResolvedSlidevOptions, type RootSetup, type RootsInfo, type ShikiContext, type ShikiSetup, type ShikiSetupReturn, type ShortcutOptions, type ShortcutsSetup, type SlideInfo, type SlideInfoBase, type SlidePatch, type SlideRoute, type SlidevConfig, type SlidevData, type SlidevEntryOptions, type SlidevFeatureFlags, type SlidevMarkdown, type SlidevPluginOptions, type SlidevPreparserExtension, type SlidevServerOptions, type SlidevThemeConfig, type SlidevThemeMeta, type SourceSlideInfo, type TocItem, type UnoSetup, defineAppSetup, defineCodeRunnersSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/types",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.9",
|
|
4
4
|
"description": "Shared types declarations for Slidev",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"katex": "^0.16.10",
|
|
30
30
|
"mermaid": "^10.9.0",
|
|
31
31
|
"monaco-editor": "^0.47.0",
|
|
32
|
-
"shiki": "^1.2.
|
|
33
|
-
"unocss": "^0.58.
|
|
32
|
+
"shiki": "^1.2.3",
|
|
33
|
+
"unocss": "^0.58.9",
|
|
34
34
|
"unplugin-icons": "^0.18.5",
|
|
35
35
|
"unplugin-vue-markdown": "^0.26.0",
|
|
36
36
|
"vite-plugin-remote-assets": "^0.4.1",
|