@gpichot/spectacle-deck 1.2.10 → 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/SlideWrapper.d.ts +2 -2
- package/colors.d.ts +1 -1
- package/components/CodeStepper/CodeStepper.d.ts +1 -1
- package/components/DocumentationItem.d.ts +3 -3
- package/components/FilePane.d.ts +1 -1
- package/components/HorizontalList.d.ts +2 -2
- package/components/IconBox.d.ts +2 -2
- package/components/Image.d.ts +2 -2
- package/components/ItemsColumn.d.ts +1 -1
- package/components/Mermaid.d.ts +5 -0
- package/components/QRCode.d.ts +1 -2
- package/components/Timeline.d.ts +2 -2
- package/components/Timeline.styled.d.ts +1 -4
- package/components/map.d.ts +15 -181
- package/components/styled.d.ts +4 -4
- package/context.d.ts +1 -1
- package/index.cjs +1663 -1390
- package/index.d.ts +25 -18
- package/index.mjs +1665 -1392
- package/layouts/BigNumberLayout.d.ts +5 -0
- package/layouts/CenteredLayout.d.ts +2 -2
- package/layouts/Default3Layout.d.ts +2 -2
- package/layouts/FullImageLayout.d.ts +7 -0
- package/layouts/MainSectionLayout.d.ts +2 -2
- package/layouts/QuoteLayout.d.ts +2 -2
- package/layouts/SectionLayout.d.ts +0 -1
- package/layouts/SideCodeLayout.d.ts +2 -2
- package/layouts/SideImageLayout.d.ts +2 -2
- package/layouts/SideLayout.d.ts +2 -2
- package/layouts/columns.d.ts +1 -1
- package/layouts/index.d.ts +11 -8
- package/layouts/styled.d.ts +0 -1
- package/layouts/utils.d.ts +6 -4
- package/package.json +11 -10
- package/template.d.ts +4 -5
- package/layouts/BaseLayout.d.ts +0 -5
package/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { LayoutComponent } from "./context";
|
|
2
|
+
import { type LayoutComponent } from "./context";
|
|
3
3
|
export * from "spectacle";
|
|
4
|
-
export { default as FilePane } from "./components/FilePane";
|
|
5
|
-
export { ItemsColumn } from "./components/ItemsColumn";
|
|
6
4
|
export { Doc, DocItem } from "./components/DocumentationItem";
|
|
7
|
-
export {
|
|
5
|
+
export { default as FilePane } from "./components/FilePane";
|
|
8
6
|
export { default as HorizontalList, HorizontalListItem, } from "./components/HorizontalList";
|
|
9
|
-
export { default as Timeline, TimelineItem } from "./components/Timeline";
|
|
10
7
|
export { IconBox } from "./components/IconBox";
|
|
8
|
+
export { Image } from "./components/Image";
|
|
9
|
+
export { ItemsColumn } from "./components/ItemsColumn";
|
|
10
|
+
export { Mermaid } from "./components/Mermaid";
|
|
11
|
+
export { default as Timeline, TimelineItem } from "./components/Timeline";
|
|
11
12
|
export type SlideType = {
|
|
12
13
|
metadata: Record<string, unknown> & {
|
|
13
14
|
layout?: string;
|
|
@@ -20,16 +21,16 @@ export type DeckType = {
|
|
|
20
21
|
};
|
|
21
22
|
export declare function PassThrough({ children }: {
|
|
22
23
|
children: React.ReactNode;
|
|
23
|
-
}):
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
export declare const layouts: {
|
|
25
26
|
mainSection: ({ children, }: {
|
|
26
27
|
children: React.ReactNode;
|
|
27
|
-
}) =>
|
|
28
|
-
centered: (props:
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
centered: (props: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
default3: ({ children, position, }: {
|
|
30
31
|
children: React.ReactNode;
|
|
31
32
|
position?: "left" | "right";
|
|
32
|
-
}) =>
|
|
33
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
33
34
|
quote: typeof import("./layouts/QuoteLayout").QuoteLayout;
|
|
34
35
|
sidedCode: typeof import("./layouts/SideCodeLayout").SidedCodeLayout;
|
|
35
36
|
sidedImage: ({ children, image, position, height, ratio: ratioProp, }: {
|
|
@@ -38,41 +39,47 @@ export declare const layouts: {
|
|
|
38
39
|
position?: "left" | "right";
|
|
39
40
|
ratio?: string;
|
|
40
41
|
height?: number;
|
|
41
|
-
}) =>
|
|
42
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
42
43
|
side: typeof import("./layouts/SideLayout").SideLayout;
|
|
43
44
|
section: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
45
|
+
fullImage: typeof import("./layouts/FullImageLayout").FullImageLayout;
|
|
46
|
+
bigNumber: typeof import("./layouts/BigNumberLayout").BigNumberLayout;
|
|
44
47
|
};
|
|
45
48
|
interface ThemeOptions {
|
|
46
49
|
themeTokens: {
|
|
47
50
|
colors: Record<string, string>;
|
|
51
|
+
fonts?: {
|
|
52
|
+
header?: string;
|
|
53
|
+
text?: string;
|
|
54
|
+
};
|
|
48
55
|
};
|
|
49
56
|
}
|
|
50
57
|
export declare function Deck({ deck, theme, layouts, }: {
|
|
51
58
|
deck: DeckType;
|
|
52
59
|
theme: ThemeOptions;
|
|
53
60
|
layouts?: Record<string, LayoutComponent>;
|
|
54
|
-
}):
|
|
61
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
55
62
|
export declare function Danger({ children }: {
|
|
56
63
|
children: React.ReactNode;
|
|
57
|
-
}):
|
|
64
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
58
65
|
export declare function Information({ children }: {
|
|
59
66
|
children: React.ReactNode;
|
|
60
|
-
}):
|
|
67
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
61
68
|
export declare function Success({ children }: {
|
|
62
69
|
children: React.ReactNode;
|
|
63
|
-
}):
|
|
70
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
64
71
|
export declare function Warning({ children }: {
|
|
65
72
|
children: React.ReactNode;
|
|
66
|
-
}):
|
|
73
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
67
74
|
export declare function Side({ children }: {
|
|
68
75
|
children: React.ReactNode;
|
|
69
|
-
}):
|
|
76
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
70
77
|
export declare namespace Side {
|
|
71
78
|
var mdxType: string;
|
|
72
79
|
}
|
|
73
80
|
export declare function Documentation({ children }: {
|
|
74
81
|
children: React.ReactNode;
|
|
75
|
-
}):
|
|
82
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
76
83
|
export declare function Box({ children }: {
|
|
77
84
|
children: React.ReactNode;
|
|
78
|
-
}):
|
|
85
|
+
}): import("react/jsx-runtime").JSX.Element;
|