floating-ui/floating-ui (@floating-ui/react-dom)
### [`v2.1.1`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#211)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.1.0...@floating-ui/react-dom@2.1.1)
##### Patch Changes
- refactor: improve types and internal codebase consistency. All documented types are now exported.
### [`v2.1.0`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#210)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.9...@floating-ui/react-dom@2.1.0)
##### Minor Changes
- feat: support dependency array as a second argument of all middleware. This ensures stateful options can be kept reactive when making them derived (passing a function that returns the options):
```js
const [value, setValue] = React.useState(0);
const offset1 = offset(value); // reactive
const offset2 = offset(() => value); // NOT reactive
const offset3 = offset(() => value, [value]); // reactive
```
This also includes `size`'s `apply` function:
```js
size(
{
apply() {
value; // reactive
},
},
[value],
);
```
### [`v2.0.9`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#209)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.8...@floating-ui/react-dom@2.0.9)
##### Patch Changes
- fix(types): replace `React_2` with `React` in generated .d.ts files
### [`v2.0.8`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#208)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.7...@floating-ui/react-dom@2.0.8)
##### Patch Changes
- Update dependencies: `@floating-ui/dom@1.6.1`
### [`v2.0.7`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#207)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.6...@floating-ui/react-dom@2.0.7)
##### Patch Changes
- Update dependencies: `@floating-ui/dom@1.6.0`
### [`v2.0.6`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#206)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.5...@floating-ui/react-dom@2.0.6)
##### Patch Changes
- [`d3a773b`](https://togithub.com/floating-ui/floating-ui/commit/d3a773b): fix: make `whileElementsMounted` reactive with respect from changing from a function to `undefined`
### [`v2.0.5`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#205)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.4...@floating-ui/react-dom@2.0.5)
##### Patch Changes
- [`4c04669`](https://togithub.com/floating-ui/floating-ui/commit/4c04669): chore: exports .d.mts types, solves [#2472](https://togithub.com/floating-ui/floating-ui/issues/2472)
- Updated dependencies \[[`4c04669`](https://togithub.com/floating-ui/floating-ui/commit/4c04669)]
- Updated dependencies \[[`0d18e37`](https://togithub.com/floating-ui/floating-ui/commit/0d18e37)]
- [@floating-ui/dom](https://togithub.com/floating-ui/dom)[@1](https://togithub.com/1).5.4
### [`v2.0.4`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#204)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.3...@floating-ui/react-dom@2.0.4)
##### Patch Changes
- [`9d22d83`](https://togithub.com/floating-ui/floating-ui/commit/9d22d831): fix: package type import
### [`v2.0.3`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#203)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.2...@floating-ui/react-dom@2.0.3)
##### Patch Changes
- [`c1965f6`](https://togithub.com/floating-ui/floating-ui/commit/c1965f65): refactor: minor jsdoc/type improvements
### [`v2.0.2`](https://togithub.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react-dom%402.0.2)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.1...@floating-ui/react-dom@2.0.2)
#### Bug Fixes
- fix(types): import types from `dom` instead of `core` ([#2513](https://togithub.com/floating-ui/floating-ui/issues/2513))
### [`v2.0.1`](https://togithub.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react-dom%402.0.1)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.0...@floating-ui/react-dom@2.0.1)
#### Bug Fixes
- fix: adjust types for new function options feature in `core`/`dom` 1.3.0 ([#2359](https://togithub.com/floating-ui/floating-ui/issues/2359))
### [`v2.0.0`](https://togithub.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react-dom%402.0.0)
[Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@1.3.0...@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](https://togithub.com/floating-ui/floating-ui/issues/2300))
`isPositioned` lets you know if the floating element has been positioned.
- Remove deprecated top-level `reference` and `floating` ref setters ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300))
These are in the `refs` object:
- `reference` -> `refs.setReference`
- `floating` -> `refs.setFloating`
- `whileElementsMounted` type requires cleanup function ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300))
#### New Features
- feat: `floatingStyles` object ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300))
Pre-configured positioning styles for the majority of cases:
```js
const {refs, floatingStyles} = useFloating();
return ;
```
- feat: external element synchronization in the hook ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300))
Avoid using layout effects:
```js
const {refs} = useFloating({
elements: {
// Either can be specified optionally
reference: referenceElement,
floating: floatingElement,
},
});
// refs.setReference / refs.setFloating can be mix and matched
```
#### Bug Fixes
- fix(types): allow `null` for `arrow`'s `element` option ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300))
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 is behind base branch, 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 contains the following updates:
^1.0.1
->^2.0.0
Release Notes
floating-ui/floating-ui (@floating-ui/react-dom)
### [`v2.1.1`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#211) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.1.0...@floating-ui/react-dom@2.1.1) ##### Patch Changes - refactor: improve types and internal codebase consistency. All documented types are now exported. ### [`v2.1.0`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#210) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.9...@floating-ui/react-dom@2.1.0) ##### Minor Changes - feat: support dependency array as a second argument of all middleware. This ensures stateful options can be kept reactive when making them derived (passing a function that returns the options): ```js const [value, setValue] = React.useState(0); const offset1 = offset(value); // reactive const offset2 = offset(() => value); // NOT reactive const offset3 = offset(() => value, [value]); // reactive ``` This also includes `size`'s `apply` function: ```js size( { apply() { value; // reactive }, }, [value], ); ``` ### [`v2.0.9`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#209) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.8...@floating-ui/react-dom@2.0.9) ##### Patch Changes - fix(types): replace `React_2` with `React` in generated .d.ts files ### [`v2.0.8`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#208) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.7...@floating-ui/react-dom@2.0.8) ##### Patch Changes - Update dependencies: `@floating-ui/dom@1.6.1` ### [`v2.0.7`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#207) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.6...@floating-ui/react-dom@2.0.7) ##### Patch Changes - Update dependencies: `@floating-ui/dom@1.6.0` ### [`v2.0.6`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#206) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.5...@floating-ui/react-dom@2.0.6) ##### Patch Changes - [`d3a773b`](https://togithub.com/floating-ui/floating-ui/commit/d3a773b): fix: make `whileElementsMounted` reactive with respect from changing from a function to `undefined` ### [`v2.0.5`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#205) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.4...@floating-ui/react-dom@2.0.5) ##### Patch Changes - [`4c04669`](https://togithub.com/floating-ui/floating-ui/commit/4c04669): chore: exports .d.mts types, solves [#2472](https://togithub.com/floating-ui/floating-ui/issues/2472) - Updated dependencies \[[`4c04669`](https://togithub.com/floating-ui/floating-ui/commit/4c04669)] - Updated dependencies \[[`0d18e37`](https://togithub.com/floating-ui/floating-ui/commit/0d18e37)] - [@floating-ui/dom](https://togithub.com/floating-ui/dom)[@1](https://togithub.com/1).5.4 ### [`v2.0.4`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#204) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.3...@floating-ui/react-dom@2.0.4) ##### Patch Changes - [`9d22d83`](https://togithub.com/floating-ui/floating-ui/commit/9d22d831): fix: package type import ### [`v2.0.3`](https://togithub.com/floating-ui/floating-ui/blob/HEAD/packages/react-dom/CHANGELOG.md#203) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.2...@floating-ui/react-dom@2.0.3) ##### Patch Changes - [`c1965f6`](https://togithub.com/floating-ui/floating-ui/commit/c1965f65): refactor: minor jsdoc/type improvements ### [`v2.0.2`](https://togithub.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react-dom%402.0.2) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.1...@floating-ui/react-dom@2.0.2) #### Bug Fixes - fix(types): import types from `dom` instead of `core` ([#2513](https://togithub.com/floating-ui/floating-ui/issues/2513)) ### [`v2.0.1`](https://togithub.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react-dom%402.0.1) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@2.0.0...@floating-ui/react-dom@2.0.1) #### Bug Fixes - fix: adjust types for new function options feature in `core`/`dom` 1.3.0 ([#2359](https://togithub.com/floating-ui/floating-ui/issues/2359)) ### [`v2.0.0`](https://togithub.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react-dom%402.0.0) [Compare Source](https://togithub.com/floating-ui/floating-ui/compare/@floating-ui/react-dom@1.3.0...@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](https://togithub.com/floating-ui/floating-ui/issues/2300)) `isPositioned` lets you know if the floating element has been positioned. - Remove deprecated top-level `reference` and `floating` ref setters ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300)) These are in the `refs` object: - `reference` -> `refs.setReference` - `floating` -> `refs.setFloating` - `whileElementsMounted` type requires cleanup function ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300)) #### New Features - feat: `floatingStyles` object ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300)) Pre-configured positioning styles for the majority of cases: ```js const {refs, floatingStyles} = useFloating(); return ; ``` - feat: external element synchronization in the hook ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300)) Avoid using layout effects: ```js const {refs} = useFloating({ elements: { // Either can be specified optionally reference: referenceElement, floating: floatingElement, }, }); // refs.setReference / refs.setFloating can be mix and matched ``` #### Bug Fixes - fix(types): allow `null` for `arrow`'s `element` option ([#2300](https://togithub.com/floating-ui/floating-ui/issues/2300))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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.