Gathering detailed insights and metrics for @meogic/lexical-list
Gathering detailed insights and metrics for @meogic/lexical-list
Gathering detailed insights and metrics for @meogic/lexical-list
Gathering detailed insights and metrics for @meogic/lexical-list
Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
npm install @meogic/lexical-list
Typescript
Module System
Node Version
NPM Version
74.1
Supply Chain
90.4
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (70.14%)
JavaScript (27.22%)
CSS (1.93%)
MDX (0.43%)
HTML (0.1%)
Swift (0.07%)
Shell (0.05%)
Svelte (0.04%)
Astro (0.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
21,569 Stars
4,428 Commits
1,927 Forks
128 Watchers
25 Branches
556 Contributors
Updated on Jul 13, 2025
Latest Version
0.11.1-mod8
Package Id
@meogic/lexical-list@0.11.1-mod8
Unpacked Size
74.05 kB
Size
18.25 kB
File Count
12
NPM Version
9.4.1
Node Version
16.15.1
Published on
Jul 22, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
@meogic/lexical-list
This package exposes the primitives for implementing lists in Lexical. If you're trying to implement conventional lists with React, take a look at the ListPlugin exposed by @meogic/lexical-react, which wraps these primitives into a neat component that you can drop into any LexicalComposer.
The API of @meogic/lexical-list primarily consists of Lexical Nodes that encapsulate list behaviors and a set of functions that can be called to trigger typical list manipulation functionality:
As the name suggests, this inserts a list of the provided type according to an algorithm that tries to determine the best way to do that based on the current Selection. For instance, if some text is selected, insertList may try to move it into the first item in the list. See the API documentation for more detail.
Attempts to remove lists inside the current selection based on a set of opinionated heuristics that implement conventional editor behaviors. For instance, it converts empty ListItemNodes into empty ParagraphNodes.
For convenience, we provide a set of commands that can be used to connect a plugin to trigger typical list manipulation functionality:
It's important to note that these commands don't have any functionality on their own. They are just for convenience and require you to register a handler for them in order to actually change the editor state when they are dispatched, as below:
1// MyListPlugin.ts
2
3editor.registerCommand(INSERT_UNORDERED_LIST_COMMAND, () => {
4 insertList(editor, 'bullet');
5 return true;
6}, COMMAND_PRIORITY_LOW);
7
8// MyInsertListToolbarButton.ts
9
10function onButtonClick(e: MouseEvent) {
11 editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined);
12}
13
Lists can be styled using the following properties in the EditorTheme passed to the editor in the initial config (the values are classses that will be applied in the denoted contexts):
1{ 2 list?: { 3 // Applies to all lists of type "bullet" 4 ul?: EditorThemeClassName; 5 // Used to apply specific styling to nested levels of bullet lists 6 // e.g., [ 'bullet-list-level-one', 'bullet-list-level-two' ] 7 ulDepth?: Array<EditorThemeClassName>; 8 // Applies to all lists of type "number" 9 ol?: EditorThemeClassName; 10 // Used to apply specific styling to nested levels of number lists 11 // e.g., [ 'number-list-level-one', 'number-list-level-two' ] 12 olDepth?: Array<EditorThemeClassName>; 13 // Applies to all list items 14 listitem?: EditorThemeClassName; 15 // Applies to all list items with checked property set to "true" 16 listitemChecked?: EditorThemeClassName; 17 // Applies to all list items with checked property set to "false" 18 listitemUnchecked?: EditorThemeClassName; 19 // Applies only to list and list items that are not at the top level. 20 nested?: { 21 list?: EditorThemeClassName; 22 listitem?: EditorThemeClassName; 23 }; 24 }; 25}
No vulnerabilities found.
Reason
all changesets reviewed
Reason
30 commit(s) and 18 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More