mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[TIP] plugin cleanup by removing index.ts files (#157059)
This commit is contained in:
parent
3d77c054c7
commit
80a6d76e76
166 changed files with 221 additions and 635 deletions
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { FilterManager } from '@kbn/data-plugin/public';
|
||||
import { IndicatorsFiltersContextValue } from '../../modules/indicators';
|
||||
import { IndicatorsFiltersContextValue } from '../../modules/indicators/containers/filters/context';
|
||||
|
||||
export const mockTimeRange = { from: '2022-10-03T07:48:31.498Z', to: '2022-10-03T07:48:31.498Z' };
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { Filter } from '@kbn/es-query';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import * as hook from '../../hooks';
|
||||
import * as hook from '../../hooks/use_kibana';
|
||||
|
||||
jest.mock('../../hooks/use_kibana');
|
||||
|
||||
|
|
|
@ -16,13 +16,13 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|||
import { mockIndicatorsFiltersContext } from './mock_indicators_filters_context';
|
||||
import { SecuritySolutionContext } from '../../containers/security_solution_context';
|
||||
import { getSecuritySolutionContextMock } from './mock_security_context';
|
||||
import { IndicatorsFiltersContext } from '../../modules/indicators';
|
||||
import { IndicatorsFiltersContext } from '../../modules/indicators/containers/filters/context';
|
||||
import { FieldTypesContext } from '../../containers/field_types_provider';
|
||||
import { generateFieldTypeMap } from './mock_field_type_map';
|
||||
import { mockUiSettingsService } from './mock_kibana_ui_settings_service';
|
||||
import { mockKibanaTimelinesService } from './mock_kibana_timelines_service';
|
||||
import { mockTriggersActionsUiService } from './mock_kibana_triggers_actions_ui_service';
|
||||
import { InspectorContext } from '../../containers/inspector';
|
||||
import { InspectorContext } from '../../containers/inspector/inspector';
|
||||
import { BlockListProvider } from '../../modules/indicators/containers/block_list_provider';
|
||||
|
||||
export interface KibanaContextMock {
|
||||
|
|
|
@ -20,16 +20,16 @@ import { RequestAdapter } from '@kbn/inspector-plugin/common';
|
|||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { casesPluginMock } from '@kbn/cases-plugin/public/mocks';
|
||||
import { KibanaContext } from '../../hooks';
|
||||
import { KibanaContext } from '../../hooks/use_kibana';
|
||||
import { SecuritySolutionPluginContext } from '../../types';
|
||||
import { getSecuritySolutionContextMock } from './mock_security_context';
|
||||
import { mockUiSetting } from './mock_kibana_ui_settings_service';
|
||||
import { SecuritySolutionContext } from '../../containers/security_solution_context';
|
||||
import { IndicatorsFiltersContext } from '../../modules/indicators';
|
||||
import { IndicatorsFiltersContext } from '../../modules/indicators/containers/filters/context';
|
||||
import { mockIndicatorsFiltersContext } from './mock_indicators_filters_context';
|
||||
import { FieldTypesContext } from '../../containers/field_types_provider';
|
||||
import { generateFieldTypeMap } from './mock_field_type_map';
|
||||
import { InspectorContext } from '../../containers/inspector';
|
||||
import { InspectorContext } from '../../containers/inspector/inspector';
|
||||
|
||||
export const localStorageMock = (): IStorage => {
|
||||
let store: Record<string, unknown> = {};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import moment from 'moment-timezone';
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import { DateFormatter } from '.';
|
||||
import { DateFormatter } from './date_formatter';
|
||||
import { useDateFormat, useTimeZone } from '../../hooks/use_kibana_ui_settings';
|
||||
|
||||
const mockValidStringDate = '1 Jan 2022 00:00:00 GMT';
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './date_formatter';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './empty_state';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './layout';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './paywall';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './update_status';
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import React, { FC } from 'react';
|
||||
import { Paywall } from '../../components/paywall';
|
||||
import { Paywall } from '../../components/paywall/paywall';
|
||||
import { useKibana } from '../../hooks/use_kibana';
|
||||
import { useSecurityContext } from '../../hooks/use_security_context';
|
||||
import { SecuritySolutionPluginTemplateWrapper } from '../security_solution_plugin_template_wrapper';
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './enterprise_guard';
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import React, { createContext, FC, useMemo } from 'react';
|
||||
import { useSourcererDataView } from '../modules/indicators';
|
||||
import { useSourcererDataView } from '../modules/indicators/hooks/use_sourcerer_data_view';
|
||||
|
||||
export type FieldTypesContextValue = Record<string, string | undefined>;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import { CasesPermissions } from '@kbn/cases-plugin/common';
|
|||
import { IndicatorsPage } from '../modules/indicators/pages';
|
||||
import { IntegrationsGuard } from './integrations_guard/integrations_guard';
|
||||
import { SecuritySolutionPluginTemplateWrapper } from './security_solution_plugin_template_wrapper';
|
||||
import { useKibana } from '../hooks';
|
||||
import { useKibana } from '../hooks/use_kibana';
|
||||
|
||||
export const APP_ID = 'securitySolution';
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './inspector';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './integrations_guard';
|
|
@ -8,16 +8,13 @@
|
|||
import { UseQueryResult } from '@tanstack/react-query';
|
||||
import { render } from '@testing-library/react';
|
||||
import React from 'react';
|
||||
import { IntegrationsGuard } from '.';
|
||||
import { IntegrationsGuard } from './integrations_guard';
|
||||
import { TestProvidersComponent } from '../../common/mocks/test_providers';
|
||||
import {
|
||||
Integration,
|
||||
useIntegrations,
|
||||
useIntegrationsPageLink,
|
||||
useTIDocumentationLink,
|
||||
} from '../../hooks';
|
||||
import { useIndicatorsTotalCount } from '../../modules/indicators';
|
||||
import { INSTALLATION_STATUS, THREAT_INTELLIGENCE_CATEGORY } from '../../utils';
|
||||
import { Integration, useIntegrations } from '../../hooks/use_integrations';
|
||||
import { useIntegrationsPageLink } from '../../hooks/use_integrations_page_link';
|
||||
import { useTIDocumentationLink } from '../../hooks/use_documentation_link';
|
||||
import { useIndicatorsTotalCount } from '../../modules/indicators/hooks/use_total_count';
|
||||
import { INSTALLATION_STATUS, THREAT_INTELLIGENCE_CATEGORY } from '../../utils/filter_integrations';
|
||||
|
||||
jest.mock('../../modules/indicators/hooks/use_total_count');
|
||||
jest.mock('../../hooks/use_integrations_page_link');
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
import { EuiLoadingLogo } from '@elastic/eui';
|
||||
import React, { FC } from 'react';
|
||||
import { useIntegrations } from '../../hooks';
|
||||
import { EmptyPage } from '../../modules/empty_page';
|
||||
import { useIndicatorsTotalCount } from '../../modules/indicators';
|
||||
import { useIntegrations } from '../../hooks/use_integrations';
|
||||
import { EmptyPage } from '../../modules/empty_page/empty_page';
|
||||
import { useIndicatorsTotalCount } from '../../modules/indicators/hooks/use_total_count';
|
||||
import { SecuritySolutionPluginTemplateWrapper } from '../security_solution_plugin_template_wrapper';
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './use_documentation_link';
|
||||
export * from './use_field_types';
|
||||
export * from './use_inspector';
|
||||
export * from './use_integrations';
|
||||
export * from './use_integrations_page_link';
|
||||
export * from './use_kibana';
|
||||
export * from './use_security_context';
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { DocLinks } from '@kbn/doc-links';
|
||||
import { useKibana } from '.';
|
||||
import { useKibana } from './use_kibana';
|
||||
|
||||
const useKibanaDocumentationLinks = (): DocLinks => useKibana().services.docLinks.links;
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
import { useCallback, useContext, useEffect, useState } from 'react';
|
||||
import { InspectorSession } from '@kbn/inspector-plugin/public';
|
||||
import { useKibana } from '.';
|
||||
import { InspectorContext } from '../containers/inspector';
|
||||
import { useKibana } from './use_kibana';
|
||||
import { InspectorContext } from '../containers/inspector/inspector';
|
||||
import { INSPECTOR_FLYOUT_TITLE } from './translations';
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import React from 'react';
|
||||
import { renderHook } from '@testing-library/react-hooks';
|
||||
import { QueryClient, QueryClientProvider, useQuery } from '@tanstack/react-query';
|
||||
import { INSTALLATION_STATUS, THREAT_INTELLIGENCE_CATEGORY } from '../utils';
|
||||
import { INSTALLATION_STATUS, THREAT_INTELLIGENCE_CATEGORY } from '../utils/filter_integrations';
|
||||
|
||||
const createWrapper = () => {
|
||||
const queryClient = new QueryClient();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
||||
import { filterIntegrations } from '../utils';
|
||||
import { filterIntegrations } from '../utils/filter_integrations';
|
||||
import { useKibana } from './use_kibana';
|
||||
|
||||
type IntegrationInstallStatus = 'installed' | 'installing' | 'install_failed';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { useKibana } from '.';
|
||||
import { useKibana } from './use_kibana';
|
||||
|
||||
const useKibanaBasePath = (): string => useKibana().services.http.basePath.get();
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import { EuiContextMenuPanel } from '@elastic/eui';
|
|||
import { SecuritySolutionContext } from '../../../../containers/security_solution_context';
|
||||
import { SecuritySolutionPluginContext } from '../../../..';
|
||||
import { getSecuritySolutionContextMock } from '../../../../common/mocks/mock_security_context';
|
||||
import { AddToBlockListContextMenu } from '.';
|
||||
import { AddToBlockListContextMenu } from './add_to_block_list';
|
||||
import { BlockListProvider } from '../../../indicators/containers/block_list_provider';
|
||||
|
||||
export default {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import { AddToBlockListContextMenu } from '.';
|
||||
import { AddToBlockListContextMenu } from './add_to_block_list';
|
||||
import { BlockListProvider } from '../../../indicators/containers/block_list_provider';
|
||||
import { SecuritySolutionContext } from '../../../../containers/security_solution_context';
|
||||
import { SecuritySolutionPluginContext } from '../../../..';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import React, { VFC } from 'react';
|
||||
import { EuiContextMenuItem } from '@elastic/eui';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import { useSecurityContext } from '../../../../hooks';
|
||||
import { useSecurityContext } from '../../../../hooks/use_security_context';
|
||||
import { useBlockListContext } from '../../../indicators/hooks/use_block_list_context';
|
||||
import { useSetUrlParams } from '../../hooks/use_set_url_params';
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './add_to_block_list';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './use_set_url_params';
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { useKibana } from '../../../hooks';
|
||||
import { useKibana } from '../../../hooks/use_kibana';
|
||||
|
||||
const POLICIES_URL = '/api/fleet/package_policies';
|
||||
const PACKAGE_POLICY_SAVED_OBJECT_TYPE = 'ingest-package-policies';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { useSecurityContext } from '../../../hooks';
|
||||
import { useSecurityContext } from '../../../hooks/use_security_context';
|
||||
|
||||
/**
|
||||
* Retrieve the useSetUrlParams hook from SecurityContext.
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
RawIndicatorFieldId,
|
||||
} from '../../../../common/types/indicator';
|
||||
import { canAddToBlockList } from './can_add_to_block_list';
|
||||
import { getIndicatorFieldAndValue } from '../../indicators';
|
||||
import { getIndicatorFieldAndValue } from '../../indicators/utils/field_value';
|
||||
|
||||
describe('canAddToBlockList', () => {
|
||||
it('should return null if indicator has none of required fields', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { Indicator, RawIndicatorFieldId } from '../../../../common/types/indicator';
|
||||
import { getIndicatorFieldAndValue } from '../../indicators';
|
||||
import { getIndicatorFieldAndValue } from '../../indicators/utils/field_value';
|
||||
|
||||
/**
|
||||
* Checks if an indicator has sha256, sha1 or md5 (in that order) and returns an empty string if it does not.
|
||||
|
|
|
@ -11,7 +11,7 @@ import { AddToExistingCase } from './add_to_existing_case';
|
|||
import { TestProvidersComponent } from '../../../../common/mocks/test_providers';
|
||||
import { generateMockFileIndicator, Indicator } from '../../../../../common/types/indicator';
|
||||
import { casesPluginMock } from '@kbn/cases-plugin/public/mocks';
|
||||
import { KibanaContext } from '../../../../hooks';
|
||||
import { KibanaContext } from '../../../../hooks/use_kibana';
|
||||
|
||||
const indicator: Indicator = generateMockFileIndicator();
|
||||
const onClick = () => window.alert('clicked');
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './add_to_existing_case';
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { KibanaContext } from '../../../../hooks';
|
||||
import { KibanaContext } from '../../../../hooks/use_kibana';
|
||||
import { render } from '@testing-library/react';
|
||||
import React from 'react';
|
||||
import { generateMockFileIndicator, Indicator } from '../../../../../common/types/indicator';
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
generateAttachmentsMetadata,
|
||||
generateAttachmentsWithoutOwner,
|
||||
} from '../../utils/attachments';
|
||||
import { useKibana } from '../../../../hooks';
|
||||
import { useKibana } from '../../../../hooks/use_kibana';
|
||||
import { Indicator } from '../../../../../common/types/indicator';
|
||||
|
||||
export interface AddToNewCaseProps {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './add_to_new_case';
|
|
@ -12,7 +12,7 @@ import { IKibanaSearchResponse } from '@kbn/data-plugin/common';
|
|||
import { generateMockFileIndicator } from '../../../../../../common/types/indicator';
|
||||
import { CommentChildren } from './comment_children';
|
||||
import { StoryProvidersComponent } from '../../../../../common/mocks/story_providers';
|
||||
import { AttachmentMetadata } from '../../../utils';
|
||||
import { AttachmentMetadata } from '../../../utils/attachments';
|
||||
|
||||
export default {
|
||||
title: 'CommentChildren',
|
||||
|
|
|
@ -13,9 +13,9 @@ import {
|
|||
INDICATOR_NAME_TEST_ID,
|
||||
INDICATOR_TYPE_TEST_ID,
|
||||
} from './comment_children';
|
||||
import { AttachmentMetadata } from '../../../utils';
|
||||
import { AttachmentMetadata } from '../../../utils/attachments';
|
||||
import { TestProvidersComponent } from '../../../../../common/mocks/test_providers';
|
||||
import { useIndicatorById } from '../../../hooks';
|
||||
import { useIndicatorById } from '../../../hooks/use_indicator_by_id';
|
||||
import { generateMockFileIndicator, Indicator } from '../../../../../../common/types/indicator';
|
||||
|
||||
jest.mock('../../../hooks/use_indicator_by_id');
|
||||
|
|
|
@ -9,10 +9,10 @@ import React, { useMemo, useState, VFC } from 'react';
|
|||
import { EuiFlexGroup, EuiFlexItem, EuiLink, EuiLoadingLogo, EuiText } from '@elastic/eui';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import { Indicator } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorsFlyout } from '../../../../indicators/components/flyout';
|
||||
import { IndicatorsFlyout } from '../../../../indicators/components/flyout/flyout';
|
||||
import { useStyles } from '../styles';
|
||||
import { useIndicatorById } from '../../../hooks';
|
||||
import { AttachmentMetadata } from '../../../utils';
|
||||
import { useIndicatorById } from '../../../hooks/use_indicator_by_id';
|
||||
import { AttachmentMetadata } from '../../../utils/attachments';
|
||||
|
||||
export const INDICATOR_NAME_TEST_ID = 'tiCasesIndicatorName';
|
||||
export const INDICATOR_FEED_NAME_TEST_ID = 'tiCasesIndicatorFeedName';
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './comment_children';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './attachment_children';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './use_indicator_by_id';
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { CasesPermissions } from '@kbn/cases-plugin/common';
|
||||
import { EMPTY_VALUE } from '../../../common/constants';
|
||||
import { useKibana } from '../../../hooks';
|
||||
import { useKibana } from '../../../hooks/use_kibana';
|
||||
|
||||
/**
|
||||
* Decides if we enable or disable the add to existing and add to new case features.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { useMemo } from 'react';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { Indicator } from '../../../../common/types/indicator';
|
||||
import { useKibana } from '../../../hooks';
|
||||
import { useKibana } from '../../../hooks/use_kibana';
|
||||
import { createFetchIndicatorById, FetchParams } from '../services/fetch_indicator_by_id';
|
||||
|
||||
const QUERY_ID = 'indicatorById';
|
||||
|
|
|
@ -15,7 +15,7 @@ import { FormattedMessage } from '@kbn/i18n-react';
|
|||
import { CASE_ATTACHMENT_TYPE_ID } from '../../../../common/constants';
|
||||
import { EMPTY_VALUE } from '../../../common/constants';
|
||||
import { Indicator, RawIndicatorFieldId } from '../../../../common/types/indicator';
|
||||
import { getIndicatorFieldAndValue } from '../../indicators';
|
||||
import { getIndicatorFieldAndValue } from '../../indicators/utils/field_value';
|
||||
|
||||
/**
|
||||
* Indicator name, type, feed name and first seen values,
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './attachments';
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { EmptyPage } from '.';
|
||||
import { EmptyPage } from './empty_page';
|
||||
import { StoryProvidersComponent } from '../../common/mocks/story_providers';
|
||||
|
||||
export default {
|
||||
|
|
|
@ -9,7 +9,8 @@ import React from 'react';
|
|||
import { render, screen } from '@testing-library/react';
|
||||
import { TestProvidersComponent } from '../../common/mocks/test_providers';
|
||||
import { DOCS_LINK_TEST_ID, EmptyPage, INTEGRATION_LINK_ID } from './empty_page';
|
||||
import { useIntegrationsPageLink, useTIDocumentationLink } from '../../hooks';
|
||||
import { useTIDocumentationLink } from '../../hooks/use_documentation_link';
|
||||
import { useIntegrationsPageLink } from '../../hooks/use_integrations_page_link';
|
||||
|
||||
jest.mock('../../hooks/use_integrations_page_link');
|
||||
jest.mock('../../hooks/use_documentation_link');
|
||||
|
|
|
@ -10,7 +10,8 @@ import React, { VFC } from 'react';
|
|||
import { EuiButton, EuiEmptyPrompt, EuiImage, EuiLink } from '@elastic/eui';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import { IMAGE } from './translations';
|
||||
import { useIntegrationsPageLink, useTIDocumentationLink } from '../../hooks';
|
||||
import { useTIDocumentationLink } from '../../hooks/use_documentation_link';
|
||||
import { useIntegrationsPageLink } from '../../hooks/use_integrations_page_link';
|
||||
import illustration from './integrations_light.svg';
|
||||
import { SecuritySolutionPluginTemplateWrapper } from '../../containers/security_solution_plugin_template_wrapper';
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './empty_page';
|
|
@ -11,7 +11,7 @@ import { Story } from '@storybook/react';
|
|||
import { TimeRangeBounds } from '@kbn/data-plugin/common';
|
||||
import { StoryProvidersComponent } from '../../../../../common/mocks/story_providers';
|
||||
import { mockKibanaTimelinesService } from '../../../../../common/mocks/mock_kibana_timelines_service';
|
||||
import { IndicatorsBarChart } from '.';
|
||||
import { IndicatorsBarChart } from './barchart';
|
||||
import { ChartSeries } from '../../../services';
|
||||
|
||||
const mockIndicators: ChartSeries[] = [
|
||||
|
|
|
@ -10,7 +10,7 @@ import React from 'react';
|
|||
import { render } from '@testing-library/react';
|
||||
import { TimeRangeBounds } from '@kbn/data-plugin/common';
|
||||
import { TestProvidersComponent } from '../../../../../common/mocks/test_providers';
|
||||
import { IndicatorsBarChart } from '.';
|
||||
import { IndicatorsBarChart } from './barchart';
|
||||
import { ChartSeries } from '../../../services';
|
||||
import { EuiComboBoxOptionOption } from '@elastic/eui';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import React, { VFC } from 'react';
|
|||
import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '@elastic/charts';
|
||||
import { EuiComboBoxOptionOption, EuiThemeProvider } from '@elastic/eui';
|
||||
import { TimeRangeBounds } from '@kbn/data-plugin/common';
|
||||
import { IndicatorBarchartLegendAction } from '../legend_action';
|
||||
import { IndicatorBarchartLegendAction } from '../legend_action/legend_action';
|
||||
import { barChartTimeAxisLabelFormatter } from '../../../../../common/utils/dates';
|
||||
import type { ChartSeries } from '../../../services';
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './barchart';
|
|
@ -10,7 +10,7 @@ import { Story } from '@storybook/react';
|
|||
import { DataView, DataViewField } from '@kbn/data-views-plugin/common';
|
||||
import { EuiComboBoxOptionOption } from '@elastic/eui';
|
||||
import { RawIndicatorFieldId } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorsFieldSelector } from '.';
|
||||
import { IndicatorsFieldSelector } from './field_selector';
|
||||
|
||||
const mockIndexPattern: DataView = {
|
||||
fields: [
|
||||
|
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { render } from '@testing-library/react';
|
||||
import { DataView, DataViewField } from '@kbn/data-views-plugin/common';
|
||||
import { TestProvidersComponent } from '../../../../../common/mocks/test_providers';
|
||||
import { IndicatorsFieldSelector } from '.';
|
||||
import { IndicatorsFieldSelector } from './field_selector';
|
||||
import { EuiComboBoxOptionOption } from '@elastic/eui';
|
||||
|
||||
const mockIndexPattern: DataView = {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './field_selector';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './wrapper';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './legend_action';
|
|
@ -14,9 +14,10 @@ import {
|
|||
EuiToolTip,
|
||||
} from '@elastic/eui';
|
||||
import moment from 'moment';
|
||||
import { CopyToClipboardContextMenu } from '../../copy_to_clipboard';
|
||||
import { FilterInContextMenu, FilterOutContextMenu } from '../../../../query_bar';
|
||||
import { AddToTimelineContextMenu } from '../../../../timeline';
|
||||
import { CopyToClipboardContextMenu } from '../../copy_to_clipboard/copy_to_clipboard';
|
||||
import { FilterInContextMenu } from '../../../../query_bar/components/filter_in/filter_in';
|
||||
import { FilterOutContextMenu } from '../../../../query_bar/components/filter_out/filter_out';
|
||||
import { AddToTimelineContextMenu } from '../../../../timeline/components/add_to_timeline/add_to_timeline';
|
||||
import {
|
||||
COPY_TO_CLIPBOARD_BUTTON_TEST_ID,
|
||||
FILTER_IN_BUTTON_TEST_ID,
|
||||
|
|
|
@ -18,7 +18,7 @@ import { EuiComboBoxOptionOption } from '@elastic/eui';
|
|||
import { BARCHART_AGGREGATION_NAME } from '../../../../../common/constants';
|
||||
import { StoryProvidersComponent } from '../../../../common/mocks/story_providers';
|
||||
import { mockKibanaTimelinesService } from '../../../../common/mocks/mock_kibana_timelines_service';
|
||||
import { IndicatorsBarChartWrapper } from '.';
|
||||
import { IndicatorsBarChartWrapper } from './wrapper';
|
||||
import { Aggregation, ChartSeries } from '../../services';
|
||||
|
||||
export default {
|
||||
|
|
|
@ -10,7 +10,7 @@ import { render } from '@testing-library/react';
|
|||
import { TimeRange } from '@kbn/es-query';
|
||||
import { DataView, DataViewField } from '@kbn/data-views-plugin/common';
|
||||
import { TestProvidersComponent } from '../../../../common/mocks/test_providers';
|
||||
import { CHART_UPDATE_PROGRESS_TEST_ID, IndicatorsBarChartWrapper } from '.';
|
||||
import { CHART_UPDATE_PROGRESS_TEST_ID, IndicatorsBarChartWrapper } from './wrapper';
|
||||
import moment from 'moment';
|
||||
|
||||
jest.mock('../../../query_bar/hooks/use_filters');
|
||||
|
|
|
@ -20,8 +20,8 @@ import { TimeRange } from '@kbn/es-query';
|
|||
import { TimeRangeBounds } from '@kbn/data-plugin/common';
|
||||
import { SecuritySolutionDataViewBase } from '../../../../types';
|
||||
import { RawIndicatorFieldId } from '../../../../../common/types/indicator';
|
||||
import { IndicatorsFieldSelector } from './field_selector';
|
||||
import { IndicatorsBarChart } from './barchart';
|
||||
import { IndicatorsFieldSelector } from './field_selector/field_selector';
|
||||
import { IndicatorsBarChart } from './barchart/barchart';
|
||||
import { ChartSeries } from '../../services';
|
||||
|
||||
const DEFAULT_FIELD = RawIndicatorFieldId.Feed;
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
CopyToClipboardButtonEmpty,
|
||||
CopyToClipboardButtonIcon,
|
||||
CopyToClipboardContextMenu,
|
||||
} from '.';
|
||||
} from './copy_to_clipboard';
|
||||
|
||||
export default {
|
||||
title: 'CopyToClipboard',
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
CopyToClipboardButtonEmpty,
|
||||
CopyToClipboardButtonIcon,
|
||||
CopyToClipboardContextMenu,
|
||||
} from '.';
|
||||
} from './copy_to_clipboard';
|
||||
|
||||
const mockValue: string = 'Text copied';
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './copy_to_clipboard';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './field_label';
|
|
@ -8,7 +8,7 @@
|
|||
import React from 'react';
|
||||
import { StoryProvidersComponent } from '../../../../common/mocks/story_providers';
|
||||
import { generateMockIndicator } from '../../../../../common/types/indicator';
|
||||
import { IndicatorFieldValue } from '.';
|
||||
import { IndicatorFieldValue } from './field_value';
|
||||
|
||||
export default {
|
||||
component: IndicatorFieldValue,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import { IndicatorFieldValue } from '.';
|
||||
import { IndicatorFieldValue } from './field_value';
|
||||
import {
|
||||
generateMockIndicator,
|
||||
generateMockIndicatorWithTlp,
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
*/
|
||||
|
||||
import React, { VFC } from 'react';
|
||||
import { useFieldTypes } from '../../../../hooks';
|
||||
import { useFieldTypes } from '../../../../hooks/use_field_types';
|
||||
import { EMPTY_VALUE } from '../../../../common/constants';
|
||||
import { Indicator, RawIndicatorFieldId } from '../../../../../common/types/indicator';
|
||||
import { DateFormatter } from '../../../../components/date_formatter';
|
||||
import { DateFormatter } from '../../../../components/date_formatter/date_formatter';
|
||||
import { unwrapValue } from '../../utils';
|
||||
import { TLPBadge } from '../tlp_badge';
|
||||
import { TLPBadge } from '../tlp_badge/tlp_badge';
|
||||
|
||||
export interface IndicatorFieldValueProps {
|
||||
/**
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './field_value';
|
|
@ -8,7 +8,7 @@
|
|||
import React from 'react';
|
||||
import { Story } from '@storybook/react';
|
||||
import { StoryProvidersComponent } from '../../../../../common/mocks/story_providers';
|
||||
import { IndicatorEmptyPrompt } from '.';
|
||||
import { IndicatorEmptyPrompt } from './empty_prompt';
|
||||
|
||||
export default {
|
||||
component: IndicatorEmptyPrompt,
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './empty_prompt';
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import React from 'react';
|
||||
import { mockIndicatorsFiltersContext } from '../../../../../common/mocks/mock_indicators_filters_context';
|
||||
import { IndicatorFieldsTable } from '.';
|
||||
import { IndicatorFieldsTable } from './fields_table';
|
||||
import { generateMockIndicator } from '../../../../../../common/types/indicator';
|
||||
import { StoryProvidersComponent } from '../../../../../common/mocks/story_providers';
|
||||
import { IndicatorsFiltersContext } from '../../../containers/filters';
|
||||
|
|
|
@ -9,8 +9,8 @@ import { EuiBasicTableColumn, EuiInMemoryTable, EuiInMemoryTableProps } from '@e
|
|||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import React, { useMemo, VFC } from 'react';
|
||||
import { Indicator } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorFieldValue } from '../../field_value';
|
||||
import { IndicatorValueActions } from '../indicator_value_actions';
|
||||
import { IndicatorFieldValue } from '../../field_value/field_value';
|
||||
import { IndicatorValueActions } from '../indicator_value_actions/indicator_value_actions';
|
||||
|
||||
export interface IndicatorFieldsTableProps {
|
||||
fields: string[];
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './fields_table';
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { Story } from '@storybook/react';
|
||||
import { StoryProvidersComponent } from '../../../../common/mocks/story_providers';
|
||||
import { generateMockIndicator, Indicator } from '../../../../../common/types/indicator';
|
||||
import { IndicatorsFlyout } from '.';
|
||||
import { IndicatorsFlyout } from './flyout';
|
||||
|
||||
export default {
|
||||
component: IndicatorsFlyout,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import React from 'react';
|
||||
import { cleanup, render, screen } from '@testing-library/react';
|
||||
import { IndicatorsFlyout } from '.';
|
||||
import { IndicatorsFlyout } from './flyout';
|
||||
import { generateMockIndicator, Indicator } from '../../../../../common/types/indicator';
|
||||
import { TestProvidersComponent } from '../../../../common/mocks/test_providers';
|
||||
import { INDICATORS_FLYOUT_SUBTITLE_TEST_ID, INDICATORS_FLYOUT_TITLE_TEST_ID } from './test_ids';
|
||||
|
|
|
@ -25,10 +25,10 @@ import { IndicatorsFlyoutContext } from './context';
|
|||
import { TakeAction } from './take_action/take_action';
|
||||
import { DateFormatter } from '../../../../components/date_formatter/date_formatter';
|
||||
import { Indicator, RawIndicatorFieldId } from '../../../../../common/types/indicator';
|
||||
import { IndicatorsFlyoutJson } from './json_tab';
|
||||
import { IndicatorsFlyoutTable } from './table_tab';
|
||||
import { IndicatorsFlyoutJson } from './json_tab/json_tab';
|
||||
import { IndicatorsFlyoutTable } from './table_tab/table_tab';
|
||||
import { unwrapValue } from '../../utils';
|
||||
import { IndicatorsFlyoutOverview } from './overview_tab';
|
||||
import { IndicatorsFlyoutOverview } from './overview_tab/overview_tab';
|
||||
import {
|
||||
INDICATORS_FLYOUT_TABS_TEST_ID,
|
||||
INDICATORS_FLYOUT_TITLE_TEST_ID,
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './flyout';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './indicator_value_actions';
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { Story } from '@storybook/react';
|
||||
import { StoryProvidersComponent } from '../../../../../common/mocks/story_providers';
|
||||
import { generateMockFileIndicator, Indicator } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorValueActions } from '.';
|
||||
import { IndicatorValueActions } from './indicator_value_actions';
|
||||
import { IndicatorsFlyoutContext } from '../context';
|
||||
|
||||
export default {
|
||||
|
|
|
@ -15,10 +15,17 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import { useIndicatorsFlyoutContext } from '../use_context';
|
||||
import { Indicator } from '../../../../../../common/types/indicator';
|
||||
import { FilterInButtonIcon, FilterOutButtonIcon } from '../../../../query_bar';
|
||||
import { AddToTimelineButtonIcon, AddToTimelineContextMenu } from '../../../../timeline';
|
||||
import { FilterInButtonIcon } from '../../../../query_bar/components/filter_in/filter_in';
|
||||
import { FilterOutButtonIcon } from '../../../../query_bar/components/filter_out/filter_out';
|
||||
import {
|
||||
AddToTimelineButtonIcon,
|
||||
AddToTimelineContextMenu,
|
||||
} from '../../../../timeline/components/add_to_timeline/add_to_timeline';
|
||||
import { fieldAndValueValid, getIndicatorFieldAndValue } from '../../../utils';
|
||||
import { CopyToClipboardButtonIcon, CopyToClipboardContextMenu } from '../../copy_to_clipboard';
|
||||
import {
|
||||
CopyToClipboardButtonIcon,
|
||||
CopyToClipboardContextMenu,
|
||||
} from '../../copy_to_clipboard/copy_to_clipboard';
|
||||
import {
|
||||
COPY_TO_CLIPBOARD_BUTTON_TEST_ID,
|
||||
FILTER_IN_BUTTON_TEST_ID,
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './json_tab';
|
|
@ -8,7 +8,7 @@
|
|||
import React from 'react';
|
||||
import { Story } from '@storybook/react';
|
||||
import { generateMockIndicator, Indicator } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorsFlyoutJson } from '.';
|
||||
import { IndicatorsFlyoutJson } from './json_tab';
|
||||
|
||||
export default {
|
||||
component: IndicatorsFlyoutJson,
|
||||
|
|
|
@ -9,8 +9,8 @@ import React from 'react';
|
|||
import { render } from '@testing-library/react';
|
||||
import { TestProvidersComponent } from '../../../../../common/mocks/test_providers';
|
||||
import { generateMockIndicator, Indicator } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorsFlyoutJson } from '.';
|
||||
import { EMPTY_PROMPT_TEST_ID } from '../empty_prompt';
|
||||
import { IndicatorsFlyoutJson } from './json_tab';
|
||||
import { EMPTY_PROMPT_TEST_ID } from '../empty_prompt/empty_prompt';
|
||||
import { CODE_BLOCK_TEST_ID } from './test_ids';
|
||||
|
||||
const mockIndicator: Indicator = generateMockIndicator();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import React, { VFC } from 'react';
|
||||
import { EuiCodeBlock } from '@elastic/eui';
|
||||
import { Indicator } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorEmptyPrompt } from '../empty_prompt';
|
||||
import { IndicatorEmptyPrompt } from '../empty_prompt/empty_prompt';
|
||||
import { CODE_BLOCK_TEST_ID } from './test_ids';
|
||||
|
||||
export interface IndicatorsFlyoutJsonProps {
|
||||
|
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { IndicatorsFiltersContext } from '../../../../containers/filters';
|
||||
import { StoryProvidersComponent } from '../../../../../../common/mocks/story_providers';
|
||||
import { generateMockIndicator } from '../../../../../../../common/types/indicator';
|
||||
import { IndicatorBlock } from '.';
|
||||
import { IndicatorBlock } from './block';
|
||||
import { IndicatorsFlyoutContext } from '../../context';
|
||||
|
||||
export default {
|
||||
|
|
|
@ -9,9 +9,9 @@ import { EuiPanel, EuiSpacer, EuiText } from '@elastic/eui';
|
|||
import React, { VFC } from 'react';
|
||||
import { css, euiStyled } from '@kbn/kibana-react-plugin/common';
|
||||
import { Indicator } from '../../../../../../../common/types/indicator';
|
||||
import { IndicatorFieldValue } from '../../../field_value';
|
||||
import { IndicatorFieldLabel } from '../../../field_label';
|
||||
import { IndicatorValueActions } from '../../indicator_value_actions';
|
||||
import { IndicatorFieldValue } from '../../../field_value/field_value';
|
||||
import { IndicatorFieldLabel } from '../../../field_label/field_label';
|
||||
import { IndicatorValueActions } from '../../indicator_value_actions/indicator_value_actions';
|
||||
|
||||
/**
|
||||
* Show actions wrapper on hover. This is a helper component, limited only to Block
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './block';
|
|
@ -8,7 +8,7 @@
|
|||
import React, { useMemo, VFC } from 'react';
|
||||
import { Indicator, RawIndicatorFieldId } from '../../../../../../../common/types/indicator';
|
||||
import { unwrapValue } from '../../../../utils';
|
||||
import { IndicatorFieldsTable } from '../../fields_table';
|
||||
import { IndicatorFieldsTable } from '../../fields_table/fields_table';
|
||||
|
||||
/**
|
||||
* Pick indicator fields starting with the indicator type
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './highlighted_values_table';
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './overview_tab';
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { Story } from '@storybook/react';
|
||||
import { StoryProvidersComponent } from '../../../../../common/mocks/story_providers';
|
||||
import { generateMockIndicator, Indicator } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorsFlyoutOverview } from '.';
|
||||
import { IndicatorsFlyoutOverview } from './overview_tab';
|
||||
import { IndicatorsFiltersContext } from '../../../containers/filters';
|
||||
import { IndicatorsFlyoutContext } from '../context';
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ import { TestProvidersComponent } from '../../../../../common/mocks/test_provide
|
|||
import { render, screen } from '@testing-library/react';
|
||||
import React from 'react';
|
||||
import { generateMockIndicator, Indicator } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorsFlyoutOverview } from '.';
|
||||
import { EMPTY_PROMPT_TEST_ID } from '../empty_prompt';
|
||||
import { IndicatorsFlyoutOverview } from './overview_tab';
|
||||
import { EMPTY_PROMPT_TEST_ID } from '../empty_prompt/empty_prompt';
|
||||
import { IndicatorsFlyoutContext } from '../context';
|
||||
import {
|
||||
INDICATORS_FLYOUT_OVERVIEW_HIGH_LEVEL_BLOCKS,
|
||||
|
|
|
@ -20,9 +20,9 @@ import { useIndicatorsFlyoutContext } from '../use_context';
|
|||
import { EMPTY_VALUE } from '../../../../../common/constants';
|
||||
import { Indicator, RawIndicatorFieldId } from '../../../../../../common/types/indicator';
|
||||
import { unwrapValue } from '../../../utils';
|
||||
import { IndicatorEmptyPrompt } from '../empty_prompt';
|
||||
import { IndicatorBlock } from './block';
|
||||
import { HighlightedValuesTable } from './highlighted_values_table';
|
||||
import { IndicatorEmptyPrompt } from '../empty_prompt/empty_prompt';
|
||||
import { IndicatorBlock } from './block/block';
|
||||
import { HighlightedValuesTable } from './highlighted_values_table/highlighted_values_table';
|
||||
import {
|
||||
INDICATORS_FLYOUT_OVERVIEW_HIGH_LEVEL_BLOCKS,
|
||||
INDICATORS_FLYOUT_OVERVIEW_TABLE,
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export * from './table_tab';
|
|
@ -13,7 +13,7 @@ import { mockIndicatorsFiltersContext } from '../../../../../common/mocks/mock_i
|
|||
import { mockUiSettingsService } from '../../../../../common/mocks/mock_kibana_ui_settings_service';
|
||||
import { mockKibanaTimelinesService } from '../../../../../common/mocks/mock_kibana_timelines_service';
|
||||
import { generateMockIndicator, Indicator } from '../../../../../../common/types/indicator';
|
||||
import { IndicatorsFlyoutTable } from '.';
|
||||
import { IndicatorsFlyoutTable } from './table_tab';
|
||||
import { IndicatorsFiltersContext } from '../../../containers/filters';
|
||||
import { IndicatorsFlyoutContext } from '../context';
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue