@ai-matrx/rich-content 0.2.15 → 0.2.16
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.
|
@@ -253,7 +253,10 @@ function extendMenuSection(submenu, actionIds) {
|
|
|
253
253
|
structureVersion++;
|
|
254
254
|
const section = MENU_STRUCTURE.find((s) => s.submenu === submenu);
|
|
255
255
|
if (!section) throw new Error(`[rich-document] no menu section named "${submenu}"`);
|
|
256
|
-
for (const id of actionIds)
|
|
256
|
+
for (const id of actionIds) {
|
|
257
|
+
if (!section.actionIds.includes(id)) section.actionIds.push(id);
|
|
258
|
+
PLACED_IDS.add(id);
|
|
259
|
+
}
|
|
257
260
|
}
|
|
258
261
|
export {
|
|
259
262
|
AI_SUBMENU_LABEL,
|
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.16",
|
|
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
134
|
"@ai-matrx/canvas": "latest",
|
|
136
135
|
"@ai-matrx/content-ir": "latest",
|
|
137
136
|
"@ai-matrx/content-ir-react": "latest",
|
|
138
137
|
"@ai-matrx/data": "latest",
|
|
138
|
+
"@ai-matrx/design-system": "latest",
|
|
139
139
|
"@ai-matrx/diff": "latest",
|
|
140
140
|
"@ai-matrx/icons": "latest",
|
|
141
|
-
"@ai-matrx/
|
|
142
|
-
"@ai-matrx/kit": "latest",
|
|
143
|
-
"@ai-matrx/print": "latest",
|
|
141
|
+
"@ai-matrx/media": "latest",
|
|
144
142
|
"@ai-matrx/records": "latest",
|
|
145
143
|
"@ai-matrx/records-ui": "latest",
|
|
146
144
|
"@ai-matrx/tap-target": "latest",
|
|
147
|
-
"@ai-matrx/
|
|
145
|
+
"@ai-matrx/print": "latest",
|
|
146
|
+
"@ai-matrx/kit": "latest",
|
|
147
|
+
"@ai-matrx/agents": "latest"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
150
|
"react": ">=19.0.0",
|