@ai-matrx/rich-content 0.2.169 → 0.2.171

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,10 +1,33 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.169
3
+ ## 0.2.171
4
4
 
5
5
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/rich-content/src`.
7
7
 
8
+ ## 0.2.170
9
+
10
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
11
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
12
+ Diff: `git diff 3d2ed872f6 44398623d1 -- apps/shared/rich-content/src`
13
+
14
+ Changed shipped source files (1):
15
+ - `apps/shared/rich-content/src/display/blocks/chart/ChartCanvas.tsx`
16
+
17
+ ## 0.2.169
18
+
19
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff aad1943517 3d2ed872f6 -- apps/shared/rich-content/src`
20
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
21
+
22
+ ## 0.2.168
23
+
24
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
25
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
26
+ Diff: `git diff ebc4f61cd1 aad1943517 -- apps/shared/rich-content/src`
27
+
28
+ Changed shipped source files (1):
29
+ - `apps/shared/rich-content/src/styles.css`
30
+
8
31
  ## 0.2.167
9
32
 
10
33
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -11,8 +11,10 @@
11
11
  import React from "react";
12
12
  import { type ChartSpec } from "./chart-spec.js";
13
13
  import type { ChartPaneLayout } from "../canvas-adaptive.js";
14
- export default function ChartCanvas({ spec, paneLayout, }: {
14
+ declare function ChartCanvas({ spec, paneLayout, }: {
15
15
  spec: ChartSpec;
16
16
  /** The canvas pane's layout; `null` (chat, fullscreen) keeps the defaults. */
17
17
  paneLayout?: ChartPaneLayout | null;
18
18
  }): React.JSX.Element;
19
+ declare const _default: React.MemoExoticComponent<typeof ChartCanvas>;
20
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import React from "react";
3
4
  import {
4
5
  Area,
5
6
  AreaChart,
@@ -118,7 +119,7 @@ function render(spec, showLegend, paneLayout) {
118
119
  outerRadius: "78%",
119
120
  innerRadius: "0%",
120
121
  paddingAngle: 1,
121
- label: (e) => pieSliceLabel(e),
122
+ label: pieLabel,
122
123
  labelLine: false,
123
124
  children: spec.data.map((_, i) => /* @__PURE__ */ jsx(Cell, { fill: CHART_PALETTE[i % CHART_PALETTE.length] }, i))
124
125
  }
@@ -154,6 +155,8 @@ function render(spec, showLegend, paneLayout) {
154
155
  ] });
155
156
  }
156
157
  }
158
+ const pieLabel = (e) => pieSliceLabel(e);
159
+ var ChartCanvas_default = React.memo(ChartCanvas);
157
160
  export {
158
- ChartCanvas as default
161
+ ChartCanvas_default as default
159
162
  };
@@ -201,6 +201,12 @@ export interface RichDocumentActionContextCallbacks {
201
201
  * so the host can narrow to that part; null or [] means "nothing to offer".
202
202
  */
203
203
  tableRows?: (selection: string | null) => ReadonlyArray<Record<string, unknown>> | null;
204
+ /**
205
+ * This content exactly as produced, reasoning included, when the host keeps reasoning apart from
206
+ * the text (a chat answer's thinking blocks). Alchemy's "Raw with thinking" copies it; null when
207
+ * there was no reasoning.
208
+ */
209
+ rawWithThinking?: () => string | null;
204
210
  /**
205
211
  * The rendered table the right-click landed on, as table text with its shape kept (header +
206
212
  * rows) — set by the context-menu shell from the clicked element, so "Save to a table" opens on
@@ -46,7 +46,11 @@ function AlchemyDocumentMenu({
46
46
  label: "Document",
47
47
  data: () => {
48
48
  const ctx = getCtx();
49
- return { value: ctx.content, type: ctx.source?.type === "chat-message" ? "AI response" : "Document" };
49
+ return {
50
+ value: ctx.content,
51
+ type: ctx.source?.type === "chat-message" ? "AI response" : "Document",
52
+ withThinking: ctx.callbacks?.rawWithThinking?.() ?? null
53
+ };
50
54
  },
51
55
  className: size === "xs" ? "matrx-alchemy-xs" : void 0,
52
56
  ...triggerHidden ? { triggerHidden: true } : {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/rich-content",
3
- "version": "0.2.169",
3
+ "version": "0.2.171",
4
4
  "description": "The AI Matrx formatted-text engine: the one markdown renderer, streaming markdown, the block splitter and renderer, the generic blocks, <RichContent> levels, the rich-document action registry and menus, copy, and the selection toolbar — as portable React.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -130,21 +130,21 @@
130
130
  "unist-util-visit": "^5.1.0",
131
131
  "unist-util-visit-parents": "^6.0.2",
132
132
  "yaml": "^2.9.1",
133
- "@ai-matrx/agents": "latest",
134
133
  "@ai-matrx/alchemy": "latest",
135
- "@ai-matrx/canvas": "latest",
136
134
  "@ai-matrx/api": "latest",
135
+ "@ai-matrx/canvas": "latest",
137
136
  "@ai-matrx/content-ir-react": "latest",
137
+ "@ai-matrx/agents": "latest",
138
138
  "@ai-matrx/content-ir": "latest",
139
+ "@ai-matrx/data": "latest",
140
+ "@ai-matrx/design-system": "latest",
139
141
  "@ai-matrx/diff": "latest",
140
142
  "@ai-matrx/icons": "latest",
141
- "@ai-matrx/data": "latest",
142
143
  "@ai-matrx/media": "latest",
143
- "@ai-matrx/kit": "latest",
144
144
  "@ai-matrx/print": "latest",
145
145
  "@ai-matrx/records": "latest",
146
146
  "@ai-matrx/records-ui": "latest",
147
- "@ai-matrx/design-system": "latest"
147
+ "@ai-matrx/kit": "latest"
148
148
  },
149
149
  "peerDependencies": {
150
150
  "react": ">=19.0.0",
@@ -205,5 +205,5 @@
205
205
  "verify:modules-tarball": "node ./scripts/verify-modules-tarball.mjs",
206
206
  "verify:tarball": "node ./scripts/verify-tarball.mjs"
207
207
  },
208
- "gitHead": "3d2ed872f66e0190ad852e65455e1c5a9c2a0f5f"
208
+ "gitHead": "4c4a847d5532256ccea7048e09783b8587ae079e"
209
209
  }