@ai-matrx/rich-content 0.2.37 → 0.2.40

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,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.40
4
+
5
+ - The selection toolbar's outer strip is `role="group"`, not a second `role=toolbar` wrapped around the real SelectionToolbar: one toolbar on screen.
6
+
7
+ **Consumer action:** none.
8
+
9
+ ## 0.2.39
10
+
11
+ - 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.
12
+
13
+ **Consumer action:** none.
14
+
15
+ ## 0.2.38
16
+
17
+ - `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.
18
+
19
+ **Consumer action:** `@import "@ai-matrx/rich-content/styles.css"` once; matrx-frontend can then drop its copy of these rules.
20
+
3
21
  ## 0.2.37
4
22
 
5
23
  - `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.
@@ -185,10 +185,12 @@ function SelectionToolbarFrame({
185
185
  // ONE row: the split Copy first (copies the selection; markdown and
186
186
  // plain text one click away), then the Alchemy strip (formatting while
187
187
  // editing, highlight / comment / AI while reading).
188
+ // role="group": the inner SelectionToolbar is THE toolbar; a second
189
+ // role=toolbar here made two toolbars nested on screen.
188
190
  /* @__PURE__ */ jsxs(
189
191
  "div",
190
192
  {
191
- role: "toolbar",
193
+ role: "group",
192
194
  "aria-label": "Selection actions",
193
195
  "data-selection-strip": "",
194
196
  className: cn(
@@ -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.37",
3
+ "version": "0.2.40",
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",
@@ -138,13 +138,13 @@
138
138
  "@ai-matrx/data": "latest",
139
139
  "@ai-matrx/diff": "latest",
140
140
  "@ai-matrx/design-system": "latest",
141
+ "@ai-matrx/icons": "latest",
141
142
  "@ai-matrx/kit": "latest",
142
143
  "@ai-matrx/media": "latest",
143
- "@ai-matrx/icons": "latest",
144
- "@ai-matrx/print": "latest",
145
144
  "@ai-matrx/records": "latest",
146
- "@ai-matrx/records-ui": "latest",
147
- "@ai-matrx/tap-target": "latest"
145
+ "@ai-matrx/print": "latest",
146
+ "@ai-matrx/tap-target": "latest",
147
+ "@ai-matrx/records-ui": "latest"
148
148
  },
149
149
  "peerDependencies": {
150
150
  "react": ">=19.0.0",