Skip to content

Commit 0e6dd7a

Browse files
committed
Update dev-dependencies
1 parent b9b37b6 commit 0e6dd7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1913
-1883
lines changed

docs/_asset/editor.jsx

+18-18
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
* @typedef {import('mdast-util-mdx-jsx').MdxJsxAttributeValueExpression} MdxJsxAttributeValueExpression
1313
* @typedef {import('mdast-util-mdx-jsx').MdxJsxExpressionAttribute} MdxJsxExpressionAttribute
1414
* @typedef {import('mdx/types.js').MDXModule} MDXModule
15-
* @typedef {import('react-error-boundary').FallbackProps} FallbackProps
15+
* @typedef {import('react-error-boundary').FallbackProps} FallbackProperties
1616
* @typedef {import('unified').PluggableList} PluggableList
1717
* @typedef {import('unist').Node} UnistNode
1818
*/
1919

2020
/**
21-
* @typedef DisplayProps
22-
* Props.
21+
* @typedef DisplayProperties
22+
* Properties.
2323
* @property {Error} error
2424
* Error.
2525
*
@@ -204,7 +204,7 @@ function Playground() {
204204

205205
if (show === 'result') {
206206
/** @type {MDXModule} */
207-
const mod = await run(String(file), {
207+
const result = await run(String(file), {
208208
...runtime,
209209
baseUrl: window.location.href
210210
})
@@ -214,7 +214,7 @@ function Playground() {
214214
FallbackComponent={ErrorFallback}
215215
resetKeys={[value]}
216216
>
217-
<div className="playground-result">{mod.default({})}</div>
217+
<div className="playground-result">{result.default({})}</div>
218218
</ErrorBoundary>
219219
)
220220
}
@@ -567,39 +567,39 @@ function Playground() {
567567

568568
/**
569569
*
570-
* @param {Readonly<FallbackProps>} props
571-
* Props.
570+
* @param {Readonly<FallbackProperties>} properties
571+
* Properties.
572572
* @returns {JSX.Element}
573573
* Element.
574574
*/
575-
function ErrorFallback(props) {
575+
function ErrorFallback(properties) {
576576
// type-coverage:ignore-next-line
577-
const error = /** @type {Error} */ (props.error)
577+
const error = /** @type {Error} */ (properties.error)
578578
return (
579579
<div role="alert">
580580
<p>Something went wrong:</p>
581581
<DisplayError error={error} />
582-
<button type="button" onClick={props.resetErrorBoundary}>
582+
<button type="button" onClick={properties.resetErrorBoundary}>
583583
Try again
584584
</button>
585585
</div>
586586
)
587587
}
588588

589589
/**
590-
* @param {DisplayProps} props
591-
* Props.
590+
* @param {DisplayProperties} properties
591+
* Properties.
592592
* @returns {JSX.Element}
593593
* Element.
594594
*/
595-
function DisplayError(props) {
595+
function DisplayError(properties) {
596596
return (
597597
<pre>
598598
<code>
599599
{String(
600-
props.error.stack
601-
? props.error.message + '\n' + props.error.stack
602-
: props.error
600+
properties.error.stack
601+
? properties.error.message + '\n' + properties.error.stack
602+
: properties.error
603603
)}
604604
</code>
605605
</pre>
@@ -638,8 +638,8 @@ function cleanUnistNode(node) {
638638
node.attributes &&
639639
Array.isArray(node.attributes)
640640
) {
641-
for (const attr of node.attributes) {
642-
cleanUnistNode(attr)
641+
for (const attribute of node.attributes) {
642+
cleanUnistNode(attribute)
643643
}
644644
}
645645

docs/_component/blog.jsx

+17-12
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*/
44

55
/**
6-
* @typedef EntryProps
7-
* Props for `BlogEntry`.
6+
* @typedef EntryProperties
7+
* Properties for `BlogEntry`.
88
* @property {Readonly<Item>} item
99
* Item.
1010
*
11-
* @typedef GroupProps
12-
* Props for `BlogGroup`.
11+
* @typedef GroupProperties
12+
* Properties for `BlogGroup`.
1313
* @property {string | undefined} [className]
1414
* Class name.
1515
* @property {ReadonlyArray<Item>} items
@@ -30,13 +30,13 @@ const runtime = {Fragment, jsx, jsxs}
3030
const dateTimeFormat = new Intl.DateTimeFormat('en', {dateStyle: 'long'})
3131

3232
/**
33-
* @param {Readonly<EntryProps>} props
34-
* Props.
33+
* @param {Readonly<EntryProperties>} properties
34+
* Properties.
3535
* @returns {JSX.Element}
3636
* Element.
3737
*/
38-
export function BlogEntry(props) {
39-
const {item} = props
38+
export function BlogEntry(properties) {
39+
const {item} = properties
4040
const {data, name} = item
4141
const {matter = {}, meta = {}} = data
4242
const title = matter.title || meta.title
@@ -106,13 +106,18 @@ export function BlogEntry(props) {
106106
}
107107

108108
/**
109-
* @param {Readonly<GroupProps>} props
110-
* Props.
109+
* @param {Readonly<GroupProperties>} properties
110+
* Properties.
111111
* @returns {JSX.Element}
112112
* Element.
113113
*/
114-
export function BlogGroup(props) {
115-
const {className, items, sort = 'navSortSelf,meta.title', ...rest} = props
114+
export function BlogGroup(properties) {
115+
const {
116+
className,
117+
items,
118+
sort = 'navSortSelf,meta.title',
119+
...rest
120+
} = properties
116121
const sorted = sortItems(items, sort)
117122

118123
return (

docs/_component/home.jsx

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,34 @@
77
/**
88
* @typedef {Exclude<DataMeta, undefined>} Meta
99
*
10-
* @typedef Props
11-
* Props.
10+
* @typedef Properties
11+
* Properties.
1212
* @property {string} name
1313
* Name.
1414
* @property {ReactNode} children
1515
* Children.
16-
* @property {Item} navTree
16+
* @property {Item} navigationTree
1717
* Navigation tree.
1818
* @property {Meta} meta
1919
* Meta.
2020
*/
2121

2222
import React from 'react'
2323
import {FootSite} from './foot-site.jsx'
24-
import {NavSite, NavSiteSkip} from './nav-site.jsx'
24+
import {NavigationSite, NavigationSiteSkip} from './nav-site.jsx'
2525

2626
/**
27-
* @param {Readonly<Props>} props
28-
* Props.
27+
* @param {Readonly<Properties>} properties
28+
* Properties.
2929
* @returns {JSX.Element}
3030
* Element.
3131
*/
32-
export function Home(props) {
33-
const {children, meta, name, navTree} = props
32+
export function Home(properties) {
33+
const {children, meta, name, navigationTree} = properties
3434

3535
return (
3636
<div className="page home">
37-
<NavSiteSkip />
37+
<NavigationSiteSkip />
3838
<main>
3939
{meta.schemaOrg ? (
4040
<script type="application/ld+json">
@@ -46,7 +46,7 @@ export function Home(props) {
4646
</article>
4747
<FootSite />
4848
</main>
49-
<NavSite name={name} navTree={navTree} />
49+
<NavigationSite name={name} navigationTree={navigationTree} />
5050
</div>
5151
)
5252
}

docs/_component/layout.jsx

+26-22
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,48 @@
44
*/
55

66
/**
7-
* @typedef Props
8-
* Props.
7+
* @typedef Properties
8+
* Properties.
99
* @property {string} name
1010
* Name.
1111
* @property {Readonly<URL>} ghUrl
1212
* GitHub URL.
1313
* @property {Readonly<DataMeta> | undefined} [meta]
1414
* Meta.
15-
* @property {Readonly<Item>} navTree
15+
* @property {Readonly<Item>} navigationTree
1616
* Navigation tree.
1717
* @property {JSX.Element} children
1818
* Children.
1919
*/
2020

2121
import React from 'react'
2222
import {FootSite} from './foot-site.jsx'
23-
import {NavSite, NavSiteSkip} from './nav-site.jsx'
23+
import {NavigationSite, NavigationSiteSkip} from './nav-site.jsx'
2424
import {sortItems} from './sort.js'
2525

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

2828
/**
29-
* @param {Readonly<Props>} props
30-
* Props.
29+
* @param {Readonly<Properties>} properties
30+
* Properties.
3131
* @returns {JSX.Element}
3232
* Element.
3333
*/
34-
export function Layout(props) {
35-
const {ghUrl, name, navTree} = props
36-
const [self, parent] = findSelfAndParent(navTree) || []
37-
const navSortItems = parent ? parent.data.navSortItems : undefined
34+
export function Layout(properties) {
35+
const {ghUrl, name, navigationTree} = properties
36+
const [self, parent] = findSelfAndParent(navigationTree) || []
37+
const navigationSortItems = parent
38+
? parent.data.navigationSortItems
39+
: undefined
3840
const siblings = parent
3941
? sortItems(
4042
parent.children,
41-
typeof navSortItems === 'string' ? navSortItems : undefined
43+
typeof navigationSortItems === 'string'
44+
? navigationSortItems
45+
: undefined
4246
)
4347
: []
44-
const meta = (self ? self.data.meta : props.meta) || {}
48+
const meta = (self ? self.data.meta : properties.meta) || {}
4549
const index = self ? siblings.indexOf(self) : -1
4650
const previous = index === -1 ? undefined : siblings[index - 1]
4751
const next = index === -1 ? undefined : siblings[index + 1]
@@ -50,10 +54,10 @@ export function Layout(props) {
5054
self
5155
? accumulateReadingTime(self)
5256
: meta.readingTime
53-
? Array.isArray(meta.readingTime)
54-
? meta.readingTime
55-
: [meta.readingTime, meta.readingTime]
56-
: []
57+
? Array.isArray(meta.readingTime)
58+
? meta.readingTime
59+
: [meta.readingTime, meta.readingTime]
60+
: []
5761
).map(function (d) {
5862
return d > 15 ? Math.round(d / 5) * 5 : Math.ceil(d)
5963
})
@@ -67,7 +71,7 @@ export function Layout(props) {
6771
}
6872

6973
const up =
70-
parent && self && parent !== navTree ? (
74+
parent && self && parent !== navigationTree ? (
7175
<div>
7276
<a href={parent.name}>{entryToTitle(parent)}</a>
7377
{' / '}
@@ -140,8 +144,8 @@ export function Layout(props) {
140144
const href = d.github
141145
? 'https://github.com/' + d.github
142146
: d.twitter
143-
? 'https://twitter.com/' + d.twitter
144-
: d.url || undefined
147+
? 'https://twitter.com/' + d.twitter
148+
: d.url || undefined
145149
return (
146150
<span key={d.name}>
147151
{i ? ', ' : ''}
@@ -187,15 +191,15 @@ export function Layout(props) {
187191

188192
return (
189193
<div className="page doc">
190-
<NavSiteSkip />
194+
<NavigationSiteSkip />
191195
<main>
192196
<article>
193197
{header ? (
194198
<header className="content">
195199
<div className="block head-article">{header}</div>
196200
</header>
197201
) : undefined}
198-
<div className="content body">{props.children}</div>
202+
<div className="content body">{properties.children}</div>
199203
{footer || tail ? (
200204
<footer className="content">
201205
<div className="block foot-article">
@@ -207,7 +211,7 @@ export function Layout(props) {
207211
</article>
208212
<FootSite />
209213
</main>
210-
<NavSite name={name} navTree={navTree} />
214+
<NavigationSite name={name} navigationTree={navigationTree} />
211215
</div>
212216
)
213217

docs/_component/nav-site.jsx

+11-11
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
*/
44

55
/**
6-
* @typedef Props
7-
* Props.
6+
* @typedef Properties
7+
* Properties.
88
* @property {string} name
99
* Name.
10-
* @property {Readonly<Item>} navTree
10+
* @property {Readonly<Item>} navigationTree
1111
* Navigation tree.
1212
*/
1313

@@ -17,9 +17,9 @@ import {GitHub} from './icon/github.jsx'
1717
import {Mdx} from './icon/mdx.jsx'
1818
import {OpenCollective} from './icon/open-collective.jsx'
1919
import {Twitter} from './icon/twitter.jsx'
20-
import {NavGroup} from './nav.jsx'
20+
import {NavigationGroup} from './nav.jsx'
2121

22-
export function NavSiteSkip() {
22+
export function NavigationSiteSkip() {
2323
return (
2424
<a
2525
href="#start-of-navigation"
@@ -32,13 +32,13 @@ export function NavSiteSkip() {
3232
}
3333

3434
/**
35-
* @param {Readonly<Props>} props
36-
* Props.
35+
* @param {Readonly<Properties>} properties
36+
* Properties.
3737
* @returns {JSX.Element}
3838
* Element.
3939
*/
40-
export function NavSite(props) {
41-
const {name, navTree} = props
40+
export function NavigationSite(properties) {
41+
const {name, navigationTree} = properties
4242

4343
return (
4444
<nav className="navigation" aria-label="Site navigation">
@@ -57,9 +57,9 @@ export function NavSite(props) {
5757
</h1>
5858
</a>
5959
</div>
60-
<NavGroup
60+
<NavigationGroup
6161
className="navigation-secondary"
62-
items={navTree.children}
62+
items={navigationTree.children}
6363
name={name}
6464
/>
6565
<ol className="navigation-tertiary">

0 commit comments

Comments
 (0)