@lexical/overflow 0.3.1 → 0.3.4
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/LexicalOverflow.dev.js +0 -1
- package/index.d.ts +27 -0
- package/package.json +2 -2
- package/LexicalOverflow.d.ts +0 -40
package/LexicalOverflow.dev.js
CHANGED
package/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { EditorConfig, LexicalNode, NodeKey, RangeSelection, SerializedElementNode, Spread } from 'lexical';
|
|
9
|
+
import { ElementNode } from 'lexical';
|
|
10
|
+
export declare type SerializedOverflowNode = Spread<{
|
|
11
|
+
type: 'overflow';
|
|
12
|
+
version: 1;
|
|
13
|
+
}, SerializedElementNode>;
|
|
14
|
+
export declare class OverflowNode extends ElementNode {
|
|
15
|
+
static getType(): string;
|
|
16
|
+
static clone(node: OverflowNode): OverflowNode;
|
|
17
|
+
static importJSON(serializedNode: SerializedOverflowNode): OverflowNode;
|
|
18
|
+
static importDOM(): null;
|
|
19
|
+
constructor(key?: NodeKey);
|
|
20
|
+
exportJSON(): SerializedElementNode;
|
|
21
|
+
createDOM(config: EditorConfig): HTMLElement;
|
|
22
|
+
updateDOM(prevNode: OverflowNode, dom: HTMLElement): boolean;
|
|
23
|
+
insertNewAfter(selection: RangeSelection): null | LexicalNode;
|
|
24
|
+
excludeFromCopy(): boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function $createOverflowNode(): OverflowNode;
|
|
27
|
+
export declare function $isOverflowNode(node: LexicalNode | null | undefined): node is OverflowNode;
|
package/package.json
CHANGED
package/LexicalOverflow.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import type {
|
|
10
|
-
EditorConfig,
|
|
11
|
-
LexicalNode,
|
|
12
|
-
NodeKey,
|
|
13
|
-
RangeSelection,
|
|
14
|
-
SerializedElementNode,
|
|
15
|
-
} from 'lexical';
|
|
16
|
-
|
|
17
|
-
import {ElementNode} from 'lexical';
|
|
18
|
-
import {Spread} from 'libdefs/globals';
|
|
19
|
-
|
|
20
|
-
export declare class OverflowNode extends ElementNode {
|
|
21
|
-
static getType(): string;
|
|
22
|
-
static clone(node: OverflowNode): OverflowNode;
|
|
23
|
-
constructor(key?: NodeKey);
|
|
24
|
-
createDOM(config: EditorConfig): HTMLElement;
|
|
25
|
-
updateDOM(prevNode: OverflowNode, dom: HTMLElement): boolean;
|
|
26
|
-
insertNewAfter(selection: RangeSelection): null | LexicalNode;
|
|
27
|
-
excludeFromCopy(): boolean;
|
|
28
|
-
static importJSON(serializedNode: SerializedOverflowNode): OverflowNode;
|
|
29
|
-
exportJSON(): SerializedElementNode;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function $createOverflowNode(): OverflowNode;
|
|
33
|
-
export function $isOverflowNode(node: LexicalNode | null): node is OverflowNode;
|
|
34
|
-
|
|
35
|
-
export type SerializedOverflowNode = Spread<
|
|
36
|
-
{
|
|
37
|
-
type: 'overflow';
|
|
38
|
-
},
|
|
39
|
-
SerializedElementNode
|
|
40
|
-
>;
|