@enhanced-dom/slides 0.1.1 → 0.2.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.
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type Theme } from 'theme-ui';
|
|
2
|
-
import { type ComponentProps, type FC, type ReactNode } from 'react';
|
|
2
|
+
import { type ComponentProps, type FC, type PropsWithChildren, type ReactNode } from 'react';
|
|
3
3
|
import { MDXProvider } from '@mdx-js/react';
|
|
4
4
|
import { ShellHeader } from './header.component';
|
|
5
5
|
declare const BrandingSlot: ({ children }: {
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
}) =>
|
|
8
|
-
declare const ContentsSlot:
|
|
9
|
-
export declare const Shell: FC<{
|
|
7
|
+
}) => ReactNode;
|
|
8
|
+
declare const ContentsSlot: ({ children, ...rest }: PropsWithChildren<ComponentProps<typeof ShellHeader>>) => import("react").JSX.Element;
|
|
9
|
+
export declare const Shell: FC<PropsWithChildren<{
|
|
10
10
|
theme?: Theme;
|
|
11
11
|
variant?: string;
|
|
12
|
-
}
|
|
12
|
+
}>> & {
|
|
13
13
|
Branding: typeof BrandingSlot;
|
|
14
14
|
Contents: typeof ContentsSlot;
|
|
15
15
|
mdxComponents: ComponentProps<typeof MDXProvider>['components'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
2
2
|
import { ThemeUIProvider } from 'theme-ui';
|
|
3
3
|
import { Themed } from '@theme-ui/mdx';
|
|
4
4
|
import { Global } from '@emotion/react';
|
|
@@ -9,7 +9,7 @@ import { ShellHeader } from './header.component';
|
|
|
9
9
|
import { ScrollTop } from '../scroll-top';
|
|
10
10
|
import { Heading2 } from '../toc';
|
|
11
11
|
const BrandingSlot = ({ children }) => {
|
|
12
|
-
return
|
|
12
|
+
return children;
|
|
13
13
|
};
|
|
14
14
|
const ContentsSlot = ({ children, ...rest }) => {
|
|
15
15
|
return (_jsxs(_Fragment, { children: [_jsx(ShellHeader, { ...rest }), children || null] }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enhanced-dom/slides",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Basic building blocks for html slides",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": "https://github.com/enhanced-dom/slides.git",
|
|
@@ -8,29 +8,29 @@
|
|
|
8
8
|
"author": "CD9B4A105290E17E0948E021DF4105107C88693C59C0B891CCC08366C51AEA990902A6A156AC87D88A2FC41422A5E1C3C4071F251F19441C4516000EC25F87DF",
|
|
9
9
|
"main": "index.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@emotion/react": "^11.
|
|
12
|
-
"@enhanced-dom/fontawesome": "~0.
|
|
11
|
+
"@emotion/react": "^11.14.0",
|
|
12
|
+
"@enhanced-dom/fontawesome": "~0.3.0",
|
|
13
13
|
"@enhanced-dom/gatsby-waves": "~0.1.0",
|
|
14
|
-
"@enhanced-dom/icon": "~0.
|
|
15
|
-
"@enhanced-dom/react": "~0.
|
|
16
|
-
"@fontsource/montserrat": "^5.
|
|
17
|
-
"@fontsource/noto-serif": "^5.
|
|
18
|
-
"@mdx-js/react": "^3.
|
|
19
|
-
"@theme-ui/typography": "^0.
|
|
14
|
+
"@enhanced-dom/icon": "~0.2.0",
|
|
15
|
+
"@enhanced-dom/react": "~0.2.0",
|
|
16
|
+
"@fontsource/montserrat": "^5.2.8",
|
|
17
|
+
"@fontsource/noto-serif": "^5.2.9",
|
|
18
|
+
"@mdx-js/react": "^3.1.1",
|
|
19
|
+
"@theme-ui/typography": "^0.17.2",
|
|
20
20
|
"deepmerge": "^4.3.1",
|
|
21
21
|
"lodash.pick": "^4.4.0",
|
|
22
|
-
"react-card-flip": "^1.2.
|
|
22
|
+
"react-card-flip": "^1.2.3",
|
|
23
23
|
"typography-theme-wordpress-2016": "^0.16.19"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@enhanced-dom/lint": "~0.1
|
|
27
|
-
"@enhanced-dom/webpack": "~0.
|
|
26
|
+
"@enhanced-dom/lint": "~0.2.1",
|
|
27
|
+
"@enhanced-dom/webpack": "~0.3.0",
|
|
28
28
|
"@types/lodash.pick": "^4.4.9",
|
|
29
|
-
"@types/react": "^
|
|
30
|
-
"@types/react-dom": "^
|
|
29
|
+
"@types/react": "^18.3.27",
|
|
30
|
+
"@types/react-dom": "^18.3.7"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
33
|
+
"node": ">=20",
|
|
34
34
|
"npm": ">=10"
|
|
35
35
|
}
|
|
36
36
|
}
|