@ai-matrx/rich-editor 0.5.0 → 0.5.1

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.1
4
+ ### The toolbar measures its layout width (2026-10-08)
5
+
6
+ - `FormatButtons` folds by the row's layout width (`clientWidth`), not its painted box: in a dialog that opens with a scale animation it measured a shrunken rect and kept only Bold and Italic.
7
+
8
+ Consumer action: none.
9
+
3
10
  ## 0.5.0
4
11
  ### Write behaves like a notes app (2026-10-08)
5
12
 
@@ -133,7 +133,7 @@ function FormatButtons({ resolve, disabled = false, className, size = "sm", vari
133
133
  React.useEffect(() => {
134
134
  const el = rootRef.current;
135
135
  if (!el || typeof ResizeObserver === "undefined") return void 0;
136
- const ro = new ResizeObserver(() => setWidth(el.getBoundingClientRect().width));
136
+ const ro = new ResizeObserver(() => setWidth(el.clientWidth || el.getBoundingClientRect().width));
137
137
  ro.observe(el);
138
138
  return () => ro.disconnect();
139
139
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/rich-editor",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "The AI Matrx editor: Visual (Tiptap), Source (CodeMirror), Preview, the markdown formatting command layer, and edit-in-place — over @ai-matrx/rich-content. Consumers that only render never install it.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -90,13 +90,13 @@
90
90
  "@tiptap/suggestion": "^3.31.3",
91
91
  "github-slugger": "^2.0.0",
92
92
  "lucide-react": "^1.48.0",
93
- "@ai-matrx/alchemy": "latest",
94
93
  "@ai-matrx/agents": "latest",
95
94
  "@ai-matrx/content-ir": "latest",
96
95
  "@ai-matrx/design-system": "latest",
97
96
  "@ai-matrx/kit": "latest",
98
97
  "@ai-matrx/print": "latest",
99
- "@ai-matrx/rich-content": "latest"
98
+ "@ai-matrx/rich-content": "latest",
99
+ "@ai-matrx/alchemy": "latest"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "react": ">=19.0.0",