Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Releases: atomiks/tippyjs-react

v2.2.3

27 Aug 08:59
Compare
Choose a tag to compare

Fixes

  • core: Fix setting triggerTarget with a ref doesn't actually set Tippy instance's option (#117)
  • perf: Fix handling dynamic children memory with <TippyGroup />
  • internal: Fix useRef instead of useState with useInstance hook to hold imperative values

v2.2.2

19 Jun 15:50
Compare
Choose a tag to compare

Fixes

  • pkg: Move @testing-library/react to devDependencies
  • pkg: Upgrade tippy.js
  • perf: Improve first mount render performance
  • perf: Reduce parsed size slightly using $this/useImperativeInstance technique

v2.2.1

13 Jun 14:31
Compare
Choose a tag to compare

Fixes

  • Fix content and children props type + wrap propTypes assignment in NODE_ENV check (#96)
  • Re-export tippy core in typings file (#100)
  • Account for children update (#104)

v2.2.0

08 May 19:43
Compare
Choose a tag to compare

Features

  • Export underlying native tippy function from this package (so you don't need to reference the implicit dependency path)

Fixes

  • Make <TippyGroup /> updateable (#78)

Deprecations

  • isVisible / isEnabled renamed to visible / enabled for consistency with native tippy.js props since they don't use that convention + consistent with boolean HTML attributes

v2.1.2

26 Mar 19:01
Compare
Choose a tag to compare

Fixes

  • Remove need for explicit multiple prop (#72)
  • Use unminified code in "main" field
  • Force tippy.js^4.2.1 for set() optimization when re-rendering

v2.1.1

24 Feb 22:48
Compare
Choose a tag to compare

Fixes

  • Fix useLayoutEffect warning on the server (#59)

v2.1.0

23 Feb 05:42
Compare
Choose a tag to compare

Features

  • Added className prop as an alternative to theme (#56)

Fixes

  • Switch from useEffect to useLayoutEffect, so that mutations done to the tippy element are done before first paint. There were sometimes flickers when updating content and other props.

v2.0.0

09 Feb 10:55
e261410
Compare
Choose a tag to compare

Install

npm i @tippy.js/react@latest

Features

Breaking changes

  • React 16.8 peer dependency
  • Component children must use forwardRef()
  • Remove your CSS import import 'tippy.js/dist/tippy.css'; - it's done automatically now
  • tippy.js@4 has its own breaking changes, such as import paths for themes. Make sure to read its changelog too.

Note: this release is v2.0.2 on npm

v1.1.1

24 Nov 02:55
Compare
Choose a tag to compare

Fixes

  • [TypeScript] Import React as module object (#24)
  • Use tippy.js^3.2.0 in package.json as that is the min tippy.js version required for the new isVisible prop to work reliably.

v1.1.0

16 Nov 05:46
Compare
Choose a tag to compare

Features

  • Add TypeScript types (#18)
  • Add isVisible and isEnabled props to declaratively control Tippy instance methods (#20)