lexical 0.35.1-nightly.20250905.0 → 0.35.1-nightly.20250908.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.
package/Lexical.dev.js CHANGED
@@ -497,8 +497,6 @@ function initMutationObserver(editor) {
497
497
  * ```
498
498
  */
499
499
 
500
- // eslint-disable-next-line @typescript-eslint/ban-types
501
-
502
500
  /* eslint-disable @typescript-eslint/no-explicit-any */
503
501
 
504
502
  /* eslint-enable @typescript-eslint/no-explicit-any */
@@ -3149,7 +3147,10 @@ function buildImportMap(importMap) {
3149
3147
  return importMap;
3150
3148
  }
3151
3149
  class LexicalNode {
3152
- // Allow us to look up the type including static props
3150
+ /**
3151
+ * @internal
3152
+ * Allow us to look up the type including static props
3153
+ */
3153
3154
 
3154
3155
  /** @internal */
3155
3156
 
@@ -4208,6 +4209,8 @@ function insertRangeAfter(node, firstToInsert, lastToInsert) {
4208
4209
 
4209
4210
  /** @noInheritDoc */
4210
4211
  class LineBreakNode extends LexicalNode {
4212
+ /** @internal */
4213
+
4211
4214
  static getType() {
4212
4215
  return 'linebreak';
4213
4216
  }
@@ -4430,6 +4433,8 @@ class TextNode extends LexicalNode {
4430
4433
 
4431
4434
  /** @internal */
4432
4435
 
4436
+ /** @internal */
4437
+
4433
4438
  static getType() {
4434
4439
  return 'text';
4435
4440
  }
@@ -7079,7 +7084,7 @@ const doesContainEmoji = (() => {
7079
7084
  test('\ud83d\udc4d')) {
7080
7085
  return test;
7081
7086
  }
7082
- } catch (e) {
7087
+ } catch (_e) {
7083
7088
  // SyntaxError
7084
7089
  }
7085
7090
  // fallback, surrogate pair already checked
@@ -8850,6 +8855,8 @@ class ElementNode extends LexicalNode {
8850
8855
 
8851
8856
  /** @internal */
8852
8857
 
8858
+ /** @internal */
8859
+
8853
8860
  constructor(key) {
8854
8861
  super(key);
8855
8862
  this.__first = null;
@@ -9465,6 +9472,8 @@ function isPointRemoved(point, nodesToRemoveKeySet, nodesToInsertKeySet) {
9465
9472
  /** @noInheritDoc */
9466
9473
  // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
9467
9474
  class DecoratorNode extends LexicalNode {
9475
+ /** @internal */
9476
+
9468
9477
  /**
9469
9478
  * The returned value is added to the LexicalEditor._decorators
9470
9479
  */
@@ -9710,6 +9719,7 @@ const FOCUS_TAG = 'focus';
9710
9719
 
9711
9720
 
9712
9721
  // TODO: Cleanup ArtificialNode__DO_NOT_USE #5966
9722
+ /** @internal */
9713
9723
  class ArtificialNode__DO_NOT_USE extends ElementNode {
9714
9724
  static getType() {
9715
9725
  return 'artificial';
@@ -9731,6 +9741,8 @@ class ArtificialNode__DO_NOT_USE extends ElementNode {
9731
9741
 
9732
9742
  /** @noInheritDoc */
9733
9743
  class ParagraphNode extends ElementNode {
9744
+ /** @internal */
9745
+
9734
9746
  static getType() {
9735
9747
  return 'paragraph';
9736
9748
  }
@@ -10054,6 +10066,8 @@ function createEditor(editorConfig) {
10054
10066
  return editor;
10055
10067
  }
10056
10068
  class LexicalEditor {
10069
+ /** @internal */
10070
+
10057
10071
  /** The version with build identifiers for this editor (since 0.17.1) */
10058
10072
 
10059
10073
  /** @internal */
@@ -10726,7 +10740,7 @@ class LexicalEditor {
10726
10740
  };
10727
10741
  }
10728
10742
  }
10729
- LexicalEditor.version = "0.35.1-nightly.20250905.0+dev.cjs";
10743
+ LexicalEditor.version = "0.35.1-nightly.20250908.0+dev.cjs";
10730
10744
 
10731
10745
  let pendingNodeToClone = null;
10732
10746
  function setPendingNodeToClone(pendingNode) {
@@ -10785,7 +10799,7 @@ function isSelectionWithinEditor(editor, anchorDOM, focusDOM) {
10785
10799
  return rootElement !== null && rootElement.contains(anchorDOM) && rootElement.contains(focusDOM) &&
10786
10800
  // Ignore if selection is within nested editor
10787
10801
  anchorDOM !== null && !isSelectionCapturedInDecoratorInput(anchorDOM) && getNearestEditorFromDOMNode(anchorDOM) === editor;
10788
- } catch (error) {
10802
+ } catch (_error) {
10789
10803
  return false;
10790
10804
  }
10791
10805
  }
@@ -13024,8 +13038,8 @@ function $comparePointCaretNext(a, b) {
13024
13038
  }
13025
13039
 
13026
13040
  /**
13027
- * Return the ordering of siblings in a CommonAncestorResultBranch
13028
- * @param branch Returns -1 if a precedes b, 1 otherwise
13041
+ * Return the ordering of siblings in a {@link CommonAncestorResultBranch}
13042
+ * @param compare Returns -1 if a precedes b, 1 otherwise
13029
13043
  */
13030
13044
  function $getCommonAncestorResultBranchOrder(compare) {
13031
13045
  const {
@@ -13537,7 +13551,7 @@ function $getChildCaretAtIndex(parent, index, direction) {
13537
13551
  * -> P2
13538
13552
  * returns T2 for node T1, P2 for node T2, and null for node P2.
13539
13553
  * @param startCaret The initial caret
13540
- * @param rootMode The root mode, 'root' ('default') or 'shadowRoot'
13554
+ * @param rootMode The root mode, 'root' (default) or 'shadowRoot'
13541
13555
  * @returns An array (tuple) containing the found caret and the depth difference, or null, if this node doesn't exist.
13542
13556
  */
13543
13557
  function $getAdjacentSiblingOrParentSiblingCaret(startCaret, rootMode = 'root') {
package/Lexical.dev.mjs CHANGED
@@ -495,8 +495,6 @@ function initMutationObserver(editor) {
495
495
  * ```
496
496
  */
497
497
 
498
- // eslint-disable-next-line @typescript-eslint/ban-types
499
-
500
498
  /* eslint-disable @typescript-eslint/no-explicit-any */
501
499
 
502
500
  /* eslint-enable @typescript-eslint/no-explicit-any */
@@ -3147,7 +3145,10 @@ function buildImportMap(importMap) {
3147
3145
  return importMap;
3148
3146
  }
3149
3147
  class LexicalNode {
3150
- // Allow us to look up the type including static props
3148
+ /**
3149
+ * @internal
3150
+ * Allow us to look up the type including static props
3151
+ */
3151
3152
 
3152
3153
  /** @internal */
3153
3154
 
@@ -4206,6 +4207,8 @@ function insertRangeAfter(node, firstToInsert, lastToInsert) {
4206
4207
 
4207
4208
  /** @noInheritDoc */
4208
4209
  class LineBreakNode extends LexicalNode {
4210
+ /** @internal */
4211
+
4209
4212
  static getType() {
4210
4213
  return 'linebreak';
4211
4214
  }
@@ -4428,6 +4431,8 @@ class TextNode extends LexicalNode {
4428
4431
 
4429
4432
  /** @internal */
4430
4433
 
4434
+ /** @internal */
4435
+
4431
4436
  static getType() {
4432
4437
  return 'text';
4433
4438
  }
@@ -7077,7 +7082,7 @@ const doesContainEmoji = (() => {
7077
7082
  test('\ud83d\udc4d')) {
7078
7083
  return test;
7079
7084
  }
7080
- } catch (e) {
7085
+ } catch (_e) {
7081
7086
  // SyntaxError
7082
7087
  }
7083
7088
  // fallback, surrogate pair already checked
@@ -8848,6 +8853,8 @@ class ElementNode extends LexicalNode {
8848
8853
 
8849
8854
  /** @internal */
8850
8855
 
8856
+ /** @internal */
8857
+
8851
8858
  constructor(key) {
8852
8859
  super(key);
8853
8860
  this.__first = null;
@@ -9463,6 +9470,8 @@ function isPointRemoved(point, nodesToRemoveKeySet, nodesToInsertKeySet) {
9463
9470
  /** @noInheritDoc */
9464
9471
  // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
9465
9472
  class DecoratorNode extends LexicalNode {
9473
+ /** @internal */
9474
+
9466
9475
  /**
9467
9476
  * The returned value is added to the LexicalEditor._decorators
9468
9477
  */
@@ -9708,6 +9717,7 @@ const FOCUS_TAG = 'focus';
9708
9717
 
9709
9718
 
9710
9719
  // TODO: Cleanup ArtificialNode__DO_NOT_USE #5966
9720
+ /** @internal */
9711
9721
  class ArtificialNode__DO_NOT_USE extends ElementNode {
9712
9722
  static getType() {
9713
9723
  return 'artificial';
@@ -9729,6 +9739,8 @@ class ArtificialNode__DO_NOT_USE extends ElementNode {
9729
9739
 
9730
9740
  /** @noInheritDoc */
9731
9741
  class ParagraphNode extends ElementNode {
9742
+ /** @internal */
9743
+
9732
9744
  static getType() {
9733
9745
  return 'paragraph';
9734
9746
  }
@@ -10052,6 +10064,8 @@ function createEditor(editorConfig) {
10052
10064
  return editor;
10053
10065
  }
10054
10066
  class LexicalEditor {
10067
+ /** @internal */
10068
+
10055
10069
  /** The version with build identifiers for this editor (since 0.17.1) */
10056
10070
 
10057
10071
  /** @internal */
@@ -10724,7 +10738,7 @@ class LexicalEditor {
10724
10738
  };
10725
10739
  }
10726
10740
  }
10727
- LexicalEditor.version = "0.35.1-nightly.20250905.0+dev.esm";
10741
+ LexicalEditor.version = "0.35.1-nightly.20250908.0+dev.esm";
10728
10742
 
10729
10743
  let pendingNodeToClone = null;
10730
10744
  function setPendingNodeToClone(pendingNode) {
@@ -10783,7 +10797,7 @@ function isSelectionWithinEditor(editor, anchorDOM, focusDOM) {
10783
10797
  return rootElement !== null && rootElement.contains(anchorDOM) && rootElement.contains(focusDOM) &&
10784
10798
  // Ignore if selection is within nested editor
10785
10799
  anchorDOM !== null && !isSelectionCapturedInDecoratorInput(anchorDOM) && getNearestEditorFromDOMNode(anchorDOM) === editor;
10786
- } catch (error) {
10800
+ } catch (_error) {
10787
10801
  return false;
10788
10802
  }
10789
10803
  }
@@ -13022,8 +13036,8 @@ function $comparePointCaretNext(a, b) {
13022
13036
  }
13023
13037
 
13024
13038
  /**
13025
- * Return the ordering of siblings in a CommonAncestorResultBranch
13026
- * @param branch Returns -1 if a precedes b, 1 otherwise
13039
+ * Return the ordering of siblings in a {@link CommonAncestorResultBranch}
13040
+ * @param compare Returns -1 if a precedes b, 1 otherwise
13027
13041
  */
13028
13042
  function $getCommonAncestorResultBranchOrder(compare) {
13029
13043
  const {
@@ -13535,7 +13549,7 @@ function $getChildCaretAtIndex(parent, index, direction) {
13535
13549
  * -> P2
13536
13550
  * returns T2 for node T1, P2 for node T2, and null for node P2.
13537
13551
  * @param startCaret The initial caret
13538
- * @param rootMode The root mode, 'root' ('default') or 'shadowRoot'
13552
+ * @param rootMode The root mode, 'root' (default) or 'shadowRoot'
13539
13553
  * @returns An array (tuple) containing the found caret and the depth difference, or null, if this node doesn't exist.
13540
13554
  */
13541
13555
  function $getAdjacentSiblingOrParentSiblingCaret(startCaret, rootMode = 'root') {