@slidev/types 0.48.0-beta.4 → 0.48.0-beta.6
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 +6 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -374,6 +374,10 @@ interface SlideInfo extends SlideInfoBase {
|
|
|
374
374
|
snippetsUsed?: LoadedSnippets;
|
|
375
375
|
noteHTML?: string;
|
|
376
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* Editable fields for a slide
|
|
379
|
+
*/
|
|
380
|
+
type SlidePatch = Partial<Pick<SlideInfoBase, 'content' | 'note'>>;
|
|
377
381
|
/**
|
|
378
382
|
* Metadata for "slidev" field in themes' package.json
|
|
379
383
|
*/
|
|
@@ -416,7 +420,7 @@ interface SlidevPreparserExtension {
|
|
|
416
420
|
transformSlide?: (content: string, frontmatter: any) => Promise<string | undefined>;
|
|
417
421
|
}
|
|
418
422
|
type PreparserExtensionLoader = (headmatter?: Record<string, unknown>, filepath?: string) => Promise<SlidevPreparserExtension[]>;
|
|
419
|
-
type RenderContext = 'slide' | 'overview' | 'presenter' | 'previewNext';
|
|
423
|
+
type RenderContext = 'none' | 'slide' | 'overview' | 'presenter' | 'previewNext';
|
|
420
424
|
type LoadedSnippets = Record<string, string>;
|
|
421
425
|
type ClicksElement = Element | string;
|
|
422
426
|
type ClicksRelativeEls = Map<ClicksElement, number>;
|
|
@@ -544,4 +548,4 @@ interface TocItem {
|
|
|
544
548
|
title?: string;
|
|
545
549
|
}
|
|
546
550
|
|
|
547
|
-
export { type AppContext, type AppSetup, type BuildArgs, type BuiltinSlideTransition, type ClicksContext, type ClicksElement, type ClicksInfo, type ClicksMap, type ClicksRelativeEls, 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 ShikiContext, type ShikiSetup, type ShikiSetupReturn, type ShortcutOptions, type ShortcutsSetup, type SlideInfo, type SlideInfoBase, type SlidevConfig, type SlidevData, type SlidevFeatureFlags, type SlidevMarkdown, type SlidevPreparserExtension, type SlidevThemeConfig, type SlidevThemeMeta, type SourceSlideInfo, type TocItem, type UnoSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup };
|
|
551
|
+
export { type AppContext, type AppSetup, type BuildArgs, type BuiltinSlideTransition, type ClicksContext, type ClicksElement, type ClicksInfo, type ClicksMap, type ClicksRelativeEls, 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 ShikiContext, type ShikiSetup, type ShikiSetupReturn, type ShortcutOptions, type ShortcutsSetup, type SlideInfo, type SlideInfoBase, type SlidePatch, type SlidevConfig, type SlidevData, type SlidevFeatureFlags, type SlidevMarkdown, type SlidevPreparserExtension, type SlidevThemeConfig, type SlidevThemeMeta, type SourceSlideInfo, type TocItem, type UnoSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup };
|