@slidev/types 0.48.7 → 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.
Files changed (2) hide show
  1. package/dist/index.d.mts +14 -1
  2. package/package.json +4 -4
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;
@@ -22,6 +23,7 @@ interface ExportArgs extends CommonArgs {
22
23
  'output'?: string;
23
24
  'format'?: string;
24
25
  'timeout'?: number;
26
+ 'wait'?: number;
25
27
  'range'?: string;
26
28
  'dark'?: boolean;
27
29
  'with-clicks'?: boolean;
@@ -495,6 +497,7 @@ type ResolvedClicksInfo = Required<ClicksInfo>;
495
497
  type ClicksMap = Map<ClicksElement, ClicksInfo>;
496
498
  interface ClicksContext {
497
499
  current: number;
500
+ readonly clicksStart: number;
498
501
  readonly relativeOffsets: ClicksRelativeEls;
499
502
  readonly map: ClicksMap;
500
503
  resolve: (at: string | number, size?: number) => {
@@ -518,6 +521,10 @@ interface CodeRunnerContext {
518
521
  * Highlight code with shiki.
519
522
  */
520
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>;
521
528
  /**
522
529
  * Use (other) code runner to run code.
523
530
  */
@@ -717,4 +724,10 @@ declare module 'vite' {
717
724
  }
718
725
  }
719
726
 
720
- 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 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 };
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.7",
3
+ "version": "0.48.9",
4
4
  "description": "Shared types declarations for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -26,11 +26,11 @@
26
26
  "@antfu/utils": "^0.7.7",
27
27
  "@vitejs/plugin-vue": "^5.0.4",
28
28
  "@vitejs/plugin-vue-jsx": "^3.1.0",
29
- "katex": "^0.16.9",
29
+ "katex": "^0.16.10",
30
30
  "mermaid": "^10.9.0",
31
31
  "monaco-editor": "^0.47.0",
32
- "shiki": "^1.1.7",
33
- "unocss": "^0.58.5",
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",