From ce95f129333b4b8b85bd40bcab71bd28b99935b1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 6 Feb 2020 09:46:17 -0600 Subject: [PATCH] Update dependency @elastic/charts to v17 (#55376) * Update dependency @elastic/charts to v17 * Update yarn.lock * Fix type errors * Update to latest version Co-authored-by: WhiteSource Renovate Co-authored-by: Nick Partridge --- package.json | 2 +- packages/kbn-ui-shared-deps/package.json | 2 +- .../np_ready/angular/directives/histogram.tsx | 4 ++-- yarn.lock | 19 +++++++++++++------ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 1502d61e529d9..539d3a067665f 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ "@babel/core": "^7.5.5", "@babel/register": "^7.7.0", "@elastic/apm-rum": "^4.6.0", - "@elastic/charts": "^16.1.0", + "@elastic/charts": "^17.0.2", "@elastic/datemath": "5.0.2", "@elastic/ems-client": "7.6.0", "@elastic/eui": "18.3.0", diff --git a/packages/kbn-ui-shared-deps/package.json b/packages/kbn-ui-shared-deps/package.json index 8c8b8b8a21488..fc9d159ea9b95 100644 --- a/packages/kbn-ui-shared-deps/package.json +++ b/packages/kbn-ui-shared-deps/package.json @@ -9,9 +9,9 @@ "kbn:watch": "node scripts/build --watch" }, "devDependencies": { + "@elastic/charts": "^17.0.2", "abort-controller": "^3.0.0", "@elastic/eui": "18.3.0", - "@elastic/charts": "^16.1.0", "@kbn/dev-utils": "1.0.0", "@kbn/i18n": "1.0.0", "@yarnpkg/lockfile": "^1.1.0", diff --git a/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/histogram.tsx b/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/histogram.tsx index 4d387f44c3d57..77bbab97d95c7 100644 --- a/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/histogram.tsx +++ b/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/histogram.tsx @@ -30,7 +30,6 @@ import { Axis, Chart, HistogramBarSeries, - GeometryValue, LineAnnotation, Position, ScaleType, @@ -38,6 +37,7 @@ import { RectAnnotation, TooltipValue, TooltipType, + ElementClickListener, } from '@elastic/charts'; import { i18n } from '@kbn/i18n'; @@ -139,7 +139,7 @@ export class DiscoverHistogram extends Component (elementData: GeometryValue[]) => { + public onElementClick = (xInterval: number): ElementClickListener => ([elementData]) => { const startRange = elementData[0].x; const range = { diff --git a/yarn.lock b/yarn.lock index 7c14f67a5b297..7ebf896964378 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1880,17 +1880,19 @@ dependencies: "@elastic/apm-rum-core" "^4.7.0" -"@elastic/charts@^16.1.0": - version "16.1.0" - resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-16.1.0.tgz#67cf11625dcd7e1c2cf16ef53349e6a68a73f5b1" - integrity sha512-0jZ7thhGmYC0ZdEVkxfg6M66epCD7k7BfYIi12FnrmIK+mUD2IPhR8b2TJXvaojPryN4YTNreGRncQ9R58fOoQ== +"@elastic/charts@^17.0.2": + version "17.0.2" + resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-17.0.2.tgz#0bd2cb7b78bd60255eed2a9b0ce5049a62dc5d8a" + integrity sha512-hz31Yma/HSdu9tRS/05xNXY+YuaHOadD9Gd+eh7ankNlJJOFI4IRV6F8BMnloeWYedNXBSTp4susFLwJNQQ+0w== dependencies: "@types/d3-shape" "^1.3.1" classnames "^2.2.6" d3-array "^1.2.4" d3-collection "^1.0.7" + d3-color "^1.4.0" d3-scale "^1.0.7" d3-shape "^1.3.4" + fast-deep-equal "^3.1.1" konva "^4.0.18" newtype-ts "^0.2.4" prop-types "^15.7.2" @@ -1902,7 +1904,7 @@ reselect "^4.0.0" resize-observer-polyfill "^1.5.1" ts-debounce "^1.0.0" - utility-types "^3.9.0" + utility-types "^3.10.0" uuid "^3.3.2" "@elastic/elasticsearch@^7.4.0": @@ -10583,6 +10585,11 @@ d3-color@^1.0.3: resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.0.3.tgz#bc7643fca8e53a8347e2fbdaffa236796b58509b" integrity sha1-vHZD/KjlOoNH4vva/6I2eWtYUJs= +d3-color@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.4.0.tgz#89c45a995ed773b13314f06460df26d60ba0ecaf" + integrity sha512-TzNPeJy2+iEepfiL92LAAB7fvnp/dV2YwANPVHdDWmYMm23qIJBYww3qT8I8C1wXrmrg4UWs7BKc2tKIgyjzHg== + d3-contour@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/d3-contour/-/d3-contour-1.1.2.tgz#21f5456fcf57645922d69a27a58e782c91f842b3" @@ -30297,7 +30304,7 @@ utila@^0.4.0, utila@~0.4: resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c" integrity sha1-ihagXURWV6Oupe7MWxKk+lN5dyw= -utility-types@^3.10.0, utility-types@^3.9.0: +utility-types@^3.10.0: version "3.10.0" resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.10.0.tgz#ea4148f9a741015f05ed74fd615e1d20e6bed82b" integrity sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==