From 29804a63249fcb19d26f8b13e3f7fce176ddc922 Mon Sep 17 00:00:00 2001 From: Marco Vettorello Date: Thu, 12 May 2022 12:33:49 +0200 Subject: [PATCH] deps(d3): fix updated type issues BREAKING CHANGE: the new d3-scale version used ES2015 and our target version needs to align to that. --- package.json | 2 +- packages/charts/package.json | 2 +- .../heatmap/layout/viewmodel/viewmodel.ts | 17 +++- .../selectors/get_elements_at_cursor_pos.ts | 5 +- .../selectors/get_projected_scaled_values.ts | 5 +- .../state/selectors/on_brush_end_caller.ts | 8 +- .../state/selectors/on_pointer_move_caller.ts | 5 +- packages/charts/src/scales/index.ts | 6 +- packages/charts/src/scales/scale_band.ts | 6 +- .../charts/src/scales/scale_continuous.ts | 19 +++- packages/charts/src/scales/types.ts | 2 +- packages/charts/src/utils/common.ts | 13 --- yarn.lock | 92 +++++++++++++------ 13 files changed, 114 insertions(+), 68 deletions(-) diff --git a/package.json b/package.json index 06de32733e..a70dd756af 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "@types/d3-cloud": "^1.2.5", "@types/d3-collection": "^1.0.8", "@types/d3-interpolate": "^1.3.1", - "@types/d3-scale": "^2.1.1", + "@types/d3-scale": "^4.0.2", "@types/d3-shape": "^2.0.0", "@types/enzyme": "^3.9.0", "@types/enzyme-adapter-react-16": "^1.0.5", diff --git a/packages/charts/package.json b/packages/charts/package.json index 43a8ec154c..9f0ddae2f9 100644 --- a/packages/charts/package.json +++ b/packages/charts/package.json @@ -40,7 +40,7 @@ "d3-cloud": "^1.2.5", "d3-collection": "^1.0.7", "d3-interpolate": "^1.4.0", - "d3-scale": "^2.2.2", + "d3-scale": "^4.0.2", "d3-shape": "^2.0.0", "prop-types": "^15.7.2", "re-reselect": "^3.4.0", diff --git a/packages/charts/src/chart_types/heatmap/layout/viewmodel/viewmodel.ts b/packages/charts/src/chart_types/heatmap/layout/viewmodel/viewmodel.ts index cda42c6d48..5d14039553 100644 --- a/packages/charts/src/chart_types/heatmap/layout/viewmodel/viewmodel.ts +++ b/packages/charts/src/chart_types/heatmap/layout/viewmodel/viewmodel.ts @@ -17,7 +17,7 @@ import { ScaleType } from '../../../../scales/constants'; import { LinearScale, OrdinalScale, RasterTimeScale } from '../../../../specs'; import { TextMeasure } from '../../../../utils/bbox/canvas_text_bbox_calculator'; import { addIntervalToTime } from '../../../../utils/chrono/elasticsearch'; -import { clamp, Datum } from '../../../../utils/common'; +import { clamp, Datum, isDefined } from '../../../../utils/common'; import { innerPad, pad } from '../../../../utils/dimensions'; import { Logger } from '../../../../utils/logger'; import { HeatmapStyle, Theme, Visible } from '../../../../utils/themes/theme'; @@ -89,7 +89,7 @@ export function shapeViewModel( .domain([0, elementSizes.grid.width]) .range(xValues); - // compute the cell width (can be smaller then the available size depending on config + // compute the cell width (can be smaller than the available size depending on config const cellWidth = heatmapTheme.cell.maxWidth !== 'fill' && xScale.bandwidth() > heatmapTheme.cell.maxWidth ? heatmapTheme.cell.maxWidth @@ -129,8 +129,8 @@ export function shapeViewModel( // compute each available cell position, color and value const cellMap = table.reduce>((acc, d) => { - const x = xScale(String(d.x)); - const y = yScale(String(d.y))! + gridStrokeWidth; + const x = xScale(d.x); + const y = yScale(d.y); const yIndex = yValues.indexOf(d.y); if (x === undefined || y === undefined || yIndex === -1) { @@ -156,7 +156,7 @@ export function shapeViewModel( x: (heatmapTheme.cell.maxWidth !== 'fill' ? x + xScale.bandwidth() / 2 - heatmapTheme.cell.maxWidth / 2 : x) + gridStrokeWidth, - y, + y: y + gridStrokeWidth, yIndex, width: cellWidthInner, height: cellHeightInner, @@ -230,6 +230,13 @@ export function shapeViewModel( const endX = xInvertedScale(clamp(bottomRight[0], 0, width)); const startY = yInvertedScale(clamp(topLeft[1], 0, currentGridHeight - 1)); const endY = yInvertedScale(clamp(bottomRight[1], 0, currentGridHeight - 1)); + if (!isDefined(startX) || !isDefined(endX) || !isDefined(startY) || !isDefined(endY)) { + return { + cells: [], + x: [], + y: [], + }; + } const allXValuesInRange: Array> = getValuesInRange(xValues, startX, endX); const allYValuesInRange: Array> = getValuesInRange(yValues, startY, endY); diff --git a/packages/charts/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.ts index f348de641b..ac3e4ff954 100644 --- a/packages/charts/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.ts +++ b/packages/charts/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.ts @@ -9,6 +9,7 @@ import { PointerEvent } from '../../../../specs'; import { GlobalChartState } from '../../../../state/chart_state'; import { createCustomCachedSelector } from '../../../../state/create_selector'; +import { isDefined } from '../../../../utils/common'; import { isValidPointerOverEvent } from '../../../../utils/events'; import { IndexedGeometry } from '../../../../utils/geometry'; import { ChartDimensions } from '../../utils/dimensions'; @@ -55,13 +56,13 @@ function getElementAtCursorPosition( return geometriesIndex.find(externalPointerEvent.x, { x: -1, y: -1 }); } const xValue = scales.xScale.invertWithStep(orientedProjectedPointerPosition.x, geometriesIndexKeys); - if (!xValue) { + if (!isDefined(xValue.value)) { return []; } // get the elements at cursor position return geometriesIndex .find( - xValue?.value, + xValue.value, orientedProjectedPointerPosition, orientedProjectedPointerPosition.horizontalPanelValue, orientedProjectedPointerPosition.verticalPanelValue, diff --git a/packages/charts/src/chart_types/xy_chart/state/selectors/get_projected_scaled_values.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_projected_scaled_values.ts index 1ab5296119..bbb21792db 100644 --- a/packages/charts/src/chart_types/xy_chart/state/selectors/get_projected_scaled_values.ts +++ b/packages/charts/src/chart_types/xy_chart/state/selectors/get_projected_scaled_values.ts @@ -8,6 +8,7 @@ import { ProjectedValues } from '../../../../specs/settings'; import { createCustomCachedSelector } from '../../../../state/create_selector'; +import { isDefined } from '../../../../utils/common'; import { computeSeriesGeometriesSelector } from './compute_series_geometries'; import { getGeometriesIndexKeysSelector } from './get_geometries_index_keys'; import { getOrientedProjectedPointerPositionSelector } from './get_oriented_projected_pointer_position'; @@ -25,13 +26,13 @@ export const getProjectedScaledValues = createCustomCachedSelector( } const xValue = xScale.invertWithStep(x, geometriesIndexKeys); - if (!xValue) { + if (!isDefined(xValue.value)) { return; } return { x: xValue.value, - y: [...yScales.entries()].map(([groupId, yScale]) => ({ value: yScale.invert(y), groupId })), + y: [...yScales.entries()].map(([groupId, yScale]) => ({ value: yScale.invert(y) ?? NaN, groupId })), smVerticalValue: verticalPanelValue, smHorizontalValue: horizontalPanelValue, }; diff --git a/packages/charts/src/chart_types/xy_chart/state/selectors/on_brush_end_caller.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/on_brush_end_caller.ts index dcd76bab02..26e906e1fb 100644 --- a/packages/charts/src/chart_types/xy_chart/state/selectors/on_brush_end_caller.ts +++ b/packages/charts/src/chart_types/xy_chart/state/selectors/on_brush_end_caller.ts @@ -156,8 +156,8 @@ function getXBrushExtent( const histogramEnabled = isHistogramEnabled(seriesSpecs); const invertValue = histogramEnabled && roundHistogramBrushValues - ? (value: number) => xScale.invertWithStep(value, xScale.domain).value - : (value: number) => xScale.invert(value); + ? (value: number) => xScale.invertWithStep(value, xScale.domain).value ?? NaN + : (value: number) => xScale.invert(value) ?? NaN; const minPosScaled = invertValue(minPos + offset); const maxPosScaled = invertValue(maxPos + offset); const maxDomainValue = @@ -210,8 +210,8 @@ function getYBrushExtents( return; } - const minPosScaled = yScale.invert(minPos); - const maxPosScaled = yScale.invert(maxPos); + const minPosScaled = yScale.invert(minPos) ?? NaN; + const maxPosScaled = yScale.invert(maxPos) ?? NaN; const minValue = clamp(minPosScaled, yScale.domain[0], maxPosScaled); const maxValue = clamp(minPosScaled, maxPosScaled, yScale.domain[1]); yValues.push({ extent: [minValue, maxValue], groupId }); diff --git a/packages/charts/src/chart_types/xy_chart/state/selectors/on_pointer_move_caller.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/on_pointer_move_caller.ts index a08f577ce5..cbfc26cd3c 100644 --- a/packages/charts/src/chart_types/xy_chart/state/selectors/on_pointer_move_caller.ts +++ b/packages/charts/src/chart_types/xy_chart/state/selectors/on_pointer_move_caller.ts @@ -15,6 +15,7 @@ import { GlobalChartState } from '../../../../state/chart_state'; import { createCustomCachedSelector } from '../../../../state/create_selector'; import { getChartIdSelector } from '../../../../state/selectors/get_chart_id'; import { getSettingsSpecSelector } from '../../../../state/selectors/get_settings_specs'; +import { isDefined } from '../../../../utils/common'; import { ComputedScales } from '../utils/types'; import { computeSeriesGeometriesSelector } from './compute_series_geometries'; import { getGeometriesIndexKeysSelector } from './get_geometries_index_keys'; @@ -47,7 +48,7 @@ function getPointerEvent( return { chartId, type: PointerEventType.Out }; } const xValue = xScale.invertWithStep(x, geometriesIndexKeys); - if (!xValue) { + if (!isDefined(xValue.value)) { return { chartId, type: PointerEventType.Out }; } return { @@ -57,7 +58,7 @@ function getPointerEvent( scale: xScale.type, x: xValue.value, y: [...yScales.entries()].map(([groupId, yScale]) => { - return { value: yScale.invert(y), groupId }; + return { value: yScale.invert(y) ?? NaN, groupId }; }), smVerticalValue: verticalPanelValue, smHorizontalValue: horizontalPanelValue, diff --git a/packages/charts/src/scales/index.ts b/packages/charts/src/scales/index.ts index 2f9c0e8322..3a559c2f20 100644 --- a/packages/charts/src/scales/index.ts +++ b/packages/charts/src/scales/index.ts @@ -26,7 +26,7 @@ export type ScaleBandType = ScaleOrdinalType; /** * A `Scale` interface. A scale can map an input value within a specified domain * to an output value from a specified range. - * The the value is mapped depending on the `type` (linear, log, sqrt, time, ordinal) + * The value is mapped depending on the `type` (linear, log, sqrt, time, ordinal) * @internal */ export interface Scale { @@ -39,12 +39,12 @@ export interface Scale { ticks: () => T[]; scale: (value?: PrimitiveValue) => number; pureScale: (value?: PrimitiveValue) => number; - invert: (value: number) => T; + invert: (value: number) => T | undefined; invertWithStep: ( value: number, data: any[], ) => { - value: T; + value: T | undefined; withinBandwidth: boolean; }; isSingleValue: () => boolean; diff --git a/packages/charts/src/scales/scale_band.ts b/packages/charts/src/scales/scale_band.ts index 8293abdf51..9cb809736e 100644 --- a/packages/charts/src/scales/scale_band.ts +++ b/packages/charts/src/scales/scale_band.ts @@ -12,7 +12,7 @@ import { Scale, ScaleBandType } from '.'; import { PrimitiveValue } from '../chart_types/partition_chart/layout/utils/group_by_rollup'; import { Ratio } from '../common/geometry'; import { RelativeBandsPadding } from '../specs'; -import { clamp, stringifyNullsUndefined } from '../utils/common'; +import { clamp } from '../utils/common'; import { Range } from '../utils/domain'; import { ScaleType } from './constants'; @@ -20,7 +20,7 @@ import { ScaleType } from './constants'; * Categorical scale * @internal */ -export class ScaleBand implements Scale { +export class ScaleBand implements Scale { readonly bandwidth: number; readonly bandwidthPadding: number; @@ -85,7 +85,7 @@ export class ScaleBand implements Scale { } scale(value?: PrimitiveValue) { - const scaleValue = this.d3Scale(stringifyNullsUndefined(value)); + const scaleValue = this.d3Scale((value as unknown) as T); return typeof scaleValue === 'number' && Number.isFinite(scaleValue) ? scaleValue : NaN; // fixme when TS improves } diff --git a/packages/charts/src/scales/scale_continuous.ts b/packages/charts/src/scales/scale_continuous.ts index 9847c90fb4..231f52b9b1 100644 --- a/packages/charts/src/scales/scale_continuous.ts +++ b/packages/charts/src/scales/scale_continuous.ts @@ -15,6 +15,7 @@ import { ScaleLogarithmic, ScalePower, scaleSqrt, + ScaleTime, scaleUtc, } from 'd3-scale'; import { Required } from 'utility-types'; @@ -29,7 +30,15 @@ import { ContinuousDomain, Range } from '../utils/domain'; import { LOG_MIN_ABS_DOMAIN, ScaleType } from './constants'; import { LogScaleOptions } from './types'; -const SCALES = { +type ContinuousScaleType = + | typeof ScaleType.Time + | typeof ScaleType.Linear + | typeof ScaleType.Log + | typeof ScaleType.Sqrt; +const SCALES: Record< + ContinuousScaleType, + () => ScaleContinuousNumeric | ScaleTime +> = { [ScaleType.Linear]: scaleLinear, [ScaleType.Log]: scaleLog, [ScaleType.Sqrt]: scaleSqrt, @@ -70,7 +79,7 @@ export class ScaleContinuous implements Scale { readonly timeZone: string; readonly barsPadding: number; readonly isSingleValueHistogram: boolean; - private readonly project: (d: number) => number; + private readonly project: (d: number) => number | undefined; private readonly inverseProject: (d: number) => number | Date; constructor( @@ -171,12 +180,14 @@ export class ScaleContinuous implements Scale { scale(value?: PrimitiveValue) { return typeof value === 'number' - ? this.project(value) + (this.bandwidthPadding / 2) * this.totalBarsInCluster + ? (this.project(value) ?? NaN) + (this.bandwidthPadding / 2) * this.totalBarsInCluster : NaN; } pureScale(value?: PrimitiveValue) { - return typeof value === 'number' ? this.project(this.bandwidth === 0 ? value : value + this.minInterval / 2) : NaN; + return typeof value === 'number' + ? this.project(this.bandwidth === 0 ? value : value + this.minInterval / 2) ?? NaN + : NaN; } ticks() { diff --git a/packages/charts/src/scales/types.ts b/packages/charts/src/scales/types.ts index d9415b3c9b..38ef655963 100644 --- a/packages/charts/src/scales/types.ts +++ b/packages/charts/src/scales/types.ts @@ -12,7 +12,7 @@ import { ScaleBand } from './scale_band'; import { ScaleContinuous } from './scale_continuous'; /** - * Check if a scale is logaritmic + * Check if a scale is logarithmic * @internal */ export function isLogarithmicScale(scale: Scale): scale is ScaleContinuous { diff --git a/packages/charts/src/utils/common.ts b/packages/charts/src/utils/common.ts index 7e2b8d4c71..edb7f0436f 100644 --- a/packages/charts/src/utils/common.ts +++ b/packages/charts/src/utils/common.ts @@ -446,19 +446,6 @@ export function getDistance(a: Point, b: Point): number { return Math.sqrt(Math.pow(b.x - a.x, 2) + Math.pow(b.y - a.y, 2)); } -/** @internal */ -export function stringifyNullsUndefined(value?: PrimitiveValue): string | number { - if (value === undefined) { - return 'undefined'; - } - - if (value === null) { - return 'null'; - } - - return value; -} - /** * Determines if an array has all unique values * diff --git a/yarn.lock b/yarn.lock index fd60454cf5..03c9d8fb93 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5736,12 +5736,12 @@ resolved "https://registry.yarnpkg.com/@types/d3-path/-/d3-path-2.0.1.tgz#ca03dfa8b94d8add97ad0cd97e96e2006b4763cb" integrity sha512-6K8LaFlztlhZO7mwsZg7ClRsdLg3FJRzIIi6SZXDWmmSJc2x8dd2VkESbLXdk3p8cuvz71f36S0y8Zv2AxqvQw== -"@types/d3-scale@^2.1.1": - version "2.2.6" - resolved "https://registry.yarnpkg.com/@types/d3-scale/-/d3-scale-2.2.6.tgz#28540b4dfc99d978970e873e4138a6bea2ea6ab8" - integrity sha512-CHu34T5bGrJOeuhGxyiz9Xvaa9PlsIaQoOqjDg7zqeGj2x0rwPhGquiy03unigvcMxmvY0hEaAouT0LOFTLpIw== +"@types/d3-scale@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@types/d3-scale/-/d3-scale-4.0.2.tgz#41be241126af4630524ead9cb1008ab2f0f26e69" + integrity sha512-Yk4htunhPAwN0XGlIwArRomOjdoBFXC3+kCxK2Ubg7I9shQlVSJy/pG/Ht5ASN+gdMIalpk8TJ5xV74jFsetLA== dependencies: - "@types/d3-time" "^1" + "@types/d3-time" "*" "@types/d3-shape@^2.0.0": version "2.1.3" @@ -5750,10 +5750,10 @@ dependencies: "@types/d3-path" "^2" -"@types/d3-time@^1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@types/d3-time/-/d3-time-1.1.1.tgz#6cf3a4242c3bbac00440dfb8ba7884f16bedfcbf" - integrity sha512-ULX7LoqXTCYtM+tLYOaeAJK7IwCT+4Gxlm2MaH0ErKLi07R5lh8NHCAyWcDkCCmx1AfRcBEV6H9QE9R25uP7jw== +"@types/d3-time@*": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/d3-time/-/d3-time-3.0.0.tgz#e1ac0f3e9e195135361fa1a1d62f795d87e6e819" + integrity sha512-sZLCdHvBUcNby1cB6Fd3ZBrABbjz3v1Vm90nysCQ6Vt7vd6e/h9Lt7SiJUoEX0l4Dzc7P5llKyhqSi1ycSf1Hg== "@types/d3@^3": version "3.5.45" @@ -9485,6 +9485,13 @@ cz-conventional-changelog@3.3.0, cz-conventional-changelog@^3.3.0: optionalDependencies: "@commitlint/load" ">6.1.1" +"d3-array@2 - 3", "d3-array@2.10.0 - 3": + version "3.1.6" + resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-3.1.6.tgz#0342c835925826f49b4d16eb7027aec334ffc97d" + integrity sha512-DCbBBNuKOeiR9h04ySRBMW52TFVc91O9wJziuyXw6Ztmy8D3oZbmCkOO3UHKC7ceNJsN2Mavo9+vwV8EAEUXzA== + dependencies: + internmap "1 - 2" + d3-array@^1.2.0, d3-array@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-1.2.4.tgz#635ce4d5eea759f6f605863dbcfc30edc737f71f" @@ -9507,6 +9514,11 @@ d3-color@1: resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.4.0.tgz#89c45a995ed773b13314f06460df26d60ba0ecaf" integrity sha512-TzNPeJy2+iEepfiL92LAAB7fvnp/dV2YwANPVHdDWmYMm23qIJBYww3qT8I8C1wXrmrg4UWs7BKc2tKIgyjzHg== +"d3-color@1 - 3": + version "3.1.0" + resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-3.1.0.tgz#395b2833dfac71507f12ac2f7af23bf819de24e2" + integrity sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA== + d3-color@^1.4.0: version "1.4.1" resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.4.1.tgz#c52002bf8846ada4424d55d97982fef26eb3bc8a" @@ -9522,6 +9534,11 @@ d3-format@1: resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.4.1.tgz#c45f74b17c5a290c072a4ba7039dd19662cd5ce6" integrity sha512-TUswGe6hfguUX1CtKxyG2nymO+1lyThbkS1ifLX0Sr+dOQtAD5gkrffpHnx+yHNKUZ0Bmg5T4AjUQwugPDrm0g== +"d3-format@1 - 3": + version "3.1.0" + resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-3.1.0.tgz#9260e23a28ea5cb109e93b21a06e24e2ebd55641" + integrity sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA== + d3-interpolate@1: version "1.3.2" resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.3.2.tgz#417d3ebdeb4bc4efcc8fd4361c55e4040211fd68" @@ -9529,6 +9546,13 @@ d3-interpolate@1: dependencies: d3-color "1" +"d3-interpolate@1.2.0 - 3": + version "3.0.1" + resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-3.0.1.tgz#3c47aa5b32c5b3dfb56ef3fd4342078a632b400d" + integrity sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g== + dependencies: + d3-color "1 - 3" + d3-interpolate@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.4.0.tgz#526e79e2d80daa383f9e0c1c1c7dcc0f0583e987" @@ -9559,17 +9583,16 @@ d3-scale@^1.0.7: d3-time "1" d3-time-format "2" -d3-scale@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-2.2.2.tgz#4e880e0b2745acaaddd3ede26a9e908a9e17b81f" - integrity sha512-LbeEvGgIb8UMcAa0EATLNX0lelKWGYDQiPdHj+gLblGVhGLyNbaCn3EvrJf0A3Y/uOOU5aD6MTh5ZFCdEwGiCw== +d3-scale@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-4.0.2.tgz#82b38e8e8ff7080764f8dcec77bd4be393689396" + integrity sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ== dependencies: - d3-array "^1.2.0" - d3-collection "1" - d3-format "1" - d3-interpolate "1" - d3-time "1" - d3-time-format "2" + d3-array "2.10.0 - 3" + d3-format "1 - 3" + d3-interpolate "1.2.0 - 3" + d3-time "2.1.1 - 3" + d3-time-format "2 - 4" d3-shape@^1.3.4: version "1.3.7" @@ -9592,11 +9615,25 @@ d3-time-format@2: dependencies: d3-time "1" +"d3-time-format@2 - 4": + version "4.1.0" + resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-4.1.0.tgz#7ab5257a5041d11ecb4fe70a5c7d16a195bb408a" + integrity sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg== + dependencies: + d3-time "1 - 3" + d3-time@1: version "1.1.0" resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.1.0.tgz#b1e19d307dae9c900b7e5b25ffc5dcc249a8a0f1" integrity sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA== +"d3-time@1 - 3", "d3-time@2.1.1 - 3": + version "3.0.0" + resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-3.0.0.tgz#65972cb98ae2d4954ef5c932e8704061335d4975" + integrity sha512-zmV3lRnlaLI08y9IMRXSDshQb5Nj77smnfpnd2LrBa/2K281Jijactokeak14QacHs/kKq0AQ121nidNYlarbQ== + dependencies: + d3-array "2 - 3" + d@1, d@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" @@ -10780,7 +10817,8 @@ eslint-module-utils@^2.6.0: pkg-dir "^2.0.0" "eslint-plugin-elastic-charts@link:./packages/eslint-plugin-elastic-charts": - version "1.0.0" + version "0.0.0" + uid "" eslint-plugin-eslint-comments@^3.2.0: version "3.2.0" @@ -13341,6 +13379,11 @@ internal-slot@^1.0.2: has "^1.0.3" side-channel "^1.0.2" +"internmap@1 - 2": + version "2.0.3" + resolved "https://registry.yarnpkg.com/internmap/-/internmap-2.0.3.tgz#6685f23755e43c524e251d29cbc97248e3061009" + integrity sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg== + interpret@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" @@ -15266,13 +15309,8 @@ lines-and-columns@^1.1.6: integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= "link-kibana@link:./packages/link_kibana": - version "1.0.0" - dependencies: - chalk "^4.1.1" - change-case "^4.1.2" - glob "^7.1.7" - inquirer "^8.0.0" - ora "^5.4.0" + version "0.0.0" + uid "" lint-staged@^10.5.3: version "10.5.3"