use-text-selection
use-text-selection copied to clipboard
React hook for tracking text selection
fixes #4
In this commit https://github.com/juliankrispel/use-text-selection/commit/683fea21eb6ab87a2b27beec5ddf86b3c53673c3 Parcel moved from a dev dependency to a normal one. The commit message says it was an upgrade but the version didn't change. Mistake?
- Added peerdependecies fix for react 18 support - Changed types to allow for react 18 support - Made parcel a devdependency because users dont need this builder when installing...
I wanted access to the `commonAncestor` property of the document's current selection. Pretty simple change. Let me know if there are any issues or concerns (I haven't worked extensively with...