lexical 0.32.2-nightly.20250701.0 → 0.32.2-nightly.20250703.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
@@ -10733,7 +10733,7 @@ class LexicalEditor {
10733
10733
  };
10734
10734
  }
10735
10735
  }
10736
- LexicalEditor.version = "0.32.2-nightly.20250701.0+dev.cjs";
10736
+ LexicalEditor.version = "0.32.2-nightly.20250703.0+dev.cjs";
10737
10737
 
10738
10738
  let pendingNodeToClone = null;
10739
10739
  function setPendingNodeToClone(pendingNode) {
@@ -12245,7 +12245,7 @@ function getStaticNodeConfig(klass) {
12245
12245
  };
12246
12246
  }
12247
12247
  if (!hasOwnStaticMethod(klass, 'importJSON')) {
12248
- {
12248
+ if (TextNode.length === 0) {
12249
12249
  if (!(klass.length === 0)) {
12250
12250
  formatDevErrorMessage(`${klass.name} (type ${ownNodeType}) must implement a static importJSON method since its constructor has ${String(klass.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`);
12251
12251
  }
package/Lexical.dev.mjs CHANGED
@@ -10731,7 +10731,7 @@ class LexicalEditor {
10731
10731
  };
10732
10732
  }
10733
10733
  }
10734
- LexicalEditor.version = "0.32.2-nightly.20250701.0+dev.esm";
10734
+ LexicalEditor.version = "0.32.2-nightly.20250703.0+dev.esm";
10735
10735
 
10736
10736
  let pendingNodeToClone = null;
10737
10737
  function setPendingNodeToClone(pendingNode) {
@@ -12243,7 +12243,7 @@ function getStaticNodeConfig(klass) {
12243
12243
  };
12244
12244
  }
12245
12245
  if (!hasOwnStaticMethod(klass, 'importJSON')) {
12246
- {
12246
+ if (TextNode.length === 0) {
12247
12247
  if (!(klass.length === 0)) {
12248
12248
  formatDevErrorMessage(`${klass.name} (type ${ownNodeType}) must implement a static importJSON method since its constructor has ${String(klass.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`);
12249
12249
  }