floating-ui

A JavaScript library to position floating elements and create interactions for them.

MIT License

Downloads
202.3M
Stars
28.6K
Committers
104

Bot releases are visible (Hide)

floating-ui - v2.11.5

Published by FezVrasta over 2 years ago

Bug Fixes

  • fix(types): Constrain Modifier Options to same type as Options in ModifierArguments #1598
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • TypeScript .d.ts files (#1606)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • getOverflowAncestors (affecting autoUpdate) correctly returns all overflow ancestors (#1603)

  • Fallback to ?? 0 if window.visualViewport is not present for Safari <= 12 (#1604)

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • Export VirtualElement type (#1601)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • isWindow check for Electron (#1593)
floating-ui - v2.11.4

Published by FezVrasta over 2 years ago

Fixes

  • Fixed an issue with the postinstall script
floating-ui - v2.11.3

Published by atomiks over 2 years ago

Bug Fixes

  • Fixes a placement issue that is caused when the starting offset parent element is inside shadow DOM. (#1535)

  • Positioning using strategy fixed when inside a containing block (#1579)

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • Correctly type elements in MiddlewareArguments (from any) (#1578)

  • Positioning when pinch-zooming using the fixed strategy is now correct in Safari (#1576)

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • Positioning when pinch-zooming using the fixed strategy is now correct in Safari (#1576)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Refactors

  • 🚨 BREAKING CHANGE in core (#1564)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Refactors

  • 🚨 BREAKING CHANGE in core (#1564)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Refactors

  • 🚨 BREAKING CHANGE in core (#1564)

Bug Fixes

  • getOverflowAncestors ignores the passed node if it's an overflow element (#1565)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

New Features

  • New alignmentAxis option for the offset middleware (#1564)

    🚨 BREAKING CHANGE: crossAxis reverts back to how it did in v0.4.x. alignmentAxis should be used if you want logically-offset alignments.

Refactors

  • 🚨 BREAKING CHANGE: skipping removed from middleware (#1572)

Bug Fixes

  • inline and size middleware can be used together (#1571)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • platform.isRTL() method supports a VirtualElement (#1556)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • platform.isRTL() method supports a VirtualElement (#1556)

  • Destructure autoUpdate options correctly (#1557)

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

Refactors

  • Update due to refactors (#1547)

  • Re-export all types from core (#1550)

Bug Fixes

  • Make refs object a stable reference (#1545)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

New Features

  • autoUpdate re-export (from @floating-ui/dom) (#1541)

Refactors

  • Re-export all types from dom and wrap any types with DOM type (#1550)

Bug Fixes

  • refs.reference type includes VirtualElement (#1545)

  • Make refs object a stable reference (#1545)

  • Use .js ext in package.json main field for wider compatibility with tooling (#1552)

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

New Features

  • autoUpdate export: calls an update function automatically for you when required (#1541)

  • platform.isRTL() method (#1539)

Refactors

  • 🚨 BREAKING CHANGE: getScrollParents has been renamed to getOverflowAncestors. It's functionally the same. (#1541)

  • Re-export all types from core and wrap any types with DOM type (#1550)

Bug Fixes

  • Use .js ext in package.json main field for wider compatibility with tooling (#1552)
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] over 2 years ago

We are close to a fully stable v1 release! This release fixes some long-standing breaking changes (namely logical placement alignments/offset.crossAxis).

New Features

  • skip is now a core feature of middleware, a reset will always skip the middleware on the subsequent lifecycle loop and further resets. (#1543)

    skip: false in reset will disable this behavior

  • 🚨 BREAKING CHANGE: hide() can now have detectOverflowOptions passed to it. As a result the API changed: you now call hide() with a strategy string, either hide({strategy: 'referenceHidden'}) or hide({strategy: 'escaped'}). Note you can call it twice inside the middleware array if you want access to both properties. (#1551)

Refactors

  • DOM-like platform properties are now optional (#1544)

  • 🚨 BREAKING CHANGE: Rename clippingParents boundary string to clippingAncestors (#1546)

  • 🚨 BREAKING CHANGE: offset.crossAxis is now logical and adapts to RTL and the placement alignment automatically. (#1547)

  • 🚨 BREAKING CHANGE: Alignments are now logical, not physical, thereby supporting RTL by default. start in LTR is end in RTL, and vice-versa. (#1539)

  • BasePlacement type has been renamed to Side (#1550)

  • 🚨 BREAKING CHANGE: platform refactored for consistency and simplicity (#1553)

  • More useful JSDoc comments for Intellisense (links to docs, defaults) (#1550)

Bug Fixes

  • fix: shift should be a part of the MiddlewareData type (#1540)

  • Use .js ext in package.json main field for wider compatibility with tooling (#1552)

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] almost 3 years ago

New Features

  • JSDoc comments on exports for IntelliSense (#1508)

  • Expand export map conditions (#1502)

    Fork import condition to include development, production and default. The default listing continues to point to the "esm" build while the development listing points to a development build that no longer includes process.env usage in favor of always stepping through logging code paths and the production listing surfaces the library in a minified state, without any logging code.

  • Update UMD build to always include logging code (#1502)