@slidev/types 0.49.0-beta.2 → 0.49.0-beta.3

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/client.d.ts CHANGED
@@ -97,6 +97,13 @@ declare module '#slidev/setups/shortcuts' {
97
97
  export default setups
98
98
  }
99
99
 
100
+ declare module '#slidev/setups/routes' {
101
+ import type { RoutesSetup } from '@slidev/types'
102
+
103
+ const setups: RoutesSetup[]
104
+ export default setups
105
+ }
106
+
100
107
  declare module '#slidev/setups/context-menu' {
101
108
  import type { ContextMenuSetup } from '@slidev/types'
102
109
 
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { RouteMeta, RouteComponent, Router } from 'vue-router';
1
+ import { RouteMeta, RouteComponent, Router, RouteRecordRaw } from 'vue-router';
2
2
  import YAML from 'yaml';
3
3
  import { TransitionGroupProps, Component, App, Ref, ComputedRef } from 'vue';
4
4
  import { Arrayable, Awaitable, ArgumentsType } from '@antfu/utils';
@@ -591,6 +591,7 @@ type PreparserSetup = (filepath: string) => SlidevPreparserExtension;
591
591
  type MonacoSetup = (m: typeof monaco) => Awaitable<MonacoSetupReturn | void>;
592
592
  type AppSetup = (context: AppContext) => Awaitable<void>;
593
593
  type RootSetup = () => Awaitable<void>;
594
+ type RoutesSetup = (routes: RouteRecordRaw[]) => RouteRecordRaw[];
594
595
  type MermaidSetup = () => Partial<MermaidOptions> | void;
595
596
  type ShortcutsSetup = (nav: NavOperations, defaultShortcuts: ShortcutOptions[]) => Array<ShortcutOptions>;
596
597
  type CodeRunnersSetup = (runners: CodeRunnerProviders) => Awaitable<CodeRunnerProviders | void>;
@@ -599,6 +600,8 @@ declare const defineShikiSetup: (fn: ShikiSetup) => ShikiSetup;
599
600
  declare const defineUnoSetup: (fn: UnoSetup) => UnoSetup;
600
601
  declare const defineMonacoSetup: (fn: MonacoSetup) => MonacoSetup;
601
602
  declare const defineAppSetup: (fn: AppSetup) => AppSetup;
603
+ declare const defineRootSetup: (fn: RootSetup) => RootSetup;
604
+ declare const defineRoutesSetup: (fn: RoutesSetup) => RoutesSetup;
602
605
  declare const defineMermaidSetup: (fn: MermaidSetup) => MermaidSetup;
603
606
  declare const defineKatexSetup: (fn: KatexSetup) => KatexSetup;
604
607
  declare const defineShortcutsSetup: (fn: ShortcutsSetup) => ShortcutsSetup;
@@ -752,4 +755,4 @@ interface ClicksContext {
752
755
  readonly total: number;
753
756
  }
754
757
 
755
- export { type AppContext, type AppSetup, type BuildArgs, type BuiltinSlideTransition, type ClicksContext, type ClicksElement, type ClicksInfo, 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 ContextMenuItem, type ContextMenuSetup, 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 NormalizedAtValue, type NormalizedRangeClickValue, type NormalizedSinceClickValue, type PreparserExtensionLoader, type PreparserSetup, type RawAtValue, type RenderContext, 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, defineContextMenuSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup };
758
+ export { type AppContext, type AppSetup, type BuildArgs, type BuiltinSlideTransition, type ClicksContext, type ClicksElement, type ClicksInfo, 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 ContextMenuItem, type ContextMenuSetup, 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 NormalizedAtValue, type NormalizedRangeClickValue, type NormalizedSinceClickValue, type PreparserExtensionLoader, type PreparserSetup, type RawAtValue, type RenderContext, type ResolvedDrawingsOptions, type ResolvedExportOptions, type ResolvedFontOptions, type ResolvedSlidevOptions, type RootSetup, type RootsInfo, type RoutesSetup, 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, defineContextMenuSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineRootSetup, defineRoutesSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup };
package/dist/index.mjs CHANGED
@@ -6,6 +6,8 @@ var defineShikiSetup = defineSetup;
6
6
  var defineUnoSetup = defineSetup;
7
7
  var defineMonacoSetup = defineSetup;
8
8
  var defineAppSetup = defineSetup;
9
+ var defineRootSetup = defineSetup;
10
+ var defineRoutesSetup = defineSetup;
9
11
  var defineMermaidSetup = defineSetup;
10
12
  var defineKatexSetup = defineSetup;
11
13
  var defineShortcutsSetup = defineSetup;
@@ -20,6 +22,8 @@ export {
20
22
  defineMermaidSetup,
21
23
  defineMonacoSetup,
22
24
  definePreparserSetup,
25
+ defineRootSetup,
26
+ defineRoutesSetup,
23
27
  defineShikiSetup,
24
28
  defineShortcutsSetup,
25
29
  defineUnoSetup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/types",
3
- "version": "0.49.0-beta.2",
3
+ "version": "0.49.0-beta.3",
4
4
  "description": "Shared types declarations for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",