Gathering detailed insights and metrics for @meogic/lexical-selection
Gathering detailed insights and metrics for @meogic/lexical-selection
Gathering detailed insights and metrics for @meogic/lexical-selection
Gathering detailed insights and metrics for @meogic/lexical-selection
Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
npm install @meogic/lexical-selection
Typescript
Module System
Node Version
NPM Version
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,567 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-selection@0.11.1-mod8
Unpacked Size
60.70 kB
Size
15.51 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
@meogic/lexical-selection
This package contains selection helpers for Lexical.
getStyleObjectFromCSS
Given a CSS string, returns an object from the style cache.
1export function getStyleObjectFromCSS(css: string): { 2 [key: string]: string; 3} | null;
$patchStyleText
Applies the provided styles to the TextNodes in the provided Selection. Key names in the patch argument should be the valid CSS properties (i.e., kebab-case).
1export function $patchStyleText(
2 selection: RangeSelection | GridSelection,
3 patch: {
4 [key: string]: string;
5 },
6): void;
$getSelectionStyleValueForProperty
Given a selection and a valid CSS property name, returns the current value of that property for TextNodes in the Selection, if set. If not set, it returns the defaultValue. If all TextNodes do not have the same value, it returns an empty string.
1export function $getSelectionStyleValueForProperty(
2 selection: RangeSelection,
3 styleProperty: string,
4 defaultValue: string,
5): string;
$moveCaretSelection
Moves the selection according to the arguments.
1export function $moveCaretSelection(
2 selection: RangeSelection,
3 isHoldingShift: boolean,
4 isBackward: boolean,
5 granularity: 'character' | 'word' | 'lineboundary',
6): void;
$isParentElementRTL
Returns true if the parent of the Selection anchor node is in Right-To-Left mode, false if not.
1export function $isParentElementRTL(selection: RangeSelection): boolean;
$moveCharacter
Wraps $moveCaretSelection, using character granularity and accounting for RTL mode.
1export function $moveCharacter(
2 selection: RangeSelection,
3 isHoldingShift: boolean,
4 isBackward: boolean,
5): void;
$selectAll
Expands the current Selection to cover all of the content in the editor.
1export function $selectAll(selection: RangeSelection): void;
$setBlocksType
Converts all nodes in the selection that are of one block type to another specified by parameter
1export function $setBlocksType( 2 selection: RangeSelection, 3 createElement: () => ElementNode, 4): void;
$isAtNodeEnd
Returns true if the provided point offset is in the last possible position.
1export function $isAtNodeEnd(point: Point): boolean;
$shouldOverrideDefaultCharacterSelection
Returns true if default character selection should be overridden, false if not. Used with DecoratorNodes
1export function $shouldOverrideDefaultCharacterSelection(
2 selection: RangeSelection,
3 isBackward: boolean,
4): boolean;
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