From 5147bc377d801da94930b9df6c7430ad9025030b Mon Sep 17 00:00:00 2001 From: Coen Warmer Date: Wed, 10 May 2023 17:17:13 +0200 Subject: [PATCH] Update imports --- .../failed_transactions_correlations_tab.tsx | 5 ++++- .../app/transaction_details/latency_correlations_tab.tsx | 5 ++++- .../waterfall/span_flyout/sticky_span_properties.tsx | 5 ++++- x-pack/plugins/apm/public/plugin.ts | 2 +- .../public/components/setup_mode/toggle_button.tsx | 2 +- .../components/monitor_add_edit/monitor_edit_page.tsx | 2 +- .../waterfall/waterfall_flyout/waterfall_flyout.tsx | 2 +- .../waterfall/waterfall_header/waterfall_search.tsx | 2 +- .../step_detail/waterfall/waterfall_chart_wrapper.tsx | 2 +- .../synthetics/step_detail/waterfall/waterfall_filter.tsx | 2 +- .../synthetics/step_detail/waterfall/waterfall_flyout.tsx | 2 +- 11 files changed, 20 insertions(+), 11 deletions(-) diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx index a0a69629d0d2c..387b6819186be 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx @@ -9,7 +9,10 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { METRIC_TYPE, useTrackMetric } from '@kbn/observability-plugin/public'; +import { + METRIC_TYPE, + useTrackMetric, +} from '@kbn/observability-shared-plugin/public'; import { isActivePlatinumLicense } from '../../../../common/license_check'; diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx index 1fef9ac0dda66..663b9d62e8db4 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx @@ -9,7 +9,10 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; -import { METRIC_TYPE, useTrackMetric } from '@kbn/observability-plugin/public'; +import { + METRIC_TYPE, + useTrackMetric, +} from '@kbn/observability-shared-plugin/public'; import { isActivePlatinumLicense } from '../../../../common/license_check'; diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/sticky_span_properties.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/sticky_span_properties.tsx index bb942a735792c..e0b1c72e50da4 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/sticky_span_properties.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/span_flyout/sticky_span_properties.tsx @@ -7,7 +7,10 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; -import { METRIC_TYPE, useUiTracker } from '@kbn/observability-plugin/public'; +import { + METRIC_TYPE, + useUiTracker, +} from '@kbn/observability-shared-plugin/public'; import { SERVICE_NAME, SPAN_DESTINATION_SERVICE_RESOURCE, diff --git a/x-pack/plugins/apm/public/plugin.ts b/x-pack/plugins/apm/public/plugin.ts index ac1d7294a27be..f03953b6d5a9b 100644 --- a/x-pack/plugins/apm/public/plugin.ts +++ b/x-pack/plugins/apm/public/plugin.ts @@ -44,10 +44,10 @@ import type { } from '@kbn/observability-shared-plugin/public'; import { FetchDataParams, - METRIC_TYPE, ObservabilityPublicSetup, ObservabilityPublicStart, } from '@kbn/observability-plugin/public'; +import { METRIC_TYPE } from '@kbn/observability-shared-plugin/public'; import type { TriggersAndActionsUIPublicPluginSetup, TriggersAndActionsUIPublicPluginStart, diff --git a/x-pack/plugins/monitoring/public/components/setup_mode/toggle_button.tsx b/x-pack/plugins/monitoring/public/components/setup_mode/toggle_button.tsx index f91641d942815..90d90075f1c49 100644 --- a/x-pack/plugins/monitoring/public/components/setup_mode/toggle_button.tsx +++ b/x-pack/plugins/monitoring/public/components/setup_mode/toggle_button.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { EuiButton } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { METRIC_TYPE, useUiTracker } from '@kbn/observability-plugin/public'; +import { METRIC_TYPE, useUiTracker } from '@kbn/observability-shared-plugin/public'; import { TELEMETRY_METRIC_BUTTON_CLICK } from '../../../common/constants'; import { SetupModeExitButton } from './exit_button'; diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/monitor_edit_page.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/monitor_edit_page.tsx index b77b799a49041..214b2c86f2695 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/monitor_edit_page.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_add_edit/monitor_edit_page.tsx @@ -10,7 +10,7 @@ import { useParams } from 'react-router-dom'; import { useDispatch, useSelector } from 'react-redux'; import { EuiEmptyPrompt } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { useTrackPageview, useFetcher } from '@kbn/observability-plugin/public'; +import { useTrackPageview, useFetcher } from '@kbn/observability-shared-plugin/public'; import { IHttpFetchError, ResponseErrorBody } from '@kbn/core-http-browser'; import { EditMonitorNotFound } from './edit_monitor_not_found'; import { LoadingState } from '../monitors_page/overview/overview/monitor_detail_flyout'; diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_flyout/waterfall_flyout.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_flyout/waterfall_flyout.tsx index 2091d02f499d2..3338f8ec57a51 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_flyout/waterfall_flyout.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_flyout/waterfall_flyout.tsx @@ -18,7 +18,7 @@ import { EuiFlexItem, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { METRIC_TYPE, useUiTracker } from '@kbn/observability-plugin/public'; +import { METRIC_TYPE, useUiTracker } from '@kbn/observability-shared-plugin/public'; import { Table } from './waterfall_flyout_table'; import { MiddleTruncatedText } from '../middle_truncated_text'; import { WaterfallMetadataEntry } from '../../../common/network_data/types'; diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_header/waterfall_search.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_header/waterfall_search.tsx index e57dfa32ad4f7..4370d1191f5b0 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_header/waterfall_search.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/step_details_page/step_waterfall_chart/waterfall/waterfall_header/waterfall_search.tsx @@ -9,7 +9,7 @@ import React, { useEffect, useState } from 'react'; import { i18n } from '@kbn/i18n'; import { EuiFieldSearch, EuiFlexGroup, EuiText, useEuiTheme } from '@elastic/eui'; import useDebounce from 'react-use/lib/useDebounce'; -import { METRIC_TYPE, useUiTracker } from '@kbn/observability-plugin/public'; +import { METRIC_TYPE, useUiTracker } from '@kbn/observability-shared-plugin/public'; import { FILTER_REQUESTS_LABEL, SEARCH_REQUESTS_LABEL } from '../translations'; import { NetworkRequestsTotal } from './network_requests_total'; diff --git a/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_chart_wrapper.tsx b/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_chart_wrapper.tsx index 0849832107aeb..669d615dd6479 100644 --- a/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_chart_wrapper.tsx +++ b/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_chart_wrapper.tsx @@ -7,7 +7,7 @@ import React, { useCallback, useMemo, useState } from 'react'; import { EuiHealth } from '@elastic/eui'; -import { useTrackMetric, METRIC_TYPE } from '@kbn/observability-plugin/public'; +import { useTrackMetric, METRIC_TYPE } from '@kbn/observability-shared-plugin/public'; import { getSeriesAndDomain, getSidebarItems, getLegendItems } from './data_formatting'; import { SidebarItem, LegendItem, NetworkItems } from './types'; import { WaterfallProvider, WaterfallChart, RenderItem, useFlyout } from '../../waterfall'; diff --git a/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_filter.tsx b/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_filter.tsx index fea41faf8e37f..9480811836800 100644 --- a/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_filter.tsx +++ b/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_filter.tsx @@ -18,7 +18,7 @@ import { EuiSpacer, } from '@elastic/eui'; import useDebounce from 'react-use/lib/useDebounce'; -import { METRIC_TYPE, useUiTracker } from '@kbn/observability-plugin/public'; +import { METRIC_TYPE, useUiTracker } from '@kbn/observability-shared-plugin/public'; import { FILTER_REQUESTS_LABEL, FILTER_SCREENREADER_LABEL, diff --git a/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_flyout.tsx b/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_flyout.tsx index 4c78010e9c4e6..cdce5b1785983 100644 --- a/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_flyout.tsx +++ b/x-pack/plugins/synthetics/public/legacy_uptime/components/monitor/synthetics/step_detail/waterfall/waterfall_flyout.tsx @@ -18,7 +18,7 @@ import { EuiFlexItem, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { METRIC_TYPE, useUiTracker } from '@kbn/observability-plugin/public'; +import { METRIC_TYPE, useUiTracker } from '@kbn/observability-shared-plugin/public'; import { Table } from '../../waterfall/components/waterfall_flyout_table'; import { MiddleTruncatedText } from '../../waterfall'; import { WaterfallMetadataEntry } from '../../waterfall/types';