Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.44 KB

CHANGELOG.md

File metadata and controls

44 lines (33 loc) · 1.44 KB

2.0.2

  • Update peer dependencies to allow higher version of react

2.0.0

  • 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 around use-text-selection

1.3.0

  • Allow specifying DOM node to mount a popover (via containerNode prop)

1.2.5

  • Made react-dom version dependency less granular

1.2.0

  • Reposition Popover for resize and scroll events on viewport
  • Add scrollRef prop to give control to user for which scroll events to listen to

1.0.2

  • Popover opens even when selectionWidth is 0

1.0.1

  • Fix packkage.json to include lib

1.0.0

  • 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

0.3.0

  • 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

0.2.1

  • Bugfix - account for both anchorNode and focusNode to be inside selectionRef

0.2.0

  • First official release, all basic stuff seems to be working