@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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog — `@ai-matrx/messaging`
2
2
 
3
+ ## 0.12.5
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/messaging/v0.12.4..npm/messaging/v0.12.5 -- apps/shared/messaging`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.12.4
10
+
11
+ ### Changed
12
+
13
+ - **Messages render safe Markdown.** Headings, lists, emphasis, links, code,
14
+ quotes, tables, and intentional line breaks now retain their authored
15
+ structure in every messaging consumer. Raw HTML remains text rather than a
16
+ runnable document. Consumers only need to adopt this release; stored message
17
+ text is unchanged.
18
+
3
19
  ## 0.12.3
4
20
 
5
21
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/dist/react.cjs CHANGED
@@ -1,9 +1,11 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  "use client";
4
+ var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
7
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
10
  var __export = (target, all) => {
9
11
  for (var name in all)
@@ -17,6 +19,14 @@ var __copyProps = (to, from, except, desc) => {
17
19
  }
18
20
  return to;
19
21
  };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
20
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
31
 
22
32
  // src/react.ts
@@ -2733,6 +2743,9 @@ function useMessageAction(message) {
2733
2743
 
2734
2744
  // src/react/components.tsx
2735
2745
  var import_react5 = require("react");
2746
+ var import_react_markdown = __toESM(require("react-markdown"), 1);
2747
+ var import_remark_breaks = __toESM(require("remark-breaks"), 1);
2748
+ var import_remark_gfm = __toESM(require("remark-gfm"), 1);
2736
2749
 
2737
2750
  // src/core/actor.ts
2738
2751
  function readActorHint(metadata) {
@@ -3386,7 +3399,7 @@ function MessageBubble(props) {
3386
3399
  const bubble = /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
3387
3400
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: classes, children: [
3388
3401
  splitText(message.content).map(
3389
- (segment, index) => segment.type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: segment.value }, index) : segment.type === "fence" ? HostFence !== null ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HostFence, { body: segment.body }, `fence:${index}`) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(UnreadableReference, {}, `fence:${index}`) : HostReference !== null ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3402
+ (segment, index) => segment.type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mx-msg__markdown", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_markdown.default, { remarkPlugins: [import_remark_gfm.default, import_remark_breaks.default], children: segment.value }) }, index) : segment.type === "fence" ? HostFence !== null ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HostFence, { body: segment.body }, `fence:${index}`) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(UnreadableReference, {}, `fence:${index}`) : HostReference !== null ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3390
3403
  HostReference,
3391
3404
  {
3392
3405
  reference: segment.reference