@ai-matrx/rich-editor 0.2.8 → 0.2.9

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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.9
4
+
5
+ - Outline "Copy link" shows ONE toast (AP-2): the words ("Link to … copied.") ride the kit copy instead
6
+ of a second toast after the kit's own "Text copied to clipboard!".
7
+
8
+ ### Consumer action
9
+
10
+ - None required.
11
+
3
12
  ## 0.2.8
4
13
 
5
14
  - The REAL root cause of "no Bold in notes Split's selection toolbar": the package declares `sideEffects: ["**/*.css"]`, so 0.2.7's bare `import "./format-actions"` was tree-shaken out of the app bundle (the module was present in the tarball and the jest run, absent in the browser). Textarea and Source hosts now call `ensureFormatActions()` (a used binding keeps the module and its provider declaration), and `format-actions` is listed in `sideEffects` as well.
@@ -15,8 +15,7 @@ function OutlinePanel({
15
15
  const minLevel = Math.min(...entries.map((entry) => entry.level), 6);
16
16
  const copyLink = async (entry) => {
17
17
  const url = `${window.location.origin}${window.location.pathname}${window.location.search}#${entry.slug}`;
18
- if (!await copyText(url, void 0, "Copy failed \u2014 your browser blocked clipboard access.")) return;
19
- toast.success(`Link to \u201C${entry.text}\u201D copied.`);
18
+ if (!await copyText(url, `Link to \u201C${entry.text}\u201D copied.`, "Copy failed \u2014 your browser blocked clipboard access.")) return;
20
19
  };
21
20
  return /* @__PURE__ */ jsxs("nav", { "aria-label": "Outline", className: cn("flex h-full flex-col overflow-hidden", className), children: [
22
21
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-3 py-2 text-xs font-medium uppercase tracking-wide text-muted-foreground", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/rich-editor",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
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/agents": "latest",
93
94
  "@ai-matrx/alchemy": "latest",
94
95
  "@ai-matrx/content-ir": "latest",
95
96
  "@ai-matrx/design-system": "latest",
96
- "@ai-matrx/kit": "latest",
97
97
  "@ai-matrx/print": "latest",
98
- "@ai-matrx/rich-content": "latest",
99
- "@ai-matrx/agents": "latest"
98
+ "@ai-matrx/kit": "latest",
99
+ "@ai-matrx/rich-content": "latest"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "react": ">=19.0.0",