A JavaScript library to position floating elements and create interactions for them.
MIT License
Bot releases are visible (Hide)
Published by FezVrasta over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
getOverflowAncestors
(affecting autoUpdate
) correctly returns all overflow ancestors (#1603)
Fallback to ?? 0
if window.visualViewport
is not present for Safari <= 12 (#1604)
Published by github-actions[bot] over 2 years ago
VirtualElement
type (#1601)Published by github-actions[bot] over 2 years ago
isWindow
check for Electron (#1593)Published by FezVrasta over 2 years ago
postinstall
scriptPublished by github-actions[bot] over 2 years ago
Correctly type elements
in MiddlewareArguments
(from any
) (#1578)
Positioning when pinch-zooming using the fixed
strategy is now correct in Safari (#1576)
Published by github-actions[bot] over 2 years ago
fixed
strategy is now correct in Safari (#1576)Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
getOverflowAncestors
ignores the passed node if it's an overflow element (#1565)Published by github-actions[bot] over 2 years ago
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.
inline
and size
middleware can be used together (#1571)Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
platform.isRTL() method supports a VirtualElement (#1556)
Destructure autoUpdate
options correctly (#1557)
Published by github-actions[bot] over 2 years ago
Update due to refactors (#1547)
Re-export all types from core
(#1550)
refs
object a stable reference (#1545)Published by github-actions[bot] over 2 years ago
autoUpdate
re-export (from @floating-ui/dom
) (#1541)dom
and wrap any
types with DOM type (#1550)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)
Published by github-actions[bot] over 2 years ago
autoUpdate
export: calls an update
function automatically for you when required (#1541)
platform.isRTL() method (#1539)
🚨 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)
.js
ext in package.json
main
field for wider compatibility with tooling (#1552)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
).
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)
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)
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)
Published by github-actions[bot] almost 3 years ago
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)