@octanejs/lexical 0.1.3 → 0.1.4
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/lexical",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"octane": {
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"@lexical/yjs": "0.46.0",
|
|
95
95
|
"lexical": "0.46.0",
|
|
96
96
|
"yjs": "^13.6.0",
|
|
97
|
-
"@octanejs/floating-ui": "0.1.
|
|
98
|
-
"octane": "0.1.
|
|
97
|
+
"@octanejs/floating-ui": "0.1.4",
|
|
98
|
+
"octane": "0.1.5"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@lexical/react": "0.46.0",
|
|
@@ -12,12 +12,12 @@ export function AutoLinkPlugin(props) {
|
|
|
12
12
|
const onChange = props.onChange;
|
|
13
13
|
const excludeParents = props.excludeParents;
|
|
14
14
|
|
|
15
|
-
//
|
|
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
|
-
//
|
|
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,
|