Skip to content

Commit 4ca9a92

Browse files
authored
[lexical] Bug Fix: invalid import from self (#7271)
1 parent 9c093bc commit 4ca9a92

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

packages/lexical/src/LexicalCommands.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
*
77
*/
88

9-
import type {
10-
BaseSelection,
11-
ElementFormatType,
12-
LexicalCommand,
13-
LexicalNode,
14-
TextFormatType,
15-
} from 'lexical';
9+
import type {LexicalCommand} from './LexicalEditor';
10+
import type {LexicalNode} from './LexicalNode';
11+
import type {BaseSelection} from './LexicalSelection';
12+
import type {ElementFormatType} from './nodes/LexicalElementNode';
13+
import type {TextFormatType} from './nodes/LexicalTextNode';
1614

1715
export type PasteCommandType = ClipboardEvent | InputEvent | KeyboardEvent;
1816

packages/lexical/src/LexicalNode.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
*/
88

99
/* eslint-disable no-constant-condition */
10-
import type {EditorConfig, LexicalEditor} from './LexicalEditor';
10+
import type {
11+
EditorConfig,
12+
Klass,
13+
KlassConstructor,
14+
LexicalEditor,
15+
} from './LexicalEditor';
1116
import type {BaseSelection, RangeSelection} from './LexicalSelection';
1217

13-
import {Klass, KlassConstructor, NODE_STATE_KEY} from 'lexical';
1418
import invariant from 'shared/invariant';
1519

1620
import {
@@ -23,6 +27,7 @@ import {
2327
$isTextNode,
2428
type DecoratorNode,
2529
ElementNode,
30+
NODE_STATE_KEY,
2631
} from '.';
2732
import {$updateStateFromJSON, type NodeState} from './LexicalNodeState';
2833
import {

0 commit comments

Comments
 (0)