@ai-matrx/messaging 0.12.3 → 0.12.5
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/CHANGELOG.md +16 -0
- package/dist/react.cjs +14 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +4 -1
- package/dist/react.js.map +1 -1
- package/dist/styles.css +65 -0
- package/package.json +10 -7
package/dist/react.js
CHANGED
|
@@ -2641,6 +2641,9 @@ import {
|
|
|
2641
2641
|
useRef as useRef3,
|
|
2642
2642
|
useState as useState2
|
|
2643
2643
|
} from "react";
|
|
2644
|
+
import ReactMarkdown from "react-markdown";
|
|
2645
|
+
import remarkBreaks from "remark-breaks";
|
|
2646
|
+
import remarkGfm from "remark-gfm";
|
|
2644
2647
|
|
|
2645
2648
|
// src/core/actor.ts
|
|
2646
2649
|
function readActorHint(metadata) {
|
|
@@ -3294,7 +3297,7 @@ function MessageBubble(props) {
|
|
|
3294
3297
|
const bubble = /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
3295
3298
|
/* @__PURE__ */ jsxs2("div", { className: classes, children: [
|
|
3296
3299
|
splitText(message.content).map(
|
|
3297
|
-
(segment, index) => segment.type === "text" ? /* @__PURE__ */ jsx4("
|
|
3300
|
+
(segment, index) => segment.type === "text" ? /* @__PURE__ */ jsx4("div", { className: "mx-msg__markdown", children: /* @__PURE__ */ jsx4(ReactMarkdown, { remarkPlugins: [remarkGfm, remarkBreaks], children: segment.value }) }, index) : segment.type === "fence" ? HostFence !== null ? /* @__PURE__ */ jsx4(HostFence, { body: segment.body }, `fence:${index}`) : /* @__PURE__ */ jsx4(UnreadableReference, {}, `fence:${index}`) : HostReference !== null ? /* @__PURE__ */ jsx4(
|
|
3298
3301
|
HostReference,
|
|
3299
3302
|
{
|
|
3300
3303
|
reference: segment.reference
|