@gpichot/spectacle-deck 1.2.11 → 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/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 +1686 -1415
- package/index.d.ts +25 -18
- package/index.mjs +1686 -1415
- 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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const CenteredLayout: (props: React.ComponentPropsWithoutRef<"div">) =>
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export declare const CenteredLayout: (props: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
|
package/layouts/QuoteLayout.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import type React from "react";
|
|
2
2
|
export declare function QuoteLayout({ children, author, sourceUrl, }: {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
author: string;
|
|
5
5
|
sourceUrl?: string;
|
|
6
|
-
}):
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SectionLayout: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import type React from "react";
|
|
2
2
|
export declare const SidedImageLayout: ({ children, image, position, height, ratio: ratioProp, }: {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
image?: string;
|
|
5
5
|
position?: "left" | "right";
|
|
6
6
|
ratio?: string;
|
|
7
7
|
height?: number;
|
|
8
|
-
}) =>
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/layouts/SideLayout.d.ts
CHANGED
package/layouts/columns.d.ts
CHANGED
package/layouts/index.d.ts
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import { BigNumberLayout } from "./BigNumberLayout";
|
|
2
|
+
import { FullImageLayout } from "./FullImageLayout";
|
|
2
3
|
import { QuoteLayout } from "./QuoteLayout";
|
|
3
4
|
import { SidedCodeLayout } from "./SideCodeLayout";
|
|
4
5
|
import { SideLayout } from "./SideLayout";
|
|
5
6
|
declare const _default: {
|
|
6
7
|
mainSection: ({ children, }: {
|
|
7
|
-
children:
|
|
8
|
-
}) => import("react").JSX.Element;
|
|
9
|
-
centered: (props:
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
centered: (props: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
default3: ({ children, position, }: {
|
|
11
|
-
children:
|
|
12
|
+
children: React.ReactNode;
|
|
12
13
|
position?: "left" | "right";
|
|
13
|
-
}) => import("react").JSX.Element;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
quote: typeof QuoteLayout;
|
|
15
16
|
sidedCode: typeof SidedCodeLayout;
|
|
16
17
|
sidedImage: ({ children, image, position, height, ratio: ratioProp, }: {
|
|
17
|
-
children:
|
|
18
|
+
children: React.ReactNode;
|
|
18
19
|
image?: string;
|
|
19
20
|
position?: "left" | "right";
|
|
20
21
|
ratio?: string;
|
|
21
22
|
height?: number;
|
|
22
|
-
}) => import("react").JSX.Element;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
side: typeof SideLayout;
|
|
24
25
|
section: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
|
+
fullImage: typeof FullImageLayout;
|
|
27
|
+
bigNumber: typeof BigNumberLayout;
|
|
25
28
|
};
|
|
26
29
|
export default _default;
|
package/layouts/styled.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SVGObject: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>, never>> & string;
|
package/layouts/utils.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export declare const Margins: {
|
|
|
4
4
|
horizontal: string;
|
|
5
5
|
horizontalInternal: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function getHeading(children: React.ReactNode): (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare function
|
|
7
|
+
export declare function getHeading(children: React.ReactNode): ((string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>)[] | React.ReactElement<{
|
|
8
|
+
originalType?: string;
|
|
9
|
+
}, string | React.JSXElementConstructor<any>>)[];
|
|
10
|
+
export declare function getCode(children: React.ReactNode): (string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>)[];
|
|
11
|
+
export declare function getMatchingMdxType(children: React.ReactNode, mdxType: string): (string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>)[][];
|
|
12
|
+
export declare function getCodeChildren(children: React.ReactNode): (string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>)[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpichot/spectacle-deck",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.cjs",
|
|
@@ -17,15 +17,16 @@
|
|
|
17
17
|
"spectacle"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@fontsource/bitter": "^5.
|
|
21
|
-
"@mdx-js/react": "^3.
|
|
20
|
+
"@fontsource/bitter": "^5.2.10",
|
|
21
|
+
"@mdx-js/react": "^3.1.1",
|
|
22
|
+
"@react-spring/web": "^10.0.3",
|
|
23
|
+
"mermaid": "^11.13.0",
|
|
22
24
|
"qr-creator": "^1.0.0",
|
|
23
|
-
"react": "^
|
|
24
|
-
"react-dom": "^
|
|
25
|
-
"react-is": "^
|
|
26
|
-
"react-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"styled-components": "^6.1.11"
|
|
25
|
+
"react": "^19.2.4",
|
|
26
|
+
"react-dom": "^19.2.4",
|
|
27
|
+
"react-is": "^19.2.4",
|
|
28
|
+
"react-syntax-highlighter": "^16.1.1",
|
|
29
|
+
"spectacle": "^10.2.3",
|
|
30
|
+
"styled-components": "^6.3.12"
|
|
30
31
|
}
|
|
31
32
|
}
|
package/template.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}) => React.JSX.Element;
|
|
1
|
+
export declare const template: ({ slideNumber, numberOfSlides, }: {
|
|
2
|
+
slideNumber: number;
|
|
3
|
+
numberOfSlides: number;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/layouts/BaseLayout.d.ts
DELETED