Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 8, 2024

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Change Age Confidence
@floating-ui/react (source) ^0.26.21 -> ^0.27.0 age confidence

Release Notes

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

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

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

Copy link

coderabbitai bot commented Dec 8, 2024

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

sonarqubecloud bot commented Dec 8, 2024

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