vite-plugin-react-deck 1.1.5 → 1.4.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/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PestacleConfig } from "./types";
1
+ import { type PestacleConfig } from "./types";
2
2
  /**
3
3
  * Allow to type the config object (similar to Vite's defineConfig)
4
4
  */
package/helpers.d.ts CHANGED
@@ -1,10 +1,33 @@
1
+ import { green, purple, solarizedLight } from "./themes";
2
+ declare const themes: {
3
+ readonly green: typeof green;
4
+ readonly purple: typeof purple;
5
+ readonly "solarized-light": typeof solarizedLight;
6
+ };
7
+ export interface DeckMeta {
8
+ name: string;
9
+ path: string;
10
+ title?: string;
11
+ author?: string;
12
+ date?: string;
13
+ description?: string;
14
+ slideCount: number;
15
+ }
16
+ export declare function createDecksIndexFile(): string;
17
+ export declare function createDecksPageFile({ decks, theme, }: {
18
+ decks: DeckMeta[];
19
+ theme: string;
20
+ }): string;
1
21
  export declare function createIndexFile({ entrypoint }: {
2
22
  entrypoint: string;
3
23
  }): string;
4
- export declare function createAppDeckFile({ slidePath, theme, config, }: {
24
+ export declare function createAppDeckFile({ slidePath, theme, deckTheme, config, }: {
5
25
  slidePath: string;
6
- theme: string;
26
+ theme: keyof typeof themes;
27
+ /** Theme override from the deck's frontmatter. Can be a built-in theme name or a custom module path. */
28
+ deckTheme?: string;
7
29
  config: {
8
30
  layoutsFile: string | undefined;
9
31
  };
10
32
  }): string;
33
+ export {};