vite-plugin-react-deck 1.1.5 → 1.5.1
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 +1 -1
- package/helpers.d.ts +26 -2
- package/index.cjs +569 -147
- package/index.d.ts +2 -2
- package/index.mjs +570 -148
- package/package.json +11 -11
- package/slides.d.ts +1 -1
- package/themes/index.d.ts +1 -0
- package/themes/solarized-light.d.ts +11 -0
- package/types.d.ts +20 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-react-deck",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.cjs",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"fast refresh"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@mdx-js/mdx": "^3.
|
|
26
|
-
"@mdx-js/react": "^3.
|
|
27
|
-
"@swc/core": "^1.
|
|
28
|
-
"glob": "^
|
|
25
|
+
"@mdx-js/mdx": "^3.1.1",
|
|
26
|
+
"@mdx-js/react": "^3.1.1",
|
|
27
|
+
"@swc/core": "^1.15.18",
|
|
28
|
+
"glob": "^13.0.6",
|
|
29
29
|
"gray-matter": "^4.0.3",
|
|
30
|
-
"hastscript": "^9.0.
|
|
31
|
-
"lodash": "^4.17.
|
|
32
|
-
"remark-directive": "^
|
|
33
|
-
"remark-gfm": "^4.0.
|
|
34
|
-
"unist-util-visit": "^5.
|
|
35
|
-
"zod": "^3.
|
|
30
|
+
"hastscript": "^9.0.1",
|
|
31
|
+
"lodash": "^4.17.23",
|
|
32
|
+
"remark-directive": "^4.0.0",
|
|
33
|
+
"remark-gfm": "^4.0.1",
|
|
34
|
+
"unist-util-visit": "^5.1.0",
|
|
35
|
+
"zod": "^4.3.6"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/slides.d.ts
CHANGED
package/themes/index.d.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const TransitionNames: readonly ["fade", "slide", "drop", "none"];
|
|
3
|
+
export type TransitionName = (typeof TransitionNames)[number];
|
|
2
4
|
export interface ReactDeckOptions {
|
|
3
5
|
rehypePlugins: any[];
|
|
4
6
|
remarkPlugins: any[];
|
|
5
|
-
theme: "green" | "purple";
|
|
7
|
+
theme: "green" | "purple" | "solarized-light";
|
|
8
|
+
/** Show the talks listing page. Defaults to true in dev, false in production. */
|
|
9
|
+
startupPage?: boolean;
|
|
10
|
+
/** Default slide transition. */
|
|
11
|
+
transition?: TransitionName;
|
|
6
12
|
}
|
|
7
13
|
export declare const PestacleConfigSchema: z.ZodObject<{
|
|
8
|
-
theme: z.ZodDefault<z.ZodEnum<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
theme: z.ZodDefault<z.ZodEnum<{
|
|
15
|
+
green: "green";
|
|
16
|
+
purple: "purple";
|
|
17
|
+
"solarized-light": "solarized-light";
|
|
18
|
+
}>>;
|
|
19
|
+
startupPage: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
transition: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
fade: "fade";
|
|
22
|
+
slide: "slide";
|
|
23
|
+
drop: "drop";
|
|
24
|
+
none: "none";
|
|
25
|
+
}>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
14
27
|
export type PestacleConfig = z.infer<typeof PestacleConfigSchema>;
|