@lexical/list 0.14.3 → 0.14.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/LexicalList.dev.js +7 -1
- package/LexicalList.dev.mjs +7 -1
- package/LexicalList.js.flow +4 -1
- package/index.d.ts +0 -1
- package/package.json +7 -3
package/LexicalList.dev.js
CHANGED
|
@@ -1188,7 +1188,13 @@ function $isListNode(node) {
|
|
|
1188
1188
|
return node instanceof ListNode;
|
|
1189
1189
|
}
|
|
1190
1190
|
|
|
1191
|
-
/**
|
|
1191
|
+
/**
|
|
1192
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1193
|
+
*
|
|
1194
|
+
* This source code is licensed under the MIT license found in the
|
|
1195
|
+
* LICENSE file in the root directory of this source tree.
|
|
1196
|
+
*
|
|
1197
|
+
*/
|
|
1192
1198
|
const INSERT_UNORDERED_LIST_COMMAND = lexical.createCommand('INSERT_UNORDERED_LIST_COMMAND');
|
|
1193
1199
|
const INSERT_ORDERED_LIST_COMMAND = lexical.createCommand('INSERT_ORDERED_LIST_COMMAND');
|
|
1194
1200
|
const INSERT_CHECK_LIST_COMMAND = lexical.createCommand('INSERT_CHECK_LIST_COMMAND');
|
package/LexicalList.dev.mjs
CHANGED
|
@@ -1186,7 +1186,13 @@ function $isListNode(node) {
|
|
|
1186
1186
|
return node instanceof ListNode;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
|
-
/**
|
|
1189
|
+
/**
|
|
1190
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1191
|
+
*
|
|
1192
|
+
* This source code is licensed under the MIT license found in the
|
|
1193
|
+
* LICENSE file in the root directory of this source tree.
|
|
1194
|
+
*
|
|
1195
|
+
*/
|
|
1190
1196
|
const INSERT_UNORDERED_LIST_COMMAND = createCommand('INSERT_UNORDERED_LIST_COMMAND');
|
|
1191
1197
|
const INSERT_ORDERED_LIST_COMMAND = createCommand('INSERT_ORDERED_LIST_COMMAND');
|
|
1192
1198
|
const INSERT_CHECK_LIST_COMMAND = createCommand('INSERT_CHECK_LIST_COMMAND');
|
package/LexicalList.js.flow
CHANGED
|
@@ -43,7 +43,10 @@ declare export class ListItemNode extends ElementNode {
|
|
|
43
43
|
append(...nodes: LexicalNode[]): this;
|
|
44
44
|
replace<N: LexicalNode>(replaceWithNode: N): N;
|
|
45
45
|
insertAfter(node: LexicalNode, restoreSelection?: boolean): LexicalNode;
|
|
46
|
-
insertNewAfter(
|
|
46
|
+
insertNewAfter(
|
|
47
|
+
selection: RangeSelection,
|
|
48
|
+
restoreSelection?: boolean,
|
|
49
|
+
): ListItemNode | ParagraphNode;
|
|
47
50
|
collapseAtStart(selection: RangeSelection): true;
|
|
48
51
|
getIndent(): number;
|
|
49
52
|
setIndent(indent: number): this;
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"list"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.14.
|
|
11
|
+
"version": "0.14.4",
|
|
12
12
|
"main": "LexicalList.js",
|
|
13
13
|
"types": "index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@lexical/utils": "0.14.
|
|
16
|
-
"lexical": "0.14.
|
|
15
|
+
"@lexical/utils": "0.14.4",
|
|
16
|
+
"lexical": "0.14.4"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
@@ -26,11 +26,15 @@
|
|
|
26
26
|
".": {
|
|
27
27
|
"import": {
|
|
28
28
|
"types": "./index.d.ts",
|
|
29
|
+
"development": "./LexicalList.dev.mjs",
|
|
30
|
+
"production": "./LexicalList.prod.mjs",
|
|
29
31
|
"node": "./LexicalList.node.mjs",
|
|
30
32
|
"default": "./LexicalList.mjs"
|
|
31
33
|
},
|
|
32
34
|
"require": {
|
|
33
35
|
"types": "./index.d.ts",
|
|
36
|
+
"development": "./LexicalList.dev.js",
|
|
37
|
+
"production": "./LexicalList.prod.js",
|
|
34
38
|
"default": "./LexicalList.js"
|
|
35
39
|
}
|
|
36
40
|
}
|