@lobehub/editor 4.9.1 → 4.9.3
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": "@lobehub/editor",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.3",
|
|
4
4
|
"description": "A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -78,17 +78,17 @@
|
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@floating-ui/dom": "^1.7.4",
|
|
80
80
|
"@floating-ui/react": "^0.27.16",
|
|
81
|
-
"@lexical/clipboard": "
|
|
82
|
-
"@lexical/code-core": "
|
|
83
|
-
"@lexical/dragon": "
|
|
84
|
-
"@lexical/headless": "
|
|
85
|
-
"@lexical/history": "
|
|
86
|
-
"@lexical/link": "
|
|
87
|
-
"@lexical/list": "
|
|
88
|
-
"@lexical/rich-text": "
|
|
89
|
-
"@lexical/selection": "
|
|
90
|
-
"@lexical/table": "
|
|
91
|
-
"@lexical/utils": "
|
|
81
|
+
"@lexical/clipboard": "0.42.0",
|
|
82
|
+
"@lexical/code-core": "0.42.0",
|
|
83
|
+
"@lexical/dragon": "0.42.0",
|
|
84
|
+
"@lexical/headless": "0.42.0",
|
|
85
|
+
"@lexical/history": "0.42.0",
|
|
86
|
+
"@lexical/link": "0.42.0",
|
|
87
|
+
"@lexical/list": "0.42.0",
|
|
88
|
+
"@lexical/rich-text": "0.42.0",
|
|
89
|
+
"@lexical/selection": "0.42.0",
|
|
90
|
+
"@lexical/table": "0.42.0",
|
|
91
|
+
"@lexical/utils": "0.42.0",
|
|
92
92
|
"@shikijs/core": "^3.20.0",
|
|
93
93
|
"@shikijs/engine-javascript": "^3.20.0",
|
|
94
94
|
"@xmldom/xmldom": "^0.8.11",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"eventemitter3": "^5.0.1",
|
|
100
100
|
"fuse.js": "^7.1.0",
|
|
101
101
|
"katex": "^0.16.27",
|
|
102
|
-
"lexical": "
|
|
102
|
+
"lexical": "0.42.0",
|
|
103
103
|
"lucide-react": "^0.562.0",
|
|
104
104
|
"mermaid": "^11.13.0",
|
|
105
105
|
"polished": "^4.3.1",
|
|
@@ -10,19 +10,15 @@ const SUPPORTED_VERSION = '0.42.0';
|
|
|
10
10
|
|
|
11
11
|
const FILE_HASHES = {
|
|
12
12
|
'Lexical.dev.js': {
|
|
13
|
-
original: 'a7627f790028c3d6cd13b28bb0efdd8e5b48f85a1f0d62df5696e52c8b5f790d',
|
|
14
13
|
patched: '7c81a9785b397dc09ce0ecc9f3126d3e4903cdfd12d5c51318965ed74b0e3ccb',
|
|
15
14
|
},
|
|
16
15
|
'Lexical.dev.mjs': {
|
|
17
|
-
original: '0dd55914d1f967694a77f4fa842ecbbdc9376f7832b8cca380a213e30c4153b3',
|
|
18
16
|
patched: '880f22f2ec2d873e1699766de39edce5123b4730009bb88bb33d7e4da98a4ad9',
|
|
19
17
|
},
|
|
20
18
|
'Lexical.prod.js': {
|
|
21
|
-
original: 'dea32eb95962fa45df8251a42144f63821f7745f7dcfcc24d63f33d9cfb79a76',
|
|
22
19
|
patched: '9f97867340b84853cf82bbd2d60ef9f944ee61ef058daa37007b820c2780a103',
|
|
23
20
|
},
|
|
24
21
|
'Lexical.prod.mjs': {
|
|
25
|
-
original: 'b4c3af0707687a7d14519233cf9d373cb62261a281be6239649a4a1b36000e4b',
|
|
26
22
|
patched: 'f7b2993582b2cc0573ca468373831b17971e0bb7383f5ca8785d4b93ab967c0b',
|
|
27
23
|
},
|
|
28
24
|
};
|
|
@@ -55,11 +51,7 @@ function getContentHashState(content, hashes) {
|
|
|
55
51
|
return { currentHash, normalizedContent, normalizedHash, status: 'patched' };
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
|
|
59
|
-
return { currentHash, normalizedContent, normalizedHash, status: 'original' };
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return { currentHash, normalizedContent, normalizedHash, status: 'unknown' };
|
|
54
|
+
return { currentHash, normalizedContent, normalizedHash, status: 'needs-patch' };
|
|
63
55
|
}
|
|
64
56
|
|
|
65
57
|
function splitLines(text) {
|
|
@@ -220,17 +212,6 @@ function patchLexical() {
|
|
|
220
212
|
throw new Error(`[lobe-editor] Missing patch entry for ${filename}`);
|
|
221
213
|
}
|
|
222
214
|
|
|
223
|
-
if (currentState.status !== 'original') {
|
|
224
|
-
const normalizedHashMessage =
|
|
225
|
-
currentState.currentHash === currentState.normalizedHash
|
|
226
|
-
? ''
|
|
227
|
-
: `; normalized content hash ${currentState.normalizedHash}`;
|
|
228
|
-
|
|
229
|
-
throw new Error(
|
|
230
|
-
`[lobe-editor] Refuse to patch ${filename}: unknown content hash ${currentState.currentHash}${normalizedHashMessage}.`,
|
|
231
|
-
);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
215
|
const patchedContent = applyPatchToContent(currentState.normalizedContent, filePatch);
|
|
235
216
|
const patchedHash = sha256(patchedContent);
|
|
236
217
|
|