@chtc/web-components 2.0.5 → 2.0.7
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/Article/components/ArticleCard.d.ts.map +1 -1
- package/Article/components/ArticleCard.js +3 -1
- package/Article/components/ArticleCard.js.map +1 -1
- package/Article/components/HorizontalArticleCard.d.ts.map +1 -1
- package/Article/components/HorizontalArticleCard.js +3 -1
- package/Article/components/HorizontalArticleCard.js.map +1 -1
- package/content/index.d.ts +1 -0
- package/content/index.d.ts.map +1 -1
- package/content/index.js +1 -0
- package/content/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/markdownComponents/excerptComponents.d.ts +24 -0
- package/markdownComponents/excerptComponents.d.ts.map +1 -0
- package/markdownComponents/excerptComponents.js +46 -0
- package/markdownComponents/excerptComponents.js.map +1 -0
- package/markdownComponents/markdownComponents.d.ts.map +1 -1
- package/markdownComponents/markdownComponents.js +22 -15
- package/markdownComponents/markdownComponents.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleCard.d.ts","sourceRoot":"","sources":["../../../src/Article/components/ArticleCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ArticleCard.d.ts","sourceRoot":"","sources":["../../../src/Article/components/ArticleCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAM1C,QAAA,MAAM,WAAW,GAAI,mBAAkB,gBAAgB,gCAgCtD,CAAA;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -3,13 +3,15 @@ import { Typography, Box } from '@mui/material';
|
|
|
3
3
|
import Balancer from "react-wrap-balancer";
|
|
4
4
|
import Link from "next/link";
|
|
5
5
|
import TopStyledBlock from "../../TopStyledBlock";
|
|
6
|
+
import MarkdownContent from "../../markdownComponents/MarkdownContent";
|
|
7
|
+
import { linkedCardExcerptComponents } from "../../markdownComponents/excerptComponents";
|
|
6
8
|
const ArticleCard = ({ href, article }) => {
|
|
7
9
|
const style = {
|
|
8
10
|
transition: "box-shadow .2s",
|
|
9
11
|
boxShadow: "grey 1px 1px 3px",
|
|
10
12
|
"&:hover": { boxShadow: "grey 1px 1px 5px" },
|
|
11
13
|
};
|
|
12
|
-
return (_jsx(Box, { borderRadius: 2, overflow: "hidden", sx: style, children: _jsxs(Link, { href: href, children: [_jsx(Box, { children: _jsx("img", { style: { objectFit: "cover", width: "100%", aspectRatio: 2 }, src: article.image.path, alt: article.image.alt }) }), _jsx(Box, { children: _jsxs(Box, { pl: 2, p: 2, children: [_jsx(Box, { py: 1, pt: 1, children: _jsx(TopStyledBlock, { height: ".25rem", width: "5rem", offset: "-.75rem", children: _jsx(Typography, { variant: "h6", sx: { fontWeight: "bold" }, children: _jsx(Balancer, { children: article.title }) }) }) }), _jsx(
|
|
14
|
+
return (_jsx(Box, { borderRadius: 2, overflow: "hidden", sx: style, children: _jsxs(Link, { href: href, style: { color: "inherit", textDecoration: "none" }, children: [_jsx(Box, { children: _jsx("img", { style: { objectFit: "cover", width: "100%", aspectRatio: 2 }, src: article.image.path, alt: article.image.alt }) }), _jsx(Box, { children: _jsxs(Box, { pl: 2, p: 2, children: [_jsx(Box, { py: 1, pt: 1, children: _jsx(TopStyledBlock, { height: ".25rem", width: "5rem", offset: "-.75rem", children: _jsx(Typography, { variant: "h6", sx: { fontWeight: "bold" }, children: _jsx(Balancer, { children: article.title }) }) }) }), _jsx(MarkdownContent, { components: linkedCardExcerptComponents, children: article.excerpt })] }) })] }) }));
|
|
13
15
|
};
|
|
14
16
|
export default ArticleCard;
|
|
15
17
|
//# sourceMappingURL=ArticleCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleCard.js","sourceRoot":"","sources":["../../../src/Article/components/Article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AAC,GAAG,cACH,MAAC,GAAG,IAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,aACf,KAAC,GAAG,IAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YAChB,KAAC,cAAc,IAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,YACjE,KAAC,UAAU,IAAC,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC,UAAU,EAAE,MAAM,EAAC,YAAE,KAAC,QAAQ,cAAE,OAAO,CAAC,KAAK,GAAY,GAAa,GACtF,GACZ,EACN,KAAC,eAAe,IAAC,UAAU,EAAE,2BAA2B,YACtD,OAAO,CAAC,OAAO,GACC,IACb,GACD,IACA,GACF,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalArticleCard.d.ts","sourceRoot":"","sources":["../../../src/Article/components/HorizontalArticleCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HorizontalArticleCard.d.ts","sourceRoot":"","sources":["../../../src/Article/components/HorizontalArticleCard.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAE1C,QAAA,MAAM,qBAAqB,GAAI,mBAAkB,gBAAgB,gCAkChE,CAAA;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -2,10 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Grid, Typography, Box } from '@mui/material';
|
|
3
3
|
import Balancer from "react-wrap-balancer";
|
|
4
4
|
import TopStyledBlock from "../../TopStyledBlock";
|
|
5
|
+
import MarkdownContent from "../../markdownComponents/MarkdownContent";
|
|
6
|
+
import excerptComponents from "../../markdownComponents/excerptComponents";
|
|
5
7
|
import Link from "next/link";
|
|
6
8
|
import { ArrowRight } from "@mui/icons-material";
|
|
7
9
|
const HorizontalArticleCard = ({ href, article }) => {
|
|
8
|
-
return (_jsx(Box, { sx: { display: { xs: 'none', md: 'block' } }, children: _jsxs(Grid, { container: true, children: [_jsx(Grid, { size: 6, children: _jsx("img", { style: { objectFit: "cover", width: "100%", height: "100%", aspectRatio: 2 }, src: article.image.path, alt: article.image.alt }) }), _jsx(Grid, { size: 6, display: "flex", children: _jsxs(Box, { width: "100%", pl: 2, p: 3, display: "flex", flexDirection: "column", bgcolor: "#cfe4ff52", children: [_jsx(Box, { py: 1, children: _jsx(TopStyledBlock, { height: ".25rem", width: "5rem", offset: "-.75rem", children: _jsx(Typography, { variant: "h5", children: _jsx(Balancer, { children: article.title }) }) }) }), _jsx(
|
|
10
|
+
return (_jsx(Box, { sx: { display: { xs: 'none', md: 'block' } }, children: _jsxs(Grid, { container: true, children: [_jsx(Grid, { size: 6, children: _jsx("img", { style: { objectFit: "cover", width: "100%", height: "100%", aspectRatio: 2 }, src: article.image.path, alt: article.image.alt }) }), _jsx(Grid, { size: 6, display: "flex", children: _jsxs(Box, { width: "100%", pl: 2, p: 3, display: "flex", flexDirection: "column", bgcolor: "#cfe4ff52", children: [_jsx(Box, { py: 1, children: _jsx(TopStyledBlock, { height: ".25rem", width: "5rem", offset: "-.75rem", children: _jsx(Typography, { variant: "h5", children: _jsx(Balancer, { children: article.title }) }) }) }), _jsx(MarkdownContent, { components: excerptComponents, children: article.excerpt }), _jsx(Box, { sx: { marginTop: "auto", paddingTop: "2rem", fontWeight: "300" }, children: _jsx(Box, { sx: { color: "#0885ff" }, children: _jsxs(Link, { href: href, style: { color: "inherit", textDecoration: "none" }, children: [_jsx(Typography, { variant: "body1", sx: { display: "inline", paddingRight: ".2rem" }, children: "Read More" }), _jsx(ArrowRight, { height: 18, width: 24, fill: "currentColor" })] }) }) })] }) })] }) }));
|
|
9
11
|
};
|
|
10
12
|
export default HorizontalArticleCard;
|
|
11
13
|
//# sourceMappingURL=HorizontalArticleCard.js.map
|
|
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EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,aAC9F,KAAC,GAAG,IAAC,EAAE,EAAE,CAAC,YACT,KAAC,cAAc,IAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,YACjE,KAAC,UAAU,IAAC,OAAO,EAAE,IAAI,YAAE,KAAC,QAAQ,cAAE,OAAO,CAAC,KAAK,GAAY,GAAa,GAC5D,GACZ,EAGN,KAAC,eAAe,IAAC,UAAU,EAAE,iBAAiB,YAC5C,OAAO,CAAC,OAAO,GACC,EAClB,KAAC,GAAG,IAAC,EAAE,EAAE,EAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAC,YAClE,KAAC,GAAG,IAAC,EAAE,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,YAC1B,MAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAC,aAClE,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,EAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAC,0BAE/D,EACb,KAAC,UAAU,IAAC,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,GAAG,IACpD,GACF,GACD,IACD,GACA,IACD,GACF,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,qBAAqB,CAAC"}
|
package/content/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "../Presentation";
|
|
|
3
3
|
export * from "../Staff";
|
|
4
4
|
export { default as MarkdownContent } from "../markdownComponents/MarkdownContent";
|
|
5
5
|
export { default as markdownComponents } from "../markdownComponents";
|
|
6
|
+
export { default as excerptComponents, linkedCardExcerptComponents } from "../markdownComponents/excerptComponents";
|
|
6
7
|
export type { Website } from "../types";
|
|
7
8
|
export * from "../utils";
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
package/content/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAEpH,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,cAAc,UAAU,CAAC"}
|
package/content/index.js
CHANGED
|
@@ -5,5 +5,6 @@ export * from "../Presentation";
|
|
|
5
5
|
export * from "../Staff";
|
|
6
6
|
export { default as MarkdownContent } from "../markdownComponents/MarkdownContent";
|
|
7
7
|
export { default as markdownComponents } from "../markdownComponents";
|
|
8
|
+
export { default as excerptComponents, linkedCardExcerptComponents } from "../markdownComponents/excerptComponents";
|
|
8
9
|
export * from "../utils";
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
package/content/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,mEAAmE;AACnE,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,mEAAmE;AACnE,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAGpH,cAAc,UAAU,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./Milestone";
|
|
|
7
7
|
export { githubFetch, GITHUB_REVALIDATE, getTree, getRepoPaths, getRawFile, getAllPages, type GitHubFetchOptions, type GitTree, type GitTreeItem, } from "./github";
|
|
8
8
|
export { default as MarkdownContent } from "./markdownComponents/MarkdownContent";
|
|
9
9
|
export { default as markdownComponents } from "./markdownComponents";
|
|
10
|
+
export { default as excerptComponents, linkedCardExcerptComponents } from "./markdownComponents/excerptComponents";
|
|
10
11
|
export { default as BigNumber, type BigNumberProps } from "./BigNumber";
|
|
11
12
|
export { default as PieChart, type PieChartData } from "./PieChart";
|
|
12
13
|
export { default as ColorBar } from "./ColorBar";
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAA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AI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,cAAc,MAAM,CAAC;AAErB,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
package/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./Milestone";
|
|
|
9
9
|
export { githubFetch, GITHUB_REVALIDATE, getTree, getRepoPaths, getRawFile, getAllPages, } from "./github";
|
|
10
10
|
export { default as MarkdownContent } from "./markdownComponents/MarkdownContent";
|
|
11
11
|
export { default as markdownComponents } from "./markdownComponents";
|
|
12
|
+
export { default as excerptComponents, linkedCardExcerptComponents } from "./markdownComponents/excerptComponents";
|
|
12
13
|
// Standalone components.
|
|
13
14
|
export { default as BigNumber } from "./BigNumber";
|
|
14
15
|
export { default as PieChart } from "./PieChart";
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAE5B,iDAAiD;AACjD,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,GAIZ,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,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
2
|
+
/**
|
|
3
|
+
* Markdown components for the short excerpt shown on an article card.
|
|
4
|
+
*
|
|
5
|
+
* Card excerpts are a fixed, small block of text, so the block-level structure
|
|
6
|
+
* of the full article map is flattened: a stray heading in an excerpt renders
|
|
7
|
+
* at body size rather than blowing out the card.
|
|
8
|
+
*
|
|
9
|
+
* Links take the theme's body text color (`palette.text.primary`) and carry no
|
|
10
|
+
* underline, so a link in an excerpt reads as ordinary text rather than
|
|
11
|
+
* pulling the eye away from the card's title.
|
|
12
|
+
*/
|
|
13
|
+
declare const excerptComponents: Components;
|
|
14
|
+
/**
|
|
15
|
+
* The same map for an excerpt that sits *inside* a card-wide link.
|
|
16
|
+
*
|
|
17
|
+
* A nested `<a>` is invalid HTML — the browser's parser closes the outer
|
|
18
|
+
* anchor and hoists the inner one out, which tears the card's markup apart on
|
|
19
|
+
* hydration. Links in the excerpt therefore render as plain spans — same text
|
|
20
|
+
* color, no underline — and the card as a whole navigates to the article.
|
|
21
|
+
*/
|
|
22
|
+
export declare const linkedCardExcerptComponents: Components;
|
|
23
|
+
export default excerptComponents;
|
|
24
|
+
//# sourceMappingURL=excerptComponents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excerptComponents.d.ts","sourceRoot":"","sources":["../../src/markdownComponents/excerptComponents.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAiBjD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,iBAAiB,EAAE,UAYxB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,EAAE,UAOzC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Box from "@mui/material/Box";
|
|
3
|
+
import MuiLink from "@mui/material/Link";
|
|
4
|
+
import Typography from "@mui/material/Typography";
|
|
5
|
+
import markdownComponents from "./markdownComponents";
|
|
6
|
+
/** Every block in an excerpt renders at body size, headings included. */
|
|
7
|
+
const ExcerptBlock = ({ children, node, ...props }) => (_jsx(Typography, { variant: "body1", component: "div",
|
|
8
|
+
// Space between paragraphs, but nothing trailing: a bottom margin on the
|
|
9
|
+
// last block would push the card's own padding open.
|
|
10
|
+
sx: { "&:not(:last-child)": { mb: 1 } }, ...props, children: children }));
|
|
11
|
+
/**
|
|
12
|
+
* Markdown components for the short excerpt shown on an article card.
|
|
13
|
+
*
|
|
14
|
+
* Card excerpts are a fixed, small block of text, so the block-level structure
|
|
15
|
+
* of the full article map is flattened: a stray heading in an excerpt renders
|
|
16
|
+
* at body size rather than blowing out the card.
|
|
17
|
+
*
|
|
18
|
+
* Links take the theme's body text color (`palette.text.primary`) and carry no
|
|
19
|
+
* underline, so a link in an excerpt reads as ordinary text rather than
|
|
20
|
+
* pulling the eye away from the card's title.
|
|
21
|
+
*/
|
|
22
|
+
const excerptComponents = {
|
|
23
|
+
...markdownComponents,
|
|
24
|
+
a: ({ node, ...props }) => (_jsx(MuiLink, { underline: "none", sx: { color: "text.primary" }, ...props })),
|
|
25
|
+
p: ExcerptBlock,
|
|
26
|
+
h1: ExcerptBlock,
|
|
27
|
+
h2: ExcerptBlock,
|
|
28
|
+
h3: ExcerptBlock,
|
|
29
|
+
h4: ExcerptBlock,
|
|
30
|
+
h5: ExcerptBlock,
|
|
31
|
+
h6: ExcerptBlock,
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The same map for an excerpt that sits *inside* a card-wide link.
|
|
35
|
+
*
|
|
36
|
+
* A nested `<a>` is invalid HTML — the browser's parser closes the outer
|
|
37
|
+
* anchor and hoists the inner one out, which tears the card's markup apart on
|
|
38
|
+
* hydration. Links in the excerpt therefore render as plain spans — same text
|
|
39
|
+
* color, no underline — and the card as a whole navigates to the article.
|
|
40
|
+
*/
|
|
41
|
+
export const linkedCardExcerptComponents = {
|
|
42
|
+
...excerptComponents,
|
|
43
|
+
a: ({ children, href, node, ...props }) => (_jsx(Box, { component: "span", ...props, children: children })),
|
|
44
|
+
};
|
|
45
|
+
export default excerptComponents;
|
|
46
|
+
//# sourceMappingURL=excerptComponents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excerptComponents.js","sourceRoot":"","sources":["../../src/markdownComponents/excerptComponents.tsx"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,yEAAyE;AACzE,MAAM,YAAY,GAAoB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACtE,KAAC,UAAU,IACT,OAAO,EAAC,OAAO,EACf,SAAS,EAAC,KAAK;IACf,yEAAyE;IACzE,qDAAqD;IACrD,EAAE,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,KACnC,KAAK,YAER,QAAQ,GACE,CACd,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,iBAAiB,GAAe;IACpC,GAAG,kBAAkB;IACrB,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACzB,KAAC,OAAO,IAAC,SAAS,EAAC,MAAM,EAAC,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,KAAM,KAAK,GAAI,CACvE;IACD,CAAC,EAAE,YAAY;IACf,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,YAAY;CACjB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAe;IACrD,GAAG,iBAAiB;IACpB,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACzC,KAAC,GAAG,IAAC,SAAS,EAAC,MAAM,KAAK,KAAK,YAC5B,QAAQ,GACL,CACP;CACF,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownComponents.d.ts","sourceRoot":"","sources":["../../src/markdownComponents/markdownComponents.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"markdownComponents.d.ts","sourceRoot":"","sources":["../../src/markdownComponents/markdownComponents.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAUjD,QAAA,MAAM,kBAAkB,EAAE,UA4IzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -2,31 +2,38 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import Box from "@mui/material/Box";
|
|
3
3
|
import MuiLink from "@mui/material/Link";
|
|
4
4
|
import Typography from "@mui/material/Typography";
|
|
5
|
+
/*
|
|
6
|
+
* react-markdown hands every component the mdast `node` it came from. It is
|
|
7
|
+
* useful for inspecting the source tree, but it is not a DOM attribute, and
|
|
8
|
+
* MUI forwards unknown props straight through — so leaving it in the spread
|
|
9
|
+
* stamps `node="[object Object]"` onto the rendered element. Every component
|
|
10
|
+
* below drops it before spreading the rest.
|
|
11
|
+
*/
|
|
5
12
|
const markdownComponents = {
|
|
6
|
-
h1: ({ children, ...props }) => {
|
|
13
|
+
h1: ({ children, node, ...props }) => {
|
|
7
14
|
return (_jsx(Typography, { component: "h1", variant: "h4", gutterBottom: true, ...props, children: children }));
|
|
8
15
|
},
|
|
9
|
-
h2: ({ children, ...props }) => {
|
|
16
|
+
h2: ({ children, node, ...props }) => {
|
|
10
17
|
return (_jsx(Typography, { component: "h2", variant: "h5", gutterBottom: true, ...props, children: children }));
|
|
11
18
|
},
|
|
12
|
-
h3: ({ children, ...props }) => {
|
|
19
|
+
h3: ({ children, node, ...props }) => {
|
|
13
20
|
return (_jsx(Typography, { component: "h3", variant: "h6", gutterBottom: true, ...props, children: children }));
|
|
14
21
|
},
|
|
15
|
-
h4: ({ children, ...props }) => {
|
|
22
|
+
h4: ({ children, node, ...props }) => {
|
|
16
23
|
return (_jsx(Typography, { component: "h4", variant: "h6", fontWeight: 400, borderBottom: "black solid 1px", gutterBottom: true, ...props, children: children }));
|
|
17
24
|
},
|
|
18
|
-
h5: ({ children, ...props }) => {
|
|
25
|
+
h5: ({ children, node, ...props }) => {
|
|
19
26
|
return (_jsx(Typography, { component: "h5", variant: "h6", fontWeight: 300, gutterBottom: true, ...props, children: children }));
|
|
20
27
|
},
|
|
21
|
-
h6: ({ children, ...props }) => {
|
|
28
|
+
h6: ({ children, node, ...props }) => {
|
|
22
29
|
return (_jsx(Typography, { component: "h6", variant: "h6", fontWeight: 300, color: "primary.main", gutterBottom: true, ...props, children: children }));
|
|
23
30
|
},
|
|
24
|
-
p: (props) => (_jsx(Typography, { variant: "body1", component: "div", gutterBottom: true, ...props })), // use sx for spacing
|
|
25
|
-
a: (props) => _jsx(MuiLink, { ...props }),
|
|
26
|
-
ul: (props) => _jsx(Box, { component: "ul", sx: { pl: 4, mb: 2 }, ...props }),
|
|
27
|
-
ol: (props) => _jsx(Box, { component: "ol", sx: { pl: 4, mb: 2 }, ...props }),
|
|
28
|
-
li: (props) => _jsx(Box, { component: "li", sx: { mb: 0.5 }, ...props }),
|
|
29
|
-
blockquote: (props) => (_jsx(Box, { component: "blockquote", sx: {
|
|
31
|
+
p: ({ node, ...props }) => (_jsx(Typography, { variant: "body1", component: "div", gutterBottom: true, ...props })), // use sx for spacing
|
|
32
|
+
a: ({ node, ...props }) => _jsx(MuiLink, { ...props }),
|
|
33
|
+
ul: ({ node, ...props }) => (_jsx(Box, { component: "ul", sx: { pl: 4, mb: 2 }, ...props })),
|
|
34
|
+
ol: ({ node, ...props }) => (_jsx(Box, { component: "ol", sx: { pl: 4, mb: 2 }, ...props })),
|
|
35
|
+
li: ({ node, ...props }) => (_jsx(Box, { component: "li", sx: { mb: 0.5 }, ...props })),
|
|
36
|
+
blockquote: ({ node, ...props }) => (_jsx(Box, { component: "blockquote", sx: {
|
|
30
37
|
borderLeft: 4,
|
|
31
38
|
borderColor: "grey.300",
|
|
32
39
|
pl: 2,
|
|
@@ -35,7 +42,7 @@ const markdownComponents = {
|
|
|
35
42
|
color: "grey.700",
|
|
36
43
|
fontStyle: "italic",
|
|
37
44
|
}, ...props })),
|
|
38
|
-
code: ({ children, ...props }) => {
|
|
45
|
+
code: ({ children, node, ...props }) => {
|
|
39
46
|
return (_jsxs(_Fragment, { children: [_jsx("link", { rel: "stylesheet", href: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.0/styles/github.min.css" }), _jsx(Box, { component: "code", sx: {
|
|
40
47
|
bgcolor: "grey.100",
|
|
41
48
|
py: 0.2,
|
|
@@ -44,14 +51,14 @@ const markdownComponents = {
|
|
|
44
51
|
fontSize: "0.95em",
|
|
45
52
|
}, ...props, children: children })] }));
|
|
46
53
|
},
|
|
47
|
-
pre: (props) => (_jsx(Box, { component: "pre", sx: {
|
|
54
|
+
pre: ({ node, ...props }) => (_jsx(Box, { component: "pre", sx: {
|
|
48
55
|
bgcolor: "grey.100",
|
|
49
56
|
p: 2,
|
|
50
57
|
borderRadius: 2,
|
|
51
58
|
overflow: "auto",
|
|
52
59
|
mb: 2,
|
|
53
60
|
}, ...props })),
|
|
54
|
-
img: (props) => {
|
|
61
|
+
img: ({ node, ...props }) => {
|
|
55
62
|
return (_jsx("img", { ...props, style: {
|
|
56
63
|
maxWidth: "100%",
|
|
57
64
|
height: "auto",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownComponents.js","sourceRoot":"","sources":["../../src/markdownComponents/markdownComponents.tsx"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAGlD,MAAM,kBAAkB,GAAe;IACrC,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"markdownComponents.js","sourceRoot":"","sources":["../../src/markdownComponents/markdownComponents.tsx"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAGlD;;;;;;GAMG;AAEH,MAAM,kBAAkB,GAAe;IACrC,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;QACnC,OAAO,CACL,KAAC,UAAU,IAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAC,IAAI,EAAC,YAAY,WAAK,KAAK,YAC7D,QAAQ,GACE,CACd,CAAC;IACJ,CAAC;IACD,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;QACnC,OAAO,CACL,KAAC,UAAU,IAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAC,IAAI,EAAC,YAAY,WAAK,KAAK,YAC7D,QAAQ,GACE,CACd,CAAC;IACJ,CAAC;IACD,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;QACnC,OAAO,CACL,KAAC,UAAU,IAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAC,IAAI,EAAC,YAAY,WAAK,KAAK,YAC7D,QAAQ,GACE,CACd,CAAC;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