lexical 0.35.1-nightly.20250917.0 → 0.35.1-nightly.20250918.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
@@ -10740,7 +10740,7 @@ class LexicalEditor {
10740
10740
  };
10741
10741
  }
10742
10742
  }
10743
- LexicalEditor.version = "0.35.1-nightly.20250917.0+dev.cjs";
10743
+ LexicalEditor.version = "0.35.1-nightly.20250918.0+dev.cjs";
10744
10744
 
10745
10745
  let pendingNodeToClone = null;
10746
10746
  function setPendingNodeToClone(pendingNode) {
@@ -12203,6 +12203,25 @@ function hasOwnExportDOM(klass) {
12203
12203
 
12204
12204
  /** @internal */
12205
12205
  function isAbstractNodeClass(klass) {
12206
+ if (!(klass === LexicalNode || klass.prototype instanceof LexicalNode)) {
12207
+ let ownNodeType = '<unknown>';
12208
+ let version = '<unknown>';
12209
+ try {
12210
+ ownNodeType = klass.getType();
12211
+ } catch (_err) {
12212
+ // ignore
12213
+ }
12214
+ try {
12215
+ if (LexicalEditor.version) {
12216
+ version = JSON.parse(LexicalEditor.version);
12217
+ }
12218
+ } catch (_err) {
12219
+ // ignore
12220
+ }
12221
+ {
12222
+ formatDevErrorMessage(`${klass.name} (type ${ownNodeType}) does not subclass LexicalNode from the lexical package used by this editor (version ${version}). All lexical and @lexical/* packages used by an editor must have identical versions. If you suspect the version does match, then the problem may be caused by multiple copies of the same lexical module (e.g. both esm and cjs, or included directly in multiple entrypoints).`);
12223
+ }
12224
+ }
12206
12225
  return klass === DecoratorNode || klass === ElementNode || klass === LexicalNode;
12207
12226
  }
12208
12227
 
package/Lexical.dev.mjs CHANGED
@@ -10738,7 +10738,7 @@ class LexicalEditor {
10738
10738
  };
10739
10739
  }
10740
10740
  }
10741
- LexicalEditor.version = "0.35.1-nightly.20250917.0+dev.esm";
10741
+ LexicalEditor.version = "0.35.1-nightly.20250918.0+dev.esm";
10742
10742
 
10743
10743
  let pendingNodeToClone = null;
10744
10744
  function setPendingNodeToClone(pendingNode) {
@@ -12201,6 +12201,25 @@ function hasOwnExportDOM(klass) {
12201
12201
 
12202
12202
  /** @internal */
12203
12203
  function isAbstractNodeClass(klass) {
12204
+ if (!(klass === LexicalNode || klass.prototype instanceof LexicalNode)) {
12205
+ let ownNodeType = '<unknown>';
12206
+ let version = '<unknown>';
12207
+ try {
12208
+ ownNodeType = klass.getType();
12209
+ } catch (_err) {
12210
+ // ignore
12211
+ }
12212
+ try {
12213
+ if (LexicalEditor.version) {
12214
+ version = JSON.parse(LexicalEditor.version);
12215
+ }
12216
+ } catch (_err) {
12217
+ // ignore
12218
+ }
12219
+ {
12220
+ formatDevErrorMessage(`${klass.name} (type ${ownNodeType}) does not subclass LexicalNode from the lexical package used by this editor (version ${version}). All lexical and @lexical/* packages used by an editor must have identical versions. If you suspect the version does match, then the problem may be caused by multiple copies of the same lexical module (e.g. both esm and cjs, or included directly in multiple entrypoints).`);
12221
+ }
12222
+ }
12204
12223
  return klass === DecoratorNode || klass === ElementNode || klass === LexicalNode;
12205
12224
  }
12206
12225