@lexical/devtools-core 0.46.1-nightly.20260707.0 → 0.46.1-nightly.20260708.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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
9
|
-
import {
|
|
8
|
+
import type { LexicalCommandLog } from './useLexicalCommandsLog';
|
|
9
|
+
import { type LexicalEditor, type LexicalNode } from 'lexical';
|
|
10
10
|
export type CustomPrintNodeFn = (node: LexicalNode, obfuscateText?: boolean) => string | undefined;
|
|
11
11
|
export declare function generateContent(editor: LexicalEditor, commandsLog: LexicalCommandLog, exportDOM: boolean, customPrintNode?: CustomPrintNodeFn, obfuscateText?: boolean): string;
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import type
|
|
9
|
-
import { LexicalCommand } from 'lexical';
|
|
8
|
+
import { type LexicalCommand, type LexicalEditor } from 'lexical';
|
|
10
9
|
export type LexicalCommandEntry = {
|
|
11
10
|
index: number;
|
|
12
11
|
} & LexicalCommand<unknown> & {
|
package/package.json
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"utils"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.46.1-nightly.
|
|
11
|
+
"version": "0.46.1-nightly.20260708.0",
|
|
12
12
|
"main": "./dist/LexicalDevtoolsCore.js",
|
|
13
13
|
"types": "./dist/typescript-too-old.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@lexical/
|
|
16
|
-
"@lexical/
|
|
17
|
-
"@lexical/
|
|
18
|
-
"@lexical/
|
|
19
|
-
"@lexical/utils": "0.46.1-nightly.
|
|
20
|
-
"lexical": "0.46.1-nightly.
|
|
15
|
+
"@lexical/html": "0.46.1-nightly.20260708.0",
|
|
16
|
+
"@lexical/link": "0.46.1-nightly.20260708.0",
|
|
17
|
+
"@lexical/mark": "0.46.1-nightly.20260708.0",
|
|
18
|
+
"@lexical/table": "0.46.1-nightly.20260708.0",
|
|
19
|
+
"@lexical/utils": "0.46.1-nightly.20260708.0",
|
|
20
|
+
"lexical": "0.46.1-nightly.20260708.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=18.x",
|
package/src/TreeView.tsx
CHANGED
|
@@ -8,10 +8,16 @@
|
|
|
8
8
|
|
|
9
9
|
import type {LexicalCommandLog} from './useLexicalCommandsLog';
|
|
10
10
|
import type {EditorSetOptions, EditorState} from 'lexical';
|
|
11
|
-
import type {JSX} from 'react';
|
|
12
11
|
|
|
13
12
|
import * as React from 'react';
|
|
14
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
forwardRef,
|
|
15
|
+
type JSX,
|
|
16
|
+
useCallback,
|
|
17
|
+
useEffect,
|
|
18
|
+
useRef,
|
|
19
|
+
useState,
|
|
20
|
+
} from 'react';
|
|
15
21
|
|
|
16
22
|
const LARGE_EDITOR_STATE_SIZE = 1000;
|
|
17
23
|
|
package/src/generateContent.ts
CHANGED
|
@@ -6,21 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type {
|
|
10
|
-
BaseSelection,
|
|
11
|
-
DecoratorNode,
|
|
12
|
-
ElementNode,
|
|
13
|
-
LexicalEditor,
|
|
14
|
-
LexicalNode,
|
|
15
|
-
ParagraphNode,
|
|
16
|
-
RangeSelection,
|
|
17
|
-
TextNode,
|
|
18
|
-
} from 'lexical';
|
|
9
|
+
import type {LexicalCommandLog} from './useLexicalCommandsLog';
|
|
19
10
|
|
|
20
11
|
import {$generateHtmlFromNodes} from '@lexical/html';
|
|
21
|
-
import {$isLinkNode, LinkNode} from '@lexical/link';
|
|
12
|
+
import {$isLinkNode, type LinkNode} from '@lexical/link';
|
|
22
13
|
import {$isMarkNode} from '@lexical/mark';
|
|
23
|
-
import {$isTableSelection, TableSelection} from '@lexical/table';
|
|
14
|
+
import {$isTableSelection, type TableSelection} from '@lexical/table';
|
|
24
15
|
import {
|
|
25
16
|
$getRoot,
|
|
26
17
|
$getSelection,
|
|
@@ -34,10 +25,16 @@ import {
|
|
|
34
25
|
$isParagraphNode,
|
|
35
26
|
$isRangeSelection,
|
|
36
27
|
$isTextNode,
|
|
28
|
+
type BaseSelection,
|
|
29
|
+
type DecoratorNode,
|
|
30
|
+
type ElementNode,
|
|
31
|
+
type LexicalEditor,
|
|
32
|
+
type LexicalNode,
|
|
33
|
+
type ParagraphNode,
|
|
34
|
+
type RangeSelection,
|
|
35
|
+
type TextNode,
|
|
37
36
|
} from 'lexical';
|
|
38
37
|
|
|
39
|
-
import {LexicalCommandLog} from './useLexicalCommandsLog';
|
|
40
|
-
|
|
41
38
|
export type CustomPrintNodeFn = (
|
|
42
39
|
node: LexicalNode,
|
|
43
40
|
obfuscateText?: boolean,
|
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import {
|
|
10
|
+
COMMAND_PRIORITY_CRITICAL,
|
|
11
|
+
type LexicalCommand,
|
|
12
|
+
type LexicalEditor,
|
|
13
|
+
} from 'lexical';
|
|
12
14
|
import {useEffect, useState} from 'react';
|
|
13
15
|
|
|
14
16
|
export type LexicalCommandEntry = {index: number} & LexicalCommand<unknown> & {
|