@ai-matrx/rich-content 0.2.37 → 0.2.39
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 +12 -0
- package/dist/selection-toolbar/selection-actions.js +1 -0
- package/dist/styles.css +27 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.39
|
|
4
|
+
|
|
5
|
+
- The selection toolbar's mode table knows `selection:format-color` (edit mode): text colour is a registered format action, so an editor whose engine has colour (the Spaces editor) offers it in the one toolbar instead of a second bubble.
|
|
6
|
+
|
|
7
|
+
**Consumer action:** none.
|
|
8
|
+
|
|
9
|
+
## 0.2.38
|
|
10
|
+
|
|
11
|
+
- `styles.css` ships the list-marker rules every rendered markdown list needs (`matrx-md-ul` / `matrx-md-ol`: disc, circle, dash; decimal, lower-roman, lower-alpha). They lived only in matrx-frontend's `globals.css`, so any other host (Matrx 2) drew numbered and bulleted lists with no markers.
|
|
12
|
+
|
|
13
|
+
**Consumer action:** `@import "@ai-matrx/rich-content/styles.css"` once; matrx-frontend can then drop its copy of these rules.
|
|
14
|
+
|
|
3
15
|
## 0.2.37
|
|
4
16
|
|
|
5
17
|
- `space_build_result`, `space_database_design` and `space_notion_import` join the FE-synthesized and shape block types: the Spaces agents' answers (`spaces.build`, `spaces.design_database`, `spaces.move_in`) are registered kinds now, rendered by one compiled component each instead of the generic viewer.
|
|
@@ -34,6 +34,7 @@ const SELECTION_ACTION_MODES = {
|
|
|
34
34
|
"selection:format-tasks": ["edit"],
|
|
35
35
|
"selection:format-codeblock": ["edit"],
|
|
36
36
|
"selection:format-variable": ["edit"],
|
|
37
|
+
"selection:format-color": ["edit"],
|
|
37
38
|
// Annotations (the annotation sidecar)
|
|
38
39
|
"selection:highlight-yellow": HIGHLIGHT,
|
|
39
40
|
"selection:highlight-green": HIGHLIGHT,
|
package/dist/styles.css
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* @ai-matrx/rich-content's own structural CSS: what its rendered output needs in any app, so
|
|
2
|
+
a host imports this once (`@import "@ai-matrx/rich-content/styles.css"`) instead of copying rules.
|
|
3
|
+
|
|
4
|
+
Rendered-markdown list markers by nesting depth, on the stable `matrx-md-ul` / `matrx-md-ol`
|
|
5
|
+
classes every markdown <ul>/<ol> carries. Plain (unlayered) CSS so it wins over Tailwind's
|
|
6
|
+
Preflight reset; every list carries the class, so the descendant selectors out-specify a
|
|
7
|
+
deeper list's own base rule:
|
|
8
|
+
ul → L1 disc · L2 hollow circle · L3+ dash
|
|
9
|
+
ol → L1 decimal · L2 lower-roman · L3+ lower-alpha */
|
|
10
|
+
.matrx-md-ul {
|
|
11
|
+
list-style-type: disc;
|
|
12
|
+
}
|
|
13
|
+
.matrx-md-ul ul {
|
|
14
|
+
list-style-type: circle;
|
|
15
|
+
}
|
|
16
|
+
.matrx-md-ul ul ul {
|
|
17
|
+
list-style-type: "- ";
|
|
18
|
+
}
|
|
19
|
+
.matrx-md-ol {
|
|
20
|
+
list-style-type: decimal;
|
|
21
|
+
}
|
|
22
|
+
.matrx-md-ol ol {
|
|
23
|
+
list-style-type: lower-roman;
|
|
24
|
+
}
|
|
25
|
+
.matrx-md-ol ol ol {
|
|
26
|
+
list-style-type: lower-alpha;
|
|
27
|
+
}
|
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.39",
|
|
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
|
-
"@ai-matrx/alchemy": "latest",
|
|
135
133
|
"@ai-matrx/canvas": "latest",
|
|
136
134
|
"@ai-matrx/content-ir": "latest",
|
|
135
|
+
"@ai-matrx/design-system": "latest",
|
|
136
|
+
"@ai-matrx/alchemy": "latest",
|
|
137
137
|
"@ai-matrx/content-ir-react": "latest",
|
|
138
138
|
"@ai-matrx/data": "latest",
|
|
139
|
-
"@ai-matrx/diff": "latest",
|
|
140
|
-
"@ai-matrx/design-system": "latest",
|
|
141
139
|
"@ai-matrx/kit": "latest",
|
|
142
|
-
"@ai-matrx/media": "latest",
|
|
143
140
|
"@ai-matrx/icons": "latest",
|
|
141
|
+
"@ai-matrx/diff": "latest",
|
|
142
|
+
"@ai-matrx/media": "latest",
|
|
144
143
|
"@ai-matrx/print": "latest",
|
|
145
144
|
"@ai-matrx/records": "latest",
|
|
146
145
|
"@ai-matrx/records-ui": "latest",
|
|
147
|
-
"@ai-matrx/tap-target": "latest"
|
|
146
|
+
"@ai-matrx/tap-target": "latest",
|
|
147
|
+
"@ai-matrx/agents": "latest"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
150
|
"react": ">=19.0.0",
|