Module: @lexical/devtools-core
Type Aliases
CollapsibleNodeTree
Ƭ CollapsibleNodeTree: Object
Type declaration
Name | Type |
---|---|
children | CollapsibleNodeTree [] |
id | string |
name | string |
parent | null | CollapsibleNodeTree |
Defined in
packages/lexical-devtools-core/src/tree-view/treeUtils.ts:31
CustomPrintNodeFn
Ƭ CustomPrintNodeFn: (node
: LexicalNode
, obfuscateText?
: boolean
) => string
Type declaration
▸ (node
, obfuscateText?
): string
Parameters
Name | Type |
---|---|
node | LexicalNode |
obfuscateText? | boolean |
Returns
string
Defined in
packages/lexical-devtools-core/src/generateContent.ts:35
LexicalCommandLog
Ƭ LexicalCommandLog: ReadonlyArray
<{ index
: number
} & LexicalCommand
<unknown
> & { payload
: unknown
}>
Defined in
packages/lexical-devtools-core/src/useLexicalCommandsLog.ts:14
NodePropDetails
Ƭ NodePropDetails: Object
Index signature
▪ [key: string
]: string
| number
| boolean
| null
Defined in
packages/lexical-devtools-core/src/tree-view/treeUtils.ts:38
SelectionPropDetails
Ƭ SelectionPropDetails: Object
Index signature
▪ [key: string
]: any
Defined in
packages/lexical-devtools-core/src/tree-view/treeUtils.ts:42
Functions
TreeView
▸ TreeView(props
): ReactNode
Parameters
Name | Type |
---|---|
props | { editorState : EditorState ; generateContent : (exportDOM : boolean ) => Promise <string > ; setEditorReadOnly : (isReadonly : boolean ) => void ; setEditorState : (state : EditorState , options? : EditorSetOptions ) => void ; timeTravelButtonClassName : string ; timeTravelPanelButtonClassName : string ; timeTravelPanelClassName : string ; timeTravelPanelSliderClassName : string ; treeTypeButtonClassName : string ; viewClassName : string } & RefAttributes <HTMLPreElement > |
Returns
ReactNode
Defined in
packages/lexical-devtools-core/src/TreeView.tsx:16
createNodeTreeFromLexicalNode
▸ createNodeTreeFromLexicalNode(lexicalNode
): CollapsibleNodeTree