@lexical/code 0.2.7 → 0.2.8
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/LexicalCode.dev.js +1 -2
- package/package.json +4 -4
package/LexicalCode.dev.js
CHANGED
|
@@ -60,8 +60,7 @@ class CodeHighlightNode extends lexical.TextNode {
|
|
|
60
60
|
return element;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
updateDOM(
|
|
64
|
-
prevNode, dom, config) {
|
|
63
|
+
updateDOM(prevNode, dom, config) {
|
|
65
64
|
const update = super.updateDOM(prevNode, dom, config);
|
|
66
65
|
const prevClassName = getHighlightThemeClass(config.theme, prevNode.__highlightType);
|
|
67
66
|
const nextClassName = getHighlightThemeClass(config.theme, this.__highlightType);
|
package/package.json
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"code"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.2.
|
|
12
|
-
"main": "LexicalCode.
|
|
11
|
+
"version": "0.2.8",
|
|
12
|
+
"main": "LexicalCode.ts",
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"lexical": "0.2.
|
|
14
|
+
"lexical": "0.2.8"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@lexical/utils": "0.2.
|
|
17
|
+
"@lexical/utils": "0.2.8",
|
|
18
18
|
"prismjs": "^1.27.0"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|