lexical 0.31.2-nightly.20250520.0 → 0.31.2
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 +2 -2
- package/Lexical.dev.mjs +2 -2
- package/Lexical.prod.js +1 -1
- package/Lexical.prod.mjs +1 -1
- package/nodes/LexicalElementNode.d.ts +1 -0
- package/package.json +1 -1
package/Lexical.dev.js
CHANGED
|
@@ -8555,7 +8555,7 @@ class ElementDOMSlot {
|
|
|
8555
8555
|
function indexPath(root, child) {
|
|
8556
8556
|
const path = [];
|
|
8557
8557
|
let node = child;
|
|
8558
|
-
for (; node !== root && node !== null; node =
|
|
8558
|
+
for (; node !== root && node !== null; node = node.parentNode) {
|
|
8559
8559
|
let i = 0;
|
|
8560
8560
|
for (let sibling = node.previousSibling; sibling !== null; sibling = sibling.previousSibling) {
|
|
8561
8561
|
i++;
|
|
@@ -10456,7 +10456,7 @@ class LexicalEditor {
|
|
|
10456
10456
|
};
|
|
10457
10457
|
}
|
|
10458
10458
|
}
|
|
10459
|
-
LexicalEditor.version = "0.31.2
|
|
10459
|
+
LexicalEditor.version = "0.31.2+dev.cjs";
|
|
10460
10460
|
|
|
10461
10461
|
let keyCounter = 1;
|
|
10462
10462
|
function resetRandomKey() {
|
package/Lexical.dev.mjs
CHANGED
|
@@ -8553,7 +8553,7 @@ class ElementDOMSlot {
|
|
|
8553
8553
|
function indexPath(root, child) {
|
|
8554
8554
|
const path = [];
|
|
8555
8555
|
let node = child;
|
|
8556
|
-
for (; node !== root && node !== null; node =
|
|
8556
|
+
for (; node !== root && node !== null; node = node.parentNode) {
|
|
8557
8557
|
let i = 0;
|
|
8558
8558
|
for (let sibling = node.previousSibling; sibling !== null; sibling = sibling.previousSibling) {
|
|
8559
8559
|
i++;
|
|
@@ -10454,7 +10454,7 @@ class LexicalEditor {
|
|
|
10454
10454
|
};
|
|
10455
10455
|
}
|
|
10456
10456
|
}
|
|
10457
|
-
LexicalEditor.version = "0.31.2
|
|
10457
|
+
LexicalEditor.version = "0.31.2+dev.esm";
|
|
10458
10458
|
|
|
10459
10459
|
let keyCounter = 1;
|
|
10460
10460
|
function resetRandomKey() {
|