@brillout/docpress 0.1.8 → 0.1.10
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.
- package/{src/css/Inter-Var.ttf → dist/Inter-Var-IOAEQULN.ttf} +0 -0
- package/{src/components/Sponsors/companyLogos/ccoli.svg → dist/ccoli-CHW3TQKS.svg} +0 -0
- package/{src/icons/changelog.svg → dist/changelog-IPI5F42D.svg} +0 -0
- package/{src/navigation/navigation-fullscreen/chevron.svg → dist/chevron-K3WPYLOP.svg} +0 -0
- package/{src/components/features/chevron.svg → dist/chevron-R2IYJD62.svg} +0 -0
- package/dist/chunk-3NFN2KUH.js +1 -0
- package/dist/chunk-3NFN2KUH.js.map +1 -0
- package/dist/chunk-G2KXEHNF.js +56 -0
- package/dist/chunk-G2KXEHNF.js.map +1 -0
- package/dist/{cli/chunk-KZROB63P.js → chunk-G6OTZHVA.js} +2 -1
- package/dist/chunk-G6OTZHVA.js.map +1 -0
- package/dist/chunk-JKLALMFU.js +103 -0
- package/dist/chunk-JKLALMFU.js.map +1 -0
- package/dist/chunk-OEVBWUR6.js +92 -0
- package/dist/chunk-OEVBWUR6.js.map +1 -0
- package/dist/chunk-TTLAZ2T2.js +8 -0
- package/dist/chunk-TTLAZ2T2.js.map +1 -0
- package/dist/chunk-UCY72YQS.js +178 -0
- package/dist/chunk-UCY72YQS.js.map +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +4 -2
- package/dist/cli/index.js.map +1 -0
- package/{src/navigation/navigation-fullscreen/close.svg → dist/close-IQXTDOHV.svg} +0 -0
- package/{src/utils/Emoji/compass.svg → dist/compass-2RWQU3E4.svg} +0 -0
- package/{src/components/Sponsors/companyLogos/contra.svg → dist/contra-WLZBOPBV.svg} +0 -0
- package/dist/{cli/devServer.js → devServer-UEJORYCC.js} +3 -1
- package/dist/devServer-UEJORYCC.js.map +1 -0
- package/{src/icons/discord.svg → dist/discord-JD33TUSF.svg} +0 -0
- package/{src/utils/Emoji/engine.png → dist/engine-6Q6VSCVA.png} +0 -0
- package/{src/icons/github.svg → dist/github-P5ZSKN2N.svg} +0 -0
- package/{src/icons/heart.svg → dist/heart-OINVKOXO.svg} +0 -0
- package/dist/index.css +121 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +135 -0
- package/dist/index.js +488 -0
- package/dist/index.js.map +1 -0
- package/{src/components/Sponsors/label.svg → dist/label-MP75CTIA.svg} +0 -0
- package/{src/utils/Emoji/mechanical-arm.svg → dist/mechanical-arm-TR7IQQMG.svg} +0 -0
- package/{src/components/Sponsors/medalBronze.svg → dist/medalBronze-CO4CTUR4.svg} +0 -0
- package/{src/components/Sponsors/medalGold.svg → dist/medalGold-UP6A73FL.svg} +0 -0
- package/{src/components/Sponsors/medalSilver.svg → dist/medalSilver-FAPGGOBN.svg} +0 -0
- package/{src/components/Sponsors/companyLogos/mfqs.svg → dist/mfqs-2EAEE7N6.svg} +0 -0
- package/{src/utils/Emoji/road-fork.svg → dist/road-fork-3WZLW3HB.svg} +0 -0
- package/{src/utils/Emoji/shield.svg → dist/shield-CU45RG5C.svg} +0 -0
- package/{src → dist/src}/components/features/FeatureList.css +2 -7
- package/dist/src/components/features/FeatureList.css.map +1 -0
- package/dist/src/components/features/FeatureList.d.ts +13 -0
- package/dist/src/components/features/FeatureList.js +8 -0
- package/dist/src/components/features/FeatureList.js.map +1 -0
- package/dist/src/components/features/initFeatureList.d.ts +3 -0
- package/dist/src/components/features/initFeatureList.js +60 -0
- package/dist/src/components/features/initFeatureList.js.map +1 -0
- package/dist/src/renderer/_default.page.client.css +272 -0
- package/dist/src/renderer/_default.page.client.css.map +1 -0
- package/dist/src/renderer/_default.page.client.d.ts +1 -0
- package/dist/src/renderer/_default.page.client.js +182 -0
- package/dist/src/renderer/_default.page.client.js.map +1 -0
- package/dist/src/renderer/_default.page.server.css +312 -0
- package/dist/src/renderer/_default.page.server.css.map +1 -0
- package/dist/src/renderer/_default.page.server.d.ts +22 -0
- package/dist/src/renderer/_default.page.server.js +602 -0
- package/dist/src/renderer/_default.page.server.js.map +1 -0
- package/{src/icons/twitter.svg → dist/twitter-I7DXDN3J.svg} +0 -0
- package/{src/utils/Emoji/typescript.svg → dist/typescript-ALIPKLRM.svg} +0 -0
- package/package.json +25 -17
- package/vite.config.ts +10 -4
- package/cli.mjs +0 -2
- package/dist/cli/configFile.js +0 -6
- package/src/MobileHeader.tsx +0 -68
- package/src/PageLayout.css +0 -41
- package/src/PageLayout.tsx +0 -37
- package/src/algolia/DocSearch.css +0 -29
- package/src/algolia/DocSearch.ts +0 -37
- package/src/autoScrollNav.ts +0 -22
- package/src/components/CodeBlock.tsx +0 -22
- package/src/components/DocLink.tsx +0 -108
- package/src/components/EditPageNote.tsx +0 -18
- package/src/components/HorizontalLine.tsx +0 -20
- package/src/components/ImportMeta.tsx +0 -11
- package/src/components/Info.tsx +0 -12
- package/src/components/Link.tsx +0 -18
- package/src/components/Note.tsx +0 -31
- package/src/components/P.css +0 -8
- package/src/components/P.tsx +0 -8
- package/src/components/ReadingRecommendation.tsx +0 -53
- package/src/components/RepoLink.tsx +0 -24
- package/src/components/Sponsors/companyLogos/ccoli-logo.svg +0 -1
- package/src/components/Sponsors/companyLogos/ccoli-text.svg +0 -1
- package/src/components/Sponsors/label.draft.svg +0 -108
- package/src/components/Sponsors.tsx +0 -243
- package/src/components/features/FeatureList.tsx +0 -114
- package/src/components/features/initFeatureList.ts +0 -66
- package/src/components/index.ts +0 -13
- package/src/config/Config.ts +0 -30
- package/src/config/getConfig.ts +0 -18
- package/src/config/resolveConfig/resolveHeading.ts +0 -0
- package/src/config/resolvePageContext.ts +0 -157
- package/src/css/button.css +0 -7
- package/src/css/code/block.css +0 -36
- package/src/css/code/inline.css +0 -27
- package/src/css/code.css +0 -20
- package/src/css/colorize-on-hover.css +0 -29
- package/src/css/font.css +0 -19
- package/src/css/heading.css +0 -25
- package/src/css/index.css +0 -10
- package/src/css/link.css +0 -17
- package/src/css/note.css +0 -26
- package/src/css/reset.css +0 -12
- package/src/css/table.css +0 -14
- package/src/css/tooltip.css +0 -11
- package/src/headings.ts +0 -201
- package/src/index.ts +0 -3
- package/src/installSectionUrlHashs.ts +0 -50
- package/src/navigation/Navigation-highlight.css +0 -41
- package/src/navigation/Navigation-items.css +0 -122
- package/src/navigation/Navigation-layout.css +0 -118
- package/src/navigation/Navigation.client.old.ts +0 -303
- package/src/navigation/Navigation.client.ts +0 -19
- package/src/navigation/Navigation.css +0 -12
- package/src/navigation/Navigation.tsx +0 -229
- package/src/navigation/NavigationHeader.tsx +0 -97
- package/src/navigation/navigation-fullscreen/NavigationFullscreenButton.css +0 -32
- package/src/navigation/navigation-fullscreen/NavigationFullscreenButton.tsx +0 -44
- package/src/navigation/navigation-fullscreen/initNavigationFullscreen.ts +0 -115
- package/src/parseEmojis.ts +0 -33
- package/src/renderer/_default.page.client.ts +0 -7
- package/src/renderer/_default.page.server.tsx +0 -69
- package/src/renderer/usePageContext.tsx +0 -25
- package/src/types.ts +0 -2
- package/src/utils/Emoji/Emoji.ts +0 -216
- package/src/utils/Emoji/assets.ts +0 -9
- package/src/utils/Emoji/index.ts +0 -1
- package/src/utils/Emoji/mountain.svg +0 -1
- package/src/utils/assert.ts +0 -39
- package/src/utils/determineSectionUrlHash.ts +0 -35
- package/src/utils/filter.ts +0 -12
- package/src/utils/index.ts +0 -6
- package/src/utils/isBrowser.ts +0 -5
- package/src/utils/jsxToTextContent.ts +0 -11
- package/src/utils/objectAssign.ts +0 -9
package/dist/index.css
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* src/components/P.css */
|
|
2
|
+
div.paragraph {
|
|
3
|
+
display: block;
|
|
4
|
+
margin-block-start: 1em;
|
|
5
|
+
margin-block-end: 1em;
|
|
6
|
+
margin-inline-start: 0px;
|
|
7
|
+
margin-inline-end: 0px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* src/components/features/FeatureList.css */
|
|
11
|
+
@media screen and (min-width: 840px) {
|
|
12
|
+
.features-row {
|
|
13
|
+
display: grid;
|
|
14
|
+
grid-template-columns: repeat(2, 1fr);
|
|
15
|
+
}
|
|
16
|
+
.features-row summary:nth-of-type(1) {
|
|
17
|
+
grid-row: 1;
|
|
18
|
+
grid-column: 1 / 2;
|
|
19
|
+
}
|
|
20
|
+
.features-row summary:nth-of-type(2) {
|
|
21
|
+
grid-row: 1;
|
|
22
|
+
grid-column: 2 / 3;
|
|
23
|
+
}
|
|
24
|
+
.features-row aside {
|
|
25
|
+
grid-row: 2;
|
|
26
|
+
grid-column: 1 / 3;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
@media screen and (min-width: 840px) {
|
|
30
|
+
.features-row.single-column .feature {
|
|
31
|
+
grid-column: 1 / span 2 !important;
|
|
32
|
+
width: 100% !important;
|
|
33
|
+
max-width: calc(1010px / 2) !important;
|
|
34
|
+
margin: auto !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
#features {
|
|
38
|
+
margin: auto;
|
|
39
|
+
margin-top: 0;
|
|
40
|
+
max-width: 1080px;
|
|
41
|
+
}
|
|
42
|
+
#features summary p {
|
|
43
|
+
margin: 10px 0;
|
|
44
|
+
}
|
|
45
|
+
#features h2 {
|
|
46
|
+
margin-bottom: 0.7em;
|
|
47
|
+
margin-top: 0.5em;
|
|
48
|
+
}
|
|
49
|
+
#features .secondary-feature h2 {
|
|
50
|
+
font-size: 1.1em;
|
|
51
|
+
margin-bottom: 0.7em;
|
|
52
|
+
}
|
|
53
|
+
.learn-more h3:first-of-type {
|
|
54
|
+
margin-top: 15px;
|
|
55
|
+
}
|
|
56
|
+
.learn-more {
|
|
57
|
+
border: var(--border-width) solid var(--border-color);
|
|
58
|
+
padding: 10px 8px;
|
|
59
|
+
}
|
|
60
|
+
@media screen and (min-width: 840px) {
|
|
61
|
+
.learn-more {
|
|
62
|
+
max-width: 886px;
|
|
63
|
+
border-radius: var(--border-radius);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
aside.learn-more:not(.right-side) {
|
|
67
|
+
border-top-left-radius: 0;
|
|
68
|
+
}
|
|
69
|
+
aside.learn-more.right-side {
|
|
70
|
+
border-top-right-radius: 0;
|
|
71
|
+
justify-self: end;
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
@media screen and (max-width: 340px) {
|
|
75
|
+
.learn-more {
|
|
76
|
+
padding-right: 5px;
|
|
77
|
+
padding-left: 5px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.learn-more {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
.learn-more.selected {
|
|
84
|
+
display: block;
|
|
85
|
+
}
|
|
86
|
+
#features {
|
|
87
|
+
--border-radius: 20px;
|
|
88
|
+
--border-width: 10px;
|
|
89
|
+
--border-color: #f6f6f6;
|
|
90
|
+
}
|
|
91
|
+
.feature {
|
|
92
|
+
padding: 8px;
|
|
93
|
+
border-width: var(--border-width);
|
|
94
|
+
border-style: solid;
|
|
95
|
+
border-color: transparent;
|
|
96
|
+
border-top-left-radius: var(--border-radius);
|
|
97
|
+
border-top-right-radius: var(--border-radius);
|
|
98
|
+
}
|
|
99
|
+
.selected {
|
|
100
|
+
border-color: var(--border-color);
|
|
101
|
+
background-color: #fcfcfc;
|
|
102
|
+
}
|
|
103
|
+
.feature.selected {
|
|
104
|
+
border-bottom: 0 !important;
|
|
105
|
+
z-index: 1;
|
|
106
|
+
}
|
|
107
|
+
.learn-more {
|
|
108
|
+
position: relative;
|
|
109
|
+
top: calc(-1 * var(--border-width));
|
|
110
|
+
}
|
|
111
|
+
.feature {
|
|
112
|
+
position: relative;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
}
|
|
115
|
+
.feature .chevron {
|
|
116
|
+
transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out !important;
|
|
117
|
+
}
|
|
118
|
+
.feature.selected .chevron {
|
|
119
|
+
transform: rotate(180deg);
|
|
120
|
+
}
|
|
121
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/P.css","../src/components/features/FeatureList.css"],"sourcesContent":["/* Copied from Chrome's user agent stylesheet */\ndiv.paragraph {\n display: block;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n}\n","@media screen and (min-width: 840px) {\n .features-row {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n }\n .features-row summary:nth-of-type(1) {\n grid-row: 1;\n grid-column: 1 / 2;\n }\n .features-row summary:nth-of-type(2) {\n grid-row: 1;\n grid-column: 2 / 3;\n }\n .features-row aside {\n grid-row: 2;\n grid-column: 1 / 3;\n }\n}\n\n@media screen and (min-width: 840px) {\n .features-row.single-column .feature {\n grid-column: 1 / span 2 !important;\n width: 100% !important;\n max-width: calc(1010px / 2) !important;\n margin: auto !important;\n }\n}\n\n#features {\n margin: auto;\n margin-top: 0;\n max-width: 1080px;\n}\n\n#features summary p {\n margin: 10px 0;\n}\n#features h2 {\n margin-bottom: 0.7em;\n margin-top: 0.5em;\n}\n#features .secondary-feature h2 {\n font-size: 1.1em;\n margin-bottom: 0.7em;\n}\n.learn-more h3:first-of-type {\n margin-top: 15px;\n}\n\n.learn-more {\n border: var(--border-width) solid var(--border-color);\n padding: 10px 8px;\n}\n@media screen and (min-width: 840px) {\n .learn-more {\n max-width: 886px;\n border-radius: var(--border-radius);\n }\n}\naside.learn-more:not(.right-side) {\n border-top-left-radius: 0;\n}\naside.learn-more.right-side {\n border-top-right-radius: 0;\n justify-self: end;\n width: 100%;\n}\n@media screen and (max-width: 340px) {\n .learn-more {\n padding-right: 5px;\n padding-left: 5px;\n }\n}\n.learn-more {\n display: none;\n}\n.learn-more.selected {\n display: block;\n}\n#features {\n --border-radius: 20px;\n --border-width: 10px;\n --border-color: #f6f6f6;\n}\n.feature {\n padding: 8px;\n border-width: var(--border-width);\n border-style: solid;\n border-color: transparent;\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n}\n.selected {\n border-color: var(--border-color);\n background-color: #fcfcfc;\n}\n.feature.selected {\n border-bottom: 0 !important;\n z-index: 1;\n}\n\n/* Hide top border of .learn-more */\n.learn-more {\n position: relative;\n top: calc(-1 * var(--border-width));\n}\n.feature {\n position: relative;\n z-index: 1;\n}\n\n.feature .chevron {\n transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out !important;\n}\n.feature.selected .chevron {\n transform: rotate(180deg);\n}\n"],"mappings":";AACA;AACE;AACA;AACA;AACA;AACA;AAAA;;;ACNF;AACE;AACE;AACA;AAAA;AAEF;AACE;AACA;AAAA;AAEF;AACE;AACA;AAAA;AAEF;AACE;AACA;AAAA;AAAA;AAIJ;AACE;AACE;AACA;AACA;AACA;AAAA;AAAA;AAIJ;AACE;AACA;AACA;AAAA;AAGF;AACE;AAAA;AAEF;AACE;AACA;AAAA;AAEF;AACE;AACA;AAAA;AAEF;AACE;AAAA;AAGF;AACE;AACA;AAAA;AAEF;AACE;AACE;AACA;AAAA;AAAA;AAGJ;AACE;AAAA;AAEF;AACE;AACA;AACA;AAAA;AAEF;AACE;AACE;AACA;AAAA;AAAA;AAGJ;AACE;AAAA;AAEF;AACE;AAAA;AAEF;AACE;AACA;AACA;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AAAA;AAEF;AACE;AACA;AAAA;AAEF;AACE;AACA;AAAA;AAIF;AACE;AACA;AAAA;AAEF;AACE;AACA;AAAA;AAGF;AACE;AAAA;AAEF;AACE;AAAA;","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import React$1 from 'react';
|
|
2
|
+
export { FeatureList } from './src/components/features/FeatureList.js';
|
|
3
|
+
|
|
4
|
+
declare type EmojiName = 'warning' | 'typescript' | 'shield' | 'mechanical-arm' | 'mountain' | 'rocket' | 'wrench' | 'compass' | 'seedling' | 'books' | 'plug' | 'earth' | 'gear' | 'red-heart' | 'high-voltage' | 'gem-stone' | 'dizzy' | 'sparkles' | 'writing-hang' | 'road-fork' | 'engine' | 'red-circle' | 'sparkling-heart' | 'gift' | 'package' | 'info' | 'lab' | 'trophy';
|
|
5
|
+
declare function Emoji({ name, style }: {
|
|
6
|
+
name: EmojiName;
|
|
7
|
+
style?: React$1.CSSProperties;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
|
|
10
|
+
declare type HeadingWithoutLink = {
|
|
11
|
+
url: string;
|
|
12
|
+
title: string | JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
declare type HeadingDefinition = HeadingBase & (({
|
|
15
|
+
level: 1;
|
|
16
|
+
titleEmoji: EmojiName;
|
|
17
|
+
} & HeadingAbstract) | ({
|
|
18
|
+
level: 4;
|
|
19
|
+
} & HeadingAbstract) | {
|
|
20
|
+
level: 2;
|
|
21
|
+
isListTitle?: true;
|
|
22
|
+
sectionTitles?: string[];
|
|
23
|
+
url: string;
|
|
24
|
+
} | {
|
|
25
|
+
level: 3;
|
|
26
|
+
url: string;
|
|
27
|
+
});
|
|
28
|
+
declare type HeadingBase = {
|
|
29
|
+
title: string;
|
|
30
|
+
level: number;
|
|
31
|
+
url?: string;
|
|
32
|
+
titleDocument?: string;
|
|
33
|
+
titleInNav?: string;
|
|
34
|
+
};
|
|
35
|
+
declare type HeadingAbstract = {
|
|
36
|
+
url?: undefined;
|
|
37
|
+
titleDocument?: undefined;
|
|
38
|
+
titleInNav?: undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
declare type Config = {
|
|
42
|
+
projectInfo: {
|
|
43
|
+
githubRepository: string;
|
|
44
|
+
githubIssues: string;
|
|
45
|
+
projectName: string;
|
|
46
|
+
projectNameJsx?: JSX.Element;
|
|
47
|
+
projectVersion: string;
|
|
48
|
+
discordInvite: string;
|
|
49
|
+
twitterProfile: string;
|
|
50
|
+
};
|
|
51
|
+
faviconUrl: string;
|
|
52
|
+
algolia: null | {
|
|
53
|
+
appId: string;
|
|
54
|
+
apiKey: string;
|
|
55
|
+
indexName: string;
|
|
56
|
+
};
|
|
57
|
+
headings: HeadingDefinition[];
|
|
58
|
+
headingsWithoutLink: HeadingWithoutLink[];
|
|
59
|
+
navHeaderMobile: React.ReactNode;
|
|
60
|
+
navHeader: React.ReactNode;
|
|
61
|
+
titleNormalCase: boolean;
|
|
62
|
+
tagline: string;
|
|
63
|
+
websiteUrl: string;
|
|
64
|
+
bannerUrl?: string;
|
|
65
|
+
twitterHandle: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
declare function Link(props: {
|
|
69
|
+
href: string;
|
|
70
|
+
text?: string | JSX.Element;
|
|
71
|
+
noBreadcrumb?: true;
|
|
72
|
+
doNotInferSectionTitle?: true;
|
|
73
|
+
}): JSX.Element;
|
|
74
|
+
|
|
75
|
+
declare function DocLink({ href, text, noBreadcrumb, doNotInferSectionTitle }: {
|
|
76
|
+
href: string;
|
|
77
|
+
text?: string | JSX.Element;
|
|
78
|
+
noBreadcrumb?: true;
|
|
79
|
+
doNotInferSectionTitle?: true;
|
|
80
|
+
}): JSX.Element;
|
|
81
|
+
|
|
82
|
+
declare function isRepoLink(href: string): boolean;
|
|
83
|
+
declare function RepoLink({ path, text, editMode }: {
|
|
84
|
+
path: string;
|
|
85
|
+
text?: string | JSX.Element;
|
|
86
|
+
editMode?: true;
|
|
87
|
+
}): JSX.Element;
|
|
88
|
+
|
|
89
|
+
declare function P(props: React$1.HTMLProps<HTMLDivElement>): JSX.Element;
|
|
90
|
+
|
|
91
|
+
declare function Info({ children }: {
|
|
92
|
+
children: React$1.ReactNode;
|
|
93
|
+
}): JSX.Element;
|
|
94
|
+
|
|
95
|
+
declare function ReadingRecommendation({ tour, links }: {
|
|
96
|
+
tour?: true;
|
|
97
|
+
links: string[];
|
|
98
|
+
}): JSX.Element;
|
|
99
|
+
|
|
100
|
+
declare function Note({ type, icon, children }: {
|
|
101
|
+
icon: JSX.Element | string;
|
|
102
|
+
type?: 'error' | 'warning';
|
|
103
|
+
children: JSX.Element;
|
|
104
|
+
}): JSX.Element;
|
|
105
|
+
|
|
106
|
+
declare function ImportMeta({ prop }: {
|
|
107
|
+
prop: string;
|
|
108
|
+
}): JSX.Element;
|
|
109
|
+
|
|
110
|
+
declare function HorizontalLine({ primary }: {
|
|
111
|
+
primary?: true;
|
|
112
|
+
}): JSX.Element;
|
|
113
|
+
|
|
114
|
+
declare function Sponsors(): JSX.Element;
|
|
115
|
+
|
|
116
|
+
declare function CodeBlock({ children, lineBreak }: {
|
|
117
|
+
children: any;
|
|
118
|
+
lineBreak?: true;
|
|
119
|
+
}): JSX.Element;
|
|
120
|
+
|
|
121
|
+
declare function assert(condition: unknown, debugInfo?: unknown): asserts condition;
|
|
122
|
+
declare function assertUsage(condition: unknown, msg: string): asserts condition;
|
|
123
|
+
|
|
124
|
+
declare function isBrowser(): boolean;
|
|
125
|
+
|
|
126
|
+
declare function filter<T extends object>(obj: T, predicate: <K extends keyof T>(value: T[K], key: K) => boolean): T;
|
|
127
|
+
|
|
128
|
+
declare function determineSectionUrlHash(title: string): string;
|
|
129
|
+
declare function determineSectionTitle(urlWithHash: string, titleNormalCase: boolean): string;
|
|
130
|
+
|
|
131
|
+
declare function jsxToTextContent(node: JSX.Element | string): string;
|
|
132
|
+
|
|
133
|
+
declare function objectAssign<Obj extends Object, ObjAddendum>(obj: Obj, objAddendum: ObjAddendum): asserts obj is Obj & ObjAddendum;
|
|
134
|
+
|
|
135
|
+
export { CodeBlock, Config, DocLink, Emoji, EmojiName, HeadingDefinition, HeadingWithoutLink, HorizontalLine, ImportMeta, Info, Link, Note, P, ReadingRecommendation, RepoLink, Sponsors, assert, assertUsage, determineSectionTitle, determineSectionUrlHash, filter, isBrowser, isRepoLink, jsxToTextContent, objectAssign };
|