Skip to content

Commit

Permalink
build: update build files
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceoq committed Nov 30, 2023
1 parent 2858e4c commit 19df90c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
3 changes: 2 additions & 1 deletion dist/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion dist/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ import { AlgoliaSearchOptions } from 'algoliasearch/lite';

interface MarkdownRendererProps {
serialized: MDXRemoteSerializeResult;
customComponents?: {
[name: string]: any;
};
scope?: {
[name: string]: any;
};
}

declare const MarkdownRenderer: ({ serialized }: MarkdownRendererProps) => react_jsx_runtime.JSX.Element;
declare const MarkdownRenderer: ({ serialized, customComponents, scope, }: MarkdownRendererProps) => react_jsx_runtime.JSX.Element;

interface SubItem {
title: string;
Expand Down
24 changes: 22 additions & 2 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5947,7 +5947,7 @@ var Callout = ({ node, icon: icon3, ...props }) => {
"blockquote",
{
className: `${styles_module_default.blockquote} ${blockquoteType === "info" ? styles_module_default.blockquoteInfo : blockquoteType === "danger" ? styles_module_default.blockquoteDanger : blockquoteType === "warning" ? styles_module_default.blockquoteWarning : blockquoteType === "success" ? styles_module_default.blockquoteSuccess : ""}`,
children: /* @__PURE__ */ jsx9("p", { ...props })
children: /* @__PURE__ */ jsx9("div", { ...props })
}
);
};
Expand Down Expand Up @@ -6024,6 +6024,9 @@ var components_default = {
table: ({ node, ...props }) => /* @__PURE__ */ jsx9("table", { ...props }),
td: ({ node, ...props }) => /* @__PURE__ */ jsx9("td", { ...props }),
img: ImageComponent,
text: ({ node, ...props }) => {
return /* @__PURE__ */ jsx9(Box5, { sx: { marginBlock: "1em" }, ...props });
},
blockquote: ({ ...props }) => {
return /* @__PURE__ */ jsx9(Callout, { ...props });
},
Expand Down Expand Up @@ -6082,7 +6085,24 @@ var components_default = {
// src/lib/markdown-renderer/MarkdownRenderer.tsx
import { jsx as jsx10 } from "react/jsx-runtime";
var MDXRemote2 = MDXRemote;
var MarkdownRenderer = ({ serialized }) => /* @__PURE__ */ jsx10(Box6, { children: /* @__PURE__ */ jsx10(MDXRemote2, { components: components_default, lazy: true, ...serialized }) });
var MarkdownRenderer = ({
serialized,
customComponents,
scope
}) => {
if (components_default && scope) {
return /* @__PURE__ */ jsx10(Box6, { children: /* @__PURE__ */ jsx10(
MDXRemote2,
{
components: { ...components_default, ...customComponents },
lazy: true,
...serialized,
scope
}
) });
}
return /* @__PURE__ */ jsx10(Box6, { children: /* @__PURE__ */ jsx10(MDXRemote2, { components: components_default, lazy: true, ...serialized }) });
};
var MarkdownRenderer_default = MarkdownRenderer;

// src/lib/table-of-contents/TableOfContents.tsx
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

0 comments on commit 19df90c

Please sign in to comment.