@lexical/list 0.46.0 → 0.46.1-nightly.20260630.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.
- package/dist/LexicalList.dev.js +1 -1
- package/dist/LexicalList.dev.mjs +1 -1
- package/dist/formatList.d.ts +1 -1
- package/package.json +6 -6
- package/src/formatList.ts +1 -1
package/dist/LexicalList.dev.js
CHANGED
|
@@ -147,7 +147,7 @@ function $isSelectingEmptyListItem(anchorNode, nodes) {
|
|
|
147
147
|
* the root/shadow root, it will replace the ListItemNode with a ListNode and the old ListItemNode.
|
|
148
148
|
* Otherwise it will replace its parent with a new ListNode and re-insert the ListItemNode and any previous children.
|
|
149
149
|
* If the selection's anchor node is not an empty ListItemNode, it will add a new ListNode or merge an existing ListNode,
|
|
150
|
-
* unless the
|
|
150
|
+
* unless the node is a leaf node, in which case it will attempt to find a ListNode up the branch and replace it with
|
|
151
151
|
* a new ListNode, or create a new ListNode at the nearest root/shadow root.
|
|
152
152
|
* @param listType - The type of list, "number" | "bullet" | "check".
|
|
153
153
|
*/
|
package/dist/LexicalList.dev.mjs
CHANGED
|
@@ -145,7 +145,7 @@ function $isSelectingEmptyListItem(anchorNode, nodes) {
|
|
|
145
145
|
* the root/shadow root, it will replace the ListItemNode with a ListNode and the old ListItemNode.
|
|
146
146
|
* Otherwise it will replace its parent with a new ListNode and re-insert the ListItemNode and any previous children.
|
|
147
147
|
* If the selection's anchor node is not an empty ListItemNode, it will add a new ListNode or merge an existing ListNode,
|
|
148
|
-
* unless the
|
|
148
|
+
* unless the node is a leaf node, in which case it will attempt to find a ListNode up the branch and replace it with
|
|
149
149
|
* a new ListNode, or create a new ListNode at the nearest root/shadow root.
|
|
150
150
|
* @param listType - The type of list, "number" | "bullet" | "check".
|
|
151
151
|
*/
|
package/dist/formatList.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { ListType } from './LexicalListNode';
|
|
|
12
12
|
* the root/shadow root, it will replace the ListItemNode with a ListNode and the old ListItemNode.
|
|
13
13
|
* Otherwise it will replace its parent with a new ListNode and re-insert the ListItemNode and any previous children.
|
|
14
14
|
* If the selection's anchor node is not an empty ListItemNode, it will add a new ListNode or merge an existing ListNode,
|
|
15
|
-
* unless the
|
|
15
|
+
* unless the node is a leaf node, in which case it will attempt to find a ListNode up the branch and replace it with
|
|
16
16
|
* a new ListNode, or create a new ListNode at the nearest root/shadow root.
|
|
17
17
|
* @param listType - The type of list, "number" | "bullet" | "check".
|
|
18
18
|
*/
|
package/package.json
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"list"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.46.0",
|
|
11
|
+
"version": "0.46.1-nightly.20260630.0",
|
|
12
12
|
"main": "./dist/LexicalList.js",
|
|
13
13
|
"types": "./dist/typescript-too-old.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@lexical/extension": "0.46.0",
|
|
16
|
-
"@lexical/
|
|
17
|
-
"@lexical/
|
|
18
|
-
"@lexical/
|
|
19
|
-
"lexical": "0.46.0"
|
|
15
|
+
"@lexical/extension": "0.46.1-nightly.20260630.0",
|
|
16
|
+
"@lexical/html": "0.46.1-nightly.20260630.0",
|
|
17
|
+
"@lexical/internal": "0.46.1-nightly.20260630.0",
|
|
18
|
+
"@lexical/utils": "0.46.1-nightly.20260630.0",
|
|
19
|
+
"lexical": "0.46.1-nightly.20260630.0"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
package/src/formatList.ts
CHANGED
|
@@ -61,7 +61,7 @@ function $isSelectingEmptyListItem(
|
|
|
61
61
|
* the root/shadow root, it will replace the ListItemNode with a ListNode and the old ListItemNode.
|
|
62
62
|
* Otherwise it will replace its parent with a new ListNode and re-insert the ListItemNode and any previous children.
|
|
63
63
|
* If the selection's anchor node is not an empty ListItemNode, it will add a new ListNode or merge an existing ListNode,
|
|
64
|
-
* unless the
|
|
64
|
+
* unless the node is a leaf node, in which case it will attempt to find a ListNode up the branch and replace it with
|
|
65
65
|
* a new ListNode, or create a new ListNode at the nearest root/shadow root.
|
|
66
66
|
* @param listType - The type of list, "number" | "bullet" | "check".
|
|
67
67
|
*/
|