Skip to content

Commit

Permalink
Update dependency @elastic/charts to v52 (main) (#149757)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@elastic/charts](https://togithub.com/elastic/elastic-charts) |
[`51.3.0` ->
`52.0.0`](https://renovatebot.com/diffs/npm/@elastic%2fcharts/51.3.0/52.0.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/52.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/52.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/52.0.0/compatibility-slim/51.3.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/52.0.0/confidence-slim/51.3.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>elastic/elastic-charts</summary>

###
[`v52.0.0`](https://togithub.com/elastic/elastic-charts/blob/HEAD/CHANGELOG.md#&#8203;5200-httpsgithubcomelasticelastic-chartscomparev5130v5200-2023-01-27)

[Compare
Source](https://togithub.com/elastic/elastic-charts/compare/v51.3.0...v52.0.0)

##### Bug Fixes

- annotation details tooltip throwing with hooks
([#&#8203;1949](https://togithub.com/elastic/elastic-charts/issues/1949))
([779b7f3](https://togithub.com/elastic/elastic-charts/commit/779b7f3499f34fb4471ee5f1fac390a7499fe6ee))
- **deps:** update dependency
[@&#8203;elastic/eui](https://togithub.com/elastic/eui) to v72
([#&#8203;1914](https://togithub.com/elastic/elastic-charts/issues/1914))
([8814c80](https://togithub.com/elastic/elastic-charts/commit/8814c80f71ff6cbd39187064abda131077f3ca68))
- **deps:** update dependency
[@&#8203;elastic/eui](https://togithub.com/elastic/eui) to v73
([#&#8203;1941](https://togithub.com/elastic/elastic-charts/issues/1941))
([4eeafa7](https://togithub.com/elastic/elastic-charts/commit/4eeafa7864f756685ae23ced54dd34f9fede330a))

##### BREAKING CHANGES

- The `customTooltipDetails` type is now passing `details` as `props`
using a `ComponentType`.

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

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

---

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

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nickofthyme <nicholas.partridge@elastic.co>
Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
  • Loading branch information
4 people committed Feb 6, 2023
1 parent 84efdaa commit e8ad3e4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"@dnd-kit/utilities": "^2.0.0",
"@elastic/apm-rum": "^5.12.0",
"@elastic/apm-rum-react": "^1.4.2",
"@elastic/charts": "51.3.0",
"@elastic/charts": "52.0.0",
"@elastic/datemath": "5.0.3",
"@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.6.0-canary.3",
"@elastic/ems-client": "8.4.0",
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/charts/public/static/components/endzones.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
RectAnnotation,
RectAnnotationDatum,
RectAnnotationStyle,
AnnotationTooltipFormatter,
} from '@elastic/charts';
import { i18n } from '@kbn/i18n';
import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiSpacer, useEuiTheme } from '@elastic/eui';
Expand Down Expand Up @@ -142,7 +143,7 @@ const partialDataText = i18n.translate('charts.partialData.bucketTooltipText', {
'The selected time range does not include this entire bucket. It might contain partial data.',
});

const Prompt = () => {
const Prompt: AnnotationTooltipFormatter = () => {
const { euiTheme } = useEuiTheme();
const headerPartialCss = css`
font-weight: ${euiTheme.font.weight.regular};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const DurationAnomaliesBar = ({ anomalies, hiddenLegends }: Props) => {
};
};

const tooltipFormatter: AnnotationTooltipFormatter = (details?: string) => {
const TooltipFormatter: AnnotationTooltipFormatter = ({ details }) => {
return <AnnotationTooltip details={details || ''} />;
};

Expand All @@ -76,7 +76,7 @@ export const DurationAnomaliesBar = ({ anomalies, hiddenLegends }: Props) => {
key={keyIndex}
id={keyIndex}
style={getRectStyle(rectAnnotation.color)}
renderTooltip={tooltipFormatter}
renderTooltip={TooltipFormatter}
/>
) : null;
})}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1456,10 +1456,10 @@
dependencies:
object-hash "^1.3.0"

"@elastic/charts@51.3.0":
version "51.3.0"
resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-51.3.0.tgz#aaf76f380e60fb5e0c944ac6ea333a45f15d7fb2"
integrity sha512-sEeHs99a0IKhKouP0b4rVnMJlwTw7dDvNS5EmTWK8gBsF/GCTrxxoxf1MJtQWvJrOnFEpXrzYvaeiHjmocmZQw==
"@elastic/charts@52.0.0":
version "52.0.0"
resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-52.0.0.tgz#db801faaf7fa4334b4cecdbfbfb7c13cf7bb4172"
integrity sha512-PWn1XySpD+2IaWmWftfdvim3l70r9H8y3fAPAnnMDHfzjDTlKJXq/19nMOGRVIwc9FifUN7cSw51shqq8Tj7lA==
dependencies:
"@popperjs/core" "^2.4.0"
bezier-easing "^2.1.0"
Expand Down

0 comments on commit e8ad3e4

Please sign in to comment.