@brillout/docpress 0.5.38 → 0.5.40-commit-1ba896e
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/MobileHeader.tsx +68 -0
- package/PageLayout.css +42 -0
- package/PageLayout.tsx +39 -0
- package/algolia/DocSearch.css +34 -0
- package/algolia/DocSearch.ts +62 -0
- package/autoScrollNav.ts +36 -0
- package/components/CodeBlockTransformer.css +9 -0
- package/components/CodeBlockTransformer.tsx +18 -0
- package/components/Comment.tsx +7 -0
- package/components/Consulting.tsx +47 -0
- package/components/Contributors.tsx +113 -0
- package/components/EditPageNote.tsx +18 -0
- package/components/HorizontalLine.tsx +20 -0
- package/components/ImportMeta.tsx +11 -0
- package/components/Link.tsx +144 -0
- package/components/Note.css +54 -0
- package/components/Note.tsx +78 -0
- package/components/P.css +8 -0
- package/components/P.tsx +8 -0
- package/components/ReadingRecommendation.tsx +56 -0
- package/components/RepoLink.tsx +24 -0
- package/components/Sponsors/label.draft.svg +108 -0
- package/components/Sponsors.tsx +218 -0
- package/components/Supporters.tsx +136 -0
- package/{dist/components → components}/features/FeatureList.css +10 -2
- package/components/features/FeatureList.tsx +114 -0
- package/components/features/initFeatureList.ts +66 -0
- package/components/index.ts +15 -0
- package/config/getConfig.ts +18 -0
- package/config/resolveConfig/resolveHeading.ts +0 -0
- package/config/resolvePageContext.ts +186 -0
- package/css/button.css +7 -0
- package/css/code/block.css +36 -0
- package/css/code/inline.css +27 -0
- package/css/code.css +20 -0
- package/css/colorize-on-hover.css +29 -0
- package/css/font.css +25 -0
- package/css/heading.css +45 -0
- package/css/index.css +12 -0
- package/css/link.css +17 -0
- package/css/reset.css +12 -0
- package/css/table.css +14 -0
- package/css/tooltip.css +11 -0
- package/data/maintainersList.tsx +92 -0
- package/data/sponsorsList.ts +147 -0
- package/dist/markdownHeadingsVitePlugin.d.ts +13 -0
- package/dist/markdownHeadingsVitePlugin.js +170 -0
- package/dist/utils/assert.d.ts +6 -0
- package/dist/utils/assert.js +48 -0
- package/dist/utils/determineSectionUrlHash.d.ts +4 -0
- package/dist/utils/determineSectionUrlHash.js +38 -0
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.js +32 -0
- package/index.ts +4 -0
- package/installSectionUrlHashs.ts +60 -0
- package/markdownHeadingsVitePlugin.ts +150 -0
- package/navigation/Navigation-highlight.css +41 -0
- package/navigation/Navigation-items.css +119 -0
- package/navigation/Navigation-layout.css +127 -0
- package/navigation/Navigation.client.ts +43 -0
- package/navigation/Navigation.css +3 -0
- package/navigation/Navigation.tsx +211 -0
- package/navigation/NavigationHeader.tsx +111 -0
- package/navigation/navigation-fullscreen/NavigationFullscreenButton.css +32 -0
- package/navigation/navigation-fullscreen/NavigationFullscreenButton.tsx +44 -0
- package/navigation/navigation-fullscreen/initNavigationFullscreen.ts +116 -0
- package/package.json +27 -47
- package/parseEmojis.ts +35 -0
- package/parseTitle.ts +139 -0
- package/renderer/client.ts +4 -0
- package/renderer/onRenderHtml.tsx +69 -0
- package/renderer/usePageContext.tsx +25 -0
- package/tsconfig.json +15 -0
- package/tsconfig.vite-config.json +7 -0
- package/types/Config.ts +46 -0
- package/types/Heading.ts +49 -0
- package/utils/Emoji/Emoji.ts +224 -0
- package/utils/Emoji/assets.ts +9 -0
- package/utils/Emoji/index.ts +1 -0
- package/utils/Emoji/mountain.svg +1 -0
- package/utils/assert.ts +51 -0
- package/utils/client.ts +2 -0
- package/utils/determineSectionUrlHash.ts +44 -0
- package/utils/filesystemPathHandling.ts +42 -0
- package/utils/filter.ts +12 -0
- package/utils/isBrowser.ts +5 -0
- package/utils/jsxToTextContent.ts +11 -0
- package/utils/objectAssign.ts +9 -0
- package/utils/server.ts +7 -0
- package/vite.config.ts +36 -0
- package/bin.js +0 -3
- package/dist/chunk-2ZTPUQGS.js +0 -58
- package/dist/chunk-3QC7HYIF.js +0 -7
- package/dist/chunk-MGOI4AFO.js +0 -165
- package/dist/chunk-NVJING6T.js +0 -91
- package/dist/chunk-QWL3MA4E.js +0 -171
- package/dist/chunk-UN23G34B.js +0 -157
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +0 -34
- package/dist/components/features/FeatureList.d.ts +0 -13
- package/dist/components/features/FeatureList.js +0 -7
- package/dist/components/features/initFeatureList.d.ts +0 -3
- package/dist/components/features/initFeatureList.js +0 -59
- package/dist/devServer-JKH6U5PF.js +0 -36
- package/dist/index.css +0 -120
- package/dist/index.d.ts +0 -225
- package/dist/index.js +0 -949
- package/dist/renderer/_default.page.client.css +0 -318
- package/dist/renderer/_default.page.client.d.ts +0 -1
- package/dist/renderer/_default.page.client.js +0 -218
- package/dist/renderer/_default.page.server.css +0 -310
- package/dist/renderer/_default.page.server.d.ts +0 -22
- package/dist/renderer/_default.page.server.js +0 -665
- package/readme.md +0 -5
- /package/{dist/label-MP75CTIA.svg → components/Sponsors/label.svg} +0 -0
- /package/{dist/medalBronze-CO4CTUR4.svg → components/Sponsors/medalBronze.svg} +0 -0
- /package/{dist/medalGold-UP6A73FL.svg → components/Sponsors/medalGold.svg} +0 -0
- /package/{dist/medalSilver-FAPGGOBN.svg → components/Sponsors/medalSilver.svg} +0 -0
- /package/{dist/chevron-R2IYJD62.svg → components/features/chevron.svg} +0 -0
- /package/{dist/Inter-Var-IOAEQULN.ttf → css/Inter-Var.ttf} +0 -0
- /package/{dist/alignable-B4QZV4X7.svg → data/sponsorsList/companyLogos/alignable.svg} +0 -0
- /package/{dist/bluefin-JQABZFGV.svg → data/sponsorsList/companyLogos/bluefin.svg} +0 -0
- /package/{dist/burdaforward-EUGURYZY.png → data/sponsorsList/companyLogos/burdaforward.png} +0 -0
- /package/{dist/contra-WLZBOPBV.svg → data/sponsorsList/companyLogos/contra.svg} +0 -0
- /package/{dist/ecosia-OYRLTR5T.svg → data/sponsorsList/companyLogos/ecosia.svg} +0 -0
- /package/{dist/inlang-GFRWND6X.png → data/sponsorsList/companyLogos/inlang.png} +0 -0
- /package/{dist/optimizers-SFEZF3NW.svg → data/sponsorsList/companyLogos/optimizers.svg} +0 -0
- /package/{dist/sourcegraph-YR2HADLS.svg → data/sponsorsList/companyLogos/sourcegraph.svg} +0 -0
- /package/{dist/changelog-IPI5F42D.svg → icons/changelog.svg} +0 -0
- /package/{dist/discord-JD33TUSF.svg → icons/discord.svg} +0 -0
- /package/{dist/github-P5ZSKN2N.svg → icons/github.svg} +0 -0
- /package/{dist/heart-OINVKOXO.svg → icons/heart.svg} +0 -0
- /package/{dist/languages-KXPKJFQL.svg → icons/languages.svg} +0 -0
- /package/{dist/people-72KKQHU4.svg → icons/people.svg} +0 -0
- /package/{dist/twitter-I7DXDN3J.svg → icons/twitter.svg} +0 -0
- /package/{dist/chevron-K3WPYLOP.svg → navigation/navigation-fullscreen/chevron.svg} +0 -0
- /package/{dist/close-IQXTDOHV.svg → navigation/navigation-fullscreen/close.svg} +0 -0
- /package/{dist/compass-2RWQU3E4.svg → utils/Emoji/compass.svg} +0 -0
- /package/{dist/engine-6Q6VSCVA.png → utils/Emoji/engine.png} +0 -0
- /package/{dist/mechanical-arm-TR7IQQMG.svg → utils/Emoji/mechanical-arm.svg} +0 -0
- /package/{dist/road-fork-3WZLW3HB.svg → utils/Emoji/road-fork.svg} +0 -0
- /package/{dist/shield-CU45RG5C.svg → utils/Emoji/shield.svg} +0 -0
- /package/{dist/typescript-ALIPKLRM.svg → utils/Emoji/typescript.svg} +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
assert
|
|
3
|
-
} from "../../chunk-2ZTPUQGS.js";
|
|
4
|
-
import "../../chunk-3QC7HYIF.js";
|
|
5
|
-
|
|
6
|
-
// src/components/features/initFeatureList.ts
|
|
7
|
-
addTwitterWidgets();
|
|
8
|
-
addFeatureClickHandlers();
|
|
9
|
-
window.__docpress_hydrationFinished = true;
|
|
10
|
-
function addTwitterWidgets() {
|
|
11
|
-
loadScript("https://platform.twitter.com/widgets.js");
|
|
12
|
-
}
|
|
13
|
-
function addFeatureClickHandlers() {
|
|
14
|
-
const featureEls = Array.from(
|
|
15
|
-
document.getElementById("features").querySelectorAll(".feature.has-learn-more")
|
|
16
|
-
);
|
|
17
|
-
featureEls.forEach((featureEl) => {
|
|
18
|
-
featureEl.onclick = () => {
|
|
19
|
-
expandLearnMore(featureEl);
|
|
20
|
-
};
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function expandLearnMore(featureEl) {
|
|
24
|
-
const featureId = featureEl.id;
|
|
25
|
-
assert(featureId.startsWith("feature-"), { featureId });
|
|
26
|
-
const featureName = featureId.slice("feature-".length);
|
|
27
|
-
const selectedClass = "selected";
|
|
28
|
-
const learnId = "learn-more-" + featureName;
|
|
29
|
-
const learnEl = document.getElementById(learnId);
|
|
30
|
-
assert(learnEl, { learnId });
|
|
31
|
-
const isExpanded = featureEl.classList.contains(selectedClass);
|
|
32
|
-
if (!isExpanded) {
|
|
33
|
-
const rowEl = featureEl.parentNode;
|
|
34
|
-
if (getComputedStyle(rowEl, "display") === "grid") {
|
|
35
|
-
;
|
|
36
|
-
[
|
|
37
|
-
...rowEl.querySelectorAll(".learn-more"),
|
|
38
|
-
...rowEl.querySelectorAll(".feature")
|
|
39
|
-
].forEach((el) => {
|
|
40
|
-
el.classList.remove(selectedClass);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
;
|
|
45
|
-
[featureEl, learnEl].forEach((el) => {
|
|
46
|
-
el.classList.toggle(selectedClass);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function loadScript(scriptUrl) {
|
|
50
|
-
assert(scriptUrl.startsWith("https://"));
|
|
51
|
-
const scriptEl = document.createElement("script");
|
|
52
|
-
scriptEl.src = scriptUrl;
|
|
53
|
-
scriptEl.async = true;
|
|
54
|
-
scriptEl.setAttribute("charset", "utf-8");
|
|
55
|
-
document.getElementsByTagName("head")[0].appendChild(scriptEl);
|
|
56
|
-
}
|
|
57
|
-
function getComputedStyle(el, styleProp) {
|
|
58
|
-
return window.document.defaultView.getComputedStyle(el).getPropertyValue(styleProp);
|
|
59
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
vite_config_default
|
|
3
|
-
} from "./chunk-QWL3MA4E.js";
|
|
4
|
-
import "./chunk-UN23G34B.js";
|
|
5
|
-
import "./chunk-2ZTPUQGS.js";
|
|
6
|
-
import "./chunk-3QC7HYIF.js";
|
|
7
|
-
|
|
8
|
-
// src/cli/devServer.ts
|
|
9
|
-
import express from "express";
|
|
10
|
-
import * as vite from "vite";
|
|
11
|
-
import { renderPage } from "vike/server";
|
|
12
|
-
var viteVersion = vite.version || "2.?.?";
|
|
13
|
-
startServer();
|
|
14
|
-
async function startServer() {
|
|
15
|
-
const app = express();
|
|
16
|
-
const viteDevServer = await vite.createServer({
|
|
17
|
-
...vite_config_default,
|
|
18
|
-
server: { middlewareMode: viteVersion.startsWith("2") ? "ssr" : true }
|
|
19
|
-
});
|
|
20
|
-
app.use(viteDevServer.middlewares);
|
|
21
|
-
app.get("*", async (req, res, next) => {
|
|
22
|
-
const pageContextInit = {
|
|
23
|
-
urlOriginal: req.originalUrl
|
|
24
|
-
};
|
|
25
|
-
const pageContext = await renderPage(pageContextInit);
|
|
26
|
-
if (!pageContext.httpResponse)
|
|
27
|
-
return next();
|
|
28
|
-
const { body, statusCode, headers } = pageContext.httpResponse;
|
|
29
|
-
res.status(statusCode);
|
|
30
|
-
headers.forEach(([name, value]) => res.setHeader(name, value));
|
|
31
|
-
res.send(body);
|
|
32
|
-
});
|
|
33
|
-
const port = 3e3;
|
|
34
|
-
app.listen(port);
|
|
35
|
-
console.log(`Server running at http://localhost:${port}`);
|
|
36
|
-
}
|
package/dist/index.css
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import React$1 from 'react';
|
|
2
|
-
export { FeatureList } from './components/features/FeatureList.js';
|
|
3
|
-
|
|
4
|
-
declare function assert(condition: unknown, debugInfo?: unknown): asserts condition;
|
|
5
|
-
declare function assertUsage(condition: unknown, msg: string): asserts condition;
|
|
6
|
-
declare function assertWarning(condition: unknown, msg: string): asserts condition;
|
|
7
|
-
|
|
8
|
-
declare function isBrowser(): boolean;
|
|
9
|
-
|
|
10
|
-
declare function filter<T extends object>(obj: T, predicate: <K extends keyof T>(value: T[K], key: K) => boolean): T;
|
|
11
|
-
|
|
12
|
-
declare function determineSectionUrlHash(title: string): string | null;
|
|
13
|
-
declare function determineSectionTitle(urlWithHash: string): string;
|
|
14
|
-
|
|
15
|
-
declare function jsxToTextContent(node: JSX.Element | string): string;
|
|
16
|
-
|
|
17
|
-
declare function objectAssign<Obj extends Object, ObjAddendum>(obj: Obj, objAddendum: ObjAddendum): asserts obj is Obj & ObjAddendum;
|
|
18
|
-
|
|
19
|
-
declare function crawlAllFiles(dir: string): Promise<string[]>;
|
|
20
|
-
|
|
21
|
-
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' | 'ribbon';
|
|
22
|
-
declare function Emoji({ name, style }: {
|
|
23
|
-
name: EmojiName;
|
|
24
|
-
style?: React$1.CSSProperties;
|
|
25
|
-
}): JSX.Element;
|
|
26
|
-
|
|
27
|
-
type HeadingDetachedDefinition = {
|
|
28
|
-
url: string;
|
|
29
|
-
title: string | JSX.Element;
|
|
30
|
-
sectionTitles?: string[];
|
|
31
|
-
};
|
|
32
|
-
type HeadingDefinition = HeadingBase & (({
|
|
33
|
-
level: 1;
|
|
34
|
-
titleEmoji: EmojiName;
|
|
35
|
-
} & HeadingAbstract) | ({
|
|
36
|
-
level: 4;
|
|
37
|
-
} & HeadingAbstract) | {
|
|
38
|
-
level: 2;
|
|
39
|
-
sectionTitles?: string[];
|
|
40
|
-
url: null | string;
|
|
41
|
-
} | {
|
|
42
|
-
level: 3;
|
|
43
|
-
url: null | string;
|
|
44
|
-
});
|
|
45
|
-
type HeadingBase = {
|
|
46
|
-
title: string;
|
|
47
|
-
level: number;
|
|
48
|
-
url?: null | string;
|
|
49
|
-
titleDocument?: string;
|
|
50
|
-
titleInNav?: string;
|
|
51
|
-
};
|
|
52
|
-
type HeadingAbstract = {
|
|
53
|
-
url?: undefined;
|
|
54
|
-
titleDocument?: undefined;
|
|
55
|
-
titleInNav?: undefined;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
type Config = {
|
|
59
|
-
projectInfo: {
|
|
60
|
-
githubRepository: string;
|
|
61
|
-
githubIssues: string;
|
|
62
|
-
githubDiscussions?: string;
|
|
63
|
-
projectName: string;
|
|
64
|
-
projectVersion: string;
|
|
65
|
-
discordInvite: string;
|
|
66
|
-
twitterProfile: string;
|
|
67
|
-
};
|
|
68
|
-
faviconUrl: string;
|
|
69
|
-
algolia: null | ({
|
|
70
|
-
PENDING_APPROVAL?: true;
|
|
71
|
-
} & ({
|
|
72
|
-
appId?: undefined;
|
|
73
|
-
apiKey?: undefined;
|
|
74
|
-
indexName?: undefined;
|
|
75
|
-
} | {
|
|
76
|
-
appId: string;
|
|
77
|
-
apiKey: string;
|
|
78
|
-
indexName: string;
|
|
79
|
-
}));
|
|
80
|
-
headings: HeadingDefinition[];
|
|
81
|
-
headingsDetached: HeadingDetachedDefinition[];
|
|
82
|
-
navHeaderMobile: React.ReactNode;
|
|
83
|
-
navHeaderMobileWrapperStyle?: React.CSSProperties;
|
|
84
|
-
navHeader: React.ReactNode;
|
|
85
|
-
navHeaderWrapperStyle?: React.CSSProperties;
|
|
86
|
-
tagline: string;
|
|
87
|
-
websiteUrl: string;
|
|
88
|
-
bannerUrl?: string;
|
|
89
|
-
twitterHandle: string;
|
|
90
|
-
globalNote?: React.ReactNode;
|
|
91
|
-
i18n?: true;
|
|
92
|
-
pressKit?: true;
|
|
93
|
-
sponsorGithubAccount?: string;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
declare function Link({ href, text, noBreadcrumb, doNotInferSectionTitle, children }: {
|
|
97
|
-
href: string;
|
|
98
|
-
text?: string | JSX.Element;
|
|
99
|
-
noBreadcrumb?: true;
|
|
100
|
-
doNotInferSectionTitle?: true;
|
|
101
|
-
children?: React$1.ReactNode;
|
|
102
|
-
}): JSX.Element;
|
|
103
|
-
|
|
104
|
-
declare function isRepoLink(href: string): boolean;
|
|
105
|
-
declare function RepoLink({ path, text, editMode }: {
|
|
106
|
-
path: string;
|
|
107
|
-
text?: string | JSX.Element;
|
|
108
|
-
editMode?: true;
|
|
109
|
-
}): JSX.Element;
|
|
110
|
-
|
|
111
|
-
declare function P(props: React$1.HTMLProps<HTMLDivElement>): JSX.Element;
|
|
112
|
-
|
|
113
|
-
declare function ReadingRecommendation({ tour, links }: {
|
|
114
|
-
tour?: true;
|
|
115
|
-
links?: string[];
|
|
116
|
-
}): JSX.Element;
|
|
117
|
-
|
|
118
|
-
declare function Warning({ children }: {
|
|
119
|
-
children: React$1.ReactNode;
|
|
120
|
-
}): JSX.Element;
|
|
121
|
-
declare function Construction({ children }: {
|
|
122
|
-
children: React$1.ReactNode;
|
|
123
|
-
}): JSX.Element;
|
|
124
|
-
declare function Danger({ children }: {
|
|
125
|
-
children: React$1.ReactNode;
|
|
126
|
-
}): JSX.Element;
|
|
127
|
-
declare function NoteWithoutIcon({ children }: {
|
|
128
|
-
children: React$1.ReactNode;
|
|
129
|
-
}): JSX.Element;
|
|
130
|
-
type CustomIcon = JSX.Element | string;
|
|
131
|
-
declare function NoteWithCustomIcon({ icon, children }: {
|
|
132
|
-
children: React$1.ReactNode;
|
|
133
|
-
icon: CustomIcon;
|
|
134
|
-
}): JSX.Element;
|
|
135
|
-
|
|
136
|
-
declare function ImportMeta({ prop }: {
|
|
137
|
-
prop: string;
|
|
138
|
-
}): JSX.Element;
|
|
139
|
-
|
|
140
|
-
declare function HorizontalLine({ primary }: {
|
|
141
|
-
primary?: true;
|
|
142
|
-
}): JSX.Element;
|
|
143
|
-
|
|
144
|
-
type Children = (string | JSX.Element) | (string | JSX.Element)[];
|
|
145
|
-
declare function SupporterSection({ children }: {
|
|
146
|
-
children?: Children;
|
|
147
|
-
}): JSX.Element;
|
|
148
|
-
declare function SectionDescription({ children }: {
|
|
149
|
-
children?: Children;
|
|
150
|
-
}): JSX.Element;
|
|
151
|
-
declare function Individuals({ children }: {
|
|
152
|
-
children?: Children;
|
|
153
|
-
}): JSX.Element;
|
|
154
|
-
declare function Supporter({ username, avatarUrl }: {
|
|
155
|
-
username: string;
|
|
156
|
-
avatarUrl?: string;
|
|
157
|
-
}): JSX.Element;
|
|
158
|
-
declare function SupporterImg({ imgSrc, // has precedence over avatarUrl
|
|
159
|
-
avatarUrl, // has precedence over username
|
|
160
|
-
username, imgAlt, width, height, padding }: {
|
|
161
|
-
imgSrc?: string;
|
|
162
|
-
avatarUrl?: string;
|
|
163
|
-
username?: string;
|
|
164
|
-
imgAlt?: string;
|
|
165
|
-
width: number;
|
|
166
|
-
height: number;
|
|
167
|
-
padding?: number;
|
|
168
|
-
}): JSX.Element;
|
|
169
|
-
declare function CallToAction({ iconUrl, text, href }: {
|
|
170
|
-
iconUrl: string;
|
|
171
|
-
text: string;
|
|
172
|
-
href: string;
|
|
173
|
-
}): JSX.Element;
|
|
174
|
-
|
|
175
|
-
type Plan = 'indie' | 'bronze' | 'silver' | 'gold' | 'platinum';
|
|
176
|
-
type SponsorCompany = {
|
|
177
|
-
companyName: string;
|
|
178
|
-
companyLogo: string;
|
|
179
|
-
website: string;
|
|
180
|
-
plan: Plan;
|
|
181
|
-
divSize?: Partial<DivSize>;
|
|
182
|
-
github: string;
|
|
183
|
-
};
|
|
184
|
-
type SponsorIndividual = {
|
|
185
|
-
username: string;
|
|
186
|
-
};
|
|
187
|
-
type Sponsor = SponsorCompany | SponsorIndividual;
|
|
188
|
-
type DivSize = {
|
|
189
|
-
width: number;
|
|
190
|
-
height: number;
|
|
191
|
-
padding: number;
|
|
192
|
-
};
|
|
193
|
-
declare function Sponsors(): JSX.Element;
|
|
194
|
-
|
|
195
|
-
declare const maintainers: ({
|
|
196
|
-
username: string;
|
|
197
|
-
firstName: string;
|
|
198
|
-
roles: JSX.Element[];
|
|
199
|
-
consultingUrl?: undefined;
|
|
200
|
-
} | {
|
|
201
|
-
username: string;
|
|
202
|
-
firstName: string;
|
|
203
|
-
roles: JSX.Element[];
|
|
204
|
-
consultingUrl: string;
|
|
205
|
-
})[];
|
|
206
|
-
|
|
207
|
-
declare function Contributors(): JSX.Element;
|
|
208
|
-
declare function Maintainer({ maintainer }: {
|
|
209
|
-
maintainer: (typeof maintainers)[0];
|
|
210
|
-
}): JSX.Element;
|
|
211
|
-
|
|
212
|
-
declare function Consulting(): JSX.Element;
|
|
213
|
-
declare function Consultants(): JSX.Element;
|
|
214
|
-
|
|
215
|
-
type LineBreak = 'white-space' | 'break-word';
|
|
216
|
-
declare function CodeBlockTransformer({ children, lineBreak }: {
|
|
217
|
-
children: React$1.ReactNode;
|
|
218
|
-
lineBreak: LineBreak;
|
|
219
|
-
}): JSX.Element;
|
|
220
|
-
|
|
221
|
-
declare function Comment({ children }: {
|
|
222
|
-
children: React$1.ReactNode;
|
|
223
|
-
}): JSX.Element;
|
|
224
|
-
|
|
225
|
-
export { CallToAction, CodeBlockTransformer, Comment, Config, Construction, Consultants, Consulting, Contributors, Danger, Emoji, EmojiName, HeadingDefinition, HeadingDetachedDefinition, HorizontalLine, ImportMeta, Individuals, Link, Maintainer, NoteWithCustomIcon, NoteWithoutIcon, P, ReadingRecommendation, RepoLink, SectionDescription, Sponsor, Sponsors, Supporter, SupporterImg, SupporterSection, Warning, assert, assertUsage, assertWarning, crawlAllFiles, determineSectionTitle, determineSectionUrlHash, filter, isBrowser, isRepoLink, jsxToTextContent, objectAssign };
|