lexical 0.27.3-nightly.20250318.0 → 0.28.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 +10 -2
- package/Lexical.dev.mjs +10 -2
- package/Lexical.prod.js +1 -1
- package/Lexical.prod.mjs +1 -1
- package/package.json +1 -1
package/Lexical.dev.js
CHANGED
|
@@ -7701,11 +7701,19 @@ function $applyAllTransforms(editorState, editor) {
|
|
|
7701
7701
|
// new ones caused by element transforms
|
|
7702
7702
|
editor._dirtyLeaves = new Set();
|
|
7703
7703
|
editor._dirtyElements = new Map();
|
|
7704
|
+
|
|
7705
|
+
// The root is always considered intentionally dirty if any attached node
|
|
7706
|
+
// is dirty and by deleting and re-inserting we will apply its transforms
|
|
7707
|
+
// last (e.g. its transform can be used as a sort of "update finalizer")
|
|
7708
|
+
const rootDirty = untransformedDirtyElements.delete('root');
|
|
7709
|
+
if (rootDirty) {
|
|
7710
|
+
untransformedDirtyElements.set('root', true);
|
|
7711
|
+
}
|
|
7704
7712
|
for (const currentUntransformedDirtyElement of untransformedDirtyElements) {
|
|
7705
7713
|
const nodeKey = currentUntransformedDirtyElement[0];
|
|
7706
7714
|
const intentionallyMarkedAsDirty = currentUntransformedDirtyElement[1];
|
|
7707
7715
|
dirtyElements.set(nodeKey, intentionallyMarkedAsDirty);
|
|
7708
|
-
if (
|
|
7716
|
+
if (!intentionallyMarkedAsDirty) {
|
|
7709
7717
|
continue;
|
|
7710
7718
|
}
|
|
7711
7719
|
const node = nodeMap.get(nodeKey);
|
|
@@ -10247,7 +10255,7 @@ class LexicalEditor {
|
|
|
10247
10255
|
};
|
|
10248
10256
|
}
|
|
10249
10257
|
}
|
|
10250
|
-
LexicalEditor.version = "0.
|
|
10258
|
+
LexicalEditor.version = "0.28.0+dev.cjs";
|
|
10251
10259
|
|
|
10252
10260
|
let keyCounter = 1;
|
|
10253
10261
|
function resetRandomKey() {
|
package/Lexical.dev.mjs
CHANGED
|
@@ -7699,11 +7699,19 @@ function $applyAllTransforms(editorState, editor) {
|
|
|
7699
7699
|
// new ones caused by element transforms
|
|
7700
7700
|
editor._dirtyLeaves = new Set();
|
|
7701
7701
|
editor._dirtyElements = new Map();
|
|
7702
|
+
|
|
7703
|
+
// The root is always considered intentionally dirty if any attached node
|
|
7704
|
+
// is dirty and by deleting and re-inserting we will apply its transforms
|
|
7705
|
+
// last (e.g. its transform can be used as a sort of "update finalizer")
|
|
7706
|
+
const rootDirty = untransformedDirtyElements.delete('root');
|
|
7707
|
+
if (rootDirty) {
|
|
7708
|
+
untransformedDirtyElements.set('root', true);
|
|
7709
|
+
}
|
|
7702
7710
|
for (const currentUntransformedDirtyElement of untransformedDirtyElements) {
|
|
7703
7711
|
const nodeKey = currentUntransformedDirtyElement[0];
|
|
7704
7712
|
const intentionallyMarkedAsDirty = currentUntransformedDirtyElement[1];
|
|
7705
7713
|
dirtyElements.set(nodeKey, intentionallyMarkedAsDirty);
|
|
7706
|
-
if (
|
|
7714
|
+
if (!intentionallyMarkedAsDirty) {
|
|
7707
7715
|
continue;
|
|
7708
7716
|
}
|
|
7709
7717
|
const node = nodeMap.get(nodeKey);
|
|
@@ -10245,7 +10253,7 @@ class LexicalEditor {
|
|
|
10245
10253
|
};
|
|
10246
10254
|
}
|
|
10247
10255
|
}
|
|
10248
|
-
LexicalEditor.version = "0.
|
|
10256
|
+
LexicalEditor.version = "0.28.0+dev.esm";
|
|
10249
10257
|
|
|
10250
10258
|
let keyCounter = 1;
|
|
10251
10259
|
function resetRandomKey() {
|