]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/ui/defaults/buttons/lists.ts
Lexical: Removed reconciler level direction handling
[bookstack] / resources / js / wysiwyg / ui / defaults / buttons / lists.ts
index 87630eb27fd3011d0109280e71e9bd38c2132d9b..9cfa8168ecf9be1e1e3985f23837e00ecf522cc2 100644 (file)
@@ -3,7 +3,6 @@ import {EditorButtonDefinition} from "../../framework/buttons";
 import {EditorUiContext} from "../../framework/core";
 import {
     BaseSelection,
-    LexicalEditor,
     LexicalNode,
 } from "lexical";
 import listBulletIcon from "@icons/editor/list-bullet.svg";
@@ -12,15 +11,10 @@ import listCheckIcon from "@icons/editor/list-check.svg";
 import indentIncreaseIcon from "@icons/editor/indent-increase.svg";
 import indentDecreaseIcon from "@icons/editor/indent-decrease.svg";
 import {
-    $getBlockElementNodesInSelection,
-    $selectionContainsNodeType, $selectNodes, $selectSingleNode,
-    $toggleSelection,
-    getLastSelection
+    $selectionContainsNodeType,
 } from "../../../utils/selection";
 import {toggleSelectionAsList} from "../../../utils/formats";
-import {nodeHasInset} from "../../../utils/nodes";
-import {$isCustomListItemNode, CustomListItemNode} from "../../../nodes/custom-list-item";
-import {$nestListItem, $setInsetForSelection, $unnestListItem} from "../../../utils/lists";
+import {$setInsetForSelection} from "../../../utils/lists";
 
 
 function buildListButton(label: string, type: ListType, icon: string): EditorButtonDefinition {