Skip to content

Commit 20268aa

Browse files
authored
Update dev-dependencies
Closes GH-1996.
1 parent e79fc2b commit 20268aa

18 files changed

+734
-788
lines changed

docs/_asset/root.client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import React, {Suspense} from 'react'
44

5-
export const Root = (props) => {
5+
export function Root(props) {
66
const {response} = props
77

88
return (

docs/_component/blog.server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {sortItems} from './sort.js'
55

66
const dateTimeFormat = new Intl.DateTimeFormat('en', {dateStyle: 'long'})
77

8-
export const BlogEntry = (props) => {
8+
export function BlogEntry(props) {
99
const {item} = props
1010
const {name, data = {}} = item
1111
const {matter = {}, meta = {}} = data
@@ -72,7 +72,7 @@ export const BlogEntry = (props) => {
7272
)
7373
}
7474

75-
export const BlogGroup = (props) => {
75+
export function BlogGroup(props) {
7676
const {items, className, sort = 'navSortSelf,meta.title', ...rest} = props
7777
const sorted = sortItems(items, sort)
7878

docs/_component/copy.client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import useClipboard from 'react-use-clipboard'
33

4-
export const CopyButton = (props) => {
4+
export function CopyButton(props) {
55
const [copied, setCopied] = useClipboard(props.value, {successDuration: 2000})
66
const className = ['copy-button']
77

docs/_component/editor.client.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function useMdx(defaults) {
7272
return [state, setConfig]
7373
}
7474

75-
const ErrorFallback = ({error, resetErrorBoundary}) => {
75+
function ErrorFallback({error, resetErrorBoundary}) {
7676
return (
7777
<div role="alert">
7878
<p>Something went wrong:</p>
@@ -90,7 +90,7 @@ const MemoizedCodeMirror = memo((props) => (
9090
</ErrorBoundary>
9191
))
9292

93-
const FallbackComponent = ({error}) => {
93+
function FallbackComponent({error}) {
9494
const message = new VFileMessage(error)
9595
message.fatal = true
9696
return (
@@ -100,7 +100,7 @@ const FallbackComponent = ({error}) => {
100100
)
101101
}
102102

103-
export const Editor = ({children}) => {
103+
export function Editor({children}) {
104104
const defaultValue = children
105105
const extensions = useMemo(() => [basicSetup, oneDark, langMarkdown()], [])
106106
const [state, setConfig] = useMdx({
Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
11
import React from 'react'
22
import {config} from '../_config.js'
33

4-
export const FootSite = () => (
5-
<footer className="foot-site">
6-
<div className="content">
7-
<div
8-
style={{display: 'flex', justifyContent: 'space-between'}}
9-
className="block"
10-
>
11-
<div>
12-
<small>
13-
MDX is made with ❤️ in Boise, Amsterdam, and around the 🌏
14-
</small>
15-
<br />
16-
<small>This site does not track you.</small>
17-
<br />
18-
<small>MIT © 2017-{new Date().getFullYear()}</small>
19-
</div>
20-
<div style={{marginLeft: 'auto', textAlign: 'right'}}>
21-
<small>
22-
Project on <a href={config.gh.href}>GitHub</a>
23-
</small>
24-
<br />
25-
<small>
26-
Site on <a href={new URL('docs/', config.ghTree).href}>GitHub</a>
27-
</small>
28-
<br />
29-
<small>
30-
Updates on <a href={config.twitter.href}>Twitter</a>
31-
</small>
32-
<br />
33-
<small>
34-
Updates as <a href="/rss.xml">RSS feed</a>
35-
</small>
36-
<br />
37-
<small>
38-
Sponsor on <a href={config.oc.href}>OpenCollective</a>
39-
</small>
4+
export function FootSite() {
5+
return (
6+
<footer className="foot-site">
7+
<div className="content">
8+
<div
9+
style={{display: 'flex', justifyContent: 'space-between'}}
10+
className="block"
11+
>
12+
<div>
13+
<small>
14+
MDX is made with ❤️ in Boise, Amsterdam, and around the 🌏
15+
</small>
16+
<br />
17+
<small>This site does not track you.</small>
18+
<br />
19+
<small>MIT © 2017-{new Date().getFullYear()}</small>
20+
</div>
21+
<div style={{marginLeft: 'auto', textAlign: 'right'}}>
22+
<small>
23+
Project on <a href={config.gh.href}>GitHub</a>
24+
</small>
25+
<br />
26+
<small>
27+
Site on <a href={new URL('docs/', config.ghTree).href}>GitHub</a>
28+
</small>
29+
<br />
30+
<small>
31+
Updates on <a href={config.twitter.href}>Twitter</a>
32+
</small>
33+
<br />
34+
<small>
35+
Updates as <a href="/rss.xml">RSS feed</a>
36+
</small>
37+
<br />
38+
<small>
39+
Sponsor on <a href={config.oc.href}>OpenCollective</a>
40+
</small>
41+
</div>
4042
</div>
4143
</div>
42-
</div>
43-
</footer>
44-
)
44+
</footer>
45+
)
46+
}

docs/_component/home.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import {NavSite, NavSiteSkip} from './nav-site.server.js'
33
import {FootSite} from './foot-site.server.js'
44

5-
export const Home = (props) => {
5+
export function Home(props) {
66
const {name, navTree, children} = props
77

88
return (
Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
import React from 'react'
22

3-
export const GitHub = () => (
4-
<svg
5-
role="img"
6-
aria-label="GitHub"
7-
className="icon icon-github"
8-
viewBox="0 0 16 16"
9-
width={18}
10-
height={18}
11-
>
12-
<title>GitHub</title>
13-
<path
14-
fill="currentcolor"
15-
clipRule="evenodd"
16-
fillRule="evenodd"
17-
d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z"
18-
/>
19-
</svg>
20-
)
3+
export function GitHub() {
4+
return (
5+
<svg
6+
role="img"
7+
aria-label="GitHub"
8+
className="icon icon-github"
9+
viewBox="0 0 16 16"
10+
width={18}
11+
height={18}
12+
>
13+
<title>GitHub</title>
14+
<path
15+
fill="currentcolor"
16+
clipRule="evenodd"
17+
fillRule="evenodd"
18+
d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z"
19+
/>
20+
</svg>
21+
)
22+
}

docs/_component/icon/mdx.server.js

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
import React from 'react'
22

3-
export const Mdx = () => (
4-
<svg
5-
role="img"
6-
aria-label="MDX"
7-
className="icon icon-mdx"
8-
viewBox="0 0 138 57"
9-
width={69}
10-
height={28.5}
11-
>
12-
<title>MDX</title>
13-
<g>
14-
<rect
15-
width="136.5"
16-
height="55.5"
17-
x=".75"
18-
y=".75"
19-
rx="4.5"
20-
fill="currentColor"
21-
/>
22-
<g fill="none" stroke="var(--bg)" strokeWidth="6">
23-
<path d="M16.5 44V19L30.25 32.75l14-14v25" />
24-
<path d="M70.5 40V10.75" />
25-
<path d="M57 27.25L70.5 40.75l13.5-13.5" />
26-
<path d="M122.5 41.24L93.25 12M93.5 41.25L122.75 12" />
3+
export function Mdx() {
4+
return (
5+
<svg
6+
role="img"
7+
aria-label="MDX"
8+
className="icon icon-mdx"
9+
viewBox="0 0 138 57"
10+
width={69}
11+
height={28.5}
12+
>
13+
<title>MDX</title>
14+
<g>
15+
<rect
16+
width="136.5"
17+
height="55.5"
18+
x=".75"
19+
y=".75"
20+
rx="4.5"
21+
fill="currentColor"
22+
/>
23+
<g fill="none" stroke="var(--bg)" strokeWidth="6">
24+
<path d="M16.5 44V19L30.25 32.75l14-14v25" />
25+
<path d="M70.5 40V10.75" />
26+
<path d="M57 27.25L70.5 40.75l13.5-13.5" />
27+
<path d="M122.5 41.24L93.25 12M93.5 41.25L122.75 12" />
28+
</g>
2729
</g>
28-
</g>
29-
</svg>
30-
)
30+
</svg>
31+
)
32+
}
Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
import React from 'react'
22

3-
export const OpenCollective = () => (
4-
<svg
5-
role="img"
6-
aria-label="OpenCollective"
7-
className="icon icon-opencollective"
8-
viewBox="0 0 40 40"
9-
width={18}
10-
height={18}
11-
>
12-
<title>OpenCollective</title>
13-
<path
14-
fill="currentcolor"
15-
d="M32.779 19.921a13.09 13.09 0 01-1.989 6.938l5.13 5.151c2.512-3.364 4.082-7.569 4.082-12.089 0-4.52-1.57-8.725-4.083-12.09l-5.129 5.152c1.256 1.997 1.989 4.31 1.989 6.938z"
16-
/>
17-
<path
18-
fill="currentcolor"
19-
d="M20.014 32.746c-7.014 0-12.771-5.782-12.771-12.825 0-7.043 5.757-12.825 12.77-12.825 2.618 0 4.92.736 6.91 2.102l5.129-5.15c-3.35-2.524-7.537-4.1-12.038-4.1C9.022-.053.02 8.882.02 20.025.02 31.17 9.022 40 20.014 40c4.605 0 8.793-1.577 12.142-4.1l-5.129-5.151c-1.989 1.261-4.396 1.997-7.013 1.997z"
20-
/>
21-
</svg>
22-
)
3+
export function OpenCollective() {
4+
return (
5+
<svg
6+
role="img"
7+
aria-label="OpenCollective"
8+
className="icon icon-opencollective"
9+
viewBox="0 0 40 40"
10+
width={18}
11+
height={18}
12+
>
13+
<title>OpenCollective</title>
14+
<path
15+
fill="currentcolor"
16+
d="M32.779 19.921a13.09 13.09 0 01-1.989 6.938l5.13 5.151c2.512-3.364 4.082-7.569 4.082-12.089 0-4.52-1.57-8.725-4.083-12.09l-5.129 5.152c1.256 1.997 1.989 4.31 1.989 6.938z"
17+
/>
18+
<path
19+
fill="currentcolor"
20+
d="M20.014 32.746c-7.014 0-12.771-5.782-12.771-12.825 0-7.043 5.757-12.825 12.77-12.825 2.618 0 4.92.736 6.91 2.102l5.129-5.15c-3.35-2.524-7.537-4.1-12.038-4.1C9.022-.053.02 8.882.02 20.025.02 31.17 9.022 40 20.014 40c4.605 0 8.793-1.577 12.142-4.1l-5.129-5.151c-1.989 1.261-4.396 1.997-7.013 1.997z"
21+
/>
22+
</svg>
23+
)
24+
}
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
import React from 'react'
22

3-
export const Twitter = () => (
4-
<svg
5-
role="img"
6-
aria-label="Twitter"
7-
className="icon icon-twitter"
8-
viewBox="0 0 18 14"
9-
width={18}
10-
height={18}
11-
>
12-
<title>Twitter</title>
13-
<path
14-
fill="currentcolor"
15-
d="M18 1.684l-1.687 1.684v.28c0 .307-.05.602-.123.886-.04 2.316-.777 5.387-3.816 7.81C6.404 17.115 0 12.907 0 12.907c5.063 0 5.063-1.684 5.063-1.684-1.126 0-3.376-2.243-3.376-2.243.563.56 1.689 0 1.689 0C.56 7.295.56 5.61.56 5.61c.563.561 1.689 0 1.689 0C-.563 3.368 1.124.561 1.124.561 1.687 3.368 9 4.49 9 4.49l.093-.046A6.637 6.637 0 0 1 9 3.368C9 1.353 10.636 0 12.656 0c1.112 0 2.094.506 2.765 1.286l.329-.163L17.437 0l-1.122 2.245L18 1.684z"
16-
/>
17-
</svg>
18-
)
3+
export function Twitter() {
4+
return (
5+
<svg
6+
role="img"
7+
aria-label="Twitter"
8+
className="icon icon-twitter"
9+
viewBox="0 0 18 14"
10+
width={18}
11+
height={18}
12+
>
13+
<title>Twitter</title>
14+
<path
15+
fill="currentcolor"
16+
d="M18 1.684l-1.687 1.684v.28c0 .307-.05.602-.123.886-.04 2.316-.777 5.387-3.816 7.81C6.404 17.115 0 12.907 0 12.907c5.063 0 5.063-1.684 5.063-1.684-1.126 0-3.376-2.243-3.376-2.243.563.56 1.689 0 1.689 0C.56 7.295.56 5.61.56 5.61c.563.561 1.689 0 1.689 0C-.563 3.368 1.124.561 1.124.561 1.687 3.368 9 4.49 9 4.49l.093-.046A6.637 6.637 0 0 1 9 3.368C9 1.353 10.636 0 12.656 0c1.112 0 2.094.506 2.765 1.286l.329-.163L17.437 0l-1.122 2.245L18 1.684z"
17+
/>
18+
</svg>
19+
)
20+
}

0 commit comments

Comments
 (0)