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

Update @elastic/ml-ui dependencies (main) #204210

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

elastic-renovate-prod[bot]
Copy link
Contributor

@elastic-renovate-prod elastic-renovate-prod bot commented Dec 13, 2024

This PR contains the following updates:

Package Type Update Change
@types/async (source) devDependencies patch ^3.2.3 -> ^3.2.24
@types/he (source) devDependencies minor ^1.1.1 -> ^1.2.3
async (source) dependencies patch ^3.2.3 -> ^3.2.6
react-popper-tooltip dependencies major ^3.1.1 -> ^4.4.2

Release Notes

mohsinulhaq/react-popper-tooltip (react-popper-tooltip)

v4.4.2: Fix missing hover check in interactive mode

Compare Source

Thanks, @​cgsdev0 https://github.com/mohsinulhaq/react-popper-tooltip/pull/156

v4.4.1: Fix unintentional dependency change

Compare Source

Thanks @​JohnDaly

v4.4.0: Add double click trigger, improve styles declaration, ability to change default tooltip text color

https://github.com/mohsinulhaq/react-popper-tooltip/pull/148
https://github.com/mohsinulhaq/react-popper-tooltip/pull/149
https://github.com/mohsinulhaq/react-popper-tooltip/pull/154

v4.3.0: Add Shadow DOM support

Compare Source

As pointed out by https://github.com/mohsinulhaq/react-popper-tooltip/issues/133 (thanks @​shovalk), interactions with the tooltip when rendered using Shadow DOM wasn't working properly. This release adds support for that by using Event.composedPath to get event target, with event.target as fallback for IE11.

v4.2.0: Revert to mouseenter/mouseleave hover mechanic

Compare Source

v4.1.0 introduced a new way of handling hover trigger, which had a couple of improvements over the old one, but unintentionally led to another set of serious issues.
We have now reverted to the older hover mechanic while also solving the older problems by setting pointer-events: none on the arrow as well as the non-interactive tooltip.

v4.1.2: Hover trigger bug fixes introduced in v4.1.0 🐛

Compare Source

Fixes: https://github.com/mohsinulhaq/react-popper-tooltip/issues/117 & https://github.com/mohsinulhaq/react-popper-tooltip/issues/118

v4.1.1

Compare Source

v4.1.0: An improved and more resilient hover trigger!

Thanks to the contribution by @​czabaj 👑, the hover trigger is now improved quite a bit, accounting for the gap between the trigger and the tooltip and also fixing a glitch in cases where tooltip and trigger overlap.

v4.0.0: usePopperTooltip hook! 🪝

Compare Source

Release notes

With react-popper, used under the hood of react-popper-tooltip, introducing the usePopper hook in the last
major update, we're now releasing the hook version of our own library as well - usePopperTooltip. The hook provides many new features and flexibility
and allows for implementations not possible before.

Breaking changes

This release onwards, the hook is the only way of creating tooltips. This version drops the support of
the TooltipTrigger render prop component. If you want to upgrade and still keep using render prop API,
refer to our example section to implement the legacy API with our new hook.

We wrote this version from scratch. Although thoroughly tested, it can still possibly contain some regressions. Please,
report any problems using the issues link.

  • For the sake of consistency, we made some changes to the props names.

    • defaultTooltipShown is renamed to defaultVisible
    • tooltipShown is renamed to visible
    • onVisibilityChange is renamed to onVisibleChange
    • closeOnReferenceHidden is renamed to closeOnTriggerHidden and the default value changed from true to false
  • The default placement is now bottom instead of right, in line with react-popper defaults.

  • The string value "none" for the prop trigger is replaced with null.

  • The default CSS has a few positioning and naming changes.

  • Previously, when a user hovered the tooltip, it stayed open to allow the user to interact with the tooltip's content.
    Now the tooltip closes as soon as the cursor leaves the trigger element. The new option interactive has been added to
    configure this behavior.

  • getTriggerProps and arrowRef are no longer needed.


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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

This PR has been generated by Renovate Bot.

@elastic-renovate-prod elastic-renovate-prod bot added :ml backport:all-open Backport to all branches that could still receive a release release_note:skip Skip the PR/issue when compiling release notes Team:ML Team label for ML (also use :ml) labels Dec 13, 2024
@elastic-renovate-prod elastic-renovate-prod bot requested a review from a team December 13, 2024 12:55
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@darnautov
Copy link
Contributor

@elasticmachine merge upstream

@elastic-renovate-prod elastic-renovate-prod bot force-pushed the renovate/main-@elasticml-ui-dependencies branch from abce04d to 70fc1dc Compare January 8, 2025 15:31
@darnautov darnautov enabled auto-merge (squash) January 8, 2025 19:14
@elastic-renovate-prod elastic-renovate-prod bot force-pushed the renovate/main-@elasticml-ui-dependencies branch 2 times, most recently from b9b22d1 to fcdf1e8 Compare January 9, 2025 10:22
@Ikuni17
Copy link
Contributor

Ikuni17 commented Jan 9, 2025

buildkite test this

@Ikuni17
Copy link
Contributor

Ikuni17 commented Jan 9, 2025

@darnautov @peteharverson CI does not automatically run on renovate PRs in the Kibana repo to reduce CI costs. Commenting with /ci or buildkite test this will trigger the CI.

@elastic-renovate-prod elastic-renovate-prod bot force-pushed the renovate/main-@elasticml-ui-dependencies branch from fcdf1e8 to 0de373c Compare January 10, 2025 02:39
Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested changes in f6ce007 inside ML and Dashboard embeddables and LGTM. Didn't see any regressions.

@walterra
Copy link
Contributor

For reference, I used this migration guide to update the tooltips: https://github.com/mohsinulhaq/react-popper-tooltip/blob/HEAD/migrating.md

@walterra
Copy link
Contributor

/ci

@elasticmachine
Copy link
Contributor

elasticmachine commented Jan 20, 2025

💔 Build Failed

Failed CI Steps

History

@elastic-renovate-prod elastic-renovate-prod bot force-pushed the renovate/main-@elasticml-ui-dependencies branch from c6deb67 to d1a9c5d Compare January 20, 2025 17:39
@walterra walterra force-pushed the renovate/main-@elasticml-ui-dependencies branch from d1a9c5d to 25b70e2 Compare January 21, 2025 09:54
@elastic-renovate-prod
Copy link
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@walterra walterra force-pushed the renovate/main-@elasticml-ui-dependencies branch from 25b70e2 to 2e3e681 Compare January 22, 2025 09:27
@walterra
Copy link
Contributor

/ci

@darnautov darnautov merged commit 71b34a9 into main Jan 22, 2025
8 checks passed
@darnautov darnautov deleted the renovate/main-@elasticml-ui-dependencies branch January 22, 2025 11:51
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 7.17, 8.16, 8.17, 8.x

https://github.com/elastic/kibana/actions/runs/12907593394

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 22, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[@types/he](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/he)
([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/he))
| devDependencies | minor | [`^1.1.1` ->
`^1.2.3`](https://renovatebot.com/diffs/npm/@types%2fhe/1.1.1/1.2.3) |
|
[react-popper-tooltip](https://github.com/mohsinulhaq/react-popper-tooltip)
| dependencies | major | [`^3.1.1` ->
`^4.4.2`](https://renovatebot.com/diffs/npm/react-popper-tooltip/3.1.1/4.4.2)
|

---

### Release Notes

<details>
<summary>mohsinulhaq/react-popper-tooltip
(react-popper-tooltip)</summary>

###
[`v4.4.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.2):
Fix missing hover check in interactive mode

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.1...v4.4.2)

Thanks, [@&elastic#8203;cgsdev0](https://github.com/cgsdev0)
[https://github.com/mohsinulhaq/react-popper-tooltip/pull/156](https://github.com/mohsinulhaq/react-popper-tooltip/pull/156)

###
[`v4.4.1`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.1):
Fix unintentional dependency change

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.0...v4.4.1)

Thanks [@&elastic#8203;JohnDaly](https://github.com/JohnDaly)

###
[`v4.4.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.0):
Add double click trigger, improve styles declaration, ability to change
default tooltip text color

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/148](https://github.com/mohsinulhaq/react-popper-tooltip/pull/148)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/149](https://github.com/mohsinulhaq/react-popper-tooltip/pull/149)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/154](https://github.com/mohsinulhaq/react-popper-tooltip/pull/154)

###
[`v4.3.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.3.0):
Add Shadow DOM support

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.2.0...v4.3.0)

As pointed out by
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/133](https://github.com/mohsinulhaq/react-popper-tooltip/issues/133)
(thanks [@&elastic#8203;shovalk](https://github.com/shovalk)), interactions
with the tooltip when rendered using Shadow DOM wasn't working properly.
This release adds support for that by using
[Event.composedPath](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath)
to get event target, with `event.target` as fallback for IE11.

###
[`v4.2.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.2.0):
Revert to mouseenter/mouseleave hover mechanic

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.2...v4.2.0)

`v4.1.0` introduced a new way of handling hover trigger, which had a
couple of improvements over the old one, but unintentionally led to
another set of serious issues.
We have now reverted to the older hover mechanic while also solving the
older problems by setting `pointer-events: none` on the arrow as well as
the non-interactive tooltip.

###
[`v4.1.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.2):
Hover trigger bug fixes introduced in v4.1.0 🐛

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.1...v4.1.2)

Fixes:
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/117](https://github.com/mohsinulhaq/react-popper-tooltip/issues/117)
&
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/118](https://github.com/mohsinulhaq/react-popper-tooltip/issues/118)

###
[`v4.1.1`](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

###
[`v4.1.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.0):
An improved and more resilient hover trigger!

Thanks to the contribution by
[@&elastic#8203;czabaj](https://github.com/czabaj) 👑, the hover trigger is
now improved quite a bit, accounting for the gap between the trigger and
the tooltip and also fixing a glitch in cases where tooltip and trigger
overlap.

###
[`v4.0.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.0.0):
usePopperTooltip hook! 🪝

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v3.1.1...v4.0.0)

### Release notes

With **react-popper**, used under the hood of **react-popper-tooltip**,
introducing the `usePopper` hook in the last
major update, we're now releasing the hook version of our own library as
well - `usePopperTooltip`. The hook provides many new features and
flexibility
and allows for implementations not possible before.

#### Breaking changes

This release onwards, the hook is the only way of creating tooltips.
This version drops the support of
the `TooltipTrigger` render prop component. If you want to upgrade and
still keep using render prop API,
refer to our example section to implement the legacy API with our new
hook.

We wrote this version from scratch. Although thoroughly tested, it can
still possibly contain some regressions. Please,
report any problems using the [issues
link](https://github.com/mohsinulhaq/react-popper-tooltip/issues).

- For the sake of consistency, we made some changes to the props names.

    -   `defaultTooltipShown` is renamed to `defaultVisible`
    -   `tooltipShown` is renamed to `visible`
    -   `onVisibilityChange` is renamed to `onVisibleChange`
- `closeOnReferenceHidden` is renamed to `closeOnTriggerHidden` and the
default value changed from `true` to `false`

- The default placement is now `bottom` instead of `right`, in line with
react-popper defaults.

- The string value `"none"` for the prop `trigger` is replaced with
`null`.

-   The default CSS has a few positioning and naming changes.

- Previously, when a user hovered the tooltip, it stayed open to allow
the user to interact with the tooltip's content.
Now the tooltip closes as soon as the cursor leaves the trigger element.
The new option `interactive` has been added to
    configure this behavior.

-   `getTriggerProps` and `arrowRef` are no longer needed.

</details>

---

### 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyI6bWwiLCJUZWFtOk1MIiwiYmFja3BvcnQ6YWxsLW9wZW4iLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
(cherry picked from commit 71b34a9)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
7.17 Backport failed because of merge conflicts
8.16 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.16:
- Update platform security modules (main) (#206227)
8.17 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.17:
- Update platform security modules (main) (#206227)
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 204210

Questions ?

Please refer to the Backport tool documentation

@walterra
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.17

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

walterra pushed a commit to walterra/kibana that referenced this pull request Jan 22, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[@types/he](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/he)
([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/he))
| devDependencies | minor | [`^1.1.1` ->
`^1.2.3`](https://renovatebot.com/diffs/npm/@types%2fhe/1.1.1/1.2.3) |
|
[react-popper-tooltip](https://github.com/mohsinulhaq/react-popper-tooltip)
| dependencies | major | [`^3.1.1` ->
`^4.4.2`](https://renovatebot.com/diffs/npm/react-popper-tooltip/3.1.1/4.4.2)
|

---

### Release Notes

<details>
<summary>mohsinulhaq/react-popper-tooltip
(react-popper-tooltip)</summary>

###
[`v4.4.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.2):
Fix missing hover check in interactive mode

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.1...v4.4.2)

Thanks, [@&elastic#8203;cgsdev0](https://github.com/cgsdev0)
[https://github.com/mohsinulhaq/react-popper-tooltip/pull/156](https://github.com/mohsinulhaq/react-popper-tooltip/pull/156)

###
[`v4.4.1`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.1):
Fix unintentional dependency change

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.0...v4.4.1)

Thanks [@&elastic#8203;JohnDaly](https://github.com/JohnDaly)

###
[`v4.4.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.0):
Add double click trigger, improve styles declaration, ability to change
default tooltip text color

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/148](https://github.com/mohsinulhaq/react-popper-tooltip/pull/148)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/149](https://github.com/mohsinulhaq/react-popper-tooltip/pull/149)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/154](https://github.com/mohsinulhaq/react-popper-tooltip/pull/154)

###
[`v4.3.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.3.0):
Add Shadow DOM support

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.2.0...v4.3.0)

As pointed out by
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/133](https://github.com/mohsinulhaq/react-popper-tooltip/issues/133)
(thanks [@&elastic#8203;shovalk](https://github.com/shovalk)), interactions
with the tooltip when rendered using Shadow DOM wasn't working properly.
This release adds support for that by using
[Event.composedPath](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath)
to get event target, with `event.target` as fallback for IE11.

###
[`v4.2.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.2.0):
Revert to mouseenter/mouseleave hover mechanic

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.2...v4.2.0)

`v4.1.0` introduced a new way of handling hover trigger, which had a
couple of improvements over the old one, but unintentionally led to
another set of serious issues.
We have now reverted to the older hover mechanic while also solving the
older problems by setting `pointer-events: none` on the arrow as well as
the non-interactive tooltip.

###
[`v4.1.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.2):
Hover trigger bug fixes introduced in v4.1.0 🐛

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.1...v4.1.2)

Fixes:
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/117](https://github.com/mohsinulhaq/react-popper-tooltip/issues/117)
&
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/118](https://github.com/mohsinulhaq/react-popper-tooltip/issues/118)

###
[`v4.1.1`](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

###
[`v4.1.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.0):
An improved and more resilient hover trigger!

Thanks to the contribution by
[@&elastic#8203;czabaj](https://github.com/czabaj) 👑, the hover trigger is
now improved quite a bit, accounting for the gap between the trigger and
the tooltip and also fixing a glitch in cases where tooltip and trigger
overlap.

###
[`v4.0.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.0.0):
usePopperTooltip hook! 🪝

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v3.1.1...v4.0.0)

### Release notes

With **react-popper**, used under the hood of **react-popper-tooltip**,
introducing the `usePopper` hook in the last
major update, we're now releasing the hook version of our own library as
well - `usePopperTooltip`. The hook provides many new features and
flexibility
and allows for implementations not possible before.

#### Breaking changes

This release onwards, the hook is the only way of creating tooltips.
This version drops the support of
the `TooltipTrigger` render prop component. If you want to upgrade and
still keep using render prop API,
refer to our example section to implement the legacy API with our new
hook.

We wrote this version from scratch. Although thoroughly tested, it can
still possibly contain some regressions. Please,
report any problems using the [issues
link](https://github.com/mohsinulhaq/react-popper-tooltip/issues).

- For the sake of consistency, we made some changes to the props names.

    -   `defaultTooltipShown` is renamed to `defaultVisible`
    -   `tooltipShown` is renamed to `visible`
    -   `onVisibilityChange` is renamed to `onVisibleChange`
- `closeOnReferenceHidden` is renamed to `closeOnTriggerHidden` and the
default value changed from `true` to `false`

- The default placement is now `bottom` instead of `right`, in line with
react-popper defaults.

- The string value `"none"` for the prop `trigger` is replaced with
`null`.

-   The default CSS has a few positioning and naming changes.

- Previously, when a user hovered the tooltip, it stayed open to allow
the user to interact with the tooltip's content.
Now the tooltip closes as soon as the cursor leaves the trigger element.
The new option `interactive` has been added to
    configure this behavior.

-   `getTriggerProps` and `arrowRef` are no longer needed.

</details>

---

### 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyI6bWwiLCJUZWFtOk1MIiwiYmFja3BvcnQ6YWxsLW9wZW4iLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
(cherry picked from commit 71b34a9)

# Conflicts:
#	package.json
@walterra
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

walterra pushed a commit to walterra/kibana that referenced this pull request Jan 22, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[@types/he](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/he)
([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/he))
| devDependencies | minor | [`^1.1.1` ->
`^1.2.3`](https://renovatebot.com/diffs/npm/@types%2fhe/1.1.1/1.2.3) |
|
[react-popper-tooltip](https://github.com/mohsinulhaq/react-popper-tooltip)
| dependencies | major | [`^3.1.1` ->
`^4.4.2`](https://renovatebot.com/diffs/npm/react-popper-tooltip/3.1.1/4.4.2)
|

---

### Release Notes

<details>
<summary>mohsinulhaq/react-popper-tooltip
(react-popper-tooltip)</summary>

###
[`v4.4.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.2):
Fix missing hover check in interactive mode

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.1...v4.4.2)

Thanks, [@&elastic#8203;cgsdev0](https://github.com/cgsdev0)
[https://github.com/mohsinulhaq/react-popper-tooltip/pull/156](https://github.com/mohsinulhaq/react-popper-tooltip/pull/156)

###
[`v4.4.1`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.1):
Fix unintentional dependency change

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.0...v4.4.1)

Thanks [@&elastic#8203;JohnDaly](https://github.com/JohnDaly)

###
[`v4.4.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.0):
Add double click trigger, improve styles declaration, ability to change
default tooltip text color

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/148](https://github.com/mohsinulhaq/react-popper-tooltip/pull/148)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/149](https://github.com/mohsinulhaq/react-popper-tooltip/pull/149)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/154](https://github.com/mohsinulhaq/react-popper-tooltip/pull/154)

###
[`v4.3.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.3.0):
Add Shadow DOM support

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.2.0...v4.3.0)

As pointed out by
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/133](https://github.com/mohsinulhaq/react-popper-tooltip/issues/133)
(thanks [@&elastic#8203;shovalk](https://github.com/shovalk)), interactions
with the tooltip when rendered using Shadow DOM wasn't working properly.
This release adds support for that by using
[Event.composedPath](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath)
to get event target, with `event.target` as fallback for IE11.

###
[`v4.2.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.2.0):
Revert to mouseenter/mouseleave hover mechanic

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.2...v4.2.0)

`v4.1.0` introduced a new way of handling hover trigger, which had a
couple of improvements over the old one, but unintentionally led to
another set of serious issues.
We have now reverted to the older hover mechanic while also solving the
older problems by setting `pointer-events: none` on the arrow as well as
the non-interactive tooltip.

###
[`v4.1.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.2):
Hover trigger bug fixes introduced in v4.1.0 🐛

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.1...v4.1.2)

Fixes:
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/117](https://github.com/mohsinulhaq/react-popper-tooltip/issues/117)
&
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/118](https://github.com/mohsinulhaq/react-popper-tooltip/issues/118)

###
[`v4.1.1`](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

###
[`v4.1.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.0):
An improved and more resilient hover trigger!

Thanks to the contribution by
[@&elastic#8203;czabaj](https://github.com/czabaj) 👑, the hover trigger is
now improved quite a bit, accounting for the gap between the trigger and
the tooltip and also fixing a glitch in cases where tooltip and trigger
overlap.

###
[`v4.0.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.0.0):
usePopperTooltip hook! 🪝

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v3.1.1...v4.0.0)

### Release notes

With **react-popper**, used under the hood of **react-popper-tooltip**,
introducing the `usePopper` hook in the last
major update, we're now releasing the hook version of our own library as
well - `usePopperTooltip`. The hook provides many new features and
flexibility
and allows for implementations not possible before.

#### Breaking changes

This release onwards, the hook is the only way of creating tooltips.
This version drops the support of
the `TooltipTrigger` render prop component. If you want to upgrade and
still keep using render prop API,
refer to our example section to implement the legacy API with our new
hook.

We wrote this version from scratch. Although thoroughly tested, it can
still possibly contain some regressions. Please,
report any problems using the [issues
link](https://github.com/mohsinulhaq/react-popper-tooltip/issues).

- For the sake of consistency, we made some changes to the props names.

    -   `defaultTooltipShown` is renamed to `defaultVisible`
    -   `tooltipShown` is renamed to `visible`
    -   `onVisibilityChange` is renamed to `onVisibleChange`
- `closeOnReferenceHidden` is renamed to `closeOnTriggerHidden` and the
default value changed from `true` to `false`

- The default placement is now `bottom` instead of `right`, in line with
react-popper defaults.

- The string value `"none"` for the prop `trigger` is replaced with
`null`.

-   The default CSS has a few positioning and naming changes.

- Previously, when a user hovered the tooltip, it stayed open to allow
the user to interact with the tooltip's content.
Now the tooltip closes as soon as the cursor leaves the trigger element.
The new option `interactive` has been added to
    configure this behavior.

-   `getTriggerProps` and `arrowRef` are no longer needed.

</details>

---

### 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyI6bWwiLCJUZWFtOk1MIiwiYmFja3BvcnQ6YWxsLW9wZW4iLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
(cherry picked from commit 71b34a9)

# Conflicts:
#	package.json
#	x-pack/plugins/ml/public/application/components/chart_tooltip/chart_tooltip.tsx
#	yarn.lock
walterra pushed a commit to walterra/kibana that referenced this pull request Jan 22, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[@types/he](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/he)
([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/he))
| devDependencies | minor | [`^1.1.1` ->
`^1.2.3`](https://renovatebot.com/diffs/npm/@types%2fhe/1.1.1/1.2.3) |
|
[react-popper-tooltip](https://github.com/mohsinulhaq/react-popper-tooltip)
| dependencies | major | [`^3.1.1` ->
`^4.4.2`](https://renovatebot.com/diffs/npm/react-popper-tooltip/3.1.1/4.4.2)
|

---

### Release Notes

<details>
<summary>mohsinulhaq/react-popper-tooltip
(react-popper-tooltip)</summary>

###
[`v4.4.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.2):
Fix missing hover check in interactive mode

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.1...v4.4.2)

Thanks, [@&elastic#8203;cgsdev0](https://github.com/cgsdev0)
[https://github.com/mohsinulhaq/react-popper-tooltip/pull/156](https://github.com/mohsinulhaq/react-popper-tooltip/pull/156)

###
[`v4.4.1`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.1):
Fix unintentional dependency change

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.0...v4.4.1)

Thanks [@&elastic#8203;JohnDaly](https://github.com/JohnDaly)

###
[`v4.4.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.0):
Add double click trigger, improve styles declaration, ability to change
default tooltip text color

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/148](https://github.com/mohsinulhaq/react-popper-tooltip/pull/148)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/149](https://github.com/mohsinulhaq/react-popper-tooltip/pull/149)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/154](https://github.com/mohsinulhaq/react-popper-tooltip/pull/154)

###
[`v4.3.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.3.0):
Add Shadow DOM support

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.2.0...v4.3.0)

As pointed out by
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/133](https://github.com/mohsinulhaq/react-popper-tooltip/issues/133)
(thanks [@&elastic#8203;shovalk](https://github.com/shovalk)), interactions
with the tooltip when rendered using Shadow DOM wasn't working properly.
This release adds support for that by using
[Event.composedPath](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath)
to get event target, with `event.target` as fallback for IE11.

###
[`v4.2.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.2.0):
Revert to mouseenter/mouseleave hover mechanic

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.2...v4.2.0)

`v4.1.0` introduced a new way of handling hover trigger, which had a
couple of improvements over the old one, but unintentionally led to
another set of serious issues.
We have now reverted to the older hover mechanic while also solving the
older problems by setting `pointer-events: none` on the arrow as well as
the non-interactive tooltip.

###
[`v4.1.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.2):
Hover trigger bug fixes introduced in v4.1.0 🐛

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.1...v4.1.2)

Fixes:
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/117](https://github.com/mohsinulhaq/react-popper-tooltip/issues/117)
&
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/118](https://github.com/mohsinulhaq/react-popper-tooltip/issues/118)

###
[`v4.1.1`](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

###
[`v4.1.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.0):
An improved and more resilient hover trigger!

Thanks to the contribution by
[@&elastic#8203;czabaj](https://github.com/czabaj) 👑, the hover trigger is
now improved quite a bit, accounting for the gap between the trigger and
the tooltip and also fixing a glitch in cases where tooltip and trigger
overlap.

###
[`v4.0.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.0.0):
usePopperTooltip hook! 🪝

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v3.1.1...v4.0.0)

### Release notes

With **react-popper**, used under the hood of **react-popper-tooltip**,
introducing the `usePopper` hook in the last
major update, we're now releasing the hook version of our own library as
well - `usePopperTooltip`. The hook provides many new features and
flexibility
and allows for implementations not possible before.

#### Breaking changes

This release onwards, the hook is the only way of creating tooltips.
This version drops the support of
the `TooltipTrigger` render prop component. If you want to upgrade and
still keep using render prop API,
refer to our example section to implement the legacy API with our new
hook.

We wrote this version from scratch. Although thoroughly tested, it can
still possibly contain some regressions. Please,
report any problems using the [issues
link](https://github.com/mohsinulhaq/react-popper-tooltip/issues).

- For the sake of consistency, we made some changes to the props names.

    -   `defaultTooltipShown` is renamed to `defaultVisible`
    -   `tooltipShown` is renamed to `visible`
    -   `onVisibilityChange` is renamed to `onVisibleChange`
- `closeOnReferenceHidden` is renamed to `closeOnTriggerHidden` and the
default value changed from `true` to `false`

- The default placement is now `bottom` instead of `right`, in line with
react-popper defaults.

- The string value `"none"` for the prop `trigger` is replaced with
`null`.

-   The default CSS has a few positioning and naming changes.

- Previously, when a user hovered the tooltip, it stayed open to allow
the user to interact with the tooltip's content.
Now the tooltip closes as soon as the cursor leaves the trigger element.
The new option `interactive` has been added to
    configure this behavior.

-   `getTriggerProps` and `arrowRef` are no longer needed.

</details>

---

### 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyI6bWwiLCJUZWFtOk1MIiwiYmFja3BvcnQ6YWxsLW9wZW4iLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
(cherry picked from commit 71b34a9)

# Conflicts:
#	package.json
#	x-pack/plugins/ml/public/application/components/chart_tooltip/chart_tooltip.tsx
#	yarn.lock
@walterra
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
7.17

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

walterra added a commit that referenced this pull request Jan 22, 2025
# Backport

This will backport the following commits from `main` to `8.17`:
- [Update @elastic/ml-ui dependencies (main)
(#204210)](#204210)

<!--- Backport version: 9.6.4 -->

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: kibanamachine <[email protected]>
walterra added a commit that referenced this pull request Jan 22, 2025
# Backport

This will backport the following commits from `main` to `8.16`:
- [Update @elastic/ml-ui dependencies (main)
(#204210)](#204210)

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
walterra added a commit that referenced this pull request Jan 22, 2025
# Backport

This will backport the following commits from `main` to `7.17`:
- [Update @elastic/ml-ui dependencies (main)
(#204210)](#204210)

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: kibanamachine <[email protected]>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jan 23, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

kibanamachine added a commit that referenced this pull request Jan 23, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [Update @elastic/ml-ui dependencies (main)
(#204210)](#204210)

<!--- Backport version: 9.4.3 -->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Walter Rafelsberger <[email protected]>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jan 23, 2025
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[@types/he](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/he)
([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/he))
| devDependencies | minor | [`^1.1.1` ->
`^1.2.3`](https://renovatebot.com/diffs/npm/@types%2fhe/1.1.1/1.2.3) |
|
[react-popper-tooltip](https://github.com/mohsinulhaq/react-popper-tooltip)
| dependencies | major | [`^3.1.1` ->
`^4.4.2`](https://renovatebot.com/diffs/npm/react-popper-tooltip/3.1.1/4.4.2)
|

---

### Release Notes

<details>
<summary>mohsinulhaq/react-popper-tooltip
(react-popper-tooltip)</summary>

###
[`v4.4.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.2):
Fix missing hover check in interactive mode

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.1...v4.4.2)

Thanks, [@&elastic#8203;cgsdev0](https://github.com/cgsdev0)
[https://github.com/mohsinulhaq/react-popper-tooltip/pull/156](https://github.com/mohsinulhaq/react-popper-tooltip/pull/156)

###
[`v4.4.1`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.1):
Fix unintentional dependency change

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.4.0...v4.4.1)

Thanks [@&elastic#8203;JohnDaly](https://github.com/JohnDaly)

###
[`v4.4.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.4.0):
Add double click trigger, improve styles declaration, ability to change
default tooltip text color


[https://github.com/mohsinulhaq/react-popper-tooltip/pull/148](https://github.com/mohsinulhaq/react-popper-tooltip/pull/148)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/149](https://github.com/mohsinulhaq/react-popper-tooltip/pull/149)

[https://github.com/mohsinulhaq/react-popper-tooltip/pull/154](https://github.com/mohsinulhaq/react-popper-tooltip/pull/154)

###
[`v4.3.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.3.0):
Add Shadow DOM support

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.2.0...v4.3.0)

As pointed out by
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/133](https://github.com/mohsinulhaq/react-popper-tooltip/issues/133)
(thanks [@&elastic#8203;shovalk](https://github.com/shovalk)), interactions
with the tooltip when rendered using Shadow DOM wasn't working properly.
This release adds support for that by using
[Event.composedPath](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath)
to get event target, with `event.target` as fallback for IE11.

###
[`v4.2.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.2.0):
Revert to mouseenter/mouseleave hover mechanic

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.2...v4.2.0)

`v4.1.0` introduced a new way of handling hover trigger, which had a
couple of improvements over the old one, but unintentionally led to
another set of serious issues.
We have now reverted to the older hover mechanic while also solving the
older problems by setting `pointer-events: none` on the arrow as well as
the non-interactive tooltip.

###
[`v4.1.2`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.2):
Hover trigger bug fixes introduced in v4.1.0 🐛

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.1...v4.1.2)

Fixes:
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/117](https://github.com/mohsinulhaq/react-popper-tooltip/issues/117)
&
[https://github.com/mohsinulhaq/react-popper-tooltip/issues/118](https://github.com/mohsinulhaq/react-popper-tooltip/issues/118)

###
[`v4.1.1`](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v4.1.0...v4.1.1)

###
[`v4.1.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.1.0):
An improved and more resilient hover trigger!

Thanks to the contribution by
[@&elastic#8203;czabaj](https://github.com/czabaj) 👑, the hover trigger is
now improved quite a bit, accounting for the gap between the trigger and
the tooltip and also fixing a glitch in cases where tooltip and trigger
overlap.

###
[`v4.0.0`](https://github.com/mohsinulhaq/react-popper-tooltip/releases/tag/v4.0.0):
usePopperTooltip hook! 🪝

[Compare
Source](https://github.com/mohsinulhaq/react-popper-tooltip/compare/v3.1.1...v4.0.0)

### Release notes

With **react-popper**, used under the hood of **react-popper-tooltip**,
introducing the `usePopper` hook in the last
major update, we're now releasing the hook version of our own library as
well - `usePopperTooltip`. The hook provides many new features and
flexibility
and allows for implementations not possible before.

#### Breaking changes

This release onwards, the hook is the only way of creating tooltips.
This version drops the support of
the `TooltipTrigger` render prop component. If you want to upgrade and
still keep using render prop API,
refer to our example section to implement the legacy API with our new
hook.

We wrote this version from scratch. Although thoroughly tested, it can
still possibly contain some regressions. Please,
report any problems using the [issues
link](https://github.com/mohsinulhaq/react-popper-tooltip/issues).

- For the sake of consistency, we made some changes to the props names.

    -   `defaultTooltipShown` is renamed to `defaultVisible`
    -   `tooltipShown` is renamed to `visible`
    -   `onVisibilityChange` is renamed to `onVisibleChange`
- `closeOnReferenceHidden` is renamed to `closeOnTriggerHidden` and the
default value changed from `true` to `false`

- The default placement is now `bottom` instead of `right`, in line with
react-popper defaults.

- The string value `"none"` for the prop `trigger` is replaced with
`null`.

-   The default CSS has a few positioning and naming changes.

- Previously, when a user hovered the tooltip, it stayed open to allow
the user to interact with the tooltip's content.
Now the tooltip closes as soon as the cursor leaves the trigger element.
The new option `interactive` has been added to
    configure this behavior.

-   `getTriggerProps` and `arrowRef` are no longer needed.

</details>

---

### 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyI6bWwiLCJUZWFtOk1MIiwiYmFja3BvcnQ6YWxsLW9wZW4iLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:all-open Backport to all branches that could still receive a release :ml release_note:skip Skip the PR/issue when compiling release notes Team:ML Team label for ML (also use :ml) v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants