0.0.5 • Published 2 years ago
@lexi-kit/utils v0.0.5
Utils
A utils library that is used across most packages of lexi-kit.
Features
strings.prefixClassNames
- Add a prefix to a group of classesgetDOMRangeRect
- Get a rect from a native DOM selection rangesetFloatingElementPosition
- Set the position of a floating element based on a DOM Rect.guards.isHTMLElement
- A typescript guard that hints that a value is an HTMLElement.nodes.getSelectedNode
- Get the correct selected node from a lexical RangeSelection.
Installation
$ npm install @lexi-kit/utils
# or
$ yarn add @lexi-kit/utils
# or
$ pnpm add @lexi-kit/utils
0.0.6-next.0
2 years ago
0.0.5
2 years ago
0.0.5-next.2
2 years ago
0.0.5-next.1
2 years ago
0.0.5-next.0
2 years ago
0.0.4
2 years ago
0.0.4-next.5
2 years ago
0.0.4-next.4
2 years ago
0.0.4-next.3
2 years ago
0.0.4-next.2
2 years ago
0.0.4-next.1
2 years ago
0.0.4-next.0
2 years ago
0.0.3-next.4
2 years ago
0.0.3
2 years ago
0.0.3-next.3
2 years ago
0.0.3-next.2
2 years ago