@octanejs/lexical 0.1.3 → 0.1.5

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/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@octanejs/lexical",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
+ "engines": {
7
+ "node": ">=22"
8
+ },
6
9
  "octane": {
7
10
  "hookSlots": {
8
11
  "manual": [
@@ -94,8 +97,10 @@
94
97
  "@lexical/yjs": "0.46.0",
95
98
  "lexical": "0.46.0",
96
99
  "yjs": "^13.6.0",
97
- "@octanejs/floating-ui": "0.1.3",
98
- "octane": "0.1.4"
100
+ "@octanejs/floating-ui": "0.1.5"
101
+ },
102
+ "peerDependencies": {
103
+ "octane": "0.1.6"
99
104
  },
100
105
  "devDependencies": {
101
106
  "@lexical/react": "0.46.0",
@@ -103,7 +108,8 @@
103
108
  "esbuild": "^0.28.1",
104
109
  "react": "^19.2.0",
105
110
  "react-dom": "^19.2.0",
106
- "vitest": "^4.1.9"
111
+ "vitest": "^4.1.9",
112
+ "octane": "0.1.6"
107
113
  },
108
114
  "scripts": {
109
115
  "test": "vitest run"
@@ -12,12 +12,12 @@ export function AutoLinkPlugin(props) {
12
12
  const onChange = props.onChange;
13
13
  const excludeParents = props.excludeParents;
14
14
 
15
- // No deps — runs every render (matches @lexical/react).
15
+ // Explicit every-render check (matches @lexical/react).
16
16
  useEffect(() => {
17
17
  if (!editor.hasNodes([AutoLinkNode])) {
18
18
  invariant(false, 'LexicalAutoLinkPlugin: AutoLinkNode not registered on editor');
19
19
  }
20
- });
20
+ }, null);
21
21
 
22
22
  useEffect(
23
23
  () => registerAutoLink(editor, {
@@ -10,12 +10,12 @@ export function LinkPlugin(props) {
10
10
  const validateUrl = props.validateUrl;
11
11
  const attributes = props.attributes;
12
12
 
13
- // No deps — runs every render (matches @lexical/react).
13
+ // Explicit every-render check (matches @lexical/react).
14
14
  useEffect(() => {
15
15
  if (!editor.hasNodes([LinkNode])) {
16
16
  throw new Error('LinkPlugin: LinkNode not registered on editor');
17
17
  }
18
- });
18
+ }, null);
19
19
 
20
20
  useEffect(() => registerLink(editor, namedSignals({ attributes, validateUrl })), [
21
21
  editor,