@ai-matrx/rich-editor 0.2.0 → 0.2.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.
@@ -1,4 +1,5 @@
1
- const pending = /* @__PURE__ */ new Map();
1
+ const PENDING_KEY = /* @__PURE__ */ Symbol.for("ai-matrx.rich-editor.in-place-caret-handoff");
2
+ const pending = globalThis[PENDING_KEY] ??= /* @__PURE__ */ new Map();
2
3
  function handInPlaceCaret(key, caret) {
3
4
  if (caret) pending.set(key, caret);
4
5
  else pending.delete(key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/rich-editor",
3
- "version": "0.2.0",
3
+ "version": "0.2.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",
@@ -89,12 +89,12 @@
89
89
  "github-slugger": "^2.0.0",
90
90
  "lucide-react": "^1.48.0",
91
91
  "@ai-matrx/agents": "latest",
92
- "@ai-matrx/design-system": "latest",
92
+ "@ai-matrx/alchemy": "latest",
93
93
  "@ai-matrx/content-ir": "latest",
94
- "@ai-matrx/print": "latest",
94
+ "@ai-matrx/design-system": "latest",
95
95
  "@ai-matrx/kit": "latest",
96
- "@ai-matrx/rich-content": "latest",
97
- "@ai-matrx/alchemy": "latest"
96
+ "@ai-matrx/print": "latest",
97
+ "@ai-matrx/rich-content": "latest"
98
98
  },
99
99
  "peerDependencies": {
100
100
  "react": ">=19.0.0",