2 * Copyright (c) Meta Platforms, Inc. and affiliates.
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
9 import type {SerializedListItemNode} from './LexicalListItemNode';
10 import type {ListType, SerializedListNode} from './LexicalListNode';
11 import type {LexicalCommand} from 'lexical';
13 import {createCommand} from 'lexical';
15 import {$handleListInsertParagraph, insertList, removeList} from './formatList';
20 } from './LexicalListItemNode';
21 import {$createListNode, $isListNode, ListNode} from './LexicalListNode';
22 import {$getListDepth} from './utils';
28 $handleListInsertParagraph,
36 SerializedListItemNode,
40 export const INSERT_UNORDERED_LIST_COMMAND: LexicalCommand<void> =
41 createCommand('INSERT_UNORDERED_LIST_COMMAND');
42 export const INSERT_ORDERED_LIST_COMMAND: LexicalCommand<void> = createCommand(
43 'INSERT_ORDERED_LIST_COMMAND',
45 export const INSERT_CHECK_LIST_COMMAND: LexicalCommand<void> = createCommand(
46 'INSERT_CHECK_LIST_COMMAND',
48 export const REMOVE_LIST_COMMAND: LexicalCommand<void> = createCommand(
49 'REMOVE_LIST_COMMAND',