@ai-matrx/rich-content 0.2.170 → 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,19 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.170
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
+
8
17
  ## 0.2.169
9
18
 
10
19
  Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff aad1943517 3d2ed872f6 -- apps/shared/rich-content/src`
@@ -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.170",
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",
@@ -133,18 +133,18 @@
133
133
  "@ai-matrx/alchemy": "latest",
134
134
  "@ai-matrx/api": "latest",
135
135
  "@ai-matrx/canvas": "latest",
136
- "@ai-matrx/content-ir": "latest",
137
136
  "@ai-matrx/content-ir-react": "latest",
137
+ "@ai-matrx/agents": "latest",
138
+ "@ai-matrx/content-ir": "latest",
138
139
  "@ai-matrx/data": "latest",
139
140
  "@ai-matrx/design-system": "latest",
140
- "@ai-matrx/agents": "latest",
141
141
  "@ai-matrx/diff": "latest",
142
+ "@ai-matrx/icons": "latest",
142
143
  "@ai-matrx/media": "latest",
143
144
  "@ai-matrx/print": "latest",
144
- "@ai-matrx/kit": "latest",
145
- "@ai-matrx/icons": "latest",
146
145
  "@ai-matrx/records": "latest",
147
- "@ai-matrx/records-ui": "latest"
146
+ "@ai-matrx/records-ui": "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": "44398623d1fc90e4f200f6201c08b8b2b1585607"
208
+ "gitHead": "4c4a847d5532256ccea7048e09783b8587ae079e"
209
209
  }