@lexical/code-core 0.42.1-nightly.20260407.0 → 0.42.1-nightly.20260409.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.
@@ -77,7 +77,6 @@ function $getStartOfCodeInLine(anchor, offset) {
77
77
  let node = anchor;
78
78
  let nodeOffset = offset;
79
79
  let nodeTextContent = anchor.getTextContent();
80
- // eslint-disable-next-line no-constant-condition
81
80
  while (true) {
82
81
  if (nodeOffset === 0) {
83
82
  node = node.getPreviousSibling();
@@ -140,7 +139,6 @@ function findNextNonBlankInLine(anchor, offset) {
140
139
  let nodeOffset = offset;
141
140
  let nodeTextContent = anchor.getTextContent();
142
141
  let nodeTextContentSize = anchor.getTextContentSize();
143
- // eslint-disable-next-line no-constant-condition
144
142
  while (true) {
145
143
  if (!$isCodeHighlightNode(node) || nodeOffset === nodeTextContentSize) {
146
144
  node = node.getNextSibling();
@@ -407,7 +405,6 @@ class CodeNode extends lexical.ElementNode {
407
405
  if (lexical.$isTextNode(firstSelectionNode)) {
408
406
  let node = $getFirstCodeNodeOfLine(firstSelectionNode);
409
407
  const insertNodes = [];
410
- // eslint-disable-next-line no-constant-condition
411
408
  while (true) {
412
409
  if (lexical.$isTabNode(node)) {
413
410
  insertNodes.push(lexical.$createTabNode());
@@ -75,7 +75,6 @@ function $getStartOfCodeInLine(anchor, offset) {
75
75
  let node = anchor;
76
76
  let nodeOffset = offset;
77
77
  let nodeTextContent = anchor.getTextContent();
78
- // eslint-disable-next-line no-constant-condition
79
78
  while (true) {
80
79
  if (nodeOffset === 0) {
81
80
  node = node.getPreviousSibling();
@@ -138,7 +137,6 @@ function findNextNonBlankInLine(anchor, offset) {
138
137
  let nodeOffset = offset;
139
138
  let nodeTextContent = anchor.getTextContent();
140
139
  let nodeTextContentSize = anchor.getTextContentSize();
141
- // eslint-disable-next-line no-constant-condition
142
140
  while (true) {
143
141
  if (!$isCodeHighlightNode(node) || nodeOffset === nodeTextContentSize) {
144
142
  node = node.getNextSibling();
@@ -405,7 +403,6 @@ class CodeNode extends ElementNode {
405
403
  if ($isTextNode(firstSelectionNode)) {
406
404
  let node = $getFirstCodeNodeOfLine(firstSelectionNode);
407
405
  const insertNodes = [];
408
- // eslint-disable-next-line no-constant-condition
409
406
  while (true) {
410
407
  if ($isTabNode(node)) {
411
408
  insertNodes.push($createTabNode());
@@ -104,4 +104,4 @@ declare export class CodeNode extends ElementNode {
104
104
  getLanguage(): string | void;
105
105
  }
106
106
 
107
- declare export var CodeExtension: LexicalExtension<ExtensionConfigBase, "@lexical/code", mixed, mixed>;
107
+ declare export var CodeExtension: LexicalExtension<ExtensionConfigBase, "@lexical/code", unknown, unknown>;
package/package.json CHANGED
@@ -8,11 +8,11 @@
8
8
  "code"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.42.1-nightly.20260407.0",
11
+ "version": "0.42.1-nightly.20260409.0",
12
12
  "main": "LexicalCodeCore.js",
13
13
  "types": "index.d.ts",
14
14
  "dependencies": {
15
- "lexical": "0.42.1-nightly.20260407.0"
15
+ "lexical": "0.42.1-nightly.20260409.0"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",