@ai-matrx/rich-content 0.2.17 → 0.2.18
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.
|
@@ -56,7 +56,8 @@ function isGenuinelyIncomplete(content) {
|
|
|
56
56
|
function isBlockLoading(block) {
|
|
57
57
|
if (block.isStreamingBlock) return true;
|
|
58
58
|
const envelope = readEnvelope(block.metadata);
|
|
59
|
-
if (envelope?.root.kind && envelope.root.status
|
|
59
|
+
if (envelope?.root.kind && envelope.root.status === "streaming") return true;
|
|
60
|
+
if (envelope?.root.status === "error") return false;
|
|
60
61
|
if (block.metadata?.isComplete === false && isGenuinelyIncomplete(block.content))
|
|
61
62
|
return true;
|
|
62
63
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/rich-content",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
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",
|
|
@@ -131,18 +131,18 @@
|
|
|
131
131
|
"unist-util-visit-parents": "^6.0.2",
|
|
132
132
|
"yaml": "^2.9.1",
|
|
133
133
|
"@ai-matrx/canvas": "latest",
|
|
134
|
+
"@ai-matrx/agents": "latest",
|
|
134
135
|
"@ai-matrx/alchemy": "latest",
|
|
135
136
|
"@ai-matrx/content-ir": "latest",
|
|
136
137
|
"@ai-matrx/content-ir-react": "latest",
|
|
137
|
-
"@ai-matrx/agents": "latest",
|
|
138
138
|
"@ai-matrx/data": "latest",
|
|
139
139
|
"@ai-matrx/design-system": "latest",
|
|
140
140
|
"@ai-matrx/diff": "latest",
|
|
141
141
|
"@ai-matrx/icons": "latest",
|
|
142
142
|
"@ai-matrx/kit": "latest",
|
|
143
|
-
"@ai-matrx/media": "latest",
|
|
144
143
|
"@ai-matrx/print": "latest",
|
|
145
144
|
"@ai-matrx/records": "latest",
|
|
145
|
+
"@ai-matrx/media": "latest",
|
|
146
146
|
"@ai-matrx/records-ui": "latest",
|
|
147
147
|
"@ai-matrx/tap-target": "latest"
|
|
148
148
|
},
|