Skip to content

fix(deps): update dependency @floating-ui/react to v0.27.19#139

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/floating-ui-react-0.x
Open

fix(deps): update dependency @floating-ui/react to v0.27.19#139
renovate[bot] wants to merge 1 commit intomainfrom
renovate/floating-ui-react-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 2, 2023

This PR contains the following updates:

Package Change Age Confidence
@floating-ui/react (source) 0.19.20.27.19 age confidence

Release Notes

floating-ui/floating-ui (@​floating-ui/react)

v0.27.19

Compare Source

Patch Changes
  • fix(useDismiss): ignore non-primary inside mouse presses for click outside dismissal
  • fix(react): fix shadow root host lookup when one of the parent elements is an anchor
  • Update dependencies: @floating-ui/utils@0.2.11, @floating-ui/react-dom@2.1.8

v0.27.18

Patch Changes
  • fix(FloatingFocusManager): use WeakRef for previously focused elements

v0.27.17

Patch Changes
  • feat: detectOverflow configurable via platform
  • fix(FloatingPortal): ensure accessibility of non-modal dialogs with iOS/Safari/Voice Control
  • Update dependencies: @floating-ui/react-dom@2.1.7

v0.27.16

Compare Source

Patch Changes
  • Update dependencies: @floating-ui/react-dom@2.1.6

v0.27.15

Compare Source

Patch Changes
  • Update dependencies: @floating-ui/react-dom@2.1.5

v0.27.14

Compare Source

Patch Changes
  • fix(FloatingFocusManager): allow marking ancestor nodes with data-floating-ui-inert. Fixes outside presses not working when clicking on a parent ancestor node.
  • feat(FloatingPortal): support ShadowRoot containers
  • fix(useRole): ensure aria-selected=true is present without being active with select role
  • fix: only use blur capture to mark inside floating tree if FloatingPortal exists. Prevents blocking closeOnFocusOut behavior.
  • fix(FloatingFocusManager): clear previously focused elements that are disconnected more often

v0.27.13

Compare Source

Patch Changes
  • fix(FloatingFocusManager): ensure focus is always returned correctly in deep nested trees
  • fix(markOthers): exclude elements with role="status" and output elements
  • Update dependencies: @floating-ui/utils@0.2.10, @floating-ui/react-dom@2.1.4

v0.27.12

Compare Source

Patch Changes
  • fix(FloatingFocusManager): ensure aria-hidden/inert are cleaned up correctly when mixing outsideElementsInert true/false
  • fix(safePolygon): revert to checking if any nested child is open

v0.27.11

Compare Source

Patch Changes
  • fix(FloatingFocusManager): check if target is connected for restoreFocus prop
  • Update dependencies: @floating-ui/react-dom@2.1.3

v0.27.10

Compare Source

Patch Changes
  • fix(safePolygon): handle pointer moving outside of all floating elements in a tree with a close delay
  • fix(useDismiss): bail out of blur to mark inside react tree if floating tree exists

v0.27.9

Compare Source

Patch Changes
  • fix(useListNavigation): reset internal focusItemOnOpen state when floating element is closed. This prevents the first item being highlighted on open under certain conditions when it shouldn't be.
  • fix(FloatingOverlay): lockScroll detection on iPad
  • fix(useListNavigation): avoid item rerenders upon open
  • fix(FloatingFocusManager): check for blurring to nested elements inside the React tree without FloatingTree
  • fix(FloatingFocusManager): always prevent scroll upon returning focus
  • refactor(useHover): improve handleClose option and docs. You can now more easily write a custom event handler function, including exported types.
  • feat(FloatingOverlay): add lockScroll scrollbar width CSS variable (--floating-ui-scrollbar-width)
  • feat(useListNavigation, Composite): allow disabledIndices to be a function

v0.27.8

Compare Source

Patch Changes
  • feat: export most utils under @floating-ui/react/utils. This makes it a lot easier to write your own custom interaction hooks, or copy/paste the existing ones to change the way they are implemented yourself without patching or waiting for features/breaking changes.
  • perf(FloatingFocusManager): move manual tabindex handling on floating element to an event. Improves performance when the floating element has a large amount of content or the content changes frequently e.g. virtualized scrolling.
  • fix(FloatingFocusManager): prioritize returning focus to reference if available
  • feat(useListNavigation): add parentOrientation prop

v0.27.7

Compare Source

Patch Changes
  • fix(useTransitionStatus): avoid browser from painting before floating element opens. With FloatingDelayGroup, this avoids a flicker when moving between floating elements to ensure one is always open with no missing frames.
  • fix(useListNavigation): correctly scroll to the selected item on open when using a pointer and FloatingFocusManager initialFocus is not in use
  • fix(useHover): clean up blockPointerEvents when opened with click after hover
  • fix(useRole): improve "combobox" role
  • fix(useRole): handle custom id attributes
  • feat: experimental NextFloatingDelayGroup (and useNextFloatingDelayGroup). Unlike FloatingDelayGroup, this component doesn't cause a re-render of unrelated consumers of the context when the delay changes, improving performance. This will eventually become the new default for FloatingDelayGroup in v1 (Next), as its API is different.
  • perf(FloatingFocusManager): ignore manual tabindex handling for non-dialog role floating elements
  • fix(useHover): prevent floating element unexpectedly closing when close to reference element when not using safePolygon() and a close delay
  • perf(useFloating): refactor events emitter
  • fix(FloatingFocusManager): ensure floating elements with no tabbable content are assigned tabIndex=0 when initialFocus is -1
  • fix(useListNavigation): handle list navigation for nested lists with mixed orientation

v0.27.6

Compare Source

Patch Changes
  • fix(useFloating): prevent error when using inline middleware when passing a real DOM element to refs.setPositionReference due to element.getClientRects() not being handled
  • fix: avoid marking root ancestor combobox with aria-hidden when nested virtual floating element opens
  • fix(FloatingFocusManager): set inert attribute value to empty string instead of "true"
  • fix(FloatingFocusManager): correct tabbing to different document contexts
  • fix(useClick): fix toggle behavior with Enter key when reference element is anchor
  • feat(FloatingFocusManager): getInsideElements prop. Allows you to specify elements that are considered as "inside" the floating element. These will avoid being marked with aria-hidden and data-floating-ui-inert attributes.
  • fix(useFocus): improve :focus-visible checks

v0.27.5

Compare Source

Patch Changes
  • fix(FloatingFocusManager): return focus on outside press if possible for non-context nested floating elements
  • perf: improve performance by only clearing used timeouts
  • fix(useMergeRefs): support React 19 ref cleanup
  • fix(FloatingFocusManager): avoid returning to unrelated references

v0.27.4

Compare Source

Patch Changes
  • fix(useListNavigation): use parent's orientation when opening/closing nested menus, correctly supporting grid submenus
  • fix(FloatingList): avoid race condition between registering/unregistering nodes and setting indices

v0.27.3

Compare Source

Patch Changes
  • feat(FloatingFocusManager): accept FloatingRootContext as the context prop
  • fix(useListNavigation): check for virtual pointer on pointerenter
  • refactor: use jsx runtime
  • Update dependencies: @floating-ui/utils@0.2.9

v0.27.2

Compare Source

Patch Changes
  • fix(FloatingFocusManager): prevent stale inert/aria-hidden attributes from being left on outside elements

v0.27.1

Compare Source

Patch Changes
  • Update dependencies: @floating-ui/react-dom@2.1.6

v0.27.0

Compare Source

Minor Changes
  • chore: deprecate inner and useInnerOffset. This technique of aligning an inner element to the reference has poor performance with longer lists, doesn't fit with the middleware paradigm, doesn't work on touch, and has a better custom alternative using native onScroll that is encouraged instead.
  • breaking: drop React 16 support. 17 is the minimum supported version.
  • fix(useId): add | undefined return type for React 17
Patch Changes
  • feat(FloatingFocusManager): add outsideElementsInert prop. This enables pointer modality without a backdrop.
  • perf(useListNavigation): simplify focusing to remove unneeded asynchronicity
  • fix(useDismiss): allow native clicks to work with referencePress
  • fix(useDismiss): read target overflow style for scrollbar press check. Fixes an issue where outside presses would be incorrectly prevented if the target element that was pressed appeared scrollable but was actually not.
  • fix(FloatingFocusManager): check for 'safe-polygon' reason on return focus

v0.26.28

Compare Source

Patch Changes
  • fix(Composite): change focus to be sync
  • fix(useClick): improve consistency when combining with useHover()
  • feat(useClick): add stickIfOpen prop to determine whether to remain open upon first click when first opened by another event
  • feat(Composite): add RTL support
  • fix(FloatingFocusManager): ensure returnFocus is ignored correctly when using disabled prop
  • fix(useListNavigation): incorrect behaviour with RTL grid

v0.26.27

Compare Source

Patch Changes
  • fix(useListNavigation): ignore Home/End key press for typeable combobox references
  • fix(useListNavigation): ensure submenu references are set as virtualItemRef on floating close
  • fix(inner): use list ref length for fallback detection
  • fix(FloatingPortal): allow root to be reactive from null to an element

v0.26.26

Compare Source

Patch Changes
  • fix(useFloating): access domReference instead of reference
  • feat(FloatingFocusManager): specify element to return focus to

v0.26.25

Compare Source

Patch Changes
  • fix(useListNavigation): handle virtual nested Home/End key press
  • fix(useHover): ignore insignificant movement when resetting restMs
  • fix(useListNavigation): ignore duplicate arrow navigation when composing
  • feat(useDelayGroup): add enabled option
  • fix(useDismiss): handle IME keydown events on Escape
  • fix(inner): round max-height only if not scrollable

v0.26.24

Compare Source

Patch Changes
  • fix(FloatingOverlay): correct multiple locks behavior on iOS
  • fix(FloatingFocusManager): avoid returning focus to nearest tabbable element of the reference if it gets removed when the floating element closes to avoid unwanted focus effects of unrelated elements firing. Tab index context remains preserved if the floating element is portaled.
  • refactor: use React.JSX.Element types. Ensure you've upgraded to the latest @types/react patches (versions since May 6, 2023)
  • fix(FloatingArrow): avoid requiring leading space for manually specified transform style property
  • fix(inner): round maxHeight and apply minItemsVisible only when scrollable
  • Update dependencies: @floating-ui/react-dom@2.1.2, @floating-ui/utils@0.2.8

v0.26.23

Compare Source

Patch Changes
  • feat: add onOpenChange reason string for FloatingFocusManager's closeOnFocusOut handling
  • fix(inner): correctly handle borders
  • fix(FloatingArrow): ignore staticOffset prop if floating element is shifted. Fixes an issue where the arrow could potentially point to nothing if it was shifted enough from its reference element.
  • fix(useListNavigation, Composite): prevent onNavigate from potentially passing in an undefined value instead of null
  • fix(useHover): blockPointerEvents no longer adds pointer-events: none to unintended <body> elements.
  • fix: manage focus on element with floating props spread on it
  • fix(FloatingFocusManager): support keepMounted behavior with disabled prop

v0.26.22

Compare Source

Patch Changes
  • Update dependencies: @floating-ui/utils@0.2.7

v0.26.21

Compare Source

Patch Changes
  • Update dependencies: @floating-ui/utils@0.2.6

v0.26.20

Compare Source

Patch Changes
  • fix: wrap focus call in act in useFocus tests
  • fix: focus always mounted nested lists with listNavigation
  • fix(FloatingFocusManager): return focus to next tabbable after reference element if removed after floating element opens without other previously focused elements to use
  • fix(useListNavigation): avoid reading ref in render
  • Update dependencies: @floating-ui/utils@0.2.5

v0.26.19

Compare Source

Patch Changes
  • refactor: use scrollX/scrollY instead of deprecated pageXOffset/pageYOffset
  • chore: fix internal dependency versioning
  • Update dependencies: @floating-ui/utils@0.2.4

v0.26.18

Compare Source

Patch Changes
  • fix(useInteractions): split prop getter dependencies so that only the relevant element changes when necessary. Previously reference and floating prop getters had dependencies grouped.
  • fix(useFocus): prevent SyntheticEvent warning on React <17
  • fix(inner): allow to make Derivable
  • fix(FloatingFocusManager): correctly close floating element when tabbing out of a modal combobox reference
  • fix(types): export FloatingPortalProps, CompositeProps, CompositeItemProps
  • chore: fix internal deps
  • fix(FloatingArrow): allow close transitions to play on floating element when grouped in instant phase
  • fix(useHover): prevent unnecessary delayed opens to preserve potential click open events. Fixes an issue when combining useHover and useClick hooks and a click occurred before the floating element could open on hover, it would unexpectedly close on mouseleave despite being triggered by a click.
  • refactor: improve types and internal codebase consistency. All documented types are now exported.
  • Update dependencies: @floating-ui/utils@0.2.3

v0.26.17

Compare Source

Patch Changes
  • fix(FloatingFocusManager): place fallback focus on element with floating props
  • feat(FloatingFocusManager): restoreFocus prop. This enables automatic restoration of focus to the nearest tabbable element if the element that currently has focus inside the floating element is removed from the DOM.
  • fix(useHover): fix restMs options throwing SyntheticEvent warning on React < 17

v0.26.16

Compare Source

Patch Changes
  • fix(useListNavigation): correct scrollIntoView and focus behavior with virtual focus and inner DOM-focused element + FloatingList
  • fix(FloatingPortal): prevent undefined id with unconditional rendering in React <18
  • fix(useListNavigation): prevent selectedIndex changes from stealing focus
  • fix(FloatingDelayGroup): prevent hydration error with Suspense
  • fix(useListNavigation, Composite): correct index calculations for grid navigation with nullish and disabled items when disabledIndices is inferred
  • perf(markOthers): avoid applying attributes to script tags needlessly
  • Update dependencies: @floating-ui/react-dom@2.1.0

v0.26.15

Compare Source

Patch Changes
  • fix(useTransitionStatus): guard isMounted check and remove unneeded initiated state. Prevents an infinite loop when called in a component with an unstable callback ref.

v0.26.14

Compare Source

Patch Changes
  • feat: add useFloatingRootContext Hook, which enables calling interaction hooks in a component higher in the tree than useFloating is called in. This supports spreading reference props onto an "external" reference element.

v0.26.13

Compare Source

Patch Changes
  • fix(FloatingFocusManager): return focus to reference when applicable even if not focused on open
  • fix(types): simplify React types
  • fix(types): replace React_2 with React in generated .d.ts files
  • fix(types): revert React.JSX.Element back to JSX.Element
  • fix(useHover): restMs + nullish open delay should respect restMs

v0.26.12

Compare Source

Patch Changes
  • fix(useFloating): external element synchronization with domReference and positionReference
  • fix(useFloating): set dataRef openEvent property to undefined on close. Fixes a minor issue when useHover restMs is combined with useClientPoint and focus modality was used before hover modality.
  • fix(useId): avoid import error in new bundlers when using React <18, and also ensure id collisions don't occur when multiple independent versions of Floating UI are used with React <18.

v0.26.11

Compare Source

Patch Changes
  • fix(useHover): ensure mouseOnly is respected when restMs is specified. Also ensure restMs is always 0 for touch input.
  • fix(types): export FloatingOverlayProps
  • feat(useDelayGroup): return the GroupContext value from the Hook, and don't require an id option to be passed. You only need to invoke useDelayGroup() and read the context data from it. As a result, useDelayGroupContext() has been deprecated as it no longer needs to be used.

v0.26.10

Compare Source

Patch Changes
  • fix(FloatingFocusManager): return focus to the first tabbable descendant of the reference element if the reference element itself is not focusable

v0.26.9

Compare Source

Patch Changes
  • fix(useFocus): avoid closing floating element when focus moves inside shadow roots

v0.26.8

Compare Source

Patch Changes
  • Update dependencies: @floating-ui/react-dom@2.0.8

v0.26.7

Compare Source

Patch Changes
  • chore: improve JSDocs
  • fix(FloatingPortal): unconditional rendering with Suspense
  • Update dependencies: @floating-ui/react-dom@2.0.7

v0.26.6

Compare Source

Patch Changes
  • c9c5058: fix(useListNavigation): sync internal indexRef to selectedIndex on open. Fixes an issue where if selectedIndex changed after initial render before opening, activeIndex would not be correctly synced.
  • 8b3c93b: fix(utils): check if env is JSDOM for isVirtualPointerEvent. Fixes issue when testing visibleOnly prop in useFocus.
  • Updated dependencies [d3a773b]

v0.26.5

Compare Source

Patch Changes

v0.26.4

Compare Source

Patch Changes
  • 7dc269c: feat(useRole): add select and combobox component roles and allow
    dynamic/derivable item props based on active and selected states. Also
    adds menuitem role for nested menu reference elements, and automatically
    adds an id to the item props for the new component roles for virtual focus.
  • d9be248: fix(useListNavigation): apply aria-activedescendant prop on
    floating element only for non typeable-combobox reference elements. Fixes
    issues with Firefox VoiceOver on Mac forcing DOM focus into the listbox.

v0.26.3

Compare Source

Patch Changes
  • 9170b9e: fix(useDismiss): targetRootAncestor check for third party outside
    presses

    The Grammarly extension no longer closes upon clicking when inside floating
    elements.

  • 66efdaf: fix(FloatingFocusManager): return focus to last connected element

v0.26.2

Compare Source

Patch Changes
  • fix(Composite): change focus to be sync
  • fix(useClick): improve consistency when combining with useHover()
  • feat(useClick): add stickIfOpen prop to determine whether to remain open upon first click when first opened by another event
  • feat(Composite): add RTL support
  • fix(FloatingFocusManager): ensure returnFocus is ignored correctly when using disabled prop
  • fix(useListNavigation): incorrect behaviour with RTL grid

v0.26.1

Compare Source

Patch Changes
  • refactor: use scrollX/scrollY instead of deprecated pageXOffset/pageYOffset
  • chore: fix internal dependency versioning
  • Update dependencies: @floating-ui/utils@0.2.4

v0.26.0

Compare Source

Minor Changes
  • 0668ed6: feat(useFocus): replace keyboardOnly option with visibleOnly
    (matches :focus-visible CSS selector)
Patch Changes
  • 07d8e85: fix(useDismiss): handle dragging outside/inside floating element
    with click outsidePressEvent
  • 841eb03: fix(useFocus): close on blur only if focus remains in document
  • e6d80ef: fix(FloatingFocusManager): treat untrapped combobox reference as
    non-modal guards
  • 4144204: fix: virtual event check for Android
  • 28659c4: refactor: move react utils to @​floating-ui/react/utils
  • Updated dependencies [28659c4]

v0.25.4

Compare Source

Patch Changes
  • 8bf6e82: fix(Composite): loop false
  • 8d57664: feat(useListNavigation): support nested virtual navigation

v0.25.3

Compare Source

Features

  • feat: add Composite components

Bug Fixes

  • fix(FloatingOverlay): avoid applying body padding if scrollbarWidth is 0

v0.25.2

Compare Source

Bug Fixes

  • fix(FloatingOverlay): prevent multiple lockScrolls with delayed unmount from unexpectedly removing later lockScroll (#​2508)

  • fix(FloatingFocusManager): keep modal focus trapped if reference is a combobox and initialFocus is not negative (#​2509)

v0.25.1

Compare Source

Bug Fixes

  • fix(types): resolution when using moduleResolution: "NodeNext" (#​2473)

  • fix(useDismiss): ignore outsidePress on third party elements injected after floating element renders (#​2471)

  • fix(FloatingArrow): type error when passing context with generic reference type (#​2484)

v0.25.0

Compare Source

Refactors

  • Split utils into @floating-ui/utils package (@floating-ui/utils/react import) (#​2449)

Bug Fixes

  • fix(FloatingPortal): generated .d.ts files have an inline import even though JSX is global (#​2457)

    Remove need for skipLibCheck in tsconfig

  • fix(useHover): cleanup when domReference changes (#​2466)

    Clears delays and other side effects if the domReference changes (or is removed)

  • fix: add type and runtime error for virtual element passed as elements.reference (#​2467)

v0.24.8

Compare Source

Bug Fixes

  • fix: useClick + useHover combo (#​2444)

    After hovering then clicking the reference element, the floating element does not close upon mouseleave (as in <=v0.24.2)

  • feat(FloatingFocusManager): disabled prop (#​2445)

    Provides ability to enable/disable the focus manager without conditional rendering, e.g. to prevent focus trap or initial focus until a transition completes

  • fix(types): export FloatingFocusManagerProps (#​2445)

v0.24.7

Compare Source

Bug Fixes

  • fix(useListNavigation): revert skipping hidden items (#​2431)

  • fix: add check for own instance in is* guard functions (#​2439)

    Fixes useHover not working in new windows (window.open())

v0.24.6

Compare Source

Bug Fixes

  • fix(useDismiss): revert third party element detection (#​2426)

v0.24.5

Compare Source

Bug Fixes

  • fix(useDismiss): check inert marker on siblings of outside press target element (#​2416)

v0.24.4

Compare Source

Bug Fixes

  • fix(useListNavigation): automatically skip hidden elements that are rendered but invisible (#​2397)

  • fix(useMergeRefs): add undefined type (#​2387)

  • fix(useDismiss): prevent outside press dismissal on elements injected outside app root after a modal floating element renders to better support third party extensions (#​2399)

  • fix(inner): take into account floating element clientTop (borders) (#​2412)

  • fix(FloatingFocusManager): refactor guards={false} prop to use inert attribute (#​2399)

v0.24.3

Compare Source

Bug Fixes

  • fix: pass event param as second argument to onOpenChange (#​2362)

  • fix(FloatingPortal): give root prop priority and allow refs (#​2363)

v0.24.2

Compare Source

Bug Fixes

  • fix(FloatingArrow): off-center offset for left/right placements when stroke is specified (#​2346)

v0.24.1

Compare Source

Bug Fixes

  • fix(safePolygon): measure offset bridge from smaller element (#​2327)

  • fix: UMD build name (FloatingUIReact, not FloatingUIReactDOM) (#​2325)

  • fix(FloatingArrow): render null if floating element is not available (#​2326)

v0.24.0

Compare Source

Refactors

  • Bump @floating-ui/react-dom to v2 (#​2300)

View CHANGELOG for breaking changes

Bug Fixes

  • fix(useTypeahead): opening when typing a space on non-button reference with useClick, and timing of onTypingChange callback setting to false (#​2305)

  • fix(FloatingArrow): add ability to override internal styles (#​2308)

  • fix(FloatingFocusManager): better handle subtree changes (#​2305)

v0.23.1

Compare Source

Bug Fixes

  • fix(FloatingList): properly update when list contains only one item (#​2294)

  • fix(FloatingFocusManager): separate initialFocus and returnFocus effects (#​2295)

    Wait for unmount transition before returning focus

  • fix(FloatingFocusManager): ignore outside guards while transitioning out (#​2295)

v0.23.0

Compare Source

New Features

  • feat(safePolygon): replace restMs option with requireIntent boolean option (#​2284)

    When multiple reference elements next to each other have hoverable floating elements, requireIntent (true by default) ensures the triangle polygon does not block hover events too aggressively compared to restMs by calculating the cursor speed to determine intent.

  • feat: FloatingList and useListItem exports (#​2269)

    This enables easy creation of composable children APIs without needing to map children and passing an index as a prop — including the ability to nest items in another tag or component.

Bug Fixes

  • fix(useClick): ignore Space keyup if Space keydown on same element did not precede it (#​2277)

  • fix(useDelayGroupContext): isInstantPhase bool sometimes being incorrectly false (#​2286)

  • fix(FloatingPortal): adjust cleanup strategy to better work with React.StrictMode and conditional rendering (#​2286)

v0.22.3

Compare Source

Bug Fixes

  • fix(FloatingFocusManager): respect autoFocus prop on children (#​2264)

  • fix(FloatingFocusManager): wait for tree nodes context to be updated (#​2265)

  • fix(FloatingFocusManager): wait for microtask before selecting tabbable elements for initial focus (#​2270)

v0.22.2

Compare Source

Bug Fixes

  • fix(useHover): check pointerType for contains check (#​2255)

v0.22.1

Compare Source

Bug Fixes

  • fix(useInteractions): merging function props that return values (#​2244)

  • fix(useClientPoint): keep anchored to reference on autoUpdate in applicable scenarios (#​2249)

  • fix(useHover): touch interactivity of floating element without safePolygon (#​2253)

  • fix(useTransitionStyles): reduce initial re-renders (#​2254)

v0.22.0

Compare Source

Refactors

  • refactor(FloatingPortal): preserve subroot structure (#​2240)

    When specifying a custom root or id, the floating element is always injected into a new subroot inside of it. The subroot has a unique id to ensure aria-owns is referenced correctly when multiple floating elements are rendered at the same time. This makes portal container behavior consistent whether props are specified or not.

    If you don't want the subroot node always in the DOM, the library now supports conditionally rendering FloatingPortal based on the open/mounted state.

  • refactor(useFloatingPortalNode): remove enabled prop (#​2240)

Bug Fixes

  • fix(useListNavigation): allow scheduled/async list population on arrow keydown open (#​2236)

  • fix(useDismiss): close when outside press dismissing on an inline element in Firefox (#​2238)

  • fix: allow FloatingPortal to be conditionally rendered based on open state (#​2239)

v0.21.1

Compare Source

Bug Fixes

  • fix: remove timeouts for focus guards on Safari (#​2227)

v0.21.0

Compare Source

New Features

  • feat: useClientPoint interaction hook (#​2179)

    This hook provides the ability to position the floating element relative to a client "point" reference. By default, "client" means mouse event coordinates since they possess clientX/Y values, so it follows the cursor when open. You can also use explicit x and y client coordinates.

    If you've used Tippy.js, it provides similar functionality to followCursor while being a bit more general.

    const clientPoint = useClientPoint(context, {
      enabled?: boolean,
      // Restrict the client point to an axis, use the DOM
      // reference as the other axis
      axis?: 'both' | 'x' | 'y',
      // Position explicitly at these client coordinates
      x?: number | null,
      y?: number | null,
    });

Refactors

  • refactor(useDismiss): default bubbles.escapeKey option to false, and allow bubbling prevention to work without using FloatingTree (#​2207)

  • refactor(useTypeahead): reduce default resetMs to 750 from 1000 (#​2213)

  • refactor(FloatingArrow): internally double strokeWidth so it matches borderWidth values (#​2223)

    ⚠️ strokeWidths larger than the floating element's borderWidth are not supported.

  • refactor(useTypeahead): add onTypingChange callback to allow setting a local ref and deprecate context.dataRef.current.typing value (#​2213)

Bug Fixes

  • fix(useFloating): return extended elements from hook (#​2209)

  • fix(useListNavigation): use mounted rather than open state to focus parent floating in tree (#​2210)

  • fix(FloatingFocusManager): make initialFocus and returnFocus non-reactive (#​2211)

  • fix: share floatingId via context object (#​2203)

  • fix(FloatingFocusManager): reset preventing returnFocus with closeOnFocusOut={false} when tabbing out then back in (#​2214)

  • fix(FloatingFocusManager): mutate internal preventReturnFocusRef instead of returnFocusRef (#​2215)

  • fix(useTypeahead): improve logic (#​2213)

    • Reset timeout from a non-match
    • Don't require a role be set and stop propagation/prevent default if typeahead is in use
  • fix(FloatingFocusManager): ensure returnFocus of a nested floating element can return to a root reference if it wasn't focused upon open (such as with a pointer) (#​2221)

  • fix(FloatingArrow): prevent transparency overlap if the floating element border and stroke are both partially transparent (#​2223)

  • fix(FloatingFocusManager): ensure initialFocus works if re-opening floating element while it was transitioning out (#​2221)

  • fix(FloatingArrow): ensure correct vertical size with larger stroke widths (#​2223)

  • fix(FloatingArrow): allow height > width (#​2223)

v0.20.1

Compare Source

Bug Fixes

  • fix(FloatingArrow): ignore SSR hydration warnings (#​2198)

v0.20.0

Compare Source

New Features

  • feat: FloatingArrow component (#​2195)

    Provides the ability to render a customizable <svg> arrow element within a floating element that is automatically positioned, without needing to setup complex styles.


Configuration

📅 Schedule: Branch creation - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner March 2, 2023 00:32
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.20.0 fix(deps): update dependency @floating-ui/react to v0.20.1 Mar 2, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 37707da to 4956631 Compare March 2, 2023 04:04
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 4956631 to 661b24e Compare March 12, 2023 20:16
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.20.1 fix(deps): update dependency @floating-ui/react to v0.21.0 Mar 12, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 661b24e to a3ddf58 Compare March 14, 2023 19:32
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.21.0 fix(deps): update dependency @floating-ui/react to v0.21.1 Mar 14, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from a3ddf58 to 6c6bb1b Compare March 19, 2023 21:49
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.21.1 fix(deps): update dependency @floating-ui/react to v0.22.0 Mar 19, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch 2 times, most recently from f3a1ea3 to 43a5fe1 Compare March 26, 2023 00:47
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.22.0 fix(deps): update dependency @floating-ui/react to v0.22.1 Mar 26, 2023
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.22.1 fix(deps): update dependency @floating-ui/react to v0.22.2 Mar 26, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch 2 times, most recently from 1924325 to de52f87 Compare April 2, 2023 08:39
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.22.2 fix(deps): update dependency @floating-ui/react to v0.22.3 Apr 2, 2023
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.22.3 fix(deps): update dependency @floating-ui/react to v0.23.0 Apr 10, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from de52f87 to 32ea7e5 Compare April 10, 2023 10:08
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.23.0 fix(deps): update dependency @floating-ui/react to v0.23.1 Apr 19, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 32ea7e5 to e6a6be5 Compare April 19, 2023 19:54
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from e6a6be5 to abcfabe Compare April 30, 2023 08:31
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.23.1 fix(deps): update dependency @floating-ui/react to v0.24.0 Apr 30, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from abcfabe to 81e29c9 Compare May 13, 2023 15:48
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.24.0 fix(deps): update dependency @floating-ui/react to v0.24.1 May 13, 2023
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.24.1 fix(deps): update dependency @floating-ui/react to v0.24.2 May 29, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 81e29c9 to 77e791a Compare May 29, 2023 02:02
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 77e791a to dc9156a Compare June 11, 2023 00:32
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.24.2 fix(deps): update dependency @floating-ui/react to v0.24.3 Jun 11, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from dc9156a to 84bc195 Compare July 4, 2023 09:53
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.24.3 fix(deps): update dependency @floating-ui/react to v0.24.4 Jul 4, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from f366811 to 120b6cc Compare August 27, 2023 15:05
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.25.1 fix(deps): update dependency @floating-ui/react to v0.25.2 Aug 27, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 120b6cc to bac343c Compare September 1, 2023 16:14
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.25.2 fix(deps): update dependency @floating-ui/react to v0.25.3 Sep 1, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from bac343c to e173520 Compare September 6, 2023 08:28
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.25.3 fix(deps): update dependency @floating-ui/react to v0.25.4 Sep 6, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from e173520 to af6b4cb Compare October 2, 2023 07:14
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.25.4 fix(deps): update dependency @floating-ui/react to v0.26.0 Oct 2, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from af6b4cb to 3bd71ff Compare October 14, 2023 19:06
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.0 fix(deps): update dependency @floating-ui/react to v0.26.1 Oct 14, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 3bd71ff to 97428b4 Compare November 8, 2023 14:36
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.1 fix(deps): update dependency @floating-ui/react to v0.26.2 Nov 8, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 97428b4 to a2809b4 Compare November 27, 2023 03:31
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.2 fix(deps): update dependency @floating-ui/react to v0.26.3 Nov 27, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from a2809b4 to cd221ed Compare December 11, 2023 06:23
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.3 fix(deps): update dependency @floating-ui/react to v0.26.4 Dec 11, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from cd221ed to 3e2fb41 Compare January 6, 2024 11:27
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.4 fix(deps): update dependency @floating-ui/react to v0.26.5 Jan 6, 2024
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 3e2fb41 to fe6e4cd Compare January 16, 2024 12:36
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.5 fix(deps): update dependency @floating-ui/react to v0.26.6 Jan 16, 2024
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from fe6e4cd to 0840413 Compare January 26, 2024 05:13
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.6 fix(deps): update dependency @floating-ui/react to v0.26.7 Jan 26, 2024
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 0840413 to 9b0ac11 Compare January 28, 2024 06:09
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.7 fix(deps): update dependency @floating-ui/react to v0.26.8 Jan 28, 2024
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 9b0ac11 to 05bec0a Compare February 3, 2024 05:20
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.8 fix(deps): update dependency @floating-ui/react to v0.26.9 Feb 3, 2024
@renovate renovate bot force-pushed the renovate/floating-ui-react-0.x branch from 05bec0a to 9e5e50a Compare March 26, 2024 14:57
@renovate renovate bot changed the title fix(deps): update dependency @floating-ui/react to v0.26.9 fix(deps): update dependency @floating-ui/react to v0.26.10 Mar 26, 2024
@socket-security
Copy link

socket-security bot commented Sep 25, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​floating-ui/​react@​0.19.2 ⏵ 0.27.19100 +310076 +192 +1100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants