@slidev/types 52.11.4 → 52.12.0
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 +17 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -171,6 +171,11 @@ interface SlideInfoBase {
|
|
|
171
171
|
note?: string;
|
|
172
172
|
title?: string;
|
|
173
173
|
level?: number;
|
|
174
|
+
/**
|
|
175
|
+
* Image URLs extracted from the slide content (frontmatter, markdown, Vue components, CSS).
|
|
176
|
+
* Populated at parse time to survive build-mode content stripping.
|
|
177
|
+
*/
|
|
178
|
+
images?: string[];
|
|
174
179
|
}
|
|
175
180
|
interface SourceSlideInfo extends SlideInfoBase {
|
|
176
181
|
/**
|
|
@@ -607,6 +612,18 @@ interface HeadmatterConfig extends TransitionOptions {
|
|
|
607
612
|
* @default 800
|
|
608
613
|
*/
|
|
609
614
|
magicMoveDuration?: number;
|
|
615
|
+
/**
|
|
616
|
+
* Preload images extracted from slides for faster navigation.
|
|
617
|
+
*
|
|
618
|
+
* - `true` - enable with default look-ahead of 3 slides
|
|
619
|
+
* - `false` - disable image preloading
|
|
620
|
+
* - `{ ahead: number }` - enable with custom look-ahead window
|
|
621
|
+
*
|
|
622
|
+
* @default true
|
|
623
|
+
*/
|
|
624
|
+
preloadImages?: boolean | {
|
|
625
|
+
ahead?: number;
|
|
626
|
+
};
|
|
610
627
|
}
|
|
611
628
|
interface Frontmatter extends TransitionOptions {
|
|
612
629
|
/**
|