@enhanced-dom/slides 0.1.0 → 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,4 +1,4 @@
1
- export const branding: string
2
- export const brandingBack: string
3
- export const brandingFront: string
4
- export const scrollIcon: string
1
+ export const branding: string;
2
+ export const brandingBack: string;
3
+ export const brandingFront: string;
4
+ export const scrollIcon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const ShellHeader: ({ title, author, profileLink, date, variant, }: {
3
2
  title: string;
4
3
  author: string;
@@ -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
- }) => import("react").JSX.Element;
8
- declare const ContentsSlot: FC<ComponentProps<typeof ShellHeader>>;
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 { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
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 _jsx(_Fragment, { children: children });
12
+ return children;
13
13
  };
14
14
  const ContentsSlot = ({ children, ...rest }) => {
15
15
  return (_jsxs(_Fragment, { children: [_jsx(ShellHeader, { ...rest }), children || null] }));
@@ -3,7 +3,7 @@ import { useCallback, useMemo, useState } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { faLink } from '@fortawesome/free-solid-svg-icons';
5
5
  import { faClipboard } from '@fortawesome/free-regular-svg-icons';
6
- import * as styles from './toc.style.pcss';
6
+ import * as styles from './heading2.style.pcss';
7
7
  import { Icon } from '../icon.component';
8
8
  export const Heading2 = ({ children, id, className, ...forwarded }) => {
9
9
  const anchorRef = id !== null && id !== void 0 ? id : children.toLowerCase().replace(/\s/, '-');
@@ -0,0 +1,4 @@
1
+ export const anchor: string;
2
+ export const copied: string;
3
+ export const heading: string;
4
+ export const icon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enhanced-dom/slides",
3
- "version": "0.1.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.11.3",
12
- "@enhanced-dom/fontawesome": "^0.1.0",
13
- "@enhanced-dom/gatsby-waves": "^0.1.0",
14
- "@enhanced-dom/icon": "^0.1.0",
15
- "@enhanced-dom/react": "^0.1.0",
16
- "@fontsource/montserrat": "^5.0.16",
17
- "@fontsource/noto-serif": "^5.0.18",
18
- "@mdx-js/react": "^3.0.1",
19
- "@theme-ui/typography": "^0.16.2",
11
+ "@emotion/react": "^11.14.0",
12
+ "@enhanced-dom/fontawesome": "~0.3.0",
13
+ "@enhanced-dom/gatsby-waves": "~0.1.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.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.4",
27
- "@enhanced-dom/webpack": "^0.1.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": "^17.0.75",
30
- "@types/react-dom": "^17.0.25"
29
+ "@types/react": "^18.3.27",
30
+ "@types/react-dom": "^18.3.7"
31
31
  },
32
32
  "engines": {
33
- "node": ">=18",
33
+ "node": ">=20",
34
34
  "npm": ">=10"
35
35
  }
36
36
  }
@@ -1,4 +0,0 @@
1
- export const heading: string
2
- export const icon: string
3
- export const copied: string
4
- export const anchor: string