- Update peer dependencies to allow higher version of react
- rewritten in typescript
- removed all previous dependencies
- low-level, less complex api (you can no control everything via a render prop)
Popover
component is now simple wrapper arounduse-text-selection
- Allow specifying DOM node to mount a popover (via
containerNode
prop)
- Made react-dom version dependency less granular
- Reposition Popover for resize and scroll events on viewport
- Add scrollRef prop to give control to user for which scroll events to listen to
- Popover opens even when selectionWidth is 0
- Fix packkage.json to include lib
- Move placement strategy into default prop - this makes placement completely configurable
- Deprecate direction prop
- Add docs section about placement strategies
- Add alternative placement strategy (as optional import) in
./lib
folder - Fix prop type error caused by react-measure by forking project :/
- Only mount EventListener component when selectionRefs are defined
- Add isOpen state (automatically managed within component), this is only used when isOpen prop is not defined
- Popover can now be used with 0 Props - thanks to @sunilhari for implementing this :)
- Refactored placement logic
- Bugfix - account for both anchorNode and focusNode to be inside selectionRef
- First official release, all basic stuff seems to be working