@connectif/ui-components 2.0.17 → 2.0.19
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/dist/index.js +24 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13814,7 +13814,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
|
|
|
13814
13814
|
marginRight: "0",
|
|
13815
13815
|
minHeight: "22px",
|
|
13816
13816
|
justifyContent: "center",
|
|
13817
|
-
wordBreak: "break-
|
|
13817
|
+
wordBreak: "break-word"
|
|
13818
13818
|
},
|
|
13819
13819
|
children: [
|
|
13820
13820
|
/* @__PURE__ */ jsx79(
|
|
@@ -24277,6 +24277,9 @@ var MarkdownContainer = styled8("div")(
|
|
|
24277
24277
|
borderRadius: "8px",
|
|
24278
24278
|
overflowWrap: "break-word",
|
|
24279
24279
|
"& h1, & h2, & h3": { color: color2 },
|
|
24280
|
+
"& h1:not(:first-child)": { marginTop: "40px" },
|
|
24281
|
+
"& h2:not(:first-child)": { marginTop: "32px" },
|
|
24282
|
+
"& h3:not(:first-child)": { marginTop: "20px" },
|
|
24280
24283
|
"& h1": { fontSize: "1.75rem" },
|
|
24281
24284
|
"& h2": { fontSize: "1.5rem" },
|
|
24282
24285
|
"& h3": { fontSize: "1.25rem" },
|
|
@@ -24313,17 +24316,31 @@ var MarkdownContainer = styled8("div")(
|
|
|
24313
24316
|
},
|
|
24314
24317
|
"& table": {
|
|
24315
24318
|
width: "100%",
|
|
24316
|
-
borderCollapse: "
|
|
24319
|
+
borderCollapse: "separate",
|
|
24320
|
+
borderSpacing: 0,
|
|
24317
24321
|
margin: "1em 0",
|
|
24322
|
+
borderRadius: "8px",
|
|
24318
24323
|
...lineHeight && { lineHeight: `${lineHeight}px` }
|
|
24319
24324
|
},
|
|
24320
24325
|
"& th, & td": {
|
|
24321
|
-
border: `1px solid ${
|
|
24326
|
+
border: `1px solid ${dark600}`,
|
|
24322
24327
|
padding: "8px",
|
|
24323
24328
|
textAlign: "left",
|
|
24324
24329
|
...lineHeight && { lineHeight: `${lineHeight}px` }
|
|
24325
24330
|
},
|
|
24326
|
-
"& th": {
|
|
24331
|
+
"& table tr:first-child th:first-child": {
|
|
24332
|
+
borderTopLeftRadius: "8px"
|
|
24333
|
+
},
|
|
24334
|
+
"& table tr:first-child th:last-child": {
|
|
24335
|
+
borderTopRightRadius: "8px"
|
|
24336
|
+
},
|
|
24337
|
+
"& table tr:last-child td:first-child": {
|
|
24338
|
+
borderBottomLeftRadius: "8px"
|
|
24339
|
+
},
|
|
24340
|
+
"& table tr:last-child td:last-child": {
|
|
24341
|
+
borderBottomRightRadius: "8px"
|
|
24342
|
+
},
|
|
24343
|
+
"& th": { backgroundColor: dark800, color: white },
|
|
24327
24344
|
"& a": { color: primary200, textDecoration: "none" },
|
|
24328
24345
|
"& a:hover": { textDecoration: "underline" }
|
|
24329
24346
|
})
|
|
@@ -24390,12 +24407,14 @@ var CodeOrMath = ({ children, ...props }) => {
|
|
|
24390
24407
|
const onlyText = maybe.length === 1 && typeof maybe[0] === "string";
|
|
24391
24408
|
return onlyText ? /* @__PURE__ */ jsx137("code", { ...props, children }) : /* @__PURE__ */ jsx137("span", { children: maybe });
|
|
24392
24409
|
};
|
|
24410
|
+
var escapeInlineUnderscores = (s) => s.replace(/(\S)_(\S)/g, "$1\\_$2");
|
|
24393
24411
|
var MarkdownRenderer = ({
|
|
24394
24412
|
text,
|
|
24395
24413
|
className,
|
|
24396
24414
|
...rest
|
|
24397
24415
|
}) => {
|
|
24398
|
-
const
|
|
24416
|
+
const protectedText = escapeInlineUnderscores(text || "");
|
|
24417
|
+
const normalized = normalizeLatexDelimiters(protectedText);
|
|
24399
24418
|
return /* @__PURE__ */ jsx137(
|
|
24400
24419
|
MarkdownContainer,
|
|
24401
24420
|
{
|