@caseparts-org/caseblocks 0.0.132 → 0.0.133
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.
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Components } from 'react-markdown';
|
|
1
2
|
export type MarkdownProps = {
|
|
2
3
|
children?: string | null;
|
|
3
4
|
className?: string;
|
|
5
|
+
components?: Components;
|
|
4
6
|
};
|
|
5
|
-
export declare function Markdown({ children, className }: MarkdownProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export declare function Markdown({ children, className, components }: MarkdownProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -8656,10 +8656,17 @@ function xf() {
|
|
|
8656
8656
|
const bf = "_markdown_1ozv2_1", or = {
|
|
8657
8657
|
markdown: bf
|
|
8658
8658
|
};
|
|
8659
|
-
function Cf({ children: e, className: t }) {
|
|
8659
|
+
function Cf({ children: e, className: t, components: n }) {
|
|
8660
8660
|
if (!e) return null;
|
|
8661
|
-
const
|
|
8662
|
-
return /* @__PURE__ */ Pn("div", { className:
|
|
8661
|
+
const r = t ? `${or.markdown} ${t}` : or.markdown;
|
|
8662
|
+
return /* @__PURE__ */ Pn("div", { className: r, children: /* @__PURE__ */ Pn(
|
|
8663
|
+
rs,
|
|
8664
|
+
{
|
|
8665
|
+
remarkPlugins: [df, xf],
|
|
8666
|
+
components: n,
|
|
8667
|
+
children: e
|
|
8668
|
+
}
|
|
8669
|
+
) });
|
|
8663
8670
|
}
|
|
8664
8671
|
export {
|
|
8665
8672
|
Cf as Markdown
|
|
@@ -1,16 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Markdown as d } from "./Markdown.js";
|
|
3
3
|
import { usePreprocessedMarkdown as m } from "./usePreprocessedMarkdown.js";
|
|
4
|
-
function
|
|
5
|
-
url:
|
|
6
|
-
validate:
|
|
7
|
-
debug:
|
|
4
|
+
function k({
|
|
5
|
+
url: o,
|
|
6
|
+
validate: e,
|
|
7
|
+
debug: n,
|
|
8
8
|
className: t,
|
|
9
|
-
children:
|
|
9
|
+
children: p
|
|
10
10
|
}) {
|
|
11
|
-
const { output: s } = m(
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
const { output: s } = m(p ?? "", o, e, n);
|
|
12
|
+
return /* @__PURE__ */ r(
|
|
13
|
+
d,
|
|
14
|
+
{
|
|
15
|
+
className: t,
|
|
16
|
+
components: {
|
|
17
|
+
a: ({ node: c, ...a }) => /* @__PURE__ */ r(
|
|
18
|
+
"a",
|
|
19
|
+
{
|
|
20
|
+
...a,
|
|
21
|
+
target: "_blank",
|
|
22
|
+
rel: "noopener noreferrer"
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
},
|
|
26
|
+
children: s
|
|
27
|
+
}
|
|
28
|
+
);
|
|
13
29
|
}
|
|
14
30
|
export {
|
|
15
|
-
|
|
31
|
+
k as PreprocessedMarkdown
|
|
16
32
|
};
|