Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @floating-ui/react-dom from 1.3.0 to 2.0.1 #341

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 12, 2023

Bumps @floating-ui/react-dom from 1.3.0 to 2.0.1.

Release notes

Sourced from @​floating-ui/react-dom's releases.

@​floating-ui/react-dom@​2.0.1

Bug Fixes

  • fix: adjust types for new function options feature in core/dom 1.3.0 (#2359)

@​floating-ui/react-dom@​2.0.0

This release aims to simplify the API and remove some deprecated properties. If you've been using the refs.set* functions since their addition in January (1.2.0), then you can freely upgrade without changing any of your code.

Breaking Changes

  • Default x and y coordinates to 0 instead of null (#2300)

    isPositioned lets you know if the floating element has been positioned.

  • Remove deprecated top-level reference and floating ref setters (#2300)

    These are in the refs object:

    • reference -> refs.setReference
    • floating -> refs.setFloating
  • whileElementsMounted type requires cleanup function (#2300)

New Features

  • feat: floatingStyles object (#2300)

    Pre-configured positioning styles for the majority of cases:

    const {refs, floatingStyles} = useFloating();
    return <div ref={refs.setFloating} style={floatingStyles} />;
  • feat: external element synchronization in the hook (#2300)

    Avoid using layout effects:

    const {refs} = useFloating({
      elements: {
        // Either can be specified optionally
        reference: referenceElement,
        floating: floatingElement,
      },
    });
    // refs.setReference / refs.setFloating can be mix and matched

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@floating-ui/react-dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/react-dom) from 1.3.0 to 2.0.1.
- [Release notes](https://github.com/floating-ui/floating-ui/releases)
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/[email protected]/packages/react-dom)

---
updated-dependencies:
- dependency-name: "@floating-ui/react-dom"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jun 12, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 29, 2023

Superseded by #390.

@dependabot dependabot bot closed this Aug 29, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/floating-ui/react-dom-2.0.1 branch August 29, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants