forked from nodejs/nodejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.mdx.use.mjs
76 lines (74 loc) · 3.53 KB
/
next.mdx.use.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
'use strict';
import DownloadButton from './components/Downloads/DownloadButton';
import DownloadLink from './components/Downloads/DownloadLink';
import DownloadReleasesTable from './components/Downloads/DownloadReleasesTable';
import BitnessDropdown from './components/Downloads/Release/BitnessDropdown';
import BlogPostLink from './components/Downloads/Release/BlogPostLink';
import ChangelogLink from './components/Downloads/Release/ChangelogLink';
import ReleaseDownloadButton from './components/Downloads/Release/DownloadButton';
import NpmLink from './components/Downloads/Release/NpmLink';
import OperatingSystemDropdown from './components/Downloads/Release/OperatingSystemDropdown';
import PlatformDropdown from './components/Downloads/Release/PlatformDropdown';
import ReleaseCodeBox from './components/Downloads/Release/ReleaseCodeBox';
import ReleaseStatus from './components/Downloads/Release/ReleaseStatus';
import ReleaseVersion from './components/Downloads/Release/ReleaseVersion';
import SourceButton from './components/Downloads/Release/SourceButton';
import VerifyingBinariesLink from './components/Downloads/Release/VerifyingBinariesLink';
import VersionDropdown from './components/Downloads/Release/VersionDropdown';
import UpcomingMeetings from './components/MDX/Calendar/UpcomingMeetings';
import SearchPage from './components/MDX/SearchPage';
import WithBadge from './components/withBadge';
import WithBanner from './components/withBanner';
import WithNodeRelease from './components/withNodeRelease';
/**
* A full list of React Components that we want to pass through to MDX
*
* @satisfies {import('mdx/types').MDXComponents}
*/
export const mdxComponents = {
DownloadReleasesTable: DownloadReleasesTable,
// HOC for getting Node.js Release Metadata
WithNodeRelease: WithNodeRelease,
// HOC for providing Banner Data
WithBanner: WithBanner,
// HOC for providing Badge Data
WithBadge: WithBadge,
// Renders a Download Button
DownloadButton: DownloadButton,
// Renders a Download Link
DownloadLink: DownloadLink,
// Renders a Search Page
SearchPage: SearchPage,
// Renders an container for Upcoming Node.js Meetings
UpcomingMeetings: UpcomingMeetings,
// Group of components that enable you to select versions for Node.js
// releases and download selected versions. Uses `releaseProvider` as a provider
Release: {
// Renders a drop-down menu from which the version can select
VersionDropdown: VersionDropdown,
// Renders a drop-down menu from which the platform can select
PlatformDropdown: PlatformDropdown,
// Renders a drop-down menu from which the bitness can select
BitnessDropdown: BitnessDropdown,
// Renders a drop-down menu from which the operating system can select
OperatingSystemDropdown: OperatingSystemDropdown,
// Renders a link to the npm version of the selected release
NpmLink: NpmLink,
// Renders a release version of the selected release
Version: ReleaseVersion,
// Renders a release status of the selected release
Status: ReleaseStatus,
// Renders a Blog Post Link for the selected release
BlogPostLink: BlogPostLink,
// Renders a Verifying Binaries Link
VerifyingBinariesLink: VerifyingBinariesLink,
// Renders a Download Button for the selected release
DownloadButton: ReleaseDownloadButton,
// Renders a Source Download Button for the selected release
SourceButton: SourceButton,
// Renders a Release CodeBox
ReleaseCodeBox: ReleaseCodeBox,
// Renders a Changelog Modal Link Button
ChangelogLink: ChangelogLink,
},
};