@lexical/code 0.29.1-nightly.20250407.0 → 0.30.0

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.
@@ -691,7 +691,7 @@ function codeNodeTransform(node, editor, tokenizer) {
691
691
  }
692
692
 
693
693
  // Using nested update call to pass `skipTransforms` since we don't want
694
- // each individual codehighlight node to be transformed again as it's already
694
+ // each individual CodeHighlightNode to be transformed again as it's already
695
695
  // in its final state
696
696
  editor.update(() => {
697
697
  $updateAndRetainSelection(nodeKey, () => {
@@ -836,7 +836,7 @@ function getDiffRange(prevNodes, nextNodes) {
836
836
  };
837
837
  }
838
838
  function isEqual(nodeA, nodeB) {
839
- // Only checking for code higlight nodes, tabs and linebreaks. If it's regular text node
839
+ // Only checking for code highlight nodes, tabs and linebreaks. If it's regular text node
840
840
  // returning false so that it's transformed into code highlight node
841
841
  return $isCodeHighlightNode(nodeA) && $isCodeHighlightNode(nodeB) && nodeA.__text === nodeB.__text && nodeA.__highlightType === nodeB.__highlightType || lexical.$isTabNode(nodeA) && lexical.$isTabNode(nodeB) || lexical.$isLineBreakNode(nodeA) && lexical.$isLineBreakNode(nodeB);
842
842
  }
@@ -993,7 +993,7 @@ function $handleShiftLines(type, event) {
993
993
  }
994
994
  if (!event.altKey) {
995
995
  // Handle moving selection out of the code block, given there are no
996
- // sibling thats can natively take the selection.
996
+ // siblings that can natively take the selection.
997
997
  if (selection.isCollapsed()) {
998
998
  const codeNode = anchorNode.getParentOrThrow();
999
999
  if (arrowIsUp && anchorOffset === 0 && anchorNode.getPreviousSibling() === null) {
@@ -689,7 +689,7 @@ function codeNodeTransform(node, editor, tokenizer) {
689
689
  }
690
690
 
691
691
  // Using nested update call to pass `skipTransforms` since we don't want
692
- // each individual codehighlight node to be transformed again as it's already
692
+ // each individual CodeHighlightNode to be transformed again as it's already
693
693
  // in its final state
694
694
  editor.update(() => {
695
695
  $updateAndRetainSelection(nodeKey, () => {
@@ -834,7 +834,7 @@ function getDiffRange(prevNodes, nextNodes) {
834
834
  };
835
835
  }
836
836
  function isEqual(nodeA, nodeB) {
837
- // Only checking for code higlight nodes, tabs and linebreaks. If it's regular text node
837
+ // Only checking for code highlight nodes, tabs and linebreaks. If it's regular text node
838
838
  // returning false so that it's transformed into code highlight node
839
839
  return $isCodeHighlightNode(nodeA) && $isCodeHighlightNode(nodeB) && nodeA.__text === nodeB.__text && nodeA.__highlightType === nodeB.__highlightType || $isTabNode(nodeA) && $isTabNode(nodeB) || $isLineBreakNode(nodeA) && $isLineBreakNode(nodeB);
840
840
  }
@@ -991,7 +991,7 @@ function $handleShiftLines(type, event) {
991
991
  }
992
992
  if (!event.altKey) {
993
993
  // Handle moving selection out of the code block, given there are no
994
- // sibling thats can natively take the selection.
994
+ // siblings that can natively take the selection.
995
995
  if (selection.isCollapsed()) {
996
996
  const codeNode = anchorNode.getParentOrThrow();
997
997
  if (arrowIsUp && anchorOffset === 0 && anchorNode.getPreviousSibling() === null) {
package/package.json CHANGED
@@ -8,12 +8,12 @@
8
8
  "code"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.29.1-nightly.20250407.0",
11
+ "version": "0.30.0",
12
12
  "main": "LexicalCode.js",
13
13
  "types": "index.d.ts",
14
14
  "dependencies": {
15
- "@lexical/utils": "0.29.1-nightly.20250407.0",
16
- "lexical": "0.29.1-nightly.20250407.0",
15
+ "@lexical/utils": "0.30.0",
16
+ "lexical": "0.30.0",
17
17
  "prismjs": "^1.30.0"
18
18
  },
19
19
  "repository": {