From bd9254fe1ebbc042968846dbd1fd52f1769dc0bb Mon Sep 17 00:00:00 2001 From: Abdul Wahab Zahid Date: Mon, 30 Dec 2024 12:46:49 +0100 Subject: [PATCH 01/10] [Dataset Quality] Fix failing es-promotion test on `8.x` (#205188) Newer builds of ES ingest `event.ingested` and `tags` fields into APM indices making the Dataset Quality tests fail which rely on ingested field counts against set number of field limits. The PR addresses this by explicitly ingesting the fields beforehand. After the merge to main, the PR will be backported to `8.x` to unblock es-promotion. --- .../src/lib/apm/apm_fields.ts | 2 +- .../src/lib/logs/index.ts | 1 + .../apps/dataset_quality/data/logs_data.ts | 4 ++++ .../dataset_quality/degraded_field_flyout.ts | 19 +++++++++++------ .../dataset_quality/degraded_field_flyout.ts | 21 +++++++++++-------- 5 files changed, 31 insertions(+), 16 deletions(-) diff --git a/packages/kbn-apm-synthtrace-client/src/lib/apm/apm_fields.ts b/packages/kbn-apm-synthtrace-client/src/lib/apm/apm_fields.ts index 1c9c379dbef56..3371cc27227cb 100644 --- a/packages/kbn-apm-synthtrace-client/src/lib/apm/apm_fields.ts +++ b/packages/kbn-apm-synthtrace-client/src/lib/apm/apm_fields.ts @@ -126,7 +126,7 @@ export type ApmFields = Fields<{ 'error.id': string; 'error.type': string; 'error.culprit': string; - 'event.ingested': number; + 'event.ingested': string; 'event.name': string; 'event.action': string; 'event.outcome': string; diff --git a/packages/kbn-apm-synthtrace-client/src/lib/logs/index.ts b/packages/kbn-apm-synthtrace-client/src/lib/logs/index.ts index e4e382860767d..fa1856aa05ca3 100644 --- a/packages/kbn-apm-synthtrace-client/src/lib/logs/index.ts +++ b/packages/kbn-apm-synthtrace-client/src/lib/logs/index.ts @@ -36,6 +36,7 @@ export type LogDocument = Fields & 'error.message'?: string; 'event.original'?: string; 'event.dataset': string; + 'event.ingested': string; 'log.level'?: string; 'host.name'?: string; 'container.id'?: string; diff --git a/x-pack/test/functional/apps/dataset_quality/data/logs_data.ts b/x-pack/test/functional/apps/dataset_quality/data/logs_data.ts index 3692a17709a2e..cd1668484337e 100644 --- a/x-pack/test/functional/apps/dataset_quality/data/logs_data.ts +++ b/x-pack/test/functional/apps/dataset_quality/data/logs_data.ts @@ -217,3 +217,7 @@ export const MORE_THAN_1024_CHARS = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?'; export const ANOTHER_1024_CHARS = 'grape fig tangerine tangerine kiwi lemon papaya cherry nectarine papaya mango cherry nectarine fig cherry fig grape mango mango quince fig strawberry mango quince date kiwi quince raspberry apple kiwi banana quince fig papaya grape mango cherry banana mango cherry lemon cherry tangerine fig quince quince papaya tangerine grape strawberry banana kiwi grape mango papaya nectarine banana nectarine kiwi papaya lemon apple lemon orange fig cherry grape apple nectarine papaya orange fig papaya date mango papaya mango cherry tangerine papaya apple banana papaya cherry strawberry grape raspberry lemon date papaya mango kiwi cherry fig banana banana apple date strawberry mango tangerine date lemon kiwi quince date orange orange papaya date apple fig tangerine quince tangerine date papaya banana banana orange raspberry papaya apple nectarine lemon raspberry raspberry mango cherry kiwi cherry cherry nectarine cherry date strawberry banana orange mango mango tangerine quince papaya papaya kiwi papaya strawberry date mango'; + +export const CONSISTENT_TAGS = [ + 'this_is_here_to_remove_variance_introduced_by_the_geoip_processor', +]; diff --git a/x-pack/test/functional/apps/dataset_quality/degraded_field_flyout.ts b/x-pack/test/functional/apps/dataset_quality/degraded_field_flyout.ts index 19a2001603925..3a24fdd59eac3 100644 --- a/x-pack/test/functional/apps/dataset_quality/degraded_field_flyout.ts +++ b/x-pack/test/functional/apps/dataset_quality/degraded_field_flyout.ts @@ -15,6 +15,7 @@ import { getInitialTestLogs, ANOTHER_1024_CHARS, MORE_THAN_1024_CHARS, + CONSISTENT_TAGS, } from './data'; import { logsSynthMappings } from './custom_mappings/custom_synth_mappings'; import { logsNginxMappings } from './custom_mappings/custom_integration_mappings'; @@ -187,7 +188,7 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid .timestamp(timestamp) ); }), - // Ingest Degraded Logs with 26 fields in Apm DataSet + // Ingest Degraded Logs with 27 fields in Apm DataSet timerange(moment(to).subtract(count, 'minute'), moment(to)) .interval('1m') .rate(1) @@ -205,7 +206,9 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid .defaults({ 'service.name': serviceName, 'trace.id': generateShortId(), + 'event.ingested': new Date().toISOString(), test_field: [MORE_THAN_1024_CHARS, ANOTHER_1024_CHARS], + tags: CONSISTENT_TAGS, // To account for ES inserted error tags }) .timestamp(timestamp) ); @@ -227,7 +230,7 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid // Set Limit of 26 await PageObjects.datasetQuality.setDataStreamSettings(apmAppDataStreamName, { - 'mapping.total_fields.limit': 25, + 'mapping.total_fields.limit': 26, }); await synthtrace.index([ @@ -279,7 +282,7 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid .timestamp(timestamp) ); }), - // Ingest Degraded Logs with 27 fields in Apm APP DataSet + // Ingest Degraded Logs with 29 fields in Apm APP DataSet timerange(moment(to).subtract(count, 'minute'), moment(to)) .interval('1m') .rate(1) @@ -299,6 +302,8 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid 'trace.id': generateShortId(), test_field: [MORE_THAN_1024_CHARS, ANOTHER_1024_CHARS], 'cloud.project.id': generateShortId(), + 'event.ingested': new Date().toISOString(), + tags: CONSISTENT_TAGS, // To account for ES inserted error tags }) .timestamp(timestamp) ); @@ -330,13 +335,13 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid } ); - // Set Limit of 27 + // Set Limit of 28 await PageObjects.datasetQuality.setDataStreamSettings( PageObjects.datasetQuality.generateBackingIndexNameWithoutVersion({ dataset: apmAppDatasetName, }) + '-000002', { - 'mapping.total_fields.limit': 27, + 'mapping.total_fields.limit': 28, } ); @@ -389,7 +394,7 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid .timestamp(timestamp) ); }), - // Ingest Degraded Logs with 27 fields in Apm APP DataSet + // Ingest Degraded Logs with 29 fields in Apm APP DataSet timerange(moment(to).subtract(count, 'minute'), moment(to)) .interval('1m') .rate(1) @@ -409,6 +414,8 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid 'trace.id': generateShortId(), test_field: [MORE_THAN_1024_CHARS, ANOTHER_1024_CHARS], 'cloud.project.id': generateShortId(), + 'event.ingested': new Date().toISOString(), + tags: CONSISTENT_TAGS, // To account for ES inserted error tags }) .timestamp(timestamp) ); diff --git a/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/degraded_field_flyout.ts b/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/degraded_field_flyout.ts index 4152a745d8541..4c4a8bb5eeb81 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/degraded_field_flyout.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/degraded_field_flyout.ts @@ -102,7 +102,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); }); - describe('testing root cause for ignored fields', () => { + describe('detecting root cause for ignored fields', () => { before(async () => { // Create custom component template await synthtrace.createComponentTemplate( @@ -134,14 +134,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { // Install Nginx Integration and ingest logs for it await PageObjects.observabilityLogsExplorer.installPackage(nginxPkg); - // Create custom component template to avoid issues with LogsDB + // Create custom component template for Nginx to avoid issues with LogsDB await synthtrace.createComponentTemplate( customComponentTemplateNameNginx, logsNginxMappings(nginxAccessDatasetName) ); await synthtrace.index([ - // Ingest Degraded Logs with 25 fields + // Ingest Degraded Logs with 25 fields in degraded DataSet timerange(moment(to).subtract(count, 'minute'), moment(to)) .interval('1m') .rate(1) @@ -187,7 +187,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { .timestamp(timestamp) ); }), - // Ingest Degraded Logs with 26 fields in Apm DataSet + // Ingest Degraded Logs with 27 fields in Apm DataSet timerange(moment(to).subtract(count, 'minute'), moment(to)) .interval('1m') .rate(1) @@ -206,6 +206,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'service.name': serviceName, 'trace.id': generateShortId(), test_field: [MORE_THAN_1024_CHARS, ANOTHER_1024_CHARS], + 'event.ingested': new Date().toISOString(), // this works around a geoip limitation in CI tags: CONSISTENT_TAGS, }) @@ -229,7 +230,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { // Set Limit of 26 await PageObjects.datasetQuality.setDataStreamSettings(apmAppDataStreamName, { - 'mapping.total_fields.limit': 25, + 'mapping.total_fields.limit': 26, }); await synthtrace.index([ @@ -281,7 +282,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { .timestamp(timestamp) ); }), - // Ingest Degraded Logs with 27 fields in Apm APP DataSet + // Ingest Degraded Logs with 29 fields in Apm APP DataSet timerange(moment(to).subtract(count, 'minute'), moment(to)) .interval('1m') .rate(1) @@ -303,6 +304,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'cloud.project.id': generateShortId(), // this works around a geoip limitation in CI tags: CONSISTENT_TAGS, + 'event.ingested': new Date().toISOString(), }) .timestamp(timestamp) ); @@ -334,13 +336,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { } ); - // Set Limit of 27 + // Set Limit of 28 await PageObjects.datasetQuality.setDataStreamSettings( PageObjects.datasetQuality.generateBackingIndexNameWithoutVersion({ dataset: apmAppDatasetName, }) + '-000002', { - 'mapping.total_fields.limit': 27, + 'mapping.total_fields.limit': 28, } ); @@ -393,7 +395,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { .timestamp(timestamp) ); }), - // Ingest Degraded Logs with 27 fields in Apm APP DataSet + // Ingest Degraded Logs with 29 fields in Apm APP DataSet timerange(moment(to).subtract(count, 'minute'), moment(to)) .interval('1m') .rate(1) @@ -413,6 +415,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { 'trace.id': generateShortId(), test_field: [MORE_THAN_1024_CHARS, ANOTHER_1024_CHARS], 'cloud.project.id': generateShortId(), + 'event.ingested': new Date().toISOString(), // this works around a geoip limitation in CI tags: CONSISTENT_TAGS, }) From a129744e00eba02a799946325a0115f8167ad816 Mon Sep 17 00:00:00 2001 From: Elena Shostak <165678770+elena-shostak@users.noreply.github.com> Date: Mon, 30 Dec 2024 13:18:47 +0100 Subject: [PATCH 02/10] [CodeQL] Added env var to skip types for 8.x branch (#205245) ## Summary Added `CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES` env var for `8.x` branch to check if that speeds up the CodeQL run, refer to [documentation](https://codeql.github.com/docs/codeql-overview/codeql-changelog/codeql-cli-2.15.5/) for details. --- .github/workflows/codeql.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e80b3b2c73463..291f869c82bf8 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -46,10 +46,15 @@ jobs: echo "CHECKOUT_REF=$(git symbolic-ref HEAD)" >> "$GITHUB_ENV" echo "CHECKOUT_SHA=$(git rev-parse HEAD)" >> "$GITHUB_ENV" + - name: Set experimental environment variable for 8.x branch + if: env.CHECKOUT_REF == 'refs/heads/8.x' + run: echo "CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES=true" >> "$GITHUB_ENV" + - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@883d8588e56d1753a8a58c1c86e88976f0c23449 # v3.26.3 env: NODE_OPTIONS: "--max-old-space-size=6144" + CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES: ${{ env.CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES }} with: category: "/language:${{matrix.language}}" ref: ${{ env.CHECKOUT_REF }} From bb877cff7ef24c3f7295bdcdbdebb960c7db81b3 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 30 Dec 2024 13:23:47 +0100 Subject: [PATCH 03/10] Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-data-discovery` (#203152) ## Summary This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the _Sustainable Kibana Architecture_ initiative. > [!IMPORTANT] > * We kindly ask you to: > * Manually fix the errors in the error section below (if there are any). > * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the source code (Babel and Eslint config files), and update them appropriately. > * Manually review `.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names > * Review all of the updated files, specially the `.ts` and `.js` files listed in the sections below, as some of them contain relative paths that have been updated. > * Think of potential impact of the move, including tooling and configuration files that can be pointing to the relocated modules. E.g.: > * customised eslint rules > * docs pointing to source code > [!NOTE] > * This PR has been auto-generated. > * Any manual contributions will be lost if the 'relocate' script is re-run. > * Try to obtain the missing reviews / approvals before applying manual fixes, and/or keep your changes in a .patch / git stash. > * Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. Are you trying to rebase this PR to solve merge conflicts? Please follow the steps describe [here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E). #### 12 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/data-view-editor-plugin` | `src/platform/plugins/shared/data_view_editor` | | `@kbn/data-view-field-editor-plugin` | `src/platform/plugins/shared/data_view_field_editor` | | `@kbn/data-view-management-plugin` | `src/platform/plugins/shared/data_view_management` | | `@kbn/data-views-plugin` | `src/platform/plugins/shared/data_views` | | `@kbn/discover-enhanced-plugin` | `x-pack/platform/plugins/private/discover_enhanced` | | `@kbn/discover-plugin` | `src/platform/plugins/shared/discover` | | `@kbn/discover-shared-plugin` | `src/platform/plugins/shared/discover_shared` | | `@kbn/field-formats-plugin` | `src/platform/plugins/shared/field_formats` | | `@kbn/saved-objects-finder-plugin` | `src/platform/plugins/shared/saved_objects_finder` | | `@kbn/saved-search-plugin` | `src/platform/plugins/shared/saved_search` | | `@kbn/unified-doc-viewer-plugin` | `src/platform/plugins/shared/unified_doc_viewer` | | `@kbn/unified-histogram-plugin` | `src/platform/plugins/shared/unified_histogram` | #### 18 packages(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/content-management-utils` | `src/platform/packages/shared/kbn-content-management-utils` | | `@kbn/data-view-utils` | `src/platform/packages/shared/kbn-data-view-utils` | | `@kbn/datemath` | `src/platform/packages/shared/kbn-datemath` | | `@kbn/deeplinks-analytics` | `src/platform/packages/shared/deeplinks/analytics` | | `@kbn/default-nav-analytics` | `src/platform/packages/private/default-nav/analytics` | | `@kbn/discover-utils` | `src/platform/packages/shared/kbn-discover-utils` | | `@kbn/es-query` | `src/platform/packages/shared/kbn-es-query` | | `@kbn/field-types` | `src/platform/packages/shared/kbn-field-types` | | `@kbn/field-utils` | `src/platform/packages/shared/kbn-field-utils` | | `@kbn/react-field` | `src/platform/packages/shared/kbn-react-field` | | `@kbn/resizable-layout` | `src/platform/packages/shared/kbn-resizable-layout` | | `@kbn/search-errors` | `src/platform/packages/shared/kbn-search-errors` | | `@kbn/search-response-warnings` | `src/platform/packages/shared/kbn-search-response-warnings` | | `@kbn/search-types` | `src/platform/packages/shared/kbn-search-types` | | `@kbn/unified-data-table` | `src/platform/packages/shared/kbn-unified-data-table` | | `@kbn/unified-doc-viewer` | `src/platform/packages/shared/kbn-unified-doc-viewer` | | `@kbn/unified-field-list` | `src/platform/packages/shared/kbn-unified-field-list` | | `@kbn/unsaved-changes-badge` | `src/platform/packages/private/kbn-unsaved-changes-badge` |
Updated references ``` ./.buildkite/scripts/steps/functional/scout_ui_tests.sh ./.eslintrc.js ./.i18nrc.json ./docs/developer/advanced/sharing-saved-objects.asciidoc ./docs/developer/architecture/core/saved-objects-service.asciidoc ./docs/developer/best-practices/navigation.asciidoc ./docs/developer/contributing/development-unit-tests.asciidoc ./docs/developer/plugin-list.asciidoc ./examples/unified_doc_viewer/README.md ./examples/unified_field_list_examples/public/plugin.ts ./legacy_rfcs/text/0015_bazel.md ./oas_docs/scripts/merge_ess_oas.js ./oas_docs/scripts/merge_serverless_oas.js ./package.json ./packages/kbn-repo-packages/package-map.json ./packages/kbn-synthetic-package-map/synthetic-packages.json ./packages/kbn-test/src/functional_tests/lib/babel_register_for_test_plugins.js ./packages/kbn-ts-projects/config-paths.json ./packages/kbn-ui-shared-deps-src/BUILD.bazel ./packages/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.ts ./packages/shared-ux/prompt/no_data_views/types/index.d.ts ./src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt ./src/dev/storybook/aliases.ts ./src/platform/packages/private/default-nav/analytics/jest.config.js ./src/platform/packages/private/kbn-unsaved-changes-badge/jest.config.js ./src/platform/packages/shared/deeplinks/analytics/jest.config.js ./src/platform/packages/shared/kbn-content-management-utils/jest.config.js ./src/platform/packages/shared/kbn-data-view-utils/jest.config.js ./src/platform/packages/shared/kbn-datemath/jest.config.js ./src/platform/packages/shared/kbn-discover-utils/jest.config.js ./src/platform/packages/shared/kbn-es-query/jest.config.js ./src/platform/packages/shared/kbn-field-types/jest.config.js ./src/platform/packages/shared/kbn-field-utils/jest.config.js ./src/platform/packages/shared/kbn-react-field/jest.config.js ./src/platform/packages/shared/kbn-resizable-layout/jest.config.js ./src/platform/packages/shared/kbn-search-errors/jest.config.js ./src/platform/packages/shared/kbn-search-response-warnings/jest.config.js ./src/platform/packages/shared/kbn-search-types/jest.config.js ./src/platform/packages/shared/kbn-unified-data-table/jest.config.js ./src/platform/packages/shared/kbn-unified-doc-viewer/jest.config.js ./src/platform/packages/shared/kbn-unified-field-list/jest.config.js ./src/platform/plugins/shared/data_view_editor/jest.config.js ./src/platform/plugins/shared/data_view_field_editor/jest.config.js ./src/platform/plugins/shared/data_view_management/jest.config.js ./src/platform/plugins/shared/data_views/jest.config.js ./src/platform/plugins/shared/discover/README.md ./src/platform/plugins/shared/discover/jest.config.js ./src/platform/plugins/shared/discover/public/context_awareness/README.md ./src/platform/plugins/shared/discover_shared/README.md ./src/platform/plugins/shared/discover_shared/jest.config.js ./src/platform/plugins/shared/field_formats/jest.config.js ./src/platform/plugins/shared/saved_objects_finder/jest.config.js ./src/platform/plugins/shared/saved_search/jest.config.js ./src/platform/plugins/shared/unified_doc_viewer/jest.config.js ./src/platform/plugins/shared/unified_histogram/jest.config.js ./tsconfig.base.json ./tsconfig.refs.json ./x-pack/.i18nrc.json ./x-pack/platform/plugins/private/discover_enhanced/jest.config.js ./x-pack/platform/plugins/private/discover_enhanced/ui_tests/README.md ./x-pack/solutions/security/plugins/timelines/common/search_strategy/index_fields/index.ts ./yarn.lock .github/CODEOWNERS ```
Updated relative paths ``` src/platform/packages/private/default-nav/analytics/jest.config.js:12 src/platform/packages/private/default-nav/analytics/tsconfig.json:2 src/platform/packages/private/kbn-unsaved-changes-badge/jest.config.js:12 src/platform/packages/private/kbn-unsaved-changes-badge/tsconfig.json:2 src/platform/packages/shared/deeplinks/analytics/jest.config.js:12 src/platform/packages/shared/deeplinks/analytics/tsconfig.json:2 src/platform/packages/shared/kbn-content-management-utils/jest.config.js:12 src/platform/packages/shared/kbn-content-management-utils/tsconfig.json:2 src/platform/packages/shared/kbn-data-view-utils/jest.config.js:12 src/platform/packages/shared/kbn-data-view-utils/tsconfig.json:2 src/platform/packages/shared/kbn-datemath/jest.config.js:22 src/platform/packages/shared/kbn-datemath/tsconfig.json:2 src/platform/packages/shared/kbn-discover-utils/jest.config.js:12 src/platform/packages/shared/kbn-discover-utils/tsconfig.json:2 src/platform/packages/shared/kbn-es-query/jest.config.js:12 src/platform/packages/shared/kbn-es-query/tsconfig.json:2 src/platform/packages/shared/kbn-field-types/jest.config.js:12 src/platform/packages/shared/kbn-field-types/tsconfig.json:2 src/platform/packages/shared/kbn-field-utils/jest.config.js:12 src/platform/packages/shared/kbn-field-utils/tsconfig.json:2 src/platform/packages/shared/kbn-react-field/jest.config.js:12 src/platform/packages/shared/kbn-react-field/tsconfig.json:2 src/platform/packages/shared/kbn-resizable-layout/jest.config.js:12 src/platform/packages/shared/kbn-resizable-layout/tsconfig.json:2 src/platform/packages/shared/kbn-search-errors/jest.config.js:12 src/platform/packages/shared/kbn-search-errors/tsconfig.json:2 src/platform/packages/shared/kbn-search-response-warnings/jest.config.js:12 src/platform/packages/shared/kbn-search-response-warnings/tsconfig.json:2 src/platform/packages/shared/kbn-search-types/jest.config.js:12 src/platform/packages/shared/kbn-search-types/tsconfig.json:2 src/platform/packages/shared/kbn-unified-data-table/jest.config.js:12 src/platform/packages/shared/kbn-unified-data-table/tsconfig.json:2 src/platform/packages/shared/kbn-unified-doc-viewer/jest.config.js:12 src/platform/packages/shared/kbn-unified-doc-viewer/tsconfig.json:2 src/platform/packages/shared/kbn-unified-field-list/jest.config.js:12 src/platform/packages/shared/kbn-unified-field-list/tsconfig.json:2 src/platform/plugins/shared/data_view_editor/jest.config.js:12 src/platform/plugins/shared/data_view_editor/tsconfig.json:2 src/platform/plugins/shared/data_view_field_editor/jest.config.js:12 src/platform/plugins/shared/data_view_field_editor/tsconfig.json:2 src/platform/plugins/shared/data_view_field_editor/tsconfig.json:7 src/platform/plugins/shared/data_view_management/jest.config.js:12 src/platform/plugins/shared/data_view_management/tsconfig.json:2 src/platform/plugins/shared/data_views/jest.config.js:12 src/platform/plugins/shared/data_views/tsconfig.json:2 src/platform/plugins/shared/discover/jest.config.js:12 src/platform/plugins/shared/discover/public/application/context/context_app.scss:1 src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.scss:1 src/platform/plugins/shared/discover/public/context_awareness/README.md:118 src/platform/plugins/shared/discover/public/context_awareness/README.md:119 src/platform/plugins/shared/discover/tsconfig.json:10 src/platform/plugins/shared/discover/tsconfig.json:2 src/platform/plugins/shared/discover_shared/jest.config.js:12 src/platform/plugins/shared/discover_shared/tsconfig.json:10 src/platform/plugins/shared/discover_shared/tsconfig.json:2 src/platform/plugins/shared/field_formats/jest.config.js:12 src/platform/plugins/shared/field_formats/tsconfig.json:2 src/platform/plugins/shared/saved_objects_finder/jest.config.js:12 src/platform/plugins/shared/saved_objects_finder/tsconfig.json:2 src/platform/plugins/shared/saved_search/jest.config.js:12 src/platform/plugins/shared/saved_search/tsconfig.json:2 src/platform/plugins/shared/saved_search/tsconfig.json:6 src/platform/plugins/shared/unified_doc_viewer/jest.config.js:12 src/platform/plugins/shared/unified_doc_viewer/tsconfig.json:2 src/platform/plugins/shared/unified_doc_viewer/tsconfig.json:6 src/platform/plugins/shared/unified_histogram/jest.config.js:12 src/platform/plugins/shared/unified_histogram/tsconfig.json:2 src/platform/plugins/shared/unified_histogram/tsconfig.json:6 x-pack/platform/plugins/private/discover_enhanced/jest.config.js:10 x-pack/platform/plugins/private/discover_enhanced/tsconfig.json:2 ```
--------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> --- .../pipelines/pull_request/pipeline.ts | 24 ++-- .../steps/functional/scout_ui_tests.sh | 2 +- .eslintrc.js | 7 +- .github/CODEOWNERS | 70 +++++----- .i18nrc.json | 38 +++--- .../advanced/sharing-saved-objects.asciidoc | 4 +- .../core/saved-objects-service.asciidoc | 2 +- .../best-practices/navigation.asciidoc | 2 +- .../development-unit-tests.asciidoc | 2 +- docs/developer/plugin-list.asciidoc | 24 ++-- examples/unified_doc_viewer/README.md | 2 +- .../public/plugin.ts | 2 +- legacy_rfcs/text/0015_bazel.md | 4 +- oas_docs/scripts/merge_ess_oas.js | 2 +- oas_docs/scripts/merge_serverless_oas.js | 2 +- package.json | 60 ++++----- packages/kbn-discover-utils/jest.config.js | 14 -- packages/kbn-es-query/jest.config.js | 14 -- packages/kbn-field-types/jest.config.js | 14 -- packages/kbn-field-utils/jest.config.js | 14 -- packages/kbn-react-field/jest.config.js | 14 -- packages/kbn-resizable-layout/jest.config.js | 14 -- packages/kbn-search-errors/jest.config.js | 14 -- .../jest.config.js | 14 -- packages/kbn-search-types/jest.config.js | 14 -- .../lib/babel_register_for_test_plugins.js | 2 +- packages/kbn-ui-shared-deps-src/BUILD.bazel | 6 +- .../kbn-unified-data-table/jest.config.js | 14 -- .../kbn-unified-doc-viewer/jest.config.js | 14 -- .../kbn-unified-field-list/jest.config.js | 14 -- .../kbn-unsaved-changes-badge/jest.config.js | 14 -- .../prompt/no_data_views/types/index.d.ts | 4 +- .../__tests__/mocks/team_assign_mock.txt | 32 ++--- src/dev/storybook/aliases.ts | 2 +- .../private}/default-nav/analytics/README.md | 0 .../analytics/default_navigation.ts | 0 .../private}/default-nav/analytics/index.ts | 0 .../default-nav/analytics/jest.config.js | 14 ++ .../default-nav/analytics/kibana.jsonc | 0 .../default-nav/analytics/package.json | 0 .../default-nav/analytics/tsconfig.json | 2 +- .../kbn-unsaved-changes-badge/README.md | 0 .../kbn-unsaved-changes-badge/index.ts | 0 .../kbn-unsaved-changes-badge/jest.config.js | 14 ++ .../kbn-unsaved-changes-badge/kibana.jsonc | 0 .../kbn-unsaved-changes-badge/package.json | 0 .../unsaved_changes_badge.test.tsx.snap | 0 .../components/unsaved_changes_badge/index.ts | 0 .../unsaved_changes_badge.test.tsx | 0 .../unsaved_changes_badge.tsx | 0 ...op_nav_unsaved_changes_badge.test.tsx.snap | 0 ...get_top_nav_unsaved_changes_badge.test.tsx | 0 .../get_top_nav_unsaved_changes_badge.tsx | 0 .../kbn-unsaved-changes-badge/tsconfig.json | 2 +- .../kbn-unsaved-changes-badge/types.ts | 0 .../shared}/deeplinks/analytics/README.md | 0 .../shared}/deeplinks/analytics/constants.ts | 0 .../shared}/deeplinks/analytics/deep_links.ts | 0 .../shared}/deeplinks/analytics/index.ts | 0 .../shared/deeplinks/analytics/jest.config.js | 14 ++ .../shared}/deeplinks/analytics/kibana.jsonc | 0 .../shared}/deeplinks/analytics/package.json | 0 .../shared}/deeplinks/analytics/tsconfig.json | 2 +- .../kbn-content-management-utils/README.md | 0 .../kbn-content-management-utils/index.ts | 0 .../jest.config.js | 14 ++ .../kbn-content-management-utils/kibana.jsonc | 0 .../kbn-content-management-utils/package.json | 0 .../src/msearch.ts | 0 .../src/saved_object_content_storage.test.ts | 0 .../src/saved_object_content_storage.ts | 0 .../src/schema.ts | 0 .../kbn-content-management-utils/src/types.ts | 0 .../kbn-content-management-utils/src/utils.ts | 0 .../tsconfig.json | 2 +- .../shared}/kbn-data-view-utils/README.md | 0 .../shared}/kbn-data-view-utils/index.ts | 0 .../shared/kbn-data-view-utils/jest.config.js | 14 ++ .../shared}/kbn-data-view-utils/kibana.jsonc | 0 .../shared}/kbn-data-view-utils/package.json | 0 .../kbn-data-view-utils/src/constants.ts | 0 .../convert_to_data_view_field_spec.test.ts | 0 .../utils/convert_to_data_view_field_spec.ts | 0 .../utils/create_regexp_pattern_from.test.ts | 0 .../src/utils/create_regexp_pattern_from.ts | 0 .../test_pattern_against_allowed_list.test.ts | 0 .../test_pattern_against_allowed_list.ts | 0 .../shared}/kbn-data-view-utils/tsconfig.json | 2 +- .../packages/shared}/kbn-datemath/.npmignore | 0 .../packages/shared}/kbn-datemath/BUILD.bazel | 0 .../packages/shared}/kbn-datemath/README.md | 0 .../shared}/kbn-datemath/index.test.js | 0 .../packages/shared}/kbn-datemath/index.ts | 0 .../shared}/kbn-datemath/jest.config.js | 4 +- .../shared}/kbn-datemath/kibana.jsonc | 0 .../shared}/kbn-datemath/package.json | 0 .../shared}/kbn-datemath/tsconfig.json | 2 +- .../shared}/kbn-discover-utils/README.md | 0 .../shared}/kbn-discover-utils/index.ts | 0 .../shared/kbn-discover-utils/jest.config.js | 14 ++ .../shared}/kbn-discover-utils/kibana.jsonc | 0 .../shared}/kbn-discover-utils/package.json | 0 .../src/__mocks__/additional_field_groups.ts | 0 .../src/__mocks__/data_view.ts | 0 .../src/__mocks__/es_hits.ts | 0 .../kbn-discover-utils/src/__mocks__/index.ts | 0 .../src/__mocks__/logs_context_service.ts | 0 .../app_menu_registry.test.ts.snap | 0 .../app_menu/app_menu_registry.test.ts | 0 .../components/app_menu/app_menu_registry.ts | 0 .../src/components/app_menu/types.ts | 0 .../degraded_docs_control.tsx | 0 .../custom_control_columns/index.ts | 0 .../stacktrace_control.tsx | 0 .../custom_control_columns/types.ts | 0 .../kbn-discover-utils/src/constants.ts | 0 .../src/data_types/index.ts | 0 .../src/data_types/logs/components/index.tsx | 0 .../logs/components/log_level_badge.test.tsx | 0 .../logs/components/log_level_badge.tsx | 0 .../src/data_types/logs/constants.ts | 0 .../src/data_types/logs/index.ts | 0 .../data_types/logs/logs_context_service.ts | 0 .../src/data_types/logs/types.ts | 0 .../utils/get_available_resource_fields.ts | 0 .../get_log_level_coalesed_value.test.ts | 0 .../utils/get_log_level_coalesed_value.ts | 0 .../logs/utils/get_log_level_color.test.ts | 0 .../logs/utils/get_log_level_color.ts | 0 .../src/data_types/logs/utils/index.ts | 0 .../kbn-discover-utils/src/field_constants.ts | 0 .../kbn-discover-utils/src/hooks/index.ts | 0 .../src/hooks/use_pager.test.tsx | 0 .../kbn-discover-utils/src/hooks/use_pager.ts | 0 .../shared}/kbn-discover-utils/src/index.ts | 0 .../shared}/kbn-discover-utils/src/types.ts | 0 .../src/utils/build_data_record.test.ts | 0 .../src/utils/build_data_record.ts | 0 .../src/utils/calc_field_counts.test.ts | 0 .../src/utils/calc_field_counts.ts | 0 .../src/utils/dismiss_flyouts.ts | 0 .../src/utils/format_hit.test.ts | 0 .../src/utils/format_hit.ts | 0 .../src/utils/format_value.test.ts | 0 .../src/utils/format_value.ts | 0 .../src/utils/get_doc_id.test.ts | 0 .../src/utils/get_doc_id.ts | 0 .../src/utils/get_field_value.test.ts | 0 .../src/utils/get_field_value.ts | 0 .../src/utils/get_ignored_reason.test.ts | 0 .../src/utils/get_ignored_reason.ts | 0 .../src/utils/get_log_document_overview.ts | 0 .../utils/get_message_field_with_fallbacks.ts | 0 .../get_should_show_field_handler.test.ts | 0 .../utils/get_should_show_field_handler.ts | 0 .../src/utils/get_stack_trace_fields.ts | 0 .../src/utils/get_visible_columns.test.tsx | 0 .../src/utils/get_visible_columns.ts | 0 .../kbn-discover-utils/src/utils/index.ts | 0 .../src/utils/nested_fields.test.ts | 0 .../src/utils/nested_fields.ts | 0 .../shared}/kbn-discover-utils/tsconfig.json | 2 +- .../shared}/kbn-discover-utils/types.ts | 0 .../packages/shared}/kbn-es-query/BUILD.bazel | 0 .../packages/shared}/kbn-es-query/README.md | 0 .../packages/shared}/kbn-es-query/index.ts | 0 .../shared/kbn-es-query}/jest.config.js | 4 +- .../shared}/kbn-es-query/kibana.jsonc | 0 .../shared}/kbn-es-query/package.json | 0 .../__fixtures__/index_pattern_response.ts | 0 .../src/es_query/build_es_query.test.ts | 0 .../src/es_query/build_es_query.ts | 0 .../src/es_query/decorate_query.test.ts | 0 .../src/es_query/decorate_query.ts | 0 .../src/es_query/es_aggregate_query.test.ts | 0 .../src/es_query/es_aggregate_query.ts | 0 .../kbn-es-query/src/es_query/es_query_dsl.ts | 0 .../src/es_query/filter_matches_index.test.ts | 0 .../src/es_query/filter_matches_index.ts | 0 .../src/es_query/from_combined_filter.test.ts | 0 .../src/es_query/from_combined_filter.ts | 0 .../src/es_query/from_filters.test.ts | 0 .../kbn-es-query/src/es_query/from_filters.ts | 0 .../src/es_query/from_kuery.test.ts | 0 .../kbn-es-query/src/es_query/from_kuery.ts | 0 .../src/es_query/from_lucene.test.ts | 0 .../kbn-es-query/src/es_query/from_lucene.ts | 0 .../src/es_query/from_nested_filter.test.ts | 0 .../src/es_query/from_nested_filter.ts | 0 .../kbn-es-query/src/es_query/index.ts | 0 .../src/es_query/lucene_string_to_dsl.test.ts | 0 .../src/es_query/lucene_string_to_dsl.ts | 0 .../src/es_query/migrate_filter.test.ts | 0 .../src/es_query/migrate_filter.ts | 0 .../kbn-es-query/src/es_query/types.ts | 0 .../kbn-es-query/src/expressions/types.ts | 0 .../build_filters/build_empty_filter.ts | 0 .../build_filters/build_filter.test.ts | 0 .../filters/build_filters/build_filters.ts | 0 .../filters/build_filters/combined_filter.ts | 0 .../filters/build_filters/custom_filter.ts | 0 .../build_filters/exists_filter.test.ts | 0 .../filters/build_filters/exists_filter.ts | 0 .../get_converted_value_for_field.ts | 0 .../build_filters/get_filter_field.test.ts | 0 .../filters/build_filters/get_filter_field.ts | 0 .../build_filters/get_filter_params.test.ts | 0 .../build_filters/get_filter_params.ts | 0 .../src/filters/build_filters/index.ts | 0 .../filters/build_filters/match_all_filter.ts | 0 .../build_filters/phrase_filter.test.ts | 0 .../filters/build_filters/phrase_filter.ts | 0 .../build_filters/phrases_filter.test.ts | 0 .../filters/build_filters/phrases_filter.ts | 0 .../build_filters/query_string_filter.test.ts | 0 .../build_filters/query_string_filter.ts | 0 .../build_filters/range_filter.test.ts | 0 .../src/filters/build_filters/range_filter.ts | 0 .../src/filters/build_filters/types.ts | 0 .../filters/helpers/compare_filters.test.ts | 0 .../src/filters/helpers/compare_filters.ts | 0 .../helpers/convert_range_filter.test.ts | 0 .../filters/helpers/convert_range_filter.ts | 0 .../src/filters/helpers/dedup_filters.test.ts | 0 .../src/filters/helpers/dedup_filters.ts | 0 .../helpers/extract_time_filter.test.ts | 0 .../filters/helpers/extract_time_filter.ts | 0 .../kbn-es-query/src/filters/helpers/index.ts | 0 .../src/filters/helpers/meta_filter.ts | 0 .../src/filters/helpers/only_disabled.test.ts | 0 .../src/filters/helpers/only_disabled.ts | 0 .../kbn-es-query/src/filters/helpers/types.ts | 0 .../src/filters/helpers/uniq_filters.test.ts | 0 .../src/filters/helpers/uniq_filters.ts | 0 .../src/filters/helpers/update_filter.test.ts | 0 .../src/filters/helpers/update_filter.ts | 0 .../shared}/kbn-es-query/src/filters/index.ts | 0 .../src/filters/stubs/exists_filter.ts | 0 .../src/filters/stubs/fields.mocks.ts | 0 .../kbn-es-query/src/filters/stubs/index.ts | 0 .../src/filters/stubs/phrase_filter.ts | 0 .../src/filters/stubs/phrases_filter.ts | 0 .../src/filters/stubs/range_filter.ts | 0 .../kbn-es-query/src/kuery/ast/ast.test.ts | 0 .../shared}/kbn-es-query/src/kuery/ast/ast.ts | 0 .../kbn-es-query/src/kuery/ast/index.ts | 0 .../src/kuery/functions/and.test.ts | 0 .../kbn-es-query/src/kuery/functions/and.ts | 0 .../src/kuery/functions/exists.test.ts | 0 .../src/kuery/functions/exists.ts | 0 .../kbn-es-query/src/kuery/functions/index.ts | 0 .../src/kuery/functions/is.test.ts | 0 .../kbn-es-query/src/kuery/functions/is.ts | 0 .../src/kuery/functions/nested.test.ts | 0 .../src/kuery/functions/nested.ts | 0 .../src/kuery/functions/not.test.ts | 0 .../kbn-es-query/src/kuery/functions/not.ts | 0 .../src/kuery/functions/or.test.ts | 0 .../kbn-es-query/src/kuery/functions/or.ts | 0 .../src/kuery/functions/range.test.ts | 0 .../kbn-es-query/src/kuery/functions/range.ts | 0 .../kuery/functions/utils/get_fields.test.ts | 0 .../src/kuery/functions/utils/get_fields.ts | 0 .../utils/get_full_field_name_node.test.ts | 0 .../utils/get_full_field_name_node.ts | 0 .../src/kuery/grammar/grammar.peggy | 0 .../kuery/grammar/grammar.peggy.config.json | 0 .../kbn-es-query/src/kuery/grammar/index.ts | 0 .../shared}/kbn-es-query/src/kuery/index.ts | 0 .../src/kuery/kuery_syntax_error.test.ts | 0 .../src/kuery/kuery_syntax_error.ts | 0 .../src/kuery/node_types/function.test.ts | 0 .../src/kuery/node_types/function.ts | 0 .../src/kuery/node_types/index.ts | 0 .../src/kuery/node_types/literal.test.ts | 0 .../src/kuery/node_types/literal.ts | 0 .../src/kuery/node_types/node_builder.test.ts | 0 .../src/kuery/node_types/node_builder.ts | 0 .../src/kuery/node_types/wildcard.test.ts | 0 .../src/kuery/node_types/wildcard.ts | 0 .../shared}/kbn-es-query/src/kuery/types.ts | 0 .../src/kuery/utils/escape_kuery.test.ts | 0 .../src/kuery/utils/escape_kuery.ts | 0 .../src/kuery/utils/get_kql_fields.test.ts | 0 .../src/kuery/utils/get_kql_fields.ts | 0 .../kbn-es-query/src/kuery/utils/index.ts | 0 .../shared}/kbn-es-query/src/utils.test.ts | 0 .../shared}/kbn-es-query/src/utils.ts | 0 .../shared}/kbn-es-query/tsconfig.json | 2 +- .../shared}/kbn-field-types/README.md | 0 .../packages/shared}/kbn-field-types/index.ts | 0 .../shared/kbn-field-types}/jest.config.js | 4 +- .../shared}/kbn-field-types/kibana.jsonc | 0 .../shared}/kbn-field-types/package.json | 0 .../kbn-field-types/src/kbn_field_type.ts | 0 .../src/kbn_field_types.test.ts | 0 .../kbn-field-types/src/kbn_field_types.ts | 0 .../src/kbn_field_types_factory.ts | 0 .../shared}/kbn-field-types/src/types.ts | 0 .../shared}/kbn-field-types/tsconfig.json | 2 +- .../shared}/kbn-field-utils/README.md | 0 .../packages/shared}/kbn-field-utils/index.ts | 0 .../shared/kbn-field-utils}/jest.config.js | 4 +- .../shared}/kbn-field-utils/kibana.jsonc | 0 .../shared}/kbn-field-utils/package.json | 0 .../field_description.test.tsx | 0 .../field_description/field_description.tsx | 0 .../src/components/field_description/index.ts | 0 .../__snapshots__/field_icon.test.tsx.snap | 0 .../components/field_icon/field_icon.test.tsx | 0 .../src/components/field_icon/field_icon.tsx | 0 .../field_icon/get_field_icon_props.ts | 0 .../src/components/field_icon/index.tsx | 0 .../shared}/kbn-field-utils/src/types.ts | 0 .../field_name_wildcard_matcher.test.tsx | 0 .../src/utils/field_name_wildcard_matcher.ts | 0 .../utils/field_supports_breakdown.test.ts | 0 .../src/utils/field_supports_breakdown.ts | 0 .../kbn-field-utils/src/utils/field_types.ts | 0 .../src/utils/get_field_icon_type.test.ts | 0 .../src/utils/get_field_icon_type.ts | 0 .../src/utils/get_field_type.test.ts | 0 .../src/utils/get_field_type.ts | 0 .../utils/get_field_type_description.test.ts | 0 .../src/utils/get_field_type_description.ts | 0 .../src/utils/get_field_type_name.test.ts | 0 .../src/utils/get_field_type_name.ts | 0 .../utils/get_text_based_column_icon_type.ts | 0 .../shared}/kbn-field-utils/tsconfig.json | 2 +- .../packages/shared}/kbn-field-utils/types.ts | 0 .../shared}/kbn-react-field/README.md | 0 .../packages/shared}/kbn-react-field/index.ts | 0 .../shared/kbn-react-field}/jest.config.js | 4 +- .../shared}/kbn-react-field/kibana.jsonc | 0 .../shared}/kbn-react-field/package.json | 0 .../__snapshots__/field_button.test.tsx.snap | 0 .../src/field_button/field_button.scss | 0 .../src/field_button/field_button.test.tsx | 0 .../src/field_button/field_button.tsx | 0 .../kbn-react-field/src/field_button/index.ts | 0 .../__snapshots__/field_icon.test.tsx.snap | 0 .../src/field_icon/field_icon.test.tsx | 0 .../src/field_icon/field_icon.tsx | 0 .../kbn-react-field/src/field_icon/index.ts | 0 .../shared}/kbn-react-field/tsconfig.json | 2 +- .../shared}/kbn-resizable-layout/README.md | 0 .../shared}/kbn-resizable-layout/index.ts | 0 .../kbn-resizable-layout/jest.config.js | 14 ++ .../shared}/kbn-resizable-layout/kibana.jsonc | 0 .../shared}/kbn-resizable-layout/package.json | 0 .../src/panels_resizable.test.tsx | 0 .../src/panels_resizable.tsx | 0 .../src/panels_static.test.tsx | 0 .../src/panels_static.tsx | 0 .../src/resizable_layout.test.tsx | 0 .../src/resizable_layout.tsx | 0 .../kbn-resizable-layout/src/utils.test.ts | 0 .../shared}/kbn-resizable-layout/src/utils.ts | 0 .../kbn-resizable-layout/tsconfig.json | 2 +- .../shared}/kbn-resizable-layout/types.ts | 0 .../shared}/kbn-search-errors/BUILD.bazel | 0 .../shared}/kbn-search-errors/README.md | 0 .../shared}/kbn-search-errors/index.ts | 0 .../shared/kbn-search-errors/jest.config.js | 14 ++ .../shared}/kbn-search-errors/kibana.jsonc | 0 .../shared}/kbn-search-errors/package.json | 0 .../src/__snapshots__/es_error.test.tsx.snap | 0 .../painless_error.test.tsx.snap | 0 .../__snapshots__/tsdb_error.test.tsx.snap | 0 .../kbn-search-errors/src/create_es_error.ts | 0 .../kbn-search-errors/src/es_error.test.tsx | 0 .../kbn-search-errors/src/es_error.tsx | 0 .../src/painless_error.test.tsx | 0 .../kbn-search-errors/src/painless_error.tsx | 0 .../src/render_search_error.ts | 0 .../kbn-search-errors/src/tsdb_error.test.tsx | 0 .../kbn-search-errors/src/tsdb_error.tsx | 0 .../shared}/kbn-search-errors/src/types.ts | 0 .../shared}/kbn-search-errors/tsconfig.json | 2 +- .../kbn-search-response-warnings/README.md | 0 .../kbn-search-response-warnings/index.ts | 0 .../jest.config.js | 14 ++ .../kbn-search-response-warnings/kibana.jsonc | 0 .../kbn-search-response-warnings/package.json | 0 .../src/__mocks__/search_response_warnings.ts | 0 .../search_response_warnings/badge.tsx | 0 .../badge_popover_content.test.tsx | 0 .../badge_popover_content.tsx | 0 .../search_response_warnings/callout.tsx | 0 .../search_response_warnings/empty_prompt.tsx | 0 .../i18n_utils.test.ts | 0 .../search_response_warnings/i18n_utils.ts | 0 .../search_response_warnings/index.ts | 0 .../view_details_popover.test.tsx | 0 .../view_details_popover.tsx | 0 .../src/extract_warnings.test.ts | 0 .../src/extract_warnings.ts | 0 .../src/handle_warnings.test.ts | 0 .../src/handle_warnings.tsx | 0 ...ed_downsampled_aggregation_failure.test.ts | 0 ...pported_downsampled_aggregation_failure.ts | 0 .../kbn-search-response-warnings/src/types.ts | 0 .../tsconfig.json | 2 +- .../shared}/kbn-search-types/README.md | 0 .../shared}/kbn-search-types/index.ts | 0 .../shared/kbn-search-types/jest.config.js | 14 ++ .../shared}/kbn-search-types/kibana.jsonc | 0 .../shared}/kbn-search-types/package.json | 0 .../kbn-search-types/src/es_search_types.ts | 0 .../src/kibana_search_types.ts | 0 .../shared}/kbn-search-types/src/types.ts | 0 .../shared}/kbn-search-types/tsconfig.json | 2 +- .../shared}/kbn-unified-data-table/README.md | 0 .../__mocks__/config.ts | 0 .../__mocks__/data_view_complex.ts | 0 .../__mocks__/data_view_with_timefield.ts | 0 .../__mocks__/data_view_without_timefield.ts | 0 .../__mocks__/data_views.ts | 0 .../__mocks__/es_hits_complex.ts | 0 .../__mocks__/external_control_columns.tsx | 0 .../__mocks__/local_storage_mock.ts | 0 .../__mocks__/services.ts | 0 .../__mocks__/table_context.ts | 0 .../shared}/kbn-unified-data-table/index.ts | 0 .../kbn-unified-data-table/jest.config.js | 14 ++ .../kbn-unified-data-table/kibana.jsonc | 0 .../kbn-unified-data-table/package.json | 0 .../data_table_columns.test.tsx.snap | 0 .../src/components/actions/columns.test.ts | 0 .../src/components/actions/columns.ts | 0 .../build_copy_column_button.test.tsx | 0 .../components/build_copy_column_button.tsx | 0 .../build_edit_field_button.test.tsx | 0 .../components/build_edit_field_button.tsx | 0 .../column_header_truncate_container.tsx | 0 .../compare_documents.test.tsx | 0 .../compare_documents/compare_documents.tsx | 0 .../comparison_controls.test.tsx | 0 .../compare_documents/comparison_controls.tsx | 0 .../comparison_toolbar.test.tsx | 0 .../compare_documents/comparison_toolbar.tsx | 0 .../use_comparison_cell_value.test.tsx.snap | 0 .../use_comparison_css.test.ts.snap | 0 .../hooks/calculate_diff.test.ts | 0 .../compare_documents/hooks/calculate_diff.ts | 0 .../hooks/use_comparison_cell_value.test.tsx | 0 .../hooks/use_comparison_cell_value.tsx | 0 .../hooks/use_comparison_columns.test.tsx | 0 .../hooks/use_comparison_columns.tsx | 0 .../hooks/use_comparison_css.test.ts | 0 .../hooks/use_comparison_css.ts | 0 .../hooks/use_comparison_fields.test.ts | 0 .../hooks/use_comparison_fields.ts | 0 .../components/compare_documents/index.tsx | 0 .../src/components/compare_documents/types.ts | 0 ...et_additional_row_control_columns.test.tsx | 0 .../get_additional_row_control_columns.ts | 0 .../additional_row_control/index.ts | 0 .../row_control_column.test.tsx | 0 .../row_control_column.tsx | 0 .../row_menu_control_column.test.tsx | 0 .../row_menu_control_column.tsx | 0 .../color_indicator_control_column.test.tsx | 0 .../color_indicator_control_column.tsx | 0 .../color_indicator/index.ts | 0 .../custom_control_columns/index.ts | 0 .../render_custom_toolbar.test.tsx.snap | 0 .../custom_toolbar/render_custom_toolbar.scss | 0 .../render_custom_toolbar.test.tsx | 0 .../custom_toolbar/render_custom_toolbar.tsx | 0 .../src/components/data_table.scss | 0 .../src/components/data_table.test.tsx | 0 .../src/components/data_table.tsx | 0 ...table_additional_display_settings.test.tsx | 0 ...data_table_additional_display_settings.tsx | 0 .../src/components/data_table_cell_value.tsx | 0 .../data_table_column_header.test.tsx | 0 .../components/data_table_column_header.tsx | 0 .../components/data_table_columns.test.tsx | 0 .../src/components/data_table_columns.tsx | 0 .../data_table_copy_rows_as_json.tsx | 0 .../data_table_copy_rows_as_text.tsx | 0 .../data_table_document_selection.test.tsx | 0 .../data_table_document_selection.tsx | 0 .../data_table_expand_button.test.tsx | 0 .../components/data_table_expand_button.tsx | 0 .../src/components/data_table_footer.test.tsx | 0 .../src/components/data_table_footer.tsx | 0 .../src/components/data_table_schema.ts | 0 .../components/default_cell_actions.test.tsx | 0 .../src/components/default_cell_actions.tsx | 0 .../json_code_editor.test.tsx.snap | 0 .../json_code_editor/json_code_editor.scss | 0 .../json_code_editor.test.tsx | 0 .../json_code_editor/json_code_editor.tsx | 0 .../json_code_editor_common.tsx | 0 .../components/row_height_settings.test.tsx | 0 .../src/components/row_height_settings.tsx | 0 .../src/components/source_document.test.tsx | 0 .../src/components/source_document.tsx | 0 .../src/components/source_popover_content.tsx | 0 .../kbn-unified-data-table/src/constants.ts | 0 .../src/hooks/use_control_column.ts | 0 .../src/hooks/use_data_grid_columns.test.tsx | 0 .../src/hooks/use_data_grid_columns.ts | 0 .../src/hooks/use_data_grid_density.test.tsx | 0 .../src/hooks/use_data_grid_density.ts | 0 .../src/hooks/use_full_screen_watcher.test.ts | 0 .../src/hooks/use_full_screen_watcher.ts | 0 .../src/hooks/use_row_height.test.tsx | 0 .../src/hooks/use_row_height.ts | 0 .../src/hooks/use_row_heights_options.test.ts | 0 .../src/hooks/use_row_heights_options.ts | 0 .../src/hooks/use_selected_docs.test.ts | 0 .../src/hooks/use_selected_docs.ts | 0 .../src/hooks/use_sorting.ts | 0 .../src/table_context.tsx | 0 .../kbn-unified-data-table/src/types.ts | 0 .../src/utils/columns.test.ts | 0 .../src/utils/columns.ts | 0 .../utils/convert_value_to_string.test.tsx | 0 .../src/utils/convert_value_to_string.ts | 0 .../utils/copy_value_to_clipboard.test.tsx | 0 .../src/utils/copy_value_to_clipboard.ts | 0 .../src/utils/get_columns_meta.test.ts | 0 .../src/utils/get_columns_meta.ts | 0 .../src/utils/get_field_capabilities.test.ts | 0 .../src/utils/get_field_capabilities.ts | 0 .../utils/get_render_cell_popover.test.tsx | 0 .../src/utils/get_render_cell_popover.tsx | 0 .../src/utils/get_render_cell_value.test.tsx | 0 .../src/utils/get_render_cell_value.tsx | 0 .../src/utils/popularize_field.test.ts | 0 .../src/utils/popularize_field.ts | 0 .../src/utils/row_heights.ts | 0 .../src/utils/rows_per_page.test.ts | 0 .../src/utils/rows_per_page.ts | 0 .../src/utils/validate_row_height.ts | 0 .../kbn-unified-data-table/tsconfig.json | 2 +- .../shared}/kbn-unified-doc-viewer/README.md | 0 .../shared}/kbn-unified-doc-viewer/index.ts | 0 .../kbn-unified-doc-viewer/jest.config.js | 14 ++ .../kbn-unified-doc-viewer/kibana.jsonc | 0 .../kbn-unified-doc-viewer/package.json | 0 .../__snapshots__/doc_viewer.test.tsx.snap | 0 .../doc_viewer_render_tab.test.tsx.snap | 0 .../components/doc_viewer/doc_viewer.test.tsx | 0 .../src/components/doc_viewer/doc_viewer.tsx | 0 .../doc_viewer/doc_viewer_error.test.tsx | 0 .../doc_viewer/doc_viewer_error.tsx | 0 .../doc_viewer/doc_viewer_render_tab.test.tsx | 0 .../doc_viewer/doc_viewer_render_tab.tsx | 0 .../doc_viewer/doc_viewer_tab.test.tsx | 0 .../components/doc_viewer/doc_viewer_tab.tsx | 0 .../src/components/doc_viewer/index.ts | 0 .../__snapshots__/field_name.test.tsx.snap | 0 .../__stories__/field_name.stories.tsx | 0 .../src/components/field_name/field_name.scss | 0 .../components/field_name/field_name.test.tsx | 0 .../src/components/field_name/field_name.tsx | 0 .../src/components/field_name/index.ts | 0 .../src/components/index.ts | 0 .../kbn-unified-doc-viewer/src/index.ts | 0 .../src/services/doc_views_registry.test.tsx | 0 .../src/services/doc_views_registry.ts | 0 .../src/services/index.ts | 0 .../src/services/types.ts | 0 .../kbn-unified-doc-viewer/src/types.ts | 0 .../kbn-unified-doc-viewer/tsconfig.json | 2 +- .../shared}/kbn-unified-doc-viewer/types.ts | 0 .../shared}/kbn-unified-field-list/README.md | 0 .../__mocks__/services.mock.ts | 0 .../shared}/kbn-unified-field-list/index.ts | 0 .../kbn-unified-field-list/jest.config.js | 14 ++ .../kbn-unified-field-list/kibana.jsonc | 0 .../kbn-unified-field-list/package.json | 0 .../error_boundary/error_boundary.tsx | 0 .../src/components/error_boundary/index.tsx | 0 .../src/components/fallback_fields/index.tsx | 0 .../fallback_fields/smart_fields_tooltip.tsx | 0 .../field_item_button.test.tsx.snap | 0 .../field_item_button/field_item_button.scss | 0 .../field_item_button.test.tsx | 0 .../field_item_button/field_item_button.tsx | 0 .../components/field_item_button/index.tsx | 0 .../components/field_list/field_list.test.tsx | 0 .../src/components/field_list/field_list.tsx | 0 .../src/components/field_list/index.ts | 0 .../field_list_filters/field_list_filters.tsx | 0 .../field_name_search.test.tsx | 0 .../field_list_filters/field_name_search.tsx | 0 .../field_type_filter.test.tsx | 0 .../field_list_filters/field_type_filter.tsx | 0 .../components/field_list_filters/index.tsx | 0 .../field_list_grouped.scss | 0 .../field_list_grouped.test.tsx | 0 .../field_list_grouped/field_list_grouped.tsx | 0 .../field_list_grouped/fields_accordion.scss | 0 .../fields_accordion.test.tsx | 0 .../field_list_grouped/fields_accordion.tsx | 0 .../components/field_list_grouped/index.tsx | 0 .../no_fields_callout.test.tsx | 0 .../field_list_grouped/no_fields_callout.tsx | 0 .../field_popover/field_popover.scss | 0 .../field_popover/field_popover.test.tsx | 0 .../field_popover/field_popover.tsx | 0 .../field_popover/field_popover_footer.tsx | 0 .../field_popover_header.test.tsx | 0 .../field_popover/field_popover_header.tsx | 0 .../src/components/field_popover/index.tsx | 0 .../field_stats/field_number_summary.test.tsx | 0 .../field_stats/field_number_summary.tsx | 0 .../field_stats/field_stats.test.tsx | 0 .../components/field_stats/field_stats.tsx | 0 .../field_stats/field_summary_message.tsx | 0 .../field_stats/field_top_values.test.tsx | 0 .../field_stats/field_top_values.tsx | 0 .../field_stats/field_top_values_bucket.tsx | 0 .../src/components/field_stats/index.tsx | 0 .../field_visualize_button.test.tsx | 0 .../field_visualize_button.tsx | 0 .../field_visualize_button_inner.tsx | 0 .../field_visualize_button/index.tsx | 0 .../visualize_trigger_utils.test.ts | 0 .../visualize_trigger_utils.ts | 0 .../kbn-unified-field-list/src/constants.ts | 0 .../src/containers/services/state_service.ts | 0 .../field_list_item.test.tsx | 0 .../field_list_item.tsx | 0 .../field_list_item_stats.tsx | 0 .../unified_field_list_item/index.tsx | 0 .../field_list_sidebar.scss | 0 .../field_list_sidebar.tsx | 0 .../field_list_sidebar_container.tsx | 0 .../get_sidebar_visibility.test.tsx | 0 .../get_sidebar_visibility.ts | 0 .../group_fields.test.ts | 0 .../group_fields.tsx | 0 .../unified_field_list_sidebar/index.tsx | 0 .../sidebar_toggle_button/index.ts | 0 .../sidebar_toggle_button.tsx | 0 .../use_grouped_fields.test.tsx.snap | 0 .../src/hooks/use_existing_fields.test.tsx | 0 .../src/hooks/use_existing_fields.ts | 0 .../src/hooks/use_field_filters.test.tsx | 0 .../src/hooks/use_field_filters.ts | 0 .../src/hooks/use_grouped_fields.test.tsx | 0 .../src/hooks/use_grouped_fields.ts | 0 .../src/hooks/use_new_fields.test.tsx | 0 .../src/hooks/use_new_fields.ts | 0 .../src/hooks/use_query_subscriber.ts | 0 .../field_examples_calculator.test.ts | 0 .../field_examples_calculator.ts | 2 +- .../field_examples_calculator/index.ts | 0 .../field_existing_utils.test.ts | 0 .../field_existing/field_existing_utils.ts | 0 .../src/services/field_existing/index.ts | 0 .../field_existing/load_field_existing.ts | 0 .../field_stats_utils.test.ts.snap | 0 .../field_stats/field_stats_utils.test.ts | 0 .../services/field_stats/field_stats_utils.ts | 0 .../src/services/field_stats/index.tsx | 0 .../services/field_stats/load_field_stats.ts | 0 .../src/services/index.tsx | 0 .../kbn-unified-field-list/src/types.ts | 0 .../src/utils/can_provide_stats.test.ts | 0 .../src/utils/can_provide_stats.ts | 0 .../src/utils/fallback_fields.test.ts | 0 .../src/utils/fallback_fields.ts | 0 .../src/utils/get_resolved_date_range.ts | 0 .../kbn-unified-field-list/tsconfig.json | 2 +- .../shared}/data_view_editor/README.md | 0 .../shared/data_view_editor}/jest.config.js | 9 +- .../shared}/data_view_editor/kibana.jsonc | 0 .../public/components/_templates.scss | 0 .../public/components/_variables.scss | 0 .../advanced_params_content.tsx | 0 .../advanced_params_section.tsx | 0 .../advanced_params_content/index.ts | 0 .../edit_data_view_changed_modal.tsx | 0 .../public/components/data_view_editor.scss | 0 .../public/components/data_view_editor.tsx | 0 .../data_view_editor_flyout_content.tsx | 0 .../components/data_view_editor_lazy.tsx | 0 .../data_view_flyout_content_container.tsx | 0 .../components/flyout_panels/flyout_panel.tsx | 0 .../flyout_panels/flyout_panels.scss | 0 .../flyout_panels/flyout_panels.tsx | 0 .../flyout_panels/flyout_panels_content.tsx | 0 .../flyout_panels/flyout_panels_footer.tsx | 0 .../flyout_panels/flyout_panels_header.tsx | 0 .../public/components/flyout_panels/index.ts | 0 .../public/components/footer/footer.tsx | 0 .../public/components/footer/index.ts | 0 .../public/components/form_fields/index.ts | 0 .../components/form_fields/name_field.tsx | 0 .../form_fields/timestamp_field.test.ts | 0 .../form_fields/timestamp_field.tsx | 0 .../form_fields/title_docs_popover.test.tsx | 0 .../form_fields/title_docs_popover.tsx | 0 .../components/form_fields/title_field.tsx | 0 .../components/form_fields/type_field.tsx | 0 .../public/components/form_schema.test.ts | 0 .../public/components/form_schema.ts | 0 .../public/components/index.ts | 0 .../loading_indices.test.tsx.snap | 0 .../components/loading_indices/index.ts | 0 .../loading_indices/loading_indices.test.tsx | 0 .../loading_indices/loading_indices.tsx | 0 .../public/components/preview_panel/index.ts | 0 .../__snapshots__/indices_list.test.tsx.snap | 0 .../preview_panel/indices_list/index.ts | 0 .../indices_list/indices_list.test.tsx | 0 .../indices_list/indices_list.tsx | 0 .../preview_panel/preview_panel.test.tsx | 0 .../preview_panel/preview_panel.tsx | 0 .../status_message.test.tsx.snap | 0 .../preview_panel/status_message/index.ts | 0 .../status_message/status_message.test.tsx | 0 .../status_message/status_message.tsx | 0 .../rollup_deprecated_warning/index.ts | 0 .../rollup_deprecated_warning.tsx | 0 .../data_view_editor/public/constants.ts | 0 .../public/data_view_editor_service.test.ts | 0 .../public/data_view_editor_service.ts | 0 .../public/data_view_editor_service_lazy.ts | 0 .../shared}/data_view_editor/public/index.ts | 0 .../public/lib/can_append_wildcard.test.ts | 0 .../public/lib/can_append_wildcard.ts | 0 .../public/lib/contains_illegal_characters.ts | 0 .../lib/contains_invalid_characters.test.ts | 0 .../public/lib/ensure_minimum_time.test.ts | 0 .../public/lib/ensure_minimum_time.ts | 0 .../public/lib/extract_time_fields.test.ts | 0 .../public/lib/extract_time_fields.ts | 0 .../public/lib/get_matched_indices.test.ts | 0 .../public/lib/get_matched_indices.ts | 0 .../data_view_editor/public/lib/index.ts | 0 .../public/lib/remove_spaces.test.ts | 0 .../public/lib/remove_spaces.ts | 0 .../shared}/data_view_editor/public/mocks.ts | 0 .../data_view_editor/public/open_editor.tsx | 0 .../data_view_editor/public/plugin.test.tsx | 0 .../data_view_editor/public/plugin.tsx | 0 .../data_view_editor/public/shared_imports.ts | 0 .../public/test_utils/helpers.ts | 0 .../public/test_utils/index.ts | 0 .../public/test_utils/mocks.ts | 0 .../public/test_utils/test_utils.ts | 0 .../shared}/data_view_editor/public/types.ts | 0 .../shared}/data_view_editor/tsconfig.json | 2 +- .../shared}/data_view_field_editor/README.md | 0 .../field_editor.helpers.ts | 0 .../client_integration/field_editor.test.tsx | 0 .../field_editor_flyout_content.helpers.ts | 0 .../field_editor_flyout_content.test.ts | 0 .../field_editor_flyout_preview.helpers.ts | 0 .../field_editor_flyout_preview.test.ts | 0 .../helpers/common_actions.ts | 0 .../helpers/http_requests.ts | 0 .../client_integration/helpers/index.ts | 0 .../client_integration/helpers/jest.mocks.tsx | 0 .../client_integration/helpers/mocks.ts | 0 .../helpers/setup_environment.tsx | 0 .../common/constants.ts | 0 .../data_view_field_editor/jest.config.js | 20 +++ .../data_view_field_editor/kibana.jsonc | 0 .../public/assets/icons/LICENSE.txt | 0 .../public/assets/icons/cv.png | Bin .../public/assets/icons/de.png | Bin .../public/assets/icons/go.png | Bin .../public/assets/icons/ne.png | Bin .../public/assets/icons/ni.png | Bin .../public/assets/icons/stop.png | Bin .../public/assets/icons/us.png | Bin .../confirm_modals/delete_field_modal.tsx | 0 .../public/components/confirm_modals/index.ts | 0 .../confirm_modals/modified_field_modal.tsx | 0 .../save_field_type_or_name_changed_modal.tsx | 0 .../components/delete_field_provider.tsx | 0 .../advanced_parameters_section.tsx | 0 .../field_editor/composite_editor.tsx | 0 .../components/field_editor/constants.ts | 0 .../components/field_editor/field_detail.tsx | 0 .../components/field_editor/field_editor.tsx | 0 .../form_fields/custom_description_field.tsx | 0 .../form_fields/custom_label_field.tsx | 0 .../field_editor/form_fields/format_field.tsx | 0 .../field_editor/form_fields/index.ts | 0 .../form_fields/popularity_field.tsx | 0 .../field_editor/form_fields/script_field.tsx | 0 .../field_editor/form_fields/type_field.tsx | 0 .../components/field_editor/form_row.tsx | 0 .../components/field_editor/form_schema.ts | 0 .../public/components/field_editor/index.ts | 0 .../components/field_editor/lib.test.ts | 0 .../public/components/field_editor/lib.ts | 0 .../field_editor/shadowing_field_warning.tsx | 0 .../public/components/field_editor/types.ts | 0 .../components/field_editor_context.tsx | 0 .../field_editor_flyout_content.tsx | 0 .../field_editor_flyout_content_container.tsx | 0 .../public/components/field_editor_loader.tsx | 0 .../__snapshots__/format_editor.test.tsx.snap | 0 .../bytes/__snapshots__/bytes.test.tsx.snap | 0 .../editors/bytes/bytes.test.tsx | 0 .../editors/bytes/bytes.ts | 0 .../editors/bytes/constants.ts | 0 .../editors/bytes/index.ts | 0 .../color/__snapshots__/color.test.tsx.snap | 0 .../editors/color/color.test.tsx | 0 .../editors/color/color.tsx | 0 .../editors/color/constants.ts | 0 .../editors/color/index.ts | 0 .../date/__snapshots__/date.test.tsx.snap | 0 .../editors/date/constants.ts | 0 .../editors/date/date.test.tsx | 0 .../field_format_editor/editors/date/date.tsx | 0 .../field_format_editor/editors/date/index.ts | 0 .../__snapshots__/date_nanos.test.tsx.snap | 0 .../editors/date_nanos/constants.ts | 0 .../editors/date_nanos/date_nanos.test.tsx | 0 .../editors/date_nanos/date_nanos.tsx | 0 .../editors/date_nanos/index.ts | 0 .../__snapshots__/default.test.tsx.snap | 0 .../editors/default/constants.ts | 0 .../editors/default/default.test.tsx | 0 .../editors/default/default.tsx | 0 .../editors/default/index.ts | 0 .../__snapshots__/duration.test.tsx.snap | 0 .../editors/duration/constants.ts | 0 .../editors/duration/duration.test.tsx | 0 .../editors/duration/duration.tsx | 0 .../editors/duration/index.tsx | 0 .../editors/geo_point/constants.ts | 0 .../editors/geo_point/geo_point.tsx | 0 .../editors/geo_point/index.ts | 0 .../__snapshots__/histogram.test.tsx.snap | 0 .../editors/histogram/constants.ts | 0 .../editors/histogram/histogram.test.tsx | 0 .../editors/histogram/histogram.tsx | 0 .../editors/histogram/index.ts | 0 .../field_format_editor/editors/index.ts | 0 .../number/__snapshots__/number.test.tsx.snap | 0 .../editors/number/constants.ts | 0 .../editors/number/index.ts | 0 .../editors/number/number.test.tsx | 0 .../editors/number/number.tsx | 0 .../__snapshots__/percent.test.tsx.snap | 0 .../editors/percent/constants.ts | 0 .../editors/percent/index.ts | 0 .../editors/percent/percent.test.tsx | 0 .../editors/percent/percent.tsx | 0 .../__snapshots__/static_lookup.test.tsx.snap | 0 .../editors/static_lookup/constants.ts | 0 .../editors/static_lookup/index.ts | 0 .../static_lookup/static_lookup.test.tsx | 0 .../editors/static_lookup/static_lookup.tsx | 0 .../string/__snapshots__/string.test.tsx.snap | 0 .../editors/string/constants.ts | 0 .../editors/string/index.ts | 0 .../editors/string/string.test.tsx | 0 .../editors/string/string.tsx | 0 .../__snapshots__/truncate.test.tsx.snap | 0 .../editors/truncate/constants.ts | 0 .../editors/truncate/index.ts | 0 .../editors/truncate/sample.ts | 0 .../editors/truncate/truncate.test.tsx | 0 .../editors/truncate/truncate.tsx | 0 .../field_format_editor/editors/types.ts | 0 .../url/__snapshots__/url.test.tsx.snap | 0 .../editors/url/constants.ts | 0 .../field_format_editor/editors/url/index.ts | 0 .../editors/url/url.test.tsx | 0 .../field_format_editor/editors/url/url.tsx | 0 .../field_format_editor.tsx | 0 .../format_editor.test.tsx | 0 .../field_format_editor/format_editor.tsx | 0 .../components/field_format_editor/index.ts | 0 .../__snapshots__/samples.test.tsx.snap | 0 .../field_format_editor/samples/index.ts | 0 .../field_format_editor/samples/samples.scss | 0 .../samples/samples.test.tsx | 0 .../field_format_editor/samples/samples.tsx | 0 .../components/field_format_editor/types.ts | 0 .../components/flyout_panels/flyout_panel.tsx | 0 .../flyout_panels/flyout_panels.scss | 0 .../flyout_panels/flyout_panels.tsx | 0 .../flyout_panels/flyout_panels_content.tsx | 0 .../flyout_panels/flyout_panels_footer.tsx | 0 .../flyout_panels/flyout_panels_header.tsx | 0 .../public/components/flyout_panels/index.ts | 0 .../public/components/index.ts | 0 .../preview/documents_nav_preview.tsx | 0 .../preview/field_list/field_list.scss | 0 .../preview/field_list/field_list.tsx | 0 .../preview/field_list/field_list_item.tsx | 0 .../components/preview/field_preview.scss | 0 .../components/preview/field_preview.tsx | 0 .../preview/field_preview_context.tsx | 0 .../preview/field_preview_empty_prompt.tsx | 0 .../preview/field_preview_error.tsx | 0 .../preview/field_preview_header.tsx | 0 .../preview/image_preview_modal.tsx | 0 .../public/components/preview/index.ts | 0 .../preview/is_updating_indicator.tsx | 0 .../components/preview/preview_controller.tsx | 0 .../public/components/preview/types.ts | 0 .../public/components/utils.ts | 0 .../public/constants.ts | 0 .../data_view_field_editor/public/index.ts | 0 .../data_view_field_editor/public/lib/api.ts | 0 .../public/lib/documentation.ts | 0 .../public/lib/index.ts | 0 .../public/lib/remove_fields.ts | 0 .../public/lib/runtime_field_validation.ts | 0 .../public/lib/serialization.ts | 0 .../data_view_field_editor/public/mocks.ts | 0 .../public/open_delete_modal.tsx | 0 .../public/open_editor.tsx | 0 .../public/plugin.test.tsx | 0 .../data_view_field_editor/public/plugin.ts | 0 .../field_format_editors.ts | 0 .../service/field_format_editors/index.ts | 0 .../public/service/format_editor_service.ts | 0 .../public/service/index.ts | 0 .../public/shared_imports.ts | 0 .../public/state_utils.ts | 0 .../data_view_field_editor/public/types.ts | 0 .../data_view_field_editor/server/index.ts | 0 .../data_view_field_editor/server/plugin.ts | 0 .../server/routes/field_preview.ts | 0 .../server/routes/index.ts | 0 .../server/shared_imports.ts | 0 .../data_view_field_editor/server/types.ts | 0 .../data_view_field_editor/tsconfig.json | 4 +- .../data_view_management/jest.config.js | 20 +++ .../shared}/data_view_management/kibana.jsonc | 0 .../public/_templates.scss | 0 .../public/_variables.scss | 0 .../__snapshots__/utils.test.ts.snap | 0 .../public/components/add_data_prompt.tsx | 0 .../public/components/breadcrumbs.ts | 0 .../edit_index_pattern/constants.ts | 0 .../create_edit_field/create_edit_field.tsx | 0 .../create_edit_field_container.tsx | 0 .../create_edit_field/index.ts | 0 .../edit_index_pattern/edit_index_pattern.tsx | 0 .../edit_index_pattern_container.tsx | 0 .../edit_index_pattern_state_container.ts | 0 .../components/edit_index_pattern/index.tsx | 0 .../edit_index_pattern/index_header/index.ts | 0 .../index_header/index_header.tsx | 0 .../indexed_fields_table.test.tsx.snap | 0 .../table/__snapshots__/table.test.tsx.snap | 0 .../components/table/index.ts | 0 .../components/table/table.test.tsx | 0 .../components/table/table.tsx | 0 .../indexed_fields_table/index.ts | 0 .../indexed_fields_table.test.tsx | 0 .../indexed_fields_table.tsx | 0 .../indexed_fields_table/types.ts | 0 .../relationships_table/i18n.ts | 0 .../relationships_table/index.ts | 0 .../relationships_table.tsx | 0 .../edit_index_pattern/remove_data_view.tsx | 0 .../scripted_field_table.test.tsx.snap | 0 .../__snapshots__/call_outs.test.tsx.snap | 0 .../components/call_outs/call_outs.test.tsx | 0 .../components/call_outs/call_outs.tsx | 0 .../components/call_outs/index.ts | 0 .../confirmation_modal.test.tsx.snap | 0 .../confirmation_modal.test.tsx | 0 .../confirmation_modal/confirmation_modal.tsx | 0 .../components/confirmation_modal/index.ts | 0 .../header/__snapshots__/header.test.tsx.snap | 0 .../components/header/header.test.tsx | 0 .../components/header/header.tsx | 0 .../components/header/index.ts | 0 .../scripted_fields_table/components/index.ts | 0 .../table/__snapshots__/table.test.tsx.snap | 0 .../components/table/index.ts | 0 .../components/table/table.test.tsx | 0 .../components/table/table.tsx | 0 .../scripted_fields_table/index.ts | 0 .../scripted_field_table.test.tsx | 0 .../scripted_fields_table.tsx | 0 .../scripted_fields_table/types.ts | 0 .../source_filters_table.test.tsx.snap | 0 .../__snapshots__/add_filter.test.tsx.snap | 0 .../components/add_filter/add_filter.test.tsx | 0 .../components/add_filter/add_filter.tsx | 0 .../components/add_filter/index.ts | 0 .../confirmation_modal.test.tsx.snap | 0 .../confirmation_modal.test.tsx | 0 .../confirmation_modal/confirmation_modal.tsx | 0 .../components/confirmation_modal/index.ts | 0 .../header/__snapshots__/header.test.tsx.snap | 0 .../components/header/header.test.tsx | 0 .../components/header/header.tsx | 0 .../components/header/index.ts | 0 .../source_filters_table/components/index.ts | 0 .../table/__snapshots__/table.test.tsx.snap | 0 .../components/table/index.ts | 0 .../components/table/table.test.tsx | 0 .../components/table/table.tsx | 0 .../source_filters_table/index.ts | 0 .../source_filters_table.test.tsx | 0 .../source_filters_table.tsx | 0 .../source_filters_table/types.ts | 0 .../edit_index_pattern/tabs/index.ts | 0 .../edit_index_pattern/tabs/tabs.tsx | 0 .../edit_index_pattern/tabs/utils.test.ts | 0 .../edit_index_pattern/tabs/utils.ts | 0 .../empty_index_list_prompt.test.tsx.snap | 0 .../empty_index_list_prompt.scss | 0 .../empty_index_list_prompt.test.tsx | 0 .../empty_index_list_prompt.tsx | 0 .../empty_index_list_prompt/index.ts | 0 .../__snapshots__/field_editor.test.tsx.snap | 0 .../field_format_editor.test.tsx.snap | 0 .../field_format_editor.test.tsx | 0 .../field_format_editor.tsx | 0 .../components/field_format_editor/index.ts | 0 .../disabled_call_out.test.tsx.snap | 0 .../warning_call_out.test.tsx.snap | 0 .../disabled_call_out.test.tsx | 0 .../scripting_call_outs/disabled_call_out.tsx | 0 .../components/scripting_call_outs/index.ts | 0 .../warning_call_out.test.tsx | 0 .../scripting_call_outs/warning_call_out.tsx | 0 .../__snapshots__/help_flyout.test.tsx.snap | 0 .../scripting_help/help_flyout.test.tsx | 0 .../components/scripting_help/help_flyout.tsx | 0 .../components/scripting_help/index.ts | 0 .../scripting_help/scripting_syntax.tsx | 0 .../components/scripting_help/test_script.tsx | 0 .../field_editor/constants/index.ts | 0 .../field_editor/field_editor.test.tsx | 0 .../components/field_editor/field_editor.tsx | 0 .../public/components/field_editor/index.ts | 0 .../components/field_editor/lib/index.ts | 0 .../field_editor/lib/validate_script.ts | 0 .../public/components/field_editor/types.ts | 0 .../public/components/index.ts | 0 .../delete_modal_msg.test.tsx.snap | 0 .../data_view_table_controller.ts | 0 .../delete_modal_msg.test.tsx | 0 .../index_pattern_table/delete_modal_msg.tsx | 0 .../components/index_pattern_table/index.ts | 0 .../index_pattern_table.tsx | 0 .../index_pattern_table/no_data.tsx | 0 .../index_pattern_table/spaces_list.tsx | 0 .../public/components/state_helpers.ts | 0 .../public/components/test_utils.tsx | 0 .../public/components/types.ts | 0 .../public/components/utils.test.ts | 0 .../public/components/utils.ts | 0 .../data_view_management/public/constants.ts | 0 .../data_view_management/public/index.ts | 0 .../data_view_management_service.ts | 0 .../data_view_mgmt_selectors.ts | 0 .../public/management_app/index.tsx | 0 .../mount_management_section.tsx | 0 .../public/management_app/state_utils.ts | 0 .../data_view_management/public/mocks.ts | 0 .../data_view_management/public/plugin.ts | 0 .../public/scripting_languages/index.ts | 0 .../data_view_management/public/types.ts | 0 .../data_view_management/server/index.ts | 0 .../data_view_management/server/plugin.ts | 0 .../server/routes/index.ts | 0 .../routes/preview_scripted_field.test.ts | 0 .../server/routes/preview_scripted_field.ts | 0 .../server/routes/resolve_index.test.ts | 0 .../server/routes/resolve_index.ts | 0 .../data_view_management/tsconfig.json | 2 +- .../plugins/shared}/data_views/README.mdx | 0 .../shared}/data_views/common/constants.ts | 0 .../common/content_management/index.ts | 0 .../common/content_management/v1/constants.ts | 0 .../common/content_management/v1/index.ts | 0 .../common/content_management/v1/types.ts | 0 .../data_views/common/data_view.stub.ts | 0 .../__snapshots__/data_view.test.ts.snap | 0 .../__snapshots__/data_view_lazy.test.ts.snap | 0 .../__snapshots__/data_views.test.ts.snap | 0 .../common/data_views/abstract_data_views.ts | 0 .../common/data_views/data_view.stub.ts | 0 .../common/data_views/data_view.test.ts | 0 .../data_views/common/data_views/data_view.ts | 0 .../common/data_views/data_view_lazy.stub.ts | 0 .../common/data_views/data_view_lazy.test.ts | 0 .../common/data_views/data_view_lazy.ts | 0 .../common/data_views/data_view_lazy_util.ts | 0 .../common/data_views/data_views.test.ts | 0 .../common/data_views/data_views.ts | 0 .../common/data_views/flatten_hit.test.ts | 0 .../common/data_views/flatten_hit.ts | 0 .../data_views/common/data_views/index.ts | 0 .../data_views/meta_units_to_formatter.ts | 0 .../data_views/persistable_state.test.ts | 0 .../common/data_views/persistable_state.ts | 0 .../data_views/common/data_views/utils.ts | 0 .../errors/data_view_saved_object_conflict.ts | 0 .../common/errors/duplicate_index_pattern.ts | 0 .../shared}/data_views/common/errors/index.ts | 0 .../common/errors/insufficient_access.ts | 0 .../data_views/common/expressions/index.ts | 0 .../common/expressions/load_index_pattern.ts | 0 .../shared}/data_views/common/field.stub.ts | 0 .../data_view_field.test.ts.snap | 0 .../common/fields/data_view_field.test.ts | 0 .../common/fields/data_view_field.ts | 0 .../data_views/common/fields/field_list.ts | 0 .../data_views/common/fields/fields.mocks.ts | 0 .../shared}/data_views/common/fields/index.ts | 0 .../data_views/common/fields/utils.test.ts | 0 .../shared}/data_views/common/fields/utils.ts | 0 .../shared}/data_views/common/index.ts | 0 .../shared}/data_views/common/lib/errors.ts | 0 .../shared}/data_views/common/lib/index.ts | 0 .../shared}/data_views/common/lib/types.ts | 0 .../common/lib/validate_data_view.test.ts | 0 .../common/lib/validate_data_view.ts | 0 .../common/lib/validate_index_pattern.test.ts | 0 .../common/lib/validate_index_pattern.ts | 0 .../shared}/data_views/common/mocks.ts | 0 .../shared}/data_views/common/stubs.ts | 0 .../shared}/data_views/common/types.ts | 0 .../shared}/data_views/common/utils.test.ts | 0 .../shared}/data_views/common/utils.ts | 0 .../shared}/data_views/docs/openapi/README.md | 0 .../data_views/docs/openapi/bundled.json | 0 .../data_views/docs/openapi/bundled.yaml | 0 .../examples/create_data_view_request.yaml | 0 .../examples/create_data_view_response.yaml | 0 .../create_runtime_field_request.yaml | 0 .../create_runtime_field_response.yaml | 0 .../examples/get_data_view_response.yaml | 0 .../examples/get_data_views_response.yaml | 0 .../get_default_data_view_response.yaml | 0 .../examples/get_runtime_field_response.yaml | 0 .../preview_swap_data_view_request.yaml | 0 .../set_default_data_view_request.yaml | 0 .../examples/swap_data_view_request.yaml | 0 .../examples/swap_data_view_response.yaml | 0 .../examples/update_data_view_request.yaml | 0 .../update_field_metadata_request.yaml | 0 .../update_runtime_field_request.yaml | 0 .../openapi/components/headers/kbn_xsrf.yaml | 0 .../components/parameters/field_name.yaml | 0 .../components/parameters/space_id.yaml | 0 .../components/parameters/view_id.yaml | 0 .../components/schemas/400_response.yaml | 0 .../components/schemas/404_response.yaml | 0 .../components/schemas/allownoindex.yaml | 0 .../create_data_view_request_object.yaml | 0 .../schemas/data_view_response_object.yaml | 0 .../components/schemas/fieldattrs.yaml | 0 .../components/schemas/fieldformats.yaml | 0 .../components/schemas/namespaces.yaml | 0 .../components/schemas/runtimefieldmap.yaml | 0 .../components/schemas/sourcefilters.yaml | 0 .../swap_data_view_request_object.yaml | 0 .../components/schemas/timefieldname.yaml | 0 .../openapi/components/schemas/title.yaml | 0 .../docs/openapi/components/schemas/type.yaml | 0 .../openapi/components/schemas/typemeta.yaml | 0 .../components/schemas/typemeta_response.yaml | 0 .../update_data_view_request_object.yaml | 0 .../data_views/docs/openapi/entrypoint.yaml | 0 .../docs/openapi/paths/api@data_views.yaml | 0 .../paths/api@data_views@data_view.yaml | 0 .../api@data_views@data_view@{viewid}.yaml | 0 ...@data_views@data_view@{viewid}@fields.yaml | 0 ...iews@data_view@{viewid}@runtime_field.yaml | 0 ...ew@{viewid}@runtime_field@{fieldname}.yaml | 0 .../openapi/paths/api@data_views@default.yaml | 0 .../paths/api@data_views@swap_references.yaml | 0 ...i@data_views@swap_references@_preview.yaml | 0 .../paths/s@{spaceid}@api@data_views.yaml | 0 .../s@{spaceid}@api@data_views@data_view.yaml | 0 ...id}@api@data_views@data_view@{viewid}.yaml | 0 ...@data_views@data_view@{viewid}@fields.yaml | 0 ...iews@data_view@{viewid}@runtime_field.yaml | 0 ...ew@{viewid}@runtime_field@{fieldname}.yaml | 0 .../s@{spaceid}@api@data_views@default.yaml | 0 ...aceid}@api@data_views@swap_references.yaml | 0 ...i@data_views@swap_references@_preview.yaml | 0 .../plugins/shared/data_views}/jest.config.js | 8 +- .../plugins/shared}/data_views/kibana.jsonc | 0 .../public/content_management_wrapper.test.ts | 0 .../public/content_management_wrapper.ts | 0 .../public/data_views/data_view.stub.ts | 0 .../data_views_api_client.test.mock.ts | 0 .../data_views/data_views_api_client.test.ts | 0 .../data_views/data_views_api_client.ts | 0 .../data_views/public/data_views/index.ts | 0 .../public/data_views/sha256.test.ts | 0 .../data_views/public/data_views/sha256.ts | 0 .../public/data_views_service_public.ts | 0 .../data_views/public/debounce_by_key.test.ts | 0 .../data_views/public/debounce_by_key.ts | 0 .../data_views/public/expressions/index.ts | 0 .../expressions/load_index_pattern.test.ts | 0 .../public/expressions/load_index_pattern.ts | 0 .../shared}/data_views/public/index.ts | 0 .../shared}/data_views/public/mocks.ts | 0 .../shared}/data_views/public/plugin.ts | 0 .../__snapshots__/get_indices.test.ts.snap | 0 .../public/services/get_indices.test.ts | 0 .../data_views/public/services/get_indices.ts | 0 .../public/services/has_data.test.ts | 0 .../data_views/public/services/has_data.ts | 0 .../data_views/public/services/index.ts | 0 .../shared}/data_views/public/types.ts | 0 .../data_views/public/ui_settings_wrapper.ts | 0 .../server/capabilities_provider.ts | 0 .../shared}/data_views/server/constants.ts | 0 .../content_management/data_views_storage.ts | 0 .../server/content_management/index.ts | 0 .../content_management/schema/cm_services.ts | 0 .../schema/v1/cm_services.ts | 0 .../server/data_views_service_factory.ts | 0 .../data_views/server/deprecations/index.ts | 0 .../deprecations/scripted_fields.test.ts | 0 .../server/deprecations/scripted_fields.ts | 0 .../shared}/data_views/server/error.ts | 0 .../data_views/server/expressions/index.ts | 0 .../expressions/load_index_pattern.test.ts | 0 .../server/expressions/load_index_pattern.ts | 0 .../data_views/server/fetcher/index.ts | 0 .../fetcher/index_not_found_exception.json | 0 .../fetcher/index_patterns_fetcher.test.ts | 0 .../server/fetcher/index_patterns_fetcher.ts | 0 .../data_views/server/fetcher/lib/errors.ts | 0 .../server/fetcher/lib/es_api.test.js | 0 .../data_views/server/fetcher/lib/es_api.ts | 0 .../__fixtures__/es_field_caps_response.json | 0 .../field_capabilities.test.js | 0 .../field_capabilities/field_capabilities.ts | 0 .../field_caps_response.test.js | 0 .../field_capabilities/field_caps_response.ts | 0 .../fetcher/lib/field_capabilities/index.ts | 0 .../lib/field_capabilities/overrides.ts | 0 .../should_read_field_from_doc_values.test.ts | 0 .../should_read_field_from_doc_values.ts | 0 .../data_views/server/fetcher/lib/index.ts | 0 .../fetcher/lib/jobs_compatibility.test.js | 0 .../server/fetcher/lib/jobs_compatibility.ts | 0 .../server/fetcher/lib/map_capabilities.ts | 0 .../lib/merge_capabilities_with_fields.ts | 0 .../server/has_user_data_view.test.ts | 0 .../data_views/server/has_user_data_view.ts | 0 .../shared}/data_views/server/index.ts | 0 .../server/index_patterns_api_client.ts | 0 .../shared}/data_views/server/mocks.ts | 0 .../shared}/data_views/server/plugin.ts | 0 ...ter_index_pattern_usage_collection.test.ts | 0 ...register_index_pattern_usage_collection.ts | 0 .../internal/existing_indices.test.ts | 0 .../internal/existing_indices.ts | 0 .../server/rest_api_routes/internal/fields.ts | 0 .../internal/fields_for.test.ts | 0 .../rest_api_routes/internal/fields_for.ts | 0 .../internal/has_data_views.test.ts | 0 .../internal/has_data_views.ts | 0 .../internal/has_es_data.test.ts | 0 .../rest_api_routes/internal/has_es_data.ts | 0 .../public/create_data_view.test.ts | 0 .../public/create_data_view.ts | 0 .../public/default_data_view.test.ts | 0 .../public/default_data_view.ts | 0 .../public/delete_data_view.test.ts | 0 .../public/delete_data_view.ts | 0 .../rest_api_routes/public/fields/index.ts | 0 .../public/fields/update_fields.test.ts | 0 .../public/fields/update_fields.ts | 0 .../public/get_data_view.test.ts | 0 .../rest_api_routes/public/get_data_view.ts | 0 .../public/get_data_views.test.ts | 0 .../rest_api_routes/public/get_data_views.ts | 0 .../public/has_user_data_view.test.ts | 0 .../public/has_user_data_view.ts | 0 .../server/rest_api_routes/public/index.ts | 0 .../response_formatter.test.ts.snap | 0 .../create_runtime_field.test.ts | 0 .../runtime_fields/create_runtime_field.ts | 0 .../delete_runtime_field.test.ts | 0 .../runtime_fields/delete_runtime_field.ts | 0 .../runtime_fields/get_runtime_field.test.ts | 0 .../runtime_fields/get_runtime_field.ts | 0 .../public/runtime_fields/index.ts | 0 .../runtime_fields/put_runtime_field.test.ts | 0 .../runtime_fields/put_runtime_field.ts | 0 .../runtime_fields/response_formatter.test.ts | 0 .../runtime_fields/response_formatter.ts | 0 .../update_runtime_field.test.ts | 0 .../runtime_fields/update_runtime_field.ts | 0 .../scripted_fields/create_scripted_field.ts | 0 .../scripted_fields/delete_scripted_field.ts | 0 .../scripted_fields/get_scripted_field.ts | 0 .../public/scripted_fields/index.ts | 0 .../scripted_fields/put_scripted_field.ts | 0 .../scripted_fields/update_scripted_field.ts | 0 .../rest_api_routes/public/swap_references.ts | 0 .../rest_api_routes/public/test_utils.ts | 0 .../public/update_data_view.test.ts | 0 .../public/update_data_view.ts | 0 .../public/util/handle_errors.ts | 0 .../server/rest_api_routes/route_types.ts | 0 .../server/rest_api_routes/schema.ts | 0 .../shared}/data_views/server/routes.ts | 0 .../server/saved_objects/data_views.ts | 0 .../data_views/server/saved_objects/index.ts | 0 .../index_pattern_migrations.test.ts | 0 .../saved_objects/index_pattern_migrations.ts | 0 .../saved_objects/migrations/to_v7_12_0.ts | 0 .../saved_objects_client_wrapper.test.ts | 0 .../server/saved_objects_client_wrapper.ts | 0 .../shared}/data_views/server/schemas.ts | 0 .../shared}/data_views/server/types.ts | 0 .../shared}/data_views/server/ui_settings.ts | 0 .../data_views/server/ui_settings_wrapper.ts | 0 .../shared}/data_views/server/utils.test.ts | 0 .../shared}/data_views/server/utils.ts | 0 .../plugins/shared}/data_views/tsconfig.json | 2 +- .../discover/.storybook/discover.webpack.ts | 0 .../shared}/discover/.storybook/main.ts | 0 .../plugins/shared}/discover/README.md | 6 +- .../discover/common/app_locator.test.ts | 0 .../shared}/discover/common/app_locator.ts | 0 .../shared}/discover/common/constants.ts | 0 .../discover/common/data_sources/index.ts | 0 .../discover/common/data_sources/types.ts | 0 .../common/data_sources/utils.test.ts | 0 .../discover/common/data_sources/utils.ts | 0 .../common/data_types/logs/constants.ts | 0 .../discover/common/embeddable/index.ts | 0 .../embeddable/search_inject_extract.test.ts | 0 .../embeddable/search_inject_extract.ts | 0 .../shared}/discover/common/esql_locator.ts | 0 .../plugins/shared}/discover/common/index.ts | 0 .../utils/sorting/get_default_sort.test.ts | 0 .../common/utils/sorting/get_default_sort.ts | 0 .../utils/sorting/get_es_query_sort.test.ts | 0 .../common/utils/sorting/get_es_query_sort.ts | 0 .../common/utils/sorting/get_sort.test.ts | 0 .../discover/common/utils/sorting/get_sort.ts | 0 .../get_sort_for_search_source.test.ts | 0 .../sorting/get_sort_for_search_source.ts | 0 .../discover/common/utils/sorting/index.ts | 0 .../plugins/shared/discover}/jest.config.js | 8 +- .../plugins/shared}/discover/kibana.jsonc | 0 .../discover/public/__fixtures__/real_hits.ts | 0 .../get_data_view_mock.tsx | 0 .../with_discover_services.tsx | 0 .../discover/public/__mocks__/config.ts | 0 .../public/__mocks__/data_view_complex.ts | 0 .../public/__mocks__/data_view_esql.ts | 0 .../__mocks__/data_view_no_timefield.ts | 0 .../__mocks__/data_view_with_timefield.ts | 0 .../discover/public/__mocks__/data_views.ts | 0 .../public/__mocks__/discover_state.mock.ts | 0 .../public/__mocks__/local_storage_mock.ts | 0 .../discover/public/__mocks__/saved_search.ts | 0 .../public/__mocks__/search_session.ts | 0 .../discover/public/__mocks__/services.ts | 0 .../public/__mocks__/start_contract.ts | 0 .../discover/public/__mocks__/ui_settings.ts | 0 .../public/__mocks__/url_tracker.mock.ts | 0 .../context/__mocks__/top_nav_menu.tsx | 0 .../__mocks__/use_context_app_fetch.tsx | 0 .../components/action_bar/_action_bar.scss | 0 .../components/action_bar/action_bar.test.tsx | 0 .../components/action_bar/action_bar.tsx | 0 .../action_bar/action_bar_warning.tsx | 0 .../context_error_message.test.tsx | 0 .../context_error_message.tsx | 0 .../components/context_error_message/index.ts | 0 .../application/context/context_app.scss | 2 +- .../application/context/context_app.test.tsx | 0 .../application/context/context_app.tsx | 0 .../context/context_app_content.test.tsx | 0 .../context/context_app_content.tsx | 0 .../application/context/context_app_route.tsx | 0 .../hooks/use_context_app_fetch.test.tsx | 0 .../context/hooks/use_context_app_fetch.tsx | 0 .../context/hooks/use_context_app_state.ts | 0 .../public/application/context/index.ts | 0 .../context.predecessors.test.ts.snap | 0 .../context.successors.test.ts.snap | 0 .../__snapshots__/context.test.ts.snap | 0 .../application/context/services/_stubs.ts | 0 .../context/services/anchor.test.ts | 0 .../application/context/services/anchor.ts | 0 .../application/context/services/constants.ts | 0 .../services/context.predecessors.test.ts | 0 .../services/context.successors.test.ts | 0 .../context/services/context.test.ts | 0 .../application/context/services/context.ts | 0 .../context/services/context_query_state.ts | 0 .../context/services/context_state.test.ts | 0 .../context/services/context_state.ts | 0 .../context/services/locator.test.ts | 0 .../application/context/services/locator.ts | 0 .../context/utils/date_conversion.test.ts | 0 .../context/utils/date_conversion.ts | 0 .../context/utils/fetch_hits_in_interval.ts | 0 .../context/utils/generate_intervals.ts | 0 .../utils/get_es_query_search_after.ts | 0 .../context/utils/replace_context_location.ts | 0 .../application/context/utils/sorting.test.ts | 0 .../application/context/utils/sorting.ts | 0 .../application/discover_router.test.tsx | 0 .../public/application/discover_router.tsx | 0 .../application/doc/components/doc.test.tsx | 0 .../public/application/doc/components/doc.tsx | 0 .../doc/components/single_doc_viewer.tsx | 0 .../discover/public/application/doc/index.ts | 0 .../public/application/doc/locator.test.ts | 0 .../public/application/doc/locator.ts | 0 .../application/doc/single_doc_route.tsx | 0 .../discover/public/application/index.tsx | 0 .../components/field_stats_table/constants.ts | 0 .../field_stats_table/field_stats_tab.tsx | 0 .../field_stats_table/field_stats_table.tsx | 0 .../components/field_stats_table/index.ts | 0 .../components/field_stats_table/types.ts | 0 .../layout/discover_documents.test.tsx | 0 .../components/layout/discover_documents.tsx | 0 .../layout/discover_histogram_layout.test.tsx | 0 .../layout/discover_histogram_layout.tsx | 0 .../components/layout/discover_layout.scss | 2 +- .../layout/discover_layout.test.tsx | 0 .../components/layout/discover_layout.tsx | 0 .../layout/discover_main_content.test.tsx | 0 .../layout/discover_main_content.tsx | 0 .../layout/discover_resizable_layout.test.tsx | 0 .../layout/discover_resizable_layout.tsx | 0 .../main/components/layout/index.ts | 0 .../selected_vs_available_callout.test.tsx | 0 .../layout/selected_vs_available_callout.tsx | 0 .../layout/use_discover_histogram.test.tsx | 0 .../layout/use_discover_histogram.ts | 0 .../layout/use_fetch_more_records.test.tsx | 0 .../layout/use_fetch_more_records.ts | 0 .../main/components/layout/utils.test.ts | 0 .../main/components/layout/utils.ts | 0 .../loading_spinner/loading_spinner.test.tsx | 0 .../loading_spinner/loading_spinner.tsx | 0 .../components/no_results/_no_results.scss | 0 .../main/components/no_results/index.ts | 0 .../components/no_results/no_results.test.tsx | 0 .../main/components/no_results/no_results.tsx | 0 .../assets/no_results_illustration.scss | 0 .../assets/no_results_illustration.tsx | 0 .../no_results_suggestions/index.ts | 0 .../no_results_suggestion_default.tsx | 0 .../no_results_suggestion_when_filters.tsx | 0 .../no_results_suggestion_when_query.tsx | 0 .../no_results_suggestion_when_time_range.tsx | 0 .../no_results_suggestions.tsx | 0 .../syntax_suggestions_popover.tsx | 0 .../use_fetch_occurances_range.ts | 0 .../components/pattern_analysis/constants.ts | 0 .../main/components/pattern_analysis/index.ts | 0 .../pattern_analysis/pattern_analysis_tab.tsx | 0 .../pattern_analysis_table.tsx | 0 .../discover_sidebar_responsive.test.tsx | 0 .../sidebar/discover_sidebar_responsive.tsx | 0 .../main/components/sidebar/index.ts | 0 .../components/sidebar/lib/get_field_list.ts | 0 .../sidebar/lib/sidebar_reducer.test.ts | 0 .../components/sidebar/lib/sidebar_reducer.ts | 0 .../components/skip_bottom_button/index.ts | 0 .../skip_bottom_button.scss | 0 .../skip_bottom_button.test.tsx | 0 .../skip_bottom_button/skip_bottom_button.tsx | 0 .../open_search_panel.test.tsx.snap | 0 .../convert_to_top_nav_item.test.ts | 0 .../convert_to_top_nav_item.ts | 0 .../app_menu_actions/get_alerts.test.tsx | 0 .../top_nav/app_menu_actions/get_alerts.tsx | 0 .../top_nav/app_menu_actions/get_inspect.tsx | 0 .../app_menu_actions/get_new_search.tsx | 0 .../app_menu_actions/get_open_search.tsx | 0 .../top_nav/app_menu_actions/get_share.tsx | 0 .../top_nav/app_menu_actions/index.ts | 0 .../run_app_menu_action.test.tsx | 0 .../app_menu_actions/run_app_menu_action.tsx | 0 .../top_nav/app_menu_actions/types.ts | 0 .../top_nav/discover_topnav.test.tsx | 0 .../components/top_nav/discover_topnav.tsx | 0 .../top_nav/discover_topnav_inline.test.tsx | 0 .../top_nav/discover_topnav_inline.tsx | 0 .../esql_dataview_transition_modal.tsx | 0 .../esql_dataview_transition/index.tsx | 0 .../top_nav/get_top_nav_badges.test.ts | 0 .../components/top_nav/get_top_nav_badges.tsx | 0 .../top_nav/on_save_search.test.tsx | 0 .../components/top_nav/on_save_search.tsx | 0 .../top_nav/open_search_panel.test.tsx | 0 .../components/top_nav/open_search_panel.tsx | 0 .../main/components/top_nav/top_nav.scss | 0 .../components/top_nav/use_discover_topnav.ts | 0 .../top_nav/use_top_nav_links.test.tsx | 0 .../components/top_nav/use_top_nav_links.tsx | 0 .../total_documents/total_documents.tsx | 0 .../uninitialized/uninitialized.tsx | 0 .../main/data_fetching/fetch_all.test.ts | 0 .../main/data_fetching/fetch_all.ts | 0 .../data_fetching/fetch_documents.test.ts | 0 .../main/data_fetching/fetch_documents.ts | 0 .../main/data_fetching/fetch_esql.test.ts | 0 .../main/data_fetching/fetch_esql.ts | 0 .../data_fetching/get_fetch_observable.ts | 0 .../get_fetch_observeable.test.ts | 0 .../update_search_source.test.ts | 0 .../data_fetching/update_search_source.ts | 0 .../main/discover_main_app.test.tsx | 0 .../application/main/discover_main_app.tsx | 0 .../main/discover_main_route.test.tsx | 0 .../application/main/discover_main_route.tsx | 0 .../main/hooks/grid_customisations/index.ts | 0 .../main/hooks/grid_customisations/logs.tsx | 0 .../sidebar/use_additional_field_groups.tsx | 0 .../main/hooks/use_adhoc_data_views.ts | 0 .../main/hooks/use_alert_results_toast.tsx | 0 .../application/main/hooks/use_data_state.ts | 0 .../hooks/use_discover_state_container.ts | 0 .../main/hooks/use_esql_mode.test.tsx | 0 .../application/main/hooks/use_esql_mode.ts | 0 .../main/hooks/use_filters_validation.ts | 0 .../main/hooks/use_inspector.test.ts | 0 .../application/main/hooks/use_inspector.ts | 0 .../main/hooks/use_is_esql_mode.ts | 0 .../hooks/use_saved_search_messages.test.ts | 0 .../main/hooks/use_saved_search_messages.ts | 0 .../application/main/hooks/use_url.test.ts | 0 .../public/application/main/hooks/use_url.ts | 0 .../main/hooks/use_url_tracking.ts | 0 .../discover/public/application/main/index.ts | 0 .../discover_app_state_container.test.ts | 0 .../discover_app_state_container.ts | 0 .../discover_data_state_container.test.ts | 0 .../discover_data_state_container.ts | 0 .../discover_global_state_container.ts | 0 .../discover_internal_state_container.ts | 0 .../discover_saved_search_container.test.ts | 0 .../discover_saved_search_container.ts | 0 .../discover_search_session.test.ts | 0 .../discover_search_session.ts | 0 .../state_management/discover_state.test.ts | 0 .../main/state_management/discover_state.ts | 0 .../discover_state_provider.tsx | 0 .../utils/build_state_subscribe.test.ts | 0 .../utils/build_state_subscribe.ts | 0 .../utils/change_data_view.test.ts | 0 .../utils/change_data_view.ts | 0 .../utils/cleanup_url_state.test.ts | 0 .../utils/cleanup_url_state.ts | 0 .../utils/get_default_profile_state.test.ts | 0 .../utils/get_default_profile_state.ts | 0 .../utils/get_esql_data_view.test.ts | 0 .../utils/get_esql_data_view.ts | 0 .../utils/get_state_defaults.test.ts | 0 .../utils/get_state_defaults.ts | 0 .../get_switch_data_view_app_state.test.ts | 0 .../utils/get_switch_data_view_app_state.ts | 0 .../utils/load_saved_search.ts | 0 .../utils/resolve_data_view.test.ts | 0 .../utils/resolve_data_view.ts | 0 .../utils/update_filter_references.ts | 0 .../utils/update_saved_search.test.ts | 0 .../utils/update_saved_search.ts | 0 .../utils/validate_time_range.test.ts | 0 .../utils/validate_time_range.ts | 0 .../utils/aggregate_request_adapter.test.ts | 0 .../main/utils/aggregate_request_adapter.ts | 0 .../main/utils/get_result_state.test.ts | 0 .../main/utils/get_result_state.ts | 0 .../main/utils/get_valid_view_mode.test.ts | 0 .../main/utils/get_valid_view_mode.ts | 0 .../public/application/not_found/index.ts | 0 .../application/not_found/not_found_route.tsx | 0 .../discover/public/application/types.ts | 0 .../public/application/view_alert/index.ts | 0 .../view_alert/view_alert_route.tsx | 0 .../view_alert/view_alert_utils.tsx | 0 .../shared}/discover/public/build_services.ts | 0 .../loading_indicator.test.tsx.snap | 0 .../public/components/common/error_alert.tsx | 0 .../common/error_callout.stories.tsx | 0 .../components/common/error_callout.test.tsx | 0 .../components/common/error_callout.tsx | 0 .../common/loading_indicator.test.tsx | 0 .../components/common/loading_indicator.tsx | 0 .../logs/service_name_cell.test.tsx | 0 .../data_types/logs/service_name_cell.tsx | 0 .../data_types/logs/summary_column/index.tsx | 0 .../logs/summary_column/summary_column.tsx | 0 .../discover_container.test.tsx | 0 .../discover_container/discover_container.tsx | 0 .../components/discover_container/index.ts | 0 .../discover_grid/discover_grid.tsx | 0 .../public/components/discover_grid/index.ts | 0 .../discover_grid_flyout.test.tsx | 0 .../discover_grid_flyout.tsx | 0 .../discover_grid_flyout_actions.tsx | 0 .../components/discover_grid_flyout/index.ts | 0 .../use_flyout_actions.tsx | 0 .../components/help_menu/help_menu_util.ts | 0 .../hits_counter/hits_counter.test.tsx | 0 .../components/hits_counter/hits_counter.tsx | 0 .../public/components/hits_counter/index.ts | 0 .../components/logs_explorer_tabs/index.ts | 0 .../logs_explorer_tabs.test.tsx | 0 .../logs_explorer_tabs/logs_explorer_tabs.tsx | 0 .../public/components/panels_toggle/index.ts | 0 .../panels_toggle/panels_toggle.test.tsx | 0 .../panels_toggle/panels_toggle.tsx | 0 ...saved_search_url_conflict_callout.test.tsx | 0 .../saved_search_url_conflict_callout.ts | 0 .../components/view_mode_toggle/index.ts | 0 .../view_mode_toggle.test.tsx | 0 .../view_mode_toggle/view_mode_toggle.tsx | 0 .../shared}/discover/public/constants.ts | 0 .../public/context_awareness/README.md | 6 +- .../context_awareness/__mocks__/index.tsx | 0 .../composable_profile.test.ts | 0 .../context_awareness/composable_profile.ts | 0 .../context_awareness/docs/architecture.png | Bin .../docs/merged_accessors.png | Bin .../public/context_awareness/hooks/index.ts | 0 .../use_additional_cell_actions.test.tsx | 0 .../hooks/use_additional_cell_actions.ts | 0 .../hooks/use_profile_accessor.test.ts | 0 .../hooks/use_profile_accessor.ts | 0 .../hooks/use_profiles.test.tsx | 0 .../context_awareness/hooks/use_profiles.ts | 0 .../hooks/use_root_profile.test.tsx | 0 .../hooks/use_root_profile.tsx | 0 .../public/context_awareness/index.ts | 0 .../common/deprecation_logs/consts.ts | 0 .../common/deprecation_logs/index.ts | 0 .../common/deprecation_logs/profile.test.ts | 0 .../common/deprecation_logs/profile.ts | 0 .../example/example_context.ts | 0 .../example_data_source_profile/index.ts | 0 .../example_data_source_profile/profile.tsx | 0 .../example/example_document_profile/index.ts | 0 .../example_document_profile/profile.ts | 0 .../example/example_root_profile/index.ts | 0 .../example/example_root_profile/profile.tsx | 0 .../extend_profile_provider.test.ts | 0 .../extend_profile_provider.ts | 0 .../extract_index_pattern_from.test.ts | 0 .../extract_index_pattern_from.ts | 0 .../profile_providers/index.ts | 0 .../profile_providers/observability/consts.ts | 0 .../accessors/get_doc_viewer.tsx | 0 .../log_document_profile/accessors/index.ts | 0 .../log_document_profile/index.ts | 0 .../log_document_profile/profile.test.ts | 0 .../log_document_profile/profile.tsx | 0 .../accessors/get_cell_renderers.tsx | 0 .../accessors/get_default_app_state.ts | 0 .../get_row_additional_leading_controls.ts | 0 .../accessors/get_row_indicator_provider.ts | 0 .../accessors/index.ts | 0 .../logs_data_source_profile/consts.ts | 0 .../create_profile_providers.ts | 0 .../logs_data_source_profile/index.ts | 0 .../logs_data_source_profile/profile.test.ts | 0 .../logs_data_source_profile/profile.ts | 0 .../sub_profiles/apache_error_logs.test.ts | 0 .../sub_profiles/apache_error_logs.ts | 0 .../sub_profiles/aws_s3access_logs.test.ts | 0 .../sub_profiles/aws_s3access_logs.ts | 0 .../sub_profiles/create_resolve.test.ts | 0 .../sub_profiles/create_resolve.ts | 0 .../sub_profiles/index.ts | 0 .../kubernetes_container_logs.test.ts | 0 .../sub_profiles/kubernetes_container_logs.ts | 0 .../sub_profiles/nginx_access_logs.test.ts | 0 .../sub_profiles/nginx_access_logs.ts | 0 .../sub_profiles/nginx_error_logs.test.ts | 0 .../sub_profiles/nginx_error_logs.ts | 0 .../sub_profiles/system_logs.test.ts | 0 .../sub_profiles/system_logs.ts | 0 .../sub_profiles/windows_logs.test.ts | 0 .../sub_profiles/windows_logs.ts | 0 .../accessors/get_app_menu.ts | 0 .../accessors/index.ts | 0 .../observability_root_profile/index.ts | 0 .../profile.test.ts | 0 .../observability_root_profile/profile.tsx | 0 .../profile_provider_services.ts | 0 .../register_profile_providers.test.ts | 0 .../register_profile_providers.ts | 0 .../accessors/create_app_wrapper_accessor.ts | 0 .../get_cell_renderer_accessor.test.tsx | 0 .../accessors/get_cell_renderer_accessor.tsx | 0 .../security/security_root_profile/index.ts | 0 .../security_root_profile/profile.tsx | 0 .../profile_providers/security/types.ts | 0 .../context_awareness/profile_service.test.ts | 0 .../context_awareness/profile_service.ts | 0 .../profiles/data_source_profile.ts | 0 .../profiles/document_profile.ts | 0 .../context_awareness/profiles/index.ts | 0 .../profiles/root_profile.ts | 0 .../profiles_manager.test.ts | 0 .../context_awareness/profiles_manager.ts | 0 .../public/context_awareness/types.ts | 0 .../__mocks__/customization_context.ts | 0 .../customization_provider.test.tsx | 0 .../customizations/customization_provider.ts | 0 .../customization_service.test.ts | 0 .../customizations/customization_service.ts | 0 .../data_table_customisation.ts | 0 .../field_list_customisation.ts | 0 .../flyout_customization.ts | 0 .../histogram_customization.tsx | 0 .../customization_types/index.ts | 0 .../search_bar_customization.ts | 0 .../top_nav_customization.ts | 0 .../public/customizations/defaults.ts | 0 .../discover/public/customizations/index.ts | 0 .../discover/public/customizations/types.ts | 0 .../embeddable/__mocks__/get_mocked_api.ts | 0 .../actions/view_saved_search_action.test.ts | 0 .../actions/view_saved_search_action.ts | 0 .../view_saved_search_compatibility_check.ts | 0 .../saved_search_embeddable_base.tsx | 0 .../components/saved_search_grid.scss | 0 .../components/saved_search_grid.tsx | 0 ...embeddable_field_stats_table_component.tsx | 0 .../search_embeddable_grid_component.tsx | 0 .../discover/public/embeddable/constants.ts | 0 .../get_search_embeddable_defaults.ts | 0 .../get_search_embeddable_factory.test.tsx | 0 .../get_search_embeddable_factory.tsx | 0 .../discover/public/embeddable/index.ts | 0 .../embeddable/initialize_edit_api.test.ts | 0 .../public/embeddable/initialize_edit_api.ts | 0 .../embeddable/initialize_fetch.test.ts | 0 .../public/embeddable/initialize_fetch.ts | 0 .../initialize_search_embeddable_api.tsx | 0 .../discover/public/embeddable/types.ts | 0 .../utils/get_discover_locator_params.test.ts | 0 .../utils/get_discover_locator_params.ts | 0 .../utils/serialization_utils.test.ts | 0 .../embeddable/utils/serialization_utils.ts | 0 .../utils/update_search_source.test.ts | 0 .../embeddable/utils/update_search_source.ts | 0 .../global_search/search_provider.test.ts | 0 .../public/global_search/search_provider.ts | 0 .../discover/public/history_service.ts | 0 .../saved_search_alias_match_redirect.test.ts | 0 .../saved_search_alias_match_redirect.ts | 0 .../public/hooks/use_data_view.test.tsx | 0 .../discover/public/hooks/use_data_view.tsx | 0 .../public/hooks/use_discover_services.ts | 0 .../hooks/use_navigation_props.test.tsx | 0 .../public/hooks/use_navigation_props.tsx | 0 .../plugins/shared}/discover/public/index.ts | 0 .../plugins/shared}/discover/public/mocks.tsx | 0 .../shared}/discover/public/plugin.tsx | 0 .../discover/public/register_feature.ts | 0 .../services/discover_ebt_manager.test.ts | 0 .../public/services/discover_ebt_manager.ts | 0 .../restore_from_saved_search.test.ts | 0 .../restore_from_saved_search.ts | 0 .../plugins/shared}/discover/public/types.ts | 0 .../shared}/discover/public/utils/add_log.ts | 0 .../discover/public/utils/breadcrumbs.test.ts | 0 .../discover/public/utils/breadcrumbs.ts | 0 .../utils/get_allowed_sample_size.test.ts | 0 .../public/utils/get_allowed_sample_size.ts | 0 .../public/utils/get_sharing_data.test.ts | 0 .../discover/public/utils/get_sharing_data.ts | 0 .../public/utils/get_valid_filters.test.ts | 0 .../public/utils/get_valid_filters.ts | 0 .../shared}/discover/public/utils/index.ts | 0 .../utils/initialize_kbn_url_tracking.test.ts | 0 .../utils/initialize_kbn_url_tracking.ts | 0 .../public/utils/migrate_legacy_query.ts | 0 .../utils/on_resize_grid_column.test.tsx | 0 .../public/utils/on_resize_grid_column.ts | 0 .../public/utils/sorting/get_sort.test.ts | 0 .../discover/public/utils/sorting/get_sort.ts | 0 .../discover/public/utils/sorting/index.ts | 0 .../discover/public/utils/state_helpers.ts | 0 .../public/utils/validate_time.test.ts | 0 .../discover/public/utils/validate_time.ts | 0 .../discover/server/capabilities_provider.ts | 0 .../plugins/shared}/discover/server/config.ts | 0 .../discover/server/embeddable/index.ts | 0 .../embeddable/search_embeddable_factory.ts | 0 .../plugins/shared}/discover/server/index.ts | 0 .../locator/columns_from_locator.test.ts | 0 .../server/locator/columns_from_locator.ts | 0 .../server/locator/filters_from_locator.ts | 0 .../shared}/discover/server/locator/index.ts | 0 .../shared}/discover/server/locator/mocks.ts | 0 .../server/locator/query_from_locator.ts | 0 .../locator/searchsource_from_locator.test.ts | 0 .../locator/searchsource_from_locator.ts | 0 .../discover/server/locator/service.ts | 0 .../server/locator/title_from_locator.test.ts | 0 .../server/locator/title_from_locator.ts | 0 .../plugins/shared}/discover/server/mocks.ts | 0 .../plugins/shared}/discover/server/plugin.ts | 0 .../discover/server/sample_data/index.ts | 0 .../sample_data/register_sample_data.ts | 0 .../shared}/discover/server/ui_settings.ts | 0 .../plugins/shared}/discover/tsconfig.json | 4 +- .../plugins/shared}/discover_shared/README.md | 2 +- .../features_registry.test.tsx | 0 .../features_registry/features_registry.ts | 0 .../common/features_registry/index.ts | 0 .../common/features_registry/types.ts | 0 .../shared}/discover_shared/common/index.ts | 0 .../shared/discover_shared/jest.config.js | 20 +++ .../shared}/discover_shared/kibana.jsonc | 0 .../shared}/discover_shared/public/index.ts | 0 .../shared}/discover_shared/public/mocks.ts | 0 .../shared}/discover_shared/public/plugin.ts | 0 .../discover_features_service.mock.ts | 0 .../discover_features_service.ts | 0 .../services/discover_features/index.ts | 0 .../services/discover_features/types.ts | 0 .../shared}/discover_shared/public/types.ts | 0 .../shared}/discover_shared/tsconfig.json | 4 +- .../plugins/shared}/field_formats/README.md | 0 .../common/constants/base_formatters.ts | 0 .../common/constants/color_default.ts | 0 .../common/constants/duration_formats.ts | 0 .../common/constants/ui_settings.ts | 0 .../common/content_types/html_content_type.ts | 0 .../common/content_types/index.ts | 0 .../common/content_types/text_content_type.ts | 0 .../common/converters/boolean.test.ts | 0 .../common/converters/boolean.ts | 0 .../common/converters/bytes.test.ts | 0 .../field_formats/common/converters/bytes.ts | 0 .../common/converters/color.test.ts | 0 .../field_formats/common/converters/color.tsx | 0 .../common/converters/currency.test.ts | 0 .../common/converters/currency.ts | 0 .../field_formats/common/converters/custom.ts | 0 .../converters/date_nanos_shared.test.ts | 0 .../common/converters/date_nanos_shared.ts | 0 .../common/converters/duration.test.ts | 0 .../common/converters/duration.ts | 0 .../common/converters/geo_point.test.ts | 0 .../common/converters/geo_point.ts | 0 .../common/converters/histogram.ts | 0 .../field_formats/common/converters/index.ts | 0 .../common/converters/ip.test.ts | 0 .../field_formats/common/converters/ip.ts | 0 .../common/converters/number.test.ts | 0 .../field_formats/common/converters/number.ts | 0 .../common/converters/numeral.ts | 0 .../common/converters/percent.test.ts | 0 .../common/converters/percent.ts | 0 .../common/converters/relative_date.test.ts | 0 .../common/converters/relative_date.ts | 0 .../common/converters/source.test.ts | 0 .../common/converters/source.tsx | 0 .../common/converters/static_lookup.ts | 0 .../common/converters/string.test.ts | 0 .../field_formats/common/converters/string.ts | 0 .../common/converters/truncate.test.ts | 0 .../common/converters/truncate.ts | 0 .../common/converters/url.test.ts | 0 .../field_formats/common/converters/url.ts | 0 .../shared}/field_formats/common/errors.ts | 0 .../field_formats/common/field_format.test.ts | 0 .../field_formats/common/field_format.ts | 0 .../common/field_formats_registry.test.ts | 0 .../common/field_formats_registry.ts | 0 .../shared}/field_formats/common/index.ts | 0 .../shared}/field_formats/common/mocks.ts | 0 .../shared}/field_formats/common/types.ts | 0 .../common/utils/as_pretty_string.test.ts | 0 .../common/utils/as_pretty_string.ts | 0 .../common/utils/geo_utils.test.ts | 0 .../field_formats/common/utils/geo_utils.ts | 0 .../utils/highlight/highlight_html.test.ts | 0 .../common/utils/highlight/highlight_html.ts | 0 .../utils/highlight/highlight_request.test.ts | 0 .../utils/highlight/highlight_request.ts | 0 .../common/utils/highlight/highlight_tags.ts | 0 .../common/utils/highlight/html_tags.ts | 0 .../common/utils/highlight/index.ts | 0 .../field_formats/common/utils/index.ts | 0 .../utils/shorten_dotted_string.test.ts | 0 .../common/utils/shorten_dotted_string.ts | 0 .../shared/field_formats}/jest.config.js | 9 +- .../shared}/field_formats/kibana.jsonc | 0 .../shared}/field_formats/public/index.scss | 0 .../shared}/field_formats/public/index.ts | 0 .../field_formats/public/lib/constants.ts | 0 .../lib/content_types/_html_content_type.scss | 0 .../public/lib/content_types/_index.scss | 0 .../public/lib/converters/_index.scss | 0 .../public/lib/converters/_string.scss | 0 .../public/lib/converters/date.test.ts | 0 .../public/lib/converters/date.ts | 0 .../public/lib/converters/date_nanos.ts | 0 .../public/lib/converters/index.ts | 0 .../shared}/field_formats/public/lib/index.ts | 0 .../shared}/field_formats/public/mocks.ts | 0 .../field_formats/public/plugin.test.ts | 0 .../shared}/field_formats/public/plugin.ts | 0 .../shared}/field_formats/server/index.ts | 0 .../lib/converters/date_nanos_server.test.ts | 0 .../lib/converters/date_nanos_server.ts | 0 .../server/lib/converters/date_server.ts | 0 .../server/lib/converters/index.ts | 0 .../shared}/field_formats/server/mocks.ts | 0 .../field_formats/server/plugin.test.ts | 0 .../shared}/field_formats/server/plugin.ts | 0 .../shared}/field_formats/server/types.ts | 0 .../field_formats/server/ui_settings.ts | 0 .../shared}/field_formats/tsconfig.json | 2 +- .../shared}/saved_objects_finder/README.md | 0 .../saved_objects_finder/common/index.ts | 0 .../saved_objects_finder/common/types.ts | 0 .../saved_objects_finder/jest.config.js | 20 +++ .../shared}/saved_objects_finder/kibana.jsonc | 0 .../public/finder/index.tsx | 0 .../finder/saved_object_finder.test.tsx | 0 .../public/finder/saved_object_finder.tsx | 0 .../saved_objects_finder/public/index.ts | 0 .../saved_objects_finder/public/plugin.ts | 0 .../saved_objects_finder/server/index.ts | 0 .../server/plugin.test.ts | 0 .../saved_objects_finder/server/plugin.ts | 0 .../server/ui_settings.ts | 0 .../saved_objects_finder/tsconfig.json | 2 +- .../plugins/shared}/saved_search/README.md | 0 .../shared}/saved_search/common/constants.ts | 0 .../common/content_management/index.ts | 0 .../common/content_management/v1/index.ts | 0 .../common/content_management/v1/types.ts | 0 .../saved_search/common/expressions/index.ts | 0 .../common/expressions/kibana_context.test.ts | 0 .../common/expressions/kibana_context.ts | 0 .../common/expressions/kibana_context_type.ts | 0 .../shared}/saved_search/common/index.ts | 0 .../common/saved_searches_url.test.ts | 0 .../saved_search/common/saved_searches_url.ts | 0 .../common/saved_searches_utils.ts | 0 .../common/service/get_saved_searches.test.ts | 0 .../common/service/get_saved_searches.ts | 0 .../service/saved_searches_utils.test.ts | 0 .../common/service/saved_searches_utils.ts | 0 .../shared}/saved_search/common/types.ts | 0 .../shared/saved_search/jest.config.js | 20 +++ .../plugins/shared}/saved_search/kibana.jsonc | 0 .../public/expressions/kibana_context.ts | 0 .../shared}/saved_search/public/index.ts | 0 .../shared}/saved_search/public/mocks.ts | 0 .../shared}/saved_search/public/plugin.ts | 0 .../check_for_duplicate_title.ts | 0 .../services/saved_searches/constants.ts | 0 .../create_get_saved_search_deps.ts | 0 .../public/services/saved_searches/index.ts | 0 .../save_saved_searches.test.ts | 0 .../saved_searches/save_saved_searches.ts | 0 .../saved_searches/saved_searches_service.ts | 0 .../saved_searches/to_saved_search.test.ts | 0 .../saved_searches/to_saved_search.ts | 0 .../public/services/saved_searches/types.ts | 0 .../server/content_management/index.ts | 0 .../saved_search_storage.ts | 0 .../content_management/schema/cm_services.ts | 0 .../schema/v1/cm_services.ts | 0 .../server/expressions/kibana_context.ts | 0 .../shared}/saved_search/server/index.ts | 0 .../shared}/saved_search/server/plugin.ts | 0 .../server/saved_objects/index.ts | 0 .../server/saved_objects/schema.ts | 0 .../server/saved_objects/search.ts | 0 .../saved_objects/search_migrations.test.ts | 0 .../server/saved_objects/search_migrations.ts | 0 .../saved_searches/get_saved_searches.ts | 0 .../server/services/saved_searches/index.ts | 0 .../shared}/saved_search/tsconfig.json | 4 +- .../shared}/unified_doc_viewer/README.md | 0 .../shared/unified_doc_viewer/jest.config.js | 20 +++ .../shared}/unified_doc_viewer/kibana.jsonc | 0 .../public/__mocks__/index.ts | 0 .../public/__mocks__/services.ts | 0 .../components/doc_viewer/doc_viewer.tsx | 0 .../public/components/doc_viewer/index.ts | 0 .../doc_viewer_flyout/doc_viewer_flyout.tsx | 0 .../components/doc_viewer_flyout/index.ts | 0 .../doc_viewer_flyout/use_flyout_a11y.tsx | 0 .../doc_viewer_logs_overview/index.ts | 0 .../logs_overview.test.tsx | 0 .../logs_overview.tsx | 0 .../logs_overview_degraded_fields.tsx | 0 .../logs_overview_header.tsx | 0 .../logs_overview_highlights.tsx | 0 .../sub_components/highlight_field.tsx | 0 .../highlight_field_description.tsx | 0 .../sub_components/highlight_section.tsx | 0 .../sub_components/hover_popover_action.tsx | 0 .../sub_components/log_level.tsx | 0 .../service_name_highlight_field.tsx | 0 .../sub_components/timestamp.tsx | 0 .../trace_id_highlight_field.tsx | 0 .../doc_viewer_source/get_height.test.tsx | 0 .../doc_viewer_source/get_height.tsx | 0 .../components/doc_viewer_source/index.ts | 0 .../components/doc_viewer_source/source.scss | 0 .../doc_viewer_source/source.test.tsx | 0 .../components/doc_viewer_source/source.tsx | 0 .../table_cell_actions.test.tsx.snap | 0 .../components/doc_viewer_table/field_row.ts | 0 .../doc_viewer_table/get_pin_control.test.tsx | 0 .../doc_viewer_table/get_pin_control.tsx | 0 .../components/doc_viewer_table/index.ts | 0 .../components/doc_viewer_table/table.scss | 0 .../doc_viewer_table/table.test.tsx | 0 .../components/doc_viewer_table/table.tsx | 0 .../doc_viewer_table/table_cell.tsx | 0 .../table_cell_actions.test.tsx | 0 .../doc_viewer_table/table_cell_actions.tsx | 0 .../table_cell_value.test.tsx | 0 .../doc_viewer_table/table_cell_value.tsx | 0 .../doc_viewer_table/table_filters.tsx | 0 .../doc_viewer_table/test_filters.test.ts | 0 .../public/components/index.ts | 0 .../json_code_editor.test.tsx.snap | 0 .../components/json_code_editor/index.ts | 0 .../json_code_editor/json_code_editor.scss | 0 .../json_code_editor.test.tsx | 0 .../json_code_editor/json_code_editor.tsx | 0 .../json_code_editor_common.tsx | 0 .../public/components/lazy_doc_viewer.tsx | 0 .../components/lazy_doc_viewer_flyout.tsx | 0 .../lazy_doc_viewer_logs_overview.tsx | 0 .../unified_doc_viewer/public/hooks/index.ts | 0 .../public/hooks/use_es_doc_search.test.tsx | 0 .../public/hooks/use_es_doc_search.ts | 0 .../public/hooks/use_field_actions.tsx | 0 .../unified_doc_viewer/public/index.tsx | 0 .../unified_doc_viewer/public/plugin.tsx | 0 .../unified_doc_viewer/public/types.ts | 0 .../shared}/unified_doc_viewer/tsconfig.json | 4 +- .../shared}/unified_histogram/README.md | 0 .../shared/unified_histogram/jest.config.js | 20 +++ .../shared}/unified_histogram/kibana.jsonc | 0 .../public/__mocks__/data_view.ts | 0 .../__mocks__/data_view_with_timefield.ts | 0 .../public/__mocks__/lens_adapters.ts | 0 .../public/__mocks__/lens_vis.ts | 0 .../public/__mocks__/services.tsx | 0 .../public/__mocks__/suggestions.ts | 0 .../public/__mocks__/table.ts | 0 .../chart/breakdown_field_selector.test.tsx | 0 .../public/chart/breakdown_field_selector.tsx | 0 .../public/chart/chart.test.tsx | 0 .../unified_histogram/public/chart/chart.tsx | 0 .../public/chart/chart_config_panel.test.tsx | 0 .../public/chart/chart_config_panel.tsx | 0 .../public/chart/check_chart_availability.ts | 0 .../public/chart/histogram.test.tsx | 0 .../public/chart/histogram.tsx | 0 .../chart/hooks/use_chart_actions.test.ts | 0 .../public/chart/hooks/use_chart_actions.ts | 0 .../public/chart/hooks/use_chart_styles.tsx | 0 .../hooks/use_edit_visualization.test.ts | 0 .../chart/hooks/use_edit_visualization.ts | 0 .../public/chart/hooks/use_lens_props.test.ts | 0 .../public/chart/hooks/use_lens_props.ts | 0 .../public/chart/hooks/use_refetch.test.ts | 0 .../public/chart/hooks/use_refetch.ts | 0 .../chart/hooks/use_time_range.test.tsx | 0 .../public/chart/hooks/use_time_range.tsx | 0 .../public/chart/hooks/use_total_hits.test.ts | 0 .../public/chart/hooks/use_total_hits.ts | 0 .../unified_histogram/public/chart/index.ts | 0 .../unified_histogram/public/chart/lazy.tsx | 0 .../chart/time_interval_selector.test.tsx | 0 .../public/chart/time_interval_selector.tsx | 0 .../public/chart/toolbar_selector.tsx | 0 .../chart/utils/build_bucket_interval.test.ts | 0 .../chart/utils/build_bucket_interval.ts | 0 .../chart/utils/get_chart_agg_config.test.ts | 0 .../chart/utils/get_chart_agg_configs.ts | 0 .../public/container/container.test.tsx | 0 .../public/container/container.tsx | 0 .../container/hooks/use_state_props.test.ts | 0 .../public/container/hooks/use_state_props.ts | 0 .../public/container/index.tsx | 0 .../container/services/state_service.test.ts | 0 .../container/services/state_service.ts | 0 .../utils/local_storage_utils.test.ts | 0 .../container/utils/local_storage_utils.ts | 0 .../public/container/utils/state_selectors.ts | 0 .../container/utils/use_state_selector.ts | 0 .../public/hooks/use_request_params.test.ts | 0 .../public/hooks/use_request_params.tsx | 0 .../public/hooks/use_stable_callback.test.ts | 0 .../public/hooks/use_stable_callback.ts | 0 .../shared}/unified_histogram/public/index.ts | 0 .../unified_histogram/public/layout/index.ts | 0 .../public/layout/layout.test.tsx | 0 .../public/layout/layout.tsx | 0 .../shared}/unified_histogram/public/mocks.ts | 0 .../unified_histogram/public/plugin.ts | 0 .../lens_vis_service.attributes.test.ts | 0 .../lens_vis_service.suggestions.test.ts | 0 .../public/services/lens_vis_service.ts | 0 .../shared}/unified_histogram/public/types.ts | 0 .../external_vis_context.test.ts.snap | 0 .../public/utils/compute_interval.test.ts | 0 .../public/utils/compute_interval.ts | 0 .../public/utils/external_vis_context.test.ts | 0 .../public/utils/external_vis_context.ts | 0 .../public/utils/lens_vis_from_table.ts | 0 .../shared}/unified_histogram/tsconfig.json | 4 +- src/plugins/data_view_editor/jest.config.js | 17 --- .../data_view_management/jest.config.js | 17 --- src/plugins/data_views/jest.config.js | 17 --- src/plugins/discover/jest.config.js | 17 --- src/plugins/field_formats/jest.config.js | 17 --- .../telemetry/schema/oss_platform.json | 75 +++++++++++ src/plugins/telemetry/schema/oss_plugins.json | 75 ----------- src/plugins/unified_doc_viewer/jest.config.js | 19 --- src/plugins/unified_histogram/jest.config.js | 19 --- tsconfig.base.json | 120 +++++++++--------- x-pack/.i18nrc.json | 2 +- .../private}/discover_enhanced/README.md | 0 .../discover_enhanced/common/config.ts | 0 .../discover_enhanced/common/index.ts | 0 .../private}/discover_enhanced/jest.config.js | 9 +- .../private}/discover_enhanced/kibana.jsonc | 0 .../abstract_explore_data_action.ts | 0 .../explore_data_chart_action.test.ts | 0 .../explore_data/explore_data_chart_action.ts | 0 .../explore_data_context_menu_action.test.ts | 0 .../explore_data_context_menu_action.ts | 0 .../public/actions/explore_data/index.ts | 0 .../public/actions/explore_data/shared.ts | 0 .../discover_enhanced/public/actions/index.ts | 0 .../discover_enhanced/public/index.ts | 0 .../discover_enhanced/public/plugin.ts | 0 .../discover_enhanced/server/config.ts | 0 .../discover_enhanced/server/index.ts | 0 .../discover_enhanced/server/plugin.ts | 0 .../private}/discover_enhanced/tsconfig.json | 2 +- .../discover_enhanced/ui_tests/README.md | 24 ++++ .../ui_tests/fixtures/assertion_messages.ts | 0 .../ui_tests/fixtures/constants.ts | 0 .../ui_tests/fixtures/index.ts | 0 .../ui_tests/fixtures/page_objects/demo.ts | 0 .../ui_tests/fixtures/page_objects/index.ts | 0 .../ui_tests/playwright.config.ts | 0 .../ui_tests/tests/error_handling.spec.ts | 0 .../tests/saved_search_embeddable.spec.ts | 0 .../ui_tests/tests/saved_searches.spec.ts | 0 .../ui_tests/tests/value_suggestions.spec.ts | 0 .../value_suggestions_non_time_based.spec.ts | 0 ...uggestions_use_time_range_disabled.spec.ts | 0 .../discover_enhanced/ui_tests/README.md | 24 ---- .../schema/xpack_platform.json | 7 + .../schema/xpack_plugins.json | 7 - .../search_strategy/index_fields/index.ts | 4 +- yarn.lock | 60 ++++----- 2178 files changed, 748 insertions(+), 725 deletions(-) delete mode 100644 packages/kbn-discover-utils/jest.config.js delete mode 100644 packages/kbn-es-query/jest.config.js delete mode 100644 packages/kbn-field-types/jest.config.js delete mode 100644 packages/kbn-field-utils/jest.config.js delete mode 100644 packages/kbn-react-field/jest.config.js delete mode 100644 packages/kbn-resizable-layout/jest.config.js delete mode 100644 packages/kbn-search-errors/jest.config.js delete mode 100644 packages/kbn-search-response-warnings/jest.config.js delete mode 100644 packages/kbn-search-types/jest.config.js delete mode 100644 packages/kbn-unified-data-table/jest.config.js delete mode 100644 packages/kbn-unified-doc-viewer/jest.config.js delete mode 100644 packages/kbn-unified-field-list/jest.config.js delete mode 100644 packages/kbn-unsaved-changes-badge/jest.config.js rename {packages => src/platform/packages/private}/default-nav/analytics/README.md (100%) rename {packages => src/platform/packages/private}/default-nav/analytics/default_navigation.ts (100%) rename {packages => src/platform/packages/private}/default-nav/analytics/index.ts (100%) create mode 100644 src/platform/packages/private/default-nav/analytics/jest.config.js rename {packages => src/platform/packages/private}/default-nav/analytics/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/default-nav/analytics/package.json (100%) rename {packages => src/platform/packages/private}/default-nav/analytics/tsconfig.json (85%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/README.md (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/index.ts (100%) create mode 100644 src/platform/packages/private/kbn-unsaved-changes-badge/jest.config.js rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/package.json (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/__snapshots__/unsaved_changes_badge.test.tsx.snap (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.tsx (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/src/utils/__snapshots__/get_top_nav_unsaved_changes_badge.test.tsx.snap (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.tsx (100%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/tsconfig.json (82%) rename {packages => src/platform/packages/private}/kbn-unsaved-changes-badge/types.ts (100%) rename {packages => src/platform/packages/shared}/deeplinks/analytics/README.md (100%) rename {packages => src/platform/packages/shared}/deeplinks/analytics/constants.ts (100%) rename {packages => src/platform/packages/shared}/deeplinks/analytics/deep_links.ts (100%) rename {packages => src/platform/packages/shared}/deeplinks/analytics/index.ts (100%) create mode 100644 src/platform/packages/shared/deeplinks/analytics/jest.config.js rename {packages => src/platform/packages/shared}/deeplinks/analytics/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/deeplinks/analytics/package.json (100%) rename {packages => src/platform/packages/shared}/deeplinks/analytics/tsconfig.json (81%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-content-management-utils/jest.config.js rename {packages => src/platform/packages/shared}/kbn-content-management-utils/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/src/msearch.ts (100%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/src/saved_object_content_storage.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/src/saved_object_content_storage.ts (100%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/src/schema.ts (100%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/src/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-content-management-utils/tsconfig.json (90%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-data-view-utils/jest.config.js rename {packages => src/platform/packages/shared}/kbn-data-view-utils/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/src/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.ts (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/src/utils/create_regexp_pattern_from.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/src/utils/create_regexp_pattern_from.ts (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.ts (100%) rename {packages => src/platform/packages/shared}/kbn-data-view-utils/tsconfig.json (85%) rename {packages => src/platform/packages/shared}/kbn-datemath/.npmignore (100%) rename {packages => src/platform/packages/shared}/kbn-datemath/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-datemath/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-datemath/index.test.js (100%) rename {packages => src/platform/packages/shared}/kbn-datemath/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-datemath/jest.config.js (90%) rename {packages => src/platform/packages/shared}/kbn-datemath/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-datemath/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-datemath/tsconfig.json (77%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-discover-utils/jest.config.js rename {packages => src/platform/packages/shared}/kbn-discover-utils/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/__mocks__/additional_field_groups.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/__mocks__/data_view.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/__mocks__/es_hits.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/__mocks__/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/__mocks__/logs_context_service.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/components/app_menu/__snapshots__/app_menu_registry.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/components/app_menu/app_menu_registry.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/components/app_menu/app_menu_registry.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/components/app_menu/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/components/custom_control_columns/degraded_docs_control.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/components/custom_control_columns/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/components/custom_control_columns/stacktrace_control.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/components/custom_control_columns/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/components/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/components/log_level_badge.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/components/log_level_badge.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/logs_context_service.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/utils/get_available_resource_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/data_types/logs/utils/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/field_constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/hooks/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/hooks/use_pager.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/hooks/use_pager.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/build_data_record.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/build_data_record.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/calc_field_counts.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/calc_field_counts.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/dismiss_flyouts.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/format_hit.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/format_hit.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/format_value.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/format_value.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_doc_id.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_doc_id.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_field_value.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_field_value.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_ignored_reason.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_ignored_reason.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_log_document_overview.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_message_field_with_fallbacks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_should_show_field_handler.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_should_show_field_handler.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_stack_trace_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_visible_columns.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/get_visible_columns.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/nested_fields.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/src/utils/nested_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/tsconfig.json (92%) rename {packages => src/platform/packages/shared}/kbn-discover-utils/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/index.ts (100%) rename {packages/deeplinks/analytics => src/platform/packages/shared/kbn-es-query}/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-es-query/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/__fixtures__/index_pattern_response.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/build_es_query.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/build_es_query.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/decorate_query.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/decorate_query.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/es_aggregate_query.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/es_aggregate_query.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/es_query_dsl.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/filter_matches_index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/filter_matches_index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_combined_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_combined_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_filters.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_filters.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_kuery.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_kuery.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_lucene.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_lucene.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_nested_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/from_nested_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/lucene_string_to_dsl.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/lucene_string_to_dsl.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/migrate_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/migrate_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/es_query/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/expressions/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/build_empty_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/build_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/build_filters.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/combined_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/custom_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/exists_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/exists_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/get_filter_field.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/get_filter_field.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/get_filter_params.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/get_filter_params.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/match_all_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/phrase_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/phrase_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/phrases_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/phrases_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/query_string_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/query_string_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/range_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/range_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/build_filters/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/compare_filters.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/compare_filters.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/convert_range_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/convert_range_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/dedup_filters.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/dedup_filters.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/extract_time_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/extract_time_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/meta_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/only_disabled.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/only_disabled.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/uniq_filters.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/uniq_filters.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/update_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/helpers/update_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/stubs/exists_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/stubs/fields.mocks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/stubs/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/stubs/phrase_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/stubs/phrases_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/filters/stubs/range_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/ast/ast.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/ast/ast.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/ast/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/and.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/and.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/exists.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/exists.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/is.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/is.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/nested.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/nested.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/not.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/not.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/or.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/or.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/range.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/range.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/utils/get_fields.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/utils/get_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/grammar/grammar.peggy (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/grammar/grammar.peggy.config.json (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/grammar/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/kuery_syntax_error.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/kuery_syntax_error.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/node_types/function.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/node_types/function.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/node_types/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/node_types/literal.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/node_types/literal.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/node_types/node_builder.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/node_types/node_builder.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/node_types/wildcard.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/node_types/wildcard.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/utils/escape_kuery.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/utils/escape_kuery.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/utils/get_kql_fields.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/utils/get_kql_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/kuery/utils/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/src/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-query/tsconfig.json (86%) rename {packages => src/platform/packages/shared}/kbn-field-types/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-field-types/index.ts (100%) rename {packages/kbn-content-management-utils => src/platform/packages/shared/kbn-field-types}/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-field-types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-field-types/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-field-types/src/kbn_field_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-types/src/kbn_field_types.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-types/src/kbn_field_types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-types/src/kbn_field_types_factory.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-types/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-types/tsconfig.json (77%) rename {packages => src/platform/packages/shared}/kbn-field-utils/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/index.ts (100%) rename {packages/default-nav/analytics => src/platform/packages/shared/kbn-field-utils}/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-field-utils/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/components/field_description/field_description.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/components/field_description/field_description.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/components/field_description/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/components/field_icon/__snapshots__/field_icon.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/components/field_icon/field_icon.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/components/field_icon/field_icon.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/components/field_icon/get_field_icon_props.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/components/field_icon/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/field_name_wildcard_matcher.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/field_name_wildcard_matcher.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/field_supports_breakdown.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/field_supports_breakdown.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/field_types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/get_field_icon_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/get_field_icon_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/get_field_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/get_field_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/get_field_type_description.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/get_field_type_description.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/get_field_type_name.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/get_field_type_name.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/src/utils/get_text_based_column_icon_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-field-utils/tsconfig.json (88%) rename {packages => src/platform/packages/shared}/kbn-field-utils/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/index.ts (100%) rename {packages/kbn-data-view-utils => src/platform/packages/shared/kbn-react-field}/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-react-field/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/src/field_button/__snapshots__/field_button.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/src/field_button/field_button.scss (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/src/field_button/field_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/src/field_button/field_button.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/src/field_button/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/src/field_icon/__snapshots__/field_icon.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/src/field_icon/field_icon.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/src/field_icon/field_icon.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/src/field_icon/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-react-field/tsconfig.json (80%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-resizable-layout/jest.config.js rename {packages => src/platform/packages/shared}/kbn-resizable-layout/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/src/panels_resizable.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/src/panels_resizable.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/src/panels_static.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/src/panels_static.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/src/resizable_layout.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/src/resizable_layout.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/src/utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/src/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/tsconfig.json (78%) rename {packages => src/platform/packages/shared}/kbn-resizable-layout/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-search-errors/jest.config.js rename {packages => src/platform/packages/shared}/kbn-search-errors/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/__snapshots__/es_error.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/__snapshots__/painless_error.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/__snapshots__/tsdb_error.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/create_es_error.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/es_error.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/es_error.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/painless_error.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/painless_error.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/render_search_error.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/tsdb_error.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/tsdb_error.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-errors/tsconfig.json (87%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-search-response-warnings/jest.config.js rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/__mocks__/search_response_warnings.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/badge.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/callout.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/empty_prompt.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/extract_warnings.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/extract_warnings.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/handle_warnings.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/handle_warnings.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-response-warnings/tsconfig.json (86%) rename {packages => src/platform/packages/shared}/kbn-search-types/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-search-types/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-search-types/jest.config.js rename {packages => src/platform/packages/shared}/kbn-search-types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-search-types/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-search-types/src/es_search_types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-types/src/kibana_search_types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-types/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-search-types/tsconfig.json (81%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/config.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/data_view_complex.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/data_view_with_timefield.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/data_view_without_timefield.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/data_views.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/es_hits_complex.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/external_control_columns.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/local_storage_mock.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/services.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/__mocks__/table_context.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-unified-data-table/jest.config.js rename {packages => src/platform/packages/shared}/kbn-unified-data-table/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/__snapshots__/data_table_columns.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/actions/columns.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/actions/columns.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/build_copy_column_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/build_copy_column_button.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/build_edit_field_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/build_edit_field_button.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/column_header_truncate_container.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/compare_documents.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/compare_documents.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/comparison_controls.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/comparison_controls.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_cell_value.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_css.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/compare_documents/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_control_columns/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_toolbar/__snapshots__/render_custom_toolbar.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.scss (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table.scss (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_additional_display_settings.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_additional_display_settings.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_cell_value.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_column_header.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_column_header.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_columns.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_columns.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_copy_rows_as_json.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_copy_rows_as_text.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_document_selection.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_document_selection.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_expand_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_expand_button.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_footer.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_footer.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/data_table_schema.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/default_cell_actions.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/default_cell_actions.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.scss (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/json_code_editor/json_code_editor_common.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/row_height_settings.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/row_height_settings.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/source_document.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/source_document.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/components/source_popover_content.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_control_column.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_data_grid_columns.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_data_grid_columns.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_data_grid_density.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_data_grid_density.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_full_screen_watcher.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_full_screen_watcher.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_row_height.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_row_height.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_row_heights_options.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_row_heights_options.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_selected_docs.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_selected_docs.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/hooks/use_sorting.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/table_context.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/columns.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/columns.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/convert_value_to_string.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/convert_value_to_string.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/copy_value_to_clipboard.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/copy_value_to_clipboard.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/get_columns_meta.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/get_columns_meta.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/get_field_capabilities.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/get_field_capabilities.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/get_render_cell_popover.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/get_render_cell_popover.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/get_render_cell_value.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/get_render_cell_value.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/popularize_field.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/popularize_field.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/row_heights.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/rows_per_page.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/rows_per_page.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/src/utils/validate_row_height.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-data-table/tsconfig.json (95%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-unified-doc-viewer/jest.config.js rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer_render_tab.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/doc_viewer/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/field_name/__snapshots__/field_name.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/field_name/__stories__/field_name.stories.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/field_name/field_name.scss (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/field_name/field_name.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/field_name/field_name.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/field_name/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/components/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/services/doc_views_registry.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/services/doc_views_registry.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/services/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/services/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/tsconfig.json (89%) rename {packages => src/platform/packages/shared}/kbn-unified-doc-viewer/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/__mocks__/services.mock.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/index.ts (100%) create mode 100644 src/platform/packages/shared/kbn-unified-field-list/jest.config.js rename {packages => src/platform/packages/shared}/kbn-unified-field-list/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/error_boundary/error_boundary.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/error_boundary/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/fallback_fields/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/fallback_fields/smart_fields_tooltip.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_item_button/__snapshots__/field_item_button.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_item_button/field_item_button.scss (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_item_button/field_item_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_item_button/field_item_button.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_item_button/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list/field_list.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list/field_list.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_filters/field_list_filters.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_filters/field_name_search.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_filters/field_name_search.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_filters/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.scss (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.scss (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_grouped/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_popover/field_popover.scss (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_popover/field_popover.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_popover/field_popover.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_popover/field_popover_footer.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_popover/field_popover_header.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_popover/field_popover_header.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_popover/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_stats/field_number_summary.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_stats/field_number_summary.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_stats/field_stats.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_stats/field_stats.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_stats/field_summary_message.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_stats/field_top_values.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_stats/field_top_values.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_stats/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button_inner.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_visualize_button/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/services/state_service.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item_stats.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_item/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.scss (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar_container.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/sidebar_toggle_button.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/__snapshots__/use_grouped_fields.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/use_existing_fields.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/use_existing_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/use_field_filters.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/use_field_filters.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/use_grouped_fields.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/use_grouped_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/use_new_fields.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/use_new_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/hooks/use_query_subscriber.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.ts (96%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_examples_calculator/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_existing/field_existing_utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_existing/field_existing_utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_existing/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_existing/load_field_existing.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_stats/__snapshots__/field_stats_utils.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_stats/field_stats_utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_stats/field_stats_utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_stats/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/field_stats/load_field_stats.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/services/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/utils/can_provide_stats.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/utils/can_provide_stats.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/utils/fallback_fields.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/utils/fallback_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/src/utils/get_resolved_date_range.ts (100%) rename {packages => src/platform/packages/shared}/kbn-unified-field-list/tsconfig.json (95%) rename src/{plugins => platform/plugins/shared}/data_view_editor/README.md (100%) rename src/{plugins/saved_objects_finder => platform/plugins/shared/data_view_editor}/jest.config.js (66%) rename src/{plugins => platform/plugins/shared}/data_view_editor/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/_templates.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/_variables.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/advanced_params_content/advanced_params_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/advanced_params_content/advanced_params_section.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/advanced_params_content/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/confirm_modals/edit_data_view_changed_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/data_view_editor.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/data_view_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/data_view_editor_flyout_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/data_view_editor_lazy.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/data_view_flyout_content_container.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/flyout_panels/flyout_panel.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/flyout_panels/flyout_panels.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/flyout_panels/flyout_panels.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/flyout_panels/flyout_panels_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/flyout_panels/flyout_panels_footer.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/flyout_panels/flyout_panels_header.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/flyout_panels/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/footer/footer.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/footer/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_fields/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_fields/name_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_fields/timestamp_field.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_fields/timestamp_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_fields/title_docs_popover.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_fields/title_docs_popover.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_fields/title_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_fields/type_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_schema.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/form_schema.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/loading_indices/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/loading_indices/loading_indices.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/loading_indices/loading_indices.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/indices_list/__snapshots__/indices_list.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/indices_list/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/indices_list/indices_list.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/indices_list/indices_list.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/preview_panel.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/preview_panel.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/status_message/__snapshots__/status_message.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/status_message/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/status_message/status_message.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/preview_panel/status_message/status_message.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/rollup_deprecated_warning/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/components/rollup_deprecated_warning/rollup_deprecated_warning.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/data_view_editor_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/data_view_editor_service.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/data_view_editor_service_lazy.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/can_append_wildcard.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/can_append_wildcard.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/contains_illegal_characters.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/contains_invalid_characters.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/ensure_minimum_time.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/ensure_minimum_time.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/extract_time_fields.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/extract_time_fields.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/get_matched_indices.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/get_matched_indices.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/remove_spaces.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/lib/remove_spaces.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/open_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/plugin.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/shared_imports.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/test_utils/helpers.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/test_utils/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/test_utils/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/test_utils/test_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_editor/tsconfig.json (91%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/README.md (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/field_editor.helpers.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/field_editor.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.helpers.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.helpers.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/helpers/common_actions.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/helpers/http_requests.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/helpers/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/helpers/jest.mocks.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/helpers/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/__jest__/client_integration/helpers/setup_environment.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/common/constants.ts (100%) create mode 100644 src/platform/plugins/shared/data_view_field_editor/jest.config.js rename src/{plugins => platform/plugins/shared}/data_view_field_editor/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/assets/icons/LICENSE.txt (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/assets/icons/cv.png (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/assets/icons/de.png (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/assets/icons/go.png (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/assets/icons/ne.png (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/assets/icons/ni.png (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/assets/icons/stop.png (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/assets/icons/us.png (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/confirm_modals/delete_field_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/confirm_modals/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/confirm_modals/modified_field_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/confirm_modals/save_field_type_or_name_changed_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/delete_field_provider.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/advanced_parameters_section.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/composite_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/field_detail.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/field_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/form_fields/custom_description_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/form_fields/custom_label_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/form_fields/format_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/form_fields/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/form_fields/popularity_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/form_fields/script_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/form_fields/type_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/form_row.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/form_schema.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/lib.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/lib.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/shadowing_field_warning.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor_context.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor_flyout_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor_flyout_content_container.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_editor_loader.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/__snapshots__/format_editor.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/bytes/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/bytes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/color/__snapshots__/color.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/color/color.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/color/color.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/color/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/color/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date/date.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date/date.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/default/__snapshots__/default.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/default/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/default/default.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/default/default.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/default/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/duration/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/duration/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/geo_point/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/geo_point/geo_point.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/geo_point/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/histogram/__snapshots__/histogram.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/histogram/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/histogram/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/number/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/number/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/number/number.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/number/number.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/percent/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/percent/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/__snapshots__/static_lookup.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/string/__snapshots__/string.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/string/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/string/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/string/string.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/string/string.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/truncate/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/truncate/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/truncate/sample.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/url/__snapshots__/url.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/url/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/url/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/url/url.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/editors/url/url.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/field_format_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/format_editor.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/format_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/samples/__snapshots__/samples.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/samples/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/samples/samples.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/samples/samples.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/samples/samples.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/field_format_editor/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/flyout_panels/flyout_panel.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/flyout_panels/flyout_panels.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/flyout_panels/flyout_panels.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/flyout_panels/flyout_panels_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/flyout_panels/flyout_panels_footer.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/flyout_panels/flyout_panels_header.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/flyout_panels/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/documents_nav_preview.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/field_list/field_list.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/field_list/field_list.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/field_list/field_list_item.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/field_preview.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/field_preview.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/field_preview_context.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/field_preview_empty_prompt.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/field_preview_error.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/field_preview_header.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/image_preview_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/is_updating_indicator.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/preview_controller.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/preview/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/components/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/lib/api.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/lib/documentation.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/lib/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/lib/remove_fields.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/lib/runtime_field_validation.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/lib/serialization.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/open_delete_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/open_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/plugin.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/service/field_format_editors/field_format_editors.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/service/field_format_editors/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/service/format_editor_service.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/service/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/shared_imports.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/state_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/server/routes/field_preview.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/server/shared_imports.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_field_editor/tsconfig.json (88%) create mode 100644 src/platform/plugins/shared/data_view_management/jest.config.js rename src/{plugins => platform/plugins/shared}/data_view_management/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/_templates.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/_variables.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/__snapshots__/utils.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/add_data_prompt.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/breadcrumbs.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/create_edit_field/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/edit_index_pattern_state_container.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/index_header/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/indexed_fields_table/__snapshots__/indexed_fields_table.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/__snapshots__/table.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/indexed_fields_table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/relationships_table/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/relationships_table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/relationships_table/relationships_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/remove_data_view.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/__snapshots__/scripted_field_table.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/__snapshots__/call_outs.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/__snapshots__/header.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/__snapshots__/table.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_field_table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/scripted_fields_table/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/__snapshots__/source_filters_table.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/__snapshots__/add_filter.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/__snapshots__/header.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/source_filters_table/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/tabs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/edit_index_pattern/tabs/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/empty_index_list_prompt/__snapshots__/empty_index_list_prompt.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.scss (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/empty_index_list_prompt/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/__snapshots__/field_editor.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/field_format_editor/__snapshots__/field_format_editor.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/field_format_editor/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/warning_call_out.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_call_outs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_help/__snapshots__/help_flyout.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_help/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_help/scripting_syntax.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/constants/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/field_editor.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/field_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/lib/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/lib/validate_script.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/field_editor/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/index_pattern_table/__snapshots__/delete_modal_msg.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/index_pattern_table/data_view_table_controller.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/index_pattern_table/delete_modal_msg.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/index_pattern_table/delete_modal_msg.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/index_pattern_table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/index_pattern_table/index_pattern_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/index_pattern_table/no_data.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/index_pattern_table/spaces_list.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/state_helpers.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/test_utils.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/components/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/management_app/data_view_management_service.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/management_app/data_view_mgmt_selectors.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/management_app/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/management_app/mount_management_section.tsx (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/management_app/state_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/scripting_languages/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/server/routes/preview_scripted_field.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/server/routes/preview_scripted_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/server/routes/resolve_index.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/server/routes/resolve_index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_view_management/tsconfig.json (96%) rename src/{plugins => platform/plugins/shared}/data_views/README.mdx (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/content_management/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/content_management/v1/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/content_management/v1/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/content_management/v1/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_view.stub.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/__snapshots__/data_view.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/__snapshots__/data_view_lazy.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/__snapshots__/data_views.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/abstract_data_views.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/data_view.stub.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/data_view_lazy.stub.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/data_view_lazy.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/data_view_lazy.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/data_view_lazy_util.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/data_views.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/data_views.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/flatten_hit.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/flatten_hit.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/meta_units_to_formatter.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/persistable_state.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/persistable_state.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/data_views/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/errors/data_view_saved_object_conflict.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/errors/duplicate_index_pattern.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/errors/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/errors/insufficient_access.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/expressions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/expressions/load_index_pattern.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/field.stub.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/fields/__snapshots__/data_view_field.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/fields/data_view_field.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/fields/data_view_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/fields/field_list.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/fields/fields.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/fields/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/fields/utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/fields/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/lib/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/lib/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/lib/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/lib/validate_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/lib/validate_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/lib/validate_index_pattern.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/lib/validate_index_pattern.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/stubs.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/common/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/README.md (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/bundled.json (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/bundled.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/create_data_view_request.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/create_data_view_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/create_runtime_field_request.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/create_runtime_field_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/get_data_view_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/get_data_views_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/get_default_data_view_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/get_runtime_field_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/preview_swap_data_view_request.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/set_default_data_view_request.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/swap_data_view_request.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/swap_data_view_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/update_data_view_request.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/update_field_metadata_request.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/examples/update_runtime_field_request.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/headers/kbn_xsrf.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/parameters/field_name.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/parameters/space_id.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/parameters/view_id.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/400_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/404_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/allownoindex.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/create_data_view_request_object.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/data_view_response_object.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/fieldattrs.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/fieldformats.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/namespaces.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/runtimefieldmap.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/sourcefilters.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/swap_data_view_request_object.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/timefieldname.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/title.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/type.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/typemeta.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/typemeta_response.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/components/schemas/update_data_view_request_object.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/entrypoint.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/api@data_views.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/api@data_views@data_view.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@fields.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/api@data_views@default.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/api@data_views@swap_references.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/api@data_views@swap_references@_preview.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/s@{spaceid}@api@data_views.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@fields.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@default.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references.yaml (100%) rename src/{plugins => platform/plugins/shared}/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references@_preview.yaml (100%) rename src/{plugins/data_view_field_editor => platform/plugins/shared/data_views}/jest.config.js (74%) rename src/{plugins => platform/plugins/shared}/data_views/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/content_management_wrapper.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/content_management_wrapper.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/data_views/data_view.stub.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/data_views/data_views_api_client.test.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/data_views/data_views_api_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/data_views/data_views_api_client.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/data_views/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/data_views/sha256.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/data_views/sha256.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/data_views_service_public.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/debounce_by_key.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/debounce_by_key.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/expressions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/expressions/load_index_pattern.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/expressions/load_index_pattern.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/services/__snapshots__/get_indices.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/services/get_indices.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/services/get_indices.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/services/has_data.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/services/has_data.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/services/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/public/ui_settings_wrapper.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/capabilities_provider.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/content_management/data_views_storage.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/content_management/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/content_management/schema/cm_services.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/content_management/schema/v1/cm_services.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/data_views_service_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/deprecations/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/deprecations/scripted_fields.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/deprecations/scripted_fields.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/error.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/expressions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/expressions/load_index_pattern.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/expressions/load_index_pattern.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/index_not_found_exception.json (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/index_patterns_fetcher.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/index_patterns_fetcher.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/es_api.test.js (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/es_api.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/field_capabilities/__fixtures__/es_field_caps_response.json (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/field_capabilities/field_capabilities.test.js (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/field_capabilities/field_capabilities.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/field_capabilities/field_caps_response.test.js (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/field_capabilities/field_caps_response.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/field_capabilities/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/field_capabilities/overrides.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/jobs_compatibility.test.js (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/jobs_compatibility.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/map_capabilities.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/fetcher/lib/merge_capabilities_with_fields.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/has_user_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/has_user_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/index_patterns_api_client.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/register_index_pattern_usage_collection.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/register_index_pattern_usage_collection.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/internal/existing_indices.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/internal/existing_indices.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/internal/fields.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/internal/fields_for.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/internal/fields_for.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/internal/has_data_views.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/internal/has_data_views.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/internal/has_es_data.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/internal/has_es_data.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/create_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/create_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/default_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/default_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/delete_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/delete_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/fields/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/fields/update_fields.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/fields/update_fields.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/get_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/get_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/get_data_views.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/get_data_views.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/has_user_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/has_user_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/__snapshots__/response_formatter.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/scripted_fields/create_scripted_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/scripted_fields/delete_scripted_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/scripted_fields/get_scripted_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/scripted_fields/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/scripted_fields/put_scripted_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/scripted_fields/update_scripted_field.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/swap_references.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/test_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/update_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/update_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/public/util/handle_errors.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/route_types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/rest_api_routes/schema.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/routes.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/saved_objects/data_views.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/saved_objects/index.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/saved_objects/index_pattern_migrations.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/saved_objects/index_pattern_migrations.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/saved_objects/migrations/to_v7_12_0.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/saved_objects_client_wrapper.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/saved_objects_client_wrapper.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/schemas.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/ui_settings.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/ui_settings_wrapper.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/server/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/data_views/tsconfig.json (95%) rename src/{plugins => platform/plugins/shared}/discover/.storybook/discover.webpack.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/.storybook/main.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/README.md (92%) rename src/{plugins => platform/plugins/shared}/discover/common/app_locator.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/app_locator.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/data_sources/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/data_sources/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/data_sources/utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/data_sources/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/data_types/logs/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/embeddable/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/embeddable/search_inject_extract.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/embeddable/search_inject_extract.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/esql_locator.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/utils/sorting/get_default_sort.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/utils/sorting/get_default_sort.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/utils/sorting/get_es_query_sort.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/utils/sorting/get_es_query_sort.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/utils/sorting/get_sort.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/utils/sorting/get_sort.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/utils/sorting/get_sort_for_search_source.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/utils/sorting/get_sort_for_search_source.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/common/utils/sorting/index.ts (100%) rename src/{plugins/discover_shared => platform/plugins/shared/discover}/jest.config.js (74%) rename src/{plugins => platform/plugins/shared}/discover/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__fixtures__/real_hits.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/__storybook_mocks__/get_data_view_mock.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/__storybook_mocks__/with_discover_services.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/config.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/data_view_complex.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/data_view_esql.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/data_view_no_timefield.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/data_view_with_timefield.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/data_views.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/discover_state.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/local_storage_mock.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/saved_search.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/search_session.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/services.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/start_contract.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/ui_settings.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/__mocks__/url_tracker.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/__mocks__/top_nav_menu.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/__mocks__/use_context_app_fetch.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/components/action_bar/_action_bar.scss (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/components/action_bar/action_bar.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/components/action_bar/action_bar.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/components/action_bar/action_bar_warning.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/components/context_error_message/context_error_message.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/components/context_error_message/context_error_message.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/components/context_error_message/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/context_app.scss (86%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/context_app.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/context_app.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/context_app_content.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/context_app_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/context_app_route.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/hooks/use_context_app_fetch.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/hooks/use_context_app_fetch.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/hooks/use_context_app_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/__snapshots__/context.predecessors.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/__snapshots__/context.successors.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/__snapshots__/context.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/_stubs.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/anchor.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/anchor.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/context.predecessors.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/context.successors.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/context.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/context.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/context_query_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/context_state.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/context_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/locator.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/services/locator.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/utils/date_conversion.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/utils/date_conversion.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/utils/fetch_hits_in_interval.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/utils/generate_intervals.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/utils/get_es_query_search_after.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/utils/replace_context_location.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/utils/sorting.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/context/utils/sorting.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/discover_router.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/discover_router.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/doc/components/doc.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/doc/components/doc.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/doc/components/single_doc_viewer.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/doc/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/doc/locator.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/doc/locator.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/doc/single_doc_route.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/field_stats_table/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/field_stats_table/field_stats_tab.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/field_stats_table/field_stats_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/field_stats_table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/field_stats_table/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_documents.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_documents.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_histogram_layout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_histogram_layout.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_layout.scss (95%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_layout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_layout.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_main_content.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_main_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_resizable_layout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/discover_resizable_layout.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/selected_vs_available_callout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/selected_vs_available_callout.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/use_discover_histogram.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/use_discover_histogram.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/use_fetch_more_records.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/use_fetch_more_records.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/layout/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/loading_spinner/loading_spinner.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/loading_spinner/loading_spinner.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/_no_results.scss (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.scss (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_default.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_filters.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_query.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_time_range.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestions.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/syntax_suggestions_popover.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/no_results/no_results_suggestions/use_fetch_occurances_range.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/pattern_analysis/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/pattern_analysis/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/pattern_analysis/pattern_analysis_tab.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/pattern_analysis/pattern_analysis_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/sidebar/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/sidebar/lib/get_field_list.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/sidebar/lib/sidebar_reducer.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/sidebar/lib/sidebar_reducer.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/skip_bottom_button/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.scss (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/__snapshots__/open_search_panel.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/get_inspect.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/get_new_search.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/get_open_search.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/get_share.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/app_menu_actions/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/discover_topnav.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/discover_topnav.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/discover_topnav_inline.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/discover_topnav_inline.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/esql_dataview_transition/esql_dataview_transition_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/esql_dataview_transition/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/get_top_nav_badges.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/get_top_nav_badges.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/on_save_search.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/on_save_search.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/open_search_panel.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/open_search_panel.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/top_nav.scss (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/use_discover_topnav.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/use_top_nav_links.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/top_nav/use_top_nav_links.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/total_documents/total_documents.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/components/uninitialized/uninitialized.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/fetch_all.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/fetch_all.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/fetch_documents.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/fetch_documents.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/fetch_esql.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/fetch_esql.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/get_fetch_observable.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/get_fetch_observeable.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/update_search_source.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/data_fetching/update_search_source.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/discover_main_app.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/discover_main_app.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/discover_main_route.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/discover_main_route.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/grid_customisations/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/grid_customisations/logs.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/sidebar/use_additional_field_groups.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_adhoc_data_views.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_alert_results_toast.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_data_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_discover_state_container.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_esql_mode.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_esql_mode.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_filters_validation.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_inspector.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_inspector.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_is_esql_mode.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_saved_search_messages.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_saved_search_messages.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_url.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_url.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/hooks/use_url_tracking.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_app_state_container.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_app_state_container.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_data_state_container.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_data_state_container.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_global_state_container.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_internal_state_container.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_saved_search_container.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_saved_search_container.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_search_session.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_search_session.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_state.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/discover_state_provider.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/build_state_subscribe.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/build_state_subscribe.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/change_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/change_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/cleanup_url_state.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/cleanup_url_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/get_default_profile_state.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/get_default_profile_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/get_esql_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/get_esql_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/get_state_defaults.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/get_state_defaults.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/load_saved_search.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/resolve_data_view.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/resolve_data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/update_filter_references.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/update_saved_search.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/update_saved_search.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/validate_time_range.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/state_management/utils/validate_time_range.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/utils/aggregate_request_adapter.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/utils/aggregate_request_adapter.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/utils/get_result_state.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/utils/get_result_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/utils/get_valid_view_mode.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/main/utils/get_valid_view_mode.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/not_found/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/not_found/not_found_route.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/view_alert/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/view_alert/view_alert_route.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/application/view_alert/view_alert_utils.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/build_services.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/common/__snapshots__/loading_indicator.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/common/error_alert.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/common/error_callout.stories.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/common/error_callout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/common/error_callout.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/common/loading_indicator.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/common/loading_indicator.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/data_types/logs/service_name_cell.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/data_types/logs/service_name_cell.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/data_types/logs/summary_column/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/data_types/logs/summary_column/summary_column.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_container/discover_container.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_container/discover_container.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_container/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_grid/discover_grid.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_grid/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_grid_flyout/discover_grid_flyout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_grid_flyout/discover_grid_flyout.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_grid_flyout/discover_grid_flyout_actions.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_grid_flyout/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/discover_grid_flyout/use_flyout_actions.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/help_menu/help_menu_util.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/hits_counter/hits_counter.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/hits_counter/hits_counter.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/hits_counter/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/logs_explorer_tabs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/panels_toggle/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/panels_toggle/panels_toggle.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/panels_toggle/panels_toggle.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/view_mode_toggle/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/view_mode_toggle/view_mode_toggle.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/components/view_mode_toggle/view_mode_toggle.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/README.md (98%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/__mocks__/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/composable_profile.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/composable_profile.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/docs/architecture.png (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/docs/merged_accessors.png (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/hooks/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/hooks/use_additional_cell_actions.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/hooks/use_additional_cell_actions.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/hooks/use_profile_accessor.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/hooks/use_profile_accessor.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/hooks/use_profiles.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/hooks/use_profiles.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/hooks/use_root_profile.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/hooks/use_root_profile.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/common/deprecation_logs/consts.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/common/deprecation_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/example/example_context.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/example/example_data_source_profile/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/example/example_document_profile/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/example/example_document_profile/profile.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/example/example_root_profile/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/example/example_root_profile/profile.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/extend_profile_provider.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/extend_profile_provider.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/extract_index_pattern_from.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/extract_index_pattern_from.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/consts.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/get_doc_viewer.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/log_document_profile/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_cell_renderers.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_default_app_state.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_additional_leading_controls.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_indicator_provider.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/consts.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/create_profile_providers.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/get_app_menu.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/observability_root_profile/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/profile_provider_services.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/register_profile_providers.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/register_profile_providers.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/security/accessors/create_app_wrapper_accessor.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/security/security_root_profile/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/security/security_root_profile/profile.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_providers/security/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profile_service.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profiles/data_source_profile.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profiles/document_profile.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profiles/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profiles/root_profile.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profiles_manager.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/profiles_manager.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/context_awareness/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/__mocks__/customization_context.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_provider.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_provider.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_service.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_types/data_table_customisation.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_types/field_list_customisation.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_types/flyout_customization.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_types/histogram_customization.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_types/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_types/search_bar_customization.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/customization_types/top_nav_customization.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/defaults.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/customizations/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/__mocks__/get_mocked_api.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/actions/view_saved_search_action.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/actions/view_saved_search_action.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/actions/view_saved_search_compatibility_check.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/components/saved_search_embeddable_base.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/components/saved_search_grid.scss (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/components/saved_search_grid.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/components/search_embeddable_field_stats_table_component.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/components/search_embeddable_grid_component.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/get_search_embeddable_defaults.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/get_search_embeddable_factory.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/get_search_embeddable_factory.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/initialize_edit_api.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/initialize_edit_api.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/initialize_fetch.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/initialize_fetch.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/initialize_search_embeddable_api.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/utils/get_discover_locator_params.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/utils/get_discover_locator_params.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/utils/serialization_utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/utils/serialization_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/utils/update_search_source.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/embeddable/utils/update_search_source.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/global_search/search_provider.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/global_search/search_provider.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/history_service.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/hooks/saved_search_alias_match_redirect.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/hooks/saved_search_alias_match_redirect.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/hooks/use_data_view.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/hooks/use_data_view.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/hooks/use_discover_services.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/hooks/use_navigation_props.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/hooks/use_navigation_props.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/mocks.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/register_feature.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/services/discover_ebt_manager.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/services/discover_ebt_manager.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/services/saved_searches/restore_from_saved_search.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/services/saved_searches/restore_from_saved_search.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/add_log.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/breadcrumbs.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/breadcrumbs.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/get_allowed_sample_size.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/get_allowed_sample_size.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/get_sharing_data.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/get_sharing_data.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/get_valid_filters.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/get_valid_filters.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/initialize_kbn_url_tracking.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/initialize_kbn_url_tracking.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/migrate_legacy_query.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/on_resize_grid_column.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/on_resize_grid_column.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/sorting/get_sort.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/sorting/get_sort.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/sorting/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/state_helpers.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/validate_time.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/public/utils/validate_time.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/capabilities_provider.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/config.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/embeddable/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/embeddable/search_embeddable_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/columns_from_locator.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/columns_from_locator.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/filters_from_locator.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/query_from_locator.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/searchsource_from_locator.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/searchsource_from_locator.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/service.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/title_from_locator.test.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/locator/title_from_locator.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/sample_data/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/sample_data/register_sample_data.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/server/ui_settings.ts (100%) rename src/{plugins => platform/plugins/shared}/discover/tsconfig.json (97%) rename src/{plugins => platform/plugins/shared}/discover_shared/README.md (97%) rename src/{plugins => platform/plugins/shared}/discover_shared/common/features_registry/features_registry.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/common/features_registry/features_registry.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/common/features_registry/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/common/features_registry/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/common/index.ts (100%) create mode 100644 src/platform/plugins/shared/discover_shared/jest.config.js rename src/{plugins => platform/plugins/shared}/discover_shared/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/public/services/discover_features/discover_features_service.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/public/services/discover_features/discover_features_service.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/public/services/discover_features/index.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/public/services/discover_features/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/discover_shared/tsconfig.json (75%) rename src/{plugins => platform/plugins/shared}/field_formats/README.md (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/constants/base_formatters.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/constants/color_default.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/constants/duration_formats.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/constants/ui_settings.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/content_types/html_content_type.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/content_types/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/content_types/text_content_type.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/boolean.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/boolean.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/bytes.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/bytes.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/color.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/color.tsx (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/currency.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/currency.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/custom.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/date_nanos_shared.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/date_nanos_shared.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/duration.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/duration.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/geo_point.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/geo_point.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/histogram.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/ip.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/ip.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/number.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/number.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/numeral.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/percent.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/percent.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/relative_date.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/relative_date.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/source.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/source.tsx (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/static_lookup.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/string.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/string.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/truncate.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/truncate.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/url.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/converters/url.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/field_format.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/field_format.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/field_formats_registry.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/field_formats_registry.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/types.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/as_pretty_string.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/as_pretty_string.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/geo_utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/geo_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/highlight/highlight_html.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/highlight/highlight_html.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/highlight/highlight_request.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/highlight/highlight_request.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/highlight/highlight_tags.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/highlight/html_tags.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/highlight/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/shorten_dotted_string.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/common/utils/shorten_dotted_string.ts (100%) rename src/{plugins/saved_search => platform/plugins/shared/field_formats}/jest.config.js (66%) rename src/{plugins => platform/plugins/shared}/field_formats/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/index.scss (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/content_types/_html_content_type.scss (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/content_types/_index.scss (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/converters/_index.scss (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/converters/_string.scss (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/converters/date.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/converters/date.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/converters/date_nanos.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/converters/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/lib/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/lib/converters/date_nanos_server.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/lib/converters/date_nanos_server.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/lib/converters/date_server.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/lib/converters/index.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/server/ui_settings.ts (100%) rename src/{plugins => platform/plugins/shared}/field_formats/tsconfig.json (88%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/README.md (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/common/types.ts (100%) create mode 100644 src/platform/plugins/shared/saved_objects_finder/jest.config.js rename src/{plugins => platform/plugins/shared}/saved_objects_finder/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/public/finder/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/public/finder/saved_object_finder.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/public/finder/saved_object_finder.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/server/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/server/ui_settings.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_finder/tsconfig.json (91%) rename src/{plugins => platform/plugins/shared}/saved_search/README.md (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/content_management/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/content_management/v1/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/content_management/v1/types.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/expressions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/expressions/kibana_context.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/expressions/kibana_context.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/expressions/kibana_context_type.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/saved_searches_url.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/saved_searches_url.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/saved_searches_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/service/get_saved_searches.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/service/get_saved_searches.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/service/saved_searches_utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/service/saved_searches_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/common/types.ts (100%) create mode 100644 src/platform/plugins/shared/saved_search/jest.config.js rename src/{plugins => platform/plugins/shared}/saved_search/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/expressions/kibana_context.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/check_for_duplicate_title.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/create_get_saved_search_deps.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/save_saved_searches.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/save_saved_searches.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/saved_searches_service.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/to_saved_search.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/to_saved_search.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/public/services/saved_searches/types.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/content_management/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/content_management/saved_search_storage.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/content_management/schema/cm_services.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/content_management/schema/v1/cm_services.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/expressions/kibana_context.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/saved_objects/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/saved_objects/schema.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/saved_objects/search.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/saved_objects/search_migrations.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/saved_objects/search_migrations.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/services/saved_searches/get_saved_searches.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/server/services/saved_searches/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_search/tsconfig.json (91%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/README.md (100%) create mode 100644 src/platform/plugins/shared/unified_doc_viewer/jest.config.js rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/__mocks__/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/__mocks__/services.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer/doc_viewer.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_flyout/doc_viewer_flyout.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_flyout/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_flyout/use_flyout_a11y.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_degraded_fields.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_header.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_highlights.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field_description.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_section.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/hover_popover_action.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/log_level.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/service_name_highlight_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/timestamp.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/trace_id_highlight_field.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_source/get_height.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_source/get_height.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_source/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_source/source.scss (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_source/source.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_source/source.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/__snapshots__/table_cell_actions.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/field_row.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/table.scss (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/table.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/table_cell.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/table_filters.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/doc_viewer_table/test_filters.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/json_code_editor/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/json_code_editor/json_code_editor.scss (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/json_code_editor/json_code_editor.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/json_code_editor/json_code_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/json_code_editor/json_code_editor_common.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/lazy_doc_viewer.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/lazy_doc_viewer_flyout.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/components/lazy_doc_viewer_logs_overview.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/hooks/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/hooks/use_es_doc_search.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/hooks/use_es_doc_search.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/hooks/use_field_actions.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_doc_viewer/tsconfig.json (88%) rename src/{plugins => platform/plugins/shared}/unified_histogram/README.md (100%) create mode 100644 src/platform/plugins/shared/unified_histogram/jest.config.js rename src/{plugins => platform/plugins/shared}/unified_histogram/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/__mocks__/data_view.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/__mocks__/data_view_with_timefield.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/__mocks__/lens_adapters.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/__mocks__/lens_vis.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/__mocks__/services.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/__mocks__/suggestions.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/__mocks__/table.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/breakdown_field_selector.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/breakdown_field_selector.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/chart.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/chart.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/chart_config_panel.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/chart_config_panel.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/check_chart_availability.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/histogram.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/histogram.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_chart_actions.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_chart_actions.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_chart_styles.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_edit_visualization.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_edit_visualization.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_lens_props.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_lens_props.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_refetch.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_refetch.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_time_range.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_time_range.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_total_hits.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/hooks/use_total_hits.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/lazy.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/time_interval_selector.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/time_interval_selector.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/toolbar_selector.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/utils/build_bucket_interval.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/utils/build_bucket_interval.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/utils/get_chart_agg_config.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/chart/utils/get_chart_agg_configs.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/container.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/container.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/hooks/use_state_props.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/hooks/use_state_props.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/services/state_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/services/state_service.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/utils/local_storage_utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/utils/local_storage_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/utils/state_selectors.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/container/utils/use_state_selector.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/hooks/use_request_params.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/hooks/use_request_params.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/hooks/use_stable_callback.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/hooks/use_stable_callback.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/layout/index.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/layout/layout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/layout/layout.tsx (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/services/lens_vis_service.attributes.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/services/lens_vis_service.suggestions.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/services/lens_vis_service.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/utils/__snapshots__/external_vis_context.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/utils/compute_interval.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/utils/compute_interval.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/utils/external_vis_context.test.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/utils/external_vis_context.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/public/utils/lens_vis_from_table.ts (100%) rename src/{plugins => platform/plugins/shared}/unified_histogram/tsconfig.json (87%) delete mode 100644 src/plugins/data_view_editor/jest.config.js delete mode 100644 src/plugins/data_view_management/jest.config.js delete mode 100644 src/plugins/data_views/jest.config.js delete mode 100644 src/plugins/discover/jest.config.js delete mode 100644 src/plugins/field_formats/jest.config.js delete mode 100644 src/plugins/unified_doc_viewer/jest.config.js delete mode 100644 src/plugins/unified_histogram/jest.config.js rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/common/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/jest.config.js (53%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/actions/explore_data/abstract_explore_data_action.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/actions/explore_data/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/actions/explore_data/shared.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/actions/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/tsconfig.json (92%) create mode 100644 x-pack/platform/plugins/private/discover_enhanced/ui_tests/README.md rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/fixtures/assertion_messages.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/fixtures/constants.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/fixtures/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/fixtures/page_objects/demo.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/fixtures/page_objects/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/playwright.config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/tests/error_handling.spec.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/tests/saved_search_embeddable.spec.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/tests/saved_searches.spec.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/tests/value_suggestions.spec.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/tests/value_suggestions_non_time_based.spec.ts (100%) rename x-pack/{plugins => platform/plugins/private}/discover_enhanced/ui_tests/tests/value_suggestions_use_time_range_disabled.spec.ts (100%) delete mode 100644 x-pack/plugins/discover_enhanced/ui_tests/README.md diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index dd4a666597261..0f46dd8d75496 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -253,7 +253,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^package.json/, /^packages\/kbn-securitysolution-.*/, /^x-pack\/platform\/plugins\/shared\/alerting/, - /^x-pack\/plugins\/data_views\/common/, + /^x-pack\/platform\/plugins\/shared\/data_views\/common/, /^x-pack\/solutions\/security\/plugins\/lists/, /^x-pack\/platform\/plugins\/shared\/rule_registry\/common/, /^x-pack\/solutions\/security\/plugins\/security_solution/, @@ -296,18 +296,18 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ /^package.json/, - /^packages\/kbn-discover-utils/, + /^src\/platform\/packages\/shared\/kbn-discover-utils/, /^packages\/kbn-doc-links/, /^packages\/kbn-dom-drag-drop/, - /^packages\/kbn-es-query/, + /^src\/platform\/packages\/shared\/kbn-es-query/, /^packages\/kbn-i18n/, /^packages\/kbn-i18n-react/, /^src\/platform\/packages\/shared\/kbn-grouping/, - /^packages\/kbn-resizable-layout/, + /^src\/platform\/packages\/shared\/kbn-resizable-layout/, /^packages\/kbn-rison/, /^src\/platform\/packages\/shared\/kbn-rule-data-utils/, /^packages\/kbn-safer-lodash-set/, - /^packages\/kbn-search-types/, + /^src\/platform\/packages\/shared\/kbn-search-types/, /^packages\/kbn-securitysolution-.*/, /^src\/platform\/packages\/shared\/kbn-securitysolution-ecs/, /^x-pack\/solutions\/security\/packages\/kbn-securitysolution-io-ts-alerting-types/, @@ -322,22 +322,22 @@ const getPipeline = (filename: string, removeSteps = true) => { /^src\/plugins\/charts/, /^src\/platform\/plugins\/shared\/controls/, /^src\/plugins\/data/, - /^src\/plugins\/data_views/, - /^src\/plugins\/discover/, - /^src\/plugins\/field_formats/, + /^src\/platform\/plugins\/shared\/data_views/, + /^src\/platform\/plugins\/shared\/discover/, + /^src\/platform\/plugins\/shared\/field_formats/, /^src\/platform\/plugins\/shared\/inspector/, /^src\/plugins\/kibana_react/, /^src\/plugins\/kibana_utils/, - /^src\/plugins\/saved_search/, + /^src\/platform\/plugins\/shared\/saved_search/, /^src\/plugins\/ui_actions/, - /^src\/plugins\/unified_histogram/, + /^src\/platform\/plugins\/shared\/unified_histogram/, /^src\/plugins\/unified_search/, /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/, /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant-common/, /^x-pack\/solutions\/security\/packages/, /^x-pack\/platform\/plugins\/shared\/alerting/, /^x-pack\/platform\/plugins\/shared\/cases/, - /^x-pack\/plugins\/data_views\/common/, + /^x-pack\/platform\/plugins\/shared\/data_views\/common/, /^x-pack\/solutions\/security\/plugins\/elastic_assistant/, /^x-pack\/solutions\/security\/plugins\/lists/, /^x-pack\/platform\/plugins\/shared\/rule_registry\/common/, @@ -391,7 +391,7 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ - /^x-pack\/plugins\/discover_enhanced\/ui_tests/, + /^x-pack\/platform\/plugins\/private\/discover_enhanced\/ui_tests/, /^packages\/kbn-scout/, ])) || GITHUB_PR_LABELS.includes('ci:scout-ui-tests') diff --git a/.buildkite/scripts/steps/functional/scout_ui_tests.sh b/.buildkite/scripts/steps/functional/scout_ui_tests.sh index bee4ec4020882..b568ed9c80b1a 100755 --- a/.buildkite/scripts/steps/functional/scout_ui_tests.sh +++ b/.buildkite/scripts/steps/functional/scout_ui_tests.sh @@ -6,7 +6,7 @@ source .buildkite/scripts/steps/functional/common.sh export JOB=kibana-scout-ui-tests -TEST_CONFIG="x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts" +TEST_CONFIG="x-pack/platform/plugins/private/discover_enhanced/ui_tests/playwright.config.ts" KIBANA_DIR="$KIBANA_BUILD_LOCATION" declare -A TESTS=( diff --git a/.eslintrc.js b/.eslintrc.js index ad2c0194a5ca8..049fa5c987773 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -364,7 +364,7 @@ module.exports = { { files: [ 'packages/kbn-eslint-config/**/*.{js,mjs,ts,tsx}', - 'packages/kbn-datemath/**/*.{js,mjs,ts,tsx}', + 'src/platform/packages/shared/kbn-datemath/**/*.{js,mjs,ts,tsx}', ], rules: { '@kbn/eslint/require-license-header': [ @@ -1577,7 +1577,10 @@ module.exports = { * Discover overrides */ { - files: ['src/plugins/discover/**/*.{ts,tsx}', 'src/plugins/saved_search/**/*.{ts,tsx}'], + files: [ + 'src/platform/plugins/shared/discover/**/*.{ts,tsx}', + 'src/platform/plugins/shared/saved_search/**/*.{ts,tsx}', + ], rules: { '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/ban-ts-comment': [ diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6afd91008f303..b881ae2b86795 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -249,9 +249,7 @@ packages/core/user-profile/core-user-profile-server-mocks @elastic/kibana-core packages/core/user-settings/core-user-settings-server @elastic/kibana-security packages/core/user-settings/core-user-settings-server-internal @elastic/kibana-security packages/core/user-settings/core-user-settings-server-mocks @elastic/kibana-security -packages/deeplinks/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations packages/deeplinks/shared @elastic/appex-sharedux -packages/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations packages/home/sample_data_card @elastic/appex-sharedux packages/home/sample_data_tab @elastic/appex-sharedux packages/home/sample_data_types @elastic/appex-sharedux @@ -286,27 +284,22 @@ packages/kbn-coloring @elastic/kibana-visualizations packages/kbn-config @elastic/kibana-core packages/kbn-config-mocks @elastic/kibana-core packages/kbn-config-schema @elastic/kibana-core -packages/kbn-content-management-utils @elastic/kibana-data-discovery packages/kbn-crypto @elastic/kibana-security packages/kbn-crypto-browser @elastic/kibana-core packages/kbn-cypress-config @elastic/kibana-operations packages/kbn-data-service @elastic/kibana-visualizations @elastic/kibana-data-discovery -packages/kbn-data-view-utils @elastic/kibana-data-discovery -packages/kbn-datemath @elastic/kibana-data-discovery packages/kbn-dependency-ownership @elastic/kibana-security packages/kbn-dependency-usage @elastic/kibana-security packages/kbn-dev-cli-errors @elastic/kibana-operations packages/kbn-dev-cli-runner @elastic/kibana-operations packages/kbn-dev-proc-runner @elastic/kibana-operations packages/kbn-dev-utils @elastic/kibana-operations -packages/kbn-discover-utils @elastic/kibana-data-discovery packages/kbn-docs-utils @elastic/kibana-operations packages/kbn-dom-drag-drop @elastic/kibana-visualizations @elastic/kibana-data-discovery packages/kbn-ebt-tools @elastic/kibana-core packages/kbn-es @elastic/kibana-operations packages/kbn-es-archiver @elastic/kibana-operations @elastic/appex-qa packages/kbn-es-errors @elastic/kibana-core -packages/kbn-es-query @elastic/kibana-data-discovery packages/kbn-es-types @elastic/kibana-core @elastic/obs-knowledge-team packages/kbn-eslint-config @elastic/kibana-operations packages/kbn-eslint-plugin-css @elastic/appex-sharedux @@ -319,8 +312,6 @@ packages/kbn-event-annotation-common @elastic/kibana-visualizations packages/kbn-event-annotation-components @elastic/kibana-visualizations packages/kbn-expect @elastic/kibana-operations @elastic/appex-qa packages/kbn-failed-test-reporter-cli @elastic/kibana-operations @elastic/appex-qa -packages/kbn-field-types @elastic/kibana-data-discovery -packages/kbn-field-utils @elastic/kibana-data-discovery packages/kbn-find-used-node-modules @elastic/kibana-operations packages/kbn-formatters @elastic/obs-ux-logs-team packages/kbn-ftr-common-functional-services @elastic/kibana-operations @elastic/appex-qa @@ -375,7 +366,6 @@ packages/kbn-picomatcher @elastic/kibana-operations packages/kbn-plugin-check @elastic/appex-sharedux packages/kbn-plugin-generator @elastic/kibana-operations packages/kbn-plugin-helpers @elastic/kibana-operations -packages/kbn-react-field @elastic/kibana-data-discovery packages/kbn-react-mute-legacy-root-warning @elastic/appex-sharedux packages/kbn-recently-accessed @elastic/appex-sharedux packages/kbn-relocate @elastic/kibana-core @@ -397,7 +387,6 @@ packages/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux packages/kbn-reporting/mocks_server @elastic/appex-sharedux packages/kbn-reporting/public @elastic/appex-sharedux packages/kbn-reporting/server @elastic/appex-sharedux -packages/kbn-resizable-layout @elastic/kibana-data-discovery packages/kbn-rison @elastic/kibana-operations packages/kbn-router-to-openapispec @elastic/kibana-core packages/kbn-safer-lodash-set @elastic/kibana-security @@ -407,9 +396,6 @@ packages/kbn-scout @elastic/appex-qa packages/kbn-scout-info @elastic/appex-qa packages/kbn-scout-reporting @elastic/appex-qa packages/kbn-screenshotting-server @elastic/appex-sharedux -packages/kbn-search-errors @elastic/kibana-data-discovery -packages/kbn-search-response-warnings @elastic/kibana-data-discovery -packages/kbn-search-types @elastic/kibana-data-discovery packages/kbn-security-hardening @elastic/kibana-security packages/kbn-server-http-tools @elastic/kibana-core packages/kbn-set-map @elastic/kibana-operations @@ -435,10 +421,6 @@ packages/kbn-ui-actions-browser @elastic/appex-sharedux packages/kbn-ui-shared-deps-npm @elastic/kibana-operations packages/kbn-ui-shared-deps-src @elastic/kibana-operations packages/kbn-ui-theme @elastic/kibana-operations -packages/kbn-unified-data-table @elastic/kibana-data-discovery @elastic/security-threat-hunting-investigations -packages/kbn-unified-doc-viewer @elastic/kibana-data-discovery -packages/kbn-unified-field-list @elastic/kibana-data-discovery -packages/kbn-unsaved-changes-badge @elastic/kibana-data-discovery packages/kbn-use-tracked-promise @elastic/obs-ux-logs-team packages/kbn-user-profile-components @elastic/kibana-security packages/kbn-utility-types @elastic/kibana-core @@ -527,6 +509,7 @@ src/core/packages/apps/browser-internal @elastic/kibana-core src/core/packages/apps/server-internal @elastic/kibana-core src/core/packages/base/browser-internal @elastic/kibana-core src/core/packages/base/common @elastic/kibana-core +src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management src/platform/packages/private/default-nav/management @elastic/kibana-management src/platform/packages/private/default-nav/ml @elastic/ml-ui @@ -537,7 +520,9 @@ src/platform/packages/private/kbn-management/settings/components/field_category src/platform/packages/private/kbn-management/settings/components/form @elastic/kibana-management src/platform/packages/private/kbn-mapbox-gl @elastic/kibana-presentation src/platform/packages/private/kbn-panel-loader @elastic/kibana-presentation +src/platform/packages/private/kbn-unsaved-changes-badge @elastic/kibana-data-discovery src/platform/packages/private/response-ops/rule_params @elastic/response-ops +src/platform/packages/shared/deeplinks/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/shared/deeplinks/devtools @elastic/kibana-management src/platform/packages/shared/deeplinks/fleet @elastic/fleet src/platform/packages/shared/deeplinks/management @elastic/kibana-management @@ -554,13 +539,20 @@ src/platform/packages/shared/kbn-apm-utils @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-avc-banner @elastic/security-defend-workflows src/platform/packages/shared/kbn-cases-components @elastic/response-ops src/platform/packages/shared/kbn-cell-actions @elastic/security-threat-hunting-explore +src/platform/packages/shared/kbn-content-management-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team +src/platform/packages/shared/kbn-data-view-utils @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-datemath @elastic/kibana-data-discovery src/platform/packages/shared/kbn-discover-contextual-components @elastic/obs-ux-logs-team @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-discover-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-elastic-agent-utils @elastic/obs-ux-logs-team +src/platform/packages/shared/kbn-es-query @elastic/kibana-data-discovery src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql +src/platform/packages/shared/kbn-field-types @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-field-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-flot-charts @elastic/kibana-presentation @elastic/stack-monitoring src/platform/packages/shared/kbn-grouping @elastic/response-ops src/platform/packages/shared/kbn-io-ts-utils @elastic/obs-knowledge-team @@ -574,12 +566,17 @@ src/platform/packages/shared/kbn-management/settings/utilities @elastic/kibana-m src/platform/packages/shared/kbn-openapi-common @elastic/security-detection-rule-management src/platform/packages/shared/kbn-osquery-io-ts-types @elastic/security-asset-management src/platform/packages/shared/kbn-profiling-utils @elastic/obs-ux-infra_services-team +src/platform/packages/shared/kbn-react-field @elastic/kibana-data-discovery src/platform/packages/shared/kbn-react-hooks @elastic/obs-ux-logs-team +src/platform/packages/shared/kbn-resizable-layout @elastic/kibana-data-discovery src/platform/packages/shared/kbn-router-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-rrule @elastic/response-ops src/platform/packages/shared/kbn-rule-data-utils @elastic/security-detections-response @elastic/response-ops @elastic/obs-ux-management-team src/platform/packages/shared/kbn-search-api-panels @elastic/search-kibana src/platform/packages/shared/kbn-search-connectors @elastic/search-kibana +src/platform/packages/shared/kbn-search-errors @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-search-response-warnings @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-search-types @elastic/kibana-data-discovery src/platform/packages/shared/kbn-securitysolution-ecs @elastic/security-threat-hunting-explore src/platform/packages/shared/kbn-securitysolution-es-utils @elastic/security-detection-engine src/platform/packages/shared/kbn-securitysolution-io-ts-types @elastic/security-detection-engine @@ -596,6 +593,9 @@ src/platform/packages/shared/kbn-timerange @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-triggers-actions-ui-types @elastic/response-ops src/platform/packages/shared/kbn-try-in-console @elastic/search-kibana src/platform/packages/shared/kbn-typed-react-router-config @elastic/obs-knowledge-team @elastic/obs-ux-infra_services-team +src/platform/packages/shared/kbn-unified-data-table @elastic/kibana-data-discovery @elastic/security-threat-hunting-investigations +src/platform/packages/shared/kbn-unified-doc-viewer @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-unified-field-list @elastic/kibana-data-discovery src/platform/packages/shared/kbn-unsaved-changes-prompt @elastic/kibana-management src/platform/packages/shared/kbn-xstate-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-management @@ -613,7 +613,13 @@ src/platform/plugins/shared/console @elastic/kibana-management src/platform/plugins/shared/controls @elastic/kibana-presentation src/platform/plugins/shared/custom_integrations @elastic/fleet src/platform/plugins/shared/dashboard @elastic/kibana-presentation +src/platform/plugins/shared/data_view_editor @elastic/kibana-data-discovery +src/platform/plugins/shared/data_view_field_editor @elastic/kibana-data-discovery +src/platform/plugins/shared/data_view_management @elastic/kibana-data-discovery +src/platform/plugins/shared/data_views @elastic/kibana-data-discovery src/platform/plugins/shared/dev_tools @elastic/kibana-management +src/platform/plugins/shared/discover @elastic/kibana-data-discovery +src/platform/plugins/shared/discover_shared @elastic/kibana-data-discovery @elastic/obs-ux-logs-team src/platform/plugins/shared/embeddable @elastic/kibana-presentation src/platform/plugins/shared/es_ui_shared @elastic/kibana-management src/platform/plugins/shared/esql @elastic/kibana-esql @@ -624,9 +630,14 @@ src/platform/plugins/shared/expression_metric @elastic/kibana-presentation src/platform/plugins/shared/expression_repeat_image @elastic/kibana-presentation src/platform/plugins/shared/expression_reveal_image @elastic/kibana-presentation src/platform/plugins/shared/expression_shape @elastic/kibana-presentation +src/platform/plugins/shared/field_formats @elastic/kibana-data-discovery src/platform/plugins/shared/inspector @elastic/kibana-presentation src/platform/plugins/shared/management @elastic/kibana-management src/platform/plugins/shared/presentation_util @elastic/kibana-presentation +src/platform/plugins/shared/saved_objects_finder @elastic/kibana-data-discovery +src/platform/plugins/shared/saved_search @elastic/kibana-data-discovery +src/platform/plugins/shared/unified_doc_viewer @elastic/kibana-data-discovery +src/platform/plugins/shared/unified_histogram @elastic/kibana-data-discovery src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -639,16 +650,9 @@ src/plugins/chart_expressions/expression_xy @elastic/kibana-visualizations src/plugins/charts @elastic/kibana-visualizations src/plugins/content_management @elastic/appex-sharedux src/plugins/data @elastic/kibana-visualizations @elastic/kibana-data-discovery -src/plugins/data_view_editor @elastic/kibana-data-discovery -src/plugins/data_view_field_editor @elastic/kibana-data-discovery -src/plugins/data_view_management @elastic/kibana-data-discovery -src/plugins/data_views @elastic/kibana-data-discovery -src/plugins/discover @elastic/kibana-data-discovery -src/plugins/discover_shared @elastic/kibana-data-discovery @elastic/obs-ux-logs-team src/plugins/event_annotation @elastic/kibana-visualizations src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations -src/plugins/field_formats @elastic/kibana-data-discovery src/plugins/files @elastic/appex-sharedux src/plugins/files_management @elastic/appex-sharedux src/plugins/ftr_apis @elastic/kibana-core @@ -664,10 +668,8 @@ src/plugins/navigation @elastic/appex-sharedux src/plugins/newsfeed @elastic/kibana-core src/plugins/no_data_page @elastic/appex-sharedux src/plugins/saved_objects @elastic/appex-sharedux -src/plugins/saved_objects_finder @elastic/kibana-data-discovery src/plugins/saved_objects_management @elastic/kibana-core src/plugins/saved_objects_tagging_oss @elastic/appex-sharedux -src/plugins/saved_search @elastic/kibana-data-discovery src/plugins/screenshot_mode @elastic/appex-sharedux src/plugins/share @elastic/appex-sharedux src/plugins/telemetry @elastic/kibana-core @@ -675,8 +677,6 @@ src/plugins/telemetry_collection_manager @elastic/kibana-core src/plugins/telemetry_management_section @elastic/kibana-core src/plugins/ui_actions @elastic/appex-sharedux src/plugins/ui_actions_enhanced @elastic/appex-sharedux -src/plugins/unified_doc_viewer @elastic/kibana-data-discovery -src/plugins/unified_histogram @elastic/kibana-data-discovery src/plugins/unified_search @elastic/kibana-visualizations src/plugins/url_forwarding @elastic/kibana-visualizations src/plugins/usage_collection @elastic/kibana-core @@ -833,6 +833,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration @elastic x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management x-pack/platform/plugins/private/data_usage @elastic/obs-ai-assistant @elastic/security-solution x-pack/platform/plugins/private/data_visualizer @elastic/ml-ui +x-pack/platform/plugins/private/discover_enhanced @elastic/kibana-data-discovery x-pack/platform/plugins/private/file_upload @elastic/kibana-presentation @elastic/ml-ui x-pack/platform/plugins/private/grokdebugger @elastic/kibana-management x-pack/platform/plugins/private/index_lifecycle_management @elastic/kibana-management @@ -887,7 +888,6 @@ x-pack/plugins/cloud_integrations/cloud_experiments @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_full_story @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_links @elastic/kibana-core x-pack/plugins/custom_branding @elastic/appex-sharedux -x-pack/plugins/discover_enhanced @elastic/kibana-data-discovery x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux x-pack/plugins/encrypted_saved_objects @elastic/kibana-security x-pack/plugins/features @elastic/kibana-core @@ -1147,10 +1147,10 @@ x-pack/test_serverless/api_integration/test_suites/common/platform_security @ela /x-pack/test_serverless/functional/test_suites/common/examples/search_examples @elastic/kibana-data-discovery /x-pack/test_serverless/functional/test_suites/common/examples/unified_field_list_examples @elastic/kibana-data-discovery /x-pack/test_serverless/functional/test_suites/common/management/data_views @elastic/kibana-data-discovery -src/plugins/discover/public/context_awareness/profile_providers/security @elastic/kibana-data-discovery @elastic/security-threat-hunting-investigations +src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security @elastic/kibana-data-discovery @elastic/security-threat-hunting-investigations # TODO: this deprecation_logs folder should be owned by kibana management team after 9.0 -src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs @elastic/kibana-data-discovery @elastic/kibana-core -src/plugins/discover/public/context_awareness/profile_providers/observability @elastic/kibana-data-discovery @elastic/obs-ux-logs-team +src/platform/plugins/shared/discover/public/context_awareness/profile_providers/common/deprecation_logs @elastic/kibana-data-discovery @elastic/kibana-core +src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability @elastic/kibana-data-discovery @elastic/obs-ux-logs-team # Platform Docs /x-pack/test_serverless/functional/test_suites/security/screenshot_creation/index.ts @elastic/platform-docs @@ -1436,7 +1436,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/test/functional/apps/dataset_quality @elastic/obs-ux-logs-team /x-pack/test_serverless/functional/test_suites/observability/dataset_quality @elastic/obs-ux-logs-team /x-pack/test_serverless/functional/test_suites/observability/discover @elastic/obs-ux-logs-team @elastic/kibana-data-discovery -/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview @elastic/obs-ux-logs-team +/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview @elastic/obs-ux-logs-team /x-pack/test/api_integration/apis/logs_shared @elastic/obs-ux-logs-team # Observability-ui @@ -1580,7 +1580,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /.eslintignore @elastic/kibana-operations # QA - Appex QA -/x-pack/plugins/discover_enhanced/ui_tests/ @elastic/appex-qa # temporarily +/x-pack/platform/plugins/private/discover_enhanced/ui_tests/ @elastic/appex-qa # temporarily /x-pack/test/functional/fixtures/package_registry_config.yml @elastic/appex-qa # No usages found /x-pack/test/functional/fixtures/kbn_archiver/packaging.json @elastic/appex-qa # No usages found /x-pack/test/functional/es_archives/filebeat @elastic/appex-qa diff --git a/.i18nrc.json b/.i18nrc.json index 22445f4932d8b..47fc9043635a9 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -22,19 +22,19 @@ "controls": "src/platform/plugins/shared/controls", "data": "src/plugins/data", "observabilityAlertDetails": "x-pack/solutions/observability/packages/alert_details", - "dataViews": "src/plugins/data_views", + "dataViews": "src/platform/plugins/shared/data_views", "defaultNavigation": ["packages/default-nav", "src/platform/packages/private/default-nav"], "devTools": "src/platform/plugins/shared/dev_tools", "discover": [ - "src/plugins/discover", - "packages/kbn-discover-utils", + "src/platform/plugins/shared/discover", + "src/platform/packages/shared/kbn-discover-utils", "src/platform/packages/shared/kbn-discover-contextual-components" ], - "savedSearch": "src/plugins/saved_search", + "savedSearch": "src/platform/plugins/shared/saved_search", "embeddableApi": "src/platform/plugins/shared/embeddable", "presentationPanel": "src/platform/plugins/private/presentation_panel", "embeddableExamples": "examples/embeddable_examples", - "esQuery": "packages/kbn-es-query/src", + "esQuery": "src/platform/packages/shared/kbn-es-query/src", "kbnGridLayout": "packages/kbn-grid-layout", "esUi": "src/platform/plugins/shared/es_ui_shared", "expandableFlyout": "packages/kbn-expandable-flyout", @@ -56,8 +56,8 @@ "eventAnnotationListing": "src/plugins/event_annotation_listing", "eventAnnotationCommon": "packages/kbn-event-annotation-common", "eventAnnotationComponents": "packages/kbn-event-annotation-components", - "fieldUtils": "packages/kbn-field-utils", - "fieldFormats": "src/plugins/field_formats", + "fieldUtils": "src/platform/packages/shared/kbn-field-utils", + "fieldFormats": "src/platform/plugins/shared/field_formats", "files": "src/plugins/files", "filesManagement": "src/plugins/files_management", "flot": "src/platform/packages/shared/kbn-flot-charts/lib", @@ -68,9 +68,9 @@ "guidedOnboardingPackage": "packages/kbn-guided-onboarding", "home": "src/plugins/home", "homePackages": "packages/home", - "indexPatternEditor": "src/plugins/data_view_editor", - "indexPatternFieldEditor": "src/plugins/data_view_field_editor", - "indexPatternManagement": "src/plugins/data_view_management", + "indexPatternEditor": "src/platform/plugins/shared/data_view_editor", + "indexPatternFieldEditor": "src/platform/plugins/shared/data_view_field_editor", + "indexPatternManagement": "src/platform/plugins/shared/data_view_management", "inputControl": "src/platform/plugins/private/input_control_vis", "inspector": "src/platform/plugins/shared/inspector", "inspectorViews": "src/legacy/core_plugins/inspector_views", @@ -105,7 +105,7 @@ "esqlUtils": "src/platform/packages/shared/kbn-esql-utils", "reporting": "packages/kbn-reporting", "savedObjects": "src/plugins/saved_objects", - "savedObjectsFinder": "src/plugins/saved_objects_finder", + "savedObjectsFinder": "src/platform/plugins/shared/saved_objects_finder", "savedObjectsManagement": "src/plugins/saved_objects_management", "searchConnectors": "src/platform/packages/shared/kbn-search-connectors", "searchConnectorsPlugin": "x-pack/solutions/search/plugins/search_connectors", @@ -114,10 +114,10 @@ "sharedUXPackages": "packages/shared-ux", "searchApiKeysComponents": "x-pack/solutions/search/packages/kbn-search-api-keys-components", "searchApiPanels": "src/platform/packages/shared/kbn-search-api-panels/", - "searchErrors": "packages/kbn-search-errors", + "searchErrors": "src/platform/packages/shared/kbn-search-errors", "searchIndexDocuments": "x-pack/solutions/search/packages/kbn-search-index-documents", - "searchResponseWarnings": "packages/kbn-search-response-warnings", - "searchTypes": "packages/kbn-search-types", + "searchResponseWarnings": "src/platform/packages/shared/kbn-search-response-warnings", + "searchTypes": "src/platform/packages/shared/kbn-search-types", "securitySolutionPackages": [ "x-pack/solutions/security/packages/data_table", "x-pack/solutions/security/packages/ecs_data_quality_dashboard", @@ -159,12 +159,12 @@ "visualizations": "src/plugins/visualizations", "visualizationUiComponents": "packages/kbn-visualization-ui-components", "visualizationUtils": "packages/kbn-visualization-utils", - "unifiedDocViewer": ["src/plugins/unified_doc_viewer", "packages/kbn-unified-doc-viewer"], + "unifiedDocViewer": ["src/platform/plugins/shared/unified_doc_viewer", "src/platform/packages/shared/kbn-unified-doc-viewer"], "unifiedSearch": "src/plugins/unified_search", - "unifiedFieldList": "packages/kbn-unified-field-list", - "unifiedHistogram": "src/plugins/unified_histogram", - "unifiedDataTable": "packages/kbn-unified-data-table", - "unsavedChangesBadge": "packages/kbn-unsaved-changes-badge", + "unifiedFieldList": "src/platform/packages/shared/kbn-unified-field-list", + "unifiedHistogram": "src/platform/plugins/shared/unified_histogram", + "unifiedDataTable": "src/platform/packages/shared/kbn-unified-data-table", + "unsavedChangesBadge": "src/platform/packages/private/kbn-unsaved-changes-badge", "unsavedChangesPrompt": "src/platform/packages/shared/kbn-unsaved-changes-prompt", "managedContentBadge": "packages/kbn-managed-content-badge", "responseOpsRuleForm": "packages/response-ops/rule_form" diff --git a/docs/developer/advanced/sharing-saved-objects.asciidoc b/docs/developer/advanced/sharing-saved-objects.asciidoc index 27fe81702cd2a..7ec6ba857fed8 100644 --- a/docs/developer/advanced/sharing-saved-objects.asciidoc +++ b/docs/developer/advanced/sharing-saved-objects.asciidoc @@ -390,7 +390,7 @@ const warningMessage = ``` The <> in <> uses a -https://github.com/elastic/kibana/blob/{branch}/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx[similar +https://github.com/elastic/kibana/blob/{branch}/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx[similar approach] to show a warning in its delete confirmation modal: image::images/sharing-saved-objects-step-7.png["Sharing Saved Objects deletion warning"] @@ -429,7 +429,7 @@ Second, display a https://github.com/elastic/kibana/blob/{branch}/x-pack/plugins object, and third, show a https://github.com/elastic/kibana/blob/{branch}/x-pack/plugins/spaces/public/share_saved_objects_to_space/types.ts[flyout] for the user to edit the object's assigned spaces. You may want to follow the example of the <> and -https://github.com/elastic/kibana/blob/{branch}/src/plugins/data_view_management/public/components/index_pattern_table/spaces_list.tsx[combine +https://github.com/elastic/kibana/blob/{branch}/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/spaces_list.tsx[combine these into a single component] so that the space list can be clicked to show the flyout: + ```tsx diff --git a/docs/developer/architecture/core/saved-objects-service.asciidoc b/docs/developer/architecture/core/saved-objects-service.asciidoc index 71ece4ae3d735..1ae419adf9ed8 100644 --- a/docs/developer/architecture/core/saved-objects-service.asciidoc +++ b/docs/developer/architecture/core/saved-objects-service.asciidoc @@ -100,7 +100,7 @@ by a type will be nested under a top-level field that matches the type name. For example, the mappings defined by the `search` Saved Object type: -https://github.com/elastic/kibana/blob/main/src/plugins/saved_search/server/saved_objects/search.ts#L19-L70[.src/plugins/saved_search/server/saved_objects/search.ts] +https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/saved_search/server/saved_objects/search.ts#L19-L70[.src/platform/plugins/shared/saved_search/server/saved_objects/search.ts] [source,typescript] ---- import { SavedObjectsType } from 'src/core/server'; diff --git a/docs/developer/best-practices/navigation.asciidoc b/docs/developer/best-practices/navigation.asciidoc index 05247574641af..222a99770bbeb 100644 --- a/docs/developer/best-practices/navigation.asciidoc +++ b/docs/developer/best-practices/navigation.asciidoc @@ -58,7 +58,7 @@ const discoverUrl = await plugins.discover.locator.getUrl({filters, timeRange}); await plugins.discover.locator.navigate({filters, timeRange}); ---- -To get a better idea, take a look at *Discover* locator {kib-repo}tree/{branch}/src/plugins/discover/public/application/doc/locator.ts[implementation]. +To get a better idea, take a look at *Discover* locator {kib-repo}tree/{branch}/src/platform/plugins/shared/discover/public/application/doc/locator.ts[implementation]. It allows specifying various **Discover** app state pieces like: index pattern, filters, query, time range and more. There are two ways to access locators of other apps: diff --git a/docs/developer/contributing/development-unit-tests.asciidoc b/docs/developer/contributing/development-unit-tests.asciidoc index 0a21dbbb449cc..f6667e803026e 100644 --- a/docs/developer/contributing/development-unit-tests.asciidoc +++ b/docs/developer/contributing/development-unit-tests.asciidoc @@ -13,7 +13,7 @@ it's more efficient to supply the Jest configuration file when running. ["source","shell"] ----------- -yarn jest --config src/plugins/discover/jest.config.js +yarn jest --config src/platform/plugins/shared/discover/jest.config.js ----------- [discrete] diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 4ba990a6a425d..fac0213f56d5e 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -61,19 +61,19 @@ as uiSettings within the code. |The data plugin provides common data access services, such as search and query, for solutions and application developers. -|{kib-repo}blob/{branch}/src/plugins/data_view_editor/README.md[dataViewEditor] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/data_view_editor/README.md[dataViewEditor] |Create data views from within Kibana apps. -|{kib-repo}blob/{branch}/src/plugins/data_view_field_editor/README.md[dataViewFieldEditor] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/data_view_field_editor/README.md[dataViewFieldEditor] |The reusable field editor across Kibana! -|{kib-repo}blob/{branch}/src/plugins/data_view_management[dataViewManagement] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/data_view_management[dataViewManagement] |WARNING: Missing README. -|{kib-repo}blob/{branch}/src/plugins/data_views/README.mdx[dataViews] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/data_views/README.mdx[dataViews] |The data views API provides a consistent method of structuring and formatting documents and field lists across the various Kibana apps. It's typically used in conjunction with for composing queries. @@ -86,11 +86,11 @@ Routing will be handled by the id of the dev tool - your dev tool will be mounte This API doesn't support angular, for registering angular dev tools, bootstrap a local module on mount into the given HTML element. -|{kib-repo}blob/{branch}/src/plugins/discover/README.md[discover] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/discover/README.md[discover] |Contains the Discover application and the saved search embeddable. -|{kib-repo}blob/{branch}/src/plugins/discover_shared/README.md[discoverShared] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/discover_shared/README.md[discoverShared] |A stateful layer to register shared features and provide an access point to discover without a direct dependency. @@ -192,7 +192,7 @@ for use in their own application. |Expression XY plugin adds a xy renderer and function to the expression plugin. The renderer will display the xy chart. -|{kib-repo}blob/{branch}/src/plugins/field_formats/README.md[fieldFormats] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/field_formats/README.md[fieldFormats] |Index pattern fields formatters @@ -290,7 +290,7 @@ Content is fetched from the remote (https://feeds.elastic.co) once a day, with p |NOTE: This plugin is deprecated and will be removed in 8.0. See https://github.com/elastic/kibana/issues/46435 for more information. -|{kib-repo}blob/{branch}/src/plugins/saved_objects_finder/README.md[savedObjectsFinder] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/saved_objects_finder/README.md[savedObjectsFinder] |The savedObjectsFinder plugin exposes a UI for finding saved objects on the client side. @@ -303,7 +303,7 @@ Content is fetched from the remote (https://feeds.elastic.co) once a day, with p oss plugins. -|{kib-repo}blob/{branch}/src/plugins/saved_search/README.md[savedSearch] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/saved_search/README.md[savedSearch] |Contains the saved search saved object definition and helpers. This object is created when a user saves their current session in the Discover app. @@ -357,11 +357,11 @@ In general this plugin provides: |Registers commercially licensed generic actions like per panel time range and contains some code that supports drilldown work. -|{kib-repo}blob/{branch}/src/plugins/unified_doc_viewer/README.md[unifiedDocViewer] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/unified_doc_viewer/README.md[unifiedDocViewer] |This plugin contains services reliant on the plugin lifecycle for the unified doc viewer component (see @kbn/unified-doc-viewer). -|{kib-repo}blob/{branch}/src/plugins/unified_histogram/README.md[unifiedHistogram] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/unified_histogram/README.md[unifiedHistogram] |Unified Histogram is a UX Building Block including a layout with a resizable histogram and a main display. It manages its own state and data fetching, and can easily be dropped into pages with minimal setup. @@ -546,7 +546,7 @@ Plugin server-side only. Plugin has three main functions: |The data_visualizer plugin enables you to explore the fields in your data. -|{kib-repo}blob/{branch}/x-pack/plugins/discover_enhanced/README.md[discoverEnhanced] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/discover_enhanced/README.md[discoverEnhanced] |Contains the enhancements to the OSS discover app. diff --git a/examples/unified_doc_viewer/README.md b/examples/unified_doc_viewer/README.md index fea17c5e9cde8..f77d96b5fdd59 100644 --- a/examples/unified_doc_viewer/README.md +++ b/examples/unified_doc_viewer/README.md @@ -1,3 +1,3 @@ ## Unified Doc Viewer -An example plugin showing usage of the unified doc viewer plugin (plugins/unified_doc_viewer) and package (@kbn/unified-doc-viewer). \ No newline at end of file +An example plugin showing usage of the unified doc viewer plugin (platform/plugins/shared/unified_doc_viewer) and package (@kbn/unified-doc-viewer). \ No newline at end of file diff --git a/examples/unified_field_list_examples/public/plugin.ts b/examples/unified_field_list_examples/public/plugin.ts index 616f212019588..27c60a677c766 100644 --- a/examples/unified_field_list_examples/public/plugin.ts +++ b/examples/unified_field_list_examples/public/plugin.ts @@ -53,7 +53,7 @@ export class UnifiedFieldListExamplesPlugin links: [ { label: 'README', - href: 'https://github.com/elastic/kibana/tree/main/packages/kbn-unified-field-list/README.md', + href: 'https://github.com/elastic/kibana/tree/main/src/platform/packages/shared/kbn-unified-field-list/README.md', iconType: 'logoGithub', target: '_blank', size: 's', diff --git a/legacy_rfcs/text/0015_bazel.md b/legacy_rfcs/text/0015_bazel.md index 390a2d68eb7ab..e41717380746f 100644 --- a/legacy_rfcs/text/0015_bazel.md +++ b/legacy_rfcs/text/0015_bazel.md @@ -191,9 +191,9 @@ A `BUILD.bazel` file will be added to the root of each package defining a `build The `@kbn/pm` package was updated in https://github.com/elastic/kibana/pull/89961 to run the new packages build target, invoked by calling `bazel build //packages:build`, before executing the existing legacy package builds. -The build targets will no longer reside within the package themselves and instead will be within the `bazel/bin` directory. To account for this, any defined dependency will need to be updated to reference the new directory (example: `link:bazel/bin/packages/kbn-datemath`). While also in this transition period, the build will need to copy over the packages from `bazel/bin` into the `node_modules` of the build target. +The build targets will no longer reside within the package themselves and instead will be within the `bazel/bin` directory. To account for this, any defined dependency will need to be updated to reference the new directory (example: `link:bazel/bin/src/platform/packages/shared/kbn-datemath`). While also in this transition period, the build will need to copy over the packages from `bazel/bin` into the `node_modules` of the build target. -Example package BUILD.bazel for `packages/kbn-datemath`: +Example package BUILD.bazel for `src/platform/packages/shared/kbn-datemath`: ```python load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm") diff --git a/oas_docs/scripts/merge_ess_oas.js b/oas_docs/scripts/merge_ess_oas.js index 280a1f657020f..adf28c089bf55 100644 --- a/oas_docs/scripts/merge_ess_oas.js +++ b/oas_docs/scripts/merge_ess_oas.js @@ -17,7 +17,7 @@ const { REPO_ROOT } = require('@kbn/repo-info'); `${REPO_ROOT}/oas_docs/bundle.json`, `${REPO_ROOT}/x-pack/platform/plugins/shared/alerting/docs/openapi/bundled.yaml`, `${REPO_ROOT}/x-pack/platform/plugins/shared/cases/docs/openapi/bundled.yaml`, - `${REPO_ROOT}/src/plugins/data_views/docs/openapi/bundled.yaml`, + `${REPO_ROOT}/src/platform/plugins/shared/data_views/docs/openapi/bundled.yaml`, `${REPO_ROOT}/x-pack/platform/plugins/shared/ml/common/openapi/ml_apis.yaml`, `${REPO_ROOT}/packages/core/saved-objects/docs/openapi/bundled.yaml`, diff --git a/oas_docs/scripts/merge_serverless_oas.js b/oas_docs/scripts/merge_serverless_oas.js index 4445e952d62f2..d4377d27ca192 100644 --- a/oas_docs/scripts/merge_serverless_oas.js +++ b/oas_docs/scripts/merge_serverless_oas.js @@ -15,7 +15,7 @@ const { REPO_ROOT } = require('@kbn/repo-info'); await merge({ sourceGlobs: [ `${REPO_ROOT}/oas_docs/bundle.serverless.json`, - `${REPO_ROOT}/src/plugins/data_views/docs/openapi/bundled.yaml`, + `${REPO_ROOT}/src/platform/plugins/shared/data_views/docs/openapi/bundled.yaml`, `${REPO_ROOT}/x-pack/platform/plugins/shared/ml/common/openapi/ml_apis_serverless.yaml`, `${REPO_ROOT}/packages/core/saved-objects/docs/openapi/bundled_serverless.yaml`, diff --git a/package.json b/package.json index 03fb0e10a0257..ff1a27daab3c7 100644 --- a/package.json +++ b/package.json @@ -241,7 +241,7 @@ "@kbn/content-management-table-list-view-common": "link:packages/content-management/table_list_view_common", "@kbn/content-management-table-list-view-table": "link:packages/content-management/table_list_view_table", "@kbn/content-management-user-profiles": "link:packages/content-management/user_profiles", - "@kbn/content-management-utils": "link:packages/kbn-content-management-utils", + "@kbn/content-management-utils": "link:src/platform/packages/shared/kbn-content-management-utils", "@kbn/controls-example-plugin": "link:examples/controls_example", "@kbn/controls-plugin": "link:src/platform/plugins/shared/controls", "@kbn/core": "link:src/core", @@ -429,16 +429,16 @@ "@kbn/data-service": "link:packages/kbn-data-service", "@kbn/data-stream-adapter": "link:x-pack/solutions/security/packages/data-stream-adapter", "@kbn/data-usage-plugin": "link:x-pack/platform/plugins/private/data_usage", - "@kbn/data-view-editor-plugin": "link:src/plugins/data_view_editor", + "@kbn/data-view-editor-plugin": "link:src/platform/plugins/shared/data_view_editor", "@kbn/data-view-field-editor-example-plugin": "link:examples/data_view_field_editor_example", - "@kbn/data-view-field-editor-plugin": "link:src/plugins/data_view_field_editor", - "@kbn/data-view-management-plugin": "link:src/plugins/data_view_management", - "@kbn/data-view-utils": "link:packages/kbn-data-view-utils", - "@kbn/data-views-plugin": "link:src/plugins/data_views", + "@kbn/data-view-field-editor-plugin": "link:src/platform/plugins/shared/data_view_field_editor", + "@kbn/data-view-management-plugin": "link:src/platform/plugins/shared/data_view_management", + "@kbn/data-view-utils": "link:src/platform/packages/shared/kbn-data-view-utils", + "@kbn/data-views-plugin": "link:src/platform/plugins/shared/data_views", "@kbn/data-visualizer-plugin": "link:x-pack/platform/plugins/private/data_visualizer", "@kbn/dataset-quality-plugin": "link:x-pack/platform/plugins/shared/dataset_quality", - "@kbn/datemath": "link:packages/kbn-datemath", - "@kbn/deeplinks-analytics": "link:packages/deeplinks/analytics", + "@kbn/datemath": "link:src/platform/packages/shared/kbn-datemath", + "@kbn/deeplinks-analytics": "link:src/platform/packages/shared/deeplinks/analytics", "@kbn/deeplinks-devtools": "link:src/platform/packages/shared/deeplinks/devtools", "@kbn/deeplinks-fleet": "link:src/platform/packages/shared/deeplinks/fleet", "@kbn/deeplinks-management": "link:src/platform/packages/shared/deeplinks/management", @@ -447,7 +447,7 @@ "@kbn/deeplinks-search": "link:src/platform/packages/shared/deeplinks/search", "@kbn/deeplinks-security": "link:src/platform/packages/shared/deeplinks/security", "@kbn/deeplinks-shared": "link:packages/deeplinks/shared", - "@kbn/default-nav-analytics": "link:packages/default-nav/analytics", + "@kbn/default-nav-analytics": "link:src/platform/packages/private/default-nav/analytics", "@kbn/default-nav-devtools": "link:src/platform/packages/private/default-nav/devtools", "@kbn/default-nav-management": "link:src/platform/packages/private/default-nav/management", "@kbn/default-nav-ml": "link:src/platform/packages/private/default-nav/ml", @@ -455,10 +455,10 @@ "@kbn/developer-examples-plugin": "link:examples/developer_examples", "@kbn/discover-contextual-components": "link:src/platform/packages/shared/kbn-discover-contextual-components", "@kbn/discover-customization-examples-plugin": "link:examples/discover_customization_examples", - "@kbn/discover-enhanced-plugin": "link:x-pack/plugins/discover_enhanced", - "@kbn/discover-plugin": "link:src/plugins/discover", - "@kbn/discover-shared-plugin": "link:src/plugins/discover_shared", - "@kbn/discover-utils": "link:packages/kbn-discover-utils", + "@kbn/discover-enhanced-plugin": "link:x-pack/platform/plugins/private/discover_enhanced", + "@kbn/discover-plugin": "link:src/platform/plugins/shared/discover", + "@kbn/discover-shared-plugin": "link:src/platform/plugins/shared/discover_shared", + "@kbn/discover-utils": "link:src/platform/packages/shared/kbn-discover-utils", "@kbn/doc-links": "link:src/platform/packages/shared/kbn-doc-links", "@kbn/dom-drag-drop": "link:packages/kbn-dom-drag-drop", "@kbn/ebt-tools": "link:packages/kbn-ebt-tools", @@ -483,7 +483,7 @@ "@kbn/entityManager-plugin": "link:x-pack/platform/plugins/shared/entity_manager", "@kbn/error-boundary-example-plugin": "link:examples/error_boundary", "@kbn/es-errors": "link:packages/kbn-es-errors", - "@kbn/es-query": "link:packages/kbn-es-query", + "@kbn/es-query": "link:src/platform/packages/shared/kbn-es-query", "@kbn/es-types": "link:packages/kbn-es-types", "@kbn/es-ui-shared-plugin": "link:src/platform/plugins/shared/es_ui_shared", "@kbn/eso-model-version-example": "link:examples/eso_model_version_example", @@ -528,9 +528,9 @@ "@kbn/features-provider-plugin": "link:x-pack/test/security_api_integration/plugins/features_provider", "@kbn/fec-alerts-test-plugin": "link:x-pack/test/functional_execution_context/plugins/alerts", "@kbn/field-formats-example-plugin": "link:examples/field_formats_example", - "@kbn/field-formats-plugin": "link:src/plugins/field_formats", - "@kbn/field-types": "link:packages/kbn-field-types", - "@kbn/field-utils": "link:packages/kbn-field-utils", + "@kbn/field-formats-plugin": "link:src/platform/plugins/shared/field_formats", + "@kbn/field-types": "link:src/platform/packages/shared/kbn-field-types", + "@kbn/field-utils": "link:src/platform/packages/shared/kbn-field-utils", "@kbn/fields-metadata-plugin": "link:x-pack/platform/plugins/shared/fields_metadata", "@kbn/file-upload-plugin": "link:x-pack/platform/plugins/private/file_upload", "@kbn/files-example-plugin": "link:examples/files_example", @@ -733,7 +733,7 @@ "@kbn/profiling-plugin": "link:x-pack/solutions/observability/plugins/profiling", "@kbn/profiling-utils": "link:src/platform/packages/shared/kbn-profiling-utils", "@kbn/random-sampling": "link:x-pack/packages/kbn-random-sampling", - "@kbn/react-field": "link:packages/kbn-react-field", + "@kbn/react-field": "link:src/platform/packages/shared/kbn-react-field", "@kbn/react-hooks": "link:src/platform/packages/shared/kbn-react-hooks", "@kbn/react-kibana-context-common": "link:packages/react/kibana_context/common", "@kbn/react-kibana-context-render": "link:packages/react/kibana_context/render", @@ -759,7 +759,7 @@ "@kbn/reporting-plugin": "link:x-pack/plugins/reporting", "@kbn/reporting-public": "link:packages/kbn-reporting/public", "@kbn/reporting-server": "link:packages/kbn-reporting/server", - "@kbn/resizable-layout": "link:packages/kbn-resizable-layout", + "@kbn/resizable-layout": "link:src/platform/packages/shared/kbn-resizable-layout", "@kbn/resizable-layout-examples-plugin": "link:examples/resizable_layout_examples", "@kbn/resolver-test-plugin": "link:x-pack/test/plugin_functional/plugins/resolver_test", "@kbn/response-ops-feature-flag-service": "link:packages/response-ops/feature_flag_service", @@ -783,7 +783,7 @@ "@kbn/saved-object-export-transforms-plugin": "link:test/plugin_functional/plugins/saved_object_export_transforms", "@kbn/saved-object-import-warnings-plugin": "link:test/plugin_functional/plugins/saved_object_import_warnings", "@kbn/saved-object-test-plugin": "link:x-pack/test/saved_object_api_integration/common/plugins/saved_object_test_plugin", - "@kbn/saved-objects-finder-plugin": "link:src/plugins/saved_objects_finder", + "@kbn/saved-objects-finder-plugin": "link:src/platform/plugins/shared/saved_objects_finder", "@kbn/saved-objects-hidden-from-http-apis-type-plugin": "link:test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type", "@kbn/saved-objects-hidden-type-plugin": "link:test/plugin_functional/plugins/saved_objects_hidden_type", "@kbn/saved-objects-management-plugin": "link:src/plugins/saved_objects_management", @@ -792,7 +792,7 @@ "@kbn/saved-objects-tagging-oss-plugin": "link:src/plugins/saved_objects_tagging_oss", "@kbn/saved-objects-tagging-plugin": "link:x-pack/plugins/saved_objects_tagging", "@kbn/saved-search-component": "link:packages/kbn-saved-search-component", - "@kbn/saved-search-plugin": "link:src/plugins/saved_search", + "@kbn/saved-search-plugin": "link:src/platform/plugins/shared/saved_search", "@kbn/screenshot-mode-example-plugin": "link:examples/screenshot_mode_example", "@kbn/screenshot-mode-plugin": "link:src/plugins/screenshot_mode", "@kbn/screenshotting-example-plugin": "link:x-pack/examples/screenshotting_example", @@ -804,7 +804,7 @@ "@kbn/search-assistant": "link:x-pack/solutions/search/plugins/search_assistant", "@kbn/search-connectors": "link:src/platform/packages/shared/kbn-search-connectors", "@kbn/search-connectors-plugin": "link:x-pack/solutions/search/plugins/search_connectors", - "@kbn/search-errors": "link:packages/kbn-search-errors", + "@kbn/search-errors": "link:src/platform/packages/shared/kbn-search-errors", "@kbn/search-examples-plugin": "link:examples/search_examples", "@kbn/search-homepage": "link:x-pack/solutions/search/plugins/search_homepage", "@kbn/search-index-documents": "link:x-pack/solutions/search/packages/kbn-search-index-documents", @@ -813,9 +813,9 @@ "@kbn/search-navigation": "link:x-pack/solutions/search/plugins/search_solution/search_navigation", "@kbn/search-notebooks": "link:x-pack/solutions/search/plugins/search_notebooks", "@kbn/search-playground": "link:x-pack/solutions/search/plugins/search_playground", - "@kbn/search-response-warnings": "link:packages/kbn-search-response-warnings", + "@kbn/search-response-warnings": "link:src/platform/packages/shared/kbn-search-response-warnings", "@kbn/search-shared-ui": "link:x-pack/solutions/search/packages/search/shared_ui", - "@kbn/search-types": "link:packages/kbn-search-types", + "@kbn/search-types": "link:src/platform/packages/shared/kbn-search-types", "@kbn/searchprofiler-plugin": "link:x-pack/platform/plugins/shared/searchprofiler", "@kbn/security-api-key-management": "link:x-pack/packages/security/api_key_management", "@kbn/security-authorization-core": "link:x-pack/packages/security/authorization_core", @@ -984,15 +984,15 @@ "@kbn/ui-shared-deps-npm": "link:packages/kbn-ui-shared-deps-npm", "@kbn/ui-shared-deps-src": "link:packages/kbn-ui-shared-deps-src", "@kbn/ui-theme": "link:packages/kbn-ui-theme", - "@kbn/unified-data-table": "link:packages/kbn-unified-data-table", - "@kbn/unified-doc-viewer": "link:packages/kbn-unified-doc-viewer", + "@kbn/unified-data-table": "link:src/platform/packages/shared/kbn-unified-data-table", + "@kbn/unified-doc-viewer": "link:src/platform/packages/shared/kbn-unified-doc-viewer", "@kbn/unified-doc-viewer-examples": "link:examples/unified_doc_viewer", - "@kbn/unified-doc-viewer-plugin": "link:src/plugins/unified_doc_viewer", - "@kbn/unified-field-list": "link:packages/kbn-unified-field-list", + "@kbn/unified-doc-viewer-plugin": "link:src/platform/plugins/shared/unified_doc_viewer", + "@kbn/unified-field-list": "link:src/platform/packages/shared/kbn-unified-field-list", "@kbn/unified-field-list-examples-plugin": "link:examples/unified_field_list_examples", - "@kbn/unified-histogram-plugin": "link:src/plugins/unified_histogram", + "@kbn/unified-histogram-plugin": "link:src/platform/plugins/shared/unified_histogram", "@kbn/unified-search-plugin": "link:src/plugins/unified_search", - "@kbn/unsaved-changes-badge": "link:packages/kbn-unsaved-changes-badge", + "@kbn/unsaved-changes-badge": "link:src/platform/packages/private/kbn-unsaved-changes-badge", "@kbn/unsaved-changes-prompt": "link:src/platform/packages/shared/kbn-unsaved-changes-prompt", "@kbn/upgrade-assistant-plugin": "link:x-pack/plugins/upgrade_assistant", "@kbn/uptime-plugin": "link:x-pack/solutions/observability/plugins/uptime", diff --git a/packages/kbn-discover-utils/jest.config.js b/packages/kbn-discover-utils/jest.config.js deleted file mode 100644 index bd23673f58fc6..0000000000000 --- a/packages/kbn-discover-utils/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-discover-utils'], -}; diff --git a/packages/kbn-es-query/jest.config.js b/packages/kbn-es-query/jest.config.js deleted file mode 100644 index 1e2d38eadb14c..0000000000000 --- a/packages/kbn-es-query/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-es-query'], -}; diff --git a/packages/kbn-field-types/jest.config.js b/packages/kbn-field-types/jest.config.js deleted file mode 100644 index cf0b8da770b67..0000000000000 --- a/packages/kbn-field-types/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-field-types'], -}; diff --git a/packages/kbn-field-utils/jest.config.js b/packages/kbn-field-utils/jest.config.js deleted file mode 100644 index 94ce2d54707df..0000000000000 --- a/packages/kbn-field-utils/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-field-utils'], -}; diff --git a/packages/kbn-react-field/jest.config.js b/packages/kbn-react-field/jest.config.js deleted file mode 100644 index 2a23ce2dbf5af..0000000000000 --- a/packages/kbn-react-field/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-react-field'], -}; diff --git a/packages/kbn-resizable-layout/jest.config.js b/packages/kbn-resizable-layout/jest.config.js deleted file mode 100644 index 8639b6e2f53f5..0000000000000 --- a/packages/kbn-resizable-layout/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-resizable-layout'], -}; diff --git a/packages/kbn-search-errors/jest.config.js b/packages/kbn-search-errors/jest.config.js deleted file mode 100644 index 4ce3b0c88cafe..0000000000000 --- a/packages/kbn-search-errors/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-search-errors'], -}; diff --git a/packages/kbn-search-response-warnings/jest.config.js b/packages/kbn-search-response-warnings/jest.config.js deleted file mode 100644 index 4a40e9bc41e72..0000000000000 --- a/packages/kbn-search-response-warnings/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-search-response-warnings'], -}; diff --git a/packages/kbn-search-types/jest.config.js b/packages/kbn-search-types/jest.config.js deleted file mode 100644 index 253150353efec..0000000000000 --- a/packages/kbn-search-types/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-search-types'], -}; diff --git a/packages/kbn-test/src/functional_tests/lib/babel_register_for_test_plugins.js b/packages/kbn-test/src/functional_tests/lib/babel_register_for_test_plugins.js index 4a3edd0559a79..6ea4679d00f76 100644 --- a/packages/kbn-test/src/functional_tests/lib/babel_register_for_test_plugins.js +++ b/packages/kbn-test/src/functional_tests/lib/babel_register_for_test_plugins.js @@ -19,7 +19,7 @@ require('@kbn/babel-register').install({ 'x-pack/examples', // TODO: should should probably remove this link back to the source 'x-pack/platform/plugins/shared/task_manager/server/config.ts', - 'src/plugins/field_formats/common', + 'src/platform/plugins/shared/field_formats/common', 'packages', 'x-pack/packages', ].map((path) => Path.resolve(REPO_ROOT, path)), diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel index fdc69c9b0216d..12cb35139759b 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel @@ -27,11 +27,11 @@ webpack_cli( "//packages/kbn-ebt-tools", "//src/platform/packages/shared/kbn-esql-ast", "//packages/kbn-monaco", - "//packages/kbn-datemath", + "//src/platform/packages/shared/kbn-datemath", "//packages/kbn-analytics", "//packages/kbn-crypto-browser", - "//packages/kbn-es-query", - "//packages/kbn-search-errors", + "//src/platform/packages/shared/kbn-es-query", + "//src/platform/packages/shared/kbn-search-errors", "//packages/kbn-std", "//packages/kbn-safer-lodash-set", "//packages/kbn-peggy", diff --git a/packages/kbn-unified-data-table/jest.config.js b/packages/kbn-unified-data-table/jest.config.js deleted file mode 100644 index 3dd4c7b7caa5e..0000000000000 --- a/packages/kbn-unified-data-table/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-unified-data-table'], -}; diff --git a/packages/kbn-unified-doc-viewer/jest.config.js b/packages/kbn-unified-doc-viewer/jest.config.js deleted file mode 100644 index 66b935fd153af..0000000000000 --- a/packages/kbn-unified-doc-viewer/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-unified-doc-viewer'], -}; diff --git a/packages/kbn-unified-field-list/jest.config.js b/packages/kbn-unified-field-list/jest.config.js deleted file mode 100644 index c1f4746ab0aa0..0000000000000 --- a/packages/kbn-unified-field-list/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-unified-field-list'], -}; diff --git a/packages/kbn-unsaved-changes-badge/jest.config.js b/packages/kbn-unsaved-changes-badge/jest.config.js deleted file mode 100644 index 15fd87f791fc7..0000000000000 --- a/packages/kbn-unsaved-changes-badge/jest.config.js +++ /dev/null @@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-unsaved-changes-badge'], -}; diff --git a/packages/shared-ux/prompt/no_data_views/types/index.d.ts b/packages/shared-ux/prompt/no_data_views/types/index.d.ts index 7bca285bee717..b9796bc4c4d89 100644 --- a/packages/shared-ux/prompt/no_data_views/types/index.d.ts +++ b/packages/shared-ux/prompt/no_data_views/types/index.d.ts @@ -11,7 +11,7 @@ import { EuiEmptyPromptProps } from '@elastic/eui'; import type { ILocatorClient } from '@kbn/share-plugin/common/url_service'; /** - * TODO: `DataView` is a class exported by `src/plugins/data_views/public`. Since this service + * TODO: `DataView` is a class exported by `src/platform/plugins/shared/data_views/public`. Since this service * is contained in this package-- and packages can only depend on other packages and never on * plugins-- we have to set this to `unknown`. If and when `DataView` is exported from a * stateless package, we can remove this. @@ -23,7 +23,7 @@ type DataView = unknown; /** * A subset of the `DataViewEditorOptions` interface relevant to our service and components. * - * @see: src/plugins/data_view_editor/public/types.ts + * @see: src/platform/plugins/shared/data_view_editor/public/types.ts */ interface DataViewEditorOptions { /** Handler to be invoked when the Data View Editor completes a save operation. */ diff --git a/src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt b/src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt index 565187b84aac9..e0ac92a856d05 100644 --- a/src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt +++ b/src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt @@ -31,22 +31,22 @@ x-pack/platform/plugins/shared/dashboard_enhanced/public/services/drilldowns/das x-pack/platform/plugins/shared/dashboard_enhanced/public/services/drilldowns/index.ts kibana-app x-pack/platform/plugins/shared/dashboard_enhanced/public/services/index.ts kibana-app x-pack/platform/plugins/shared/dashboard_enhanced/scripts/storybook.js kibana-app -x-pack/plugins/discover_enhanced/common/config.ts kibana-app -x-pack/plugins/discover_enhanced/common/index.ts kibana-app -x-pack/plugins/discover_enhanced/public/actions/explore_data/abstract_explore_data_action.ts kibana-app -x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts kibana-app -x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts kibana-app -x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.test.ts kibana-app -x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts kibana-app -x-pack/plugins/discover_enhanced/public/actions/explore_data/index.ts kibana-app -x-pack/plugins/discover_enhanced/public/actions/explore_data/kibana_url.ts kibana-app -x-pack/plugins/discover_enhanced/public/actions/explore_data/shared.ts kibana-app -x-pack/plugins/discover_enhanced/public/actions/index.ts kibana-app -x-pack/plugins/discover_enhanced/public/index.ts kibana-app -x-pack/plugins/discover_enhanced/public/plugin.ts kibana-app -x-pack/plugins/discover_enhanced/server/config.ts kibana-app -x-pack/plugins/discover_enhanced/server/index.ts kibana-app -x-pack/plugins/discover_enhanced/server/plugin.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/common/config.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/common/index.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/abstract_explore_data_action.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.test.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/index.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/kibana_url.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/shared.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/actions/index.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/index.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/public/plugin.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/server/config.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/server/index.ts kibana-app +x-pack/platform/plugins/private/discover_enhanced/server/plugin.ts kibana-app x-pack/plugins/lens/common/api.ts kibana-app x-pack/plugins/lens/common/constants.ts kibana-app x-pack/plugins/lens/common/index.ts kibana-app diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index cc36e3abe4466..973020ef679c7 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -30,7 +30,7 @@ export const storybookAliases = { dashboard_enhanced: 'x-pack/platform/plugins/shared/dashboard_enhanced/.storybook', dashboard: 'src/platform/plugins/shared/dashboard/.storybook', data: 'src/plugins/data/.storybook', - discover: 'src/plugins/discover/.storybook', + discover: 'src/platform/plugins/shared/discover/.storybook', esql_ast_inspector: 'examples/esql_ast_inspector/.storybook', es_ui_shared: 'src/platform/plugins/shared/es_ui_shared/.storybook', expandable_flyout: 'x-pack/solutions/security/packages/expandable-flyout/.storybook', diff --git a/packages/default-nav/analytics/README.md b/src/platform/packages/private/default-nav/analytics/README.md similarity index 100% rename from packages/default-nav/analytics/README.md rename to src/platform/packages/private/default-nav/analytics/README.md diff --git a/packages/default-nav/analytics/default_navigation.ts b/src/platform/packages/private/default-nav/analytics/default_navigation.ts similarity index 100% rename from packages/default-nav/analytics/default_navigation.ts rename to src/platform/packages/private/default-nav/analytics/default_navigation.ts diff --git a/packages/default-nav/analytics/index.ts b/src/platform/packages/private/default-nav/analytics/index.ts similarity index 100% rename from packages/default-nav/analytics/index.ts rename to src/platform/packages/private/default-nav/analytics/index.ts diff --git a/src/platform/packages/private/default-nav/analytics/jest.config.js b/src/platform/packages/private/default-nav/analytics/jest.config.js new file mode 100644 index 0000000000000..500550f45f31a --- /dev/null +++ b/src/platform/packages/private/default-nav/analytics/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/packages/private/default-nav/analytics'], +}; diff --git a/packages/default-nav/analytics/kibana.jsonc b/src/platform/packages/private/default-nav/analytics/kibana.jsonc similarity index 100% rename from packages/default-nav/analytics/kibana.jsonc rename to src/platform/packages/private/default-nav/analytics/kibana.jsonc diff --git a/packages/default-nav/analytics/package.json b/src/platform/packages/private/default-nav/analytics/package.json similarity index 100% rename from packages/default-nav/analytics/package.json rename to src/platform/packages/private/default-nav/analytics/package.json diff --git a/packages/default-nav/analytics/tsconfig.json b/src/platform/packages/private/default-nav/analytics/tsconfig.json similarity index 85% rename from packages/default-nav/analytics/tsconfig.json rename to src/platform/packages/private/default-nav/analytics/tsconfig.json index 190b6bd1195eb..b65158e2d041d 100644 --- a/packages/default-nav/analytics/tsconfig.json +++ b/src/platform/packages/private/default-nav/analytics/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-unsaved-changes-badge/README.md b/src/platform/packages/private/kbn-unsaved-changes-badge/README.md similarity index 100% rename from packages/kbn-unsaved-changes-badge/README.md rename to src/platform/packages/private/kbn-unsaved-changes-badge/README.md diff --git a/packages/kbn-unsaved-changes-badge/index.ts b/src/platform/packages/private/kbn-unsaved-changes-badge/index.ts similarity index 100% rename from packages/kbn-unsaved-changes-badge/index.ts rename to src/platform/packages/private/kbn-unsaved-changes-badge/index.ts diff --git a/src/platform/packages/private/kbn-unsaved-changes-badge/jest.config.js b/src/platform/packages/private/kbn-unsaved-changes-badge/jest.config.js new file mode 100644 index 0000000000000..7f0092f198798 --- /dev/null +++ b/src/platform/packages/private/kbn-unsaved-changes-badge/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-unsaved-changes-badge'], +}; diff --git a/packages/kbn-unsaved-changes-badge/kibana.jsonc b/src/platform/packages/private/kbn-unsaved-changes-badge/kibana.jsonc similarity index 100% rename from packages/kbn-unsaved-changes-badge/kibana.jsonc rename to src/platform/packages/private/kbn-unsaved-changes-badge/kibana.jsonc diff --git a/packages/kbn-unsaved-changes-badge/package.json b/src/platform/packages/private/kbn-unsaved-changes-badge/package.json similarity index 100% rename from packages/kbn-unsaved-changes-badge/package.json rename to src/platform/packages/private/kbn-unsaved-changes-badge/package.json diff --git a/packages/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/__snapshots__/unsaved_changes_badge.test.tsx.snap b/src/platform/packages/private/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/__snapshots__/unsaved_changes_badge.test.tsx.snap similarity index 100% rename from packages/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/__snapshots__/unsaved_changes_badge.test.tsx.snap rename to src/platform/packages/private/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/__snapshots__/unsaved_changes_badge.test.tsx.snap diff --git a/packages/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/index.ts b/src/platform/packages/private/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/index.ts similarity index 100% rename from packages/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/index.ts rename to src/platform/packages/private/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/index.ts diff --git a/packages/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.test.tsx b/src/platform/packages/private/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.test.tsx similarity index 100% rename from packages/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.test.tsx rename to src/platform/packages/private/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.test.tsx diff --git a/packages/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.tsx b/src/platform/packages/private/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.tsx similarity index 100% rename from packages/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.tsx rename to src/platform/packages/private/kbn-unsaved-changes-badge/src/components/unsaved_changes_badge/unsaved_changes_badge.tsx diff --git a/packages/kbn-unsaved-changes-badge/src/utils/__snapshots__/get_top_nav_unsaved_changes_badge.test.tsx.snap b/src/platform/packages/private/kbn-unsaved-changes-badge/src/utils/__snapshots__/get_top_nav_unsaved_changes_badge.test.tsx.snap similarity index 100% rename from packages/kbn-unsaved-changes-badge/src/utils/__snapshots__/get_top_nav_unsaved_changes_badge.test.tsx.snap rename to src/platform/packages/private/kbn-unsaved-changes-badge/src/utils/__snapshots__/get_top_nav_unsaved_changes_badge.test.tsx.snap diff --git a/packages/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.test.tsx b/src/platform/packages/private/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.test.tsx similarity index 100% rename from packages/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.test.tsx rename to src/platform/packages/private/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.test.tsx diff --git a/packages/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.tsx b/src/platform/packages/private/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.tsx similarity index 100% rename from packages/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.tsx rename to src/platform/packages/private/kbn-unsaved-changes-badge/src/utils/get_top_nav_unsaved_changes_badge.tsx diff --git a/packages/kbn-unsaved-changes-badge/tsconfig.json b/src/platform/packages/private/kbn-unsaved-changes-badge/tsconfig.json similarity index 82% rename from packages/kbn-unsaved-changes-badge/tsconfig.json rename to src/platform/packages/private/kbn-unsaved-changes-badge/tsconfig.json index 1c80dd5dae638..26af93f78bd79 100644 --- a/packages/kbn-unsaved-changes-badge/tsconfig.json +++ b/src/platform/packages/private/kbn-unsaved-changes-badge/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-unsaved-changes-badge/types.ts b/src/platform/packages/private/kbn-unsaved-changes-badge/types.ts similarity index 100% rename from packages/kbn-unsaved-changes-badge/types.ts rename to src/platform/packages/private/kbn-unsaved-changes-badge/types.ts diff --git a/packages/deeplinks/analytics/README.md b/src/platform/packages/shared/deeplinks/analytics/README.md similarity index 100% rename from packages/deeplinks/analytics/README.md rename to src/platform/packages/shared/deeplinks/analytics/README.md diff --git a/packages/deeplinks/analytics/constants.ts b/src/platform/packages/shared/deeplinks/analytics/constants.ts similarity index 100% rename from packages/deeplinks/analytics/constants.ts rename to src/platform/packages/shared/deeplinks/analytics/constants.ts diff --git a/packages/deeplinks/analytics/deep_links.ts b/src/platform/packages/shared/deeplinks/analytics/deep_links.ts similarity index 100% rename from packages/deeplinks/analytics/deep_links.ts rename to src/platform/packages/shared/deeplinks/analytics/deep_links.ts diff --git a/packages/deeplinks/analytics/index.ts b/src/platform/packages/shared/deeplinks/analytics/index.ts similarity index 100% rename from packages/deeplinks/analytics/index.ts rename to src/platform/packages/shared/deeplinks/analytics/index.ts diff --git a/src/platform/packages/shared/deeplinks/analytics/jest.config.js b/src/platform/packages/shared/deeplinks/analytics/jest.config.js new file mode 100644 index 0000000000000..1a59c71064534 --- /dev/null +++ b/src/platform/packages/shared/deeplinks/analytics/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/deeplinks/analytics'], +}; diff --git a/packages/deeplinks/analytics/kibana.jsonc b/src/platform/packages/shared/deeplinks/analytics/kibana.jsonc similarity index 100% rename from packages/deeplinks/analytics/kibana.jsonc rename to src/platform/packages/shared/deeplinks/analytics/kibana.jsonc diff --git a/packages/deeplinks/analytics/package.json b/src/platform/packages/shared/deeplinks/analytics/package.json similarity index 100% rename from packages/deeplinks/analytics/package.json rename to src/platform/packages/shared/deeplinks/analytics/package.json diff --git a/packages/deeplinks/analytics/tsconfig.json b/src/platform/packages/shared/deeplinks/analytics/tsconfig.json similarity index 81% rename from packages/deeplinks/analytics/tsconfig.json rename to src/platform/packages/shared/deeplinks/analytics/tsconfig.json index 94b099694eaf4..af23c916b5d13 100644 --- a/packages/deeplinks/analytics/tsconfig.json +++ b/src/platform/packages/shared/deeplinks/analytics/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-content-management-utils/README.md b/src/platform/packages/shared/kbn-content-management-utils/README.md similarity index 100% rename from packages/kbn-content-management-utils/README.md rename to src/platform/packages/shared/kbn-content-management-utils/README.md diff --git a/packages/kbn-content-management-utils/index.ts b/src/platform/packages/shared/kbn-content-management-utils/index.ts similarity index 100% rename from packages/kbn-content-management-utils/index.ts rename to src/platform/packages/shared/kbn-content-management-utils/index.ts diff --git a/src/platform/packages/shared/kbn-content-management-utils/jest.config.js b/src/platform/packages/shared/kbn-content-management-utils/jest.config.js new file mode 100644 index 0000000000000..ade2f6967be50 --- /dev/null +++ b/src/platform/packages/shared/kbn-content-management-utils/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-content-management-utils'], +}; diff --git a/packages/kbn-content-management-utils/kibana.jsonc b/src/platform/packages/shared/kbn-content-management-utils/kibana.jsonc similarity index 100% rename from packages/kbn-content-management-utils/kibana.jsonc rename to src/platform/packages/shared/kbn-content-management-utils/kibana.jsonc diff --git a/packages/kbn-content-management-utils/package.json b/src/platform/packages/shared/kbn-content-management-utils/package.json similarity index 100% rename from packages/kbn-content-management-utils/package.json rename to src/platform/packages/shared/kbn-content-management-utils/package.json diff --git a/packages/kbn-content-management-utils/src/msearch.ts b/src/platform/packages/shared/kbn-content-management-utils/src/msearch.ts similarity index 100% rename from packages/kbn-content-management-utils/src/msearch.ts rename to src/platform/packages/shared/kbn-content-management-utils/src/msearch.ts diff --git a/packages/kbn-content-management-utils/src/saved_object_content_storage.test.ts b/src/platform/packages/shared/kbn-content-management-utils/src/saved_object_content_storage.test.ts similarity index 100% rename from packages/kbn-content-management-utils/src/saved_object_content_storage.test.ts rename to src/platform/packages/shared/kbn-content-management-utils/src/saved_object_content_storage.test.ts diff --git a/packages/kbn-content-management-utils/src/saved_object_content_storage.ts b/src/platform/packages/shared/kbn-content-management-utils/src/saved_object_content_storage.ts similarity index 100% rename from packages/kbn-content-management-utils/src/saved_object_content_storage.ts rename to src/platform/packages/shared/kbn-content-management-utils/src/saved_object_content_storage.ts diff --git a/packages/kbn-content-management-utils/src/schema.ts b/src/platform/packages/shared/kbn-content-management-utils/src/schema.ts similarity index 100% rename from packages/kbn-content-management-utils/src/schema.ts rename to src/platform/packages/shared/kbn-content-management-utils/src/schema.ts diff --git a/packages/kbn-content-management-utils/src/types.ts b/src/platform/packages/shared/kbn-content-management-utils/src/types.ts similarity index 100% rename from packages/kbn-content-management-utils/src/types.ts rename to src/platform/packages/shared/kbn-content-management-utils/src/types.ts diff --git a/packages/kbn-content-management-utils/src/utils.ts b/src/platform/packages/shared/kbn-content-management-utils/src/utils.ts similarity index 100% rename from packages/kbn-content-management-utils/src/utils.ts rename to src/platform/packages/shared/kbn-content-management-utils/src/utils.ts diff --git a/packages/kbn-content-management-utils/tsconfig.json b/src/platform/packages/shared/kbn-content-management-utils/tsconfig.json similarity index 90% rename from packages/kbn-content-management-utils/tsconfig.json rename to src/platform/packages/shared/kbn-content-management-utils/tsconfig.json index dd279ed3f5284..1f21540e1a90a 100644 --- a/packages/kbn-content-management-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-content-management-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-data-view-utils/README.md b/src/platform/packages/shared/kbn-data-view-utils/README.md similarity index 100% rename from packages/kbn-data-view-utils/README.md rename to src/platform/packages/shared/kbn-data-view-utils/README.md diff --git a/packages/kbn-data-view-utils/index.ts b/src/platform/packages/shared/kbn-data-view-utils/index.ts similarity index 100% rename from packages/kbn-data-view-utils/index.ts rename to src/platform/packages/shared/kbn-data-view-utils/index.ts diff --git a/src/platform/packages/shared/kbn-data-view-utils/jest.config.js b/src/platform/packages/shared/kbn-data-view-utils/jest.config.js new file mode 100644 index 0000000000000..e6ea686c42f5a --- /dev/null +++ b/src/platform/packages/shared/kbn-data-view-utils/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-data-view-utils'], +}; diff --git a/packages/kbn-data-view-utils/kibana.jsonc b/src/platform/packages/shared/kbn-data-view-utils/kibana.jsonc similarity index 100% rename from packages/kbn-data-view-utils/kibana.jsonc rename to src/platform/packages/shared/kbn-data-view-utils/kibana.jsonc diff --git a/packages/kbn-data-view-utils/package.json b/src/platform/packages/shared/kbn-data-view-utils/package.json similarity index 100% rename from packages/kbn-data-view-utils/package.json rename to src/platform/packages/shared/kbn-data-view-utils/package.json diff --git a/packages/kbn-data-view-utils/src/constants.ts b/src/platform/packages/shared/kbn-data-view-utils/src/constants.ts similarity index 100% rename from packages/kbn-data-view-utils/src/constants.ts rename to src/platform/packages/shared/kbn-data-view-utils/src/constants.ts diff --git a/packages/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.test.ts b/src/platform/packages/shared/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.test.ts similarity index 100% rename from packages/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.test.ts rename to src/platform/packages/shared/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.test.ts diff --git a/packages/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.ts b/src/platform/packages/shared/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.ts similarity index 100% rename from packages/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.ts rename to src/platform/packages/shared/kbn-data-view-utils/src/utils/convert_to_data_view_field_spec.ts diff --git a/packages/kbn-data-view-utils/src/utils/create_regexp_pattern_from.test.ts b/src/platform/packages/shared/kbn-data-view-utils/src/utils/create_regexp_pattern_from.test.ts similarity index 100% rename from packages/kbn-data-view-utils/src/utils/create_regexp_pattern_from.test.ts rename to src/platform/packages/shared/kbn-data-view-utils/src/utils/create_regexp_pattern_from.test.ts diff --git a/packages/kbn-data-view-utils/src/utils/create_regexp_pattern_from.ts b/src/platform/packages/shared/kbn-data-view-utils/src/utils/create_regexp_pattern_from.ts similarity index 100% rename from packages/kbn-data-view-utils/src/utils/create_regexp_pattern_from.ts rename to src/platform/packages/shared/kbn-data-view-utils/src/utils/create_regexp_pattern_from.ts diff --git a/packages/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.test.ts b/src/platform/packages/shared/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.test.ts similarity index 100% rename from packages/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.test.ts rename to src/platform/packages/shared/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.test.ts diff --git a/packages/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.ts b/src/platform/packages/shared/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.ts similarity index 100% rename from packages/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.ts rename to src/platform/packages/shared/kbn-data-view-utils/src/utils/test_pattern_against_allowed_list.ts diff --git a/packages/kbn-data-view-utils/tsconfig.json b/src/platform/packages/shared/kbn-data-view-utils/tsconfig.json similarity index 85% rename from packages/kbn-data-view-utils/tsconfig.json rename to src/platform/packages/shared/kbn-data-view-utils/tsconfig.json index 05400030e1001..023253c56e6d0 100644 --- a/packages/kbn-data-view-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-data-view-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-datemath/.npmignore b/src/platform/packages/shared/kbn-datemath/.npmignore similarity index 100% rename from packages/kbn-datemath/.npmignore rename to src/platform/packages/shared/kbn-datemath/.npmignore diff --git a/packages/kbn-datemath/BUILD.bazel b/src/platform/packages/shared/kbn-datemath/BUILD.bazel similarity index 100% rename from packages/kbn-datemath/BUILD.bazel rename to src/platform/packages/shared/kbn-datemath/BUILD.bazel diff --git a/packages/kbn-datemath/README.md b/src/platform/packages/shared/kbn-datemath/README.md similarity index 100% rename from packages/kbn-datemath/README.md rename to src/platform/packages/shared/kbn-datemath/README.md diff --git a/packages/kbn-datemath/index.test.js b/src/platform/packages/shared/kbn-datemath/index.test.js similarity index 100% rename from packages/kbn-datemath/index.test.js rename to src/platform/packages/shared/kbn-datemath/index.test.js diff --git a/packages/kbn-datemath/index.ts b/src/platform/packages/shared/kbn-datemath/index.ts similarity index 100% rename from packages/kbn-datemath/index.ts rename to src/platform/packages/shared/kbn-datemath/index.ts diff --git a/packages/kbn-datemath/jest.config.js b/src/platform/packages/shared/kbn-datemath/jest.config.js similarity index 90% rename from packages/kbn-datemath/jest.config.js rename to src/platform/packages/shared/kbn-datemath/jest.config.js index 9f3d7546a6fc4..6c4b2687ed429 100644 --- a/packages/kbn-datemath/jest.config.js +++ b/src/platform/packages/shared/kbn-datemath/jest.config.js @@ -19,7 +19,7 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-datemath'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-datemath'], testEnvironment: 'jsdom', }; diff --git a/packages/kbn-datemath/kibana.jsonc b/src/platform/packages/shared/kbn-datemath/kibana.jsonc similarity index 100% rename from packages/kbn-datemath/kibana.jsonc rename to src/platform/packages/shared/kbn-datemath/kibana.jsonc diff --git a/packages/kbn-datemath/package.json b/src/platform/packages/shared/kbn-datemath/package.json similarity index 100% rename from packages/kbn-datemath/package.json rename to src/platform/packages/shared/kbn-datemath/package.json diff --git a/packages/kbn-datemath/tsconfig.json b/src/platform/packages/shared/kbn-datemath/tsconfig.json similarity index 77% rename from packages/kbn-datemath/tsconfig.json rename to src/platform/packages/shared/kbn-datemath/tsconfig.json index 2649fb45f0a42..da2779733bab0 100644 --- a/packages/kbn-datemath/tsconfig.json +++ b/src/platform/packages/shared/kbn-datemath/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-discover-utils/README.md b/src/platform/packages/shared/kbn-discover-utils/README.md similarity index 100% rename from packages/kbn-discover-utils/README.md rename to src/platform/packages/shared/kbn-discover-utils/README.md diff --git a/packages/kbn-discover-utils/index.ts b/src/platform/packages/shared/kbn-discover-utils/index.ts similarity index 100% rename from packages/kbn-discover-utils/index.ts rename to src/platform/packages/shared/kbn-discover-utils/index.ts diff --git a/src/platform/packages/shared/kbn-discover-utils/jest.config.js b/src/platform/packages/shared/kbn-discover-utils/jest.config.js new file mode 100644 index 0000000000000..3c871c9758d63 --- /dev/null +++ b/src/platform/packages/shared/kbn-discover-utils/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-discover-utils'], +}; diff --git a/packages/kbn-discover-utils/kibana.jsonc b/src/platform/packages/shared/kbn-discover-utils/kibana.jsonc similarity index 100% rename from packages/kbn-discover-utils/kibana.jsonc rename to src/platform/packages/shared/kbn-discover-utils/kibana.jsonc diff --git a/packages/kbn-discover-utils/package.json b/src/platform/packages/shared/kbn-discover-utils/package.json similarity index 100% rename from packages/kbn-discover-utils/package.json rename to src/platform/packages/shared/kbn-discover-utils/package.json diff --git a/packages/kbn-discover-utils/src/__mocks__/additional_field_groups.ts b/src/platform/packages/shared/kbn-discover-utils/src/__mocks__/additional_field_groups.ts similarity index 100% rename from packages/kbn-discover-utils/src/__mocks__/additional_field_groups.ts rename to src/platform/packages/shared/kbn-discover-utils/src/__mocks__/additional_field_groups.ts diff --git a/packages/kbn-discover-utils/src/__mocks__/data_view.ts b/src/platform/packages/shared/kbn-discover-utils/src/__mocks__/data_view.ts similarity index 100% rename from packages/kbn-discover-utils/src/__mocks__/data_view.ts rename to src/platform/packages/shared/kbn-discover-utils/src/__mocks__/data_view.ts diff --git a/packages/kbn-discover-utils/src/__mocks__/es_hits.ts b/src/platform/packages/shared/kbn-discover-utils/src/__mocks__/es_hits.ts similarity index 100% rename from packages/kbn-discover-utils/src/__mocks__/es_hits.ts rename to src/platform/packages/shared/kbn-discover-utils/src/__mocks__/es_hits.ts diff --git a/packages/kbn-discover-utils/src/__mocks__/index.ts b/src/platform/packages/shared/kbn-discover-utils/src/__mocks__/index.ts similarity index 100% rename from packages/kbn-discover-utils/src/__mocks__/index.ts rename to src/platform/packages/shared/kbn-discover-utils/src/__mocks__/index.ts diff --git a/packages/kbn-discover-utils/src/__mocks__/logs_context_service.ts b/src/platform/packages/shared/kbn-discover-utils/src/__mocks__/logs_context_service.ts similarity index 100% rename from packages/kbn-discover-utils/src/__mocks__/logs_context_service.ts rename to src/platform/packages/shared/kbn-discover-utils/src/__mocks__/logs_context_service.ts diff --git a/packages/kbn-discover-utils/src/components/app_menu/__snapshots__/app_menu_registry.test.ts.snap b/src/platform/packages/shared/kbn-discover-utils/src/components/app_menu/__snapshots__/app_menu_registry.test.ts.snap similarity index 100% rename from packages/kbn-discover-utils/src/components/app_menu/__snapshots__/app_menu_registry.test.ts.snap rename to src/platform/packages/shared/kbn-discover-utils/src/components/app_menu/__snapshots__/app_menu_registry.test.ts.snap diff --git a/packages/kbn-discover-utils/src/components/app_menu/app_menu_registry.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/components/app_menu/app_menu_registry.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/components/app_menu/app_menu_registry.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/components/app_menu/app_menu_registry.test.ts diff --git a/packages/kbn-discover-utils/src/components/app_menu/app_menu_registry.ts b/src/platform/packages/shared/kbn-discover-utils/src/components/app_menu/app_menu_registry.ts similarity index 100% rename from packages/kbn-discover-utils/src/components/app_menu/app_menu_registry.ts rename to src/platform/packages/shared/kbn-discover-utils/src/components/app_menu/app_menu_registry.ts diff --git a/packages/kbn-discover-utils/src/components/app_menu/types.ts b/src/platform/packages/shared/kbn-discover-utils/src/components/app_menu/types.ts similarity index 100% rename from packages/kbn-discover-utils/src/components/app_menu/types.ts rename to src/platform/packages/shared/kbn-discover-utils/src/components/app_menu/types.ts diff --git a/packages/kbn-discover-utils/src/components/custom_control_columns/degraded_docs_control.tsx b/src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/degraded_docs_control.tsx similarity index 100% rename from packages/kbn-discover-utils/src/components/custom_control_columns/degraded_docs_control.tsx rename to src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/degraded_docs_control.tsx diff --git a/packages/kbn-discover-utils/src/components/custom_control_columns/index.ts b/src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/index.ts similarity index 100% rename from packages/kbn-discover-utils/src/components/custom_control_columns/index.ts rename to src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/index.ts diff --git a/packages/kbn-discover-utils/src/components/custom_control_columns/stacktrace_control.tsx b/src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/stacktrace_control.tsx similarity index 100% rename from packages/kbn-discover-utils/src/components/custom_control_columns/stacktrace_control.tsx rename to src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/stacktrace_control.tsx diff --git a/packages/kbn-discover-utils/src/components/custom_control_columns/types.ts b/src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/types.ts similarity index 100% rename from packages/kbn-discover-utils/src/components/custom_control_columns/types.ts rename to src/platform/packages/shared/kbn-discover-utils/src/components/custom_control_columns/types.ts diff --git a/packages/kbn-discover-utils/src/constants.ts b/src/platform/packages/shared/kbn-discover-utils/src/constants.ts similarity index 100% rename from packages/kbn-discover-utils/src/constants.ts rename to src/platform/packages/shared/kbn-discover-utils/src/constants.ts diff --git a/packages/kbn-discover-utils/src/data_types/index.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/index.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/index.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/index.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/components/index.tsx b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/index.tsx similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/components/index.tsx rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/index.tsx diff --git a/packages/kbn-discover-utils/src/data_types/logs/components/log_level_badge.test.tsx b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/log_level_badge.test.tsx similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/components/log_level_badge.test.tsx rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/log_level_badge.test.tsx diff --git a/packages/kbn-discover-utils/src/data_types/logs/components/log_level_badge.tsx b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/log_level_badge.tsx similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/components/log_level_badge.tsx rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/components/log_level_badge.tsx diff --git a/packages/kbn-discover-utils/src/data_types/logs/constants.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/constants.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/constants.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/constants.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/index.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/index.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/index.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/index.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/logs_context_service.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/logs_context_service.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/logs_context_service.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/logs_context_service.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/types.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/types.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/types.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/types.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/utils/get_available_resource_fields.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_available_resource_fields.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/utils/get_available_resource_fields.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_available_resource_fields.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.test.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_log_level_coalesed_value.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.ts diff --git a/packages/kbn-discover-utils/src/data_types/logs/utils/index.ts b/src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/index.ts similarity index 100% rename from packages/kbn-discover-utils/src/data_types/logs/utils/index.ts rename to src/platform/packages/shared/kbn-discover-utils/src/data_types/logs/utils/index.ts diff --git a/packages/kbn-discover-utils/src/field_constants.ts b/src/platform/packages/shared/kbn-discover-utils/src/field_constants.ts similarity index 100% rename from packages/kbn-discover-utils/src/field_constants.ts rename to src/platform/packages/shared/kbn-discover-utils/src/field_constants.ts diff --git a/packages/kbn-discover-utils/src/hooks/index.ts b/src/platform/packages/shared/kbn-discover-utils/src/hooks/index.ts similarity index 100% rename from packages/kbn-discover-utils/src/hooks/index.ts rename to src/platform/packages/shared/kbn-discover-utils/src/hooks/index.ts diff --git a/packages/kbn-discover-utils/src/hooks/use_pager.test.tsx b/src/platform/packages/shared/kbn-discover-utils/src/hooks/use_pager.test.tsx similarity index 100% rename from packages/kbn-discover-utils/src/hooks/use_pager.test.tsx rename to src/platform/packages/shared/kbn-discover-utils/src/hooks/use_pager.test.tsx diff --git a/packages/kbn-discover-utils/src/hooks/use_pager.ts b/src/platform/packages/shared/kbn-discover-utils/src/hooks/use_pager.ts similarity index 100% rename from packages/kbn-discover-utils/src/hooks/use_pager.ts rename to src/platform/packages/shared/kbn-discover-utils/src/hooks/use_pager.ts diff --git a/packages/kbn-discover-utils/src/index.ts b/src/platform/packages/shared/kbn-discover-utils/src/index.ts similarity index 100% rename from packages/kbn-discover-utils/src/index.ts rename to src/platform/packages/shared/kbn-discover-utils/src/index.ts diff --git a/packages/kbn-discover-utils/src/types.ts b/src/platform/packages/shared/kbn-discover-utils/src/types.ts similarity index 100% rename from packages/kbn-discover-utils/src/types.ts rename to src/platform/packages/shared/kbn-discover-utils/src/types.ts diff --git a/packages/kbn-discover-utils/src/utils/build_data_record.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/build_data_record.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/build_data_record.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/build_data_record.test.ts diff --git a/packages/kbn-discover-utils/src/utils/build_data_record.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/build_data_record.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/build_data_record.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/build_data_record.ts diff --git a/packages/kbn-discover-utils/src/utils/calc_field_counts.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/calc_field_counts.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/calc_field_counts.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/calc_field_counts.test.ts diff --git a/packages/kbn-discover-utils/src/utils/calc_field_counts.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/calc_field_counts.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/calc_field_counts.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/calc_field_counts.ts diff --git a/packages/kbn-discover-utils/src/utils/dismiss_flyouts.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/dismiss_flyouts.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/dismiss_flyouts.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/dismiss_flyouts.ts diff --git a/packages/kbn-discover-utils/src/utils/format_hit.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/format_hit.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/format_hit.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/format_hit.test.ts diff --git a/packages/kbn-discover-utils/src/utils/format_hit.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/format_hit.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/format_hit.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/format_hit.ts diff --git a/packages/kbn-discover-utils/src/utils/format_value.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/format_value.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/format_value.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/format_value.test.ts diff --git a/packages/kbn-discover-utils/src/utils/format_value.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/format_value.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/format_value.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/format_value.ts diff --git a/packages/kbn-discover-utils/src/utils/get_doc_id.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_doc_id.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_doc_id.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_doc_id.test.ts diff --git a/packages/kbn-discover-utils/src/utils/get_doc_id.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_doc_id.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_doc_id.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_doc_id.ts diff --git a/packages/kbn-discover-utils/src/utils/get_field_value.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_field_value.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_field_value.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_field_value.test.ts diff --git a/packages/kbn-discover-utils/src/utils/get_field_value.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_field_value.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_field_value.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_field_value.ts diff --git a/packages/kbn-discover-utils/src/utils/get_ignored_reason.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_ignored_reason.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_ignored_reason.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_ignored_reason.test.ts diff --git a/packages/kbn-discover-utils/src/utils/get_ignored_reason.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_ignored_reason.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_ignored_reason.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_ignored_reason.ts diff --git a/packages/kbn-discover-utils/src/utils/get_log_document_overview.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_log_document_overview.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_log_document_overview.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_log_document_overview.ts diff --git a/packages/kbn-discover-utils/src/utils/get_message_field_with_fallbacks.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_message_field_with_fallbacks.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_message_field_with_fallbacks.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_message_field_with_fallbacks.ts diff --git a/packages/kbn-discover-utils/src/utils/get_should_show_field_handler.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_should_show_field_handler.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_should_show_field_handler.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_should_show_field_handler.test.ts diff --git a/packages/kbn-discover-utils/src/utils/get_should_show_field_handler.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_should_show_field_handler.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_should_show_field_handler.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_should_show_field_handler.ts diff --git a/packages/kbn-discover-utils/src/utils/get_stack_trace_fields.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_stack_trace_fields.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_stack_trace_fields.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_stack_trace_fields.ts diff --git a/packages/kbn-discover-utils/src/utils/get_visible_columns.test.tsx b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_visible_columns.test.tsx similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_visible_columns.test.tsx rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_visible_columns.test.tsx diff --git a/packages/kbn-discover-utils/src/utils/get_visible_columns.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/get_visible_columns.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/get_visible_columns.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/get_visible_columns.ts diff --git a/packages/kbn-discover-utils/src/utils/index.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/index.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/index.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/index.ts diff --git a/packages/kbn-discover-utils/src/utils/nested_fields.test.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/nested_fields.test.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/nested_fields.test.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/nested_fields.test.ts diff --git a/packages/kbn-discover-utils/src/utils/nested_fields.ts b/src/platform/packages/shared/kbn-discover-utils/src/utils/nested_fields.ts similarity index 100% rename from packages/kbn-discover-utils/src/utils/nested_fields.ts rename to src/platform/packages/shared/kbn-discover-utils/src/utils/nested_fields.ts diff --git a/packages/kbn-discover-utils/tsconfig.json b/src/platform/packages/shared/kbn-discover-utils/tsconfig.json similarity index 92% rename from packages/kbn-discover-utils/tsconfig.json rename to src/platform/packages/shared/kbn-discover-utils/tsconfig.json index f43aa1dfb4e05..82c4f408c6d08 100644 --- a/packages/kbn-discover-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-discover-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-discover-utils/types.ts b/src/platform/packages/shared/kbn-discover-utils/types.ts similarity index 100% rename from packages/kbn-discover-utils/types.ts rename to src/platform/packages/shared/kbn-discover-utils/types.ts diff --git a/packages/kbn-es-query/BUILD.bazel b/src/platform/packages/shared/kbn-es-query/BUILD.bazel similarity index 100% rename from packages/kbn-es-query/BUILD.bazel rename to src/platform/packages/shared/kbn-es-query/BUILD.bazel diff --git a/packages/kbn-es-query/README.md b/src/platform/packages/shared/kbn-es-query/README.md similarity index 100% rename from packages/kbn-es-query/README.md rename to src/platform/packages/shared/kbn-es-query/README.md diff --git a/packages/kbn-es-query/index.ts b/src/platform/packages/shared/kbn-es-query/index.ts similarity index 100% rename from packages/kbn-es-query/index.ts rename to src/platform/packages/shared/kbn-es-query/index.ts diff --git a/packages/deeplinks/analytics/jest.config.js b/src/platform/packages/shared/kbn-es-query/jest.config.js similarity index 84% rename from packages/deeplinks/analytics/jest.config.js rename to src/platform/packages/shared/kbn-es-query/jest.config.js index f4db6df5dab83..edc549f28a77f 100644 --- a/packages/deeplinks/analytics/jest.config.js +++ b/src/platform/packages/shared/kbn-es-query/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/deeplinks/analytics'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-es-query'], }; diff --git a/packages/kbn-es-query/kibana.jsonc b/src/platform/packages/shared/kbn-es-query/kibana.jsonc similarity index 100% rename from packages/kbn-es-query/kibana.jsonc rename to src/platform/packages/shared/kbn-es-query/kibana.jsonc diff --git a/packages/kbn-es-query/package.json b/src/platform/packages/shared/kbn-es-query/package.json similarity index 100% rename from packages/kbn-es-query/package.json rename to src/platform/packages/shared/kbn-es-query/package.json diff --git a/packages/kbn-es-query/src/__fixtures__/index_pattern_response.ts b/src/platform/packages/shared/kbn-es-query/src/__fixtures__/index_pattern_response.ts similarity index 100% rename from packages/kbn-es-query/src/__fixtures__/index_pattern_response.ts rename to src/platform/packages/shared/kbn-es-query/src/__fixtures__/index_pattern_response.ts diff --git a/packages/kbn-es-query/src/es_query/build_es_query.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/build_es_query.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/build_es_query.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/build_es_query.test.ts diff --git a/packages/kbn-es-query/src/es_query/build_es_query.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/build_es_query.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/build_es_query.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/build_es_query.ts diff --git a/packages/kbn-es-query/src/es_query/decorate_query.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/decorate_query.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/decorate_query.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/decorate_query.test.ts diff --git a/packages/kbn-es-query/src/es_query/decorate_query.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/decorate_query.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/decorate_query.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/decorate_query.ts diff --git a/packages/kbn-es-query/src/es_query/es_aggregate_query.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/es_aggregate_query.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/es_aggregate_query.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/es_aggregate_query.test.ts diff --git a/packages/kbn-es-query/src/es_query/es_aggregate_query.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/es_aggregate_query.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/es_aggregate_query.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/es_aggregate_query.ts diff --git a/packages/kbn-es-query/src/es_query/es_query_dsl.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/es_query_dsl.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/es_query_dsl.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/es_query_dsl.ts diff --git a/packages/kbn-es-query/src/es_query/filter_matches_index.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/filter_matches_index.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/filter_matches_index.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/filter_matches_index.test.ts diff --git a/packages/kbn-es-query/src/es_query/filter_matches_index.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/filter_matches_index.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/filter_matches_index.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/filter_matches_index.ts diff --git a/packages/kbn-es-query/src/es_query/from_combined_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_combined_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_combined_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_combined_filter.test.ts diff --git a/packages/kbn-es-query/src/es_query/from_combined_filter.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_combined_filter.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_combined_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_combined_filter.ts diff --git a/packages/kbn-es-query/src/es_query/from_filters.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_filters.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_filters.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_filters.test.ts diff --git a/packages/kbn-es-query/src/es_query/from_filters.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_filters.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_filters.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_filters.ts diff --git a/packages/kbn-es-query/src/es_query/from_kuery.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_kuery.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_kuery.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_kuery.test.ts diff --git a/packages/kbn-es-query/src/es_query/from_kuery.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_kuery.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_kuery.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_kuery.ts diff --git a/packages/kbn-es-query/src/es_query/from_lucene.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_lucene.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_lucene.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_lucene.test.ts diff --git a/packages/kbn-es-query/src/es_query/from_lucene.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_lucene.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_lucene.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_lucene.ts diff --git a/packages/kbn-es-query/src/es_query/from_nested_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_nested_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_nested_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_nested_filter.test.ts diff --git a/packages/kbn-es-query/src/es_query/from_nested_filter.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/from_nested_filter.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/from_nested_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/from_nested_filter.ts diff --git a/packages/kbn-es-query/src/es_query/index.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/index.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/index.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/index.ts diff --git a/packages/kbn-es-query/src/es_query/lucene_string_to_dsl.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/lucene_string_to_dsl.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/lucene_string_to_dsl.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/lucene_string_to_dsl.test.ts diff --git a/packages/kbn-es-query/src/es_query/lucene_string_to_dsl.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/lucene_string_to_dsl.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/lucene_string_to_dsl.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/lucene_string_to_dsl.ts diff --git a/packages/kbn-es-query/src/es_query/migrate_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/migrate_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/migrate_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/migrate_filter.test.ts diff --git a/packages/kbn-es-query/src/es_query/migrate_filter.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/migrate_filter.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/migrate_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/migrate_filter.ts diff --git a/packages/kbn-es-query/src/es_query/types.ts b/src/platform/packages/shared/kbn-es-query/src/es_query/types.ts similarity index 100% rename from packages/kbn-es-query/src/es_query/types.ts rename to src/platform/packages/shared/kbn-es-query/src/es_query/types.ts diff --git a/packages/kbn-es-query/src/expressions/types.ts b/src/platform/packages/shared/kbn-es-query/src/expressions/types.ts similarity index 100% rename from packages/kbn-es-query/src/expressions/types.ts rename to src/platform/packages/shared/kbn-es-query/src/expressions/types.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/build_empty_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/build_empty_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/build_empty_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/build_empty_filter.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/build_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/build_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/build_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/build_filter.test.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/build_filters.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/build_filters.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/build_filters.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/build_filters.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/combined_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/combined_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/combined_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/combined_filter.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/custom_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/custom_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/custom_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/custom_filter.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/exists_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/exists_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/exists_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/exists_filter.test.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/exists_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/exists_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/exists_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/exists_filter.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/get_filter_field.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_filter_field.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/get_filter_field.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_filter_field.test.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/get_filter_field.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_filter_field.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/get_filter_field.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_filter_field.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/get_filter_params.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_filter_params.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/get_filter_params.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_filter_params.test.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/get_filter_params.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_filter_params.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/get_filter_params.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/get_filter_params.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/index.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/index.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/index.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/index.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/match_all_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/match_all_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/match_all_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/match_all_filter.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/phrase_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/phrase_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/phrase_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/phrase_filter.test.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/phrase_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/phrase_filter.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/phrases_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/phrases_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/phrases_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/phrases_filter.test.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/phrases_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/phrases_filter.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/query_string_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/query_string_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/query_string_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/query_string_filter.test.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/query_string_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/query_string_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/query_string_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/query_string_filter.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/range_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/range_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/range_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/range_filter.test.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/range_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/range_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/range_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/range_filter.ts diff --git a/packages/kbn-es-query/src/filters/build_filters/types.ts b/src/platform/packages/shared/kbn-es-query/src/filters/build_filters/types.ts similarity index 100% rename from packages/kbn-es-query/src/filters/build_filters/types.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/build_filters/types.ts diff --git a/packages/kbn-es-query/src/filters/helpers/compare_filters.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/compare_filters.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/compare_filters.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/compare_filters.test.ts diff --git a/packages/kbn-es-query/src/filters/helpers/compare_filters.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/compare_filters.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/compare_filters.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/compare_filters.ts diff --git a/packages/kbn-es-query/src/filters/helpers/convert_range_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/convert_range_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/convert_range_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/convert_range_filter.test.ts diff --git a/packages/kbn-es-query/src/filters/helpers/convert_range_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/convert_range_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/convert_range_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/convert_range_filter.ts diff --git a/packages/kbn-es-query/src/filters/helpers/dedup_filters.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/dedup_filters.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/dedup_filters.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/dedup_filters.test.ts diff --git a/packages/kbn-es-query/src/filters/helpers/dedup_filters.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/dedup_filters.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/dedup_filters.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/dedup_filters.ts diff --git a/packages/kbn-es-query/src/filters/helpers/extract_time_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/extract_time_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/extract_time_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/extract_time_filter.test.ts diff --git a/packages/kbn-es-query/src/filters/helpers/extract_time_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/extract_time_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/extract_time_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/extract_time_filter.ts diff --git a/packages/kbn-es-query/src/filters/helpers/index.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/index.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/index.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/index.ts diff --git a/packages/kbn-es-query/src/filters/helpers/meta_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/meta_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/meta_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/meta_filter.ts diff --git a/packages/kbn-es-query/src/filters/helpers/only_disabled.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/only_disabled.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/only_disabled.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/only_disabled.test.ts diff --git a/packages/kbn-es-query/src/filters/helpers/only_disabled.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/only_disabled.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/only_disabled.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/only_disabled.ts diff --git a/packages/kbn-es-query/src/filters/helpers/types.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/types.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/types.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/types.ts diff --git a/packages/kbn-es-query/src/filters/helpers/uniq_filters.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/uniq_filters.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/uniq_filters.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/uniq_filters.test.ts diff --git a/packages/kbn-es-query/src/filters/helpers/uniq_filters.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/uniq_filters.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/uniq_filters.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/uniq_filters.ts diff --git a/packages/kbn-es-query/src/filters/helpers/update_filter.test.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/update_filter.test.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/update_filter.test.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/update_filter.test.ts diff --git a/packages/kbn-es-query/src/filters/helpers/update_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/helpers/update_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/helpers/update_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/helpers/update_filter.ts diff --git a/packages/kbn-es-query/src/filters/index.ts b/src/platform/packages/shared/kbn-es-query/src/filters/index.ts similarity index 100% rename from packages/kbn-es-query/src/filters/index.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/index.ts diff --git a/packages/kbn-es-query/src/filters/stubs/exists_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/stubs/exists_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/stubs/exists_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/stubs/exists_filter.ts diff --git a/packages/kbn-es-query/src/filters/stubs/fields.mocks.ts b/src/platform/packages/shared/kbn-es-query/src/filters/stubs/fields.mocks.ts similarity index 100% rename from packages/kbn-es-query/src/filters/stubs/fields.mocks.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/stubs/fields.mocks.ts diff --git a/packages/kbn-es-query/src/filters/stubs/index.ts b/src/platform/packages/shared/kbn-es-query/src/filters/stubs/index.ts similarity index 100% rename from packages/kbn-es-query/src/filters/stubs/index.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/stubs/index.ts diff --git a/packages/kbn-es-query/src/filters/stubs/phrase_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/stubs/phrase_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/stubs/phrase_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/stubs/phrase_filter.ts diff --git a/packages/kbn-es-query/src/filters/stubs/phrases_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/stubs/phrases_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/stubs/phrases_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/stubs/phrases_filter.ts diff --git a/packages/kbn-es-query/src/filters/stubs/range_filter.ts b/src/platform/packages/shared/kbn-es-query/src/filters/stubs/range_filter.ts similarity index 100% rename from packages/kbn-es-query/src/filters/stubs/range_filter.ts rename to src/platform/packages/shared/kbn-es-query/src/filters/stubs/range_filter.ts diff --git a/packages/kbn-es-query/src/kuery/ast/ast.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/ast/ast.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/ast/ast.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/ast/ast.test.ts diff --git a/packages/kbn-es-query/src/kuery/ast/ast.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/ast/ast.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/ast/ast.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/ast/ast.ts diff --git a/packages/kbn-es-query/src/kuery/ast/index.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/ast/index.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/ast/index.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/ast/index.ts diff --git a/packages/kbn-es-query/src/kuery/functions/and.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/and.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/and.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/and.test.ts diff --git a/packages/kbn-es-query/src/kuery/functions/and.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/and.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/and.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/and.ts diff --git a/packages/kbn-es-query/src/kuery/functions/exists.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/exists.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/exists.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/exists.test.ts diff --git a/packages/kbn-es-query/src/kuery/functions/exists.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/exists.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/exists.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/exists.ts diff --git a/packages/kbn-es-query/src/kuery/functions/index.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/index.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/index.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/index.ts diff --git a/packages/kbn-es-query/src/kuery/functions/is.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/is.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/is.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/is.test.ts diff --git a/packages/kbn-es-query/src/kuery/functions/is.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/is.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/is.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/is.ts diff --git a/packages/kbn-es-query/src/kuery/functions/nested.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/nested.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/nested.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/nested.test.ts diff --git a/packages/kbn-es-query/src/kuery/functions/nested.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/nested.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/nested.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/nested.ts diff --git a/packages/kbn-es-query/src/kuery/functions/not.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/not.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/not.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/not.test.ts diff --git a/packages/kbn-es-query/src/kuery/functions/not.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/not.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/not.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/not.ts diff --git a/packages/kbn-es-query/src/kuery/functions/or.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/or.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/or.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/or.test.ts diff --git a/packages/kbn-es-query/src/kuery/functions/or.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/or.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/or.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/or.ts diff --git a/packages/kbn-es-query/src/kuery/functions/range.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/range.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/range.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/range.test.ts diff --git a/packages/kbn-es-query/src/kuery/functions/range.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/range.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/range.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/range.ts diff --git a/packages/kbn-es-query/src/kuery/functions/utils/get_fields.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/utils/get_fields.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/utils/get_fields.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/utils/get_fields.test.ts diff --git a/packages/kbn-es-query/src/kuery/functions/utils/get_fields.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/utils/get_fields.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/utils/get_fields.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/utils/get_fields.ts diff --git a/packages/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.test.ts diff --git a/packages/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.ts diff --git a/packages/kbn-es-query/src/kuery/grammar/grammar.peggy b/src/platform/packages/shared/kbn-es-query/src/kuery/grammar/grammar.peggy similarity index 100% rename from packages/kbn-es-query/src/kuery/grammar/grammar.peggy rename to src/platform/packages/shared/kbn-es-query/src/kuery/grammar/grammar.peggy diff --git a/packages/kbn-es-query/src/kuery/grammar/grammar.peggy.config.json b/src/platform/packages/shared/kbn-es-query/src/kuery/grammar/grammar.peggy.config.json similarity index 100% rename from packages/kbn-es-query/src/kuery/grammar/grammar.peggy.config.json rename to src/platform/packages/shared/kbn-es-query/src/kuery/grammar/grammar.peggy.config.json diff --git a/packages/kbn-es-query/src/kuery/grammar/index.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/grammar/index.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/grammar/index.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/grammar/index.ts diff --git a/packages/kbn-es-query/src/kuery/index.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/index.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/index.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/index.ts diff --git a/packages/kbn-es-query/src/kuery/kuery_syntax_error.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/kuery_syntax_error.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/kuery_syntax_error.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/kuery_syntax_error.test.ts diff --git a/packages/kbn-es-query/src/kuery/kuery_syntax_error.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/kuery_syntax_error.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/kuery_syntax_error.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/kuery_syntax_error.ts diff --git a/packages/kbn-es-query/src/kuery/node_types/function.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/node_types/function.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/node_types/function.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/node_types/function.test.ts diff --git a/packages/kbn-es-query/src/kuery/node_types/function.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/node_types/function.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/node_types/function.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/node_types/function.ts diff --git a/packages/kbn-es-query/src/kuery/node_types/index.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/node_types/index.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/node_types/index.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/node_types/index.ts diff --git a/packages/kbn-es-query/src/kuery/node_types/literal.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/node_types/literal.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/node_types/literal.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/node_types/literal.test.ts diff --git a/packages/kbn-es-query/src/kuery/node_types/literal.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/node_types/literal.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/node_types/literal.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/node_types/literal.ts diff --git a/packages/kbn-es-query/src/kuery/node_types/node_builder.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/node_types/node_builder.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/node_types/node_builder.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/node_types/node_builder.test.ts diff --git a/packages/kbn-es-query/src/kuery/node_types/node_builder.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/node_types/node_builder.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/node_types/node_builder.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/node_types/node_builder.ts diff --git a/packages/kbn-es-query/src/kuery/node_types/wildcard.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/node_types/wildcard.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/node_types/wildcard.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/node_types/wildcard.test.ts diff --git a/packages/kbn-es-query/src/kuery/node_types/wildcard.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/node_types/wildcard.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/node_types/wildcard.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/node_types/wildcard.ts diff --git a/packages/kbn-es-query/src/kuery/types.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/types.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/types.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/types.ts diff --git a/packages/kbn-es-query/src/kuery/utils/escape_kuery.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/utils/escape_kuery.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/utils/escape_kuery.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/utils/escape_kuery.test.ts diff --git a/packages/kbn-es-query/src/kuery/utils/escape_kuery.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/utils/escape_kuery.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/utils/escape_kuery.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/utils/escape_kuery.ts diff --git a/packages/kbn-es-query/src/kuery/utils/get_kql_fields.test.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/utils/get_kql_fields.test.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/utils/get_kql_fields.test.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/utils/get_kql_fields.test.ts diff --git a/packages/kbn-es-query/src/kuery/utils/get_kql_fields.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/utils/get_kql_fields.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/utils/get_kql_fields.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/utils/get_kql_fields.ts diff --git a/packages/kbn-es-query/src/kuery/utils/index.ts b/src/platform/packages/shared/kbn-es-query/src/kuery/utils/index.ts similarity index 100% rename from packages/kbn-es-query/src/kuery/utils/index.ts rename to src/platform/packages/shared/kbn-es-query/src/kuery/utils/index.ts diff --git a/packages/kbn-es-query/src/utils.test.ts b/src/platform/packages/shared/kbn-es-query/src/utils.test.ts similarity index 100% rename from packages/kbn-es-query/src/utils.test.ts rename to src/platform/packages/shared/kbn-es-query/src/utils.test.ts diff --git a/packages/kbn-es-query/src/utils.ts b/src/platform/packages/shared/kbn-es-query/src/utils.ts similarity index 100% rename from packages/kbn-es-query/src/utils.ts rename to src/platform/packages/shared/kbn-es-query/src/utils.ts diff --git a/packages/kbn-es-query/tsconfig.json b/src/platform/packages/shared/kbn-es-query/tsconfig.json similarity index 86% rename from packages/kbn-es-query/tsconfig.json rename to src/platform/packages/shared/kbn-es-query/tsconfig.json index e7bd8b3c037d5..c2ea0a5bd7a90 100644 --- a/packages/kbn-es-query/tsconfig.json +++ b/src/platform/packages/shared/kbn-es-query/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-field-types/README.md b/src/platform/packages/shared/kbn-field-types/README.md similarity index 100% rename from packages/kbn-field-types/README.md rename to src/platform/packages/shared/kbn-field-types/README.md diff --git a/packages/kbn-field-types/index.ts b/src/platform/packages/shared/kbn-field-types/index.ts similarity index 100% rename from packages/kbn-field-types/index.ts rename to src/platform/packages/shared/kbn-field-types/index.ts diff --git a/packages/kbn-content-management-utils/jest.config.js b/src/platform/packages/shared/kbn-field-types/jest.config.js similarity index 83% rename from packages/kbn-content-management-utils/jest.config.js rename to src/platform/packages/shared/kbn-field-types/jest.config.js index 4721b5a32d8c9..414b0d6779cb2 100644 --- a/packages/kbn-content-management-utils/jest.config.js +++ b/src/platform/packages/shared/kbn-field-types/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-content-management-utils'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-field-types'], }; diff --git a/packages/kbn-field-types/kibana.jsonc b/src/platform/packages/shared/kbn-field-types/kibana.jsonc similarity index 100% rename from packages/kbn-field-types/kibana.jsonc rename to src/platform/packages/shared/kbn-field-types/kibana.jsonc diff --git a/packages/kbn-field-types/package.json b/src/platform/packages/shared/kbn-field-types/package.json similarity index 100% rename from packages/kbn-field-types/package.json rename to src/platform/packages/shared/kbn-field-types/package.json diff --git a/packages/kbn-field-types/src/kbn_field_type.ts b/src/platform/packages/shared/kbn-field-types/src/kbn_field_type.ts similarity index 100% rename from packages/kbn-field-types/src/kbn_field_type.ts rename to src/platform/packages/shared/kbn-field-types/src/kbn_field_type.ts diff --git a/packages/kbn-field-types/src/kbn_field_types.test.ts b/src/platform/packages/shared/kbn-field-types/src/kbn_field_types.test.ts similarity index 100% rename from packages/kbn-field-types/src/kbn_field_types.test.ts rename to src/platform/packages/shared/kbn-field-types/src/kbn_field_types.test.ts diff --git a/packages/kbn-field-types/src/kbn_field_types.ts b/src/platform/packages/shared/kbn-field-types/src/kbn_field_types.ts similarity index 100% rename from packages/kbn-field-types/src/kbn_field_types.ts rename to src/platform/packages/shared/kbn-field-types/src/kbn_field_types.ts diff --git a/packages/kbn-field-types/src/kbn_field_types_factory.ts b/src/platform/packages/shared/kbn-field-types/src/kbn_field_types_factory.ts similarity index 100% rename from packages/kbn-field-types/src/kbn_field_types_factory.ts rename to src/platform/packages/shared/kbn-field-types/src/kbn_field_types_factory.ts diff --git a/packages/kbn-field-types/src/types.ts b/src/platform/packages/shared/kbn-field-types/src/types.ts similarity index 100% rename from packages/kbn-field-types/src/types.ts rename to src/platform/packages/shared/kbn-field-types/src/types.ts diff --git a/packages/kbn-field-types/tsconfig.json b/src/platform/packages/shared/kbn-field-types/tsconfig.json similarity index 77% rename from packages/kbn-field-types/tsconfig.json rename to src/platform/packages/shared/kbn-field-types/tsconfig.json index 6818562972f08..c8a4dc74c68fb 100644 --- a/packages/kbn-field-types/tsconfig.json +++ b/src/platform/packages/shared/kbn-field-types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-field-utils/README.md b/src/platform/packages/shared/kbn-field-utils/README.md similarity index 100% rename from packages/kbn-field-utils/README.md rename to src/platform/packages/shared/kbn-field-utils/README.md diff --git a/packages/kbn-field-utils/index.ts b/src/platform/packages/shared/kbn-field-utils/index.ts similarity index 100% rename from packages/kbn-field-utils/index.ts rename to src/platform/packages/shared/kbn-field-utils/index.ts diff --git a/packages/default-nav/analytics/jest.config.js b/src/platform/packages/shared/kbn-field-utils/jest.config.js similarity index 83% rename from packages/default-nav/analytics/jest.config.js rename to src/platform/packages/shared/kbn-field-utils/jest.config.js index 6ff1a3890d7a1..239e0bca90910 100644 --- a/packages/default-nav/analytics/jest.config.js +++ b/src/platform/packages/shared/kbn-field-utils/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/default-nav/analytics'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-field-utils'], }; diff --git a/packages/kbn-field-utils/kibana.jsonc b/src/platform/packages/shared/kbn-field-utils/kibana.jsonc similarity index 100% rename from packages/kbn-field-utils/kibana.jsonc rename to src/platform/packages/shared/kbn-field-utils/kibana.jsonc diff --git a/packages/kbn-field-utils/package.json b/src/platform/packages/shared/kbn-field-utils/package.json similarity index 100% rename from packages/kbn-field-utils/package.json rename to src/platform/packages/shared/kbn-field-utils/package.json diff --git a/packages/kbn-field-utils/src/components/field_description/field_description.test.tsx b/src/platform/packages/shared/kbn-field-utils/src/components/field_description/field_description.test.tsx similarity index 100% rename from packages/kbn-field-utils/src/components/field_description/field_description.test.tsx rename to src/platform/packages/shared/kbn-field-utils/src/components/field_description/field_description.test.tsx diff --git a/packages/kbn-field-utils/src/components/field_description/field_description.tsx b/src/platform/packages/shared/kbn-field-utils/src/components/field_description/field_description.tsx similarity index 100% rename from packages/kbn-field-utils/src/components/field_description/field_description.tsx rename to src/platform/packages/shared/kbn-field-utils/src/components/field_description/field_description.tsx diff --git a/packages/kbn-field-utils/src/components/field_description/index.ts b/src/platform/packages/shared/kbn-field-utils/src/components/field_description/index.ts similarity index 100% rename from packages/kbn-field-utils/src/components/field_description/index.ts rename to src/platform/packages/shared/kbn-field-utils/src/components/field_description/index.ts diff --git a/packages/kbn-field-utils/src/components/field_icon/__snapshots__/field_icon.test.tsx.snap b/src/platform/packages/shared/kbn-field-utils/src/components/field_icon/__snapshots__/field_icon.test.tsx.snap similarity index 100% rename from packages/kbn-field-utils/src/components/field_icon/__snapshots__/field_icon.test.tsx.snap rename to src/platform/packages/shared/kbn-field-utils/src/components/field_icon/__snapshots__/field_icon.test.tsx.snap diff --git a/packages/kbn-field-utils/src/components/field_icon/field_icon.test.tsx b/src/platform/packages/shared/kbn-field-utils/src/components/field_icon/field_icon.test.tsx similarity index 100% rename from packages/kbn-field-utils/src/components/field_icon/field_icon.test.tsx rename to src/platform/packages/shared/kbn-field-utils/src/components/field_icon/field_icon.test.tsx diff --git a/packages/kbn-field-utils/src/components/field_icon/field_icon.tsx b/src/platform/packages/shared/kbn-field-utils/src/components/field_icon/field_icon.tsx similarity index 100% rename from packages/kbn-field-utils/src/components/field_icon/field_icon.tsx rename to src/platform/packages/shared/kbn-field-utils/src/components/field_icon/field_icon.tsx diff --git a/packages/kbn-field-utils/src/components/field_icon/get_field_icon_props.ts b/src/platform/packages/shared/kbn-field-utils/src/components/field_icon/get_field_icon_props.ts similarity index 100% rename from packages/kbn-field-utils/src/components/field_icon/get_field_icon_props.ts rename to src/platform/packages/shared/kbn-field-utils/src/components/field_icon/get_field_icon_props.ts diff --git a/packages/kbn-field-utils/src/components/field_icon/index.tsx b/src/platform/packages/shared/kbn-field-utils/src/components/field_icon/index.tsx similarity index 100% rename from packages/kbn-field-utils/src/components/field_icon/index.tsx rename to src/platform/packages/shared/kbn-field-utils/src/components/field_icon/index.tsx diff --git a/packages/kbn-field-utils/src/types.ts b/src/platform/packages/shared/kbn-field-utils/src/types.ts similarity index 100% rename from packages/kbn-field-utils/src/types.ts rename to src/platform/packages/shared/kbn-field-utils/src/types.ts diff --git a/packages/kbn-field-utils/src/utils/field_name_wildcard_matcher.test.tsx b/src/platform/packages/shared/kbn-field-utils/src/utils/field_name_wildcard_matcher.test.tsx similarity index 100% rename from packages/kbn-field-utils/src/utils/field_name_wildcard_matcher.test.tsx rename to src/platform/packages/shared/kbn-field-utils/src/utils/field_name_wildcard_matcher.test.tsx diff --git a/packages/kbn-field-utils/src/utils/field_name_wildcard_matcher.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/field_name_wildcard_matcher.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/field_name_wildcard_matcher.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/field_name_wildcard_matcher.ts diff --git a/packages/kbn-field-utils/src/utils/field_supports_breakdown.test.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/field_supports_breakdown.test.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/field_supports_breakdown.test.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/field_supports_breakdown.test.ts diff --git a/packages/kbn-field-utils/src/utils/field_supports_breakdown.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/field_supports_breakdown.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/field_supports_breakdown.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/field_supports_breakdown.ts diff --git a/packages/kbn-field-utils/src/utils/field_types.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/field_types.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/field_types.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/field_types.ts diff --git a/packages/kbn-field-utils/src/utils/get_field_icon_type.test.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/get_field_icon_type.test.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/get_field_icon_type.test.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/get_field_icon_type.test.ts diff --git a/packages/kbn-field-utils/src/utils/get_field_icon_type.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/get_field_icon_type.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/get_field_icon_type.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/get_field_icon_type.ts diff --git a/packages/kbn-field-utils/src/utils/get_field_type.test.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type.test.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/get_field_type.test.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type.test.ts diff --git a/packages/kbn-field-utils/src/utils/get_field_type.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/get_field_type.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type.ts diff --git a/packages/kbn-field-utils/src/utils/get_field_type_description.test.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type_description.test.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/get_field_type_description.test.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type_description.test.ts diff --git a/packages/kbn-field-utils/src/utils/get_field_type_description.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type_description.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/get_field_type_description.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type_description.ts diff --git a/packages/kbn-field-utils/src/utils/get_field_type_name.test.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type_name.test.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/get_field_type_name.test.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type_name.test.ts diff --git a/packages/kbn-field-utils/src/utils/get_field_type_name.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type_name.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/get_field_type_name.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/get_field_type_name.ts diff --git a/packages/kbn-field-utils/src/utils/get_text_based_column_icon_type.ts b/src/platform/packages/shared/kbn-field-utils/src/utils/get_text_based_column_icon_type.ts similarity index 100% rename from packages/kbn-field-utils/src/utils/get_text_based_column_icon_type.ts rename to src/platform/packages/shared/kbn-field-utils/src/utils/get_text_based_column_icon_type.ts diff --git a/packages/kbn-field-utils/tsconfig.json b/src/platform/packages/shared/kbn-field-utils/tsconfig.json similarity index 88% rename from packages/kbn-field-utils/tsconfig.json rename to src/platform/packages/shared/kbn-field-utils/tsconfig.json index 5434723e4fd6a..d9acec9dcd68d 100644 --- a/packages/kbn-field-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-field-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-field-utils/types.ts b/src/platform/packages/shared/kbn-field-utils/types.ts similarity index 100% rename from packages/kbn-field-utils/types.ts rename to src/platform/packages/shared/kbn-field-utils/types.ts diff --git a/packages/kbn-react-field/README.md b/src/platform/packages/shared/kbn-react-field/README.md similarity index 100% rename from packages/kbn-react-field/README.md rename to src/platform/packages/shared/kbn-react-field/README.md diff --git a/packages/kbn-react-field/index.ts b/src/platform/packages/shared/kbn-react-field/index.ts similarity index 100% rename from packages/kbn-react-field/index.ts rename to src/platform/packages/shared/kbn-react-field/index.ts diff --git a/packages/kbn-data-view-utils/jest.config.js b/src/platform/packages/shared/kbn-react-field/jest.config.js similarity index 83% rename from packages/kbn-data-view-utils/jest.config.js rename to src/platform/packages/shared/kbn-react-field/jest.config.js index 090d9d5e9edd7..6fbb84918a762 100644 --- a/packages/kbn-data-view-utils/jest.config.js +++ b/src/platform/packages/shared/kbn-react-field/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-data-view-utils'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-react-field'], }; diff --git a/packages/kbn-react-field/kibana.jsonc b/src/platform/packages/shared/kbn-react-field/kibana.jsonc similarity index 100% rename from packages/kbn-react-field/kibana.jsonc rename to src/platform/packages/shared/kbn-react-field/kibana.jsonc diff --git a/packages/kbn-react-field/package.json b/src/platform/packages/shared/kbn-react-field/package.json similarity index 100% rename from packages/kbn-react-field/package.json rename to src/platform/packages/shared/kbn-react-field/package.json diff --git a/packages/kbn-react-field/src/field_button/__snapshots__/field_button.test.tsx.snap b/src/platform/packages/shared/kbn-react-field/src/field_button/__snapshots__/field_button.test.tsx.snap similarity index 100% rename from packages/kbn-react-field/src/field_button/__snapshots__/field_button.test.tsx.snap rename to src/platform/packages/shared/kbn-react-field/src/field_button/__snapshots__/field_button.test.tsx.snap diff --git a/packages/kbn-react-field/src/field_button/field_button.scss b/src/platform/packages/shared/kbn-react-field/src/field_button/field_button.scss similarity index 100% rename from packages/kbn-react-field/src/field_button/field_button.scss rename to src/platform/packages/shared/kbn-react-field/src/field_button/field_button.scss diff --git a/packages/kbn-react-field/src/field_button/field_button.test.tsx b/src/platform/packages/shared/kbn-react-field/src/field_button/field_button.test.tsx similarity index 100% rename from packages/kbn-react-field/src/field_button/field_button.test.tsx rename to src/platform/packages/shared/kbn-react-field/src/field_button/field_button.test.tsx diff --git a/packages/kbn-react-field/src/field_button/field_button.tsx b/src/platform/packages/shared/kbn-react-field/src/field_button/field_button.tsx similarity index 100% rename from packages/kbn-react-field/src/field_button/field_button.tsx rename to src/platform/packages/shared/kbn-react-field/src/field_button/field_button.tsx diff --git a/packages/kbn-react-field/src/field_button/index.ts b/src/platform/packages/shared/kbn-react-field/src/field_button/index.ts similarity index 100% rename from packages/kbn-react-field/src/field_button/index.ts rename to src/platform/packages/shared/kbn-react-field/src/field_button/index.ts diff --git a/packages/kbn-react-field/src/field_icon/__snapshots__/field_icon.test.tsx.snap b/src/platform/packages/shared/kbn-react-field/src/field_icon/__snapshots__/field_icon.test.tsx.snap similarity index 100% rename from packages/kbn-react-field/src/field_icon/__snapshots__/field_icon.test.tsx.snap rename to src/platform/packages/shared/kbn-react-field/src/field_icon/__snapshots__/field_icon.test.tsx.snap diff --git a/packages/kbn-react-field/src/field_icon/field_icon.test.tsx b/src/platform/packages/shared/kbn-react-field/src/field_icon/field_icon.test.tsx similarity index 100% rename from packages/kbn-react-field/src/field_icon/field_icon.test.tsx rename to src/platform/packages/shared/kbn-react-field/src/field_icon/field_icon.test.tsx diff --git a/packages/kbn-react-field/src/field_icon/field_icon.tsx b/src/platform/packages/shared/kbn-react-field/src/field_icon/field_icon.tsx similarity index 100% rename from packages/kbn-react-field/src/field_icon/field_icon.tsx rename to src/platform/packages/shared/kbn-react-field/src/field_icon/field_icon.tsx diff --git a/packages/kbn-react-field/src/field_icon/index.ts b/src/platform/packages/shared/kbn-react-field/src/field_icon/index.ts similarity index 100% rename from packages/kbn-react-field/src/field_icon/index.ts rename to src/platform/packages/shared/kbn-react-field/src/field_icon/index.ts diff --git a/packages/kbn-react-field/tsconfig.json b/src/platform/packages/shared/kbn-react-field/tsconfig.json similarity index 80% rename from packages/kbn-react-field/tsconfig.json rename to src/platform/packages/shared/kbn-react-field/tsconfig.json index b85e4312e707d..ed8ae0490dd28 100644 --- a/packages/kbn-react-field/tsconfig.json +++ b/src/platform/packages/shared/kbn-react-field/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-resizable-layout/README.md b/src/platform/packages/shared/kbn-resizable-layout/README.md similarity index 100% rename from packages/kbn-resizable-layout/README.md rename to src/platform/packages/shared/kbn-resizable-layout/README.md diff --git a/packages/kbn-resizable-layout/index.ts b/src/platform/packages/shared/kbn-resizable-layout/index.ts similarity index 100% rename from packages/kbn-resizable-layout/index.ts rename to src/platform/packages/shared/kbn-resizable-layout/index.ts diff --git a/src/platform/packages/shared/kbn-resizable-layout/jest.config.js b/src/platform/packages/shared/kbn-resizable-layout/jest.config.js new file mode 100644 index 0000000000000..8fad9e634b963 --- /dev/null +++ b/src/platform/packages/shared/kbn-resizable-layout/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-resizable-layout'], +}; diff --git a/packages/kbn-resizable-layout/kibana.jsonc b/src/platform/packages/shared/kbn-resizable-layout/kibana.jsonc similarity index 100% rename from packages/kbn-resizable-layout/kibana.jsonc rename to src/platform/packages/shared/kbn-resizable-layout/kibana.jsonc diff --git a/packages/kbn-resizable-layout/package.json b/src/platform/packages/shared/kbn-resizable-layout/package.json similarity index 100% rename from packages/kbn-resizable-layout/package.json rename to src/platform/packages/shared/kbn-resizable-layout/package.json diff --git a/packages/kbn-resizable-layout/src/panels_resizable.test.tsx b/src/platform/packages/shared/kbn-resizable-layout/src/panels_resizable.test.tsx similarity index 100% rename from packages/kbn-resizable-layout/src/panels_resizable.test.tsx rename to src/platform/packages/shared/kbn-resizable-layout/src/panels_resizable.test.tsx diff --git a/packages/kbn-resizable-layout/src/panels_resizable.tsx b/src/platform/packages/shared/kbn-resizable-layout/src/panels_resizable.tsx similarity index 100% rename from packages/kbn-resizable-layout/src/panels_resizable.tsx rename to src/platform/packages/shared/kbn-resizable-layout/src/panels_resizable.tsx diff --git a/packages/kbn-resizable-layout/src/panels_static.test.tsx b/src/platform/packages/shared/kbn-resizable-layout/src/panels_static.test.tsx similarity index 100% rename from packages/kbn-resizable-layout/src/panels_static.test.tsx rename to src/platform/packages/shared/kbn-resizable-layout/src/panels_static.test.tsx diff --git a/packages/kbn-resizable-layout/src/panels_static.tsx b/src/platform/packages/shared/kbn-resizable-layout/src/panels_static.tsx similarity index 100% rename from packages/kbn-resizable-layout/src/panels_static.tsx rename to src/platform/packages/shared/kbn-resizable-layout/src/panels_static.tsx diff --git a/packages/kbn-resizable-layout/src/resizable_layout.test.tsx b/src/platform/packages/shared/kbn-resizable-layout/src/resizable_layout.test.tsx similarity index 100% rename from packages/kbn-resizable-layout/src/resizable_layout.test.tsx rename to src/platform/packages/shared/kbn-resizable-layout/src/resizable_layout.test.tsx diff --git a/packages/kbn-resizable-layout/src/resizable_layout.tsx b/src/platform/packages/shared/kbn-resizable-layout/src/resizable_layout.tsx similarity index 100% rename from packages/kbn-resizable-layout/src/resizable_layout.tsx rename to src/platform/packages/shared/kbn-resizable-layout/src/resizable_layout.tsx diff --git a/packages/kbn-resizable-layout/src/utils.test.ts b/src/platform/packages/shared/kbn-resizable-layout/src/utils.test.ts similarity index 100% rename from packages/kbn-resizable-layout/src/utils.test.ts rename to src/platform/packages/shared/kbn-resizable-layout/src/utils.test.ts diff --git a/packages/kbn-resizable-layout/src/utils.ts b/src/platform/packages/shared/kbn-resizable-layout/src/utils.ts similarity index 100% rename from packages/kbn-resizable-layout/src/utils.ts rename to src/platform/packages/shared/kbn-resizable-layout/src/utils.ts diff --git a/packages/kbn-resizable-layout/tsconfig.json b/src/platform/packages/shared/kbn-resizable-layout/tsconfig.json similarity index 78% rename from packages/kbn-resizable-layout/tsconfig.json rename to src/platform/packages/shared/kbn-resizable-layout/tsconfig.json index 28cd6625b5388..9096027bf311a 100644 --- a/packages/kbn-resizable-layout/tsconfig.json +++ b/src/platform/packages/shared/kbn-resizable-layout/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-resizable-layout/types.ts b/src/platform/packages/shared/kbn-resizable-layout/types.ts similarity index 100% rename from packages/kbn-resizable-layout/types.ts rename to src/platform/packages/shared/kbn-resizable-layout/types.ts diff --git a/packages/kbn-search-errors/BUILD.bazel b/src/platform/packages/shared/kbn-search-errors/BUILD.bazel similarity index 100% rename from packages/kbn-search-errors/BUILD.bazel rename to src/platform/packages/shared/kbn-search-errors/BUILD.bazel diff --git a/packages/kbn-search-errors/README.md b/src/platform/packages/shared/kbn-search-errors/README.md similarity index 100% rename from packages/kbn-search-errors/README.md rename to src/platform/packages/shared/kbn-search-errors/README.md diff --git a/packages/kbn-search-errors/index.ts b/src/platform/packages/shared/kbn-search-errors/index.ts similarity index 100% rename from packages/kbn-search-errors/index.ts rename to src/platform/packages/shared/kbn-search-errors/index.ts diff --git a/src/platform/packages/shared/kbn-search-errors/jest.config.js b/src/platform/packages/shared/kbn-search-errors/jest.config.js new file mode 100644 index 0000000000000..115ba1567fd2e --- /dev/null +++ b/src/platform/packages/shared/kbn-search-errors/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-search-errors'], +}; diff --git a/packages/kbn-search-errors/kibana.jsonc b/src/platform/packages/shared/kbn-search-errors/kibana.jsonc similarity index 100% rename from packages/kbn-search-errors/kibana.jsonc rename to src/platform/packages/shared/kbn-search-errors/kibana.jsonc diff --git a/packages/kbn-search-errors/package.json b/src/platform/packages/shared/kbn-search-errors/package.json similarity index 100% rename from packages/kbn-search-errors/package.json rename to src/platform/packages/shared/kbn-search-errors/package.json diff --git a/packages/kbn-search-errors/src/__snapshots__/es_error.test.tsx.snap b/src/platform/packages/shared/kbn-search-errors/src/__snapshots__/es_error.test.tsx.snap similarity index 100% rename from packages/kbn-search-errors/src/__snapshots__/es_error.test.tsx.snap rename to src/platform/packages/shared/kbn-search-errors/src/__snapshots__/es_error.test.tsx.snap diff --git a/packages/kbn-search-errors/src/__snapshots__/painless_error.test.tsx.snap b/src/platform/packages/shared/kbn-search-errors/src/__snapshots__/painless_error.test.tsx.snap similarity index 100% rename from packages/kbn-search-errors/src/__snapshots__/painless_error.test.tsx.snap rename to src/platform/packages/shared/kbn-search-errors/src/__snapshots__/painless_error.test.tsx.snap diff --git a/packages/kbn-search-errors/src/__snapshots__/tsdb_error.test.tsx.snap b/src/platform/packages/shared/kbn-search-errors/src/__snapshots__/tsdb_error.test.tsx.snap similarity index 100% rename from packages/kbn-search-errors/src/__snapshots__/tsdb_error.test.tsx.snap rename to src/platform/packages/shared/kbn-search-errors/src/__snapshots__/tsdb_error.test.tsx.snap diff --git a/packages/kbn-search-errors/src/create_es_error.ts b/src/platform/packages/shared/kbn-search-errors/src/create_es_error.ts similarity index 100% rename from packages/kbn-search-errors/src/create_es_error.ts rename to src/platform/packages/shared/kbn-search-errors/src/create_es_error.ts diff --git a/packages/kbn-search-errors/src/es_error.test.tsx b/src/platform/packages/shared/kbn-search-errors/src/es_error.test.tsx similarity index 100% rename from packages/kbn-search-errors/src/es_error.test.tsx rename to src/platform/packages/shared/kbn-search-errors/src/es_error.test.tsx diff --git a/packages/kbn-search-errors/src/es_error.tsx b/src/platform/packages/shared/kbn-search-errors/src/es_error.tsx similarity index 100% rename from packages/kbn-search-errors/src/es_error.tsx rename to src/platform/packages/shared/kbn-search-errors/src/es_error.tsx diff --git a/packages/kbn-search-errors/src/painless_error.test.tsx b/src/platform/packages/shared/kbn-search-errors/src/painless_error.test.tsx similarity index 100% rename from packages/kbn-search-errors/src/painless_error.test.tsx rename to src/platform/packages/shared/kbn-search-errors/src/painless_error.test.tsx diff --git a/packages/kbn-search-errors/src/painless_error.tsx b/src/platform/packages/shared/kbn-search-errors/src/painless_error.tsx similarity index 100% rename from packages/kbn-search-errors/src/painless_error.tsx rename to src/platform/packages/shared/kbn-search-errors/src/painless_error.tsx diff --git a/packages/kbn-search-errors/src/render_search_error.ts b/src/platform/packages/shared/kbn-search-errors/src/render_search_error.ts similarity index 100% rename from packages/kbn-search-errors/src/render_search_error.ts rename to src/platform/packages/shared/kbn-search-errors/src/render_search_error.ts diff --git a/packages/kbn-search-errors/src/tsdb_error.test.tsx b/src/platform/packages/shared/kbn-search-errors/src/tsdb_error.test.tsx similarity index 100% rename from packages/kbn-search-errors/src/tsdb_error.test.tsx rename to src/platform/packages/shared/kbn-search-errors/src/tsdb_error.test.tsx diff --git a/packages/kbn-search-errors/src/tsdb_error.tsx b/src/platform/packages/shared/kbn-search-errors/src/tsdb_error.tsx similarity index 100% rename from packages/kbn-search-errors/src/tsdb_error.tsx rename to src/platform/packages/shared/kbn-search-errors/src/tsdb_error.tsx diff --git a/packages/kbn-search-errors/src/types.ts b/src/platform/packages/shared/kbn-search-errors/src/types.ts similarity index 100% rename from packages/kbn-search-errors/src/types.ts rename to src/platform/packages/shared/kbn-search-errors/src/types.ts diff --git a/packages/kbn-search-errors/tsconfig.json b/src/platform/packages/shared/kbn-search-errors/tsconfig.json similarity index 87% rename from packages/kbn-search-errors/tsconfig.json rename to src/platform/packages/shared/kbn-search-errors/tsconfig.json index 28c8e52860da0..2b209d45e22e0 100644 --- a/packages/kbn-search-errors/tsconfig.json +++ b/src/platform/packages/shared/kbn-search-errors/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-search-response-warnings/README.md b/src/platform/packages/shared/kbn-search-response-warnings/README.md similarity index 100% rename from packages/kbn-search-response-warnings/README.md rename to src/platform/packages/shared/kbn-search-response-warnings/README.md diff --git a/packages/kbn-search-response-warnings/index.ts b/src/platform/packages/shared/kbn-search-response-warnings/index.ts similarity index 100% rename from packages/kbn-search-response-warnings/index.ts rename to src/platform/packages/shared/kbn-search-response-warnings/index.ts diff --git a/src/platform/packages/shared/kbn-search-response-warnings/jest.config.js b/src/platform/packages/shared/kbn-search-response-warnings/jest.config.js new file mode 100644 index 0000000000000..20244442f41cf --- /dev/null +++ b/src/platform/packages/shared/kbn-search-response-warnings/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-search-response-warnings'], +}; diff --git a/packages/kbn-search-response-warnings/kibana.jsonc b/src/platform/packages/shared/kbn-search-response-warnings/kibana.jsonc similarity index 100% rename from packages/kbn-search-response-warnings/kibana.jsonc rename to src/platform/packages/shared/kbn-search-response-warnings/kibana.jsonc diff --git a/packages/kbn-search-response-warnings/package.json b/src/platform/packages/shared/kbn-search-response-warnings/package.json similarity index 100% rename from packages/kbn-search-response-warnings/package.json rename to src/platform/packages/shared/kbn-search-response-warnings/package.json diff --git a/packages/kbn-search-response-warnings/src/__mocks__/search_response_warnings.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/__mocks__/search_response_warnings.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/__mocks__/search_response_warnings.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/__mocks__/search_response_warnings.ts diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/badge.tsx b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/badge.tsx similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/badge.tsx rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/badge.tsx diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.test.tsx b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.test.tsx similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.test.tsx rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.test.tsx diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.tsx b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.tsx similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.tsx rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/badge_popover_content.tsx diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/callout.tsx b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/callout.tsx similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/callout.tsx rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/callout.tsx diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/empty_prompt.tsx b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/empty_prompt.tsx similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/empty_prompt.tsx rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/empty_prompt.tsx diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.test.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.test.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.test.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.test.ts diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/i18n_utils.ts diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/index.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/index.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/index.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/index.ts diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.test.tsx b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.test.tsx similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.test.tsx rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.test.tsx diff --git a/packages/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.tsx b/src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.tsx similarity index 100% rename from packages/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.tsx rename to src/platform/packages/shared/kbn-search-response-warnings/src/components/search_response_warnings/view_details_popover.tsx diff --git a/packages/kbn-search-response-warnings/src/extract_warnings.test.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/extract_warnings.test.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/extract_warnings.test.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/extract_warnings.test.ts diff --git a/packages/kbn-search-response-warnings/src/extract_warnings.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/extract_warnings.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/extract_warnings.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/extract_warnings.ts diff --git a/packages/kbn-search-response-warnings/src/handle_warnings.test.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/handle_warnings.test.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/handle_warnings.test.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/handle_warnings.test.ts diff --git a/packages/kbn-search-response-warnings/src/handle_warnings.tsx b/src/platform/packages/shared/kbn-search-response-warnings/src/handle_warnings.tsx similarity index 100% rename from packages/kbn-search-response-warnings/src/handle_warnings.tsx rename to src/platform/packages/shared/kbn-search-response-warnings/src/handle_warnings.tsx diff --git a/packages/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.test.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.test.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.test.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.test.ts diff --git a/packages/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/has_unsupported_downsampled_aggregation_failure.ts diff --git a/packages/kbn-search-response-warnings/src/types.ts b/src/platform/packages/shared/kbn-search-response-warnings/src/types.ts similarity index 100% rename from packages/kbn-search-response-warnings/src/types.ts rename to src/platform/packages/shared/kbn-search-response-warnings/src/types.ts diff --git a/packages/kbn-search-response-warnings/tsconfig.json b/src/platform/packages/shared/kbn-search-response-warnings/tsconfig.json similarity index 86% rename from packages/kbn-search-response-warnings/tsconfig.json rename to src/platform/packages/shared/kbn-search-response-warnings/tsconfig.json index 1f87892403a61..4b2557e492748 100644 --- a/packages/kbn-search-response-warnings/tsconfig.json +++ b/src/platform/packages/shared/kbn-search-response-warnings/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-search-types/README.md b/src/platform/packages/shared/kbn-search-types/README.md similarity index 100% rename from packages/kbn-search-types/README.md rename to src/platform/packages/shared/kbn-search-types/README.md diff --git a/packages/kbn-search-types/index.ts b/src/platform/packages/shared/kbn-search-types/index.ts similarity index 100% rename from packages/kbn-search-types/index.ts rename to src/platform/packages/shared/kbn-search-types/index.ts diff --git a/src/platform/packages/shared/kbn-search-types/jest.config.js b/src/platform/packages/shared/kbn-search-types/jest.config.js new file mode 100644 index 0000000000000..50f7223ce0f5a --- /dev/null +++ b/src/platform/packages/shared/kbn-search-types/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-search-types'], +}; diff --git a/packages/kbn-search-types/kibana.jsonc b/src/platform/packages/shared/kbn-search-types/kibana.jsonc similarity index 100% rename from packages/kbn-search-types/kibana.jsonc rename to src/platform/packages/shared/kbn-search-types/kibana.jsonc diff --git a/packages/kbn-search-types/package.json b/src/platform/packages/shared/kbn-search-types/package.json similarity index 100% rename from packages/kbn-search-types/package.json rename to src/platform/packages/shared/kbn-search-types/package.json diff --git a/packages/kbn-search-types/src/es_search_types.ts b/src/platform/packages/shared/kbn-search-types/src/es_search_types.ts similarity index 100% rename from packages/kbn-search-types/src/es_search_types.ts rename to src/platform/packages/shared/kbn-search-types/src/es_search_types.ts diff --git a/packages/kbn-search-types/src/kibana_search_types.ts b/src/platform/packages/shared/kbn-search-types/src/kibana_search_types.ts similarity index 100% rename from packages/kbn-search-types/src/kibana_search_types.ts rename to src/platform/packages/shared/kbn-search-types/src/kibana_search_types.ts diff --git a/packages/kbn-search-types/src/types.ts b/src/platform/packages/shared/kbn-search-types/src/types.ts similarity index 100% rename from packages/kbn-search-types/src/types.ts rename to src/platform/packages/shared/kbn-search-types/src/types.ts diff --git a/packages/kbn-search-types/tsconfig.json b/src/platform/packages/shared/kbn-search-types/tsconfig.json similarity index 81% rename from packages/kbn-search-types/tsconfig.json rename to src/platform/packages/shared/kbn-search-types/tsconfig.json index 07d9ec0e2e652..c07f0cc9f28d8 100644 --- a/packages/kbn-search-types/tsconfig.json +++ b/src/platform/packages/shared/kbn-search-types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-unified-data-table/README.md b/src/platform/packages/shared/kbn-unified-data-table/README.md similarity index 100% rename from packages/kbn-unified-data-table/README.md rename to src/platform/packages/shared/kbn-unified-data-table/README.md diff --git a/packages/kbn-unified-data-table/__mocks__/config.ts b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/config.ts similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/config.ts rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/config.ts diff --git a/packages/kbn-unified-data-table/__mocks__/data_view_complex.ts b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/data_view_complex.ts similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/data_view_complex.ts rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/data_view_complex.ts diff --git a/packages/kbn-unified-data-table/__mocks__/data_view_with_timefield.ts b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/data_view_with_timefield.ts similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/data_view_with_timefield.ts rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/data_view_with_timefield.ts diff --git a/packages/kbn-unified-data-table/__mocks__/data_view_without_timefield.ts b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/data_view_without_timefield.ts similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/data_view_without_timefield.ts rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/data_view_without_timefield.ts diff --git a/packages/kbn-unified-data-table/__mocks__/data_views.ts b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/data_views.ts similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/data_views.ts rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/data_views.ts diff --git a/packages/kbn-unified-data-table/__mocks__/es_hits_complex.ts b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/es_hits_complex.ts similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/es_hits_complex.ts rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/es_hits_complex.ts diff --git a/packages/kbn-unified-data-table/__mocks__/external_control_columns.tsx b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/external_control_columns.tsx similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/external_control_columns.tsx rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/external_control_columns.tsx diff --git a/packages/kbn-unified-data-table/__mocks__/local_storage_mock.ts b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/local_storage_mock.ts similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/local_storage_mock.ts rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/local_storage_mock.ts diff --git a/packages/kbn-unified-data-table/__mocks__/services.ts b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/services.ts similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/services.ts rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/services.ts diff --git a/packages/kbn-unified-data-table/__mocks__/table_context.ts b/src/platform/packages/shared/kbn-unified-data-table/__mocks__/table_context.ts similarity index 100% rename from packages/kbn-unified-data-table/__mocks__/table_context.ts rename to src/platform/packages/shared/kbn-unified-data-table/__mocks__/table_context.ts diff --git a/packages/kbn-unified-data-table/index.ts b/src/platform/packages/shared/kbn-unified-data-table/index.ts similarity index 100% rename from packages/kbn-unified-data-table/index.ts rename to src/platform/packages/shared/kbn-unified-data-table/index.ts diff --git a/src/platform/packages/shared/kbn-unified-data-table/jest.config.js b/src/platform/packages/shared/kbn-unified-data-table/jest.config.js new file mode 100644 index 0000000000000..93114893a5602 --- /dev/null +++ b/src/platform/packages/shared/kbn-unified-data-table/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-unified-data-table'], +}; diff --git a/packages/kbn-unified-data-table/kibana.jsonc b/src/platform/packages/shared/kbn-unified-data-table/kibana.jsonc similarity index 100% rename from packages/kbn-unified-data-table/kibana.jsonc rename to src/platform/packages/shared/kbn-unified-data-table/kibana.jsonc diff --git a/packages/kbn-unified-data-table/package.json b/src/platform/packages/shared/kbn-unified-data-table/package.json similarity index 100% rename from packages/kbn-unified-data-table/package.json rename to src/platform/packages/shared/kbn-unified-data-table/package.json diff --git a/packages/kbn-unified-data-table/src/components/__snapshots__/data_table_columns.test.tsx.snap b/src/platform/packages/shared/kbn-unified-data-table/src/components/__snapshots__/data_table_columns.test.tsx.snap similarity index 100% rename from packages/kbn-unified-data-table/src/components/__snapshots__/data_table_columns.test.tsx.snap rename to src/platform/packages/shared/kbn-unified-data-table/src/components/__snapshots__/data_table_columns.test.tsx.snap diff --git a/packages/kbn-unified-data-table/src/components/actions/columns.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/actions/columns.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/actions/columns.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/actions/columns.test.ts diff --git a/packages/kbn-unified-data-table/src/components/actions/columns.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/actions/columns.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/actions/columns.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/actions/columns.ts diff --git a/packages/kbn-unified-data-table/src/components/build_copy_column_button.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/build_copy_column_button.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/build_copy_column_button.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/build_copy_column_button.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/build_copy_column_button.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/build_copy_column_button.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/build_copy_column_button.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/build_copy_column_button.tsx diff --git a/packages/kbn-unified-data-table/src/components/build_edit_field_button.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/build_edit_field_button.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/build_edit_field_button.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/build_edit_field_button.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/build_edit_field_button.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/build_edit_field_button.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/build_edit_field_button.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/build_edit_field_button.tsx diff --git a/packages/kbn-unified-data-table/src/components/column_header_truncate_container.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/column_header_truncate_container.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/column_header_truncate_container.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/column_header_truncate_container.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/compare_documents.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/compare_documents.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/compare_documents.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/compare_documents.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/compare_documents.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/compare_documents.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/compare_documents.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/compare_documents.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/comparison_controls.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/comparison_controls.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/comparison_controls.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/comparison_controls.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/comparison_controls.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/comparison_controls.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/comparison_controls.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/comparison_controls.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/comparison_toolbar.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_cell_value.test.tsx.snap b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_cell_value.test.tsx.snap similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_cell_value.test.tsx.snap rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_cell_value.test.tsx.snap diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_css.test.ts.snap b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_css.test.ts.snap similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_css.test.ts.snap rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/__snapshots__/use_comparison_css.test.ts.snap diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.test.ts diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/calculate_diff.ts diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_cell_value.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_columns.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.test.ts diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_css.ts diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.test.ts diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/hooks/use_comparison_fields.ts diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/index.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/index.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/index.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/index.tsx diff --git a/packages/kbn-unified-data-table/src/components/compare_documents/types.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/types.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/compare_documents/types.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/compare_documents/types.ts diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/get_additional_row_control_columns.ts diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/index.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/index.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/index.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/index.ts diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.tsx diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.tsx diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/color_indicator_control_column.tsx diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/index.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/index.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/index.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/color_indicator/index.ts diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/index.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/index.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_control_columns/index.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_control_columns/index.ts diff --git a/packages/kbn-unified-data-table/src/components/custom_toolbar/__snapshots__/render_custom_toolbar.test.tsx.snap b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_toolbar/__snapshots__/render_custom_toolbar.test.tsx.snap similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_toolbar/__snapshots__/render_custom_toolbar.test.tsx.snap rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_toolbar/__snapshots__/render_custom_toolbar.test.tsx.snap diff --git a/packages/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.scss b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.scss similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.scss rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.scss diff --git a/packages/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/custom_toolbar/render_custom_toolbar.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table.scss b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.scss similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table.scss rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.scss diff --git a/packages/kbn-unified-data-table/src/components/data_table.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_additional_display_settings.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_additional_display_settings.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_additional_display_settings.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_additional_display_settings.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_additional_display_settings.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_additional_display_settings.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_additional_display_settings.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_additional_display_settings.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_cell_value.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_cell_value.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_cell_value.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_cell_value.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_column_header.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_column_header.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_column_header.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_column_header.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_column_header.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_column_header.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_column_header.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_column_header.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_columns.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_columns.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_columns.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_columns.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_columns.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_columns.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_columns.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_columns.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_copy_rows_as_json.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_copy_rows_as_json.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_copy_rows_as_json.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_copy_rows_as_json.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_copy_rows_as_text.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_copy_rows_as_text.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_copy_rows_as_text.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_copy_rows_as_text.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_document_selection.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_document_selection.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_document_selection.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_document_selection.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_document_selection.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_document_selection.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_document_selection.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_document_selection.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_expand_button.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_expand_button.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_expand_button.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_expand_button.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_expand_button.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_expand_button.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_expand_button.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_expand_button.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_footer.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_footer.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_footer.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_footer.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_footer.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_footer.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_footer.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_footer.tsx diff --git a/packages/kbn-unified-data-table/src/components/data_table_schema.ts b/src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_schema.ts similarity index 100% rename from packages/kbn-unified-data-table/src/components/data_table_schema.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_schema.ts diff --git a/packages/kbn-unified-data-table/src/components/default_cell_actions.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/default_cell_actions.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/default_cell_actions.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/default_cell_actions.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/default_cell_actions.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/default_cell_actions.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/default_cell_actions.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/default_cell_actions.tsx diff --git a/packages/kbn-unified-data-table/src/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap b/src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap similarity index 100% rename from packages/kbn-unified-data-table/src/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap rename to src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap diff --git a/packages/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.scss b/src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.scss similarity index 100% rename from packages/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.scss rename to src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.scss diff --git a/packages/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/json_code_editor.tsx diff --git a/packages/kbn-unified-data-table/src/components/json_code_editor/json_code_editor_common.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/json_code_editor_common.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/json_code_editor/json_code_editor_common.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/json_code_editor/json_code_editor_common.tsx diff --git a/packages/kbn-unified-data-table/src/components/row_height_settings.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/row_height_settings.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/row_height_settings.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/row_height_settings.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/row_height_settings.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/row_height_settings.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/row_height_settings.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/row_height_settings.tsx diff --git a/packages/kbn-unified-data-table/src/components/source_document.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/source_document.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/source_document.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/source_document.test.tsx diff --git a/packages/kbn-unified-data-table/src/components/source_document.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/source_document.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/source_document.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/source_document.tsx diff --git a/packages/kbn-unified-data-table/src/components/source_popover_content.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/components/source_popover_content.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/components/source_popover_content.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/components/source_popover_content.tsx diff --git a/packages/kbn-unified-data-table/src/constants.ts b/src/platform/packages/shared/kbn-unified-data-table/src/constants.ts similarity index 100% rename from packages/kbn-unified-data-table/src/constants.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/constants.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_control_column.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_control_column.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_control_column.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_control_column.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_data_grid_columns.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_data_grid_columns.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_data_grid_columns.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_data_grid_columns.test.tsx diff --git a/packages/kbn-unified-data-table/src/hooks/use_data_grid_columns.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_data_grid_columns.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_data_grid_columns.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_data_grid_columns.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_data_grid_density.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_data_grid_density.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_data_grid_density.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_data_grid_density.test.tsx diff --git a/packages/kbn-unified-data-table/src/hooks/use_data_grid_density.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_data_grid_density.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_data_grid_density.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_data_grid_density.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_full_screen_watcher.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_full_screen_watcher.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_full_screen_watcher.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_full_screen_watcher.test.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_full_screen_watcher.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_full_screen_watcher.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_full_screen_watcher.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_full_screen_watcher.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_row_height.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_row_height.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_row_height.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_row_height.test.tsx diff --git a/packages/kbn-unified-data-table/src/hooks/use_row_height.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_row_height.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_row_height.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_row_height.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_row_heights_options.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_row_heights_options.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_row_heights_options.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_row_heights_options.test.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_row_heights_options.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_row_heights_options.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_row_heights_options.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_row_heights_options.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_selected_docs.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_selected_docs.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_selected_docs.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_selected_docs.test.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_selected_docs.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_selected_docs.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_selected_docs.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_selected_docs.ts diff --git a/packages/kbn-unified-data-table/src/hooks/use_sorting.ts b/src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_sorting.ts similarity index 100% rename from packages/kbn-unified-data-table/src/hooks/use_sorting.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/hooks/use_sorting.ts diff --git a/packages/kbn-unified-data-table/src/table_context.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/table_context.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/table_context.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/table_context.tsx diff --git a/packages/kbn-unified-data-table/src/types.ts b/src/platform/packages/shared/kbn-unified-data-table/src/types.ts similarity index 100% rename from packages/kbn-unified-data-table/src/types.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/types.ts diff --git a/packages/kbn-unified-data-table/src/utils/columns.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/columns.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/columns.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/columns.test.ts diff --git a/packages/kbn-unified-data-table/src/utils/columns.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/columns.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/columns.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/columns.ts diff --git a/packages/kbn-unified-data-table/src/utils/convert_value_to_string.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/utils/convert_value_to_string.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/utils/convert_value_to_string.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/convert_value_to_string.test.tsx diff --git a/packages/kbn-unified-data-table/src/utils/convert_value_to_string.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/convert_value_to_string.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/convert_value_to_string.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/convert_value_to_string.ts diff --git a/packages/kbn-unified-data-table/src/utils/copy_value_to_clipboard.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/utils/copy_value_to_clipboard.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/utils/copy_value_to_clipboard.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/copy_value_to_clipboard.test.tsx diff --git a/packages/kbn-unified-data-table/src/utils/copy_value_to_clipboard.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/copy_value_to_clipboard.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/copy_value_to_clipboard.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/copy_value_to_clipboard.ts diff --git a/packages/kbn-unified-data-table/src/utils/get_columns_meta.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/get_columns_meta.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/get_columns_meta.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/get_columns_meta.test.ts diff --git a/packages/kbn-unified-data-table/src/utils/get_columns_meta.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/get_columns_meta.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/get_columns_meta.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/get_columns_meta.ts diff --git a/packages/kbn-unified-data-table/src/utils/get_field_capabilities.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/get_field_capabilities.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/get_field_capabilities.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/get_field_capabilities.test.ts diff --git a/packages/kbn-unified-data-table/src/utils/get_field_capabilities.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/get_field_capabilities.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/get_field_capabilities.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/get_field_capabilities.ts diff --git a/packages/kbn-unified-data-table/src/utils/get_render_cell_popover.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/utils/get_render_cell_popover.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/utils/get_render_cell_popover.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/get_render_cell_popover.test.tsx diff --git a/packages/kbn-unified-data-table/src/utils/get_render_cell_popover.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/utils/get_render_cell_popover.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/utils/get_render_cell_popover.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/get_render_cell_popover.tsx diff --git a/packages/kbn-unified-data-table/src/utils/get_render_cell_value.test.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/utils/get_render_cell_value.test.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/utils/get_render_cell_value.test.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/get_render_cell_value.test.tsx diff --git a/packages/kbn-unified-data-table/src/utils/get_render_cell_value.tsx b/src/platform/packages/shared/kbn-unified-data-table/src/utils/get_render_cell_value.tsx similarity index 100% rename from packages/kbn-unified-data-table/src/utils/get_render_cell_value.tsx rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/get_render_cell_value.tsx diff --git a/packages/kbn-unified-data-table/src/utils/popularize_field.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/popularize_field.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/popularize_field.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/popularize_field.test.ts diff --git a/packages/kbn-unified-data-table/src/utils/popularize_field.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/popularize_field.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/popularize_field.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/popularize_field.ts diff --git a/packages/kbn-unified-data-table/src/utils/row_heights.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/row_heights.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/row_heights.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/row_heights.ts diff --git a/packages/kbn-unified-data-table/src/utils/rows_per_page.test.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/rows_per_page.test.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/rows_per_page.test.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/rows_per_page.test.ts diff --git a/packages/kbn-unified-data-table/src/utils/rows_per_page.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/rows_per_page.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/rows_per_page.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/rows_per_page.ts diff --git a/packages/kbn-unified-data-table/src/utils/validate_row_height.ts b/src/platform/packages/shared/kbn-unified-data-table/src/utils/validate_row_height.ts similarity index 100% rename from packages/kbn-unified-data-table/src/utils/validate_row_height.ts rename to src/platform/packages/shared/kbn-unified-data-table/src/utils/validate_row_height.ts diff --git a/packages/kbn-unified-data-table/tsconfig.json b/src/platform/packages/shared/kbn-unified-data-table/tsconfig.json similarity index 95% rename from packages/kbn-unified-data-table/tsconfig.json rename to src/platform/packages/shared/kbn-unified-data-table/tsconfig.json index c50d2084efa39..551456fc67b7e 100644 --- a/packages/kbn-unified-data-table/tsconfig.json +++ b/src/platform/packages/shared/kbn-unified-data-table/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-unified-doc-viewer/README.md b/src/platform/packages/shared/kbn-unified-doc-viewer/README.md similarity index 100% rename from packages/kbn-unified-doc-viewer/README.md rename to src/platform/packages/shared/kbn-unified-doc-viewer/README.md diff --git a/packages/kbn-unified-doc-viewer/index.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/index.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/index.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/index.ts diff --git a/src/platform/packages/shared/kbn-unified-doc-viewer/jest.config.js b/src/platform/packages/shared/kbn-unified-doc-viewer/jest.config.js new file mode 100644 index 0000000000000..86a5dc2f35a20 --- /dev/null +++ b/src/platform/packages/shared/kbn-unified-doc-viewer/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-unified-doc-viewer'], +}; diff --git a/packages/kbn-unified-doc-viewer/kibana.jsonc b/src/platform/packages/shared/kbn-unified-doc-viewer/kibana.jsonc similarity index 100% rename from packages/kbn-unified-doc-viewer/kibana.jsonc rename to src/platform/packages/shared/kbn-unified-doc-viewer/kibana.jsonc diff --git a/packages/kbn-unified-doc-viewer/package.json b/src/platform/packages/shared/kbn-unified-doc-viewer/package.json similarity index 100% rename from packages/kbn-unified-doc-viewer/package.json rename to src/platform/packages/shared/kbn-unified-doc-viewer/package.json diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer.test.tsx.snap b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer.test.tsx.snap similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer.test.tsx.snap rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer.test.tsx.snap diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer_render_tab.test.tsx.snap b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer_render_tab.test.tsx.snap similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer_render_tab.test.tsx.snap rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/__snapshots__/doc_viewer_render_tab.test.tsx.snap diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.test.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.test.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.test.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.test.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.test.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.test.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.test.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.test.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_error.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.test.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.test.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.test.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.test.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.test.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.test.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.test.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.test.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_tab.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/doc_viewer/index.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/index.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/doc_viewer/index.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/index.ts diff --git a/packages/kbn-unified-doc-viewer/src/components/field_name/__snapshots__/field_name.test.tsx.snap b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/__snapshots__/field_name.test.tsx.snap similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/field_name/__snapshots__/field_name.test.tsx.snap rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/__snapshots__/field_name.test.tsx.snap diff --git a/packages/kbn-unified-doc-viewer/src/components/field_name/__stories__/field_name.stories.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/__stories__/field_name.stories.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/field_name/__stories__/field_name.stories.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/__stories__/field_name.stories.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/field_name/field_name.scss b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/field_name.scss similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/field_name/field_name.scss rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/field_name.scss diff --git a/packages/kbn-unified-doc-viewer/src/components/field_name/field_name.test.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/field_name.test.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/field_name/field_name.test.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/field_name.test.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/field_name/field_name.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/field_name.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/field_name/field_name.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/field_name.tsx diff --git a/packages/kbn-unified-doc-viewer/src/components/field_name/index.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/index.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/field_name/index.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/field_name/index.ts diff --git a/packages/kbn-unified-doc-viewer/src/components/index.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/index.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/src/components/index.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/components/index.ts diff --git a/packages/kbn-unified-doc-viewer/src/index.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/src/index.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/src/index.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/index.ts diff --git a/packages/kbn-unified-doc-viewer/src/services/doc_views_registry.test.tsx b/src/platform/packages/shared/kbn-unified-doc-viewer/src/services/doc_views_registry.test.tsx similarity index 100% rename from packages/kbn-unified-doc-viewer/src/services/doc_views_registry.test.tsx rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/services/doc_views_registry.test.tsx diff --git a/packages/kbn-unified-doc-viewer/src/services/doc_views_registry.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/src/services/doc_views_registry.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/src/services/doc_views_registry.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/services/doc_views_registry.ts diff --git a/packages/kbn-unified-doc-viewer/src/services/index.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/src/services/index.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/src/services/index.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/services/index.ts diff --git a/packages/kbn-unified-doc-viewer/src/services/types.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/src/services/types.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/src/services/types.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/services/types.ts diff --git a/packages/kbn-unified-doc-viewer/src/types.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/src/types.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/src/types.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/src/types.ts diff --git a/packages/kbn-unified-doc-viewer/tsconfig.json b/src/platform/packages/shared/kbn-unified-doc-viewer/tsconfig.json similarity index 89% rename from packages/kbn-unified-doc-viewer/tsconfig.json rename to src/platform/packages/shared/kbn-unified-doc-viewer/tsconfig.json index e9429af74bd74..fe5114786bd9e 100644 --- a/packages/kbn-unified-doc-viewer/tsconfig.json +++ b/src/platform/packages/shared/kbn-unified-doc-viewer/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-unified-doc-viewer/types.ts b/src/platform/packages/shared/kbn-unified-doc-viewer/types.ts similarity index 100% rename from packages/kbn-unified-doc-viewer/types.ts rename to src/platform/packages/shared/kbn-unified-doc-viewer/types.ts diff --git a/packages/kbn-unified-field-list/README.md b/src/platform/packages/shared/kbn-unified-field-list/README.md similarity index 100% rename from packages/kbn-unified-field-list/README.md rename to src/platform/packages/shared/kbn-unified-field-list/README.md diff --git a/packages/kbn-unified-field-list/__mocks__/services.mock.ts b/src/platform/packages/shared/kbn-unified-field-list/__mocks__/services.mock.ts similarity index 100% rename from packages/kbn-unified-field-list/__mocks__/services.mock.ts rename to src/platform/packages/shared/kbn-unified-field-list/__mocks__/services.mock.ts diff --git a/packages/kbn-unified-field-list/index.ts b/src/platform/packages/shared/kbn-unified-field-list/index.ts similarity index 100% rename from packages/kbn-unified-field-list/index.ts rename to src/platform/packages/shared/kbn-unified-field-list/index.ts diff --git a/src/platform/packages/shared/kbn-unified-field-list/jest.config.js b/src/platform/packages/shared/kbn-unified-field-list/jest.config.js new file mode 100644 index 0000000000000..a29d13b37e89e --- /dev/null +++ b/src/platform/packages/shared/kbn-unified-field-list/jest.config.js @@ -0,0 +1,14 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-unified-field-list'], +}; diff --git a/packages/kbn-unified-field-list/kibana.jsonc b/src/platform/packages/shared/kbn-unified-field-list/kibana.jsonc similarity index 100% rename from packages/kbn-unified-field-list/kibana.jsonc rename to src/platform/packages/shared/kbn-unified-field-list/kibana.jsonc diff --git a/packages/kbn-unified-field-list/package.json b/src/platform/packages/shared/kbn-unified-field-list/package.json similarity index 100% rename from packages/kbn-unified-field-list/package.json rename to src/platform/packages/shared/kbn-unified-field-list/package.json diff --git a/packages/kbn-unified-field-list/src/components/error_boundary/error_boundary.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/error_boundary/error_boundary.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/error_boundary/error_boundary.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/error_boundary/error_boundary.tsx diff --git a/packages/kbn-unified-field-list/src/components/error_boundary/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/error_boundary/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/error_boundary/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/error_boundary/index.tsx diff --git a/packages/kbn-unified-field-list/src/components/fallback_fields/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/fallback_fields/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/fallback_fields/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/fallback_fields/index.tsx diff --git a/packages/kbn-unified-field-list/src/components/fallback_fields/smart_fields_tooltip.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/fallback_fields/smart_fields_tooltip.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/fallback_fields/smart_fields_tooltip.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/fallback_fields/smart_fields_tooltip.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_item_button/__snapshots__/field_item_button.test.tsx.snap b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/__snapshots__/field_item_button.test.tsx.snap similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_item_button/__snapshots__/field_item_button.test.tsx.snap rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/__snapshots__/field_item_button.test.tsx.snap diff --git a/packages/kbn-unified-field-list/src/components/field_item_button/field_item_button.scss b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/field_item_button.scss similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_item_button/field_item_button.scss rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/field_item_button.scss diff --git a/packages/kbn-unified-field-list/src/components/field_item_button/field_item_button.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/field_item_button.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_item_button/field_item_button.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/field_item_button.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_item_button/field_item_button.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/field_item_button.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_item_button/field_item_button.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/field_item_button.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_item_button/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_item_button/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_item_button/index.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list/field_list.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list/field_list.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list/field_list.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list/field_list.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list/field_list.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list/field_list.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list/field_list.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list/field_list.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list/index.ts b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list/index.ts similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list/index.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list/index.ts diff --git a/packages/kbn-unified-field-list/src/components/field_list_filters/field_list_filters.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_list_filters.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_filters/field_list_filters.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_list_filters.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_filters/field_name_search.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_name_search.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_filters/field_name_search.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_name_search.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_filters/field_name_search.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_name_search.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_filters/field_name_search.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_name_search.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/field_type_filter.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_filters/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_filters/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_filters/index.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.scss b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.scss similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.scss rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.scss diff --git a/packages/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/field_list_grouped.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.scss b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.scss similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.scss rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.scss diff --git a/packages/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/fields_accordion.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_grouped/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_grouped/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/index.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_list_grouped/no_fields_callout.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_popover/field_popover.scss b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.scss similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_popover/field_popover.scss rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.scss diff --git a/packages/kbn-unified-field-list/src/components/field_popover/field_popover.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_popover/field_popover.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_popover/field_popover.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_popover/field_popover.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_popover/field_popover_footer.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover_footer.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_popover/field_popover_footer.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover_footer.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_popover/field_popover_header.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover_header.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_popover/field_popover_header.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover_header.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_popover/field_popover_header.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover_header.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_popover/field_popover_header.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/field_popover_header.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_popover/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_popover/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_popover/index.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_stats/field_number_summary.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_number_summary.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_stats/field_number_summary.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_number_summary.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_stats/field_number_summary.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_number_summary.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_stats/field_number_summary.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_number_summary.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_stats/field_stats.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_stats.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_stats/field_stats.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_stats.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_stats/field_stats.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_stats.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_stats/field_stats.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_stats.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_stats/field_summary_message.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_summary_message.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_stats/field_summary_message.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_summary_message.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_stats/field_top_values.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_top_values.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_stats/field_top_values.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_top_values.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_stats/field_top_values.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_top_values.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_stats/field_top_values.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_top_values.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_stats/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_stats/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/index.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.test.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button_inner.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button_inner.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button_inner.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/field_visualize_button_inner.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_visualize_button/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_visualize_button/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/index.tsx diff --git a/packages/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.test.ts b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.test.ts similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.test.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.test.ts diff --git a/packages/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.ts b/src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.ts similarity index 100% rename from packages/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/components/field_visualize_button/visualize_trigger_utils.ts diff --git a/packages/kbn-unified-field-list/src/constants.ts b/src/platform/packages/shared/kbn-unified-field-list/src/constants.ts similarity index 100% rename from packages/kbn-unified-field-list/src/constants.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/constants.ts diff --git a/packages/kbn-unified-field-list/src/containers/services/state_service.ts b/src/platform/packages/shared/kbn-unified-field-list/src/containers/services/state_service.ts similarity index 100% rename from packages/kbn-unified-field-list/src/containers/services/state_service.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/services/state_service.ts diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.test.tsx diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.tsx diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item_stats.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item_stats.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item_stats.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item_stats.tsx diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_item/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_item/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_item/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_item/index.tsx diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.scss b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.scss similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.scss rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.scss diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar.tsx diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar_container.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar_container.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar_container.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/field_list_sidebar_container.tsx diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.test.tsx diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.ts b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.ts similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/get_sidebar_visibility.ts diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.test.ts b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.test.ts similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.test.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.test.ts diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/group_fields.tsx diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/index.tsx diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/index.ts b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/index.ts similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/index.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/index.ts diff --git a/packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/sidebar_toggle_button.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/sidebar_toggle_button.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/sidebar_toggle_button.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/containers/unified_field_list_sidebar/sidebar_toggle_button/sidebar_toggle_button.tsx diff --git a/packages/kbn-unified-field-list/src/hooks/__snapshots__/use_grouped_fields.test.tsx.snap b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/__snapshots__/use_grouped_fields.test.tsx.snap similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/__snapshots__/use_grouped_fields.test.tsx.snap rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/__snapshots__/use_grouped_fields.test.tsx.snap diff --git a/packages/kbn-unified-field-list/src/hooks/use_existing_fields.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_existing_fields.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/use_existing_fields.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_existing_fields.test.tsx diff --git a/packages/kbn-unified-field-list/src/hooks/use_existing_fields.ts b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_existing_fields.ts similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/use_existing_fields.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_existing_fields.ts diff --git a/packages/kbn-unified-field-list/src/hooks/use_field_filters.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_field_filters.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/use_field_filters.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_field_filters.test.tsx diff --git a/packages/kbn-unified-field-list/src/hooks/use_field_filters.ts b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_field_filters.ts similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/use_field_filters.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_field_filters.ts diff --git a/packages/kbn-unified-field-list/src/hooks/use_grouped_fields.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_grouped_fields.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/use_grouped_fields.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_grouped_fields.test.tsx diff --git a/packages/kbn-unified-field-list/src/hooks/use_grouped_fields.ts b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_grouped_fields.ts similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/use_grouped_fields.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_grouped_fields.ts diff --git a/packages/kbn-unified-field-list/src/hooks/use_new_fields.test.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_new_fields.test.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/use_new_fields.test.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_new_fields.test.tsx diff --git a/packages/kbn-unified-field-list/src/hooks/use_new_fields.ts b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_new_fields.ts similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/use_new_fields.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_new_fields.ts diff --git a/packages/kbn-unified-field-list/src/hooks/use_query_subscriber.ts b/src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_query_subscriber.ts similarity index 100% rename from packages/kbn-unified-field-list/src/hooks/use_query_subscriber.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/hooks/use_query_subscriber.ts diff --git a/packages/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.test.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.test.ts similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.test.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.test.ts diff --git a/packages/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.ts similarity index 96% rename from packages/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.ts index 55d0c30b58e34..2fdbaafdef9df 100644 --- a/packages/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.ts +++ b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_examples_calculator/field_examples_calculator.ts @@ -7,7 +7,7 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -// Adapted from src/plugins/discover/public/application/main/components/sidebar/lib/field_calculator.js +// Adapted from src/platform/plugins/shared/discover/public/application/main/components/sidebar/lib/field_calculator.js import { map, sortBy, defaults, isObject, pick } from 'lodash'; import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; diff --git a/packages/kbn-unified-field-list/src/services/field_examples_calculator/index.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_examples_calculator/index.ts similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_examples_calculator/index.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_examples_calculator/index.ts diff --git a/packages/kbn-unified-field-list/src/services/field_existing/field_existing_utils.test.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_existing/field_existing_utils.test.ts similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_existing/field_existing_utils.test.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_existing/field_existing_utils.test.ts diff --git a/packages/kbn-unified-field-list/src/services/field_existing/field_existing_utils.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_existing/field_existing_utils.ts similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_existing/field_existing_utils.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_existing/field_existing_utils.ts diff --git a/packages/kbn-unified-field-list/src/services/field_existing/index.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_existing/index.ts similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_existing/index.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_existing/index.ts diff --git a/packages/kbn-unified-field-list/src/services/field_existing/load_field_existing.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_existing/load_field_existing.ts similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_existing/load_field_existing.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_existing/load_field_existing.ts diff --git a/packages/kbn-unified-field-list/src/services/field_stats/__snapshots__/field_stats_utils.test.ts.snap b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/__snapshots__/field_stats_utils.test.ts.snap similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_stats/__snapshots__/field_stats_utils.test.ts.snap rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/__snapshots__/field_stats_utils.test.ts.snap diff --git a/packages/kbn-unified-field-list/src/services/field_stats/field_stats_utils.test.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/field_stats_utils.test.ts similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_stats/field_stats_utils.test.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/field_stats_utils.test.ts diff --git a/packages/kbn-unified-field-list/src/services/field_stats/field_stats_utils.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/field_stats_utils.ts similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_stats/field_stats_utils.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/field_stats_utils.ts diff --git a/packages/kbn-unified-field-list/src/services/field_stats/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_stats/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/index.tsx diff --git a/packages/kbn-unified-field-list/src/services/field_stats/load_field_stats.ts b/src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/load_field_stats.ts similarity index 100% rename from packages/kbn-unified-field-list/src/services/field_stats/load_field_stats.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/services/field_stats/load_field_stats.ts diff --git a/packages/kbn-unified-field-list/src/services/index.tsx b/src/platform/packages/shared/kbn-unified-field-list/src/services/index.tsx similarity index 100% rename from packages/kbn-unified-field-list/src/services/index.tsx rename to src/platform/packages/shared/kbn-unified-field-list/src/services/index.tsx diff --git a/packages/kbn-unified-field-list/src/types.ts b/src/platform/packages/shared/kbn-unified-field-list/src/types.ts similarity index 100% rename from packages/kbn-unified-field-list/src/types.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/types.ts diff --git a/packages/kbn-unified-field-list/src/utils/can_provide_stats.test.ts b/src/platform/packages/shared/kbn-unified-field-list/src/utils/can_provide_stats.test.ts similarity index 100% rename from packages/kbn-unified-field-list/src/utils/can_provide_stats.test.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/utils/can_provide_stats.test.ts diff --git a/packages/kbn-unified-field-list/src/utils/can_provide_stats.ts b/src/platform/packages/shared/kbn-unified-field-list/src/utils/can_provide_stats.ts similarity index 100% rename from packages/kbn-unified-field-list/src/utils/can_provide_stats.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/utils/can_provide_stats.ts diff --git a/packages/kbn-unified-field-list/src/utils/fallback_fields.test.ts b/src/platform/packages/shared/kbn-unified-field-list/src/utils/fallback_fields.test.ts similarity index 100% rename from packages/kbn-unified-field-list/src/utils/fallback_fields.test.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/utils/fallback_fields.test.ts diff --git a/packages/kbn-unified-field-list/src/utils/fallback_fields.ts b/src/platform/packages/shared/kbn-unified-field-list/src/utils/fallback_fields.ts similarity index 100% rename from packages/kbn-unified-field-list/src/utils/fallback_fields.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/utils/fallback_fields.ts diff --git a/packages/kbn-unified-field-list/src/utils/get_resolved_date_range.ts b/src/platform/packages/shared/kbn-unified-field-list/src/utils/get_resolved_date_range.ts similarity index 100% rename from packages/kbn-unified-field-list/src/utils/get_resolved_date_range.ts rename to src/platform/packages/shared/kbn-unified-field-list/src/utils/get_resolved_date_range.ts diff --git a/packages/kbn-unified-field-list/tsconfig.json b/src/platform/packages/shared/kbn-unified-field-list/tsconfig.json similarity index 95% rename from packages/kbn-unified-field-list/tsconfig.json rename to src/platform/packages/shared/kbn-unified-field-list/tsconfig.json index 630ce0540ee1d..dffff106aed28 100644 --- a/packages/kbn-unified-field-list/tsconfig.json +++ b/src/platform/packages/shared/kbn-unified-field-list/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/src/plugins/data_view_editor/README.md b/src/platform/plugins/shared/data_view_editor/README.md similarity index 100% rename from src/plugins/data_view_editor/README.md rename to src/platform/plugins/shared/data_view_editor/README.md diff --git a/src/plugins/saved_objects_finder/jest.config.js b/src/platform/plugins/shared/data_view_editor/jest.config.js similarity index 66% rename from src/plugins/saved_objects_finder/jest.config.js rename to src/platform/plugins/shared/data_view_editor/jest.config.js index 63dab95038f30..c7188082d4534 100644 --- a/src/plugins/saved_objects_finder/jest.config.js +++ b/src/platform/plugins/shared/data_view_editor/jest.config.js @@ -9,11 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/saved_objects_finder'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/saved_objects_finder', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/data_view_editor'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/data_view_editor', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/saved_objects_finder/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/data_view_editor/public/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/data_view_editor/kibana.jsonc b/src/platform/plugins/shared/data_view_editor/kibana.jsonc similarity index 100% rename from src/plugins/data_view_editor/kibana.jsonc rename to src/platform/plugins/shared/data_view_editor/kibana.jsonc diff --git a/src/plugins/data_view_editor/public/components/_templates.scss b/src/platform/plugins/shared/data_view_editor/public/components/_templates.scss similarity index 100% rename from src/plugins/data_view_editor/public/components/_templates.scss rename to src/platform/plugins/shared/data_view_editor/public/components/_templates.scss diff --git a/src/plugins/data_view_editor/public/components/_variables.scss b/src/platform/plugins/shared/data_view_editor/public/components/_variables.scss similarity index 100% rename from src/plugins/data_view_editor/public/components/_variables.scss rename to src/platform/plugins/shared/data_view_editor/public/components/_variables.scss diff --git a/src/plugins/data_view_editor/public/components/advanced_params_content/advanced_params_content.tsx b/src/platform/plugins/shared/data_view_editor/public/components/advanced_params_content/advanced_params_content.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/advanced_params_content/advanced_params_content.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/advanced_params_content/advanced_params_content.tsx diff --git a/src/plugins/data_view_editor/public/components/advanced_params_content/advanced_params_section.tsx b/src/platform/plugins/shared/data_view_editor/public/components/advanced_params_content/advanced_params_section.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/advanced_params_content/advanced_params_section.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/advanced_params_content/advanced_params_section.tsx diff --git a/src/plugins/data_view_editor/public/components/advanced_params_content/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/advanced_params_content/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/advanced_params_content/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/advanced_params_content/index.ts diff --git a/src/plugins/data_view_editor/public/components/confirm_modals/edit_data_view_changed_modal.tsx b/src/platform/plugins/shared/data_view_editor/public/components/confirm_modals/edit_data_view_changed_modal.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/confirm_modals/edit_data_view_changed_modal.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/confirm_modals/edit_data_view_changed_modal.tsx diff --git a/src/plugins/data_view_editor/public/components/data_view_editor.scss b/src/platform/plugins/shared/data_view_editor/public/components/data_view_editor.scss similarity index 100% rename from src/plugins/data_view_editor/public/components/data_view_editor.scss rename to src/platform/plugins/shared/data_view_editor/public/components/data_view_editor.scss diff --git a/src/plugins/data_view_editor/public/components/data_view_editor.tsx b/src/platform/plugins/shared/data_view_editor/public/components/data_view_editor.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/data_view_editor.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/data_view_editor.tsx diff --git a/src/plugins/data_view_editor/public/components/data_view_editor_flyout_content.tsx b/src/platform/plugins/shared/data_view_editor/public/components/data_view_editor_flyout_content.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/data_view_editor_flyout_content.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/data_view_editor_flyout_content.tsx diff --git a/src/plugins/data_view_editor/public/components/data_view_editor_lazy.tsx b/src/platform/plugins/shared/data_view_editor/public/components/data_view_editor_lazy.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/data_view_editor_lazy.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/data_view_editor_lazy.tsx diff --git a/src/plugins/data_view_editor/public/components/data_view_flyout_content_container.tsx b/src/platform/plugins/shared/data_view_editor/public/components/data_view_flyout_content_container.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/data_view_flyout_content_container.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/data_view_flyout_content_container.tsx diff --git a/src/plugins/data_view_editor/public/components/flyout_panels/flyout_panel.tsx b/src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panel.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/flyout_panels/flyout_panel.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panel.tsx diff --git a/src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels.scss b/src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels.scss similarity index 100% rename from src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels.scss rename to src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels.scss diff --git a/src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels.tsx b/src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels.tsx diff --git a/src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels_content.tsx b/src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels_content.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels_content.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels_content.tsx diff --git a/src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels_footer.tsx b/src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels_footer.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels_footer.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels_footer.tsx diff --git a/src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels_header.tsx b/src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels_header.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/flyout_panels/flyout_panels_header.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/flyout_panels_header.tsx diff --git a/src/plugins/data_view_editor/public/components/flyout_panels/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/flyout_panels/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/flyout_panels/index.ts diff --git a/src/plugins/data_view_editor/public/components/footer/footer.tsx b/src/platform/plugins/shared/data_view_editor/public/components/footer/footer.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/footer/footer.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/footer/footer.tsx diff --git a/src/plugins/data_view_editor/public/components/footer/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/footer/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/footer/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/footer/index.ts diff --git a/src/plugins/data_view_editor/public/components/form_fields/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/form_fields/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/form_fields/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/form_fields/index.ts diff --git a/src/plugins/data_view_editor/public/components/form_fields/name_field.tsx b/src/platform/plugins/shared/data_view_editor/public/components/form_fields/name_field.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/form_fields/name_field.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/form_fields/name_field.tsx diff --git a/src/plugins/data_view_editor/public/components/form_fields/timestamp_field.test.ts b/src/platform/plugins/shared/data_view_editor/public/components/form_fields/timestamp_field.test.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/form_fields/timestamp_field.test.ts rename to src/platform/plugins/shared/data_view_editor/public/components/form_fields/timestamp_field.test.ts diff --git a/src/plugins/data_view_editor/public/components/form_fields/timestamp_field.tsx b/src/platform/plugins/shared/data_view_editor/public/components/form_fields/timestamp_field.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/form_fields/timestamp_field.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/form_fields/timestamp_field.tsx diff --git a/src/plugins/data_view_editor/public/components/form_fields/title_docs_popover.test.tsx b/src/platform/plugins/shared/data_view_editor/public/components/form_fields/title_docs_popover.test.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/form_fields/title_docs_popover.test.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/form_fields/title_docs_popover.test.tsx diff --git a/src/plugins/data_view_editor/public/components/form_fields/title_docs_popover.tsx b/src/platform/plugins/shared/data_view_editor/public/components/form_fields/title_docs_popover.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/form_fields/title_docs_popover.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/form_fields/title_docs_popover.tsx diff --git a/src/plugins/data_view_editor/public/components/form_fields/title_field.tsx b/src/platform/plugins/shared/data_view_editor/public/components/form_fields/title_field.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/form_fields/title_field.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/form_fields/title_field.tsx diff --git a/src/plugins/data_view_editor/public/components/form_fields/type_field.tsx b/src/platform/plugins/shared/data_view_editor/public/components/form_fields/type_field.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/form_fields/type_field.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/form_fields/type_field.tsx diff --git a/src/plugins/data_view_editor/public/components/form_schema.test.ts b/src/platform/plugins/shared/data_view_editor/public/components/form_schema.test.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/form_schema.test.ts rename to src/platform/plugins/shared/data_view_editor/public/components/form_schema.test.ts diff --git a/src/plugins/data_view_editor/public/components/form_schema.ts b/src/platform/plugins/shared/data_view_editor/public/components/form_schema.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/form_schema.ts rename to src/platform/plugins/shared/data_view_editor/public/components/form_schema.ts diff --git a/src/plugins/data_view_editor/public/components/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/index.ts diff --git a/src/plugins/data_view_editor/public/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap b/src/platform/plugins/shared/data_view_editor/public/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap similarity index 100% rename from src/plugins/data_view_editor/public/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap rename to src/platform/plugins/shared/data_view_editor/public/components/loading_indices/__snapshots__/loading_indices.test.tsx.snap diff --git a/src/plugins/data_view_editor/public/components/loading_indices/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/loading_indices/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/loading_indices/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/loading_indices/index.ts diff --git a/src/plugins/data_view_editor/public/components/loading_indices/loading_indices.test.tsx b/src/platform/plugins/shared/data_view_editor/public/components/loading_indices/loading_indices.test.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/loading_indices/loading_indices.test.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/loading_indices/loading_indices.test.tsx diff --git a/src/plugins/data_view_editor/public/components/loading_indices/loading_indices.tsx b/src/platform/plugins/shared/data_view_editor/public/components/loading_indices/loading_indices.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/loading_indices/loading_indices.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/loading_indices/loading_indices.tsx diff --git a/src/plugins/data_view_editor/public/components/preview_panel/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/index.ts diff --git a/src/plugins/data_view_editor/public/components/preview_panel/indices_list/__snapshots__/indices_list.test.tsx.snap b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/indices_list/__snapshots__/indices_list.test.tsx.snap similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/indices_list/__snapshots__/indices_list.test.tsx.snap rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/indices_list/__snapshots__/indices_list.test.tsx.snap diff --git a/src/plugins/data_view_editor/public/components/preview_panel/indices_list/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/indices_list/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/indices_list/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/indices_list/index.ts diff --git a/src/plugins/data_view_editor/public/components/preview_panel/indices_list/indices_list.test.tsx b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/indices_list/indices_list.test.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/indices_list/indices_list.test.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/indices_list/indices_list.test.tsx diff --git a/src/plugins/data_view_editor/public/components/preview_panel/indices_list/indices_list.tsx b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/indices_list/indices_list.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/indices_list/indices_list.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/indices_list/indices_list.tsx diff --git a/src/plugins/data_view_editor/public/components/preview_panel/preview_panel.test.tsx b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/preview_panel.test.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/preview_panel.test.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/preview_panel.test.tsx diff --git a/src/plugins/data_view_editor/public/components/preview_panel/preview_panel.tsx b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/preview_panel.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/preview_panel.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/preview_panel.tsx diff --git a/src/plugins/data_view_editor/public/components/preview_panel/status_message/__snapshots__/status_message.test.tsx.snap b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/status_message/__snapshots__/status_message.test.tsx.snap similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/status_message/__snapshots__/status_message.test.tsx.snap rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/status_message/__snapshots__/status_message.test.tsx.snap diff --git a/src/plugins/data_view_editor/public/components/preview_panel/status_message/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/status_message/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/status_message/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/status_message/index.ts diff --git a/src/plugins/data_view_editor/public/components/preview_panel/status_message/status_message.test.tsx b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/status_message/status_message.test.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/status_message/status_message.test.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/status_message/status_message.test.tsx diff --git a/src/plugins/data_view_editor/public/components/preview_panel/status_message/status_message.tsx b/src/platform/plugins/shared/data_view_editor/public/components/preview_panel/status_message/status_message.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/preview_panel/status_message/status_message.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/preview_panel/status_message/status_message.tsx diff --git a/src/plugins/data_view_editor/public/components/rollup_deprecated_warning/index.ts b/src/platform/plugins/shared/data_view_editor/public/components/rollup_deprecated_warning/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/components/rollup_deprecated_warning/index.ts rename to src/platform/plugins/shared/data_view_editor/public/components/rollup_deprecated_warning/index.ts diff --git a/src/plugins/data_view_editor/public/components/rollup_deprecated_warning/rollup_deprecated_warning.tsx b/src/platform/plugins/shared/data_view_editor/public/components/rollup_deprecated_warning/rollup_deprecated_warning.tsx similarity index 100% rename from src/plugins/data_view_editor/public/components/rollup_deprecated_warning/rollup_deprecated_warning.tsx rename to src/platform/plugins/shared/data_view_editor/public/components/rollup_deprecated_warning/rollup_deprecated_warning.tsx diff --git a/src/plugins/data_view_editor/public/constants.ts b/src/platform/plugins/shared/data_view_editor/public/constants.ts similarity index 100% rename from src/plugins/data_view_editor/public/constants.ts rename to src/platform/plugins/shared/data_view_editor/public/constants.ts diff --git a/src/plugins/data_view_editor/public/data_view_editor_service.test.ts b/src/platform/plugins/shared/data_view_editor/public/data_view_editor_service.test.ts similarity index 100% rename from src/plugins/data_view_editor/public/data_view_editor_service.test.ts rename to src/platform/plugins/shared/data_view_editor/public/data_view_editor_service.test.ts diff --git a/src/plugins/data_view_editor/public/data_view_editor_service.ts b/src/platform/plugins/shared/data_view_editor/public/data_view_editor_service.ts similarity index 100% rename from src/plugins/data_view_editor/public/data_view_editor_service.ts rename to src/platform/plugins/shared/data_view_editor/public/data_view_editor_service.ts diff --git a/src/plugins/data_view_editor/public/data_view_editor_service_lazy.ts b/src/platform/plugins/shared/data_view_editor/public/data_view_editor_service_lazy.ts similarity index 100% rename from src/plugins/data_view_editor/public/data_view_editor_service_lazy.ts rename to src/platform/plugins/shared/data_view_editor/public/data_view_editor_service_lazy.ts diff --git a/src/plugins/data_view_editor/public/index.ts b/src/platform/plugins/shared/data_view_editor/public/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/index.ts rename to src/platform/plugins/shared/data_view_editor/public/index.ts diff --git a/src/plugins/data_view_editor/public/lib/can_append_wildcard.test.ts b/src/platform/plugins/shared/data_view_editor/public/lib/can_append_wildcard.test.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/can_append_wildcard.test.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/can_append_wildcard.test.ts diff --git a/src/plugins/data_view_editor/public/lib/can_append_wildcard.ts b/src/platform/plugins/shared/data_view_editor/public/lib/can_append_wildcard.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/can_append_wildcard.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/can_append_wildcard.ts diff --git a/src/plugins/data_view_editor/public/lib/contains_illegal_characters.ts b/src/platform/plugins/shared/data_view_editor/public/lib/contains_illegal_characters.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/contains_illegal_characters.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/contains_illegal_characters.ts diff --git a/src/plugins/data_view_editor/public/lib/contains_invalid_characters.test.ts b/src/platform/plugins/shared/data_view_editor/public/lib/contains_invalid_characters.test.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/contains_invalid_characters.test.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/contains_invalid_characters.test.ts diff --git a/src/plugins/data_view_editor/public/lib/ensure_minimum_time.test.ts b/src/platform/plugins/shared/data_view_editor/public/lib/ensure_minimum_time.test.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/ensure_minimum_time.test.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/ensure_minimum_time.test.ts diff --git a/src/plugins/data_view_editor/public/lib/ensure_minimum_time.ts b/src/platform/plugins/shared/data_view_editor/public/lib/ensure_minimum_time.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/ensure_minimum_time.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/ensure_minimum_time.ts diff --git a/src/plugins/data_view_editor/public/lib/extract_time_fields.test.ts b/src/platform/plugins/shared/data_view_editor/public/lib/extract_time_fields.test.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/extract_time_fields.test.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/extract_time_fields.test.ts diff --git a/src/plugins/data_view_editor/public/lib/extract_time_fields.ts b/src/platform/plugins/shared/data_view_editor/public/lib/extract_time_fields.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/extract_time_fields.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/extract_time_fields.ts diff --git a/src/plugins/data_view_editor/public/lib/get_matched_indices.test.ts b/src/platform/plugins/shared/data_view_editor/public/lib/get_matched_indices.test.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/get_matched_indices.test.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/get_matched_indices.test.ts diff --git a/src/plugins/data_view_editor/public/lib/get_matched_indices.ts b/src/platform/plugins/shared/data_view_editor/public/lib/get_matched_indices.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/get_matched_indices.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/get_matched_indices.ts diff --git a/src/plugins/data_view_editor/public/lib/index.ts b/src/platform/plugins/shared/data_view_editor/public/lib/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/index.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/index.ts diff --git a/src/plugins/data_view_editor/public/lib/remove_spaces.test.ts b/src/platform/plugins/shared/data_view_editor/public/lib/remove_spaces.test.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/remove_spaces.test.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/remove_spaces.test.ts diff --git a/src/plugins/data_view_editor/public/lib/remove_spaces.ts b/src/platform/plugins/shared/data_view_editor/public/lib/remove_spaces.ts similarity index 100% rename from src/plugins/data_view_editor/public/lib/remove_spaces.ts rename to src/platform/plugins/shared/data_view_editor/public/lib/remove_spaces.ts diff --git a/src/plugins/data_view_editor/public/mocks.ts b/src/platform/plugins/shared/data_view_editor/public/mocks.ts similarity index 100% rename from src/plugins/data_view_editor/public/mocks.ts rename to src/platform/plugins/shared/data_view_editor/public/mocks.ts diff --git a/src/plugins/data_view_editor/public/open_editor.tsx b/src/platform/plugins/shared/data_view_editor/public/open_editor.tsx similarity index 100% rename from src/plugins/data_view_editor/public/open_editor.tsx rename to src/platform/plugins/shared/data_view_editor/public/open_editor.tsx diff --git a/src/plugins/data_view_editor/public/plugin.test.tsx b/src/platform/plugins/shared/data_view_editor/public/plugin.test.tsx similarity index 100% rename from src/plugins/data_view_editor/public/plugin.test.tsx rename to src/platform/plugins/shared/data_view_editor/public/plugin.test.tsx diff --git a/src/plugins/data_view_editor/public/plugin.tsx b/src/platform/plugins/shared/data_view_editor/public/plugin.tsx similarity index 100% rename from src/plugins/data_view_editor/public/plugin.tsx rename to src/platform/plugins/shared/data_view_editor/public/plugin.tsx diff --git a/src/plugins/data_view_editor/public/shared_imports.ts b/src/platform/plugins/shared/data_view_editor/public/shared_imports.ts similarity index 100% rename from src/plugins/data_view_editor/public/shared_imports.ts rename to src/platform/plugins/shared/data_view_editor/public/shared_imports.ts diff --git a/src/plugins/data_view_editor/public/test_utils/helpers.ts b/src/platform/plugins/shared/data_view_editor/public/test_utils/helpers.ts similarity index 100% rename from src/plugins/data_view_editor/public/test_utils/helpers.ts rename to src/platform/plugins/shared/data_view_editor/public/test_utils/helpers.ts diff --git a/src/plugins/data_view_editor/public/test_utils/index.ts b/src/platform/plugins/shared/data_view_editor/public/test_utils/index.ts similarity index 100% rename from src/plugins/data_view_editor/public/test_utils/index.ts rename to src/platform/plugins/shared/data_view_editor/public/test_utils/index.ts diff --git a/src/plugins/data_view_editor/public/test_utils/mocks.ts b/src/platform/plugins/shared/data_view_editor/public/test_utils/mocks.ts similarity index 100% rename from src/plugins/data_view_editor/public/test_utils/mocks.ts rename to src/platform/plugins/shared/data_view_editor/public/test_utils/mocks.ts diff --git a/src/plugins/data_view_editor/public/test_utils/test_utils.ts b/src/platform/plugins/shared/data_view_editor/public/test_utils/test_utils.ts similarity index 100% rename from src/plugins/data_view_editor/public/test_utils/test_utils.ts rename to src/platform/plugins/shared/data_view_editor/public/test_utils/test_utils.ts diff --git a/src/plugins/data_view_editor/public/types.ts b/src/platform/plugins/shared/data_view_editor/public/types.ts similarity index 100% rename from src/plugins/data_view_editor/public/types.ts rename to src/platform/plugins/shared/data_view_editor/public/types.ts diff --git a/src/plugins/data_view_editor/tsconfig.json b/src/platform/plugins/shared/data_view_editor/tsconfig.json similarity index 91% rename from src/plugins/data_view_editor/tsconfig.json rename to src/platform/plugins/shared/data_view_editor/tsconfig.json index 3b15c5555d7b5..8fff1167aef6a 100644 --- a/src/plugins/data_view_editor/tsconfig.json +++ b/src/platform/plugins/shared/data_view_editor/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/data_view_field_editor/README.md b/src/platform/plugins/shared/data_view_field_editor/README.md similarity index 100% rename from src/plugins/data_view_field_editor/README.md rename to src/platform/plugins/shared/data_view_field_editor/README.md diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/field_editor.helpers.ts b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor.helpers.ts similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/field_editor.helpers.ts rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor.helpers.ts diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/field_editor.test.tsx b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/field_editor.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor.test.tsx diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.helpers.ts b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.helpers.ts similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.helpers.ts rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.helpers.ts diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.test.ts b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.test.ts similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.test.ts rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor_flyout_content.test.ts diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.helpers.ts b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.helpers.ts similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.helpers.ts rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.helpers.ts diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.test.ts b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.test.ts similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.test.ts rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/field_editor_flyout_preview.test.ts diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/helpers/common_actions.ts b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/common_actions.ts similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/helpers/common_actions.ts rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/common_actions.ts diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/helpers/http_requests.ts b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/http_requests.ts similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/helpers/http_requests.ts rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/http_requests.ts diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/helpers/index.ts b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/helpers/index.ts rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/index.ts diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/helpers/jest.mocks.tsx b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/jest.mocks.tsx similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/helpers/jest.mocks.tsx rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/jest.mocks.tsx diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/helpers/mocks.ts b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/mocks.ts similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/helpers/mocks.ts rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/mocks.ts diff --git a/src/plugins/data_view_field_editor/__jest__/client_integration/helpers/setup_environment.tsx b/src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/setup_environment.tsx similarity index 100% rename from src/plugins/data_view_field_editor/__jest__/client_integration/helpers/setup_environment.tsx rename to src/platform/plugins/shared/data_view_field_editor/__jest__/client_integration/helpers/setup_environment.tsx diff --git a/src/plugins/data_view_field_editor/common/constants.ts b/src/platform/plugins/shared/data_view_field_editor/common/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/common/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/common/constants.ts diff --git a/src/platform/plugins/shared/data_view_field_editor/jest.config.js b/src/platform/plugins/shared/data_view_field_editor/jest.config.js new file mode 100644 index 0000000000000..d41d98763e2a3 --- /dev/null +++ b/src/platform/plugins/shared/data_view_field_editor/jest.config.js @@ -0,0 +1,20 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/data_view_field_editor'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/data_view_field_editor', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/data_view_field_editor/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/data_view_field_editor/kibana.jsonc b/src/platform/plugins/shared/data_view_field_editor/kibana.jsonc similarity index 100% rename from src/plugins/data_view_field_editor/kibana.jsonc rename to src/platform/plugins/shared/data_view_field_editor/kibana.jsonc diff --git a/src/plugins/data_view_field_editor/public/assets/icons/LICENSE.txt b/src/platform/plugins/shared/data_view_field_editor/public/assets/icons/LICENSE.txt similarity index 100% rename from src/plugins/data_view_field_editor/public/assets/icons/LICENSE.txt rename to src/platform/plugins/shared/data_view_field_editor/public/assets/icons/LICENSE.txt diff --git a/src/plugins/data_view_field_editor/public/assets/icons/cv.png b/src/platform/plugins/shared/data_view_field_editor/public/assets/icons/cv.png similarity index 100% rename from src/plugins/data_view_field_editor/public/assets/icons/cv.png rename to src/platform/plugins/shared/data_view_field_editor/public/assets/icons/cv.png diff --git a/src/plugins/data_view_field_editor/public/assets/icons/de.png b/src/platform/plugins/shared/data_view_field_editor/public/assets/icons/de.png similarity index 100% rename from src/plugins/data_view_field_editor/public/assets/icons/de.png rename to src/platform/plugins/shared/data_view_field_editor/public/assets/icons/de.png diff --git a/src/plugins/data_view_field_editor/public/assets/icons/go.png b/src/platform/plugins/shared/data_view_field_editor/public/assets/icons/go.png similarity index 100% rename from src/plugins/data_view_field_editor/public/assets/icons/go.png rename to src/platform/plugins/shared/data_view_field_editor/public/assets/icons/go.png diff --git a/src/plugins/data_view_field_editor/public/assets/icons/ne.png b/src/platform/plugins/shared/data_view_field_editor/public/assets/icons/ne.png similarity index 100% rename from src/plugins/data_view_field_editor/public/assets/icons/ne.png rename to src/platform/plugins/shared/data_view_field_editor/public/assets/icons/ne.png diff --git a/src/plugins/data_view_field_editor/public/assets/icons/ni.png b/src/platform/plugins/shared/data_view_field_editor/public/assets/icons/ni.png similarity index 100% rename from src/plugins/data_view_field_editor/public/assets/icons/ni.png rename to src/platform/plugins/shared/data_view_field_editor/public/assets/icons/ni.png diff --git a/src/plugins/data_view_field_editor/public/assets/icons/stop.png b/src/platform/plugins/shared/data_view_field_editor/public/assets/icons/stop.png similarity index 100% rename from src/plugins/data_view_field_editor/public/assets/icons/stop.png rename to src/platform/plugins/shared/data_view_field_editor/public/assets/icons/stop.png diff --git a/src/plugins/data_view_field_editor/public/assets/icons/us.png b/src/platform/plugins/shared/data_view_field_editor/public/assets/icons/us.png similarity index 100% rename from src/plugins/data_view_field_editor/public/assets/icons/us.png rename to src/platform/plugins/shared/data_view_field_editor/public/assets/icons/us.png diff --git a/src/plugins/data_view_field_editor/public/components/confirm_modals/delete_field_modal.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/confirm_modals/delete_field_modal.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/confirm_modals/delete_field_modal.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/confirm_modals/delete_field_modal.tsx diff --git a/src/plugins/data_view_field_editor/public/components/confirm_modals/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/confirm_modals/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/confirm_modals/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/confirm_modals/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/confirm_modals/modified_field_modal.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/confirm_modals/modified_field_modal.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/confirm_modals/modified_field_modal.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/confirm_modals/modified_field_modal.tsx diff --git a/src/plugins/data_view_field_editor/public/components/confirm_modals/save_field_type_or_name_changed_modal.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/confirm_modals/save_field_type_or_name_changed_modal.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/confirm_modals/save_field_type_or_name_changed_modal.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/confirm_modals/save_field_type_or_name_changed_modal.tsx diff --git a/src/plugins/data_view_field_editor/public/components/delete_field_provider.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/delete_field_provider.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/delete_field_provider.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/delete_field_provider.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/advanced_parameters_section.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/advanced_parameters_section.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/advanced_parameters_section.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/advanced_parameters_section.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/composite_editor.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/composite_editor.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/composite_editor.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/composite_editor.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/field_detail.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/field_detail.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/field_detail.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/field_detail.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/field_editor.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/field_editor.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/field_editor.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/field_editor.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/form_fields/custom_description_field.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/custom_description_field.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/form_fields/custom_description_field.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/custom_description_field.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/form_fields/custom_label_field.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/custom_label_field.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/form_fields/custom_label_field.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/custom_label_field.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/form_fields/format_field.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/format_field.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/form_fields/format_field.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/format_field.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/form_fields/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/form_fields/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/form_fields/popularity_field.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/popularity_field.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/form_fields/popularity_field.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/popularity_field.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/form_fields/script_field.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/script_field.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/form_fields/script_field.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/script_field.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/form_fields/type_field.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/type_field.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/form_fields/type_field.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_fields/type_field.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/form_row.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_row.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/form_row.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_row.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/form_schema.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_schema.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/form_schema.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/form_schema.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/lib.test.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/lib.test.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/lib.test.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/lib.test.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/lib.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/lib.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/lib.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/lib.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/shadowing_field_warning.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/shadowing_field_warning.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/shadowing_field_warning.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/shadowing_field_warning.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor/types.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/types.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor/types.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor/types.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_editor_context.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor_context.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor_context.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor_context.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor_flyout_content.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor_flyout_content.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor_flyout_content.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor_flyout_content.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor_flyout_content_container.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor_flyout_content_container.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor_flyout_content_container.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor_flyout_content_container.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_editor_loader.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_editor_loader.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_editor_loader.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_editor_loader.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/__snapshots__/format_editor.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/__snapshots__/format_editor.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/__snapshots__/format_editor.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/__snapshots__/format_editor.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/bytes.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/bytes/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/bytes/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/__snapshots__/color.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/__snapshots__/color.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/__snapshots__/color.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/__snapshots__/color.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/color.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/color.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/color.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/color.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/color.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/color.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/color.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/color.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/color/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/color/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/__snapshots__/date.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/date.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/date.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/date.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/date.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/date.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/date.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/date.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/date.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/__snapshots__/date_nanos.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/date_nanos.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/date_nanos/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/__snapshots__/default.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/__snapshots__/default.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/__snapshots__/default.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/__snapshots__/default.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/default.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/default.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/default.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/default.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/default.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/default.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/default.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/default.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/default/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/default/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/__snapshots__/duration.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/duration.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/index.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/index.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/duration/index.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/duration/index.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/geo_point/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/geo_point/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/geo_point.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/geo_point/geo_point.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/geo_point.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/geo_point/geo_point.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/geo_point/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/geo_point/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/__snapshots__/histogram.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/__snapshots__/histogram.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/__snapshots__/histogram.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/__snapshots__/histogram.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/histogram.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/histogram/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/histogram/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/number.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/number.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/number.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/number.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/number.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/number.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/number/number.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/number/number.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/percent/percent.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/__snapshots__/static_lookup.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/__snapshots__/static_lookup.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/__snapshots__/static_lookup.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/__snapshots__/static_lookup.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/static_lookup/static_lookup.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/__snapshots__/string.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/__snapshots__/string.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/__snapshots__/string.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/__snapshots__/string.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/string.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/string.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/string.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/string.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/string.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/string.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/string/string.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/string/string.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/__snapshots__/truncate.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/sample.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/sample.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/sample.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/sample.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/truncate/truncate.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/types.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/types.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/types.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/types.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/__snapshots__/url.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/__snapshots__/url.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/__snapshots__/url.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/__snapshots__/url.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/constants.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/url.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/url.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/url.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/url.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/url.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/url.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/editors/url/url.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/editors/url/url.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/field_format_editor.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/field_format_editor.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/field_format_editor.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/field_format_editor.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/format_editor.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/format_editor.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/format_editor.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/format_editor.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/format_editor.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/format_editor.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/format_editor.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/format_editor.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/samples/__snapshots__/samples.test.tsx.snap b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/__snapshots__/samples.test.tsx.snap similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/samples/__snapshots__/samples.test.tsx.snap rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/__snapshots__/samples.test.tsx.snap diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/samples/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/samples/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/samples/samples.scss b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/samples.scss similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/samples/samples.scss rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/samples.scss diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/samples/samples.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/samples.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/samples/samples.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/samples.test.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/samples/samples.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/samples.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/samples/samples.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/samples/samples.tsx diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/types.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/types.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/field_format_editor/types.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/field_format_editor/types.ts diff --git a/src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panel.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panel.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panel.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panel.tsx diff --git a/src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels.scss b/src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels.scss similarity index 100% rename from src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels.scss rename to src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels.scss diff --git a/src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels.tsx diff --git a/src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels_content.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels_content.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels_content.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels_content.tsx diff --git a/src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels_footer.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels_footer.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels_footer.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels_footer.tsx diff --git a/src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels_header.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels_header.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/flyout_panels/flyout_panels_header.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/flyout_panels_header.tsx diff --git a/src/plugins/data_view_field_editor/public/components/flyout_panels/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/flyout_panels/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/flyout_panels/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/preview/documents_nav_preview.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/documents_nav_preview.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/documents_nav_preview.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/documents_nav_preview.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/field_list/field_list.scss b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_list/field_list.scss similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/field_list/field_list.scss rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_list/field_list.scss diff --git a/src/plugins/data_view_field_editor/public/components/preview/field_list/field_list.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_list/field_list.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/field_list/field_list.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_list/field_list.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/field_list/field_list_item.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_list/field_list_item.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/field_list/field_list_item.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_list/field_list_item.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/field_preview.scss b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview.scss similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/field_preview.scss rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview.scss diff --git a/src/plugins/data_view_field_editor/public/components/preview/field_preview.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/field_preview.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/field_preview_context.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview_context.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/field_preview_context.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview_context.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/field_preview_empty_prompt.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview_empty_prompt.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/field_preview_empty_prompt.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview_empty_prompt.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/field_preview_error.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview_error.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/field_preview_error.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview_error.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/field_preview_header.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview_header.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/field_preview_header.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/field_preview_header.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/image_preview_modal.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/image_preview_modal.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/image_preview_modal.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/image_preview_modal.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/index.ts diff --git a/src/plugins/data_view_field_editor/public/components/preview/is_updating_indicator.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/is_updating_indicator.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/is_updating_indicator.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/is_updating_indicator.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/preview_controller.tsx b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/preview_controller.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/preview_controller.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/preview_controller.tsx diff --git a/src/plugins/data_view_field_editor/public/components/preview/types.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/preview/types.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/preview/types.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/preview/types.ts diff --git a/src/plugins/data_view_field_editor/public/components/utils.ts b/src/platform/plugins/shared/data_view_field_editor/public/components/utils.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/components/utils.ts rename to src/platform/plugins/shared/data_view_field_editor/public/components/utils.ts diff --git a/src/plugins/data_view_field_editor/public/constants.ts b/src/platform/plugins/shared/data_view_field_editor/public/constants.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/constants.ts rename to src/platform/plugins/shared/data_view_field_editor/public/constants.ts diff --git a/src/plugins/data_view_field_editor/public/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/index.ts diff --git a/src/plugins/data_view_field_editor/public/lib/api.ts b/src/platform/plugins/shared/data_view_field_editor/public/lib/api.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/lib/api.ts rename to src/platform/plugins/shared/data_view_field_editor/public/lib/api.ts diff --git a/src/plugins/data_view_field_editor/public/lib/documentation.ts b/src/platform/plugins/shared/data_view_field_editor/public/lib/documentation.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/lib/documentation.ts rename to src/platform/plugins/shared/data_view_field_editor/public/lib/documentation.ts diff --git a/src/plugins/data_view_field_editor/public/lib/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/lib/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/lib/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/lib/index.ts diff --git a/src/plugins/data_view_field_editor/public/lib/remove_fields.ts b/src/platform/plugins/shared/data_view_field_editor/public/lib/remove_fields.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/lib/remove_fields.ts rename to src/platform/plugins/shared/data_view_field_editor/public/lib/remove_fields.ts diff --git a/src/plugins/data_view_field_editor/public/lib/runtime_field_validation.ts b/src/platform/plugins/shared/data_view_field_editor/public/lib/runtime_field_validation.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/lib/runtime_field_validation.ts rename to src/platform/plugins/shared/data_view_field_editor/public/lib/runtime_field_validation.ts diff --git a/src/plugins/data_view_field_editor/public/lib/serialization.ts b/src/platform/plugins/shared/data_view_field_editor/public/lib/serialization.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/lib/serialization.ts rename to src/platform/plugins/shared/data_view_field_editor/public/lib/serialization.ts diff --git a/src/plugins/data_view_field_editor/public/mocks.ts b/src/platform/plugins/shared/data_view_field_editor/public/mocks.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/mocks.ts rename to src/platform/plugins/shared/data_view_field_editor/public/mocks.ts diff --git a/src/plugins/data_view_field_editor/public/open_delete_modal.tsx b/src/platform/plugins/shared/data_view_field_editor/public/open_delete_modal.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/open_delete_modal.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/open_delete_modal.tsx diff --git a/src/plugins/data_view_field_editor/public/open_editor.tsx b/src/platform/plugins/shared/data_view_field_editor/public/open_editor.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/open_editor.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/open_editor.tsx diff --git a/src/plugins/data_view_field_editor/public/plugin.test.tsx b/src/platform/plugins/shared/data_view_field_editor/public/plugin.test.tsx similarity index 100% rename from src/plugins/data_view_field_editor/public/plugin.test.tsx rename to src/platform/plugins/shared/data_view_field_editor/public/plugin.test.tsx diff --git a/src/plugins/data_view_field_editor/public/plugin.ts b/src/platform/plugins/shared/data_view_field_editor/public/plugin.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/plugin.ts rename to src/platform/plugins/shared/data_view_field_editor/public/plugin.ts diff --git a/src/plugins/data_view_field_editor/public/service/field_format_editors/field_format_editors.ts b/src/platform/plugins/shared/data_view_field_editor/public/service/field_format_editors/field_format_editors.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/service/field_format_editors/field_format_editors.ts rename to src/platform/plugins/shared/data_view_field_editor/public/service/field_format_editors/field_format_editors.ts diff --git a/src/plugins/data_view_field_editor/public/service/field_format_editors/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/service/field_format_editors/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/service/field_format_editors/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/service/field_format_editors/index.ts diff --git a/src/plugins/data_view_field_editor/public/service/format_editor_service.ts b/src/platform/plugins/shared/data_view_field_editor/public/service/format_editor_service.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/service/format_editor_service.ts rename to src/platform/plugins/shared/data_view_field_editor/public/service/format_editor_service.ts diff --git a/src/plugins/data_view_field_editor/public/service/index.ts b/src/platform/plugins/shared/data_view_field_editor/public/service/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/service/index.ts rename to src/platform/plugins/shared/data_view_field_editor/public/service/index.ts diff --git a/src/plugins/data_view_field_editor/public/shared_imports.ts b/src/platform/plugins/shared/data_view_field_editor/public/shared_imports.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/shared_imports.ts rename to src/platform/plugins/shared/data_view_field_editor/public/shared_imports.ts diff --git a/src/plugins/data_view_field_editor/public/state_utils.ts b/src/platform/plugins/shared/data_view_field_editor/public/state_utils.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/state_utils.ts rename to src/platform/plugins/shared/data_view_field_editor/public/state_utils.ts diff --git a/src/plugins/data_view_field_editor/public/types.ts b/src/platform/plugins/shared/data_view_field_editor/public/types.ts similarity index 100% rename from src/plugins/data_view_field_editor/public/types.ts rename to src/platform/plugins/shared/data_view_field_editor/public/types.ts diff --git a/src/plugins/data_view_field_editor/server/index.ts b/src/platform/plugins/shared/data_view_field_editor/server/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/server/index.ts rename to src/platform/plugins/shared/data_view_field_editor/server/index.ts diff --git a/src/plugins/data_view_field_editor/server/plugin.ts b/src/platform/plugins/shared/data_view_field_editor/server/plugin.ts similarity index 100% rename from src/plugins/data_view_field_editor/server/plugin.ts rename to src/platform/plugins/shared/data_view_field_editor/server/plugin.ts diff --git a/src/plugins/data_view_field_editor/server/routes/field_preview.ts b/src/platform/plugins/shared/data_view_field_editor/server/routes/field_preview.ts similarity index 100% rename from src/plugins/data_view_field_editor/server/routes/field_preview.ts rename to src/platform/plugins/shared/data_view_field_editor/server/routes/field_preview.ts diff --git a/src/plugins/data_view_field_editor/server/routes/index.ts b/src/platform/plugins/shared/data_view_field_editor/server/routes/index.ts similarity index 100% rename from src/plugins/data_view_field_editor/server/routes/index.ts rename to src/platform/plugins/shared/data_view_field_editor/server/routes/index.ts diff --git a/src/plugins/data_view_field_editor/server/shared_imports.ts b/src/platform/plugins/shared/data_view_field_editor/server/shared_imports.ts similarity index 100% rename from src/plugins/data_view_field_editor/server/shared_imports.ts rename to src/platform/plugins/shared/data_view_field_editor/server/shared_imports.ts diff --git a/src/plugins/data_view_field_editor/server/types.ts b/src/platform/plugins/shared/data_view_field_editor/server/types.ts similarity index 100% rename from src/plugins/data_view_field_editor/server/types.ts rename to src/platform/plugins/shared/data_view_field_editor/server/types.ts diff --git a/src/plugins/data_view_field_editor/tsconfig.json b/src/platform/plugins/shared/data_view_field_editor/tsconfig.json similarity index 88% rename from src/plugins/data_view_field_editor/tsconfig.json rename to src/platform/plugins/shared/data_view_field_editor/tsconfig.json index a5e701494e7ff..86375e91173df 100644 --- a/src/plugins/data_view_field_editor/tsconfig.json +++ b/src/platform/plugins/shared/data_view_field_editor/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, "include": [ - "../../../typings/**/*", + "../../../../../typings/**/*", "__jest__/**/*", "common/**/*", "public/**/*", diff --git a/src/platform/plugins/shared/data_view_management/jest.config.js b/src/platform/plugins/shared/data_view_management/jest.config.js new file mode 100644 index 0000000000000..0abc3da86f891 --- /dev/null +++ b/src/platform/plugins/shared/data_view_management/jest.config.js @@ -0,0 +1,20 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/data_view_management'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/data_view_management', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/data_view_management/{public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/data_view_management/kibana.jsonc b/src/platform/plugins/shared/data_view_management/kibana.jsonc similarity index 100% rename from src/plugins/data_view_management/kibana.jsonc rename to src/platform/plugins/shared/data_view_management/kibana.jsonc diff --git a/src/plugins/data_view_management/public/_templates.scss b/src/platform/plugins/shared/data_view_management/public/_templates.scss similarity index 100% rename from src/plugins/data_view_management/public/_templates.scss rename to src/platform/plugins/shared/data_view_management/public/_templates.scss diff --git a/src/plugins/data_view_management/public/_variables.scss b/src/platform/plugins/shared/data_view_management/public/_variables.scss similarity index 100% rename from src/plugins/data_view_management/public/_variables.scss rename to src/platform/plugins/shared/data_view_management/public/_variables.scss diff --git a/src/plugins/data_view_management/public/components/__snapshots__/utils.test.ts.snap b/src/platform/plugins/shared/data_view_management/public/components/__snapshots__/utils.test.ts.snap similarity index 100% rename from src/plugins/data_view_management/public/components/__snapshots__/utils.test.ts.snap rename to src/platform/plugins/shared/data_view_management/public/components/__snapshots__/utils.test.ts.snap diff --git a/src/plugins/data_view_management/public/components/add_data_prompt.tsx b/src/platform/plugins/shared/data_view_management/public/components/add_data_prompt.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/add_data_prompt.tsx rename to src/platform/plugins/shared/data_view_management/public/components/add_data_prompt.tsx diff --git a/src/plugins/data_view_management/public/components/breadcrumbs.ts b/src/platform/plugins/shared/data_view_management/public/components/breadcrumbs.ts similarity index 100% rename from src/plugins/data_view_management/public/components/breadcrumbs.ts rename to src/platform/plugins/shared/data_view_management/public/components/breadcrumbs.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/constants.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/constants.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/constants.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/constants.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/create_edit_field/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/create_edit_field/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_state_container.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern_state_container.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_state_container.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern_state_container.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/index.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/index.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/index.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/index.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/index_header/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/index_header/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/__snapshots__/indexed_fields_table.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/__snapshots__/indexed_fields_table.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/__snapshots__/indexed_fields_table.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/__snapshots__/indexed_fields_table.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/__snapshots__/table.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/__snapshots__/table.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/__snapshots__/table.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/__snapshots__/table.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/relationships_table/i18n.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/relationships_table/i18n.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/relationships_table/i18n.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/relationships_table/i18n.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/relationships_table/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/relationships_table/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/relationships_table/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/relationships_table/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/relationships_table/relationships_table.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/relationships_table/relationships_table.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/relationships_table/relationships_table.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/relationships_table/relationships_table.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/remove_data_view.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/remove_data_view.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/remove_data_view.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/remove_data_view.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/__snapshots__/scripted_field_table.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/__snapshots__/scripted_field_table.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/__snapshots__/scripted_field_table.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/__snapshots__/scripted_field_table.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/__snapshots__/call_outs.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/__snapshots__/call_outs.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/__snapshots__/call_outs.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/__snapshots__/call_outs.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/call_outs.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/call_outs/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/__snapshots__/header.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/__snapshots__/header.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/__snapshots__/header.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/__snapshots__/header.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/header.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/header/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/__snapshots__/table.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/__snapshots__/table.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/__snapshots__/table.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/__snapshots__/table.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_field_table.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_field_table.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_field_table.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_field_table.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/types.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/types.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/types.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/scripted_fields_table/types.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/__snapshots__/source_filters_table.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/__snapshots__/source_filters_table.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/__snapshots__/source_filters_table.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/__snapshots__/source_filters_table.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/__snapshots__/add_filter.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/__snapshots__/add_filter.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/__snapshots__/add_filter.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/__snapshots__/add_filter.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/add_filter.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/add_filter/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/__snapshots__/confirmation_modal.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/confirmation_modal.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/confirmation_modal/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/__snapshots__/header.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/__snapshots__/header.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/__snapshots__/header.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/__snapshots__/header.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/header.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/header/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/__snapshots__/table.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.test.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/types.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/types.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/types.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/source_filters_table/types.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/index.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/tabs/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/tabs/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/tabs/index.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts b/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/tabs/utils.ts similarity index 100% rename from src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts rename to src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/tabs/utils.ts diff --git a/src/plugins/data_view_management/public/components/empty_index_list_prompt/__snapshots__/empty_index_list_prompt.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/__snapshots__/empty_index_list_prompt.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/empty_index_list_prompt/__snapshots__/empty_index_list_prompt.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/__snapshots__/empty_index_list_prompt.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.scss b/src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.scss similarity index 100% rename from src/plugins/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.scss rename to src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.scss diff --git a/src/plugins/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.test.tsx diff --git a/src/plugins/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.tsx b/src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.tsx rename to src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/empty_index_list_prompt.tsx diff --git a/src/plugins/data_view_management/public/components/empty_index_list_prompt/index.ts b/src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/empty_index_list_prompt/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/empty_index_list_prompt/index.ts diff --git a/src/plugins/data_view_management/public/components/field_editor/__snapshots__/field_editor.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/field_editor/__snapshots__/field_editor.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/__snapshots__/field_editor.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/__snapshots__/field_editor.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/field_editor/components/field_format_editor/__snapshots__/field_format_editor.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/field_format_editor/__snapshots__/field_format_editor.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/field_format_editor/__snapshots__/field_format_editor.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/field_format_editor/__snapshots__/field_format_editor.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.test.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/field_format_editor/field_format_editor.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/components/field_format_editor/index.ts b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/field_format_editor/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/field_format_editor/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/field_format_editor/index.ts diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/disabled_call_out.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/warning_call_out.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/warning_call_out.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/warning_call_out.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/__snapshots__/warning_call_out.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.test.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/disabled_call_out.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/index.ts b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/index.ts diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.test.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_call_outs/warning_call_out.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_help/__snapshots__/help_flyout.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/__snapshots__/help_flyout.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_help/__snapshots__/help_flyout.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/__snapshots__/help_flyout.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.test.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_help/index.ts b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_help/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/index.ts diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_help/scripting_syntax.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/scripting_syntax.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_help/scripting_syntax.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/scripting_syntax.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/constants/index.ts b/src/platform/plugins/shared/data_view_management/public/components/field_editor/constants/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/constants/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/constants/index.ts diff --git a/src/plugins/data_view_management/public/components/field_editor/field_editor.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/field_editor.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/field_editor.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/field_editor.test.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx b/src/platform/plugins/shared/data_view_management/public/components/field_editor/field_editor.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/field_editor.tsx rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/field_editor.tsx diff --git a/src/plugins/data_view_management/public/components/field_editor/index.ts b/src/platform/plugins/shared/data_view_management/public/components/field_editor/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/index.ts diff --git a/src/plugins/data_view_management/public/components/field_editor/lib/index.ts b/src/platform/plugins/shared/data_view_management/public/components/field_editor/lib/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/lib/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/lib/index.ts diff --git a/src/plugins/data_view_management/public/components/field_editor/lib/validate_script.ts b/src/platform/plugins/shared/data_view_management/public/components/field_editor/lib/validate_script.ts similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/lib/validate_script.ts rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/lib/validate_script.ts diff --git a/src/plugins/data_view_management/public/components/field_editor/types.ts b/src/platform/plugins/shared/data_view_management/public/components/field_editor/types.ts similarity index 100% rename from src/plugins/data_view_management/public/components/field_editor/types.ts rename to src/platform/plugins/shared/data_view_management/public/components/field_editor/types.ts diff --git a/src/plugins/data_view_management/public/components/index.ts b/src/platform/plugins/shared/data_view_management/public/components/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/index.ts diff --git a/src/plugins/data_view_management/public/components/index_pattern_table/__snapshots__/delete_modal_msg.test.tsx.snap b/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/__snapshots__/delete_modal_msg.test.tsx.snap similarity index 100% rename from src/plugins/data_view_management/public/components/index_pattern_table/__snapshots__/delete_modal_msg.test.tsx.snap rename to src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/__snapshots__/delete_modal_msg.test.tsx.snap diff --git a/src/plugins/data_view_management/public/components/index_pattern_table/data_view_table_controller.ts b/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/data_view_table_controller.ts similarity index 100% rename from src/plugins/data_view_management/public/components/index_pattern_table/data_view_table_controller.ts rename to src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/data_view_table_controller.ts diff --git a/src/plugins/data_view_management/public/components/index_pattern_table/delete_modal_msg.test.tsx b/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/delete_modal_msg.test.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/index_pattern_table/delete_modal_msg.test.tsx rename to src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/delete_modal_msg.test.tsx diff --git a/src/plugins/data_view_management/public/components/index_pattern_table/delete_modal_msg.tsx b/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/delete_modal_msg.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/index_pattern_table/delete_modal_msg.tsx rename to src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/delete_modal_msg.tsx diff --git a/src/plugins/data_view_management/public/components/index_pattern_table/index.ts b/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/index.ts similarity index 100% rename from src/plugins/data_view_management/public/components/index_pattern_table/index.ts rename to src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/index.ts diff --git a/src/plugins/data_view_management/public/components/index_pattern_table/index_pattern_table.tsx b/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/index_pattern_table.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/index_pattern_table/index_pattern_table.tsx rename to src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/index_pattern_table.tsx diff --git a/src/plugins/data_view_management/public/components/index_pattern_table/no_data.tsx b/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/no_data.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/index_pattern_table/no_data.tsx rename to src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/no_data.tsx diff --git a/src/plugins/data_view_management/public/components/index_pattern_table/spaces_list.tsx b/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/spaces_list.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/index_pattern_table/spaces_list.tsx rename to src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/spaces_list.tsx diff --git a/src/plugins/data_view_management/public/components/state_helpers.ts b/src/platform/plugins/shared/data_view_management/public/components/state_helpers.ts similarity index 100% rename from src/plugins/data_view_management/public/components/state_helpers.ts rename to src/platform/plugins/shared/data_view_management/public/components/state_helpers.ts diff --git a/src/plugins/data_view_management/public/components/test_utils.tsx b/src/platform/plugins/shared/data_view_management/public/components/test_utils.tsx similarity index 100% rename from src/plugins/data_view_management/public/components/test_utils.tsx rename to src/platform/plugins/shared/data_view_management/public/components/test_utils.tsx diff --git a/src/plugins/data_view_management/public/components/types.ts b/src/platform/plugins/shared/data_view_management/public/components/types.ts similarity index 100% rename from src/plugins/data_view_management/public/components/types.ts rename to src/platform/plugins/shared/data_view_management/public/components/types.ts diff --git a/src/plugins/data_view_management/public/components/utils.test.ts b/src/platform/plugins/shared/data_view_management/public/components/utils.test.ts similarity index 100% rename from src/plugins/data_view_management/public/components/utils.test.ts rename to src/platform/plugins/shared/data_view_management/public/components/utils.test.ts diff --git a/src/plugins/data_view_management/public/components/utils.ts b/src/platform/plugins/shared/data_view_management/public/components/utils.ts similarity index 100% rename from src/plugins/data_view_management/public/components/utils.ts rename to src/platform/plugins/shared/data_view_management/public/components/utils.ts diff --git a/src/plugins/data_view_management/public/constants.ts b/src/platform/plugins/shared/data_view_management/public/constants.ts similarity index 100% rename from src/plugins/data_view_management/public/constants.ts rename to src/platform/plugins/shared/data_view_management/public/constants.ts diff --git a/src/plugins/data_view_management/public/index.ts b/src/platform/plugins/shared/data_view_management/public/index.ts similarity index 100% rename from src/plugins/data_view_management/public/index.ts rename to src/platform/plugins/shared/data_view_management/public/index.ts diff --git a/src/plugins/data_view_management/public/management_app/data_view_management_service.ts b/src/platform/plugins/shared/data_view_management/public/management_app/data_view_management_service.ts similarity index 100% rename from src/plugins/data_view_management/public/management_app/data_view_management_service.ts rename to src/platform/plugins/shared/data_view_management/public/management_app/data_view_management_service.ts diff --git a/src/plugins/data_view_management/public/management_app/data_view_mgmt_selectors.ts b/src/platform/plugins/shared/data_view_management/public/management_app/data_view_mgmt_selectors.ts similarity index 100% rename from src/plugins/data_view_management/public/management_app/data_view_mgmt_selectors.ts rename to src/platform/plugins/shared/data_view_management/public/management_app/data_view_mgmt_selectors.ts diff --git a/src/plugins/data_view_management/public/management_app/index.tsx b/src/platform/plugins/shared/data_view_management/public/management_app/index.tsx similarity index 100% rename from src/plugins/data_view_management/public/management_app/index.tsx rename to src/platform/plugins/shared/data_view_management/public/management_app/index.tsx diff --git a/src/plugins/data_view_management/public/management_app/mount_management_section.tsx b/src/platform/plugins/shared/data_view_management/public/management_app/mount_management_section.tsx similarity index 100% rename from src/plugins/data_view_management/public/management_app/mount_management_section.tsx rename to src/platform/plugins/shared/data_view_management/public/management_app/mount_management_section.tsx diff --git a/src/plugins/data_view_management/public/management_app/state_utils.ts b/src/platform/plugins/shared/data_view_management/public/management_app/state_utils.ts similarity index 100% rename from src/plugins/data_view_management/public/management_app/state_utils.ts rename to src/platform/plugins/shared/data_view_management/public/management_app/state_utils.ts diff --git a/src/plugins/data_view_management/public/mocks.ts b/src/platform/plugins/shared/data_view_management/public/mocks.ts similarity index 100% rename from src/plugins/data_view_management/public/mocks.ts rename to src/platform/plugins/shared/data_view_management/public/mocks.ts diff --git a/src/plugins/data_view_management/public/plugin.ts b/src/platform/plugins/shared/data_view_management/public/plugin.ts similarity index 100% rename from src/plugins/data_view_management/public/plugin.ts rename to src/platform/plugins/shared/data_view_management/public/plugin.ts diff --git a/src/plugins/data_view_management/public/scripting_languages/index.ts b/src/platform/plugins/shared/data_view_management/public/scripting_languages/index.ts similarity index 100% rename from src/plugins/data_view_management/public/scripting_languages/index.ts rename to src/platform/plugins/shared/data_view_management/public/scripting_languages/index.ts diff --git a/src/plugins/data_view_management/public/types.ts b/src/platform/plugins/shared/data_view_management/public/types.ts similarity index 100% rename from src/plugins/data_view_management/public/types.ts rename to src/platform/plugins/shared/data_view_management/public/types.ts diff --git a/src/plugins/data_view_management/server/index.ts b/src/platform/plugins/shared/data_view_management/server/index.ts similarity index 100% rename from src/plugins/data_view_management/server/index.ts rename to src/platform/plugins/shared/data_view_management/server/index.ts diff --git a/src/plugins/data_view_management/server/plugin.ts b/src/platform/plugins/shared/data_view_management/server/plugin.ts similarity index 100% rename from src/plugins/data_view_management/server/plugin.ts rename to src/platform/plugins/shared/data_view_management/server/plugin.ts diff --git a/src/plugins/data_view_management/server/routes/index.ts b/src/platform/plugins/shared/data_view_management/server/routes/index.ts similarity index 100% rename from src/plugins/data_view_management/server/routes/index.ts rename to src/platform/plugins/shared/data_view_management/server/routes/index.ts diff --git a/src/plugins/data_view_management/server/routes/preview_scripted_field.test.ts b/src/platform/plugins/shared/data_view_management/server/routes/preview_scripted_field.test.ts similarity index 100% rename from src/plugins/data_view_management/server/routes/preview_scripted_field.test.ts rename to src/platform/plugins/shared/data_view_management/server/routes/preview_scripted_field.test.ts diff --git a/src/plugins/data_view_management/server/routes/preview_scripted_field.ts b/src/platform/plugins/shared/data_view_management/server/routes/preview_scripted_field.ts similarity index 100% rename from src/plugins/data_view_management/server/routes/preview_scripted_field.ts rename to src/platform/plugins/shared/data_view_management/server/routes/preview_scripted_field.ts diff --git a/src/plugins/data_view_management/server/routes/resolve_index.test.ts b/src/platform/plugins/shared/data_view_management/server/routes/resolve_index.test.ts similarity index 100% rename from src/plugins/data_view_management/server/routes/resolve_index.test.ts rename to src/platform/plugins/shared/data_view_management/server/routes/resolve_index.test.ts diff --git a/src/plugins/data_view_management/server/routes/resolve_index.ts b/src/platform/plugins/shared/data_view_management/server/routes/resolve_index.ts similarity index 100% rename from src/plugins/data_view_management/server/routes/resolve_index.ts rename to src/platform/plugins/shared/data_view_management/server/routes/resolve_index.ts diff --git a/src/plugins/data_view_management/tsconfig.json b/src/platform/plugins/shared/data_view_management/tsconfig.json similarity index 96% rename from src/plugins/data_view_management/tsconfig.json rename to src/platform/plugins/shared/data_view_management/tsconfig.json index 879d2dab84da9..b792d12df032a 100644 --- a/src/plugins/data_view_management/tsconfig.json +++ b/src/platform/plugins/shared/data_view_management/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/data_views/README.mdx b/src/platform/plugins/shared/data_views/README.mdx similarity index 100% rename from src/plugins/data_views/README.mdx rename to src/platform/plugins/shared/data_views/README.mdx diff --git a/src/plugins/data_views/common/constants.ts b/src/platform/plugins/shared/data_views/common/constants.ts similarity index 100% rename from src/plugins/data_views/common/constants.ts rename to src/platform/plugins/shared/data_views/common/constants.ts diff --git a/src/plugins/data_views/common/content_management/index.ts b/src/platform/plugins/shared/data_views/common/content_management/index.ts similarity index 100% rename from src/plugins/data_views/common/content_management/index.ts rename to src/platform/plugins/shared/data_views/common/content_management/index.ts diff --git a/src/plugins/data_views/common/content_management/v1/constants.ts b/src/platform/plugins/shared/data_views/common/content_management/v1/constants.ts similarity index 100% rename from src/plugins/data_views/common/content_management/v1/constants.ts rename to src/platform/plugins/shared/data_views/common/content_management/v1/constants.ts diff --git a/src/plugins/data_views/common/content_management/v1/index.ts b/src/platform/plugins/shared/data_views/common/content_management/v1/index.ts similarity index 100% rename from src/plugins/data_views/common/content_management/v1/index.ts rename to src/platform/plugins/shared/data_views/common/content_management/v1/index.ts diff --git a/src/plugins/data_views/common/content_management/v1/types.ts b/src/platform/plugins/shared/data_views/common/content_management/v1/types.ts similarity index 100% rename from src/plugins/data_views/common/content_management/v1/types.ts rename to src/platform/plugins/shared/data_views/common/content_management/v1/types.ts diff --git a/src/plugins/data_views/common/data_view.stub.ts b/src/platform/plugins/shared/data_views/common/data_view.stub.ts similarity index 100% rename from src/plugins/data_views/common/data_view.stub.ts rename to src/platform/plugins/shared/data_views/common/data_view.stub.ts diff --git a/src/plugins/data_views/common/data_views/__snapshots__/data_view.test.ts.snap b/src/platform/plugins/shared/data_views/common/data_views/__snapshots__/data_view.test.ts.snap similarity index 100% rename from src/plugins/data_views/common/data_views/__snapshots__/data_view.test.ts.snap rename to src/platform/plugins/shared/data_views/common/data_views/__snapshots__/data_view.test.ts.snap diff --git a/src/plugins/data_views/common/data_views/__snapshots__/data_view_lazy.test.ts.snap b/src/platform/plugins/shared/data_views/common/data_views/__snapshots__/data_view_lazy.test.ts.snap similarity index 100% rename from src/plugins/data_views/common/data_views/__snapshots__/data_view_lazy.test.ts.snap rename to src/platform/plugins/shared/data_views/common/data_views/__snapshots__/data_view_lazy.test.ts.snap diff --git a/src/plugins/data_views/common/data_views/__snapshots__/data_views.test.ts.snap b/src/platform/plugins/shared/data_views/common/data_views/__snapshots__/data_views.test.ts.snap similarity index 100% rename from src/plugins/data_views/common/data_views/__snapshots__/data_views.test.ts.snap rename to src/platform/plugins/shared/data_views/common/data_views/__snapshots__/data_views.test.ts.snap diff --git a/src/plugins/data_views/common/data_views/abstract_data_views.ts b/src/platform/plugins/shared/data_views/common/data_views/abstract_data_views.ts similarity index 100% rename from src/plugins/data_views/common/data_views/abstract_data_views.ts rename to src/platform/plugins/shared/data_views/common/data_views/abstract_data_views.ts diff --git a/src/plugins/data_views/common/data_views/data_view.stub.ts b/src/platform/plugins/shared/data_views/common/data_views/data_view.stub.ts similarity index 100% rename from src/plugins/data_views/common/data_views/data_view.stub.ts rename to src/platform/plugins/shared/data_views/common/data_views/data_view.stub.ts diff --git a/src/plugins/data_views/common/data_views/data_view.test.ts b/src/platform/plugins/shared/data_views/common/data_views/data_view.test.ts similarity index 100% rename from src/plugins/data_views/common/data_views/data_view.test.ts rename to src/platform/plugins/shared/data_views/common/data_views/data_view.test.ts diff --git a/src/plugins/data_views/common/data_views/data_view.ts b/src/platform/plugins/shared/data_views/common/data_views/data_view.ts similarity index 100% rename from src/plugins/data_views/common/data_views/data_view.ts rename to src/platform/plugins/shared/data_views/common/data_views/data_view.ts diff --git a/src/plugins/data_views/common/data_views/data_view_lazy.stub.ts b/src/platform/plugins/shared/data_views/common/data_views/data_view_lazy.stub.ts similarity index 100% rename from src/plugins/data_views/common/data_views/data_view_lazy.stub.ts rename to src/platform/plugins/shared/data_views/common/data_views/data_view_lazy.stub.ts diff --git a/src/plugins/data_views/common/data_views/data_view_lazy.test.ts b/src/platform/plugins/shared/data_views/common/data_views/data_view_lazy.test.ts similarity index 100% rename from src/plugins/data_views/common/data_views/data_view_lazy.test.ts rename to src/platform/plugins/shared/data_views/common/data_views/data_view_lazy.test.ts diff --git a/src/plugins/data_views/common/data_views/data_view_lazy.ts b/src/platform/plugins/shared/data_views/common/data_views/data_view_lazy.ts similarity index 100% rename from src/plugins/data_views/common/data_views/data_view_lazy.ts rename to src/platform/plugins/shared/data_views/common/data_views/data_view_lazy.ts diff --git a/src/plugins/data_views/common/data_views/data_view_lazy_util.ts b/src/platform/plugins/shared/data_views/common/data_views/data_view_lazy_util.ts similarity index 100% rename from src/plugins/data_views/common/data_views/data_view_lazy_util.ts rename to src/platform/plugins/shared/data_views/common/data_views/data_view_lazy_util.ts diff --git a/src/plugins/data_views/common/data_views/data_views.test.ts b/src/platform/plugins/shared/data_views/common/data_views/data_views.test.ts similarity index 100% rename from src/plugins/data_views/common/data_views/data_views.test.ts rename to src/platform/plugins/shared/data_views/common/data_views/data_views.test.ts diff --git a/src/plugins/data_views/common/data_views/data_views.ts b/src/platform/plugins/shared/data_views/common/data_views/data_views.ts similarity index 100% rename from src/plugins/data_views/common/data_views/data_views.ts rename to src/platform/plugins/shared/data_views/common/data_views/data_views.ts diff --git a/src/plugins/data_views/common/data_views/flatten_hit.test.ts b/src/platform/plugins/shared/data_views/common/data_views/flatten_hit.test.ts similarity index 100% rename from src/plugins/data_views/common/data_views/flatten_hit.test.ts rename to src/platform/plugins/shared/data_views/common/data_views/flatten_hit.test.ts diff --git a/src/plugins/data_views/common/data_views/flatten_hit.ts b/src/platform/plugins/shared/data_views/common/data_views/flatten_hit.ts similarity index 100% rename from src/plugins/data_views/common/data_views/flatten_hit.ts rename to src/platform/plugins/shared/data_views/common/data_views/flatten_hit.ts diff --git a/src/plugins/data_views/common/data_views/index.ts b/src/platform/plugins/shared/data_views/common/data_views/index.ts similarity index 100% rename from src/plugins/data_views/common/data_views/index.ts rename to src/platform/plugins/shared/data_views/common/data_views/index.ts diff --git a/src/plugins/data_views/common/data_views/meta_units_to_formatter.ts b/src/platform/plugins/shared/data_views/common/data_views/meta_units_to_formatter.ts similarity index 100% rename from src/plugins/data_views/common/data_views/meta_units_to_formatter.ts rename to src/platform/plugins/shared/data_views/common/data_views/meta_units_to_formatter.ts diff --git a/src/plugins/data_views/common/data_views/persistable_state.test.ts b/src/platform/plugins/shared/data_views/common/data_views/persistable_state.test.ts similarity index 100% rename from src/plugins/data_views/common/data_views/persistable_state.test.ts rename to src/platform/plugins/shared/data_views/common/data_views/persistable_state.test.ts diff --git a/src/plugins/data_views/common/data_views/persistable_state.ts b/src/platform/plugins/shared/data_views/common/data_views/persistable_state.ts similarity index 100% rename from src/plugins/data_views/common/data_views/persistable_state.ts rename to src/platform/plugins/shared/data_views/common/data_views/persistable_state.ts diff --git a/src/plugins/data_views/common/data_views/utils.ts b/src/platform/plugins/shared/data_views/common/data_views/utils.ts similarity index 100% rename from src/plugins/data_views/common/data_views/utils.ts rename to src/platform/plugins/shared/data_views/common/data_views/utils.ts diff --git a/src/plugins/data_views/common/errors/data_view_saved_object_conflict.ts b/src/platform/plugins/shared/data_views/common/errors/data_view_saved_object_conflict.ts similarity index 100% rename from src/plugins/data_views/common/errors/data_view_saved_object_conflict.ts rename to src/platform/plugins/shared/data_views/common/errors/data_view_saved_object_conflict.ts diff --git a/src/plugins/data_views/common/errors/duplicate_index_pattern.ts b/src/platform/plugins/shared/data_views/common/errors/duplicate_index_pattern.ts similarity index 100% rename from src/plugins/data_views/common/errors/duplicate_index_pattern.ts rename to src/platform/plugins/shared/data_views/common/errors/duplicate_index_pattern.ts diff --git a/src/plugins/data_views/common/errors/index.ts b/src/platform/plugins/shared/data_views/common/errors/index.ts similarity index 100% rename from src/plugins/data_views/common/errors/index.ts rename to src/platform/plugins/shared/data_views/common/errors/index.ts diff --git a/src/plugins/data_views/common/errors/insufficient_access.ts b/src/platform/plugins/shared/data_views/common/errors/insufficient_access.ts similarity index 100% rename from src/plugins/data_views/common/errors/insufficient_access.ts rename to src/platform/plugins/shared/data_views/common/errors/insufficient_access.ts diff --git a/src/plugins/data_views/common/expressions/index.ts b/src/platform/plugins/shared/data_views/common/expressions/index.ts similarity index 100% rename from src/plugins/data_views/common/expressions/index.ts rename to src/platform/plugins/shared/data_views/common/expressions/index.ts diff --git a/src/plugins/data_views/common/expressions/load_index_pattern.ts b/src/platform/plugins/shared/data_views/common/expressions/load_index_pattern.ts similarity index 100% rename from src/plugins/data_views/common/expressions/load_index_pattern.ts rename to src/platform/plugins/shared/data_views/common/expressions/load_index_pattern.ts diff --git a/src/plugins/data_views/common/field.stub.ts b/src/platform/plugins/shared/data_views/common/field.stub.ts similarity index 100% rename from src/plugins/data_views/common/field.stub.ts rename to src/platform/plugins/shared/data_views/common/field.stub.ts diff --git a/src/plugins/data_views/common/fields/__snapshots__/data_view_field.test.ts.snap b/src/platform/plugins/shared/data_views/common/fields/__snapshots__/data_view_field.test.ts.snap similarity index 100% rename from src/plugins/data_views/common/fields/__snapshots__/data_view_field.test.ts.snap rename to src/platform/plugins/shared/data_views/common/fields/__snapshots__/data_view_field.test.ts.snap diff --git a/src/plugins/data_views/common/fields/data_view_field.test.ts b/src/platform/plugins/shared/data_views/common/fields/data_view_field.test.ts similarity index 100% rename from src/plugins/data_views/common/fields/data_view_field.test.ts rename to src/platform/plugins/shared/data_views/common/fields/data_view_field.test.ts diff --git a/src/plugins/data_views/common/fields/data_view_field.ts b/src/platform/plugins/shared/data_views/common/fields/data_view_field.ts similarity index 100% rename from src/plugins/data_views/common/fields/data_view_field.ts rename to src/platform/plugins/shared/data_views/common/fields/data_view_field.ts diff --git a/src/plugins/data_views/common/fields/field_list.ts b/src/platform/plugins/shared/data_views/common/fields/field_list.ts similarity index 100% rename from src/plugins/data_views/common/fields/field_list.ts rename to src/platform/plugins/shared/data_views/common/fields/field_list.ts diff --git a/src/plugins/data_views/common/fields/fields.mocks.ts b/src/platform/plugins/shared/data_views/common/fields/fields.mocks.ts similarity index 100% rename from src/plugins/data_views/common/fields/fields.mocks.ts rename to src/platform/plugins/shared/data_views/common/fields/fields.mocks.ts diff --git a/src/plugins/data_views/common/fields/index.ts b/src/platform/plugins/shared/data_views/common/fields/index.ts similarity index 100% rename from src/plugins/data_views/common/fields/index.ts rename to src/platform/plugins/shared/data_views/common/fields/index.ts diff --git a/src/plugins/data_views/common/fields/utils.test.ts b/src/platform/plugins/shared/data_views/common/fields/utils.test.ts similarity index 100% rename from src/plugins/data_views/common/fields/utils.test.ts rename to src/platform/plugins/shared/data_views/common/fields/utils.test.ts diff --git a/src/plugins/data_views/common/fields/utils.ts b/src/platform/plugins/shared/data_views/common/fields/utils.ts similarity index 100% rename from src/plugins/data_views/common/fields/utils.ts rename to src/platform/plugins/shared/data_views/common/fields/utils.ts diff --git a/src/plugins/data_views/common/index.ts b/src/platform/plugins/shared/data_views/common/index.ts similarity index 100% rename from src/plugins/data_views/common/index.ts rename to src/platform/plugins/shared/data_views/common/index.ts diff --git a/src/plugins/data_views/common/lib/errors.ts b/src/platform/plugins/shared/data_views/common/lib/errors.ts similarity index 100% rename from src/plugins/data_views/common/lib/errors.ts rename to src/platform/plugins/shared/data_views/common/lib/errors.ts diff --git a/src/plugins/data_views/common/lib/index.ts b/src/platform/plugins/shared/data_views/common/lib/index.ts similarity index 100% rename from src/plugins/data_views/common/lib/index.ts rename to src/platform/plugins/shared/data_views/common/lib/index.ts diff --git a/src/plugins/data_views/common/lib/types.ts b/src/platform/plugins/shared/data_views/common/lib/types.ts similarity index 100% rename from src/plugins/data_views/common/lib/types.ts rename to src/platform/plugins/shared/data_views/common/lib/types.ts diff --git a/src/plugins/data_views/common/lib/validate_data_view.test.ts b/src/platform/plugins/shared/data_views/common/lib/validate_data_view.test.ts similarity index 100% rename from src/plugins/data_views/common/lib/validate_data_view.test.ts rename to src/platform/plugins/shared/data_views/common/lib/validate_data_view.test.ts diff --git a/src/plugins/data_views/common/lib/validate_data_view.ts b/src/platform/plugins/shared/data_views/common/lib/validate_data_view.ts similarity index 100% rename from src/plugins/data_views/common/lib/validate_data_view.ts rename to src/platform/plugins/shared/data_views/common/lib/validate_data_view.ts diff --git a/src/plugins/data_views/common/lib/validate_index_pattern.test.ts b/src/platform/plugins/shared/data_views/common/lib/validate_index_pattern.test.ts similarity index 100% rename from src/plugins/data_views/common/lib/validate_index_pattern.test.ts rename to src/platform/plugins/shared/data_views/common/lib/validate_index_pattern.test.ts diff --git a/src/plugins/data_views/common/lib/validate_index_pattern.ts b/src/platform/plugins/shared/data_views/common/lib/validate_index_pattern.ts similarity index 100% rename from src/plugins/data_views/common/lib/validate_index_pattern.ts rename to src/platform/plugins/shared/data_views/common/lib/validate_index_pattern.ts diff --git a/src/plugins/data_views/common/mocks.ts b/src/platform/plugins/shared/data_views/common/mocks.ts similarity index 100% rename from src/plugins/data_views/common/mocks.ts rename to src/platform/plugins/shared/data_views/common/mocks.ts diff --git a/src/plugins/data_views/common/stubs.ts b/src/platform/plugins/shared/data_views/common/stubs.ts similarity index 100% rename from src/plugins/data_views/common/stubs.ts rename to src/platform/plugins/shared/data_views/common/stubs.ts diff --git a/src/plugins/data_views/common/types.ts b/src/platform/plugins/shared/data_views/common/types.ts similarity index 100% rename from src/plugins/data_views/common/types.ts rename to src/platform/plugins/shared/data_views/common/types.ts diff --git a/src/plugins/data_views/common/utils.test.ts b/src/platform/plugins/shared/data_views/common/utils.test.ts similarity index 100% rename from src/plugins/data_views/common/utils.test.ts rename to src/platform/plugins/shared/data_views/common/utils.test.ts diff --git a/src/plugins/data_views/common/utils.ts b/src/platform/plugins/shared/data_views/common/utils.ts similarity index 100% rename from src/plugins/data_views/common/utils.ts rename to src/platform/plugins/shared/data_views/common/utils.ts diff --git a/src/plugins/data_views/docs/openapi/README.md b/src/platform/plugins/shared/data_views/docs/openapi/README.md similarity index 100% rename from src/plugins/data_views/docs/openapi/README.md rename to src/platform/plugins/shared/data_views/docs/openapi/README.md diff --git a/src/plugins/data_views/docs/openapi/bundled.json b/src/platform/plugins/shared/data_views/docs/openapi/bundled.json similarity index 100% rename from src/plugins/data_views/docs/openapi/bundled.json rename to src/platform/plugins/shared/data_views/docs/openapi/bundled.json diff --git a/src/plugins/data_views/docs/openapi/bundled.yaml b/src/platform/plugins/shared/data_views/docs/openapi/bundled.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/bundled.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/bundled.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/create_data_view_request.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/create_data_view_request.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/create_data_view_request.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/create_data_view_request.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/create_data_view_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/create_data_view_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/create_data_view_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/create_data_view_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/create_runtime_field_request.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/create_runtime_field_request.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/create_runtime_field_request.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/create_runtime_field_request.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/create_runtime_field_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/create_runtime_field_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/create_runtime_field_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/create_runtime_field_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/get_data_view_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/get_data_view_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/get_data_view_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/get_data_view_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/get_data_views_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/get_data_views_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/get_data_views_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/get_data_views_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/get_default_data_view_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/get_default_data_view_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/get_default_data_view_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/get_default_data_view_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/get_runtime_field_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/get_runtime_field_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/get_runtime_field_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/get_runtime_field_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/preview_swap_data_view_request.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/preview_swap_data_view_request.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/preview_swap_data_view_request.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/preview_swap_data_view_request.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/set_default_data_view_request.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/set_default_data_view_request.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/set_default_data_view_request.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/set_default_data_view_request.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/swap_data_view_request.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/swap_data_view_request.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/swap_data_view_request.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/swap_data_view_request.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/swap_data_view_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/swap_data_view_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/swap_data_view_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/swap_data_view_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/update_data_view_request.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/update_data_view_request.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/update_data_view_request.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/update_data_view_request.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/update_field_metadata_request.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/update_field_metadata_request.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/update_field_metadata_request.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/update_field_metadata_request.yaml diff --git a/src/plugins/data_views/docs/openapi/components/examples/update_runtime_field_request.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/examples/update_runtime_field_request.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/examples/update_runtime_field_request.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/examples/update_runtime_field_request.yaml diff --git a/src/plugins/data_views/docs/openapi/components/headers/kbn_xsrf.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/headers/kbn_xsrf.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/headers/kbn_xsrf.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/headers/kbn_xsrf.yaml diff --git a/src/plugins/data_views/docs/openapi/components/parameters/field_name.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/parameters/field_name.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/parameters/field_name.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/parameters/field_name.yaml diff --git a/src/plugins/data_views/docs/openapi/components/parameters/space_id.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/parameters/space_id.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/parameters/space_id.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/parameters/space_id.yaml diff --git a/src/plugins/data_views/docs/openapi/components/parameters/view_id.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/parameters/view_id.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/parameters/view_id.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/parameters/view_id.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/400_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/400_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/400_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/400_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/404_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/404_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/404_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/404_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/allownoindex.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/allownoindex.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/allownoindex.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/allownoindex.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/create_data_view_request_object.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/create_data_view_request_object.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/create_data_view_request_object.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/create_data_view_request_object.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/data_view_response_object.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/data_view_response_object.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/data_view_response_object.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/data_view_response_object.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/fieldattrs.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/fieldattrs.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/fieldattrs.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/fieldattrs.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/fieldformats.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/fieldformats.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/fieldformats.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/fieldformats.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/namespaces.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/namespaces.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/namespaces.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/namespaces.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/runtimefieldmap.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/runtimefieldmap.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/runtimefieldmap.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/runtimefieldmap.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/sourcefilters.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/sourcefilters.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/sourcefilters.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/sourcefilters.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/swap_data_view_request_object.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/swap_data_view_request_object.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/swap_data_view_request_object.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/swap_data_view_request_object.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/timefieldname.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/timefieldname.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/timefieldname.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/timefieldname.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/title.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/title.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/title.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/title.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/type.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/type.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/type.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/type.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/typemeta.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/typemeta.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/typemeta.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/typemeta.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/typemeta_response.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/typemeta_response.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/typemeta_response.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/typemeta_response.yaml diff --git a/src/plugins/data_views/docs/openapi/components/schemas/update_data_view_request_object.yaml b/src/platform/plugins/shared/data_views/docs/openapi/components/schemas/update_data_view_request_object.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/components/schemas/update_data_view_request_object.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/components/schemas/update_data_view_request_object.yaml diff --git a/src/plugins/data_views/docs/openapi/entrypoint.yaml b/src/platform/plugins/shared/data_views/docs/openapi/entrypoint.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/entrypoint.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/entrypoint.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/api@data_views.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views@data_view.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/api@data_views@data_view.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@fields.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@fields.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@fields.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@fields.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views@default.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@default.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/api@data_views@default.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@default.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views@swap_references.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@swap_references.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/api@data_views@swap_references.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@swap_references.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/api@data_views@swap_references@_preview.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@swap_references@_preview.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/api@data_views@swap_references@_preview.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/api@data_views@swap_references@_preview.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@fields.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@fields.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@fields.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@fields.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@data_view@{viewid}@runtime_field@{fieldname}.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@default.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@default.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@default.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@default.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references.yaml diff --git a/src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references@_preview.yaml b/src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references@_preview.yaml similarity index 100% rename from src/plugins/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references@_preview.yaml rename to src/platform/plugins/shared/data_views/docs/openapi/paths/s@{spaceid}@api@data_views@swap_references@_preview.yaml diff --git a/src/plugins/data_view_field_editor/jest.config.js b/src/platform/plugins/shared/data_views/jest.config.js similarity index 74% rename from src/plugins/data_view_field_editor/jest.config.js rename to src/platform/plugins/shared/data_views/jest.config.js index 8cfaac1a45d89..0d22b5f71c23e 100644 --- a/src/plugins/data_view_field_editor/jest.config.js +++ b/src/platform/plugins/shared/data_views/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/data_view_field_editor'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/data_view_field_editor', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/data_views'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/data_views', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/data_view_field_editor/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/data_views/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/data_views/kibana.jsonc b/src/platform/plugins/shared/data_views/kibana.jsonc similarity index 100% rename from src/plugins/data_views/kibana.jsonc rename to src/platform/plugins/shared/data_views/kibana.jsonc diff --git a/src/plugins/data_views/public/content_management_wrapper.test.ts b/src/platform/plugins/shared/data_views/public/content_management_wrapper.test.ts similarity index 100% rename from src/plugins/data_views/public/content_management_wrapper.test.ts rename to src/platform/plugins/shared/data_views/public/content_management_wrapper.test.ts diff --git a/src/plugins/data_views/public/content_management_wrapper.ts b/src/platform/plugins/shared/data_views/public/content_management_wrapper.ts similarity index 100% rename from src/plugins/data_views/public/content_management_wrapper.ts rename to src/platform/plugins/shared/data_views/public/content_management_wrapper.ts diff --git a/src/plugins/data_views/public/data_views/data_view.stub.ts b/src/platform/plugins/shared/data_views/public/data_views/data_view.stub.ts similarity index 100% rename from src/plugins/data_views/public/data_views/data_view.stub.ts rename to src/platform/plugins/shared/data_views/public/data_views/data_view.stub.ts diff --git a/src/plugins/data_views/public/data_views/data_views_api_client.test.mock.ts b/src/platform/plugins/shared/data_views/public/data_views/data_views_api_client.test.mock.ts similarity index 100% rename from src/plugins/data_views/public/data_views/data_views_api_client.test.mock.ts rename to src/platform/plugins/shared/data_views/public/data_views/data_views_api_client.test.mock.ts diff --git a/src/plugins/data_views/public/data_views/data_views_api_client.test.ts b/src/platform/plugins/shared/data_views/public/data_views/data_views_api_client.test.ts similarity index 100% rename from src/plugins/data_views/public/data_views/data_views_api_client.test.ts rename to src/platform/plugins/shared/data_views/public/data_views/data_views_api_client.test.ts diff --git a/src/plugins/data_views/public/data_views/data_views_api_client.ts b/src/platform/plugins/shared/data_views/public/data_views/data_views_api_client.ts similarity index 100% rename from src/plugins/data_views/public/data_views/data_views_api_client.ts rename to src/platform/plugins/shared/data_views/public/data_views/data_views_api_client.ts diff --git a/src/plugins/data_views/public/data_views/index.ts b/src/platform/plugins/shared/data_views/public/data_views/index.ts similarity index 100% rename from src/plugins/data_views/public/data_views/index.ts rename to src/platform/plugins/shared/data_views/public/data_views/index.ts diff --git a/src/plugins/data_views/public/data_views/sha256.test.ts b/src/platform/plugins/shared/data_views/public/data_views/sha256.test.ts similarity index 100% rename from src/plugins/data_views/public/data_views/sha256.test.ts rename to src/platform/plugins/shared/data_views/public/data_views/sha256.test.ts diff --git a/src/plugins/data_views/public/data_views/sha256.ts b/src/platform/plugins/shared/data_views/public/data_views/sha256.ts similarity index 100% rename from src/plugins/data_views/public/data_views/sha256.ts rename to src/platform/plugins/shared/data_views/public/data_views/sha256.ts diff --git a/src/plugins/data_views/public/data_views_service_public.ts b/src/platform/plugins/shared/data_views/public/data_views_service_public.ts similarity index 100% rename from src/plugins/data_views/public/data_views_service_public.ts rename to src/platform/plugins/shared/data_views/public/data_views_service_public.ts diff --git a/src/plugins/data_views/public/debounce_by_key.test.ts b/src/platform/plugins/shared/data_views/public/debounce_by_key.test.ts similarity index 100% rename from src/plugins/data_views/public/debounce_by_key.test.ts rename to src/platform/plugins/shared/data_views/public/debounce_by_key.test.ts diff --git a/src/plugins/data_views/public/debounce_by_key.ts b/src/platform/plugins/shared/data_views/public/debounce_by_key.ts similarity index 100% rename from src/plugins/data_views/public/debounce_by_key.ts rename to src/platform/plugins/shared/data_views/public/debounce_by_key.ts diff --git a/src/plugins/data_views/public/expressions/index.ts b/src/platform/plugins/shared/data_views/public/expressions/index.ts similarity index 100% rename from src/plugins/data_views/public/expressions/index.ts rename to src/platform/plugins/shared/data_views/public/expressions/index.ts diff --git a/src/plugins/data_views/public/expressions/load_index_pattern.test.ts b/src/platform/plugins/shared/data_views/public/expressions/load_index_pattern.test.ts similarity index 100% rename from src/plugins/data_views/public/expressions/load_index_pattern.test.ts rename to src/platform/plugins/shared/data_views/public/expressions/load_index_pattern.test.ts diff --git a/src/plugins/data_views/public/expressions/load_index_pattern.ts b/src/platform/plugins/shared/data_views/public/expressions/load_index_pattern.ts similarity index 100% rename from src/plugins/data_views/public/expressions/load_index_pattern.ts rename to src/platform/plugins/shared/data_views/public/expressions/load_index_pattern.ts diff --git a/src/plugins/data_views/public/index.ts b/src/platform/plugins/shared/data_views/public/index.ts similarity index 100% rename from src/plugins/data_views/public/index.ts rename to src/platform/plugins/shared/data_views/public/index.ts diff --git a/src/plugins/data_views/public/mocks.ts b/src/platform/plugins/shared/data_views/public/mocks.ts similarity index 100% rename from src/plugins/data_views/public/mocks.ts rename to src/platform/plugins/shared/data_views/public/mocks.ts diff --git a/src/plugins/data_views/public/plugin.ts b/src/platform/plugins/shared/data_views/public/plugin.ts similarity index 100% rename from src/plugins/data_views/public/plugin.ts rename to src/platform/plugins/shared/data_views/public/plugin.ts diff --git a/src/plugins/data_views/public/services/__snapshots__/get_indices.test.ts.snap b/src/platform/plugins/shared/data_views/public/services/__snapshots__/get_indices.test.ts.snap similarity index 100% rename from src/plugins/data_views/public/services/__snapshots__/get_indices.test.ts.snap rename to src/platform/plugins/shared/data_views/public/services/__snapshots__/get_indices.test.ts.snap diff --git a/src/plugins/data_views/public/services/get_indices.test.ts b/src/platform/plugins/shared/data_views/public/services/get_indices.test.ts similarity index 100% rename from src/plugins/data_views/public/services/get_indices.test.ts rename to src/platform/plugins/shared/data_views/public/services/get_indices.test.ts diff --git a/src/plugins/data_views/public/services/get_indices.ts b/src/platform/plugins/shared/data_views/public/services/get_indices.ts similarity index 100% rename from src/plugins/data_views/public/services/get_indices.ts rename to src/platform/plugins/shared/data_views/public/services/get_indices.ts diff --git a/src/plugins/data_views/public/services/has_data.test.ts b/src/platform/plugins/shared/data_views/public/services/has_data.test.ts similarity index 100% rename from src/plugins/data_views/public/services/has_data.test.ts rename to src/platform/plugins/shared/data_views/public/services/has_data.test.ts diff --git a/src/plugins/data_views/public/services/has_data.ts b/src/platform/plugins/shared/data_views/public/services/has_data.ts similarity index 100% rename from src/plugins/data_views/public/services/has_data.ts rename to src/platform/plugins/shared/data_views/public/services/has_data.ts diff --git a/src/plugins/data_views/public/services/index.ts b/src/platform/plugins/shared/data_views/public/services/index.ts similarity index 100% rename from src/plugins/data_views/public/services/index.ts rename to src/platform/plugins/shared/data_views/public/services/index.ts diff --git a/src/plugins/data_views/public/types.ts b/src/platform/plugins/shared/data_views/public/types.ts similarity index 100% rename from src/plugins/data_views/public/types.ts rename to src/platform/plugins/shared/data_views/public/types.ts diff --git a/src/plugins/data_views/public/ui_settings_wrapper.ts b/src/platform/plugins/shared/data_views/public/ui_settings_wrapper.ts similarity index 100% rename from src/plugins/data_views/public/ui_settings_wrapper.ts rename to src/platform/plugins/shared/data_views/public/ui_settings_wrapper.ts diff --git a/src/plugins/data_views/server/capabilities_provider.ts b/src/platform/plugins/shared/data_views/server/capabilities_provider.ts similarity index 100% rename from src/plugins/data_views/server/capabilities_provider.ts rename to src/platform/plugins/shared/data_views/server/capabilities_provider.ts diff --git a/src/plugins/data_views/server/constants.ts b/src/platform/plugins/shared/data_views/server/constants.ts similarity index 100% rename from src/plugins/data_views/server/constants.ts rename to src/platform/plugins/shared/data_views/server/constants.ts diff --git a/src/plugins/data_views/server/content_management/data_views_storage.ts b/src/platform/plugins/shared/data_views/server/content_management/data_views_storage.ts similarity index 100% rename from src/plugins/data_views/server/content_management/data_views_storage.ts rename to src/platform/plugins/shared/data_views/server/content_management/data_views_storage.ts diff --git a/src/plugins/data_views/server/content_management/index.ts b/src/platform/plugins/shared/data_views/server/content_management/index.ts similarity index 100% rename from src/plugins/data_views/server/content_management/index.ts rename to src/platform/plugins/shared/data_views/server/content_management/index.ts diff --git a/src/plugins/data_views/server/content_management/schema/cm_services.ts b/src/platform/plugins/shared/data_views/server/content_management/schema/cm_services.ts similarity index 100% rename from src/plugins/data_views/server/content_management/schema/cm_services.ts rename to src/platform/plugins/shared/data_views/server/content_management/schema/cm_services.ts diff --git a/src/plugins/data_views/server/content_management/schema/v1/cm_services.ts b/src/platform/plugins/shared/data_views/server/content_management/schema/v1/cm_services.ts similarity index 100% rename from src/plugins/data_views/server/content_management/schema/v1/cm_services.ts rename to src/platform/plugins/shared/data_views/server/content_management/schema/v1/cm_services.ts diff --git a/src/plugins/data_views/server/data_views_service_factory.ts b/src/platform/plugins/shared/data_views/server/data_views_service_factory.ts similarity index 100% rename from src/plugins/data_views/server/data_views_service_factory.ts rename to src/platform/plugins/shared/data_views/server/data_views_service_factory.ts diff --git a/src/plugins/data_views/server/deprecations/index.ts b/src/platform/plugins/shared/data_views/server/deprecations/index.ts similarity index 100% rename from src/plugins/data_views/server/deprecations/index.ts rename to src/platform/plugins/shared/data_views/server/deprecations/index.ts diff --git a/src/plugins/data_views/server/deprecations/scripted_fields.test.ts b/src/platform/plugins/shared/data_views/server/deprecations/scripted_fields.test.ts similarity index 100% rename from src/plugins/data_views/server/deprecations/scripted_fields.test.ts rename to src/platform/plugins/shared/data_views/server/deprecations/scripted_fields.test.ts diff --git a/src/plugins/data_views/server/deprecations/scripted_fields.ts b/src/platform/plugins/shared/data_views/server/deprecations/scripted_fields.ts similarity index 100% rename from src/plugins/data_views/server/deprecations/scripted_fields.ts rename to src/platform/plugins/shared/data_views/server/deprecations/scripted_fields.ts diff --git a/src/plugins/data_views/server/error.ts b/src/platform/plugins/shared/data_views/server/error.ts similarity index 100% rename from src/plugins/data_views/server/error.ts rename to src/platform/plugins/shared/data_views/server/error.ts diff --git a/src/plugins/data_views/server/expressions/index.ts b/src/platform/plugins/shared/data_views/server/expressions/index.ts similarity index 100% rename from src/plugins/data_views/server/expressions/index.ts rename to src/platform/plugins/shared/data_views/server/expressions/index.ts diff --git a/src/plugins/data_views/server/expressions/load_index_pattern.test.ts b/src/platform/plugins/shared/data_views/server/expressions/load_index_pattern.test.ts similarity index 100% rename from src/plugins/data_views/server/expressions/load_index_pattern.test.ts rename to src/platform/plugins/shared/data_views/server/expressions/load_index_pattern.test.ts diff --git a/src/plugins/data_views/server/expressions/load_index_pattern.ts b/src/platform/plugins/shared/data_views/server/expressions/load_index_pattern.ts similarity index 100% rename from src/plugins/data_views/server/expressions/load_index_pattern.ts rename to src/platform/plugins/shared/data_views/server/expressions/load_index_pattern.ts diff --git a/src/plugins/data_views/server/fetcher/index.ts b/src/platform/plugins/shared/data_views/server/fetcher/index.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/index.ts rename to src/platform/plugins/shared/data_views/server/fetcher/index.ts diff --git a/src/plugins/data_views/server/fetcher/index_not_found_exception.json b/src/platform/plugins/shared/data_views/server/fetcher/index_not_found_exception.json similarity index 100% rename from src/plugins/data_views/server/fetcher/index_not_found_exception.json rename to src/platform/plugins/shared/data_views/server/fetcher/index_not_found_exception.json diff --git a/src/plugins/data_views/server/fetcher/index_patterns_fetcher.test.ts b/src/platform/plugins/shared/data_views/server/fetcher/index_patterns_fetcher.test.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/index_patterns_fetcher.test.ts rename to src/platform/plugins/shared/data_views/server/fetcher/index_patterns_fetcher.test.ts diff --git a/src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts b/src/platform/plugins/shared/data_views/server/fetcher/index_patterns_fetcher.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts rename to src/platform/plugins/shared/data_views/server/fetcher/index_patterns_fetcher.ts diff --git a/src/plugins/data_views/server/fetcher/lib/errors.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/errors.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/errors.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/errors.ts diff --git a/src/plugins/data_views/server/fetcher/lib/es_api.test.js b/src/platform/plugins/shared/data_views/server/fetcher/lib/es_api.test.js similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/es_api.test.js rename to src/platform/plugins/shared/data_views/server/fetcher/lib/es_api.test.js diff --git a/src/plugins/data_views/server/fetcher/lib/es_api.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/es_api.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/es_api.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/es_api.ts diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/__fixtures__/es_field_caps_response.json b/src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/__fixtures__/es_field_caps_response.json similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/field_capabilities/__fixtures__/es_field_caps_response.json rename to src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/__fixtures__/es_field_caps_response.json diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/field_capabilities.test.js b/src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/field_capabilities.test.js similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/field_capabilities/field_capabilities.test.js rename to src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/field_capabilities.test.js diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/field_capabilities.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/field_capabilities.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/field_capabilities/field_capabilities.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/field_capabilities.ts diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/field_caps_response.test.js b/src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/field_caps_response.test.js similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/field_capabilities/field_caps_response.test.js rename to src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/field_caps_response.test.js diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/field_caps_response.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/field_caps_response.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/field_capabilities/field_caps_response.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/field_caps_response.ts diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/index.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/index.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/field_capabilities/index.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/index.ts diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/overrides.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/overrides.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/field_capabilities/overrides.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/overrides.ts diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.test.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.test.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.test.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.test.ts diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/field_capabilities/should_read_field_from_doc_values.ts diff --git a/src/plugins/data_views/server/fetcher/lib/index.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/index.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/index.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/index.ts diff --git a/src/plugins/data_views/server/fetcher/lib/jobs_compatibility.test.js b/src/platform/plugins/shared/data_views/server/fetcher/lib/jobs_compatibility.test.js similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/jobs_compatibility.test.js rename to src/platform/plugins/shared/data_views/server/fetcher/lib/jobs_compatibility.test.js diff --git a/src/plugins/data_views/server/fetcher/lib/jobs_compatibility.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/jobs_compatibility.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/jobs_compatibility.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/jobs_compatibility.ts diff --git a/src/plugins/data_views/server/fetcher/lib/map_capabilities.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/map_capabilities.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/map_capabilities.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/map_capabilities.ts diff --git a/src/plugins/data_views/server/fetcher/lib/merge_capabilities_with_fields.ts b/src/platform/plugins/shared/data_views/server/fetcher/lib/merge_capabilities_with_fields.ts similarity index 100% rename from src/plugins/data_views/server/fetcher/lib/merge_capabilities_with_fields.ts rename to src/platform/plugins/shared/data_views/server/fetcher/lib/merge_capabilities_with_fields.ts diff --git a/src/plugins/data_views/server/has_user_data_view.test.ts b/src/platform/plugins/shared/data_views/server/has_user_data_view.test.ts similarity index 100% rename from src/plugins/data_views/server/has_user_data_view.test.ts rename to src/platform/plugins/shared/data_views/server/has_user_data_view.test.ts diff --git a/src/plugins/data_views/server/has_user_data_view.ts b/src/platform/plugins/shared/data_views/server/has_user_data_view.ts similarity index 100% rename from src/plugins/data_views/server/has_user_data_view.ts rename to src/platform/plugins/shared/data_views/server/has_user_data_view.ts diff --git a/src/plugins/data_views/server/index.ts b/src/platform/plugins/shared/data_views/server/index.ts similarity index 100% rename from src/plugins/data_views/server/index.ts rename to src/platform/plugins/shared/data_views/server/index.ts diff --git a/src/plugins/data_views/server/index_patterns_api_client.ts b/src/platform/plugins/shared/data_views/server/index_patterns_api_client.ts similarity index 100% rename from src/plugins/data_views/server/index_patterns_api_client.ts rename to src/platform/plugins/shared/data_views/server/index_patterns_api_client.ts diff --git a/src/plugins/data_views/server/mocks.ts b/src/platform/plugins/shared/data_views/server/mocks.ts similarity index 100% rename from src/plugins/data_views/server/mocks.ts rename to src/platform/plugins/shared/data_views/server/mocks.ts diff --git a/src/plugins/data_views/server/plugin.ts b/src/platform/plugins/shared/data_views/server/plugin.ts similarity index 100% rename from src/plugins/data_views/server/plugin.ts rename to src/platform/plugins/shared/data_views/server/plugin.ts diff --git a/src/plugins/data_views/server/register_index_pattern_usage_collection.test.ts b/src/platform/plugins/shared/data_views/server/register_index_pattern_usage_collection.test.ts similarity index 100% rename from src/plugins/data_views/server/register_index_pattern_usage_collection.test.ts rename to src/platform/plugins/shared/data_views/server/register_index_pattern_usage_collection.test.ts diff --git a/src/plugins/data_views/server/register_index_pattern_usage_collection.ts b/src/platform/plugins/shared/data_views/server/register_index_pattern_usage_collection.ts similarity index 100% rename from src/plugins/data_views/server/register_index_pattern_usage_collection.ts rename to src/platform/plugins/shared/data_views/server/register_index_pattern_usage_collection.ts diff --git a/src/plugins/data_views/server/rest_api_routes/internal/existing_indices.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/internal/existing_indices.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/internal/existing_indices.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/internal/existing_indices.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/internal/existing_indices.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/internal/existing_indices.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/internal/existing_indices.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/internal/existing_indices.ts diff --git a/src/plugins/data_views/server/rest_api_routes/internal/fields.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/internal/fields.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/internal/fields.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/internal/fields.ts diff --git a/src/plugins/data_views/server/rest_api_routes/internal/fields_for.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/internal/fields_for.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/internal/fields_for.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/internal/fields_for.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/internal/fields_for.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/internal/fields_for.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/internal/fields_for.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/internal/fields_for.ts diff --git a/src/plugins/data_views/server/rest_api_routes/internal/has_data_views.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/internal/has_data_views.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/internal/has_data_views.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/internal/has_data_views.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/internal/has_data_views.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/internal/has_data_views.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/internal/has_data_views.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/internal/has_data_views.ts diff --git a/src/plugins/data_views/server/rest_api_routes/internal/has_es_data.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/internal/has_es_data.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/internal/has_es_data.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/internal/has_es_data.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/internal/has_es_data.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/internal/has_es_data.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/internal/has_es_data.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/internal/has_es_data.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/create_data_view.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/create_data_view.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/create_data_view.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/create_data_view.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/create_data_view.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/create_data_view.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/create_data_view.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/create_data_view.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/default_data_view.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/default_data_view.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/default_data_view.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/default_data_view.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/default_data_view.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/default_data_view.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/default_data_view.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/default_data_view.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/delete_data_view.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/delete_data_view.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/delete_data_view.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/delete_data_view.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/delete_data_view.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/delete_data_view.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/delete_data_view.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/delete_data_view.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/fields/index.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/fields/index.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/fields/index.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/fields/index.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/fields/update_fields.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/fields/update_fields.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/fields/update_fields.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/fields/update_fields.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/fields/update_fields.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/fields/update_fields.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/fields/update_fields.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/fields/update_fields.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/get_data_view.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/get_data_view.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/get_data_view.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/get_data_view.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/get_data_view.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/get_data_view.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/get_data_view.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/get_data_view.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/get_data_views.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/get_data_views.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/get_data_views.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/get_data_views.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/get_data_views.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/get_data_views.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/get_data_views.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/get_data_views.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/has_user_data_view.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/has_user_data_view.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/has_user_data_view.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/has_user_data_view.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/has_user_data_view.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/has_user_data_view.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/has_user_data_view.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/has_user_data_view.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/index.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/index.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/index.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/index.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/__snapshots__/response_formatter.test.ts.snap b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/__snapshots__/response_formatter.test.ts.snap similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/__snapshots__/response_formatter.test.ts.snap rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/__snapshots__/response_formatter.test.ts.snap diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/create_runtime_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/delete_runtime_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/get_runtime_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/index.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/index.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/index.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/index.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/put_runtime_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/response_formatter.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/runtime_fields/update_runtime_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/scripted_fields/create_scripted_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/create_scripted_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/scripted_fields/create_scripted_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/create_scripted_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/scripted_fields/delete_scripted_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/delete_scripted_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/scripted_fields/delete_scripted_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/delete_scripted_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/scripted_fields/get_scripted_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/get_scripted_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/scripted_fields/get_scripted_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/get_scripted_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/scripted_fields/index.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/index.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/scripted_fields/index.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/index.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/scripted_fields/put_scripted_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/put_scripted_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/scripted_fields/put_scripted_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/put_scripted_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/scripted_fields/update_scripted_field.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/update_scripted_field.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/scripted_fields/update_scripted_field.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/scripted_fields/update_scripted_field.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/swap_references.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/swap_references.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/swap_references.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/swap_references.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/test_utils.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/test_utils.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/test_utils.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/test_utils.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/update_data_view.test.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/update_data_view.test.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/update_data_view.test.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/update_data_view.test.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/update_data_view.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/update_data_view.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/update_data_view.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/update_data_view.ts diff --git a/src/plugins/data_views/server/rest_api_routes/public/util/handle_errors.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/public/util/handle_errors.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/public/util/handle_errors.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/public/util/handle_errors.ts diff --git a/src/plugins/data_views/server/rest_api_routes/route_types.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/route_types.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/route_types.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/route_types.ts diff --git a/src/plugins/data_views/server/rest_api_routes/schema.ts b/src/platform/plugins/shared/data_views/server/rest_api_routes/schema.ts similarity index 100% rename from src/plugins/data_views/server/rest_api_routes/schema.ts rename to src/platform/plugins/shared/data_views/server/rest_api_routes/schema.ts diff --git a/src/plugins/data_views/server/routes.ts b/src/platform/plugins/shared/data_views/server/routes.ts similarity index 100% rename from src/plugins/data_views/server/routes.ts rename to src/platform/plugins/shared/data_views/server/routes.ts diff --git a/src/plugins/data_views/server/saved_objects/data_views.ts b/src/platform/plugins/shared/data_views/server/saved_objects/data_views.ts similarity index 100% rename from src/plugins/data_views/server/saved_objects/data_views.ts rename to src/platform/plugins/shared/data_views/server/saved_objects/data_views.ts diff --git a/src/plugins/data_views/server/saved_objects/index.ts b/src/platform/plugins/shared/data_views/server/saved_objects/index.ts similarity index 100% rename from src/plugins/data_views/server/saved_objects/index.ts rename to src/platform/plugins/shared/data_views/server/saved_objects/index.ts diff --git a/src/plugins/data_views/server/saved_objects/index_pattern_migrations.test.ts b/src/platform/plugins/shared/data_views/server/saved_objects/index_pattern_migrations.test.ts similarity index 100% rename from src/plugins/data_views/server/saved_objects/index_pattern_migrations.test.ts rename to src/platform/plugins/shared/data_views/server/saved_objects/index_pattern_migrations.test.ts diff --git a/src/plugins/data_views/server/saved_objects/index_pattern_migrations.ts b/src/platform/plugins/shared/data_views/server/saved_objects/index_pattern_migrations.ts similarity index 100% rename from src/plugins/data_views/server/saved_objects/index_pattern_migrations.ts rename to src/platform/plugins/shared/data_views/server/saved_objects/index_pattern_migrations.ts diff --git a/src/plugins/data_views/server/saved_objects/migrations/to_v7_12_0.ts b/src/platform/plugins/shared/data_views/server/saved_objects/migrations/to_v7_12_0.ts similarity index 100% rename from src/plugins/data_views/server/saved_objects/migrations/to_v7_12_0.ts rename to src/platform/plugins/shared/data_views/server/saved_objects/migrations/to_v7_12_0.ts diff --git a/src/plugins/data_views/server/saved_objects_client_wrapper.test.ts b/src/platform/plugins/shared/data_views/server/saved_objects_client_wrapper.test.ts similarity index 100% rename from src/plugins/data_views/server/saved_objects_client_wrapper.test.ts rename to src/platform/plugins/shared/data_views/server/saved_objects_client_wrapper.test.ts diff --git a/src/plugins/data_views/server/saved_objects_client_wrapper.ts b/src/platform/plugins/shared/data_views/server/saved_objects_client_wrapper.ts similarity index 100% rename from src/plugins/data_views/server/saved_objects_client_wrapper.ts rename to src/platform/plugins/shared/data_views/server/saved_objects_client_wrapper.ts diff --git a/src/plugins/data_views/server/schemas.ts b/src/platform/plugins/shared/data_views/server/schemas.ts similarity index 100% rename from src/plugins/data_views/server/schemas.ts rename to src/platform/plugins/shared/data_views/server/schemas.ts diff --git a/src/plugins/data_views/server/types.ts b/src/platform/plugins/shared/data_views/server/types.ts similarity index 100% rename from src/plugins/data_views/server/types.ts rename to src/platform/plugins/shared/data_views/server/types.ts diff --git a/src/plugins/data_views/server/ui_settings.ts b/src/platform/plugins/shared/data_views/server/ui_settings.ts similarity index 100% rename from src/plugins/data_views/server/ui_settings.ts rename to src/platform/plugins/shared/data_views/server/ui_settings.ts diff --git a/src/plugins/data_views/server/ui_settings_wrapper.ts b/src/platform/plugins/shared/data_views/server/ui_settings_wrapper.ts similarity index 100% rename from src/plugins/data_views/server/ui_settings_wrapper.ts rename to src/platform/plugins/shared/data_views/server/ui_settings_wrapper.ts diff --git a/src/plugins/data_views/server/utils.test.ts b/src/platform/plugins/shared/data_views/server/utils.test.ts similarity index 100% rename from src/plugins/data_views/server/utils.test.ts rename to src/platform/plugins/shared/data_views/server/utils.test.ts diff --git a/src/plugins/data_views/server/utils.ts b/src/platform/plugins/shared/data_views/server/utils.ts similarity index 100% rename from src/plugins/data_views/server/utils.ts rename to src/platform/plugins/shared/data_views/server/utils.ts diff --git a/src/plugins/data_views/tsconfig.json b/src/platform/plugins/shared/data_views/tsconfig.json similarity index 95% rename from src/plugins/data_views/tsconfig.json rename to src/platform/plugins/shared/data_views/tsconfig.json index a9d2a6ed7a6a0..1a029d0b17b13 100644 --- a/src/plugins/data_views/tsconfig.json +++ b/src/platform/plugins/shared/data_views/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/discover/.storybook/discover.webpack.ts b/src/platform/plugins/shared/discover/.storybook/discover.webpack.ts similarity index 100% rename from src/plugins/discover/.storybook/discover.webpack.ts rename to src/platform/plugins/shared/discover/.storybook/discover.webpack.ts diff --git a/src/plugins/discover/.storybook/main.ts b/src/platform/plugins/shared/discover/.storybook/main.ts similarity index 100% rename from src/plugins/discover/.storybook/main.ts rename to src/platform/plugins/shared/discover/.storybook/main.ts diff --git a/src/plugins/discover/README.md b/src/platform/plugins/shared/discover/README.md similarity index 92% rename from src/plugins/discover/README.md rename to src/platform/plugins/shared/discover/README.md index 6f3f17c97e7a0..3d5b70cb1aa90 100644 --- a/src/plugins/discover/README.md +++ b/src/platform/plugins/shared/discover/README.md @@ -4,7 +4,7 @@ Contains the Discover application and the saved search embeddable. ## Project tree -### [src/plugins/discover/public](./public) +### [src/platform/plugins/shared/discover/public](./public) Contains all the client-only code. When you initially load Discover, [public/application/main](./public/application/main) is executed and displayed. @@ -21,7 +21,7 @@ One folder for every "route", each folder contains files and folders related onl * **[/services](./public/services)** (Services either for external or internal use) * **[/utils](./public/utils)** (All utility functions used across more than one application) -### [src/plugins/discover/server](./server) +### [src/platform/plugins/shared/discover/server](./server) Contains all the server-only code. @@ -30,7 +30,7 @@ Contains all the server-only code. * **[/ui_settings](./server/ui_settings.ts)** (Settings and the default values for UiSettingsServiceSetup ) * **[/locator](./server/locator)** (Extensions of DiscoverAppLocator for the DiscoverServerPlugin API) -### [src/plugins/discover/common](./common)) +### [src/platform/plugins/shared/discover/common](./common)) Contains all code shared by client and server. diff --git a/src/plugins/discover/common/app_locator.test.ts b/src/platform/plugins/shared/discover/common/app_locator.test.ts similarity index 100% rename from src/plugins/discover/common/app_locator.test.ts rename to src/platform/plugins/shared/discover/common/app_locator.test.ts diff --git a/src/plugins/discover/common/app_locator.ts b/src/platform/plugins/shared/discover/common/app_locator.ts similarity index 100% rename from src/plugins/discover/common/app_locator.ts rename to src/platform/plugins/shared/discover/common/app_locator.ts diff --git a/src/plugins/discover/common/constants.ts b/src/platform/plugins/shared/discover/common/constants.ts similarity index 100% rename from src/plugins/discover/common/constants.ts rename to src/platform/plugins/shared/discover/common/constants.ts diff --git a/src/plugins/discover/common/data_sources/index.ts b/src/platform/plugins/shared/discover/common/data_sources/index.ts similarity index 100% rename from src/plugins/discover/common/data_sources/index.ts rename to src/platform/plugins/shared/discover/common/data_sources/index.ts diff --git a/src/plugins/discover/common/data_sources/types.ts b/src/platform/plugins/shared/discover/common/data_sources/types.ts similarity index 100% rename from src/plugins/discover/common/data_sources/types.ts rename to src/platform/plugins/shared/discover/common/data_sources/types.ts diff --git a/src/plugins/discover/common/data_sources/utils.test.ts b/src/platform/plugins/shared/discover/common/data_sources/utils.test.ts similarity index 100% rename from src/plugins/discover/common/data_sources/utils.test.ts rename to src/platform/plugins/shared/discover/common/data_sources/utils.test.ts diff --git a/src/plugins/discover/common/data_sources/utils.ts b/src/platform/plugins/shared/discover/common/data_sources/utils.ts similarity index 100% rename from src/plugins/discover/common/data_sources/utils.ts rename to src/platform/plugins/shared/discover/common/data_sources/utils.ts diff --git a/src/plugins/discover/common/data_types/logs/constants.ts b/src/platform/plugins/shared/discover/common/data_types/logs/constants.ts similarity index 100% rename from src/plugins/discover/common/data_types/logs/constants.ts rename to src/platform/plugins/shared/discover/common/data_types/logs/constants.ts diff --git a/src/plugins/discover/common/embeddable/index.ts b/src/platform/plugins/shared/discover/common/embeddable/index.ts similarity index 100% rename from src/plugins/discover/common/embeddable/index.ts rename to src/platform/plugins/shared/discover/common/embeddable/index.ts diff --git a/src/plugins/discover/common/embeddable/search_inject_extract.test.ts b/src/platform/plugins/shared/discover/common/embeddable/search_inject_extract.test.ts similarity index 100% rename from src/plugins/discover/common/embeddable/search_inject_extract.test.ts rename to src/platform/plugins/shared/discover/common/embeddable/search_inject_extract.test.ts diff --git a/src/plugins/discover/common/embeddable/search_inject_extract.ts b/src/platform/plugins/shared/discover/common/embeddable/search_inject_extract.ts similarity index 100% rename from src/plugins/discover/common/embeddable/search_inject_extract.ts rename to src/platform/plugins/shared/discover/common/embeddable/search_inject_extract.ts diff --git a/src/plugins/discover/common/esql_locator.ts b/src/platform/plugins/shared/discover/common/esql_locator.ts similarity index 100% rename from src/plugins/discover/common/esql_locator.ts rename to src/platform/plugins/shared/discover/common/esql_locator.ts diff --git a/src/plugins/discover/common/index.ts b/src/platform/plugins/shared/discover/common/index.ts similarity index 100% rename from src/plugins/discover/common/index.ts rename to src/platform/plugins/shared/discover/common/index.ts diff --git a/src/plugins/discover/common/utils/sorting/get_default_sort.test.ts b/src/platform/plugins/shared/discover/common/utils/sorting/get_default_sort.test.ts similarity index 100% rename from src/plugins/discover/common/utils/sorting/get_default_sort.test.ts rename to src/platform/plugins/shared/discover/common/utils/sorting/get_default_sort.test.ts diff --git a/src/plugins/discover/common/utils/sorting/get_default_sort.ts b/src/platform/plugins/shared/discover/common/utils/sorting/get_default_sort.ts similarity index 100% rename from src/plugins/discover/common/utils/sorting/get_default_sort.ts rename to src/platform/plugins/shared/discover/common/utils/sorting/get_default_sort.ts diff --git a/src/plugins/discover/common/utils/sorting/get_es_query_sort.test.ts b/src/platform/plugins/shared/discover/common/utils/sorting/get_es_query_sort.test.ts similarity index 100% rename from src/plugins/discover/common/utils/sorting/get_es_query_sort.test.ts rename to src/platform/plugins/shared/discover/common/utils/sorting/get_es_query_sort.test.ts diff --git a/src/plugins/discover/common/utils/sorting/get_es_query_sort.ts b/src/platform/plugins/shared/discover/common/utils/sorting/get_es_query_sort.ts similarity index 100% rename from src/plugins/discover/common/utils/sorting/get_es_query_sort.ts rename to src/platform/plugins/shared/discover/common/utils/sorting/get_es_query_sort.ts diff --git a/src/plugins/discover/common/utils/sorting/get_sort.test.ts b/src/platform/plugins/shared/discover/common/utils/sorting/get_sort.test.ts similarity index 100% rename from src/plugins/discover/common/utils/sorting/get_sort.test.ts rename to src/platform/plugins/shared/discover/common/utils/sorting/get_sort.test.ts diff --git a/src/plugins/discover/common/utils/sorting/get_sort.ts b/src/platform/plugins/shared/discover/common/utils/sorting/get_sort.ts similarity index 100% rename from src/plugins/discover/common/utils/sorting/get_sort.ts rename to src/platform/plugins/shared/discover/common/utils/sorting/get_sort.ts diff --git a/src/plugins/discover/common/utils/sorting/get_sort_for_search_source.test.ts b/src/platform/plugins/shared/discover/common/utils/sorting/get_sort_for_search_source.test.ts similarity index 100% rename from src/plugins/discover/common/utils/sorting/get_sort_for_search_source.test.ts rename to src/platform/plugins/shared/discover/common/utils/sorting/get_sort_for_search_source.test.ts diff --git a/src/plugins/discover/common/utils/sorting/get_sort_for_search_source.ts b/src/platform/plugins/shared/discover/common/utils/sorting/get_sort_for_search_source.ts similarity index 100% rename from src/plugins/discover/common/utils/sorting/get_sort_for_search_source.ts rename to src/platform/plugins/shared/discover/common/utils/sorting/get_sort_for_search_source.ts diff --git a/src/plugins/discover/common/utils/sorting/index.ts b/src/platform/plugins/shared/discover/common/utils/sorting/index.ts similarity index 100% rename from src/plugins/discover/common/utils/sorting/index.ts rename to src/platform/plugins/shared/discover/common/utils/sorting/index.ts diff --git a/src/plugins/discover_shared/jest.config.js b/src/platform/plugins/shared/discover/jest.config.js similarity index 74% rename from src/plugins/discover_shared/jest.config.js rename to src/platform/plugins/shared/discover/jest.config.js index b18c66cc7fea6..8dde380d4c3b1 100644 --- a/src/plugins/discover_shared/jest.config.js +++ b/src/platform/plugins/shared/discover/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/discover_shared'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/discover_shared', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/discover'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/discover', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/discover_shared/{common,public,server}/**/*.{js,ts,tsx}', + '/src/platform/plugins/shared/discover/{common,public,server}/**/*.{js,ts,tsx}', ], }; diff --git a/src/plugins/discover/kibana.jsonc b/src/platform/plugins/shared/discover/kibana.jsonc similarity index 100% rename from src/plugins/discover/kibana.jsonc rename to src/platform/plugins/shared/discover/kibana.jsonc diff --git a/src/plugins/discover/public/__fixtures__/real_hits.ts b/src/platform/plugins/shared/discover/public/__fixtures__/real_hits.ts similarity index 100% rename from src/plugins/discover/public/__fixtures__/real_hits.ts rename to src/platform/plugins/shared/discover/public/__fixtures__/real_hits.ts diff --git a/src/plugins/discover/public/__mocks__/__storybook_mocks__/get_data_view_mock.tsx b/src/platform/plugins/shared/discover/public/__mocks__/__storybook_mocks__/get_data_view_mock.tsx similarity index 100% rename from src/plugins/discover/public/__mocks__/__storybook_mocks__/get_data_view_mock.tsx rename to src/platform/plugins/shared/discover/public/__mocks__/__storybook_mocks__/get_data_view_mock.tsx diff --git a/src/plugins/discover/public/__mocks__/__storybook_mocks__/with_discover_services.tsx b/src/platform/plugins/shared/discover/public/__mocks__/__storybook_mocks__/with_discover_services.tsx similarity index 100% rename from src/plugins/discover/public/__mocks__/__storybook_mocks__/with_discover_services.tsx rename to src/platform/plugins/shared/discover/public/__mocks__/__storybook_mocks__/with_discover_services.tsx diff --git a/src/plugins/discover/public/__mocks__/config.ts b/src/platform/plugins/shared/discover/public/__mocks__/config.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/config.ts rename to src/platform/plugins/shared/discover/public/__mocks__/config.ts diff --git a/src/plugins/discover/public/__mocks__/data_view_complex.ts b/src/platform/plugins/shared/discover/public/__mocks__/data_view_complex.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/data_view_complex.ts rename to src/platform/plugins/shared/discover/public/__mocks__/data_view_complex.ts diff --git a/src/plugins/discover/public/__mocks__/data_view_esql.ts b/src/platform/plugins/shared/discover/public/__mocks__/data_view_esql.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/data_view_esql.ts rename to src/platform/plugins/shared/discover/public/__mocks__/data_view_esql.ts diff --git a/src/plugins/discover/public/__mocks__/data_view_no_timefield.ts b/src/platform/plugins/shared/discover/public/__mocks__/data_view_no_timefield.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/data_view_no_timefield.ts rename to src/platform/plugins/shared/discover/public/__mocks__/data_view_no_timefield.ts diff --git a/src/plugins/discover/public/__mocks__/data_view_with_timefield.ts b/src/platform/plugins/shared/discover/public/__mocks__/data_view_with_timefield.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/data_view_with_timefield.ts rename to src/platform/plugins/shared/discover/public/__mocks__/data_view_with_timefield.ts diff --git a/src/plugins/discover/public/__mocks__/data_views.ts b/src/platform/plugins/shared/discover/public/__mocks__/data_views.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/data_views.ts rename to src/platform/plugins/shared/discover/public/__mocks__/data_views.ts diff --git a/src/plugins/discover/public/__mocks__/discover_state.mock.ts b/src/platform/plugins/shared/discover/public/__mocks__/discover_state.mock.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/discover_state.mock.ts rename to src/platform/plugins/shared/discover/public/__mocks__/discover_state.mock.ts diff --git a/src/plugins/discover/public/__mocks__/local_storage_mock.ts b/src/platform/plugins/shared/discover/public/__mocks__/local_storage_mock.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/local_storage_mock.ts rename to src/platform/plugins/shared/discover/public/__mocks__/local_storage_mock.ts diff --git a/src/plugins/discover/public/__mocks__/saved_search.ts b/src/platform/plugins/shared/discover/public/__mocks__/saved_search.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/saved_search.ts rename to src/platform/plugins/shared/discover/public/__mocks__/saved_search.ts diff --git a/src/plugins/discover/public/__mocks__/search_session.ts b/src/platform/plugins/shared/discover/public/__mocks__/search_session.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/search_session.ts rename to src/platform/plugins/shared/discover/public/__mocks__/search_session.ts diff --git a/src/plugins/discover/public/__mocks__/services.ts b/src/platform/plugins/shared/discover/public/__mocks__/services.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/services.ts rename to src/platform/plugins/shared/discover/public/__mocks__/services.ts diff --git a/src/plugins/discover/public/__mocks__/start_contract.ts b/src/platform/plugins/shared/discover/public/__mocks__/start_contract.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/start_contract.ts rename to src/platform/plugins/shared/discover/public/__mocks__/start_contract.ts diff --git a/src/plugins/discover/public/__mocks__/ui_settings.ts b/src/platform/plugins/shared/discover/public/__mocks__/ui_settings.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/ui_settings.ts rename to src/platform/plugins/shared/discover/public/__mocks__/ui_settings.ts diff --git a/src/plugins/discover/public/__mocks__/url_tracker.mock.ts b/src/platform/plugins/shared/discover/public/__mocks__/url_tracker.mock.ts similarity index 100% rename from src/plugins/discover/public/__mocks__/url_tracker.mock.ts rename to src/platform/plugins/shared/discover/public/__mocks__/url_tracker.mock.ts diff --git a/src/plugins/discover/public/application/context/__mocks__/top_nav_menu.tsx b/src/platform/plugins/shared/discover/public/application/context/__mocks__/top_nav_menu.tsx similarity index 100% rename from src/plugins/discover/public/application/context/__mocks__/top_nav_menu.tsx rename to src/platform/plugins/shared/discover/public/application/context/__mocks__/top_nav_menu.tsx diff --git a/src/plugins/discover/public/application/context/__mocks__/use_context_app_fetch.tsx b/src/platform/plugins/shared/discover/public/application/context/__mocks__/use_context_app_fetch.tsx similarity index 100% rename from src/plugins/discover/public/application/context/__mocks__/use_context_app_fetch.tsx rename to src/platform/plugins/shared/discover/public/application/context/__mocks__/use_context_app_fetch.tsx diff --git a/src/plugins/discover/public/application/context/components/action_bar/_action_bar.scss b/src/platform/plugins/shared/discover/public/application/context/components/action_bar/_action_bar.scss similarity index 100% rename from src/plugins/discover/public/application/context/components/action_bar/_action_bar.scss rename to src/platform/plugins/shared/discover/public/application/context/components/action_bar/_action_bar.scss diff --git a/src/plugins/discover/public/application/context/components/action_bar/action_bar.test.tsx b/src/platform/plugins/shared/discover/public/application/context/components/action_bar/action_bar.test.tsx similarity index 100% rename from src/plugins/discover/public/application/context/components/action_bar/action_bar.test.tsx rename to src/platform/plugins/shared/discover/public/application/context/components/action_bar/action_bar.test.tsx diff --git a/src/plugins/discover/public/application/context/components/action_bar/action_bar.tsx b/src/platform/plugins/shared/discover/public/application/context/components/action_bar/action_bar.tsx similarity index 100% rename from src/plugins/discover/public/application/context/components/action_bar/action_bar.tsx rename to src/platform/plugins/shared/discover/public/application/context/components/action_bar/action_bar.tsx diff --git a/src/plugins/discover/public/application/context/components/action_bar/action_bar_warning.tsx b/src/platform/plugins/shared/discover/public/application/context/components/action_bar/action_bar_warning.tsx similarity index 100% rename from src/plugins/discover/public/application/context/components/action_bar/action_bar_warning.tsx rename to src/platform/plugins/shared/discover/public/application/context/components/action_bar/action_bar_warning.tsx diff --git a/src/plugins/discover/public/application/context/components/context_error_message/context_error_message.test.tsx b/src/platform/plugins/shared/discover/public/application/context/components/context_error_message/context_error_message.test.tsx similarity index 100% rename from src/plugins/discover/public/application/context/components/context_error_message/context_error_message.test.tsx rename to src/platform/plugins/shared/discover/public/application/context/components/context_error_message/context_error_message.test.tsx diff --git a/src/plugins/discover/public/application/context/components/context_error_message/context_error_message.tsx b/src/platform/plugins/shared/discover/public/application/context/components/context_error_message/context_error_message.tsx similarity index 100% rename from src/plugins/discover/public/application/context/components/context_error_message/context_error_message.tsx rename to src/platform/plugins/shared/discover/public/application/context/components/context_error_message/context_error_message.tsx diff --git a/src/plugins/discover/public/application/context/components/context_error_message/index.ts b/src/platform/plugins/shared/discover/public/application/context/components/context_error_message/index.ts similarity index 100% rename from src/plugins/discover/public/application/context/components/context_error_message/index.ts rename to src/platform/plugins/shared/discover/public/application/context/components/context_error_message/index.ts diff --git a/src/plugins/discover/public/application/context/context_app.scss b/src/platform/plugins/shared/discover/public/application/context/context_app.scss similarity index 86% rename from src/plugins/discover/public/application/context/context_app.scss rename to src/platform/plugins/shared/discover/public/application/context/context_app.scss index 150fc7e70e52e..4e4a05821a018 100644 --- a/src/plugins/discover/public/application/context/context_app.scss +++ b/src/platform/plugins/shared/discover/public/application/context/context_app.scss @@ -1,4 +1,4 @@ -@import '../../../../../core/public/mixins'; +@import '../../../../../../../core/public/mixins'; .dscDocsPage { @include kibanaFullBodyHeight(54px); // action bar height diff --git a/src/plugins/discover/public/application/context/context_app.test.tsx b/src/platform/plugins/shared/discover/public/application/context/context_app.test.tsx similarity index 100% rename from src/plugins/discover/public/application/context/context_app.test.tsx rename to src/platform/plugins/shared/discover/public/application/context/context_app.test.tsx diff --git a/src/plugins/discover/public/application/context/context_app.tsx b/src/platform/plugins/shared/discover/public/application/context/context_app.tsx similarity index 100% rename from src/plugins/discover/public/application/context/context_app.tsx rename to src/platform/plugins/shared/discover/public/application/context/context_app.tsx diff --git a/src/plugins/discover/public/application/context/context_app_content.test.tsx b/src/platform/plugins/shared/discover/public/application/context/context_app_content.test.tsx similarity index 100% rename from src/plugins/discover/public/application/context/context_app_content.test.tsx rename to src/platform/plugins/shared/discover/public/application/context/context_app_content.test.tsx diff --git a/src/plugins/discover/public/application/context/context_app_content.tsx b/src/platform/plugins/shared/discover/public/application/context/context_app_content.tsx similarity index 100% rename from src/plugins/discover/public/application/context/context_app_content.tsx rename to src/platform/plugins/shared/discover/public/application/context/context_app_content.tsx diff --git a/src/plugins/discover/public/application/context/context_app_route.tsx b/src/platform/plugins/shared/discover/public/application/context/context_app_route.tsx similarity index 100% rename from src/plugins/discover/public/application/context/context_app_route.tsx rename to src/platform/plugins/shared/discover/public/application/context/context_app_route.tsx diff --git a/src/plugins/discover/public/application/context/hooks/use_context_app_fetch.test.tsx b/src/platform/plugins/shared/discover/public/application/context/hooks/use_context_app_fetch.test.tsx similarity index 100% rename from src/plugins/discover/public/application/context/hooks/use_context_app_fetch.test.tsx rename to src/platform/plugins/shared/discover/public/application/context/hooks/use_context_app_fetch.test.tsx diff --git a/src/plugins/discover/public/application/context/hooks/use_context_app_fetch.tsx b/src/platform/plugins/shared/discover/public/application/context/hooks/use_context_app_fetch.tsx similarity index 100% rename from src/plugins/discover/public/application/context/hooks/use_context_app_fetch.tsx rename to src/platform/plugins/shared/discover/public/application/context/hooks/use_context_app_fetch.tsx diff --git a/src/plugins/discover/public/application/context/hooks/use_context_app_state.ts b/src/platform/plugins/shared/discover/public/application/context/hooks/use_context_app_state.ts similarity index 100% rename from src/plugins/discover/public/application/context/hooks/use_context_app_state.ts rename to src/platform/plugins/shared/discover/public/application/context/hooks/use_context_app_state.ts diff --git a/src/plugins/discover/public/application/context/index.ts b/src/platform/plugins/shared/discover/public/application/context/index.ts similarity index 100% rename from src/plugins/discover/public/application/context/index.ts rename to src/platform/plugins/shared/discover/public/application/context/index.ts diff --git a/src/plugins/discover/public/application/context/services/__snapshots__/context.predecessors.test.ts.snap b/src/platform/plugins/shared/discover/public/application/context/services/__snapshots__/context.predecessors.test.ts.snap similarity index 100% rename from src/plugins/discover/public/application/context/services/__snapshots__/context.predecessors.test.ts.snap rename to src/platform/plugins/shared/discover/public/application/context/services/__snapshots__/context.predecessors.test.ts.snap diff --git a/src/plugins/discover/public/application/context/services/__snapshots__/context.successors.test.ts.snap b/src/platform/plugins/shared/discover/public/application/context/services/__snapshots__/context.successors.test.ts.snap similarity index 100% rename from src/plugins/discover/public/application/context/services/__snapshots__/context.successors.test.ts.snap rename to src/platform/plugins/shared/discover/public/application/context/services/__snapshots__/context.successors.test.ts.snap diff --git a/src/plugins/discover/public/application/context/services/__snapshots__/context.test.ts.snap b/src/platform/plugins/shared/discover/public/application/context/services/__snapshots__/context.test.ts.snap similarity index 100% rename from src/plugins/discover/public/application/context/services/__snapshots__/context.test.ts.snap rename to src/platform/plugins/shared/discover/public/application/context/services/__snapshots__/context.test.ts.snap diff --git a/src/plugins/discover/public/application/context/services/_stubs.ts b/src/platform/plugins/shared/discover/public/application/context/services/_stubs.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/_stubs.ts rename to src/platform/plugins/shared/discover/public/application/context/services/_stubs.ts diff --git a/src/plugins/discover/public/application/context/services/anchor.test.ts b/src/platform/plugins/shared/discover/public/application/context/services/anchor.test.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/anchor.test.ts rename to src/platform/plugins/shared/discover/public/application/context/services/anchor.test.ts diff --git a/src/plugins/discover/public/application/context/services/anchor.ts b/src/platform/plugins/shared/discover/public/application/context/services/anchor.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/anchor.ts rename to src/platform/plugins/shared/discover/public/application/context/services/anchor.ts diff --git a/src/plugins/discover/public/application/context/services/constants.ts b/src/platform/plugins/shared/discover/public/application/context/services/constants.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/constants.ts rename to src/platform/plugins/shared/discover/public/application/context/services/constants.ts diff --git a/src/plugins/discover/public/application/context/services/context.predecessors.test.ts b/src/platform/plugins/shared/discover/public/application/context/services/context.predecessors.test.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/context.predecessors.test.ts rename to src/platform/plugins/shared/discover/public/application/context/services/context.predecessors.test.ts diff --git a/src/plugins/discover/public/application/context/services/context.successors.test.ts b/src/platform/plugins/shared/discover/public/application/context/services/context.successors.test.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/context.successors.test.ts rename to src/platform/plugins/shared/discover/public/application/context/services/context.successors.test.ts diff --git a/src/plugins/discover/public/application/context/services/context.test.ts b/src/platform/plugins/shared/discover/public/application/context/services/context.test.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/context.test.ts rename to src/platform/plugins/shared/discover/public/application/context/services/context.test.ts diff --git a/src/plugins/discover/public/application/context/services/context.ts b/src/platform/plugins/shared/discover/public/application/context/services/context.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/context.ts rename to src/platform/plugins/shared/discover/public/application/context/services/context.ts diff --git a/src/plugins/discover/public/application/context/services/context_query_state.ts b/src/platform/plugins/shared/discover/public/application/context/services/context_query_state.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/context_query_state.ts rename to src/platform/plugins/shared/discover/public/application/context/services/context_query_state.ts diff --git a/src/plugins/discover/public/application/context/services/context_state.test.ts b/src/platform/plugins/shared/discover/public/application/context/services/context_state.test.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/context_state.test.ts rename to src/platform/plugins/shared/discover/public/application/context/services/context_state.test.ts diff --git a/src/plugins/discover/public/application/context/services/context_state.ts b/src/platform/plugins/shared/discover/public/application/context/services/context_state.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/context_state.ts rename to src/platform/plugins/shared/discover/public/application/context/services/context_state.ts diff --git a/src/plugins/discover/public/application/context/services/locator.test.ts b/src/platform/plugins/shared/discover/public/application/context/services/locator.test.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/locator.test.ts rename to src/platform/plugins/shared/discover/public/application/context/services/locator.test.ts diff --git a/src/plugins/discover/public/application/context/services/locator.ts b/src/platform/plugins/shared/discover/public/application/context/services/locator.ts similarity index 100% rename from src/plugins/discover/public/application/context/services/locator.ts rename to src/platform/plugins/shared/discover/public/application/context/services/locator.ts diff --git a/src/plugins/discover/public/application/context/utils/date_conversion.test.ts b/src/platform/plugins/shared/discover/public/application/context/utils/date_conversion.test.ts similarity index 100% rename from src/plugins/discover/public/application/context/utils/date_conversion.test.ts rename to src/platform/plugins/shared/discover/public/application/context/utils/date_conversion.test.ts diff --git a/src/plugins/discover/public/application/context/utils/date_conversion.ts b/src/platform/plugins/shared/discover/public/application/context/utils/date_conversion.ts similarity index 100% rename from src/plugins/discover/public/application/context/utils/date_conversion.ts rename to src/platform/plugins/shared/discover/public/application/context/utils/date_conversion.ts diff --git a/src/plugins/discover/public/application/context/utils/fetch_hits_in_interval.ts b/src/platform/plugins/shared/discover/public/application/context/utils/fetch_hits_in_interval.ts similarity index 100% rename from src/plugins/discover/public/application/context/utils/fetch_hits_in_interval.ts rename to src/platform/plugins/shared/discover/public/application/context/utils/fetch_hits_in_interval.ts diff --git a/src/plugins/discover/public/application/context/utils/generate_intervals.ts b/src/platform/plugins/shared/discover/public/application/context/utils/generate_intervals.ts similarity index 100% rename from src/plugins/discover/public/application/context/utils/generate_intervals.ts rename to src/platform/plugins/shared/discover/public/application/context/utils/generate_intervals.ts diff --git a/src/plugins/discover/public/application/context/utils/get_es_query_search_after.ts b/src/platform/plugins/shared/discover/public/application/context/utils/get_es_query_search_after.ts similarity index 100% rename from src/plugins/discover/public/application/context/utils/get_es_query_search_after.ts rename to src/platform/plugins/shared/discover/public/application/context/utils/get_es_query_search_after.ts diff --git a/src/plugins/discover/public/application/context/utils/replace_context_location.ts b/src/platform/plugins/shared/discover/public/application/context/utils/replace_context_location.ts similarity index 100% rename from src/plugins/discover/public/application/context/utils/replace_context_location.ts rename to src/platform/plugins/shared/discover/public/application/context/utils/replace_context_location.ts diff --git a/src/plugins/discover/public/application/context/utils/sorting.test.ts b/src/platform/plugins/shared/discover/public/application/context/utils/sorting.test.ts similarity index 100% rename from src/plugins/discover/public/application/context/utils/sorting.test.ts rename to src/platform/plugins/shared/discover/public/application/context/utils/sorting.test.ts diff --git a/src/plugins/discover/public/application/context/utils/sorting.ts b/src/platform/plugins/shared/discover/public/application/context/utils/sorting.ts similarity index 100% rename from src/plugins/discover/public/application/context/utils/sorting.ts rename to src/platform/plugins/shared/discover/public/application/context/utils/sorting.ts diff --git a/src/plugins/discover/public/application/discover_router.test.tsx b/src/platform/plugins/shared/discover/public/application/discover_router.test.tsx similarity index 100% rename from src/plugins/discover/public/application/discover_router.test.tsx rename to src/platform/plugins/shared/discover/public/application/discover_router.test.tsx diff --git a/src/plugins/discover/public/application/discover_router.tsx b/src/platform/plugins/shared/discover/public/application/discover_router.tsx similarity index 100% rename from src/plugins/discover/public/application/discover_router.tsx rename to src/platform/plugins/shared/discover/public/application/discover_router.tsx diff --git a/src/plugins/discover/public/application/doc/components/doc.test.tsx b/src/platform/plugins/shared/discover/public/application/doc/components/doc.test.tsx similarity index 100% rename from src/plugins/discover/public/application/doc/components/doc.test.tsx rename to src/platform/plugins/shared/discover/public/application/doc/components/doc.test.tsx diff --git a/src/plugins/discover/public/application/doc/components/doc.tsx b/src/platform/plugins/shared/discover/public/application/doc/components/doc.tsx similarity index 100% rename from src/plugins/discover/public/application/doc/components/doc.tsx rename to src/platform/plugins/shared/discover/public/application/doc/components/doc.tsx diff --git a/src/plugins/discover/public/application/doc/components/single_doc_viewer.tsx b/src/platform/plugins/shared/discover/public/application/doc/components/single_doc_viewer.tsx similarity index 100% rename from src/plugins/discover/public/application/doc/components/single_doc_viewer.tsx rename to src/platform/plugins/shared/discover/public/application/doc/components/single_doc_viewer.tsx diff --git a/src/plugins/discover/public/application/doc/index.ts b/src/platform/plugins/shared/discover/public/application/doc/index.ts similarity index 100% rename from src/plugins/discover/public/application/doc/index.ts rename to src/platform/plugins/shared/discover/public/application/doc/index.ts diff --git a/src/plugins/discover/public/application/doc/locator.test.ts b/src/platform/plugins/shared/discover/public/application/doc/locator.test.ts similarity index 100% rename from src/plugins/discover/public/application/doc/locator.test.ts rename to src/platform/plugins/shared/discover/public/application/doc/locator.test.ts diff --git a/src/plugins/discover/public/application/doc/locator.ts b/src/platform/plugins/shared/discover/public/application/doc/locator.ts similarity index 100% rename from src/plugins/discover/public/application/doc/locator.ts rename to src/platform/plugins/shared/discover/public/application/doc/locator.ts diff --git a/src/plugins/discover/public/application/doc/single_doc_route.tsx b/src/platform/plugins/shared/discover/public/application/doc/single_doc_route.tsx similarity index 100% rename from src/plugins/discover/public/application/doc/single_doc_route.tsx rename to src/platform/plugins/shared/discover/public/application/doc/single_doc_route.tsx diff --git a/src/plugins/discover/public/application/index.tsx b/src/platform/plugins/shared/discover/public/application/index.tsx similarity index 100% rename from src/plugins/discover/public/application/index.tsx rename to src/platform/plugins/shared/discover/public/application/index.tsx diff --git a/src/plugins/discover/public/application/main/components/field_stats_table/constants.ts b/src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/constants.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/field_stats_table/constants.ts rename to src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/constants.ts diff --git a/src/plugins/discover/public/application/main/components/field_stats_table/field_stats_tab.tsx b/src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/field_stats_tab.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/field_stats_table/field_stats_tab.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/field_stats_tab.tsx diff --git a/src/plugins/discover/public/application/main/components/field_stats_table/field_stats_table.tsx b/src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/field_stats_table.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/field_stats_table/field_stats_table.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/field_stats_table.tsx diff --git a/src/plugins/discover/public/application/main/components/field_stats_table/index.ts b/src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/field_stats_table/index.ts rename to src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/index.ts diff --git a/src/plugins/discover/public/application/main/components/field_stats_table/types.ts b/src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/types.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/field_stats_table/types.ts rename to src/platform/plugins/shared/discover/public/application/main/components/field_stats_table/types.ts diff --git a/src/plugins/discover/public/application/main/components/layout/discover_documents.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_documents.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_documents.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_documents.test.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/discover_documents.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_documents.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_documents.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_documents.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/discover_histogram_layout.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_histogram_layout.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_histogram_layout.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_histogram_layout.test.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/discover_histogram_layout.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_histogram_layout.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_histogram_layout.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_histogram_layout.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/discover_layout.scss b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.scss similarity index 95% rename from src/plugins/discover/public/application/main/components/layout/discover_layout.scss rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.scss index cf22e34a0c597..edfea7a231d13 100644 --- a/src/plugins/discover/public/application/main/components/layout/discover_layout.scss +++ b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.scss @@ -1,4 +1,4 @@ -@import '../../../../../../../core/public/mixins'; +@import '../../../../../../../../../core/public/mixins'; discover-app { flex-grow: 1; diff --git a/src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.test.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_layout.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/discover_main_content.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_main_content.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_main_content.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_main_content.test.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/discover_main_content.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_main_content.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_main_content.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_main_content.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/discover_resizable_layout.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_resizable_layout.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_resizable_layout.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_resizable_layout.test.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/discover_resizable_layout.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/discover_resizable_layout.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/discover_resizable_layout.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/discover_resizable_layout.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/index.ts b/src/platform/plugins/shared/discover/public/application/main/components/layout/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/index.ts rename to src/platform/plugins/shared/discover/public/application/main/components/layout/index.ts diff --git a/src/plugins/discover/public/application/main/components/layout/selected_vs_available_callout.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/selected_vs_available_callout.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/selected_vs_available_callout.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/selected_vs_available_callout.test.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/selected_vs_available_callout.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/selected_vs_available_callout.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/selected_vs_available_callout.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/selected_vs_available_callout.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/use_discover_histogram.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/use_discover_histogram.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/use_discover_histogram.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/use_discover_histogram.test.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/use_discover_histogram.ts b/src/platform/plugins/shared/discover/public/application/main/components/layout/use_discover_histogram.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/use_discover_histogram.ts rename to src/platform/plugins/shared/discover/public/application/main/components/layout/use_discover_histogram.ts diff --git a/src/plugins/discover/public/application/main/components/layout/use_fetch_more_records.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/layout/use_fetch_more_records.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/use_fetch_more_records.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/layout/use_fetch_more_records.test.tsx diff --git a/src/plugins/discover/public/application/main/components/layout/use_fetch_more_records.ts b/src/platform/plugins/shared/discover/public/application/main/components/layout/use_fetch_more_records.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/use_fetch_more_records.ts rename to src/platform/plugins/shared/discover/public/application/main/components/layout/use_fetch_more_records.ts diff --git a/src/plugins/discover/public/application/main/components/layout/utils.test.ts b/src/platform/plugins/shared/discover/public/application/main/components/layout/utils.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/utils.test.ts rename to src/platform/plugins/shared/discover/public/application/main/components/layout/utils.test.ts diff --git a/src/plugins/discover/public/application/main/components/layout/utils.ts b/src/platform/plugins/shared/discover/public/application/main/components/layout/utils.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/layout/utils.ts rename to src/platform/plugins/shared/discover/public/application/main/components/layout/utils.ts diff --git a/src/plugins/discover/public/application/main/components/loading_spinner/loading_spinner.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/loading_spinner/loading_spinner.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/loading_spinner/loading_spinner.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/loading_spinner/loading_spinner.test.tsx diff --git a/src/plugins/discover/public/application/main/components/loading_spinner/loading_spinner.tsx b/src/platform/plugins/shared/discover/public/application/main/components/loading_spinner/loading_spinner.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/loading_spinner/loading_spinner.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/loading_spinner/loading_spinner.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/_no_results.scss b/src/platform/plugins/shared/discover/public/application/main/components/no_results/_no_results.scss similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/_no_results.scss rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/_no_results.scss diff --git a/src/plugins/discover/public/application/main/components/no_results/index.ts b/src/platform/plugins/shared/discover/public/application/main/components/no_results/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/index.ts rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/index.ts diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results.test.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results.tsx b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.scss b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.scss similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.scss rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.scss diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.tsx b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/assets/no_results_illustration.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/index.ts b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/index.ts rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/index.ts diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_default.tsx b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_default.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_default.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_default.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_filters.tsx b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_filters.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_filters.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_filters.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_query.tsx b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_query.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_query.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_query.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_time_range.tsx b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_time_range.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_time_range.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestion_when_time_range.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestions.tsx b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestions.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestions.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/no_results_suggestions.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/syntax_suggestions_popover.tsx b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/syntax_suggestions_popover.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/syntax_suggestions_popover.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/syntax_suggestions_popover.tsx diff --git a/src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/use_fetch_occurances_range.ts b/src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/use_fetch_occurances_range.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/no_results/no_results_suggestions/use_fetch_occurances_range.ts rename to src/platform/plugins/shared/discover/public/application/main/components/no_results/no_results_suggestions/use_fetch_occurances_range.ts diff --git a/src/plugins/discover/public/application/main/components/pattern_analysis/constants.ts b/src/platform/plugins/shared/discover/public/application/main/components/pattern_analysis/constants.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/pattern_analysis/constants.ts rename to src/platform/plugins/shared/discover/public/application/main/components/pattern_analysis/constants.ts diff --git a/src/plugins/discover/public/application/main/components/pattern_analysis/index.ts b/src/platform/plugins/shared/discover/public/application/main/components/pattern_analysis/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/pattern_analysis/index.ts rename to src/platform/plugins/shared/discover/public/application/main/components/pattern_analysis/index.ts diff --git a/src/plugins/discover/public/application/main/components/pattern_analysis/pattern_analysis_tab.tsx b/src/platform/plugins/shared/discover/public/application/main/components/pattern_analysis/pattern_analysis_tab.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/pattern_analysis/pattern_analysis_tab.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/pattern_analysis/pattern_analysis_tab.tsx diff --git a/src/plugins/discover/public/application/main/components/pattern_analysis/pattern_analysis_table.tsx b/src/platform/plugins/shared/discover/public/application/main/components/pattern_analysis/pattern_analysis_table.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/pattern_analysis/pattern_analysis_table.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/pattern_analysis/pattern_analysis_table.tsx diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx b/src/platform/plugins/shared/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx diff --git a/src/plugins/discover/public/application/main/components/sidebar/index.ts b/src/platform/plugins/shared/discover/public/application/main/components/sidebar/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/sidebar/index.ts rename to src/platform/plugins/shared/discover/public/application/main/components/sidebar/index.ts diff --git a/src/plugins/discover/public/application/main/components/sidebar/lib/get_field_list.ts b/src/platform/plugins/shared/discover/public/application/main/components/sidebar/lib/get_field_list.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/sidebar/lib/get_field_list.ts rename to src/platform/plugins/shared/discover/public/application/main/components/sidebar/lib/get_field_list.ts diff --git a/src/plugins/discover/public/application/main/components/sidebar/lib/sidebar_reducer.test.ts b/src/platform/plugins/shared/discover/public/application/main/components/sidebar/lib/sidebar_reducer.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/sidebar/lib/sidebar_reducer.test.ts rename to src/platform/plugins/shared/discover/public/application/main/components/sidebar/lib/sidebar_reducer.test.ts diff --git a/src/plugins/discover/public/application/main/components/sidebar/lib/sidebar_reducer.ts b/src/platform/plugins/shared/discover/public/application/main/components/sidebar/lib/sidebar_reducer.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/sidebar/lib/sidebar_reducer.ts rename to src/platform/plugins/shared/discover/public/application/main/components/sidebar/lib/sidebar_reducer.ts diff --git a/src/plugins/discover/public/application/main/components/skip_bottom_button/index.ts b/src/platform/plugins/shared/discover/public/application/main/components/skip_bottom_button/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/skip_bottom_button/index.ts rename to src/platform/plugins/shared/discover/public/application/main/components/skip_bottom_button/index.ts diff --git a/src/plugins/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.scss b/src/platform/plugins/shared/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.scss similarity index 100% rename from src/plugins/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.scss rename to src/platform/plugins/shared/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.scss diff --git a/src/plugins/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.test.tsx diff --git a/src/plugins/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.tsx b/src/platform/plugins/shared/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/skip_bottom_button/skip_bottom_button.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/__snapshots__/open_search_panel.test.tsx.snap b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/__snapshots__/open_search_panel.test.tsx.snap similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/__snapshots__/open_search_panel.test.tsx.snap rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/__snapshots__/open_search_panel.test.tsx.snap diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.test.ts b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.test.ts rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.test.ts diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.ts b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.ts rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/convert_to_top_nav_item.ts diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.test.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_alerts.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_inspect.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_inspect.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_inspect.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_inspect.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_new_search.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_new_search.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_new_search.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_new_search.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_open_search.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_open_search.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_open_search.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_open_search.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_share.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_share.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/get_share.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_share.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/index.ts b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/index.ts rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/index.ts diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.test.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/run_app_menu_action.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/types.ts b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/types.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/app_menu_actions/types.ts rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/types.ts diff --git a/src/plugins/discover/public/application/main/components/top_nav/discover_topnav.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/discover_topnav.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav.test.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/discover_topnav.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/discover_topnav.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/discover_topnav_inline.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav_inline.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/discover_topnav_inline.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav_inline.test.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/discover_topnav_inline.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav_inline.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/discover_topnav_inline.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/discover_topnav_inline.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/esql_dataview_transition/esql_dataview_transition_modal.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/esql_dataview_transition/esql_dataview_transition_modal.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/esql_dataview_transition/esql_dataview_transition_modal.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/esql_dataview_transition/esql_dataview_transition_modal.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/esql_dataview_transition/index.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/esql_dataview_transition/index.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/esql_dataview_transition/index.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/esql_dataview_transition/index.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/get_top_nav_badges.test.ts b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/get_top_nav_badges.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/get_top_nav_badges.test.ts rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/get_top_nav_badges.test.ts diff --git a/src/plugins/discover/public/application/main/components/top_nav/get_top_nav_badges.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/get_top_nav_badges.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/get_top_nav_badges.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/get_top_nav_badges.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/on_save_search.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/on_save_search.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/on_save_search.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/on_save_search.test.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/on_save_search.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/on_save_search.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/on_save_search.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/on_save_search.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/open_search_panel.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/open_search_panel.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/open_search_panel.test.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/open_search_panel.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/open_search_panel.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/open_search_panel.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/top_nav.scss b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/top_nav.scss similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/top_nav.scss rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/top_nav.scss diff --git a/src/plugins/discover/public/application/main/components/top_nav/use_discover_topnav.ts b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/use_discover_topnav.ts similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/use_discover_topnav.ts rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/use_discover_topnav.ts diff --git a/src/plugins/discover/public/application/main/components/top_nav/use_top_nav_links.test.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/use_top_nav_links.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/use_top_nav_links.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/use_top_nav_links.test.tsx diff --git a/src/plugins/discover/public/application/main/components/top_nav/use_top_nav_links.tsx b/src/platform/plugins/shared/discover/public/application/main/components/top_nav/use_top_nav_links.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/top_nav/use_top_nav_links.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/top_nav/use_top_nav_links.tsx diff --git a/src/plugins/discover/public/application/main/components/total_documents/total_documents.tsx b/src/platform/plugins/shared/discover/public/application/main/components/total_documents/total_documents.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/total_documents/total_documents.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/total_documents/total_documents.tsx diff --git a/src/plugins/discover/public/application/main/components/uninitialized/uninitialized.tsx b/src/platform/plugins/shared/discover/public/application/main/components/uninitialized/uninitialized.tsx similarity index 100% rename from src/plugins/discover/public/application/main/components/uninitialized/uninitialized.tsx rename to src/platform/plugins/shared/discover/public/application/main/components/uninitialized/uninitialized.tsx diff --git a/src/plugins/discover/public/application/main/data_fetching/fetch_all.test.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_all.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/fetch_all.test.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_all.test.ts diff --git a/src/plugins/discover/public/application/main/data_fetching/fetch_all.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_all.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/fetch_all.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_all.ts diff --git a/src/plugins/discover/public/application/main/data_fetching/fetch_documents.test.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_documents.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/fetch_documents.test.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_documents.test.ts diff --git a/src/plugins/discover/public/application/main/data_fetching/fetch_documents.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_documents.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/fetch_documents.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_documents.ts diff --git a/src/plugins/discover/public/application/main/data_fetching/fetch_esql.test.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_esql.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/fetch_esql.test.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_esql.test.ts diff --git a/src/plugins/discover/public/application/main/data_fetching/fetch_esql.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_esql.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/fetch_esql.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/fetch_esql.ts diff --git a/src/plugins/discover/public/application/main/data_fetching/get_fetch_observable.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/get_fetch_observable.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/get_fetch_observable.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/get_fetch_observable.ts diff --git a/src/plugins/discover/public/application/main/data_fetching/get_fetch_observeable.test.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/get_fetch_observeable.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/get_fetch_observeable.test.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/get_fetch_observeable.test.ts diff --git a/src/plugins/discover/public/application/main/data_fetching/update_search_source.test.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/update_search_source.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/update_search_source.test.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/update_search_source.test.ts diff --git a/src/plugins/discover/public/application/main/data_fetching/update_search_source.ts b/src/platform/plugins/shared/discover/public/application/main/data_fetching/update_search_source.ts similarity index 100% rename from src/plugins/discover/public/application/main/data_fetching/update_search_source.ts rename to src/platform/plugins/shared/discover/public/application/main/data_fetching/update_search_source.ts diff --git a/src/plugins/discover/public/application/main/discover_main_app.test.tsx b/src/platform/plugins/shared/discover/public/application/main/discover_main_app.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/discover_main_app.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/discover_main_app.test.tsx diff --git a/src/plugins/discover/public/application/main/discover_main_app.tsx b/src/platform/plugins/shared/discover/public/application/main/discover_main_app.tsx similarity index 100% rename from src/plugins/discover/public/application/main/discover_main_app.tsx rename to src/platform/plugins/shared/discover/public/application/main/discover_main_app.tsx diff --git a/src/plugins/discover/public/application/main/discover_main_route.test.tsx b/src/platform/plugins/shared/discover/public/application/main/discover_main_route.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/discover_main_route.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/discover_main_route.test.tsx diff --git a/src/plugins/discover/public/application/main/discover_main_route.tsx b/src/platform/plugins/shared/discover/public/application/main/discover_main_route.tsx similarity index 100% rename from src/plugins/discover/public/application/main/discover_main_route.tsx rename to src/platform/plugins/shared/discover/public/application/main/discover_main_route.tsx diff --git a/src/plugins/discover/public/application/main/hooks/grid_customisations/index.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/grid_customisations/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/grid_customisations/index.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/grid_customisations/index.ts diff --git a/src/plugins/discover/public/application/main/hooks/grid_customisations/logs.tsx b/src/platform/plugins/shared/discover/public/application/main/hooks/grid_customisations/logs.tsx similarity index 100% rename from src/plugins/discover/public/application/main/hooks/grid_customisations/logs.tsx rename to src/platform/plugins/shared/discover/public/application/main/hooks/grid_customisations/logs.tsx diff --git a/src/plugins/discover/public/application/main/hooks/sidebar/use_additional_field_groups.tsx b/src/platform/plugins/shared/discover/public/application/main/hooks/sidebar/use_additional_field_groups.tsx similarity index 100% rename from src/plugins/discover/public/application/main/hooks/sidebar/use_additional_field_groups.tsx rename to src/platform/plugins/shared/discover/public/application/main/hooks/sidebar/use_additional_field_groups.tsx diff --git a/src/plugins/discover/public/application/main/hooks/use_adhoc_data_views.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_adhoc_data_views.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_adhoc_data_views.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_adhoc_data_views.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_alert_results_toast.tsx b/src/platform/plugins/shared/discover/public/application/main/hooks/use_alert_results_toast.tsx similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_alert_results_toast.tsx rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_alert_results_toast.tsx diff --git a/src/plugins/discover/public/application/main/hooks/use_data_state.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_data_state.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_data_state.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_data_state.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_discover_state_container.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_discover_state_container.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_discover_state_container.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_discover_state_container.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_esql_mode.test.tsx b/src/platform/plugins/shared/discover/public/application/main/hooks/use_esql_mode.test.tsx similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_esql_mode.test.tsx rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_esql_mode.test.tsx diff --git a/src/plugins/discover/public/application/main/hooks/use_esql_mode.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_esql_mode.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_esql_mode.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_esql_mode.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_filters_validation.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_filters_validation.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_filters_validation.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_filters_validation.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_inspector.test.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_inspector.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_inspector.test.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_inspector.test.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_inspector.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_inspector.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_inspector.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_inspector.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_is_esql_mode.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_is_esql_mode.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_is_esql_mode.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_is_esql_mode.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_saved_search_messages.test.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_saved_search_messages.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_saved_search_messages.test.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_saved_search_messages.test.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_saved_search_messages.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_saved_search_messages.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_saved_search_messages.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_saved_search_messages.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_url.test.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_url.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_url.test.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_url.test.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_url.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_url.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_url.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_url.ts diff --git a/src/plugins/discover/public/application/main/hooks/use_url_tracking.ts b/src/platform/plugins/shared/discover/public/application/main/hooks/use_url_tracking.ts similarity index 100% rename from src/plugins/discover/public/application/main/hooks/use_url_tracking.ts rename to src/platform/plugins/shared/discover/public/application/main/hooks/use_url_tracking.ts diff --git a/src/plugins/discover/public/application/main/index.ts b/src/platform/plugins/shared/discover/public/application/main/index.ts similarity index 100% rename from src/plugins/discover/public/application/main/index.ts rename to src/platform/plugins/shared/discover/public/application/main/index.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_app_state_container.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_app_state_container.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_app_state_container.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_app_state_container.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_app_state_container.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_app_state_container.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_app_state_container.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_app_state_container.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_data_state_container.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_data_state_container.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_data_state_container.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_data_state_container.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_data_state_container.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_data_state_container.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_data_state_container.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_data_state_container.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_global_state_container.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_global_state_container.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_global_state_container.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_global_state_container.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_internal_state_container.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_internal_state_container.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_internal_state_container.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_internal_state_container.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_saved_search_container.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_saved_search_container.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_saved_search_container.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_saved_search_container.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_saved_search_container.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_saved_search_container.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_saved_search_container.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_saved_search_container.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_search_session.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_search_session.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_search_session.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_search_session.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_search_session.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_search_session.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_search_session.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_search_session.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_state.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_state.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_state.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_state.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_state.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_state.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_state.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_state.ts diff --git a/src/plugins/discover/public/application/main/state_management/discover_state_provider.tsx b/src/platform/plugins/shared/discover/public/application/main/state_management/discover_state_provider.tsx similarity index 100% rename from src/plugins/discover/public/application/main/state_management/discover_state_provider.tsx rename to src/platform/plugins/shared/discover/public/application/main/state_management/discover_state_provider.tsx diff --git a/src/plugins/discover/public/application/main/state_management/utils/build_state_subscribe.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/build_state_subscribe.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/build_state_subscribe.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/build_state_subscribe.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/build_state_subscribe.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/build_state_subscribe.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/build_state_subscribe.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/build_state_subscribe.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/change_data_view.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/change_data_view.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/change_data_view.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/change_data_view.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/change_data_view.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/change_data_view.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/change_data_view.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/change_data_view.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/cleanup_url_state.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/cleanup_url_state.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/cleanup_url_state.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/cleanup_url_state.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/cleanup_url_state.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/cleanup_url_state.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/cleanup_url_state.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/cleanup_url_state.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/get_default_profile_state.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_default_profile_state.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/get_default_profile_state.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_default_profile_state.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/get_default_profile_state.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_default_profile_state.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/get_default_profile_state.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_default_profile_state.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/get_esql_data_view.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_esql_data_view.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/get_esql_data_view.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_esql_data_view.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/get_esql_data_view.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_esql_data_view.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/get_esql_data_view.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_esql_data_view.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/get_state_defaults.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_state_defaults.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/get_state_defaults.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_state_defaults.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/get_state_defaults.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_state_defaults.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/get_state_defaults.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_state_defaults.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/get_switch_data_view_app_state.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/load_saved_search.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/load_saved_search.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/load_saved_search.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/load_saved_search.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/resolve_data_view.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/resolve_data_view.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/resolve_data_view.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/resolve_data_view.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/resolve_data_view.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/resolve_data_view.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/resolve_data_view.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/resolve_data_view.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/update_filter_references.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/update_filter_references.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/update_filter_references.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/update_filter_references.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/update_saved_search.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/update_saved_search.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/update_saved_search.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/update_saved_search.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/update_saved_search.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/update_saved_search.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/update_saved_search.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/update_saved_search.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/validate_time_range.test.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/validate_time_range.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/validate_time_range.test.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/validate_time_range.test.ts diff --git a/src/plugins/discover/public/application/main/state_management/utils/validate_time_range.ts b/src/platform/plugins/shared/discover/public/application/main/state_management/utils/validate_time_range.ts similarity index 100% rename from src/plugins/discover/public/application/main/state_management/utils/validate_time_range.ts rename to src/platform/plugins/shared/discover/public/application/main/state_management/utils/validate_time_range.ts diff --git a/src/plugins/discover/public/application/main/utils/aggregate_request_adapter.test.ts b/src/platform/plugins/shared/discover/public/application/main/utils/aggregate_request_adapter.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/utils/aggregate_request_adapter.test.ts rename to src/platform/plugins/shared/discover/public/application/main/utils/aggregate_request_adapter.test.ts diff --git a/src/plugins/discover/public/application/main/utils/aggregate_request_adapter.ts b/src/platform/plugins/shared/discover/public/application/main/utils/aggregate_request_adapter.ts similarity index 100% rename from src/plugins/discover/public/application/main/utils/aggregate_request_adapter.ts rename to src/platform/plugins/shared/discover/public/application/main/utils/aggregate_request_adapter.ts diff --git a/src/plugins/discover/public/application/main/utils/get_result_state.test.ts b/src/platform/plugins/shared/discover/public/application/main/utils/get_result_state.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/utils/get_result_state.test.ts rename to src/platform/plugins/shared/discover/public/application/main/utils/get_result_state.test.ts diff --git a/src/plugins/discover/public/application/main/utils/get_result_state.ts b/src/platform/plugins/shared/discover/public/application/main/utils/get_result_state.ts similarity index 100% rename from src/plugins/discover/public/application/main/utils/get_result_state.ts rename to src/platform/plugins/shared/discover/public/application/main/utils/get_result_state.ts diff --git a/src/plugins/discover/public/application/main/utils/get_valid_view_mode.test.ts b/src/platform/plugins/shared/discover/public/application/main/utils/get_valid_view_mode.test.ts similarity index 100% rename from src/plugins/discover/public/application/main/utils/get_valid_view_mode.test.ts rename to src/platform/plugins/shared/discover/public/application/main/utils/get_valid_view_mode.test.ts diff --git a/src/plugins/discover/public/application/main/utils/get_valid_view_mode.ts b/src/platform/plugins/shared/discover/public/application/main/utils/get_valid_view_mode.ts similarity index 100% rename from src/plugins/discover/public/application/main/utils/get_valid_view_mode.ts rename to src/platform/plugins/shared/discover/public/application/main/utils/get_valid_view_mode.ts diff --git a/src/plugins/discover/public/application/not_found/index.ts b/src/platform/plugins/shared/discover/public/application/not_found/index.ts similarity index 100% rename from src/plugins/discover/public/application/not_found/index.ts rename to src/platform/plugins/shared/discover/public/application/not_found/index.ts diff --git a/src/plugins/discover/public/application/not_found/not_found_route.tsx b/src/platform/plugins/shared/discover/public/application/not_found/not_found_route.tsx similarity index 100% rename from src/plugins/discover/public/application/not_found/not_found_route.tsx rename to src/platform/plugins/shared/discover/public/application/not_found/not_found_route.tsx diff --git a/src/plugins/discover/public/application/types.ts b/src/platform/plugins/shared/discover/public/application/types.ts similarity index 100% rename from src/plugins/discover/public/application/types.ts rename to src/platform/plugins/shared/discover/public/application/types.ts diff --git a/src/plugins/discover/public/application/view_alert/index.ts b/src/platform/plugins/shared/discover/public/application/view_alert/index.ts similarity index 100% rename from src/plugins/discover/public/application/view_alert/index.ts rename to src/platform/plugins/shared/discover/public/application/view_alert/index.ts diff --git a/src/plugins/discover/public/application/view_alert/view_alert_route.tsx b/src/platform/plugins/shared/discover/public/application/view_alert/view_alert_route.tsx similarity index 100% rename from src/plugins/discover/public/application/view_alert/view_alert_route.tsx rename to src/platform/plugins/shared/discover/public/application/view_alert/view_alert_route.tsx diff --git a/src/plugins/discover/public/application/view_alert/view_alert_utils.tsx b/src/platform/plugins/shared/discover/public/application/view_alert/view_alert_utils.tsx similarity index 100% rename from src/plugins/discover/public/application/view_alert/view_alert_utils.tsx rename to src/platform/plugins/shared/discover/public/application/view_alert/view_alert_utils.tsx diff --git a/src/plugins/discover/public/build_services.ts b/src/platform/plugins/shared/discover/public/build_services.ts similarity index 100% rename from src/plugins/discover/public/build_services.ts rename to src/platform/plugins/shared/discover/public/build_services.ts diff --git a/src/plugins/discover/public/components/common/__snapshots__/loading_indicator.test.tsx.snap b/src/platform/plugins/shared/discover/public/components/common/__snapshots__/loading_indicator.test.tsx.snap similarity index 100% rename from src/plugins/discover/public/components/common/__snapshots__/loading_indicator.test.tsx.snap rename to src/platform/plugins/shared/discover/public/components/common/__snapshots__/loading_indicator.test.tsx.snap diff --git a/src/plugins/discover/public/components/common/error_alert.tsx b/src/platform/plugins/shared/discover/public/components/common/error_alert.tsx similarity index 100% rename from src/plugins/discover/public/components/common/error_alert.tsx rename to src/platform/plugins/shared/discover/public/components/common/error_alert.tsx diff --git a/src/plugins/discover/public/components/common/error_callout.stories.tsx b/src/platform/plugins/shared/discover/public/components/common/error_callout.stories.tsx similarity index 100% rename from src/plugins/discover/public/components/common/error_callout.stories.tsx rename to src/platform/plugins/shared/discover/public/components/common/error_callout.stories.tsx diff --git a/src/plugins/discover/public/components/common/error_callout.test.tsx b/src/platform/plugins/shared/discover/public/components/common/error_callout.test.tsx similarity index 100% rename from src/plugins/discover/public/components/common/error_callout.test.tsx rename to src/platform/plugins/shared/discover/public/components/common/error_callout.test.tsx diff --git a/src/plugins/discover/public/components/common/error_callout.tsx b/src/platform/plugins/shared/discover/public/components/common/error_callout.tsx similarity index 100% rename from src/plugins/discover/public/components/common/error_callout.tsx rename to src/platform/plugins/shared/discover/public/components/common/error_callout.tsx diff --git a/src/plugins/discover/public/components/common/loading_indicator.test.tsx b/src/platform/plugins/shared/discover/public/components/common/loading_indicator.test.tsx similarity index 100% rename from src/plugins/discover/public/components/common/loading_indicator.test.tsx rename to src/platform/plugins/shared/discover/public/components/common/loading_indicator.test.tsx diff --git a/src/plugins/discover/public/components/common/loading_indicator.tsx b/src/platform/plugins/shared/discover/public/components/common/loading_indicator.tsx similarity index 100% rename from src/plugins/discover/public/components/common/loading_indicator.tsx rename to src/platform/plugins/shared/discover/public/components/common/loading_indicator.tsx diff --git a/src/plugins/discover/public/components/data_types/logs/service_name_cell.test.tsx b/src/platform/plugins/shared/discover/public/components/data_types/logs/service_name_cell.test.tsx similarity index 100% rename from src/plugins/discover/public/components/data_types/logs/service_name_cell.test.tsx rename to src/platform/plugins/shared/discover/public/components/data_types/logs/service_name_cell.test.tsx diff --git a/src/plugins/discover/public/components/data_types/logs/service_name_cell.tsx b/src/platform/plugins/shared/discover/public/components/data_types/logs/service_name_cell.tsx similarity index 100% rename from src/plugins/discover/public/components/data_types/logs/service_name_cell.tsx rename to src/platform/plugins/shared/discover/public/components/data_types/logs/service_name_cell.tsx diff --git a/src/plugins/discover/public/components/data_types/logs/summary_column/index.tsx b/src/platform/plugins/shared/discover/public/components/data_types/logs/summary_column/index.tsx similarity index 100% rename from src/plugins/discover/public/components/data_types/logs/summary_column/index.tsx rename to src/platform/plugins/shared/discover/public/components/data_types/logs/summary_column/index.tsx diff --git a/src/plugins/discover/public/components/data_types/logs/summary_column/summary_column.tsx b/src/platform/plugins/shared/discover/public/components/data_types/logs/summary_column/summary_column.tsx similarity index 100% rename from src/plugins/discover/public/components/data_types/logs/summary_column/summary_column.tsx rename to src/platform/plugins/shared/discover/public/components/data_types/logs/summary_column/summary_column.tsx diff --git a/src/plugins/discover/public/components/discover_container/discover_container.test.tsx b/src/platform/plugins/shared/discover/public/components/discover_container/discover_container.test.tsx similarity index 100% rename from src/plugins/discover/public/components/discover_container/discover_container.test.tsx rename to src/platform/plugins/shared/discover/public/components/discover_container/discover_container.test.tsx diff --git a/src/plugins/discover/public/components/discover_container/discover_container.tsx b/src/platform/plugins/shared/discover/public/components/discover_container/discover_container.tsx similarity index 100% rename from src/plugins/discover/public/components/discover_container/discover_container.tsx rename to src/platform/plugins/shared/discover/public/components/discover_container/discover_container.tsx diff --git a/src/plugins/discover/public/components/discover_container/index.ts b/src/platform/plugins/shared/discover/public/components/discover_container/index.ts similarity index 100% rename from src/plugins/discover/public/components/discover_container/index.ts rename to src/platform/plugins/shared/discover/public/components/discover_container/index.ts diff --git a/src/plugins/discover/public/components/discover_grid/discover_grid.tsx b/src/platform/plugins/shared/discover/public/components/discover_grid/discover_grid.tsx similarity index 100% rename from src/plugins/discover/public/components/discover_grid/discover_grid.tsx rename to src/platform/plugins/shared/discover/public/components/discover_grid/discover_grid.tsx diff --git a/src/plugins/discover/public/components/discover_grid/index.ts b/src/platform/plugins/shared/discover/public/components/discover_grid/index.ts similarity index 100% rename from src/plugins/discover/public/components/discover_grid/index.ts rename to src/platform/plugins/shared/discover/public/components/discover_grid/index.ts diff --git a/src/plugins/discover/public/components/discover_grid_flyout/discover_grid_flyout.test.tsx b/src/platform/plugins/shared/discover/public/components/discover_grid_flyout/discover_grid_flyout.test.tsx similarity index 100% rename from src/plugins/discover/public/components/discover_grid_flyout/discover_grid_flyout.test.tsx rename to src/platform/plugins/shared/discover/public/components/discover_grid_flyout/discover_grid_flyout.test.tsx diff --git a/src/plugins/discover/public/components/discover_grid_flyout/discover_grid_flyout.tsx b/src/platform/plugins/shared/discover/public/components/discover_grid_flyout/discover_grid_flyout.tsx similarity index 100% rename from src/plugins/discover/public/components/discover_grid_flyout/discover_grid_flyout.tsx rename to src/platform/plugins/shared/discover/public/components/discover_grid_flyout/discover_grid_flyout.tsx diff --git a/src/plugins/discover/public/components/discover_grid_flyout/discover_grid_flyout_actions.tsx b/src/platform/plugins/shared/discover/public/components/discover_grid_flyout/discover_grid_flyout_actions.tsx similarity index 100% rename from src/plugins/discover/public/components/discover_grid_flyout/discover_grid_flyout_actions.tsx rename to src/platform/plugins/shared/discover/public/components/discover_grid_flyout/discover_grid_flyout_actions.tsx diff --git a/src/plugins/discover/public/components/discover_grid_flyout/index.ts b/src/platform/plugins/shared/discover/public/components/discover_grid_flyout/index.ts similarity index 100% rename from src/plugins/discover/public/components/discover_grid_flyout/index.ts rename to src/platform/plugins/shared/discover/public/components/discover_grid_flyout/index.ts diff --git a/src/plugins/discover/public/components/discover_grid_flyout/use_flyout_actions.tsx b/src/platform/plugins/shared/discover/public/components/discover_grid_flyout/use_flyout_actions.tsx similarity index 100% rename from src/plugins/discover/public/components/discover_grid_flyout/use_flyout_actions.tsx rename to src/platform/plugins/shared/discover/public/components/discover_grid_flyout/use_flyout_actions.tsx diff --git a/src/plugins/discover/public/components/help_menu/help_menu_util.ts b/src/platform/plugins/shared/discover/public/components/help_menu/help_menu_util.ts similarity index 100% rename from src/plugins/discover/public/components/help_menu/help_menu_util.ts rename to src/platform/plugins/shared/discover/public/components/help_menu/help_menu_util.ts diff --git a/src/plugins/discover/public/components/hits_counter/hits_counter.test.tsx b/src/platform/plugins/shared/discover/public/components/hits_counter/hits_counter.test.tsx similarity index 100% rename from src/plugins/discover/public/components/hits_counter/hits_counter.test.tsx rename to src/platform/plugins/shared/discover/public/components/hits_counter/hits_counter.test.tsx diff --git a/src/plugins/discover/public/components/hits_counter/hits_counter.tsx b/src/platform/plugins/shared/discover/public/components/hits_counter/hits_counter.tsx similarity index 100% rename from src/plugins/discover/public/components/hits_counter/hits_counter.tsx rename to src/platform/plugins/shared/discover/public/components/hits_counter/hits_counter.tsx diff --git a/src/plugins/discover/public/components/hits_counter/index.ts b/src/platform/plugins/shared/discover/public/components/hits_counter/index.ts similarity index 100% rename from src/plugins/discover/public/components/hits_counter/index.ts rename to src/platform/plugins/shared/discover/public/components/hits_counter/index.ts diff --git a/src/plugins/discover/public/components/logs_explorer_tabs/index.ts b/src/platform/plugins/shared/discover/public/components/logs_explorer_tabs/index.ts similarity index 100% rename from src/plugins/discover/public/components/logs_explorer_tabs/index.ts rename to src/platform/plugins/shared/discover/public/components/logs_explorer_tabs/index.ts diff --git a/src/plugins/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.test.tsx b/src/platform/plugins/shared/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.test.tsx similarity index 100% rename from src/plugins/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.test.tsx rename to src/platform/plugins/shared/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.test.tsx diff --git a/src/plugins/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.tsx b/src/platform/plugins/shared/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.tsx similarity index 100% rename from src/plugins/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.tsx rename to src/platform/plugins/shared/discover/public/components/logs_explorer_tabs/logs_explorer_tabs.tsx diff --git a/src/plugins/discover/public/components/panels_toggle/index.ts b/src/platform/plugins/shared/discover/public/components/panels_toggle/index.ts similarity index 100% rename from src/plugins/discover/public/components/panels_toggle/index.ts rename to src/platform/plugins/shared/discover/public/components/panels_toggle/index.ts diff --git a/src/plugins/discover/public/components/panels_toggle/panels_toggle.test.tsx b/src/platform/plugins/shared/discover/public/components/panels_toggle/panels_toggle.test.tsx similarity index 100% rename from src/plugins/discover/public/components/panels_toggle/panels_toggle.test.tsx rename to src/platform/plugins/shared/discover/public/components/panels_toggle/panels_toggle.test.tsx diff --git a/src/plugins/discover/public/components/panels_toggle/panels_toggle.tsx b/src/platform/plugins/shared/discover/public/components/panels_toggle/panels_toggle.tsx similarity index 100% rename from src/plugins/discover/public/components/panels_toggle/panels_toggle.tsx rename to src/platform/plugins/shared/discover/public/components/panels_toggle/panels_toggle.tsx diff --git a/src/plugins/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.test.tsx b/src/platform/plugins/shared/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.test.tsx similarity index 100% rename from src/plugins/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.test.tsx rename to src/platform/plugins/shared/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.test.tsx diff --git a/src/plugins/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.ts b/src/platform/plugins/shared/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.ts similarity index 100% rename from src/plugins/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.ts rename to src/platform/plugins/shared/discover/public/components/saved_search_url_conflict_callout/saved_search_url_conflict_callout.ts diff --git a/src/plugins/discover/public/components/view_mode_toggle/index.ts b/src/platform/plugins/shared/discover/public/components/view_mode_toggle/index.ts similarity index 100% rename from src/plugins/discover/public/components/view_mode_toggle/index.ts rename to src/platform/plugins/shared/discover/public/components/view_mode_toggle/index.ts diff --git a/src/plugins/discover/public/components/view_mode_toggle/view_mode_toggle.test.tsx b/src/platform/plugins/shared/discover/public/components/view_mode_toggle/view_mode_toggle.test.tsx similarity index 100% rename from src/plugins/discover/public/components/view_mode_toggle/view_mode_toggle.test.tsx rename to src/platform/plugins/shared/discover/public/components/view_mode_toggle/view_mode_toggle.test.tsx diff --git a/src/plugins/discover/public/components/view_mode_toggle/view_mode_toggle.tsx b/src/platform/plugins/shared/discover/public/components/view_mode_toggle/view_mode_toggle.tsx similarity index 100% rename from src/plugins/discover/public/components/view_mode_toggle/view_mode_toggle.tsx rename to src/platform/plugins/shared/discover/public/components/view_mode_toggle/view_mode_toggle.tsx diff --git a/src/plugins/discover/public/constants.ts b/src/platform/plugins/shared/discover/public/constants.ts similarity index 100% rename from src/plugins/discover/public/constants.ts rename to src/platform/plugins/shared/discover/public/constants.ts diff --git a/src/plugins/discover/public/context_awareness/README.md b/src/platform/plugins/shared/discover/public/context_awareness/README.md similarity index 98% rename from src/plugins/discover/public/context_awareness/README.md rename to src/platform/plugins/shared/discover/public/context_awareness/README.md index ae42038b77aa3..34ea19891d7b9 100644 --- a/src/plugins/discover/public/context_awareness/README.md +++ b/src/platform/plugins/shared/discover/public/context_awareness/README.md @@ -86,7 +86,7 @@ This means that in an ideal situation, the code for Discover profiles should eit - When adding solution specific code directly to the Discover codebase, it should be done in an organized way in order to support shared ownership. For example, the [`profile_providers/security`](./profile_providers/security) folder contains code specific to Security Solution maintained profiles, and an override has been added to the [`CODEOWNERS`](/.github/CODEOWNERS) file to reflect the shared ownership of this folder. - When creating a dedicated package for some profile code, the maintaining team can retain full ownership over the package, and Discover is only responsible for importing the functionality and adding it to the associated profile registration. -There are situations where neither of the above two options are viable, such as when migrating large pieces of functionality from a solution plugin to a Discover profile, which could be time consuming and involve moving huge amounts of code to packages. For these situations, there's a [discover_shared](/src/plugins/discover_shared) plugin specifically to support inversion of control for Discover profile features (see the [`README`](/src/plugins/discover_shared/README.md) for more details). +There are situations where neither of the above two options are viable, such as when migrating large pieces of functionality from a solution plugin to a Discover profile, which could be time consuming and involve moving huge amounts of code to packages. For these situations, there's a [discover_shared](/src/platform/plugins/shared/discover_shared) plugin specifically to support inversion of control for Discover profile features (see the [`README`](/src/platform/plugins/shared/discover_shared/README.md) for more details). By ensuring all Discover profiles use the same IoC mechanism, changes or improvements to the system can be centralized, and areas that use it can easily be located. In general, this should be used as a last resort when the benefits of importing directly from packages aren't worth the effort to migrate the code, and ideally teams who use it should have a plan to later refactor the code into packages. @@ -115,8 +115,8 @@ import React from 'react'; import { getFieldValue } from '@kbn/discover-utils'; import { isOfAggregateQueryType } from '@kbn/es-query'; import { getIndexPatternFromESQLQuery } from '@kbn/esql-utils'; -import { DataSourceType, isDataSourceType } from '../../../../../common/data_sources'; -import { DataSourceCategory, DataSourceProfileProvider } from '../../../profiles'; +import { DataSourceType, isDataSourceType } from '../../../../../../../common/data_sources'; +import { DataSourceCategory, DataSourceProfileProvider } from '../../../../../profiles'; import { ProfileProviderServices } from '../../profile_provider_services'; // Export profile provider factory function, optionally accepting ProfileProviderServices, diff --git a/src/plugins/discover/public/context_awareness/__mocks__/index.tsx b/src/platform/plugins/shared/discover/public/context_awareness/__mocks__/index.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/__mocks__/index.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/__mocks__/index.tsx diff --git a/src/plugins/discover/public/context_awareness/composable_profile.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/composable_profile.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/composable_profile.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/composable_profile.test.ts diff --git a/src/plugins/discover/public/context_awareness/composable_profile.ts b/src/platform/plugins/shared/discover/public/context_awareness/composable_profile.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/composable_profile.ts rename to src/platform/plugins/shared/discover/public/context_awareness/composable_profile.ts diff --git a/src/plugins/discover/public/context_awareness/docs/architecture.png b/src/platform/plugins/shared/discover/public/context_awareness/docs/architecture.png similarity index 100% rename from src/plugins/discover/public/context_awareness/docs/architecture.png rename to src/platform/plugins/shared/discover/public/context_awareness/docs/architecture.png diff --git a/src/plugins/discover/public/context_awareness/docs/merged_accessors.png b/src/platform/plugins/shared/discover/public/context_awareness/docs/merged_accessors.png similarity index 100% rename from src/plugins/discover/public/context_awareness/docs/merged_accessors.png rename to src/platform/plugins/shared/discover/public/context_awareness/docs/merged_accessors.png diff --git a/src/plugins/discover/public/context_awareness/hooks/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/hooks/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/hooks/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/hooks/index.ts diff --git a/src/plugins/discover/public/context_awareness/hooks/use_additional_cell_actions.test.tsx b/src/platform/plugins/shared/discover/public/context_awareness/hooks/use_additional_cell_actions.test.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/hooks/use_additional_cell_actions.test.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/hooks/use_additional_cell_actions.test.tsx diff --git a/src/plugins/discover/public/context_awareness/hooks/use_additional_cell_actions.ts b/src/platform/plugins/shared/discover/public/context_awareness/hooks/use_additional_cell_actions.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/hooks/use_additional_cell_actions.ts rename to src/platform/plugins/shared/discover/public/context_awareness/hooks/use_additional_cell_actions.ts diff --git a/src/plugins/discover/public/context_awareness/hooks/use_profile_accessor.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/hooks/use_profile_accessor.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/hooks/use_profile_accessor.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/hooks/use_profile_accessor.test.ts diff --git a/src/plugins/discover/public/context_awareness/hooks/use_profile_accessor.ts b/src/platform/plugins/shared/discover/public/context_awareness/hooks/use_profile_accessor.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/hooks/use_profile_accessor.ts rename to src/platform/plugins/shared/discover/public/context_awareness/hooks/use_profile_accessor.ts diff --git a/src/plugins/discover/public/context_awareness/hooks/use_profiles.test.tsx b/src/platform/plugins/shared/discover/public/context_awareness/hooks/use_profiles.test.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/hooks/use_profiles.test.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/hooks/use_profiles.test.tsx diff --git a/src/plugins/discover/public/context_awareness/hooks/use_profiles.ts b/src/platform/plugins/shared/discover/public/context_awareness/hooks/use_profiles.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/hooks/use_profiles.ts rename to src/platform/plugins/shared/discover/public/context_awareness/hooks/use_profiles.ts diff --git a/src/plugins/discover/public/context_awareness/hooks/use_root_profile.test.tsx b/src/platform/plugins/shared/discover/public/context_awareness/hooks/use_root_profile.test.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/hooks/use_root_profile.test.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/hooks/use_root_profile.test.tsx diff --git a/src/plugins/discover/public/context_awareness/hooks/use_root_profile.tsx b/src/platform/plugins/shared/discover/public/context_awareness/hooks/use_root_profile.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/hooks/use_root_profile.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/hooks/use_root_profile.tsx diff --git a/src/plugins/discover/public/context_awareness/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/consts.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/common/deprecation_logs/consts.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/consts.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/common/deprecation_logs/consts.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/common/deprecation_logs/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/common/deprecation_logs/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/example/example_context.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_context.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/example/example_context.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_context.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/example/example_data_source_profile/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_data_source_profile/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/example/example_data_source_profile/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_data_source_profile/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx diff --git a/src/plugins/discover/public/context_awareness/profile_providers/example/example_document_profile/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_document_profile/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/example/example_document_profile/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_document_profile/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/example/example_document_profile/profile.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_document_profile/profile.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/example/example_document_profile/profile.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_document_profile/profile.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/example/example_root_profile/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_root_profile/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/example/example_root_profile/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_root_profile/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/example/example_root_profile/profile.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_root_profile/profile.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/example/example_root_profile/profile.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/example/example_root_profile/profile.tsx diff --git a/src/plugins/discover/public/context_awareness/profile_providers/extend_profile_provider.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/extend_profile_provider.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/extend_profile_provider.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/extend_profile_provider.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/extend_profile_provider.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/extend_profile_provider.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/extend_profile_provider.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/extend_profile_provider.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/extract_index_pattern_from.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/extract_index_pattern_from.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/extract_index_pattern_from.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/extract_index_pattern_from.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/extract_index_pattern_from.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/extract_index_pattern_from.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/extract_index_pattern_from.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/extract_index_pattern_from.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/consts.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/consts.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/consts.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/consts.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/get_doc_viewer.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/get_doc_viewer.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/get_doc_viewer.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/get_doc_viewer.tsx diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/accessors/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/log_document_profile/profile.tsx diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_cell_renderers.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_cell_renderers.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_cell_renderers.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_cell_renderers.tsx diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_default_app_state.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_default_app_state.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_default_app_state.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_default_app_state.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_additional_leading_controls.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_additional_leading_controls.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_additional_leading_controls.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_additional_leading_controls.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_indicator_provider.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_indicator_provider.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_indicator_provider.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/get_row_indicator_provider.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/accessors/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/consts.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/consts.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/consts.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/consts.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/create_profile_providers.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/create_profile_providers.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/create_profile_providers.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/create_profile_providers.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/profile.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/apache_error_logs.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/aws_s3access_logs.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/create_resolve.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/kubernetes_container_logs.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_access_logs.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/nginx_error_logs.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/system_logs.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/logs_data_source_profile/sub_profiles/windows_logs.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/get_app_menu.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/get_app_menu.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/get_app_menu.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/get_app_menu.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/accessors/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/observability/observability_root_profile/profile.tsx diff --git a/src/plugins/discover/public/context_awareness/profile_providers/profile_provider_services.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/profile_provider_services.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/profile_provider_services.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/profile_provider_services.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/register_profile_providers.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/register_profile_providers.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/register_profile_providers.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/register_profile_providers.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/register_profile_providers.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/register_profile_providers.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/register_profile_providers.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/register_profile_providers.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/security/accessors/create_app_wrapper_accessor.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/accessors/create_app_wrapper_accessor.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/security/accessors/create_app_wrapper_accessor.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/accessors/create_app_wrapper_accessor.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.test.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.test.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.test.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.test.tsx diff --git a/src/plugins/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/accessors/get_cell_renderer_accessor.tsx diff --git a/src/plugins/discover/public/context_awareness/profile_providers/security/security_root_profile/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/security_root_profile/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/security/security_root_profile/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/security_root_profile/index.ts diff --git a/src/plugins/discover/public/context_awareness/profile_providers/security/security_root_profile/profile.tsx b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/security_root_profile/profile.tsx similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/security/security_root_profile/profile.tsx rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/security_root_profile/profile.tsx diff --git a/src/plugins/discover/public/context_awareness/profile_providers/security/types.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/types.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_providers/security/types.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_providers/security/types.ts diff --git a/src/plugins/discover/public/context_awareness/profile_service.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_service.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_service.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_service.test.ts diff --git a/src/plugins/discover/public/context_awareness/profile_service.ts b/src/platform/plugins/shared/discover/public/context_awareness/profile_service.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profile_service.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profile_service.ts diff --git a/src/plugins/discover/public/context_awareness/profiles/data_source_profile.ts b/src/platform/plugins/shared/discover/public/context_awareness/profiles/data_source_profile.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profiles/data_source_profile.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profiles/data_source_profile.ts diff --git a/src/plugins/discover/public/context_awareness/profiles/document_profile.ts b/src/platform/plugins/shared/discover/public/context_awareness/profiles/document_profile.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profiles/document_profile.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profiles/document_profile.ts diff --git a/src/plugins/discover/public/context_awareness/profiles/index.ts b/src/platform/plugins/shared/discover/public/context_awareness/profiles/index.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profiles/index.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profiles/index.ts diff --git a/src/plugins/discover/public/context_awareness/profiles/root_profile.ts b/src/platform/plugins/shared/discover/public/context_awareness/profiles/root_profile.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profiles/root_profile.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profiles/root_profile.ts diff --git a/src/plugins/discover/public/context_awareness/profiles_manager.test.ts b/src/platform/plugins/shared/discover/public/context_awareness/profiles_manager.test.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profiles_manager.test.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profiles_manager.test.ts diff --git a/src/plugins/discover/public/context_awareness/profiles_manager.ts b/src/platform/plugins/shared/discover/public/context_awareness/profiles_manager.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/profiles_manager.ts rename to src/platform/plugins/shared/discover/public/context_awareness/profiles_manager.ts diff --git a/src/plugins/discover/public/context_awareness/types.ts b/src/platform/plugins/shared/discover/public/context_awareness/types.ts similarity index 100% rename from src/plugins/discover/public/context_awareness/types.ts rename to src/platform/plugins/shared/discover/public/context_awareness/types.ts diff --git a/src/plugins/discover/public/customizations/__mocks__/customization_context.ts b/src/platform/plugins/shared/discover/public/customizations/__mocks__/customization_context.ts similarity index 100% rename from src/plugins/discover/public/customizations/__mocks__/customization_context.ts rename to src/platform/plugins/shared/discover/public/customizations/__mocks__/customization_context.ts diff --git a/src/plugins/discover/public/customizations/customization_provider.test.tsx b/src/platform/plugins/shared/discover/public/customizations/customization_provider.test.tsx similarity index 100% rename from src/plugins/discover/public/customizations/customization_provider.test.tsx rename to src/platform/plugins/shared/discover/public/customizations/customization_provider.test.tsx diff --git a/src/plugins/discover/public/customizations/customization_provider.ts b/src/platform/plugins/shared/discover/public/customizations/customization_provider.ts similarity index 100% rename from src/plugins/discover/public/customizations/customization_provider.ts rename to src/platform/plugins/shared/discover/public/customizations/customization_provider.ts diff --git a/src/plugins/discover/public/customizations/customization_service.test.ts b/src/platform/plugins/shared/discover/public/customizations/customization_service.test.ts similarity index 100% rename from src/plugins/discover/public/customizations/customization_service.test.ts rename to src/platform/plugins/shared/discover/public/customizations/customization_service.test.ts diff --git a/src/plugins/discover/public/customizations/customization_service.ts b/src/platform/plugins/shared/discover/public/customizations/customization_service.ts similarity index 100% rename from src/plugins/discover/public/customizations/customization_service.ts rename to src/platform/plugins/shared/discover/public/customizations/customization_service.ts diff --git a/src/plugins/discover/public/customizations/customization_types/data_table_customisation.ts b/src/platform/plugins/shared/discover/public/customizations/customization_types/data_table_customisation.ts similarity index 100% rename from src/plugins/discover/public/customizations/customization_types/data_table_customisation.ts rename to src/platform/plugins/shared/discover/public/customizations/customization_types/data_table_customisation.ts diff --git a/src/plugins/discover/public/customizations/customization_types/field_list_customisation.ts b/src/platform/plugins/shared/discover/public/customizations/customization_types/field_list_customisation.ts similarity index 100% rename from src/plugins/discover/public/customizations/customization_types/field_list_customisation.ts rename to src/platform/plugins/shared/discover/public/customizations/customization_types/field_list_customisation.ts diff --git a/src/plugins/discover/public/customizations/customization_types/flyout_customization.ts b/src/platform/plugins/shared/discover/public/customizations/customization_types/flyout_customization.ts similarity index 100% rename from src/plugins/discover/public/customizations/customization_types/flyout_customization.ts rename to src/platform/plugins/shared/discover/public/customizations/customization_types/flyout_customization.ts diff --git a/src/plugins/discover/public/customizations/customization_types/histogram_customization.tsx b/src/platform/plugins/shared/discover/public/customizations/customization_types/histogram_customization.tsx similarity index 100% rename from src/plugins/discover/public/customizations/customization_types/histogram_customization.tsx rename to src/platform/plugins/shared/discover/public/customizations/customization_types/histogram_customization.tsx diff --git a/src/plugins/discover/public/customizations/customization_types/index.ts b/src/platform/plugins/shared/discover/public/customizations/customization_types/index.ts similarity index 100% rename from src/plugins/discover/public/customizations/customization_types/index.ts rename to src/platform/plugins/shared/discover/public/customizations/customization_types/index.ts diff --git a/src/plugins/discover/public/customizations/customization_types/search_bar_customization.ts b/src/platform/plugins/shared/discover/public/customizations/customization_types/search_bar_customization.ts similarity index 100% rename from src/plugins/discover/public/customizations/customization_types/search_bar_customization.ts rename to src/platform/plugins/shared/discover/public/customizations/customization_types/search_bar_customization.ts diff --git a/src/plugins/discover/public/customizations/customization_types/top_nav_customization.ts b/src/platform/plugins/shared/discover/public/customizations/customization_types/top_nav_customization.ts similarity index 100% rename from src/plugins/discover/public/customizations/customization_types/top_nav_customization.ts rename to src/platform/plugins/shared/discover/public/customizations/customization_types/top_nav_customization.ts diff --git a/src/plugins/discover/public/customizations/defaults.ts b/src/platform/plugins/shared/discover/public/customizations/defaults.ts similarity index 100% rename from src/plugins/discover/public/customizations/defaults.ts rename to src/platform/plugins/shared/discover/public/customizations/defaults.ts diff --git a/src/plugins/discover/public/customizations/index.ts b/src/platform/plugins/shared/discover/public/customizations/index.ts similarity index 100% rename from src/plugins/discover/public/customizations/index.ts rename to src/platform/plugins/shared/discover/public/customizations/index.ts diff --git a/src/plugins/discover/public/customizations/types.ts b/src/platform/plugins/shared/discover/public/customizations/types.ts similarity index 100% rename from src/plugins/discover/public/customizations/types.ts rename to src/platform/plugins/shared/discover/public/customizations/types.ts diff --git a/src/plugins/discover/public/embeddable/__mocks__/get_mocked_api.ts b/src/platform/plugins/shared/discover/public/embeddable/__mocks__/get_mocked_api.ts similarity index 100% rename from src/plugins/discover/public/embeddable/__mocks__/get_mocked_api.ts rename to src/platform/plugins/shared/discover/public/embeddable/__mocks__/get_mocked_api.ts diff --git a/src/plugins/discover/public/embeddable/actions/view_saved_search_action.test.ts b/src/platform/plugins/shared/discover/public/embeddable/actions/view_saved_search_action.test.ts similarity index 100% rename from src/plugins/discover/public/embeddable/actions/view_saved_search_action.test.ts rename to src/platform/plugins/shared/discover/public/embeddable/actions/view_saved_search_action.test.ts diff --git a/src/plugins/discover/public/embeddable/actions/view_saved_search_action.ts b/src/platform/plugins/shared/discover/public/embeddable/actions/view_saved_search_action.ts similarity index 100% rename from src/plugins/discover/public/embeddable/actions/view_saved_search_action.ts rename to src/platform/plugins/shared/discover/public/embeddable/actions/view_saved_search_action.ts diff --git a/src/plugins/discover/public/embeddable/actions/view_saved_search_compatibility_check.ts b/src/platform/plugins/shared/discover/public/embeddable/actions/view_saved_search_compatibility_check.ts similarity index 100% rename from src/plugins/discover/public/embeddable/actions/view_saved_search_compatibility_check.ts rename to src/platform/plugins/shared/discover/public/embeddable/actions/view_saved_search_compatibility_check.ts diff --git a/src/plugins/discover/public/embeddable/components/saved_search_embeddable_base.tsx b/src/platform/plugins/shared/discover/public/embeddable/components/saved_search_embeddable_base.tsx similarity index 100% rename from src/plugins/discover/public/embeddable/components/saved_search_embeddable_base.tsx rename to src/platform/plugins/shared/discover/public/embeddable/components/saved_search_embeddable_base.tsx diff --git a/src/plugins/discover/public/embeddable/components/saved_search_grid.scss b/src/platform/plugins/shared/discover/public/embeddable/components/saved_search_grid.scss similarity index 100% rename from src/plugins/discover/public/embeddable/components/saved_search_grid.scss rename to src/platform/plugins/shared/discover/public/embeddable/components/saved_search_grid.scss diff --git a/src/plugins/discover/public/embeddable/components/saved_search_grid.tsx b/src/platform/plugins/shared/discover/public/embeddable/components/saved_search_grid.tsx similarity index 100% rename from src/plugins/discover/public/embeddable/components/saved_search_grid.tsx rename to src/platform/plugins/shared/discover/public/embeddable/components/saved_search_grid.tsx diff --git a/src/plugins/discover/public/embeddable/components/search_embeddable_field_stats_table_component.tsx b/src/platform/plugins/shared/discover/public/embeddable/components/search_embeddable_field_stats_table_component.tsx similarity index 100% rename from src/plugins/discover/public/embeddable/components/search_embeddable_field_stats_table_component.tsx rename to src/platform/plugins/shared/discover/public/embeddable/components/search_embeddable_field_stats_table_component.tsx diff --git a/src/plugins/discover/public/embeddable/components/search_embeddable_grid_component.tsx b/src/platform/plugins/shared/discover/public/embeddable/components/search_embeddable_grid_component.tsx similarity index 100% rename from src/plugins/discover/public/embeddable/components/search_embeddable_grid_component.tsx rename to src/platform/plugins/shared/discover/public/embeddable/components/search_embeddable_grid_component.tsx diff --git a/src/plugins/discover/public/embeddable/constants.ts b/src/platform/plugins/shared/discover/public/embeddable/constants.ts similarity index 100% rename from src/plugins/discover/public/embeddable/constants.ts rename to src/platform/plugins/shared/discover/public/embeddable/constants.ts diff --git a/src/plugins/discover/public/embeddable/get_search_embeddable_defaults.ts b/src/platform/plugins/shared/discover/public/embeddable/get_search_embeddable_defaults.ts similarity index 100% rename from src/plugins/discover/public/embeddable/get_search_embeddable_defaults.ts rename to src/platform/plugins/shared/discover/public/embeddable/get_search_embeddable_defaults.ts diff --git a/src/plugins/discover/public/embeddable/get_search_embeddable_factory.test.tsx b/src/platform/plugins/shared/discover/public/embeddable/get_search_embeddable_factory.test.tsx similarity index 100% rename from src/plugins/discover/public/embeddable/get_search_embeddable_factory.test.tsx rename to src/platform/plugins/shared/discover/public/embeddable/get_search_embeddable_factory.test.tsx diff --git a/src/plugins/discover/public/embeddable/get_search_embeddable_factory.tsx b/src/platform/plugins/shared/discover/public/embeddable/get_search_embeddable_factory.tsx similarity index 100% rename from src/plugins/discover/public/embeddable/get_search_embeddable_factory.tsx rename to src/platform/plugins/shared/discover/public/embeddable/get_search_embeddable_factory.tsx diff --git a/src/plugins/discover/public/embeddable/index.ts b/src/platform/plugins/shared/discover/public/embeddable/index.ts similarity index 100% rename from src/plugins/discover/public/embeddable/index.ts rename to src/platform/plugins/shared/discover/public/embeddable/index.ts diff --git a/src/plugins/discover/public/embeddable/initialize_edit_api.test.ts b/src/platform/plugins/shared/discover/public/embeddable/initialize_edit_api.test.ts similarity index 100% rename from src/plugins/discover/public/embeddable/initialize_edit_api.test.ts rename to src/platform/plugins/shared/discover/public/embeddable/initialize_edit_api.test.ts diff --git a/src/plugins/discover/public/embeddable/initialize_edit_api.ts b/src/platform/plugins/shared/discover/public/embeddable/initialize_edit_api.ts similarity index 100% rename from src/plugins/discover/public/embeddable/initialize_edit_api.ts rename to src/platform/plugins/shared/discover/public/embeddable/initialize_edit_api.ts diff --git a/src/plugins/discover/public/embeddable/initialize_fetch.test.ts b/src/platform/plugins/shared/discover/public/embeddable/initialize_fetch.test.ts similarity index 100% rename from src/plugins/discover/public/embeddable/initialize_fetch.test.ts rename to src/platform/plugins/shared/discover/public/embeddable/initialize_fetch.test.ts diff --git a/src/plugins/discover/public/embeddable/initialize_fetch.ts b/src/platform/plugins/shared/discover/public/embeddable/initialize_fetch.ts similarity index 100% rename from src/plugins/discover/public/embeddable/initialize_fetch.ts rename to src/platform/plugins/shared/discover/public/embeddable/initialize_fetch.ts diff --git a/src/plugins/discover/public/embeddable/initialize_search_embeddable_api.tsx b/src/platform/plugins/shared/discover/public/embeddable/initialize_search_embeddable_api.tsx similarity index 100% rename from src/plugins/discover/public/embeddable/initialize_search_embeddable_api.tsx rename to src/platform/plugins/shared/discover/public/embeddable/initialize_search_embeddable_api.tsx diff --git a/src/plugins/discover/public/embeddable/types.ts b/src/platform/plugins/shared/discover/public/embeddable/types.ts similarity index 100% rename from src/plugins/discover/public/embeddable/types.ts rename to src/platform/plugins/shared/discover/public/embeddable/types.ts diff --git a/src/plugins/discover/public/embeddable/utils/get_discover_locator_params.test.ts b/src/platform/plugins/shared/discover/public/embeddable/utils/get_discover_locator_params.test.ts similarity index 100% rename from src/plugins/discover/public/embeddable/utils/get_discover_locator_params.test.ts rename to src/platform/plugins/shared/discover/public/embeddable/utils/get_discover_locator_params.test.ts diff --git a/src/plugins/discover/public/embeddable/utils/get_discover_locator_params.ts b/src/platform/plugins/shared/discover/public/embeddable/utils/get_discover_locator_params.ts similarity index 100% rename from src/plugins/discover/public/embeddable/utils/get_discover_locator_params.ts rename to src/platform/plugins/shared/discover/public/embeddable/utils/get_discover_locator_params.ts diff --git a/src/plugins/discover/public/embeddable/utils/serialization_utils.test.ts b/src/platform/plugins/shared/discover/public/embeddable/utils/serialization_utils.test.ts similarity index 100% rename from src/plugins/discover/public/embeddable/utils/serialization_utils.test.ts rename to src/platform/plugins/shared/discover/public/embeddable/utils/serialization_utils.test.ts diff --git a/src/plugins/discover/public/embeddable/utils/serialization_utils.ts b/src/platform/plugins/shared/discover/public/embeddable/utils/serialization_utils.ts similarity index 100% rename from src/plugins/discover/public/embeddable/utils/serialization_utils.ts rename to src/platform/plugins/shared/discover/public/embeddable/utils/serialization_utils.ts diff --git a/src/plugins/discover/public/embeddable/utils/update_search_source.test.ts b/src/platform/plugins/shared/discover/public/embeddable/utils/update_search_source.test.ts similarity index 100% rename from src/plugins/discover/public/embeddable/utils/update_search_source.test.ts rename to src/platform/plugins/shared/discover/public/embeddable/utils/update_search_source.test.ts diff --git a/src/plugins/discover/public/embeddable/utils/update_search_source.ts b/src/platform/plugins/shared/discover/public/embeddable/utils/update_search_source.ts similarity index 100% rename from src/plugins/discover/public/embeddable/utils/update_search_source.ts rename to src/platform/plugins/shared/discover/public/embeddable/utils/update_search_source.ts diff --git a/src/plugins/discover/public/global_search/search_provider.test.ts b/src/platform/plugins/shared/discover/public/global_search/search_provider.test.ts similarity index 100% rename from src/plugins/discover/public/global_search/search_provider.test.ts rename to src/platform/plugins/shared/discover/public/global_search/search_provider.test.ts diff --git a/src/plugins/discover/public/global_search/search_provider.ts b/src/platform/plugins/shared/discover/public/global_search/search_provider.ts similarity index 100% rename from src/plugins/discover/public/global_search/search_provider.ts rename to src/platform/plugins/shared/discover/public/global_search/search_provider.ts diff --git a/src/plugins/discover/public/history_service.ts b/src/platform/plugins/shared/discover/public/history_service.ts similarity index 100% rename from src/plugins/discover/public/history_service.ts rename to src/platform/plugins/shared/discover/public/history_service.ts diff --git a/src/plugins/discover/public/hooks/saved_search_alias_match_redirect.test.ts b/src/platform/plugins/shared/discover/public/hooks/saved_search_alias_match_redirect.test.ts similarity index 100% rename from src/plugins/discover/public/hooks/saved_search_alias_match_redirect.test.ts rename to src/platform/plugins/shared/discover/public/hooks/saved_search_alias_match_redirect.test.ts diff --git a/src/plugins/discover/public/hooks/saved_search_alias_match_redirect.ts b/src/platform/plugins/shared/discover/public/hooks/saved_search_alias_match_redirect.ts similarity index 100% rename from src/plugins/discover/public/hooks/saved_search_alias_match_redirect.ts rename to src/platform/plugins/shared/discover/public/hooks/saved_search_alias_match_redirect.ts diff --git a/src/plugins/discover/public/hooks/use_data_view.test.tsx b/src/platform/plugins/shared/discover/public/hooks/use_data_view.test.tsx similarity index 100% rename from src/plugins/discover/public/hooks/use_data_view.test.tsx rename to src/platform/plugins/shared/discover/public/hooks/use_data_view.test.tsx diff --git a/src/plugins/discover/public/hooks/use_data_view.tsx b/src/platform/plugins/shared/discover/public/hooks/use_data_view.tsx similarity index 100% rename from src/plugins/discover/public/hooks/use_data_view.tsx rename to src/platform/plugins/shared/discover/public/hooks/use_data_view.tsx diff --git a/src/plugins/discover/public/hooks/use_discover_services.ts b/src/platform/plugins/shared/discover/public/hooks/use_discover_services.ts similarity index 100% rename from src/plugins/discover/public/hooks/use_discover_services.ts rename to src/platform/plugins/shared/discover/public/hooks/use_discover_services.ts diff --git a/src/plugins/discover/public/hooks/use_navigation_props.test.tsx b/src/platform/plugins/shared/discover/public/hooks/use_navigation_props.test.tsx similarity index 100% rename from src/plugins/discover/public/hooks/use_navigation_props.test.tsx rename to src/platform/plugins/shared/discover/public/hooks/use_navigation_props.test.tsx diff --git a/src/plugins/discover/public/hooks/use_navigation_props.tsx b/src/platform/plugins/shared/discover/public/hooks/use_navigation_props.tsx similarity index 100% rename from src/plugins/discover/public/hooks/use_navigation_props.tsx rename to src/platform/plugins/shared/discover/public/hooks/use_navigation_props.tsx diff --git a/src/plugins/discover/public/index.ts b/src/platform/plugins/shared/discover/public/index.ts similarity index 100% rename from src/plugins/discover/public/index.ts rename to src/platform/plugins/shared/discover/public/index.ts diff --git a/src/plugins/discover/public/mocks.tsx b/src/platform/plugins/shared/discover/public/mocks.tsx similarity index 100% rename from src/plugins/discover/public/mocks.tsx rename to src/platform/plugins/shared/discover/public/mocks.tsx diff --git a/src/plugins/discover/public/plugin.tsx b/src/platform/plugins/shared/discover/public/plugin.tsx similarity index 100% rename from src/plugins/discover/public/plugin.tsx rename to src/platform/plugins/shared/discover/public/plugin.tsx diff --git a/src/plugins/discover/public/register_feature.ts b/src/platform/plugins/shared/discover/public/register_feature.ts similarity index 100% rename from src/plugins/discover/public/register_feature.ts rename to src/platform/plugins/shared/discover/public/register_feature.ts diff --git a/src/plugins/discover/public/services/discover_ebt_manager.test.ts b/src/platform/plugins/shared/discover/public/services/discover_ebt_manager.test.ts similarity index 100% rename from src/plugins/discover/public/services/discover_ebt_manager.test.ts rename to src/platform/plugins/shared/discover/public/services/discover_ebt_manager.test.ts diff --git a/src/plugins/discover/public/services/discover_ebt_manager.ts b/src/platform/plugins/shared/discover/public/services/discover_ebt_manager.ts similarity index 100% rename from src/plugins/discover/public/services/discover_ebt_manager.ts rename to src/platform/plugins/shared/discover/public/services/discover_ebt_manager.ts diff --git a/src/plugins/discover/public/services/saved_searches/restore_from_saved_search.test.ts b/src/platform/plugins/shared/discover/public/services/saved_searches/restore_from_saved_search.test.ts similarity index 100% rename from src/plugins/discover/public/services/saved_searches/restore_from_saved_search.test.ts rename to src/platform/plugins/shared/discover/public/services/saved_searches/restore_from_saved_search.test.ts diff --git a/src/plugins/discover/public/services/saved_searches/restore_from_saved_search.ts b/src/platform/plugins/shared/discover/public/services/saved_searches/restore_from_saved_search.ts similarity index 100% rename from src/plugins/discover/public/services/saved_searches/restore_from_saved_search.ts rename to src/platform/plugins/shared/discover/public/services/saved_searches/restore_from_saved_search.ts diff --git a/src/plugins/discover/public/types.ts b/src/platform/plugins/shared/discover/public/types.ts similarity index 100% rename from src/plugins/discover/public/types.ts rename to src/platform/plugins/shared/discover/public/types.ts diff --git a/src/plugins/discover/public/utils/add_log.ts b/src/platform/plugins/shared/discover/public/utils/add_log.ts similarity index 100% rename from src/plugins/discover/public/utils/add_log.ts rename to src/platform/plugins/shared/discover/public/utils/add_log.ts diff --git a/src/plugins/discover/public/utils/breadcrumbs.test.ts b/src/platform/plugins/shared/discover/public/utils/breadcrumbs.test.ts similarity index 100% rename from src/plugins/discover/public/utils/breadcrumbs.test.ts rename to src/platform/plugins/shared/discover/public/utils/breadcrumbs.test.ts diff --git a/src/plugins/discover/public/utils/breadcrumbs.ts b/src/platform/plugins/shared/discover/public/utils/breadcrumbs.ts similarity index 100% rename from src/plugins/discover/public/utils/breadcrumbs.ts rename to src/platform/plugins/shared/discover/public/utils/breadcrumbs.ts diff --git a/src/plugins/discover/public/utils/get_allowed_sample_size.test.ts b/src/platform/plugins/shared/discover/public/utils/get_allowed_sample_size.test.ts similarity index 100% rename from src/plugins/discover/public/utils/get_allowed_sample_size.test.ts rename to src/platform/plugins/shared/discover/public/utils/get_allowed_sample_size.test.ts diff --git a/src/plugins/discover/public/utils/get_allowed_sample_size.ts b/src/platform/plugins/shared/discover/public/utils/get_allowed_sample_size.ts similarity index 100% rename from src/plugins/discover/public/utils/get_allowed_sample_size.ts rename to src/platform/plugins/shared/discover/public/utils/get_allowed_sample_size.ts diff --git a/src/plugins/discover/public/utils/get_sharing_data.test.ts b/src/platform/plugins/shared/discover/public/utils/get_sharing_data.test.ts similarity index 100% rename from src/plugins/discover/public/utils/get_sharing_data.test.ts rename to src/platform/plugins/shared/discover/public/utils/get_sharing_data.test.ts diff --git a/src/plugins/discover/public/utils/get_sharing_data.ts b/src/platform/plugins/shared/discover/public/utils/get_sharing_data.ts similarity index 100% rename from src/plugins/discover/public/utils/get_sharing_data.ts rename to src/platform/plugins/shared/discover/public/utils/get_sharing_data.ts diff --git a/src/plugins/discover/public/utils/get_valid_filters.test.ts b/src/platform/plugins/shared/discover/public/utils/get_valid_filters.test.ts similarity index 100% rename from src/plugins/discover/public/utils/get_valid_filters.test.ts rename to src/platform/plugins/shared/discover/public/utils/get_valid_filters.test.ts diff --git a/src/plugins/discover/public/utils/get_valid_filters.ts b/src/platform/plugins/shared/discover/public/utils/get_valid_filters.ts similarity index 100% rename from src/plugins/discover/public/utils/get_valid_filters.ts rename to src/platform/plugins/shared/discover/public/utils/get_valid_filters.ts diff --git a/src/plugins/discover/public/utils/index.ts b/src/platform/plugins/shared/discover/public/utils/index.ts similarity index 100% rename from src/plugins/discover/public/utils/index.ts rename to src/platform/plugins/shared/discover/public/utils/index.ts diff --git a/src/plugins/discover/public/utils/initialize_kbn_url_tracking.test.ts b/src/platform/plugins/shared/discover/public/utils/initialize_kbn_url_tracking.test.ts similarity index 100% rename from src/plugins/discover/public/utils/initialize_kbn_url_tracking.test.ts rename to src/platform/plugins/shared/discover/public/utils/initialize_kbn_url_tracking.test.ts diff --git a/src/plugins/discover/public/utils/initialize_kbn_url_tracking.ts b/src/platform/plugins/shared/discover/public/utils/initialize_kbn_url_tracking.ts similarity index 100% rename from src/plugins/discover/public/utils/initialize_kbn_url_tracking.ts rename to src/platform/plugins/shared/discover/public/utils/initialize_kbn_url_tracking.ts diff --git a/src/plugins/discover/public/utils/migrate_legacy_query.ts b/src/platform/plugins/shared/discover/public/utils/migrate_legacy_query.ts similarity index 100% rename from src/plugins/discover/public/utils/migrate_legacy_query.ts rename to src/platform/plugins/shared/discover/public/utils/migrate_legacy_query.ts diff --git a/src/plugins/discover/public/utils/on_resize_grid_column.test.tsx b/src/platform/plugins/shared/discover/public/utils/on_resize_grid_column.test.tsx similarity index 100% rename from src/plugins/discover/public/utils/on_resize_grid_column.test.tsx rename to src/platform/plugins/shared/discover/public/utils/on_resize_grid_column.test.tsx diff --git a/src/plugins/discover/public/utils/on_resize_grid_column.ts b/src/platform/plugins/shared/discover/public/utils/on_resize_grid_column.ts similarity index 100% rename from src/plugins/discover/public/utils/on_resize_grid_column.ts rename to src/platform/plugins/shared/discover/public/utils/on_resize_grid_column.ts diff --git a/src/plugins/discover/public/utils/sorting/get_sort.test.ts b/src/platform/plugins/shared/discover/public/utils/sorting/get_sort.test.ts similarity index 100% rename from src/plugins/discover/public/utils/sorting/get_sort.test.ts rename to src/platform/plugins/shared/discover/public/utils/sorting/get_sort.test.ts diff --git a/src/plugins/discover/public/utils/sorting/get_sort.ts b/src/platform/plugins/shared/discover/public/utils/sorting/get_sort.ts similarity index 100% rename from src/plugins/discover/public/utils/sorting/get_sort.ts rename to src/platform/plugins/shared/discover/public/utils/sorting/get_sort.ts diff --git a/src/plugins/discover/public/utils/sorting/index.ts b/src/platform/plugins/shared/discover/public/utils/sorting/index.ts similarity index 100% rename from src/plugins/discover/public/utils/sorting/index.ts rename to src/platform/plugins/shared/discover/public/utils/sorting/index.ts diff --git a/src/plugins/discover/public/utils/state_helpers.ts b/src/platform/plugins/shared/discover/public/utils/state_helpers.ts similarity index 100% rename from src/plugins/discover/public/utils/state_helpers.ts rename to src/platform/plugins/shared/discover/public/utils/state_helpers.ts diff --git a/src/plugins/discover/public/utils/validate_time.test.ts b/src/platform/plugins/shared/discover/public/utils/validate_time.test.ts similarity index 100% rename from src/plugins/discover/public/utils/validate_time.test.ts rename to src/platform/plugins/shared/discover/public/utils/validate_time.test.ts diff --git a/src/plugins/discover/public/utils/validate_time.ts b/src/platform/plugins/shared/discover/public/utils/validate_time.ts similarity index 100% rename from src/plugins/discover/public/utils/validate_time.ts rename to src/platform/plugins/shared/discover/public/utils/validate_time.ts diff --git a/src/plugins/discover/server/capabilities_provider.ts b/src/platform/plugins/shared/discover/server/capabilities_provider.ts similarity index 100% rename from src/plugins/discover/server/capabilities_provider.ts rename to src/platform/plugins/shared/discover/server/capabilities_provider.ts diff --git a/src/plugins/discover/server/config.ts b/src/platform/plugins/shared/discover/server/config.ts similarity index 100% rename from src/plugins/discover/server/config.ts rename to src/platform/plugins/shared/discover/server/config.ts diff --git a/src/plugins/discover/server/embeddable/index.ts b/src/platform/plugins/shared/discover/server/embeddable/index.ts similarity index 100% rename from src/plugins/discover/server/embeddable/index.ts rename to src/platform/plugins/shared/discover/server/embeddable/index.ts diff --git a/src/plugins/discover/server/embeddable/search_embeddable_factory.ts b/src/platform/plugins/shared/discover/server/embeddable/search_embeddable_factory.ts similarity index 100% rename from src/plugins/discover/server/embeddable/search_embeddable_factory.ts rename to src/platform/plugins/shared/discover/server/embeddable/search_embeddable_factory.ts diff --git a/src/plugins/discover/server/index.ts b/src/platform/plugins/shared/discover/server/index.ts similarity index 100% rename from src/plugins/discover/server/index.ts rename to src/platform/plugins/shared/discover/server/index.ts diff --git a/src/plugins/discover/server/locator/columns_from_locator.test.ts b/src/platform/plugins/shared/discover/server/locator/columns_from_locator.test.ts similarity index 100% rename from src/plugins/discover/server/locator/columns_from_locator.test.ts rename to src/platform/plugins/shared/discover/server/locator/columns_from_locator.test.ts diff --git a/src/plugins/discover/server/locator/columns_from_locator.ts b/src/platform/plugins/shared/discover/server/locator/columns_from_locator.ts similarity index 100% rename from src/plugins/discover/server/locator/columns_from_locator.ts rename to src/platform/plugins/shared/discover/server/locator/columns_from_locator.ts diff --git a/src/plugins/discover/server/locator/filters_from_locator.ts b/src/platform/plugins/shared/discover/server/locator/filters_from_locator.ts similarity index 100% rename from src/plugins/discover/server/locator/filters_from_locator.ts rename to src/platform/plugins/shared/discover/server/locator/filters_from_locator.ts diff --git a/src/plugins/discover/server/locator/index.ts b/src/platform/plugins/shared/discover/server/locator/index.ts similarity index 100% rename from src/plugins/discover/server/locator/index.ts rename to src/platform/plugins/shared/discover/server/locator/index.ts diff --git a/src/plugins/discover/server/locator/mocks.ts b/src/platform/plugins/shared/discover/server/locator/mocks.ts similarity index 100% rename from src/plugins/discover/server/locator/mocks.ts rename to src/platform/plugins/shared/discover/server/locator/mocks.ts diff --git a/src/plugins/discover/server/locator/query_from_locator.ts b/src/platform/plugins/shared/discover/server/locator/query_from_locator.ts similarity index 100% rename from src/plugins/discover/server/locator/query_from_locator.ts rename to src/platform/plugins/shared/discover/server/locator/query_from_locator.ts diff --git a/src/plugins/discover/server/locator/searchsource_from_locator.test.ts b/src/platform/plugins/shared/discover/server/locator/searchsource_from_locator.test.ts similarity index 100% rename from src/plugins/discover/server/locator/searchsource_from_locator.test.ts rename to src/platform/plugins/shared/discover/server/locator/searchsource_from_locator.test.ts diff --git a/src/plugins/discover/server/locator/searchsource_from_locator.ts b/src/platform/plugins/shared/discover/server/locator/searchsource_from_locator.ts similarity index 100% rename from src/plugins/discover/server/locator/searchsource_from_locator.ts rename to src/platform/plugins/shared/discover/server/locator/searchsource_from_locator.ts diff --git a/src/plugins/discover/server/locator/service.ts b/src/platform/plugins/shared/discover/server/locator/service.ts similarity index 100% rename from src/plugins/discover/server/locator/service.ts rename to src/platform/plugins/shared/discover/server/locator/service.ts diff --git a/src/plugins/discover/server/locator/title_from_locator.test.ts b/src/platform/plugins/shared/discover/server/locator/title_from_locator.test.ts similarity index 100% rename from src/plugins/discover/server/locator/title_from_locator.test.ts rename to src/platform/plugins/shared/discover/server/locator/title_from_locator.test.ts diff --git a/src/plugins/discover/server/locator/title_from_locator.ts b/src/platform/plugins/shared/discover/server/locator/title_from_locator.ts similarity index 100% rename from src/plugins/discover/server/locator/title_from_locator.ts rename to src/platform/plugins/shared/discover/server/locator/title_from_locator.ts diff --git a/src/plugins/discover/server/mocks.ts b/src/platform/plugins/shared/discover/server/mocks.ts similarity index 100% rename from src/plugins/discover/server/mocks.ts rename to src/platform/plugins/shared/discover/server/mocks.ts diff --git a/src/plugins/discover/server/plugin.ts b/src/platform/plugins/shared/discover/server/plugin.ts similarity index 100% rename from src/plugins/discover/server/plugin.ts rename to src/platform/plugins/shared/discover/server/plugin.ts diff --git a/src/plugins/discover/server/sample_data/index.ts b/src/platform/plugins/shared/discover/server/sample_data/index.ts similarity index 100% rename from src/plugins/discover/server/sample_data/index.ts rename to src/platform/plugins/shared/discover/server/sample_data/index.ts diff --git a/src/plugins/discover/server/sample_data/register_sample_data.ts b/src/platform/plugins/shared/discover/server/sample_data/register_sample_data.ts similarity index 100% rename from src/plugins/discover/server/sample_data/register_sample_data.ts rename to src/platform/plugins/shared/discover/server/sample_data/register_sample_data.ts diff --git a/src/plugins/discover/server/ui_settings.ts b/src/platform/plugins/shared/discover/server/ui_settings.ts similarity index 100% rename from src/plugins/discover/server/ui_settings.ts rename to src/platform/plugins/shared/discover/server/ui_settings.ts diff --git a/src/plugins/discover/tsconfig.json b/src/platform/plugins/shared/discover/tsconfig.json similarity index 97% rename from src/plugins/discover/tsconfig.json rename to src/platform/plugins/shared/discover/tsconfig.json index 36655983db13a..672692569cbd1 100644 --- a/src/plugins/discover/tsconfig.json +++ b/src/platform/plugins/shared/discover/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, @@ -7,7 +7,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*", + "../../../../../typings/**/*", ".storybook/**/*" ], "kbn_references": [ diff --git a/src/plugins/discover_shared/README.md b/src/platform/plugins/shared/discover_shared/README.md similarity index 97% rename from src/plugins/discover_shared/README.md rename to src/platform/plugins/shared/discover_shared/README.md index f1bcb5ab2e011..f2b2269dc5698 100755 --- a/src/plugins/discover_shared/README.md +++ b/src/platform/plugins/shared/discover_shared/README.md @@ -21,7 +21,7 @@ First of all, we need to define an interface to which the plugin registering the The `DiscoverFeaturesService` already defines a union of available features and uses them to strictly type the exposed registry from the discover_shared plugin, so we can update it with the new feature: ```tsx -// src/plugins/discover_shared/public/services/discover_features/types.ts +// src/platform/plugins/shared/discover_shared/public/services/discover_features/types.ts export interface SecurityAIAssistantFeature { id: 'security-ai-assistant'; diff --git a/src/plugins/discover_shared/common/features_registry/features_registry.test.tsx b/src/platform/plugins/shared/discover_shared/common/features_registry/features_registry.test.tsx similarity index 100% rename from src/plugins/discover_shared/common/features_registry/features_registry.test.tsx rename to src/platform/plugins/shared/discover_shared/common/features_registry/features_registry.test.tsx diff --git a/src/plugins/discover_shared/common/features_registry/features_registry.ts b/src/platform/plugins/shared/discover_shared/common/features_registry/features_registry.ts similarity index 100% rename from src/plugins/discover_shared/common/features_registry/features_registry.ts rename to src/platform/plugins/shared/discover_shared/common/features_registry/features_registry.ts diff --git a/src/plugins/discover_shared/common/features_registry/index.ts b/src/platform/plugins/shared/discover_shared/common/features_registry/index.ts similarity index 100% rename from src/plugins/discover_shared/common/features_registry/index.ts rename to src/platform/plugins/shared/discover_shared/common/features_registry/index.ts diff --git a/src/plugins/discover_shared/common/features_registry/types.ts b/src/platform/plugins/shared/discover_shared/common/features_registry/types.ts similarity index 100% rename from src/plugins/discover_shared/common/features_registry/types.ts rename to src/platform/plugins/shared/discover_shared/common/features_registry/types.ts diff --git a/src/plugins/discover_shared/common/index.ts b/src/platform/plugins/shared/discover_shared/common/index.ts similarity index 100% rename from src/plugins/discover_shared/common/index.ts rename to src/platform/plugins/shared/discover_shared/common/index.ts diff --git a/src/platform/plugins/shared/discover_shared/jest.config.js b/src/platform/plugins/shared/discover_shared/jest.config.js new file mode 100644 index 0000000000000..22b81210e8256 --- /dev/null +++ b/src/platform/plugins/shared/discover_shared/jest.config.js @@ -0,0 +1,20 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/discover_shared'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/discover_shared', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/discover_shared/{common,public,server}/**/*.{js,ts,tsx}', + ], +}; diff --git a/src/plugins/discover_shared/kibana.jsonc b/src/platform/plugins/shared/discover_shared/kibana.jsonc similarity index 100% rename from src/plugins/discover_shared/kibana.jsonc rename to src/platform/plugins/shared/discover_shared/kibana.jsonc diff --git a/src/plugins/discover_shared/public/index.ts b/src/platform/plugins/shared/discover_shared/public/index.ts similarity index 100% rename from src/plugins/discover_shared/public/index.ts rename to src/platform/plugins/shared/discover_shared/public/index.ts diff --git a/src/plugins/discover_shared/public/mocks.ts b/src/platform/plugins/shared/discover_shared/public/mocks.ts similarity index 100% rename from src/plugins/discover_shared/public/mocks.ts rename to src/platform/plugins/shared/discover_shared/public/mocks.ts diff --git a/src/plugins/discover_shared/public/plugin.ts b/src/platform/plugins/shared/discover_shared/public/plugin.ts similarity index 100% rename from src/plugins/discover_shared/public/plugin.ts rename to src/platform/plugins/shared/discover_shared/public/plugin.ts diff --git a/src/plugins/discover_shared/public/services/discover_features/discover_features_service.mock.ts b/src/platform/plugins/shared/discover_shared/public/services/discover_features/discover_features_service.mock.ts similarity index 100% rename from src/plugins/discover_shared/public/services/discover_features/discover_features_service.mock.ts rename to src/platform/plugins/shared/discover_shared/public/services/discover_features/discover_features_service.mock.ts diff --git a/src/plugins/discover_shared/public/services/discover_features/discover_features_service.ts b/src/platform/plugins/shared/discover_shared/public/services/discover_features/discover_features_service.ts similarity index 100% rename from src/plugins/discover_shared/public/services/discover_features/discover_features_service.ts rename to src/platform/plugins/shared/discover_shared/public/services/discover_features/discover_features_service.ts diff --git a/src/plugins/discover_shared/public/services/discover_features/index.ts b/src/platform/plugins/shared/discover_shared/public/services/discover_features/index.ts similarity index 100% rename from src/plugins/discover_shared/public/services/discover_features/index.ts rename to src/platform/plugins/shared/discover_shared/public/services/discover_features/index.ts diff --git a/src/plugins/discover_shared/public/services/discover_features/types.ts b/src/platform/plugins/shared/discover_shared/public/services/discover_features/types.ts similarity index 100% rename from src/plugins/discover_shared/public/services/discover_features/types.ts rename to src/platform/plugins/shared/discover_shared/public/services/discover_features/types.ts diff --git a/src/plugins/discover_shared/public/types.ts b/src/platform/plugins/shared/discover_shared/public/types.ts similarity index 100% rename from src/plugins/discover_shared/public/types.ts rename to src/platform/plugins/shared/discover_shared/public/types.ts diff --git a/src/plugins/discover_shared/tsconfig.json b/src/platform/plugins/shared/discover_shared/tsconfig.json similarity index 75% rename from src/plugins/discover_shared/tsconfig.json rename to src/platform/plugins/shared/discover_shared/tsconfig.json index d8bda5214c747..3f283b08ec1ff 100644 --- a/src/plugins/discover_shared/tsconfig.json +++ b/src/platform/plugins/shared/discover_shared/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, @@ -7,7 +7,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*", + "../../../../../typings/**/*", ], "exclude": ["target/**/*"], "kbn_references": [ diff --git a/src/plugins/field_formats/README.md b/src/platform/plugins/shared/field_formats/README.md similarity index 100% rename from src/plugins/field_formats/README.md rename to src/platform/plugins/shared/field_formats/README.md diff --git a/src/plugins/field_formats/common/constants/base_formatters.ts b/src/platform/plugins/shared/field_formats/common/constants/base_formatters.ts similarity index 100% rename from src/plugins/field_formats/common/constants/base_formatters.ts rename to src/platform/plugins/shared/field_formats/common/constants/base_formatters.ts diff --git a/src/plugins/field_formats/common/constants/color_default.ts b/src/platform/plugins/shared/field_formats/common/constants/color_default.ts similarity index 100% rename from src/plugins/field_formats/common/constants/color_default.ts rename to src/platform/plugins/shared/field_formats/common/constants/color_default.ts diff --git a/src/plugins/field_formats/common/constants/duration_formats.ts b/src/platform/plugins/shared/field_formats/common/constants/duration_formats.ts similarity index 100% rename from src/plugins/field_formats/common/constants/duration_formats.ts rename to src/platform/plugins/shared/field_formats/common/constants/duration_formats.ts diff --git a/src/plugins/field_formats/common/constants/ui_settings.ts b/src/platform/plugins/shared/field_formats/common/constants/ui_settings.ts similarity index 100% rename from src/plugins/field_formats/common/constants/ui_settings.ts rename to src/platform/plugins/shared/field_formats/common/constants/ui_settings.ts diff --git a/src/plugins/field_formats/common/content_types/html_content_type.ts b/src/platform/plugins/shared/field_formats/common/content_types/html_content_type.ts similarity index 100% rename from src/plugins/field_formats/common/content_types/html_content_type.ts rename to src/platform/plugins/shared/field_formats/common/content_types/html_content_type.ts diff --git a/src/plugins/field_formats/common/content_types/index.ts b/src/platform/plugins/shared/field_formats/common/content_types/index.ts similarity index 100% rename from src/plugins/field_formats/common/content_types/index.ts rename to src/platform/plugins/shared/field_formats/common/content_types/index.ts diff --git a/src/plugins/field_formats/common/content_types/text_content_type.ts b/src/platform/plugins/shared/field_formats/common/content_types/text_content_type.ts similarity index 100% rename from src/plugins/field_formats/common/content_types/text_content_type.ts rename to src/platform/plugins/shared/field_formats/common/content_types/text_content_type.ts diff --git a/src/plugins/field_formats/common/converters/boolean.test.ts b/src/platform/plugins/shared/field_formats/common/converters/boolean.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/boolean.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/boolean.test.ts diff --git a/src/plugins/field_formats/common/converters/boolean.ts b/src/platform/plugins/shared/field_formats/common/converters/boolean.ts similarity index 100% rename from src/plugins/field_formats/common/converters/boolean.ts rename to src/platform/plugins/shared/field_formats/common/converters/boolean.ts diff --git a/src/plugins/field_formats/common/converters/bytes.test.ts b/src/platform/plugins/shared/field_formats/common/converters/bytes.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/bytes.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/bytes.test.ts diff --git a/src/plugins/field_formats/common/converters/bytes.ts b/src/platform/plugins/shared/field_formats/common/converters/bytes.ts similarity index 100% rename from src/plugins/field_formats/common/converters/bytes.ts rename to src/platform/plugins/shared/field_formats/common/converters/bytes.ts diff --git a/src/plugins/field_formats/common/converters/color.test.ts b/src/platform/plugins/shared/field_formats/common/converters/color.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/color.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/color.test.ts diff --git a/src/plugins/field_formats/common/converters/color.tsx b/src/platform/plugins/shared/field_formats/common/converters/color.tsx similarity index 100% rename from src/plugins/field_formats/common/converters/color.tsx rename to src/platform/plugins/shared/field_formats/common/converters/color.tsx diff --git a/src/plugins/field_formats/common/converters/currency.test.ts b/src/platform/plugins/shared/field_formats/common/converters/currency.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/currency.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/currency.test.ts diff --git a/src/plugins/field_formats/common/converters/currency.ts b/src/platform/plugins/shared/field_formats/common/converters/currency.ts similarity index 100% rename from src/plugins/field_formats/common/converters/currency.ts rename to src/platform/plugins/shared/field_formats/common/converters/currency.ts diff --git a/src/plugins/field_formats/common/converters/custom.ts b/src/platform/plugins/shared/field_formats/common/converters/custom.ts similarity index 100% rename from src/plugins/field_formats/common/converters/custom.ts rename to src/platform/plugins/shared/field_formats/common/converters/custom.ts diff --git a/src/plugins/field_formats/common/converters/date_nanos_shared.test.ts b/src/platform/plugins/shared/field_formats/common/converters/date_nanos_shared.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/date_nanos_shared.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/date_nanos_shared.test.ts diff --git a/src/plugins/field_formats/common/converters/date_nanos_shared.ts b/src/platform/plugins/shared/field_formats/common/converters/date_nanos_shared.ts similarity index 100% rename from src/plugins/field_formats/common/converters/date_nanos_shared.ts rename to src/platform/plugins/shared/field_formats/common/converters/date_nanos_shared.ts diff --git a/src/plugins/field_formats/common/converters/duration.test.ts b/src/platform/plugins/shared/field_formats/common/converters/duration.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/duration.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/duration.test.ts diff --git a/src/plugins/field_formats/common/converters/duration.ts b/src/platform/plugins/shared/field_formats/common/converters/duration.ts similarity index 100% rename from src/plugins/field_formats/common/converters/duration.ts rename to src/platform/plugins/shared/field_formats/common/converters/duration.ts diff --git a/src/plugins/field_formats/common/converters/geo_point.test.ts b/src/platform/plugins/shared/field_formats/common/converters/geo_point.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/geo_point.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/geo_point.test.ts diff --git a/src/plugins/field_formats/common/converters/geo_point.ts b/src/platform/plugins/shared/field_formats/common/converters/geo_point.ts similarity index 100% rename from src/plugins/field_formats/common/converters/geo_point.ts rename to src/platform/plugins/shared/field_formats/common/converters/geo_point.ts diff --git a/src/plugins/field_formats/common/converters/histogram.ts b/src/platform/plugins/shared/field_formats/common/converters/histogram.ts similarity index 100% rename from src/plugins/field_formats/common/converters/histogram.ts rename to src/platform/plugins/shared/field_formats/common/converters/histogram.ts diff --git a/src/plugins/field_formats/common/converters/index.ts b/src/platform/plugins/shared/field_formats/common/converters/index.ts similarity index 100% rename from src/plugins/field_formats/common/converters/index.ts rename to src/platform/plugins/shared/field_formats/common/converters/index.ts diff --git a/src/plugins/field_formats/common/converters/ip.test.ts b/src/platform/plugins/shared/field_formats/common/converters/ip.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/ip.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/ip.test.ts diff --git a/src/plugins/field_formats/common/converters/ip.ts b/src/platform/plugins/shared/field_formats/common/converters/ip.ts similarity index 100% rename from src/plugins/field_formats/common/converters/ip.ts rename to src/platform/plugins/shared/field_formats/common/converters/ip.ts diff --git a/src/plugins/field_formats/common/converters/number.test.ts b/src/platform/plugins/shared/field_formats/common/converters/number.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/number.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/number.test.ts diff --git a/src/plugins/field_formats/common/converters/number.ts b/src/platform/plugins/shared/field_formats/common/converters/number.ts similarity index 100% rename from src/plugins/field_formats/common/converters/number.ts rename to src/platform/plugins/shared/field_formats/common/converters/number.ts diff --git a/src/plugins/field_formats/common/converters/numeral.ts b/src/platform/plugins/shared/field_formats/common/converters/numeral.ts similarity index 100% rename from src/plugins/field_formats/common/converters/numeral.ts rename to src/platform/plugins/shared/field_formats/common/converters/numeral.ts diff --git a/src/plugins/field_formats/common/converters/percent.test.ts b/src/platform/plugins/shared/field_formats/common/converters/percent.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/percent.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/percent.test.ts diff --git a/src/plugins/field_formats/common/converters/percent.ts b/src/platform/plugins/shared/field_formats/common/converters/percent.ts similarity index 100% rename from src/plugins/field_formats/common/converters/percent.ts rename to src/platform/plugins/shared/field_formats/common/converters/percent.ts diff --git a/src/plugins/field_formats/common/converters/relative_date.test.ts b/src/platform/plugins/shared/field_formats/common/converters/relative_date.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/relative_date.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/relative_date.test.ts diff --git a/src/plugins/field_formats/common/converters/relative_date.ts b/src/platform/plugins/shared/field_formats/common/converters/relative_date.ts similarity index 100% rename from src/plugins/field_formats/common/converters/relative_date.ts rename to src/platform/plugins/shared/field_formats/common/converters/relative_date.ts diff --git a/src/plugins/field_formats/common/converters/source.test.ts b/src/platform/plugins/shared/field_formats/common/converters/source.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/source.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/source.test.ts diff --git a/src/plugins/field_formats/common/converters/source.tsx b/src/platform/plugins/shared/field_formats/common/converters/source.tsx similarity index 100% rename from src/plugins/field_formats/common/converters/source.tsx rename to src/platform/plugins/shared/field_formats/common/converters/source.tsx diff --git a/src/plugins/field_formats/common/converters/static_lookup.ts b/src/platform/plugins/shared/field_formats/common/converters/static_lookup.ts similarity index 100% rename from src/plugins/field_formats/common/converters/static_lookup.ts rename to src/platform/plugins/shared/field_formats/common/converters/static_lookup.ts diff --git a/src/plugins/field_formats/common/converters/string.test.ts b/src/platform/plugins/shared/field_formats/common/converters/string.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/string.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/string.test.ts diff --git a/src/plugins/field_formats/common/converters/string.ts b/src/platform/plugins/shared/field_formats/common/converters/string.ts similarity index 100% rename from src/plugins/field_formats/common/converters/string.ts rename to src/platform/plugins/shared/field_formats/common/converters/string.ts diff --git a/src/plugins/field_formats/common/converters/truncate.test.ts b/src/platform/plugins/shared/field_formats/common/converters/truncate.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/truncate.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/truncate.test.ts diff --git a/src/plugins/field_formats/common/converters/truncate.ts b/src/platform/plugins/shared/field_formats/common/converters/truncate.ts similarity index 100% rename from src/plugins/field_formats/common/converters/truncate.ts rename to src/platform/plugins/shared/field_formats/common/converters/truncate.ts diff --git a/src/plugins/field_formats/common/converters/url.test.ts b/src/platform/plugins/shared/field_formats/common/converters/url.test.ts similarity index 100% rename from src/plugins/field_formats/common/converters/url.test.ts rename to src/platform/plugins/shared/field_formats/common/converters/url.test.ts diff --git a/src/plugins/field_formats/common/converters/url.ts b/src/platform/plugins/shared/field_formats/common/converters/url.ts similarity index 100% rename from src/plugins/field_formats/common/converters/url.ts rename to src/platform/plugins/shared/field_formats/common/converters/url.ts diff --git a/src/plugins/field_formats/common/errors.ts b/src/platform/plugins/shared/field_formats/common/errors.ts similarity index 100% rename from src/plugins/field_formats/common/errors.ts rename to src/platform/plugins/shared/field_formats/common/errors.ts diff --git a/src/plugins/field_formats/common/field_format.test.ts b/src/platform/plugins/shared/field_formats/common/field_format.test.ts similarity index 100% rename from src/plugins/field_formats/common/field_format.test.ts rename to src/platform/plugins/shared/field_formats/common/field_format.test.ts diff --git a/src/plugins/field_formats/common/field_format.ts b/src/platform/plugins/shared/field_formats/common/field_format.ts similarity index 100% rename from src/plugins/field_formats/common/field_format.ts rename to src/platform/plugins/shared/field_formats/common/field_format.ts diff --git a/src/plugins/field_formats/common/field_formats_registry.test.ts b/src/platform/plugins/shared/field_formats/common/field_formats_registry.test.ts similarity index 100% rename from src/plugins/field_formats/common/field_formats_registry.test.ts rename to src/platform/plugins/shared/field_formats/common/field_formats_registry.test.ts diff --git a/src/plugins/field_formats/common/field_formats_registry.ts b/src/platform/plugins/shared/field_formats/common/field_formats_registry.ts similarity index 100% rename from src/plugins/field_formats/common/field_formats_registry.ts rename to src/platform/plugins/shared/field_formats/common/field_formats_registry.ts diff --git a/src/plugins/field_formats/common/index.ts b/src/platform/plugins/shared/field_formats/common/index.ts similarity index 100% rename from src/plugins/field_formats/common/index.ts rename to src/platform/plugins/shared/field_formats/common/index.ts diff --git a/src/plugins/field_formats/common/mocks.ts b/src/platform/plugins/shared/field_formats/common/mocks.ts similarity index 100% rename from src/plugins/field_formats/common/mocks.ts rename to src/platform/plugins/shared/field_formats/common/mocks.ts diff --git a/src/plugins/field_formats/common/types.ts b/src/platform/plugins/shared/field_formats/common/types.ts similarity index 100% rename from src/plugins/field_formats/common/types.ts rename to src/platform/plugins/shared/field_formats/common/types.ts diff --git a/src/plugins/field_formats/common/utils/as_pretty_string.test.ts b/src/platform/plugins/shared/field_formats/common/utils/as_pretty_string.test.ts similarity index 100% rename from src/plugins/field_formats/common/utils/as_pretty_string.test.ts rename to src/platform/plugins/shared/field_formats/common/utils/as_pretty_string.test.ts diff --git a/src/plugins/field_formats/common/utils/as_pretty_string.ts b/src/platform/plugins/shared/field_formats/common/utils/as_pretty_string.ts similarity index 100% rename from src/plugins/field_formats/common/utils/as_pretty_string.ts rename to src/platform/plugins/shared/field_formats/common/utils/as_pretty_string.ts diff --git a/src/plugins/field_formats/common/utils/geo_utils.test.ts b/src/platform/plugins/shared/field_formats/common/utils/geo_utils.test.ts similarity index 100% rename from src/plugins/field_formats/common/utils/geo_utils.test.ts rename to src/platform/plugins/shared/field_formats/common/utils/geo_utils.test.ts diff --git a/src/plugins/field_formats/common/utils/geo_utils.ts b/src/platform/plugins/shared/field_formats/common/utils/geo_utils.ts similarity index 100% rename from src/plugins/field_formats/common/utils/geo_utils.ts rename to src/platform/plugins/shared/field_formats/common/utils/geo_utils.ts diff --git a/src/plugins/field_formats/common/utils/highlight/highlight_html.test.ts b/src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_html.test.ts similarity index 100% rename from src/plugins/field_formats/common/utils/highlight/highlight_html.test.ts rename to src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_html.test.ts diff --git a/src/plugins/field_formats/common/utils/highlight/highlight_html.ts b/src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_html.ts similarity index 100% rename from src/plugins/field_formats/common/utils/highlight/highlight_html.ts rename to src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_html.ts diff --git a/src/plugins/field_formats/common/utils/highlight/highlight_request.test.ts b/src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_request.test.ts similarity index 100% rename from src/plugins/field_formats/common/utils/highlight/highlight_request.test.ts rename to src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_request.test.ts diff --git a/src/plugins/field_formats/common/utils/highlight/highlight_request.ts b/src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_request.ts similarity index 100% rename from src/plugins/field_formats/common/utils/highlight/highlight_request.ts rename to src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_request.ts diff --git a/src/plugins/field_formats/common/utils/highlight/highlight_tags.ts b/src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_tags.ts similarity index 100% rename from src/plugins/field_formats/common/utils/highlight/highlight_tags.ts rename to src/platform/plugins/shared/field_formats/common/utils/highlight/highlight_tags.ts diff --git a/src/plugins/field_formats/common/utils/highlight/html_tags.ts b/src/platform/plugins/shared/field_formats/common/utils/highlight/html_tags.ts similarity index 100% rename from src/plugins/field_formats/common/utils/highlight/html_tags.ts rename to src/platform/plugins/shared/field_formats/common/utils/highlight/html_tags.ts diff --git a/src/plugins/field_formats/common/utils/highlight/index.ts b/src/platform/plugins/shared/field_formats/common/utils/highlight/index.ts similarity index 100% rename from src/plugins/field_formats/common/utils/highlight/index.ts rename to src/platform/plugins/shared/field_formats/common/utils/highlight/index.ts diff --git a/src/plugins/field_formats/common/utils/index.ts b/src/platform/plugins/shared/field_formats/common/utils/index.ts similarity index 100% rename from src/plugins/field_formats/common/utils/index.ts rename to src/platform/plugins/shared/field_formats/common/utils/index.ts diff --git a/src/plugins/field_formats/common/utils/shorten_dotted_string.test.ts b/src/platform/plugins/shared/field_formats/common/utils/shorten_dotted_string.test.ts similarity index 100% rename from src/plugins/field_formats/common/utils/shorten_dotted_string.test.ts rename to src/platform/plugins/shared/field_formats/common/utils/shorten_dotted_string.test.ts diff --git a/src/plugins/field_formats/common/utils/shorten_dotted_string.ts b/src/platform/plugins/shared/field_formats/common/utils/shorten_dotted_string.ts similarity index 100% rename from src/plugins/field_formats/common/utils/shorten_dotted_string.ts rename to src/platform/plugins/shared/field_formats/common/utils/shorten_dotted_string.ts diff --git a/src/plugins/saved_search/jest.config.js b/src/platform/plugins/shared/field_formats/jest.config.js similarity index 66% rename from src/plugins/saved_search/jest.config.js rename to src/platform/plugins/shared/field_formats/jest.config.js index 926c323d72268..41b33e00c5bfd 100644 --- a/src/plugins/saved_search/jest.config.js +++ b/src/platform/plugins/shared/field_formats/jest.config.js @@ -9,11 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/saved_search'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/saved_search', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/field_formats'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/field_formats', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/saved_search/{common,public,server}/**/*.{js,ts,tsx}', + '/src/platform/plugins/shared/field_formats/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/field_formats/kibana.jsonc b/src/platform/plugins/shared/field_formats/kibana.jsonc similarity index 100% rename from src/plugins/field_formats/kibana.jsonc rename to src/platform/plugins/shared/field_formats/kibana.jsonc diff --git a/src/plugins/field_formats/public/index.scss b/src/platform/plugins/shared/field_formats/public/index.scss similarity index 100% rename from src/plugins/field_formats/public/index.scss rename to src/platform/plugins/shared/field_formats/public/index.scss diff --git a/src/plugins/field_formats/public/index.ts b/src/platform/plugins/shared/field_formats/public/index.ts similarity index 100% rename from src/plugins/field_formats/public/index.ts rename to src/platform/plugins/shared/field_formats/public/index.ts diff --git a/src/plugins/field_formats/public/lib/constants.ts b/src/platform/plugins/shared/field_formats/public/lib/constants.ts similarity index 100% rename from src/plugins/field_formats/public/lib/constants.ts rename to src/platform/plugins/shared/field_formats/public/lib/constants.ts diff --git a/src/plugins/field_formats/public/lib/content_types/_html_content_type.scss b/src/platform/plugins/shared/field_formats/public/lib/content_types/_html_content_type.scss similarity index 100% rename from src/plugins/field_formats/public/lib/content_types/_html_content_type.scss rename to src/platform/plugins/shared/field_formats/public/lib/content_types/_html_content_type.scss diff --git a/src/plugins/field_formats/public/lib/content_types/_index.scss b/src/platform/plugins/shared/field_formats/public/lib/content_types/_index.scss similarity index 100% rename from src/plugins/field_formats/public/lib/content_types/_index.scss rename to src/platform/plugins/shared/field_formats/public/lib/content_types/_index.scss diff --git a/src/plugins/field_formats/public/lib/converters/_index.scss b/src/platform/plugins/shared/field_formats/public/lib/converters/_index.scss similarity index 100% rename from src/plugins/field_formats/public/lib/converters/_index.scss rename to src/platform/plugins/shared/field_formats/public/lib/converters/_index.scss diff --git a/src/plugins/field_formats/public/lib/converters/_string.scss b/src/platform/plugins/shared/field_formats/public/lib/converters/_string.scss similarity index 100% rename from src/plugins/field_formats/public/lib/converters/_string.scss rename to src/platform/plugins/shared/field_formats/public/lib/converters/_string.scss diff --git a/src/plugins/field_formats/public/lib/converters/date.test.ts b/src/platform/plugins/shared/field_formats/public/lib/converters/date.test.ts similarity index 100% rename from src/plugins/field_formats/public/lib/converters/date.test.ts rename to src/platform/plugins/shared/field_formats/public/lib/converters/date.test.ts diff --git a/src/plugins/field_formats/public/lib/converters/date.ts b/src/platform/plugins/shared/field_formats/public/lib/converters/date.ts similarity index 100% rename from src/plugins/field_formats/public/lib/converters/date.ts rename to src/platform/plugins/shared/field_formats/public/lib/converters/date.ts diff --git a/src/plugins/field_formats/public/lib/converters/date_nanos.ts b/src/platform/plugins/shared/field_formats/public/lib/converters/date_nanos.ts similarity index 100% rename from src/plugins/field_formats/public/lib/converters/date_nanos.ts rename to src/platform/plugins/shared/field_formats/public/lib/converters/date_nanos.ts diff --git a/src/plugins/field_formats/public/lib/converters/index.ts b/src/platform/plugins/shared/field_formats/public/lib/converters/index.ts similarity index 100% rename from src/plugins/field_formats/public/lib/converters/index.ts rename to src/platform/plugins/shared/field_formats/public/lib/converters/index.ts diff --git a/src/plugins/field_formats/public/lib/index.ts b/src/platform/plugins/shared/field_formats/public/lib/index.ts similarity index 100% rename from src/plugins/field_formats/public/lib/index.ts rename to src/platform/plugins/shared/field_formats/public/lib/index.ts diff --git a/src/plugins/field_formats/public/mocks.ts b/src/platform/plugins/shared/field_formats/public/mocks.ts similarity index 100% rename from src/plugins/field_formats/public/mocks.ts rename to src/platform/plugins/shared/field_formats/public/mocks.ts diff --git a/src/plugins/field_formats/public/plugin.test.ts b/src/platform/plugins/shared/field_formats/public/plugin.test.ts similarity index 100% rename from src/plugins/field_formats/public/plugin.test.ts rename to src/platform/plugins/shared/field_formats/public/plugin.test.ts diff --git a/src/plugins/field_formats/public/plugin.ts b/src/platform/plugins/shared/field_formats/public/plugin.ts similarity index 100% rename from src/plugins/field_formats/public/plugin.ts rename to src/platform/plugins/shared/field_formats/public/plugin.ts diff --git a/src/plugins/field_formats/server/index.ts b/src/platform/plugins/shared/field_formats/server/index.ts similarity index 100% rename from src/plugins/field_formats/server/index.ts rename to src/platform/plugins/shared/field_formats/server/index.ts diff --git a/src/plugins/field_formats/server/lib/converters/date_nanos_server.test.ts b/src/platform/plugins/shared/field_formats/server/lib/converters/date_nanos_server.test.ts similarity index 100% rename from src/plugins/field_formats/server/lib/converters/date_nanos_server.test.ts rename to src/platform/plugins/shared/field_formats/server/lib/converters/date_nanos_server.test.ts diff --git a/src/plugins/field_formats/server/lib/converters/date_nanos_server.ts b/src/platform/plugins/shared/field_formats/server/lib/converters/date_nanos_server.ts similarity index 100% rename from src/plugins/field_formats/server/lib/converters/date_nanos_server.ts rename to src/platform/plugins/shared/field_formats/server/lib/converters/date_nanos_server.ts diff --git a/src/plugins/field_formats/server/lib/converters/date_server.ts b/src/platform/plugins/shared/field_formats/server/lib/converters/date_server.ts similarity index 100% rename from src/plugins/field_formats/server/lib/converters/date_server.ts rename to src/platform/plugins/shared/field_formats/server/lib/converters/date_server.ts diff --git a/src/plugins/field_formats/server/lib/converters/index.ts b/src/platform/plugins/shared/field_formats/server/lib/converters/index.ts similarity index 100% rename from src/plugins/field_formats/server/lib/converters/index.ts rename to src/platform/plugins/shared/field_formats/server/lib/converters/index.ts diff --git a/src/plugins/field_formats/server/mocks.ts b/src/platform/plugins/shared/field_formats/server/mocks.ts similarity index 100% rename from src/plugins/field_formats/server/mocks.ts rename to src/platform/plugins/shared/field_formats/server/mocks.ts diff --git a/src/plugins/field_formats/server/plugin.test.ts b/src/platform/plugins/shared/field_formats/server/plugin.test.ts similarity index 100% rename from src/plugins/field_formats/server/plugin.test.ts rename to src/platform/plugins/shared/field_formats/server/plugin.test.ts diff --git a/src/plugins/field_formats/server/plugin.ts b/src/platform/plugins/shared/field_formats/server/plugin.ts similarity index 100% rename from src/plugins/field_formats/server/plugin.ts rename to src/platform/plugins/shared/field_formats/server/plugin.ts diff --git a/src/plugins/field_formats/server/types.ts b/src/platform/plugins/shared/field_formats/server/types.ts similarity index 100% rename from src/plugins/field_formats/server/types.ts rename to src/platform/plugins/shared/field_formats/server/types.ts diff --git a/src/plugins/field_formats/server/ui_settings.ts b/src/platform/plugins/shared/field_formats/server/ui_settings.ts similarity index 100% rename from src/plugins/field_formats/server/ui_settings.ts rename to src/platform/plugins/shared/field_formats/server/ui_settings.ts diff --git a/src/plugins/field_formats/tsconfig.json b/src/platform/plugins/shared/field_formats/tsconfig.json similarity index 88% rename from src/plugins/field_formats/tsconfig.json rename to src/platform/plugins/shared/field_formats/tsconfig.json index 754b3b993cb06..2bc93b6f2c07c 100644 --- a/src/plugins/field_formats/tsconfig.json +++ b/src/platform/plugins/shared/field_formats/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/saved_objects_finder/README.md b/src/platform/plugins/shared/saved_objects_finder/README.md similarity index 100% rename from src/plugins/saved_objects_finder/README.md rename to src/platform/plugins/shared/saved_objects_finder/README.md diff --git a/src/plugins/saved_objects_finder/common/index.ts b/src/platform/plugins/shared/saved_objects_finder/common/index.ts similarity index 100% rename from src/plugins/saved_objects_finder/common/index.ts rename to src/platform/plugins/shared/saved_objects_finder/common/index.ts diff --git a/src/plugins/saved_objects_finder/common/types.ts b/src/platform/plugins/shared/saved_objects_finder/common/types.ts similarity index 100% rename from src/plugins/saved_objects_finder/common/types.ts rename to src/platform/plugins/shared/saved_objects_finder/common/types.ts diff --git a/src/platform/plugins/shared/saved_objects_finder/jest.config.js b/src/platform/plugins/shared/saved_objects_finder/jest.config.js new file mode 100644 index 0000000000000..eda4a65fbf473 --- /dev/null +++ b/src/platform/plugins/shared/saved_objects_finder/jest.config.js @@ -0,0 +1,20 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/saved_objects_finder'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects_finder', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/saved_objects_finder/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/saved_objects_finder/kibana.jsonc b/src/platform/plugins/shared/saved_objects_finder/kibana.jsonc similarity index 100% rename from src/plugins/saved_objects_finder/kibana.jsonc rename to src/platform/plugins/shared/saved_objects_finder/kibana.jsonc diff --git a/src/plugins/saved_objects_finder/public/finder/index.tsx b/src/platform/plugins/shared/saved_objects_finder/public/finder/index.tsx similarity index 100% rename from src/plugins/saved_objects_finder/public/finder/index.tsx rename to src/platform/plugins/shared/saved_objects_finder/public/finder/index.tsx diff --git a/src/plugins/saved_objects_finder/public/finder/saved_object_finder.test.tsx b/src/platform/plugins/shared/saved_objects_finder/public/finder/saved_object_finder.test.tsx similarity index 100% rename from src/plugins/saved_objects_finder/public/finder/saved_object_finder.test.tsx rename to src/platform/plugins/shared/saved_objects_finder/public/finder/saved_object_finder.test.tsx diff --git a/src/plugins/saved_objects_finder/public/finder/saved_object_finder.tsx b/src/platform/plugins/shared/saved_objects_finder/public/finder/saved_object_finder.tsx similarity index 100% rename from src/plugins/saved_objects_finder/public/finder/saved_object_finder.tsx rename to src/platform/plugins/shared/saved_objects_finder/public/finder/saved_object_finder.tsx diff --git a/src/plugins/saved_objects_finder/public/index.ts b/src/platform/plugins/shared/saved_objects_finder/public/index.ts similarity index 100% rename from src/plugins/saved_objects_finder/public/index.ts rename to src/platform/plugins/shared/saved_objects_finder/public/index.ts diff --git a/src/plugins/saved_objects_finder/public/plugin.ts b/src/platform/plugins/shared/saved_objects_finder/public/plugin.ts similarity index 100% rename from src/plugins/saved_objects_finder/public/plugin.ts rename to src/platform/plugins/shared/saved_objects_finder/public/plugin.ts diff --git a/src/plugins/saved_objects_finder/server/index.ts b/src/platform/plugins/shared/saved_objects_finder/server/index.ts similarity index 100% rename from src/plugins/saved_objects_finder/server/index.ts rename to src/platform/plugins/shared/saved_objects_finder/server/index.ts diff --git a/src/plugins/saved_objects_finder/server/plugin.test.ts b/src/platform/plugins/shared/saved_objects_finder/server/plugin.test.ts similarity index 100% rename from src/plugins/saved_objects_finder/server/plugin.test.ts rename to src/platform/plugins/shared/saved_objects_finder/server/plugin.test.ts diff --git a/src/plugins/saved_objects_finder/server/plugin.ts b/src/platform/plugins/shared/saved_objects_finder/server/plugin.ts similarity index 100% rename from src/plugins/saved_objects_finder/server/plugin.ts rename to src/platform/plugins/shared/saved_objects_finder/server/plugin.ts diff --git a/src/plugins/saved_objects_finder/server/ui_settings.ts b/src/platform/plugins/shared/saved_objects_finder/server/ui_settings.ts similarity index 100% rename from src/plugins/saved_objects_finder/server/ui_settings.ts rename to src/platform/plugins/shared/saved_objects_finder/server/ui_settings.ts diff --git a/src/plugins/saved_objects_finder/tsconfig.json b/src/platform/plugins/shared/saved_objects_finder/tsconfig.json similarity index 91% rename from src/plugins/saved_objects_finder/tsconfig.json rename to src/platform/plugins/shared/saved_objects_finder/tsconfig.json index e32d4f34e68bc..0bcda95ecee97 100644 --- a/src/plugins/saved_objects_finder/tsconfig.json +++ b/src/platform/plugins/shared/saved_objects_finder/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/src/plugins/saved_search/README.md b/src/platform/plugins/shared/saved_search/README.md similarity index 100% rename from src/plugins/saved_search/README.md rename to src/platform/plugins/shared/saved_search/README.md diff --git a/src/plugins/saved_search/common/constants.ts b/src/platform/plugins/shared/saved_search/common/constants.ts similarity index 100% rename from src/plugins/saved_search/common/constants.ts rename to src/platform/plugins/shared/saved_search/common/constants.ts diff --git a/src/plugins/saved_search/common/content_management/index.ts b/src/platform/plugins/shared/saved_search/common/content_management/index.ts similarity index 100% rename from src/plugins/saved_search/common/content_management/index.ts rename to src/platform/plugins/shared/saved_search/common/content_management/index.ts diff --git a/src/plugins/saved_search/common/content_management/v1/index.ts b/src/platform/plugins/shared/saved_search/common/content_management/v1/index.ts similarity index 100% rename from src/plugins/saved_search/common/content_management/v1/index.ts rename to src/platform/plugins/shared/saved_search/common/content_management/v1/index.ts diff --git a/src/plugins/saved_search/common/content_management/v1/types.ts b/src/platform/plugins/shared/saved_search/common/content_management/v1/types.ts similarity index 100% rename from src/plugins/saved_search/common/content_management/v1/types.ts rename to src/platform/plugins/shared/saved_search/common/content_management/v1/types.ts diff --git a/src/plugins/saved_search/common/expressions/index.ts b/src/platform/plugins/shared/saved_search/common/expressions/index.ts similarity index 100% rename from src/plugins/saved_search/common/expressions/index.ts rename to src/platform/plugins/shared/saved_search/common/expressions/index.ts diff --git a/src/plugins/saved_search/common/expressions/kibana_context.test.ts b/src/platform/plugins/shared/saved_search/common/expressions/kibana_context.test.ts similarity index 100% rename from src/plugins/saved_search/common/expressions/kibana_context.test.ts rename to src/platform/plugins/shared/saved_search/common/expressions/kibana_context.test.ts diff --git a/src/plugins/saved_search/common/expressions/kibana_context.ts b/src/platform/plugins/shared/saved_search/common/expressions/kibana_context.ts similarity index 100% rename from src/plugins/saved_search/common/expressions/kibana_context.ts rename to src/platform/plugins/shared/saved_search/common/expressions/kibana_context.ts diff --git a/src/plugins/saved_search/common/expressions/kibana_context_type.ts b/src/platform/plugins/shared/saved_search/common/expressions/kibana_context_type.ts similarity index 100% rename from src/plugins/saved_search/common/expressions/kibana_context_type.ts rename to src/platform/plugins/shared/saved_search/common/expressions/kibana_context_type.ts diff --git a/src/plugins/saved_search/common/index.ts b/src/platform/plugins/shared/saved_search/common/index.ts similarity index 100% rename from src/plugins/saved_search/common/index.ts rename to src/platform/plugins/shared/saved_search/common/index.ts diff --git a/src/plugins/saved_search/common/saved_searches_url.test.ts b/src/platform/plugins/shared/saved_search/common/saved_searches_url.test.ts similarity index 100% rename from src/plugins/saved_search/common/saved_searches_url.test.ts rename to src/platform/plugins/shared/saved_search/common/saved_searches_url.test.ts diff --git a/src/plugins/saved_search/common/saved_searches_url.ts b/src/platform/plugins/shared/saved_search/common/saved_searches_url.ts similarity index 100% rename from src/plugins/saved_search/common/saved_searches_url.ts rename to src/platform/plugins/shared/saved_search/common/saved_searches_url.ts diff --git a/src/plugins/saved_search/common/saved_searches_utils.ts b/src/platform/plugins/shared/saved_search/common/saved_searches_utils.ts similarity index 100% rename from src/plugins/saved_search/common/saved_searches_utils.ts rename to src/platform/plugins/shared/saved_search/common/saved_searches_utils.ts diff --git a/src/plugins/saved_search/common/service/get_saved_searches.test.ts b/src/platform/plugins/shared/saved_search/common/service/get_saved_searches.test.ts similarity index 100% rename from src/plugins/saved_search/common/service/get_saved_searches.test.ts rename to src/platform/plugins/shared/saved_search/common/service/get_saved_searches.test.ts diff --git a/src/plugins/saved_search/common/service/get_saved_searches.ts b/src/platform/plugins/shared/saved_search/common/service/get_saved_searches.ts similarity index 100% rename from src/plugins/saved_search/common/service/get_saved_searches.ts rename to src/platform/plugins/shared/saved_search/common/service/get_saved_searches.ts diff --git a/src/plugins/saved_search/common/service/saved_searches_utils.test.ts b/src/platform/plugins/shared/saved_search/common/service/saved_searches_utils.test.ts similarity index 100% rename from src/plugins/saved_search/common/service/saved_searches_utils.test.ts rename to src/platform/plugins/shared/saved_search/common/service/saved_searches_utils.test.ts diff --git a/src/plugins/saved_search/common/service/saved_searches_utils.ts b/src/platform/plugins/shared/saved_search/common/service/saved_searches_utils.ts similarity index 100% rename from src/plugins/saved_search/common/service/saved_searches_utils.ts rename to src/platform/plugins/shared/saved_search/common/service/saved_searches_utils.ts diff --git a/src/plugins/saved_search/common/types.ts b/src/platform/plugins/shared/saved_search/common/types.ts similarity index 100% rename from src/plugins/saved_search/common/types.ts rename to src/platform/plugins/shared/saved_search/common/types.ts diff --git a/src/platform/plugins/shared/saved_search/jest.config.js b/src/platform/plugins/shared/saved_search/jest.config.js new file mode 100644 index 0000000000000..018336f9624c7 --- /dev/null +++ b/src/platform/plugins/shared/saved_search/jest.config.js @@ -0,0 +1,20 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/saved_search'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_search', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/saved_search/{common,public,server}/**/*.{js,ts,tsx}', + ], +}; diff --git a/src/plugins/saved_search/kibana.jsonc b/src/platform/plugins/shared/saved_search/kibana.jsonc similarity index 100% rename from src/plugins/saved_search/kibana.jsonc rename to src/platform/plugins/shared/saved_search/kibana.jsonc diff --git a/src/plugins/saved_search/public/expressions/kibana_context.ts b/src/platform/plugins/shared/saved_search/public/expressions/kibana_context.ts similarity index 100% rename from src/plugins/saved_search/public/expressions/kibana_context.ts rename to src/platform/plugins/shared/saved_search/public/expressions/kibana_context.ts diff --git a/src/plugins/saved_search/public/index.ts b/src/platform/plugins/shared/saved_search/public/index.ts similarity index 100% rename from src/plugins/saved_search/public/index.ts rename to src/platform/plugins/shared/saved_search/public/index.ts diff --git a/src/plugins/saved_search/public/mocks.ts b/src/platform/plugins/shared/saved_search/public/mocks.ts similarity index 100% rename from src/plugins/saved_search/public/mocks.ts rename to src/platform/plugins/shared/saved_search/public/mocks.ts diff --git a/src/plugins/saved_search/public/plugin.ts b/src/platform/plugins/shared/saved_search/public/plugin.ts similarity index 100% rename from src/plugins/saved_search/public/plugin.ts rename to src/platform/plugins/shared/saved_search/public/plugin.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/check_for_duplicate_title.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/check_for_duplicate_title.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/check_for_duplicate_title.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/check_for_duplicate_title.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/constants.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/constants.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/constants.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/constants.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/create_get_saved_search_deps.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/create_get_saved_search_deps.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/create_get_saved_search_deps.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/create_get_saved_search_deps.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/index.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/index.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/index.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/index.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/save_saved_searches.test.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/save_saved_searches.test.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/save_saved_searches.test.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/save_saved_searches.test.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/save_saved_searches.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/save_saved_searches.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/save_saved_searches.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/save_saved_searches.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/saved_searches_service.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/saved_searches_service.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/saved_searches_service.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/saved_searches_service.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/to_saved_search.test.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/to_saved_search.test.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/to_saved_search.test.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/to_saved_search.test.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/to_saved_search.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/to_saved_search.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/to_saved_search.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/to_saved_search.ts diff --git a/src/plugins/saved_search/public/services/saved_searches/types.ts b/src/platform/plugins/shared/saved_search/public/services/saved_searches/types.ts similarity index 100% rename from src/plugins/saved_search/public/services/saved_searches/types.ts rename to src/platform/plugins/shared/saved_search/public/services/saved_searches/types.ts diff --git a/src/plugins/saved_search/server/content_management/index.ts b/src/platform/plugins/shared/saved_search/server/content_management/index.ts similarity index 100% rename from src/plugins/saved_search/server/content_management/index.ts rename to src/platform/plugins/shared/saved_search/server/content_management/index.ts diff --git a/src/plugins/saved_search/server/content_management/saved_search_storage.ts b/src/platform/plugins/shared/saved_search/server/content_management/saved_search_storage.ts similarity index 100% rename from src/plugins/saved_search/server/content_management/saved_search_storage.ts rename to src/platform/plugins/shared/saved_search/server/content_management/saved_search_storage.ts diff --git a/src/plugins/saved_search/server/content_management/schema/cm_services.ts b/src/platform/plugins/shared/saved_search/server/content_management/schema/cm_services.ts similarity index 100% rename from src/plugins/saved_search/server/content_management/schema/cm_services.ts rename to src/platform/plugins/shared/saved_search/server/content_management/schema/cm_services.ts diff --git a/src/plugins/saved_search/server/content_management/schema/v1/cm_services.ts b/src/platform/plugins/shared/saved_search/server/content_management/schema/v1/cm_services.ts similarity index 100% rename from src/plugins/saved_search/server/content_management/schema/v1/cm_services.ts rename to src/platform/plugins/shared/saved_search/server/content_management/schema/v1/cm_services.ts diff --git a/src/plugins/saved_search/server/expressions/kibana_context.ts b/src/platform/plugins/shared/saved_search/server/expressions/kibana_context.ts similarity index 100% rename from src/plugins/saved_search/server/expressions/kibana_context.ts rename to src/platform/plugins/shared/saved_search/server/expressions/kibana_context.ts diff --git a/src/plugins/saved_search/server/index.ts b/src/platform/plugins/shared/saved_search/server/index.ts similarity index 100% rename from src/plugins/saved_search/server/index.ts rename to src/platform/plugins/shared/saved_search/server/index.ts diff --git a/src/plugins/saved_search/server/plugin.ts b/src/platform/plugins/shared/saved_search/server/plugin.ts similarity index 100% rename from src/plugins/saved_search/server/plugin.ts rename to src/platform/plugins/shared/saved_search/server/plugin.ts diff --git a/src/plugins/saved_search/server/saved_objects/index.ts b/src/platform/plugins/shared/saved_search/server/saved_objects/index.ts similarity index 100% rename from src/plugins/saved_search/server/saved_objects/index.ts rename to src/platform/plugins/shared/saved_search/server/saved_objects/index.ts diff --git a/src/plugins/saved_search/server/saved_objects/schema.ts b/src/platform/plugins/shared/saved_search/server/saved_objects/schema.ts similarity index 100% rename from src/plugins/saved_search/server/saved_objects/schema.ts rename to src/platform/plugins/shared/saved_search/server/saved_objects/schema.ts diff --git a/src/plugins/saved_search/server/saved_objects/search.ts b/src/platform/plugins/shared/saved_search/server/saved_objects/search.ts similarity index 100% rename from src/plugins/saved_search/server/saved_objects/search.ts rename to src/platform/plugins/shared/saved_search/server/saved_objects/search.ts diff --git a/src/plugins/saved_search/server/saved_objects/search_migrations.test.ts b/src/platform/plugins/shared/saved_search/server/saved_objects/search_migrations.test.ts similarity index 100% rename from src/plugins/saved_search/server/saved_objects/search_migrations.test.ts rename to src/platform/plugins/shared/saved_search/server/saved_objects/search_migrations.test.ts diff --git a/src/plugins/saved_search/server/saved_objects/search_migrations.ts b/src/platform/plugins/shared/saved_search/server/saved_objects/search_migrations.ts similarity index 100% rename from src/plugins/saved_search/server/saved_objects/search_migrations.ts rename to src/platform/plugins/shared/saved_search/server/saved_objects/search_migrations.ts diff --git a/src/plugins/saved_search/server/services/saved_searches/get_saved_searches.ts b/src/platform/plugins/shared/saved_search/server/services/saved_searches/get_saved_searches.ts similarity index 100% rename from src/plugins/saved_search/server/services/saved_searches/get_saved_searches.ts rename to src/platform/plugins/shared/saved_search/server/services/saved_searches/get_saved_searches.ts diff --git a/src/plugins/saved_search/server/services/saved_searches/index.ts b/src/platform/plugins/shared/saved_search/server/services/saved_searches/index.ts similarity index 100% rename from src/plugins/saved_search/server/services/saved_searches/index.ts rename to src/platform/plugins/shared/saved_search/server/services/saved_searches/index.ts diff --git a/src/plugins/saved_search/tsconfig.json b/src/platform/plugins/shared/saved_search/tsconfig.json similarity index 91% rename from src/plugins/saved_search/tsconfig.json rename to src/platform/plugins/shared/saved_search/tsconfig.json index 803e2b010d952..bcea4f5a8784d 100644 --- a/src/plugins/saved_search/tsconfig.json +++ b/src/platform/plugins/shared/saved_search/tsconfig.json @@ -1,9 +1,9 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, - "include": ["common/**/*", "public/**/*", "server/**/*", "../../../typings/**/*"], + "include": ["common/**/*", "public/**/*", "server/**/*", "../../../../../typings/**/*"], "kbn_references": [ "@kbn/core", "@kbn/data-plugin", diff --git a/src/plugins/unified_doc_viewer/README.md b/src/platform/plugins/shared/unified_doc_viewer/README.md similarity index 100% rename from src/plugins/unified_doc_viewer/README.md rename to src/platform/plugins/shared/unified_doc_viewer/README.md diff --git a/src/platform/plugins/shared/unified_doc_viewer/jest.config.js b/src/platform/plugins/shared/unified_doc_viewer/jest.config.js new file mode 100644 index 0000000000000..4ba450f07713d --- /dev/null +++ b/src/platform/plugins/shared/unified_doc_viewer/jest.config.js @@ -0,0 +1,20 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/unified_doc_viewer'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/unified_doc_viewer', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/unified_doc_viewer/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/unified_doc_viewer/kibana.jsonc b/src/platform/plugins/shared/unified_doc_viewer/kibana.jsonc similarity index 100% rename from src/plugins/unified_doc_viewer/kibana.jsonc rename to src/platform/plugins/shared/unified_doc_viewer/kibana.jsonc diff --git a/src/plugins/unified_doc_viewer/public/__mocks__/index.ts b/src/platform/plugins/shared/unified_doc_viewer/public/__mocks__/index.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/__mocks__/index.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/__mocks__/index.ts diff --git a/src/plugins/unified_doc_viewer/public/__mocks__/services.ts b/src/platform/plugins/shared/unified_doc_viewer/public/__mocks__/services.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/__mocks__/services.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/__mocks__/services.ts diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer/doc_viewer.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer/doc_viewer.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer/doc_viewer.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer/doc_viewer.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer/index.ts b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer/index.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer/index.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer/index.ts diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_flyout/doc_viewer_flyout.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_flyout/doc_viewer_flyout.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_flyout/doc_viewer_flyout.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_flyout/doc_viewer_flyout.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_flyout/index.ts b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_flyout/index.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_flyout/index.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_flyout/index.ts diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_flyout/use_flyout_a11y.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_flyout/use_flyout_a11y.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_flyout/use_flyout_a11y.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_flyout/use_flyout_a11y.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/index.ts b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/index.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/index.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/index.ts diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.test.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.test.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.test.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_degraded_fields.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_degraded_fields.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_degraded_fields.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_degraded_fields.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_header.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_header.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_header.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_header.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_highlights.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_highlights.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_highlights.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_highlights.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field_description.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field_description.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field_description.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_field_description.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_section.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_section.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_section.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/highlight_section.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/hover_popover_action.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/hover_popover_action.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/hover_popover_action.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/hover_popover_action.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/log_level.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/log_level.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/log_level.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/log_level.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/service_name_highlight_field.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/service_name_highlight_field.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/service_name_highlight_field.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/service_name_highlight_field.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/timestamp.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/timestamp.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/timestamp.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/timestamp.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/trace_id_highlight_field.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/trace_id_highlight_field.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/trace_id_highlight_field.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_logs_overview/sub_components/trace_id_highlight_field.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_source/get_height.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/get_height.test.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_source/get_height.test.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/get_height.test.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_source/get_height.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/get_height.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_source/get_height.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/get_height.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_source/index.ts b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/index.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_source/index.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/index.ts diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_source/source.scss b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/source.scss similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_source/source.scss rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/source.scss diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_source/source.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/source.test.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_source/source.test.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/source.test.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_source/source.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/source.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_source/source.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_source/source.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/__snapshots__/table_cell_actions.test.tsx.snap b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/__snapshots__/table_cell_actions.test.tsx.snap similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/__snapshots__/table_cell_actions.test.tsx.snap rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/__snapshots__/table_cell_actions.test.tsx.snap diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/field_row.ts b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/field_row.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/field_row.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/field_row.ts diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.test.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.test.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.test.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/get_pin_control.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/index.ts b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/index.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/index.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/index.ts diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table.scss b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table.scss similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table.scss rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table.scss diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table.test.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table.test.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table.test.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.test.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.test.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.test.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell_actions.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.test.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.test.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.test.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_cell_value.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_filters.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_filters.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/table_filters.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/table_filters.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_table/test_filters.test.ts b/src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/test_filters.test.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/doc_viewer_table/test_filters.test.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_table/test_filters.test.ts diff --git a/src/plugins/unified_doc_viewer/public/components/index.ts b/src/platform/plugins/shared/unified_doc_viewer/public/components/index.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/index.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/components/index.ts diff --git a/src/plugins/unified_doc_viewer/public/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap b/src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap rename to src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/__snapshots__/json_code_editor.test.tsx.snap diff --git a/src/plugins/unified_doc_viewer/public/components/json_code_editor/index.ts b/src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/index.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/json_code_editor/index.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/index.ts diff --git a/src/plugins/unified_doc_viewer/public/components/json_code_editor/json_code_editor.scss b/src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/json_code_editor.scss similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/json_code_editor/json_code_editor.scss rename to src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/json_code_editor.scss diff --git a/src/plugins/unified_doc_viewer/public/components/json_code_editor/json_code_editor.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/json_code_editor.test.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/json_code_editor/json_code_editor.test.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/json_code_editor.test.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/json_code_editor/json_code_editor.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/json_code_editor.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/json_code_editor/json_code_editor.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/json_code_editor.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/json_code_editor/json_code_editor_common.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/json_code_editor_common.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/json_code_editor/json_code_editor_common.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/json_code_editor/json_code_editor_common.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/lazy_doc_viewer.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/lazy_doc_viewer.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/lazy_doc_viewer.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/lazy_doc_viewer.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/lazy_doc_viewer_flyout.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/lazy_doc_viewer_flyout.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/lazy_doc_viewer_flyout.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/lazy_doc_viewer_flyout.tsx diff --git a/src/plugins/unified_doc_viewer/public/components/lazy_doc_viewer_logs_overview.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/components/lazy_doc_viewer_logs_overview.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/components/lazy_doc_viewer_logs_overview.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/components/lazy_doc_viewer_logs_overview.tsx diff --git a/src/plugins/unified_doc_viewer/public/hooks/index.ts b/src/platform/plugins/shared/unified_doc_viewer/public/hooks/index.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/hooks/index.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/hooks/index.ts diff --git a/src/plugins/unified_doc_viewer/public/hooks/use_es_doc_search.test.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/hooks/use_es_doc_search.test.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/hooks/use_es_doc_search.test.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/hooks/use_es_doc_search.test.tsx diff --git a/src/plugins/unified_doc_viewer/public/hooks/use_es_doc_search.ts b/src/platform/plugins/shared/unified_doc_viewer/public/hooks/use_es_doc_search.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/hooks/use_es_doc_search.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/hooks/use_es_doc_search.ts diff --git a/src/plugins/unified_doc_viewer/public/hooks/use_field_actions.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/hooks/use_field_actions.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/hooks/use_field_actions.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/hooks/use_field_actions.tsx diff --git a/src/plugins/unified_doc_viewer/public/index.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/index.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/index.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/index.tsx diff --git a/src/plugins/unified_doc_viewer/public/plugin.tsx b/src/platform/plugins/shared/unified_doc_viewer/public/plugin.tsx similarity index 100% rename from src/plugins/unified_doc_viewer/public/plugin.tsx rename to src/platform/plugins/shared/unified_doc_viewer/public/plugin.tsx diff --git a/src/plugins/unified_doc_viewer/public/types.ts b/src/platform/plugins/shared/unified_doc_viewer/public/types.ts similarity index 100% rename from src/plugins/unified_doc_viewer/public/types.ts rename to src/platform/plugins/shared/unified_doc_viewer/public/types.ts diff --git a/src/plugins/unified_doc_viewer/tsconfig.json b/src/platform/plugins/shared/unified_doc_viewer/tsconfig.json similarity index 88% rename from src/plugins/unified_doc_viewer/tsconfig.json rename to src/platform/plugins/shared/unified_doc_viewer/tsconfig.json index fb896fdace3e7..5ccf221a1e11d 100644 --- a/src/plugins/unified_doc_viewer/tsconfig.json +++ b/src/platform/plugins/shared/unified_doc_viewer/tsconfig.json @@ -1,9 +1,9 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, - "include": [ "../../../typings/**/*", "common/**/*", "public/**/*", "server/**/*"], + "include": [ "../../../../../typings/**/*", "common/**/*", "public/**/*", "server/**/*"], "kbn_references": [ "@kbn/kibana-react-plugin", "@kbn/monaco", diff --git a/src/plugins/unified_histogram/README.md b/src/platform/plugins/shared/unified_histogram/README.md similarity index 100% rename from src/plugins/unified_histogram/README.md rename to src/platform/plugins/shared/unified_histogram/README.md diff --git a/src/platform/plugins/shared/unified_histogram/jest.config.js b/src/platform/plugins/shared/unified_histogram/jest.config.js new file mode 100644 index 0000000000000..f46df29532988 --- /dev/null +++ b/src/platform/plugins/shared/unified_histogram/jest.config.js @@ -0,0 +1,20 @@ +/* + * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/unified_histogram'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/unified_histogram', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/unified_histogram/{common,public,server}/**/*.{ts,tsx}', + ], +}; diff --git a/src/plugins/unified_histogram/kibana.jsonc b/src/platform/plugins/shared/unified_histogram/kibana.jsonc similarity index 100% rename from src/plugins/unified_histogram/kibana.jsonc rename to src/platform/plugins/shared/unified_histogram/kibana.jsonc diff --git a/src/plugins/unified_histogram/public/__mocks__/data_view.ts b/src/platform/plugins/shared/unified_histogram/public/__mocks__/data_view.ts similarity index 100% rename from src/plugins/unified_histogram/public/__mocks__/data_view.ts rename to src/platform/plugins/shared/unified_histogram/public/__mocks__/data_view.ts diff --git a/src/plugins/unified_histogram/public/__mocks__/data_view_with_timefield.ts b/src/platform/plugins/shared/unified_histogram/public/__mocks__/data_view_with_timefield.ts similarity index 100% rename from src/plugins/unified_histogram/public/__mocks__/data_view_with_timefield.ts rename to src/platform/plugins/shared/unified_histogram/public/__mocks__/data_view_with_timefield.ts diff --git a/src/plugins/unified_histogram/public/__mocks__/lens_adapters.ts b/src/platform/plugins/shared/unified_histogram/public/__mocks__/lens_adapters.ts similarity index 100% rename from src/plugins/unified_histogram/public/__mocks__/lens_adapters.ts rename to src/platform/plugins/shared/unified_histogram/public/__mocks__/lens_adapters.ts diff --git a/src/plugins/unified_histogram/public/__mocks__/lens_vis.ts b/src/platform/plugins/shared/unified_histogram/public/__mocks__/lens_vis.ts similarity index 100% rename from src/plugins/unified_histogram/public/__mocks__/lens_vis.ts rename to src/platform/plugins/shared/unified_histogram/public/__mocks__/lens_vis.ts diff --git a/src/plugins/unified_histogram/public/__mocks__/services.tsx b/src/platform/plugins/shared/unified_histogram/public/__mocks__/services.tsx similarity index 100% rename from src/plugins/unified_histogram/public/__mocks__/services.tsx rename to src/platform/plugins/shared/unified_histogram/public/__mocks__/services.tsx diff --git a/src/plugins/unified_histogram/public/__mocks__/suggestions.ts b/src/platform/plugins/shared/unified_histogram/public/__mocks__/suggestions.ts similarity index 100% rename from src/plugins/unified_histogram/public/__mocks__/suggestions.ts rename to src/platform/plugins/shared/unified_histogram/public/__mocks__/suggestions.ts diff --git a/src/plugins/unified_histogram/public/__mocks__/table.ts b/src/platform/plugins/shared/unified_histogram/public/__mocks__/table.ts similarity index 100% rename from src/plugins/unified_histogram/public/__mocks__/table.ts rename to src/platform/plugins/shared/unified_histogram/public/__mocks__/table.ts diff --git a/src/plugins/unified_histogram/public/chart/breakdown_field_selector.test.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/breakdown_field_selector.test.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/breakdown_field_selector.test.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/breakdown_field_selector.test.tsx diff --git a/src/plugins/unified_histogram/public/chart/breakdown_field_selector.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/breakdown_field_selector.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/breakdown_field_selector.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/breakdown_field_selector.tsx diff --git a/src/plugins/unified_histogram/public/chart/chart.test.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/chart.test.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/chart.test.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/chart.test.tsx diff --git a/src/plugins/unified_histogram/public/chart/chart.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/chart.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/chart.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/chart.tsx diff --git a/src/plugins/unified_histogram/public/chart/chart_config_panel.test.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/chart_config_panel.test.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/chart_config_panel.test.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/chart_config_panel.test.tsx diff --git a/src/plugins/unified_histogram/public/chart/chart_config_panel.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/chart_config_panel.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/chart_config_panel.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/chart_config_panel.tsx diff --git a/src/plugins/unified_histogram/public/chart/check_chart_availability.ts b/src/platform/plugins/shared/unified_histogram/public/chart/check_chart_availability.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/check_chart_availability.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/check_chart_availability.ts diff --git a/src/plugins/unified_histogram/public/chart/histogram.test.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/histogram.test.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/histogram.test.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/histogram.test.tsx diff --git a/src/plugins/unified_histogram/public/chart/histogram.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/histogram.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/histogram.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/histogram.tsx diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_chart_actions.test.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_chart_actions.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_chart_actions.test.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_chart_actions.test.ts diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_chart_actions.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_chart_actions.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_chart_actions.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_chart_actions.ts diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_chart_styles.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_chart_styles.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_chart_styles.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_chart_styles.tsx diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_edit_visualization.test.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_edit_visualization.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_edit_visualization.test.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_edit_visualization.test.ts diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_edit_visualization.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_edit_visualization.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_edit_visualization.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_edit_visualization.ts diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_lens_props.test.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_lens_props.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_lens_props.test.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_lens_props.test.ts diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_lens_props.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_lens_props.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_lens_props.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_lens_props.ts diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_refetch.test.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_refetch.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_refetch.test.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_refetch.test.ts diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_refetch.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_refetch.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_refetch.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_refetch.ts diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_time_range.test.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_time_range.test.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_time_range.test.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_time_range.test.tsx diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_time_range.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_time_range.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_time_range.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_time_range.tsx diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_total_hits.test.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_total_hits.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_total_hits.test.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_total_hits.test.ts diff --git a/src/plugins/unified_histogram/public/chart/hooks/use_total_hits.ts b/src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_total_hits.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/hooks/use_total_hits.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/hooks/use_total_hits.ts diff --git a/src/plugins/unified_histogram/public/chart/index.ts b/src/platform/plugins/shared/unified_histogram/public/chart/index.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/index.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/index.ts diff --git a/src/plugins/unified_histogram/public/chart/lazy.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/lazy.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/lazy.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/lazy.tsx diff --git a/src/plugins/unified_histogram/public/chart/time_interval_selector.test.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/time_interval_selector.test.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/time_interval_selector.test.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/time_interval_selector.test.tsx diff --git a/src/plugins/unified_histogram/public/chart/time_interval_selector.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/time_interval_selector.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/time_interval_selector.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/time_interval_selector.tsx diff --git a/src/plugins/unified_histogram/public/chart/toolbar_selector.tsx b/src/platform/plugins/shared/unified_histogram/public/chart/toolbar_selector.tsx similarity index 100% rename from src/plugins/unified_histogram/public/chart/toolbar_selector.tsx rename to src/platform/plugins/shared/unified_histogram/public/chart/toolbar_selector.tsx diff --git a/src/plugins/unified_histogram/public/chart/utils/build_bucket_interval.test.ts b/src/platform/plugins/shared/unified_histogram/public/chart/utils/build_bucket_interval.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/utils/build_bucket_interval.test.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/utils/build_bucket_interval.test.ts diff --git a/src/plugins/unified_histogram/public/chart/utils/build_bucket_interval.ts b/src/platform/plugins/shared/unified_histogram/public/chart/utils/build_bucket_interval.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/utils/build_bucket_interval.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/utils/build_bucket_interval.ts diff --git a/src/plugins/unified_histogram/public/chart/utils/get_chart_agg_config.test.ts b/src/platform/plugins/shared/unified_histogram/public/chart/utils/get_chart_agg_config.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/utils/get_chart_agg_config.test.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/utils/get_chart_agg_config.test.ts diff --git a/src/plugins/unified_histogram/public/chart/utils/get_chart_agg_configs.ts b/src/platform/plugins/shared/unified_histogram/public/chart/utils/get_chart_agg_configs.ts similarity index 100% rename from src/plugins/unified_histogram/public/chart/utils/get_chart_agg_configs.ts rename to src/platform/plugins/shared/unified_histogram/public/chart/utils/get_chart_agg_configs.ts diff --git a/src/plugins/unified_histogram/public/container/container.test.tsx b/src/platform/plugins/shared/unified_histogram/public/container/container.test.tsx similarity index 100% rename from src/plugins/unified_histogram/public/container/container.test.tsx rename to src/platform/plugins/shared/unified_histogram/public/container/container.test.tsx diff --git a/src/plugins/unified_histogram/public/container/container.tsx b/src/platform/plugins/shared/unified_histogram/public/container/container.tsx similarity index 100% rename from src/plugins/unified_histogram/public/container/container.tsx rename to src/platform/plugins/shared/unified_histogram/public/container/container.tsx diff --git a/src/plugins/unified_histogram/public/container/hooks/use_state_props.test.ts b/src/platform/plugins/shared/unified_histogram/public/container/hooks/use_state_props.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/container/hooks/use_state_props.test.ts rename to src/platform/plugins/shared/unified_histogram/public/container/hooks/use_state_props.test.ts diff --git a/src/plugins/unified_histogram/public/container/hooks/use_state_props.ts b/src/platform/plugins/shared/unified_histogram/public/container/hooks/use_state_props.ts similarity index 100% rename from src/plugins/unified_histogram/public/container/hooks/use_state_props.ts rename to src/platform/plugins/shared/unified_histogram/public/container/hooks/use_state_props.ts diff --git a/src/plugins/unified_histogram/public/container/index.tsx b/src/platform/plugins/shared/unified_histogram/public/container/index.tsx similarity index 100% rename from src/plugins/unified_histogram/public/container/index.tsx rename to src/platform/plugins/shared/unified_histogram/public/container/index.tsx diff --git a/src/plugins/unified_histogram/public/container/services/state_service.test.ts b/src/platform/plugins/shared/unified_histogram/public/container/services/state_service.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/container/services/state_service.test.ts rename to src/platform/plugins/shared/unified_histogram/public/container/services/state_service.test.ts diff --git a/src/plugins/unified_histogram/public/container/services/state_service.ts b/src/platform/plugins/shared/unified_histogram/public/container/services/state_service.ts similarity index 100% rename from src/plugins/unified_histogram/public/container/services/state_service.ts rename to src/platform/plugins/shared/unified_histogram/public/container/services/state_service.ts diff --git a/src/plugins/unified_histogram/public/container/utils/local_storage_utils.test.ts b/src/platform/plugins/shared/unified_histogram/public/container/utils/local_storage_utils.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/container/utils/local_storage_utils.test.ts rename to src/platform/plugins/shared/unified_histogram/public/container/utils/local_storage_utils.test.ts diff --git a/src/plugins/unified_histogram/public/container/utils/local_storage_utils.ts b/src/platform/plugins/shared/unified_histogram/public/container/utils/local_storage_utils.ts similarity index 100% rename from src/plugins/unified_histogram/public/container/utils/local_storage_utils.ts rename to src/platform/plugins/shared/unified_histogram/public/container/utils/local_storage_utils.ts diff --git a/src/plugins/unified_histogram/public/container/utils/state_selectors.ts b/src/platform/plugins/shared/unified_histogram/public/container/utils/state_selectors.ts similarity index 100% rename from src/plugins/unified_histogram/public/container/utils/state_selectors.ts rename to src/platform/plugins/shared/unified_histogram/public/container/utils/state_selectors.ts diff --git a/src/plugins/unified_histogram/public/container/utils/use_state_selector.ts b/src/platform/plugins/shared/unified_histogram/public/container/utils/use_state_selector.ts similarity index 100% rename from src/plugins/unified_histogram/public/container/utils/use_state_selector.ts rename to src/platform/plugins/shared/unified_histogram/public/container/utils/use_state_selector.ts diff --git a/src/plugins/unified_histogram/public/hooks/use_request_params.test.ts b/src/platform/plugins/shared/unified_histogram/public/hooks/use_request_params.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/hooks/use_request_params.test.ts rename to src/platform/plugins/shared/unified_histogram/public/hooks/use_request_params.test.ts diff --git a/src/plugins/unified_histogram/public/hooks/use_request_params.tsx b/src/platform/plugins/shared/unified_histogram/public/hooks/use_request_params.tsx similarity index 100% rename from src/plugins/unified_histogram/public/hooks/use_request_params.tsx rename to src/platform/plugins/shared/unified_histogram/public/hooks/use_request_params.tsx diff --git a/src/plugins/unified_histogram/public/hooks/use_stable_callback.test.ts b/src/platform/plugins/shared/unified_histogram/public/hooks/use_stable_callback.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/hooks/use_stable_callback.test.ts rename to src/platform/plugins/shared/unified_histogram/public/hooks/use_stable_callback.test.ts diff --git a/src/plugins/unified_histogram/public/hooks/use_stable_callback.ts b/src/platform/plugins/shared/unified_histogram/public/hooks/use_stable_callback.ts similarity index 100% rename from src/plugins/unified_histogram/public/hooks/use_stable_callback.ts rename to src/platform/plugins/shared/unified_histogram/public/hooks/use_stable_callback.ts diff --git a/src/plugins/unified_histogram/public/index.ts b/src/platform/plugins/shared/unified_histogram/public/index.ts similarity index 100% rename from src/plugins/unified_histogram/public/index.ts rename to src/platform/plugins/shared/unified_histogram/public/index.ts diff --git a/src/plugins/unified_histogram/public/layout/index.ts b/src/platform/plugins/shared/unified_histogram/public/layout/index.ts similarity index 100% rename from src/plugins/unified_histogram/public/layout/index.ts rename to src/platform/plugins/shared/unified_histogram/public/layout/index.ts diff --git a/src/plugins/unified_histogram/public/layout/layout.test.tsx b/src/platform/plugins/shared/unified_histogram/public/layout/layout.test.tsx similarity index 100% rename from src/plugins/unified_histogram/public/layout/layout.test.tsx rename to src/platform/plugins/shared/unified_histogram/public/layout/layout.test.tsx diff --git a/src/plugins/unified_histogram/public/layout/layout.tsx b/src/platform/plugins/shared/unified_histogram/public/layout/layout.tsx similarity index 100% rename from src/plugins/unified_histogram/public/layout/layout.tsx rename to src/platform/plugins/shared/unified_histogram/public/layout/layout.tsx diff --git a/src/plugins/unified_histogram/public/mocks.ts b/src/platform/plugins/shared/unified_histogram/public/mocks.ts similarity index 100% rename from src/plugins/unified_histogram/public/mocks.ts rename to src/platform/plugins/shared/unified_histogram/public/mocks.ts diff --git a/src/plugins/unified_histogram/public/plugin.ts b/src/platform/plugins/shared/unified_histogram/public/plugin.ts similarity index 100% rename from src/plugins/unified_histogram/public/plugin.ts rename to src/platform/plugins/shared/unified_histogram/public/plugin.ts diff --git a/src/plugins/unified_histogram/public/services/lens_vis_service.attributes.test.ts b/src/platform/plugins/shared/unified_histogram/public/services/lens_vis_service.attributes.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/services/lens_vis_service.attributes.test.ts rename to src/platform/plugins/shared/unified_histogram/public/services/lens_vis_service.attributes.test.ts diff --git a/src/plugins/unified_histogram/public/services/lens_vis_service.suggestions.test.ts b/src/platform/plugins/shared/unified_histogram/public/services/lens_vis_service.suggestions.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/services/lens_vis_service.suggestions.test.ts rename to src/platform/plugins/shared/unified_histogram/public/services/lens_vis_service.suggestions.test.ts diff --git a/src/plugins/unified_histogram/public/services/lens_vis_service.ts b/src/platform/plugins/shared/unified_histogram/public/services/lens_vis_service.ts similarity index 100% rename from src/plugins/unified_histogram/public/services/lens_vis_service.ts rename to src/platform/plugins/shared/unified_histogram/public/services/lens_vis_service.ts diff --git a/src/plugins/unified_histogram/public/types.ts b/src/platform/plugins/shared/unified_histogram/public/types.ts similarity index 100% rename from src/plugins/unified_histogram/public/types.ts rename to src/platform/plugins/shared/unified_histogram/public/types.ts diff --git a/src/plugins/unified_histogram/public/utils/__snapshots__/external_vis_context.test.ts.snap b/src/platform/plugins/shared/unified_histogram/public/utils/__snapshots__/external_vis_context.test.ts.snap similarity index 100% rename from src/plugins/unified_histogram/public/utils/__snapshots__/external_vis_context.test.ts.snap rename to src/platform/plugins/shared/unified_histogram/public/utils/__snapshots__/external_vis_context.test.ts.snap diff --git a/src/plugins/unified_histogram/public/utils/compute_interval.test.ts b/src/platform/plugins/shared/unified_histogram/public/utils/compute_interval.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/utils/compute_interval.test.ts rename to src/platform/plugins/shared/unified_histogram/public/utils/compute_interval.test.ts diff --git a/src/plugins/unified_histogram/public/utils/compute_interval.ts b/src/platform/plugins/shared/unified_histogram/public/utils/compute_interval.ts similarity index 100% rename from src/plugins/unified_histogram/public/utils/compute_interval.ts rename to src/platform/plugins/shared/unified_histogram/public/utils/compute_interval.ts diff --git a/src/plugins/unified_histogram/public/utils/external_vis_context.test.ts b/src/platform/plugins/shared/unified_histogram/public/utils/external_vis_context.test.ts similarity index 100% rename from src/plugins/unified_histogram/public/utils/external_vis_context.test.ts rename to src/platform/plugins/shared/unified_histogram/public/utils/external_vis_context.test.ts diff --git a/src/plugins/unified_histogram/public/utils/external_vis_context.ts b/src/platform/plugins/shared/unified_histogram/public/utils/external_vis_context.ts similarity index 100% rename from src/plugins/unified_histogram/public/utils/external_vis_context.ts rename to src/platform/plugins/shared/unified_histogram/public/utils/external_vis_context.ts diff --git a/src/plugins/unified_histogram/public/utils/lens_vis_from_table.ts b/src/platform/plugins/shared/unified_histogram/public/utils/lens_vis_from_table.ts similarity index 100% rename from src/plugins/unified_histogram/public/utils/lens_vis_from_table.ts rename to src/platform/plugins/shared/unified_histogram/public/utils/lens_vis_from_table.ts diff --git a/src/plugins/unified_histogram/tsconfig.json b/src/platform/plugins/shared/unified_histogram/tsconfig.json similarity index 87% rename from src/plugins/unified_histogram/tsconfig.json rename to src/platform/plugins/shared/unified_histogram/tsconfig.json index 68c096665eb79..00244638726b7 100644 --- a/src/plugins/unified_histogram/tsconfig.json +++ b/src/platform/plugins/shared/unified_histogram/tsconfig.json @@ -1,9 +1,9 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, - "include": [ "../../../typings/**/*", "common/**/*", "public/**/*", "server/**/*"], + "include": [ "../../../../../typings/**/*", "common/**/*", "public/**/*", "server/**/*"], "kbn_references": [ "@kbn/core", "@kbn/data-plugin", diff --git a/src/plugins/data_view_editor/jest.config.js b/src/plugins/data_view_editor/jest.config.js deleted file mode 100644 index b8f908d6bbb69..0000000000000 --- a/src/plugins/data_view_editor/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/data_view_editor'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/data_view_editor', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/data_view_editor/public/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/data_view_management/jest.config.js b/src/plugins/data_view_management/jest.config.js deleted file mode 100644 index 9c947ec14b36c..0000000000000 --- a/src/plugins/data_view_management/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/data_view_management'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/data_view_management', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/data_view_management/{public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/data_views/jest.config.js b/src/plugins/data_views/jest.config.js deleted file mode 100644 index 61b823c7cd9c4..0000000000000 --- a/src/plugins/data_views/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/data_views'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/data_views', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/data_views/{common,public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/discover/jest.config.js b/src/plugins/discover/jest.config.js deleted file mode 100644 index d3575ea5597d4..0000000000000 --- a/src/plugins/discover/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/discover'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/discover', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/discover/{common,public,server}/**/*.{js,ts,tsx}'], -}; diff --git a/src/plugins/field_formats/jest.config.js b/src/plugins/field_formats/jest.config.js deleted file mode 100644 index be649b3558e7c..0000000000000 --- a/src/plugins/field_formats/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/field_formats'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/field_formats', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/field_formats/{common,public,server}/**/*.{ts,tsx}'], -}; diff --git a/src/plugins/telemetry/schema/oss_platform.json b/src/plugins/telemetry/schema/oss_platform.json index 7129b51740ffb..d5f6d4427e0a0 100644 --- a/src/plugins/telemetry/schema/oss_platform.json +++ b/src/plugins/telemetry/schema/oss_platform.json @@ -113,6 +113,81 @@ } } } + }, + "index-patterns": { + "properties": { + "indexPatternsCount": { + "type": "long" + }, + "indexPatternsWithScriptedFieldCount": { + "type": "long" + }, + "indexPatternsWithRuntimeFieldCount": { + "type": "long" + }, + "scriptedFieldCount": { + "type": "long" + }, + "runtimeFieldCount": { + "type": "long" + }, + "perIndexPattern": { + "properties": { + "scriptedFieldCount": { + "properties": { + "min": { + "type": "long" + }, + "max": { + "type": "long" + }, + "avg": { + "type": "float" + } + } + }, + "runtimeFieldCount": { + "properties": { + "min": { + "type": "long" + }, + "max": { + "type": "long" + }, + "avg": { + "type": "float" + } + } + }, + "scriptedFieldLineCount": { + "properties": { + "min": { + "type": "long" + }, + "max": { + "type": "long" + }, + "avg": { + "type": "float" + } + } + }, + "runtimeFieldLineCount": { + "properties": { + "min": { + "type": "long" + }, + "max": { + "type": "long" + }, + "avg": { + "type": "float" + } + } + } + } + } + } } } } diff --git a/src/plugins/telemetry/schema/oss_plugins.json b/src/plugins/telemetry/schema/oss_plugins.json index 56fd92fedb63c..0e324ad0b4343 100644 --- a/src/plugins/telemetry/schema/oss_plugins.json +++ b/src/plugins/telemetry/schema/oss_plugins.json @@ -9890,81 +9890,6 @@ } } }, - "index-patterns": { - "properties": { - "indexPatternsCount": { - "type": "long" - }, - "indexPatternsWithScriptedFieldCount": { - "type": "long" - }, - "indexPatternsWithRuntimeFieldCount": { - "type": "long" - }, - "scriptedFieldCount": { - "type": "long" - }, - "runtimeFieldCount": { - "type": "long" - }, - "perIndexPattern": { - "properties": { - "scriptedFieldCount": { - "properties": { - "min": { - "type": "long" - }, - "max": { - "type": "long" - }, - "avg": { - "type": "float" - } - } - }, - "runtimeFieldCount": { - "properties": { - "min": { - "type": "long" - }, - "max": { - "type": "long" - }, - "avg": { - "type": "float" - } - } - }, - "scriptedFieldLineCount": { - "properties": { - "min": { - "type": "long" - }, - "max": { - "type": "long" - }, - "avg": { - "type": "float" - } - } - }, - "runtimeFieldLineCount": { - "properties": { - "min": { - "type": "long" - }, - "max": { - "type": "long" - }, - "avg": { - "type": "float" - } - } - } - } - } - } - }, "kibana": { "properties": { "index": { diff --git a/src/plugins/unified_doc_viewer/jest.config.js b/src/plugins/unified_doc_viewer/jest.config.js deleted file mode 100644 index 3ee5b0cda3ecf..0000000000000 --- a/src/plugins/unified_doc_viewer/jest.config.js +++ /dev/null @@ -1,19 +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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/unified_doc_viewer'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/unified_doc_viewer', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/src/plugins/unified_doc_viewer/{common,public,server}/**/*.{ts,tsx}', - ], -}; diff --git a/src/plugins/unified_histogram/jest.config.js b/src/plugins/unified_histogram/jest.config.js deleted file mode 100644 index 102eab19f07e6..0000000000000 --- a/src/plugins/unified_histogram/jest.config.js +++ /dev/null @@ -1,19 +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", the "GNU Affero General Public License v3.0 only", and the "Server Side - * Public License v 1"; you may not use this file except in compliance with, at - * your election, the "Elastic License 2.0", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/unified_histogram'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/unified_histogram', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/src/plugins/unified_histogram/{common,public,server}/**/*.{ts,tsx}', - ], -}; diff --git a/tsconfig.base.json b/tsconfig.base.json index 42625f707016e..2f013ee04c273 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -224,8 +224,8 @@ "@kbn/content-management-table-list-view-table/*": ["packages/content-management/table_list_view_table/*"], "@kbn/content-management-user-profiles": ["packages/content-management/user_profiles"], "@kbn/content-management-user-profiles/*": ["packages/content-management/user_profiles/*"], - "@kbn/content-management-utils": ["packages/kbn-content-management-utils"], - "@kbn/content-management-utils/*": ["packages/kbn-content-management-utils/*"], + "@kbn/content-management-utils": ["src/platform/packages/shared/kbn-content-management-utils"], + "@kbn/content-management-utils/*": ["src/platform/packages/shared/kbn-content-management-utils/*"], "@kbn/controls-example-plugin": ["examples/controls_example"], "@kbn/controls-example-plugin/*": ["examples/controls_example/*"], "@kbn/controls-plugin": ["src/platform/plugins/shared/controls"], @@ -712,26 +712,26 @@ "@kbn/data-stream-adapter/*": ["x-pack/solutions/security/packages/data-stream-adapter/*"], "@kbn/data-usage-plugin": ["x-pack/platform/plugins/private/data_usage"], "@kbn/data-usage-plugin/*": ["x-pack/platform/plugins/private/data_usage/*"], - "@kbn/data-view-editor-plugin": ["src/plugins/data_view_editor"], - "@kbn/data-view-editor-plugin/*": ["src/plugins/data_view_editor/*"], + "@kbn/data-view-editor-plugin": ["src/platform/plugins/shared/data_view_editor"], + "@kbn/data-view-editor-plugin/*": ["src/platform/plugins/shared/data_view_editor/*"], "@kbn/data-view-field-editor-example-plugin": ["examples/data_view_field_editor_example"], "@kbn/data-view-field-editor-example-plugin/*": ["examples/data_view_field_editor_example/*"], - "@kbn/data-view-field-editor-plugin": ["src/plugins/data_view_field_editor"], - "@kbn/data-view-field-editor-plugin/*": ["src/plugins/data_view_field_editor/*"], - "@kbn/data-view-management-plugin": ["src/plugins/data_view_management"], - "@kbn/data-view-management-plugin/*": ["src/plugins/data_view_management/*"], - "@kbn/data-view-utils": ["packages/kbn-data-view-utils"], - "@kbn/data-view-utils/*": ["packages/kbn-data-view-utils/*"], - "@kbn/data-views-plugin": ["src/plugins/data_views"], - "@kbn/data-views-plugin/*": ["src/plugins/data_views/*"], + "@kbn/data-view-field-editor-plugin": ["src/platform/plugins/shared/data_view_field_editor"], + "@kbn/data-view-field-editor-plugin/*": ["src/platform/plugins/shared/data_view_field_editor/*"], + "@kbn/data-view-management-plugin": ["src/platform/plugins/shared/data_view_management"], + "@kbn/data-view-management-plugin/*": ["src/platform/plugins/shared/data_view_management/*"], + "@kbn/data-view-utils": ["src/platform/packages/shared/kbn-data-view-utils"], + "@kbn/data-view-utils/*": ["src/platform/packages/shared/kbn-data-view-utils/*"], + "@kbn/data-views-plugin": ["src/platform/plugins/shared/data_views"], + "@kbn/data-views-plugin/*": ["src/platform/plugins/shared/data_views/*"], "@kbn/data-visualizer-plugin": ["x-pack/platform/plugins/private/data_visualizer"], "@kbn/data-visualizer-plugin/*": ["x-pack/platform/plugins/private/data_visualizer/*"], "@kbn/dataset-quality-plugin": ["x-pack/platform/plugins/shared/dataset_quality"], "@kbn/dataset-quality-plugin/*": ["x-pack/platform/plugins/shared/dataset_quality/*"], - "@kbn/datemath": ["packages/kbn-datemath"], - "@kbn/datemath/*": ["packages/kbn-datemath/*"], - "@kbn/deeplinks-analytics": ["packages/deeplinks/analytics"], - "@kbn/deeplinks-analytics/*": ["packages/deeplinks/analytics/*"], + "@kbn/datemath": ["src/platform/packages/shared/kbn-datemath"], + "@kbn/datemath/*": ["src/platform/packages/shared/kbn-datemath/*"], + "@kbn/deeplinks-analytics": ["src/platform/packages/shared/deeplinks/analytics"], + "@kbn/deeplinks-analytics/*": ["src/platform/packages/shared/deeplinks/analytics/*"], "@kbn/deeplinks-devtools": ["src/platform/packages/shared/deeplinks/devtools"], "@kbn/deeplinks-devtools/*": ["src/platform/packages/shared/deeplinks/devtools/*"], "@kbn/deeplinks-fleet": ["src/platform/packages/shared/deeplinks/fleet"], @@ -748,8 +748,8 @@ "@kbn/deeplinks-security/*": ["src/platform/packages/shared/deeplinks/security/*"], "@kbn/deeplinks-shared": ["packages/deeplinks/shared"], "@kbn/deeplinks-shared/*": ["packages/deeplinks/shared/*"], - "@kbn/default-nav-analytics": ["packages/default-nav/analytics"], - "@kbn/default-nav-analytics/*": ["packages/default-nav/analytics/*"], + "@kbn/default-nav-analytics": ["src/platform/packages/private/default-nav/analytics"], + "@kbn/default-nav-analytics/*": ["src/platform/packages/private/default-nav/analytics/*"], "@kbn/default-nav-devtools": ["src/platform/packages/private/default-nav/devtools"], "@kbn/default-nav-devtools/*": ["src/platform/packages/private/default-nav/devtools/*"], "@kbn/default-nav-management": ["src/platform/packages/private/default-nav/management"], @@ -776,14 +776,14 @@ "@kbn/discover-contextual-components/*": ["src/platform/packages/shared/kbn-discover-contextual-components/*"], "@kbn/discover-customization-examples-plugin": ["examples/discover_customization_examples"], "@kbn/discover-customization-examples-plugin/*": ["examples/discover_customization_examples/*"], - "@kbn/discover-enhanced-plugin": ["x-pack/plugins/discover_enhanced"], - "@kbn/discover-enhanced-plugin/*": ["x-pack/plugins/discover_enhanced/*"], - "@kbn/discover-plugin": ["src/plugins/discover"], - "@kbn/discover-plugin/*": ["src/plugins/discover/*"], - "@kbn/discover-shared-plugin": ["src/plugins/discover_shared"], - "@kbn/discover-shared-plugin/*": ["src/plugins/discover_shared/*"], - "@kbn/discover-utils": ["packages/kbn-discover-utils"], - "@kbn/discover-utils/*": ["packages/kbn-discover-utils/*"], + "@kbn/discover-enhanced-plugin": ["x-pack/platform/plugins/private/discover_enhanced"], + "@kbn/discover-enhanced-plugin/*": ["x-pack/platform/plugins/private/discover_enhanced/*"], + "@kbn/discover-plugin": ["src/platform/plugins/shared/discover"], + "@kbn/discover-plugin/*": ["src/platform/plugins/shared/discover/*"], + "@kbn/discover-shared-plugin": ["src/platform/plugins/shared/discover_shared"], + "@kbn/discover-shared-plugin/*": ["src/platform/plugins/shared/discover_shared/*"], + "@kbn/discover-utils": ["src/platform/packages/shared/kbn-discover-utils"], + "@kbn/discover-utils/*": ["src/platform/packages/shared/kbn-discover-utils/*"], "@kbn/doc-links": ["src/platform/packages/shared/kbn-doc-links"], "@kbn/doc-links/*": ["src/platform/packages/shared/kbn-doc-links/*"], "@kbn/docs-utils": ["packages/kbn-docs-utils"], @@ -838,8 +838,8 @@ "@kbn/es-archiver/*": ["packages/kbn-es-archiver/*"], "@kbn/es-errors": ["packages/kbn-es-errors"], "@kbn/es-errors/*": ["packages/kbn-es-errors/*"], - "@kbn/es-query": ["packages/kbn-es-query"], - "@kbn/es-query/*": ["packages/kbn-es-query/*"], + "@kbn/es-query": ["src/platform/packages/shared/kbn-es-query"], + "@kbn/es-query/*": ["src/platform/packages/shared/kbn-es-query/*"], "@kbn/es-types": ["packages/kbn-es-types"], "@kbn/es-types/*": ["packages/kbn-es-types/*"], "@kbn/es-ui-shared-plugin": ["src/platform/plugins/shared/es_ui_shared"], @@ -946,12 +946,12 @@ "@kbn/fec-alerts-test-plugin/*": ["x-pack/test/functional_execution_context/plugins/alerts/*"], "@kbn/field-formats-example-plugin": ["examples/field_formats_example"], "@kbn/field-formats-example-plugin/*": ["examples/field_formats_example/*"], - "@kbn/field-formats-plugin": ["src/plugins/field_formats"], - "@kbn/field-formats-plugin/*": ["src/plugins/field_formats/*"], - "@kbn/field-types": ["packages/kbn-field-types"], - "@kbn/field-types/*": ["packages/kbn-field-types/*"], - "@kbn/field-utils": ["packages/kbn-field-utils"], - "@kbn/field-utils/*": ["packages/kbn-field-utils/*"], + "@kbn/field-formats-plugin": ["src/platform/plugins/shared/field_formats"], + "@kbn/field-formats-plugin/*": ["src/platform/plugins/shared/field_formats/*"], + "@kbn/field-types": ["src/platform/packages/shared/kbn-field-types"], + "@kbn/field-types/*": ["src/platform/packages/shared/kbn-field-types/*"], + "@kbn/field-utils": ["src/platform/packages/shared/kbn-field-utils"], + "@kbn/field-utils/*": ["src/platform/packages/shared/kbn-field-utils/*"], "@kbn/fields-metadata-plugin": ["x-pack/platform/plugins/shared/fields_metadata"], "@kbn/fields-metadata-plugin/*": ["x-pack/platform/plugins/shared/fields_metadata/*"], "@kbn/file-upload-plugin": ["x-pack/platform/plugins/private/file_upload"], @@ -1424,8 +1424,8 @@ "@kbn/profiling-utils/*": ["src/platform/packages/shared/kbn-profiling-utils/*"], "@kbn/random-sampling": ["x-pack/packages/kbn-random-sampling"], "@kbn/random-sampling/*": ["x-pack/packages/kbn-random-sampling/*"], - "@kbn/react-field": ["packages/kbn-react-field"], - "@kbn/react-field/*": ["packages/kbn-react-field/*"], + "@kbn/react-field": ["src/platform/packages/shared/kbn-react-field"], + "@kbn/react-field/*": ["src/platform/packages/shared/kbn-react-field/*"], "@kbn/react-hooks": ["src/platform/packages/shared/kbn-react-hooks"], "@kbn/react-hooks/*": ["src/platform/packages/shared/kbn-react-hooks/*"], "@kbn/react-kibana-context-common": ["packages/react/kibana_context/common"], @@ -1488,8 +1488,8 @@ "@kbn/reporting-public/*": ["packages/kbn-reporting/public/*"], "@kbn/reporting-server": ["packages/kbn-reporting/server"], "@kbn/reporting-server/*": ["packages/kbn-reporting/server/*"], - "@kbn/resizable-layout": ["packages/kbn-resizable-layout"], - "@kbn/resizable-layout/*": ["packages/kbn-resizable-layout/*"], + "@kbn/resizable-layout": ["src/platform/packages/shared/kbn-resizable-layout"], + "@kbn/resizable-layout/*": ["src/platform/packages/shared/kbn-resizable-layout/*"], "@kbn/resizable-layout-examples-plugin": ["examples/resizable_layout_examples"], "@kbn/resizable-layout-examples-plugin/*": ["examples/resizable_layout_examples/*"], "@kbn/resolver-test-plugin": ["x-pack/test/plugin_functional/plugins/resolver_test"], @@ -1536,8 +1536,8 @@ "@kbn/saved-object-import-warnings-plugin/*": ["test/plugin_functional/plugins/saved_object_import_warnings/*"], "@kbn/saved-object-test-plugin": ["x-pack/test/saved_object_api_integration/common/plugins/saved_object_test_plugin"], "@kbn/saved-object-test-plugin/*": ["x-pack/test/saved_object_api_integration/common/plugins/saved_object_test_plugin/*"], - "@kbn/saved-objects-finder-plugin": ["src/plugins/saved_objects_finder"], - "@kbn/saved-objects-finder-plugin/*": ["src/plugins/saved_objects_finder/*"], + "@kbn/saved-objects-finder-plugin": ["src/platform/plugins/shared/saved_objects_finder"], + "@kbn/saved-objects-finder-plugin/*": ["src/platform/plugins/shared/saved_objects_finder/*"], "@kbn/saved-objects-hidden-from-http-apis-type-plugin": ["test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type"], "@kbn/saved-objects-hidden-from-http-apis-type-plugin/*": ["test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/*"], "@kbn/saved-objects-hidden-type-plugin": ["test/plugin_functional/plugins/saved_objects_hidden_type"], @@ -1554,8 +1554,8 @@ "@kbn/saved-objects-tagging-plugin/*": ["x-pack/plugins/saved_objects_tagging/*"], "@kbn/saved-search-component": ["packages/kbn-saved-search-component"], "@kbn/saved-search-component/*": ["packages/kbn-saved-search-component/*"], - "@kbn/saved-search-plugin": ["src/plugins/saved_search"], - "@kbn/saved-search-plugin/*": ["src/plugins/saved_search/*"], + "@kbn/saved-search-plugin": ["src/platform/plugins/shared/saved_search"], + "@kbn/saved-search-plugin/*": ["src/platform/plugins/shared/saved_search/*"], "@kbn/scout": ["packages/kbn-scout"], "@kbn/scout/*": ["packages/kbn-scout/*"], "@kbn/scout-info": ["packages/kbn-scout-info"], @@ -1584,8 +1584,8 @@ "@kbn/search-connectors/*": ["src/platform/packages/shared/kbn-search-connectors/*"], "@kbn/search-connectors-plugin": ["x-pack/solutions/search/plugins/search_connectors"], "@kbn/search-connectors-plugin/*": ["x-pack/solutions/search/plugins/search_connectors/*"], - "@kbn/search-errors": ["packages/kbn-search-errors"], - "@kbn/search-errors/*": ["packages/kbn-search-errors/*"], + "@kbn/search-errors": ["src/platform/packages/shared/kbn-search-errors"], + "@kbn/search-errors/*": ["src/platform/packages/shared/kbn-search-errors/*"], "@kbn/search-examples-plugin": ["examples/search_examples"], "@kbn/search-examples-plugin/*": ["examples/search_examples/*"], "@kbn/search-homepage": ["x-pack/solutions/search/plugins/search_homepage"], @@ -1602,12 +1602,12 @@ "@kbn/search-notebooks/*": ["x-pack/solutions/search/plugins/search_notebooks/*"], "@kbn/search-playground": ["x-pack/solutions/search/plugins/search_playground"], "@kbn/search-playground/*": ["x-pack/solutions/search/plugins/search_playground/*"], - "@kbn/search-response-warnings": ["packages/kbn-search-response-warnings"], - "@kbn/search-response-warnings/*": ["packages/kbn-search-response-warnings/*"], + "@kbn/search-response-warnings": ["src/platform/packages/shared/kbn-search-response-warnings"], + "@kbn/search-response-warnings/*": ["src/platform/packages/shared/kbn-search-response-warnings/*"], "@kbn/search-shared-ui": ["x-pack/solutions/search/packages/search/shared_ui"], "@kbn/search-shared-ui/*": ["x-pack/solutions/search/packages/search/shared_ui/*"], - "@kbn/search-types": ["packages/kbn-search-types"], - "@kbn/search-types/*": ["packages/kbn-search-types/*"], + "@kbn/search-types": ["src/platform/packages/shared/kbn-search-types"], + "@kbn/search-types/*": ["src/platform/packages/shared/kbn-search-types/*"], "@kbn/searchprofiler-plugin": ["x-pack/platform/plugins/shared/searchprofiler"], "@kbn/searchprofiler-plugin/*": ["x-pack/platform/plugins/shared/searchprofiler/*"], "@kbn/security-api-integration-helpers": ["x-pack/test/security_api_integration/packages/helpers"], @@ -1982,24 +1982,24 @@ "@kbn/ui-shared-deps-src/*": ["packages/kbn-ui-shared-deps-src/*"], "@kbn/ui-theme": ["packages/kbn-ui-theme"], "@kbn/ui-theme/*": ["packages/kbn-ui-theme/*"], - "@kbn/unified-data-table": ["packages/kbn-unified-data-table"], - "@kbn/unified-data-table/*": ["packages/kbn-unified-data-table/*"], - "@kbn/unified-doc-viewer": ["packages/kbn-unified-doc-viewer"], - "@kbn/unified-doc-viewer/*": ["packages/kbn-unified-doc-viewer/*"], + "@kbn/unified-data-table": ["src/platform/packages/shared/kbn-unified-data-table"], + "@kbn/unified-data-table/*": ["src/platform/packages/shared/kbn-unified-data-table/*"], + "@kbn/unified-doc-viewer": ["src/platform/packages/shared/kbn-unified-doc-viewer"], + "@kbn/unified-doc-viewer/*": ["src/platform/packages/shared/kbn-unified-doc-viewer/*"], "@kbn/unified-doc-viewer-examples": ["examples/unified_doc_viewer"], "@kbn/unified-doc-viewer-examples/*": ["examples/unified_doc_viewer/*"], - "@kbn/unified-doc-viewer-plugin": ["src/plugins/unified_doc_viewer"], - "@kbn/unified-doc-viewer-plugin/*": ["src/plugins/unified_doc_viewer/*"], - "@kbn/unified-field-list": ["packages/kbn-unified-field-list"], - "@kbn/unified-field-list/*": ["packages/kbn-unified-field-list/*"], + "@kbn/unified-doc-viewer-plugin": ["src/platform/plugins/shared/unified_doc_viewer"], + "@kbn/unified-doc-viewer-plugin/*": ["src/platform/plugins/shared/unified_doc_viewer/*"], + "@kbn/unified-field-list": ["src/platform/packages/shared/kbn-unified-field-list"], + "@kbn/unified-field-list/*": ["src/platform/packages/shared/kbn-unified-field-list/*"], "@kbn/unified-field-list-examples-plugin": ["examples/unified_field_list_examples"], "@kbn/unified-field-list-examples-plugin/*": ["examples/unified_field_list_examples/*"], - "@kbn/unified-histogram-plugin": ["src/plugins/unified_histogram"], - "@kbn/unified-histogram-plugin/*": ["src/plugins/unified_histogram/*"], + "@kbn/unified-histogram-plugin": ["src/platform/plugins/shared/unified_histogram"], + "@kbn/unified-histogram-plugin/*": ["src/platform/plugins/shared/unified_histogram/*"], "@kbn/unified-search-plugin": ["src/plugins/unified_search"], "@kbn/unified-search-plugin/*": ["src/plugins/unified_search/*"], - "@kbn/unsaved-changes-badge": ["packages/kbn-unsaved-changes-badge"], - "@kbn/unsaved-changes-badge/*": ["packages/kbn-unsaved-changes-badge/*"], + "@kbn/unsaved-changes-badge": ["src/platform/packages/private/kbn-unsaved-changes-badge"], + "@kbn/unsaved-changes-badge/*": ["src/platform/packages/private/kbn-unsaved-changes-badge/*"], "@kbn/unsaved-changes-prompt": ["src/platform/packages/shared/kbn-unsaved-changes-prompt"], "@kbn/unsaved-changes-prompt/*": ["src/platform/packages/shared/kbn-unsaved-changes-prompt/*"], "@kbn/upgrade-assistant-plugin": ["x-pack/plugins/upgrade_assistant"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 130d3ef8f5a02..6ac31ad9ae504 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -33,7 +33,7 @@ "xpack.dataQuality": "platform/plugins/shared/data_quality", "xpack.datasetQuality": "platform/plugins/shared/dataset_quality", "xpack.dataUsage": "platform/plugins/private/data_usage", - "xpack.discover": "plugins/discover_enhanced", + "xpack.discover": "platform/plugins/private/discover_enhanced", "xpack.crossClusterReplication": "platform/plugins/private/cross_cluster_replication", "xpack.elasticAssistant": "platform/packages/shared/kbn-elastic-assistant", "xpack.elasticAssistantCommon": "platform/packages/shared/kbn-elastic-assistant-common", diff --git a/x-pack/plugins/discover_enhanced/README.md b/x-pack/platform/plugins/private/discover_enhanced/README.md similarity index 100% rename from x-pack/plugins/discover_enhanced/README.md rename to x-pack/platform/plugins/private/discover_enhanced/README.md diff --git a/x-pack/plugins/discover_enhanced/common/config.ts b/x-pack/platform/plugins/private/discover_enhanced/common/config.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/common/config.ts rename to x-pack/platform/plugins/private/discover_enhanced/common/config.ts diff --git a/x-pack/plugins/discover_enhanced/common/index.ts b/x-pack/platform/plugins/private/discover_enhanced/common/index.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/common/index.ts rename to x-pack/platform/plugins/private/discover_enhanced/common/index.ts diff --git a/x-pack/plugins/discover_enhanced/jest.config.js b/x-pack/platform/plugins/private/discover_enhanced/jest.config.js similarity index 53% rename from x-pack/plugins/discover_enhanced/jest.config.js rename to x-pack/platform/plugins/private/discover_enhanced/jest.config.js index 603298832dd61..e89b0a031ad61 100644 --- a/x-pack/plugins/discover_enhanced/jest.config.js +++ b/x-pack/platform/plugins/private/discover_enhanced/jest.config.js @@ -7,11 +7,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/discover_enhanced'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/discover_enhanced', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/discover_enhanced'], + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/discover_enhanced', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/discover_enhanced/{common,public,server}/**/*.{ts,tsx}', + '/x-pack/platform/plugins/private/discover_enhanced/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/x-pack/plugins/discover_enhanced/kibana.jsonc b/x-pack/platform/plugins/private/discover_enhanced/kibana.jsonc similarity index 100% rename from x-pack/plugins/discover_enhanced/kibana.jsonc rename to x-pack/platform/plugins/private/discover_enhanced/kibana.jsonc diff --git a/x-pack/plugins/discover_enhanced/public/actions/explore_data/abstract_explore_data_action.ts b/x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/abstract_explore_data_action.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/actions/explore_data/abstract_explore_data_action.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/abstract_explore_data_action.ts diff --git a/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts b/x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.ts diff --git a/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts b/x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_chart_action.ts diff --git a/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.test.ts b/x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.test.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.test.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.test.ts diff --git a/x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts b/x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.ts diff --git a/x-pack/plugins/discover_enhanced/public/actions/explore_data/index.ts b/x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/index.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/actions/explore_data/index.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/index.ts diff --git a/x-pack/plugins/discover_enhanced/public/actions/explore_data/shared.ts b/x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/shared.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/actions/explore_data/shared.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/actions/explore_data/shared.ts diff --git a/x-pack/plugins/discover_enhanced/public/actions/index.ts b/x-pack/platform/plugins/private/discover_enhanced/public/actions/index.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/actions/index.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/actions/index.ts diff --git a/x-pack/plugins/discover_enhanced/public/index.ts b/x-pack/platform/plugins/private/discover_enhanced/public/index.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/index.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/index.ts diff --git a/x-pack/plugins/discover_enhanced/public/plugin.ts b/x-pack/platform/plugins/private/discover_enhanced/public/plugin.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/public/plugin.ts rename to x-pack/platform/plugins/private/discover_enhanced/public/plugin.ts diff --git a/x-pack/plugins/discover_enhanced/server/config.ts b/x-pack/platform/plugins/private/discover_enhanced/server/config.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/server/config.ts rename to x-pack/platform/plugins/private/discover_enhanced/server/config.ts diff --git a/x-pack/plugins/discover_enhanced/server/index.ts b/x-pack/platform/plugins/private/discover_enhanced/server/index.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/server/index.ts rename to x-pack/platform/plugins/private/discover_enhanced/server/index.ts diff --git a/x-pack/plugins/discover_enhanced/server/plugin.ts b/x-pack/platform/plugins/private/discover_enhanced/server/plugin.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/server/plugin.ts rename to x-pack/platform/plugins/private/discover_enhanced/server/plugin.ts diff --git a/x-pack/plugins/discover_enhanced/tsconfig.json b/x-pack/platform/plugins/private/discover_enhanced/tsconfig.json similarity index 92% rename from x-pack/plugins/discover_enhanced/tsconfig.json rename to x-pack/platform/plugins/private/discover_enhanced/tsconfig.json index 79dad79381e97..917fe68085a0a 100644 --- a/x-pack/plugins/discover_enhanced/tsconfig.json +++ b/x-pack/platform/plugins/private/discover_enhanced/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/x-pack/platform/plugins/private/discover_enhanced/ui_tests/README.md b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/README.md new file mode 100644 index 0000000000000..93879514adac3 --- /dev/null +++ b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/README.md @@ -0,0 +1,24 @@ +## How to run tests +First start the servers with + +```bash +// ESS +node scripts/scout.js start-server --stateful + +// Serverless +node scripts/scout.js start-server --serverless=[es|oblt|security] +``` + +Then you can run the tests multiple times in another terminal with: + +```bash +// ESS +npx playwright test --config x-pack/platform/plugins/private/discover_enhanced/ui_tests/playwright.config.ts --grep @ess + +// Serverless +npx playwright test --config x-pack/platform/plugins/private/discover_enhanced/ui_tests/playwright.config.ts --grep @svlSearch + +// @svlOblt, @svlSecurity +``` + +Test results are available in `x-pack/platform/plugins/private/discover_enhanced/ui_tests/output` diff --git a/x-pack/plugins/discover_enhanced/ui_tests/fixtures/assertion_messages.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/assertion_messages.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/fixtures/assertion_messages.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/assertion_messages.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/fixtures/constants.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/constants.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/fixtures/constants.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/constants.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/fixtures/index.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/index.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/fixtures/index.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/index.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/fixtures/page_objects/demo.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/page_objects/demo.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/fixtures/page_objects/demo.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/page_objects/demo.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/fixtures/page_objects/index.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/page_objects/index.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/fixtures/page_objects/index.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/fixtures/page_objects/index.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/playwright.config.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/playwright.config.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/tests/error_handling.spec.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/error_handling.spec.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/tests/error_handling.spec.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/error_handling.spec.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/tests/saved_search_embeddable.spec.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/saved_search_embeddable.spec.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/tests/saved_search_embeddable.spec.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/saved_search_embeddable.spec.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/tests/saved_searches.spec.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/saved_searches.spec.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/tests/saved_searches.spec.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/saved_searches.spec.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/tests/value_suggestions.spec.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/value_suggestions.spec.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/tests/value_suggestions.spec.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/value_suggestions.spec.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/tests/value_suggestions_non_time_based.spec.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/value_suggestions_non_time_based.spec.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/tests/value_suggestions_non_time_based.spec.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/value_suggestions_non_time_based.spec.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/tests/value_suggestions_use_time_range_disabled.spec.ts b/x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/value_suggestions_use_time_range_disabled.spec.ts similarity index 100% rename from x-pack/plugins/discover_enhanced/ui_tests/tests/value_suggestions_use_time_range_disabled.spec.ts rename to x-pack/platform/plugins/private/discover_enhanced/ui_tests/tests/value_suggestions_use_time_range_disabled.spec.ts diff --git a/x-pack/plugins/discover_enhanced/ui_tests/README.md b/x-pack/plugins/discover_enhanced/ui_tests/README.md deleted file mode 100644 index 5de090d2145d4..0000000000000 --- a/x-pack/plugins/discover_enhanced/ui_tests/README.md +++ /dev/null @@ -1,24 +0,0 @@ -## How to run tests -First start the servers with - -```bash -// ESS -node scripts/scout.js start-server --stateful - -// Serverless -node scripts/scout.js start-server --serverless=[es|oblt|security] -``` - -Then you can run the tests multiple times in another terminal with: - -```bash -// ESS -npx playwright test --config x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --grep @ess - -// Serverless -npx playwright test --config x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --grep @svlSearch - -// @svlOblt, @svlSecurity -``` - -Test results are available in `x-pack/plugins/discover_enhanced/ui_tests/output` diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json index 6c7c5aac0444a..3760935909a87 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json +++ b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json @@ -3750,6 +3750,13 @@ } } }, + "discoverEnhanced": { + "properties": { + "exploreDataInChartActionEnabled": { + "type": "boolean" + } + } + }, "fileUpload": { "properties": { "file_upload": { diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json index 57273cc373251..8fc4524b00f73 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json +++ b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @@ -83,13 +83,6 @@ } } }, - "discoverEnhanced": { - "properties": { - "exploreDataInChartActionEnabled": { - "type": "boolean" - } - } - }, "reporting": { "properties": { "available": { diff --git a/x-pack/solutions/security/plugins/timelines/common/search_strategy/index_fields/index.ts b/x-pack/solutions/security/plugins/timelines/common/search_strategy/index_fields/index.ts index cdf4ddb003d5e..c2294aae0925e 100644 --- a/x-pack/solutions/security/plugins/timelines/common/search_strategy/index_fields/index.ts +++ b/x-pack/solutions/security/plugins/timelines/common/search_strategy/index_fields/index.ts @@ -50,14 +50,14 @@ export interface IndexFieldsStrategyRequestById extends IEsSearchRequest { } /** - * @deprecated use kibana data views api https://github.com/elastic/kibana/blob/83f1fb4f26219f32cab43706db78d544c7bc2f6d/src/plugins/data_views/common/data_views/data_views.ts#L294 + * @deprecated use kibana data views api https://github.com/elastic/kibana/blob/83f1fb4f26219f32cab43706db78d544c7bc2f6d/src/platform/plugins/shared/data_views/common/data_views/data_views.ts#L294 */ export type IndexFieldsStrategyRequest = T extends 'dataView' ? IndexFieldsStrategyRequestById : IndexFieldsStrategyRequestByIndices; /** - * @deprecated use kibana data views api https://github.com/elastic/kibana/blob/83f1fb4f26219f32cab43706db78d544c7bc2f6d/src/plugins/data_views/common/data_views/data_views.ts#L294 + * @deprecated use kibana data views api https://github.com/elastic/kibana/blob/83f1fb4f26219f32cab43706db78d544c7bc2f6d/src/platform/plugins/shared/data_views/common/data_views/data_views.ts#L294 */ export interface IndexFieldsStrategyResponse extends IEsSearchResponse { indexFields: IndexField[]; diff --git a/yarn.lock b/yarn.lock index dfe77f0c50b38..75275a528ed76 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4265,7 +4265,7 @@ version "0.0.0" uid "" -"@kbn/content-management-utils@link:packages/kbn-content-management-utils": +"@kbn/content-management-utils@link:src/platform/packages/shared/kbn-content-management-utils": version "0.0.0" uid "" @@ -5241,7 +5241,7 @@ version "0.0.0" uid "" -"@kbn/data-view-editor-plugin@link:src/plugins/data_view_editor": +"@kbn/data-view-editor-plugin@link:src/platform/plugins/shared/data_view_editor": version "0.0.0" uid "" @@ -5249,19 +5249,19 @@ version "0.0.0" uid "" -"@kbn/data-view-field-editor-plugin@link:src/plugins/data_view_field_editor": +"@kbn/data-view-field-editor-plugin@link:src/platform/plugins/shared/data_view_field_editor": version "0.0.0" uid "" -"@kbn/data-view-management-plugin@link:src/plugins/data_view_management": +"@kbn/data-view-management-plugin@link:src/platform/plugins/shared/data_view_management": version "0.0.0" uid "" -"@kbn/data-view-utils@link:packages/kbn-data-view-utils": +"@kbn/data-view-utils@link:src/platform/packages/shared/kbn-data-view-utils": version "0.0.0" uid "" -"@kbn/data-views-plugin@link:src/plugins/data_views": +"@kbn/data-views-plugin@link:src/platform/plugins/shared/data_views": version "0.0.0" uid "" @@ -5273,11 +5273,11 @@ version "0.0.0" uid "" -"@kbn/datemath@link:packages/kbn-datemath": +"@kbn/datemath@link:src/platform/packages/shared/kbn-datemath": version "0.0.0" uid "" -"@kbn/deeplinks-analytics@link:packages/deeplinks/analytics": +"@kbn/deeplinks-analytics@link:src/platform/packages/shared/deeplinks/analytics": version "0.0.0" uid "" @@ -5313,7 +5313,7 @@ version "0.0.0" uid "" -"@kbn/default-nav-analytics@link:packages/default-nav/analytics": +"@kbn/default-nav-analytics@link:src/platform/packages/private/default-nav/analytics": version "0.0.0" uid "" @@ -5369,19 +5369,19 @@ version "0.0.0" uid "" -"@kbn/discover-enhanced-plugin@link:x-pack/plugins/discover_enhanced": +"@kbn/discover-enhanced-plugin@link:x-pack/platform/plugins/private/discover_enhanced": version "0.0.0" uid "" -"@kbn/discover-plugin@link:src/plugins/discover": +"@kbn/discover-plugin@link:src/platform/plugins/shared/discover": version "0.0.0" uid "" -"@kbn/discover-shared-plugin@link:src/plugins/discover_shared": +"@kbn/discover-shared-plugin@link:src/platform/plugins/shared/discover_shared": version "0.0.0" uid "" -"@kbn/discover-utils@link:packages/kbn-discover-utils": +"@kbn/discover-utils@link:src/platform/packages/shared/kbn-discover-utils": version "0.0.0" uid "" @@ -5489,7 +5489,7 @@ version "0.0.0" uid "" -"@kbn/es-query@link:packages/kbn-es-query": +"@kbn/es-query@link:src/platform/packages/shared/kbn-es-query": version "0.0.0" uid "" @@ -5709,15 +5709,15 @@ version "0.0.0" uid "" -"@kbn/field-formats-plugin@link:src/plugins/field_formats": +"@kbn/field-formats-plugin@link:src/platform/plugins/shared/field_formats": version "0.0.0" uid "" -"@kbn/field-types@link:packages/kbn-field-types": +"@kbn/field-types@link:src/platform/packages/shared/kbn-field-types": version "0.0.0" uid "" -"@kbn/field-utils@link:packages/kbn-field-utils": +"@kbn/field-utils@link:src/platform/packages/shared/kbn-field-utils": version "0.0.0" uid "" @@ -6665,7 +6665,7 @@ version "0.0.0" uid "" -"@kbn/react-field@link:packages/kbn-react-field": +"@kbn/react-field@link:src/platform/packages/shared/kbn-react-field": version "0.0.0" uid "" @@ -6797,7 +6797,7 @@ version "0.0.0" uid "" -"@kbn/resizable-layout@link:packages/kbn-resizable-layout": +"@kbn/resizable-layout@link:src/platform/packages/shared/kbn-resizable-layout": version "0.0.0" uid "" @@ -6889,7 +6889,7 @@ version "0.0.0" uid "" -"@kbn/saved-objects-finder-plugin@link:src/plugins/saved_objects_finder": +"@kbn/saved-objects-finder-plugin@link:src/platform/plugins/shared/saved_objects_finder": version "0.0.0" uid "" @@ -6925,7 +6925,7 @@ version "0.0.0" uid "" -"@kbn/saved-search-plugin@link:src/plugins/saved_search": +"@kbn/saved-search-plugin@link:src/platform/plugins/shared/saved_search": version "0.0.0" uid "" @@ -6985,7 +6985,7 @@ version "0.0.0" uid "" -"@kbn/search-errors@link:packages/kbn-search-errors": +"@kbn/search-errors@link:src/platform/packages/shared/kbn-search-errors": version "0.0.0" uid "" @@ -7021,7 +7021,7 @@ version "0.0.0" uid "" -"@kbn/search-response-warnings@link:packages/kbn-search-response-warnings": +"@kbn/search-response-warnings@link:src/platform/packages/shared/kbn-search-response-warnings": version "0.0.0" uid "" @@ -7029,7 +7029,7 @@ version "0.0.0" uid "" -"@kbn/search-types@link:packages/kbn-search-types": +"@kbn/search-types@link:src/platform/packages/shared/kbn-search-types": version "0.0.0" uid "" @@ -7781,7 +7781,7 @@ version "0.0.0" uid "" -"@kbn/unified-data-table@link:packages/kbn-unified-data-table": +"@kbn/unified-data-table@link:src/platform/packages/shared/kbn-unified-data-table": version "0.0.0" uid "" @@ -7789,11 +7789,11 @@ version "0.0.0" uid "" -"@kbn/unified-doc-viewer-plugin@link:src/plugins/unified_doc_viewer": +"@kbn/unified-doc-viewer-plugin@link:src/platform/plugins/shared/unified_doc_viewer": version "0.0.0" uid "" -"@kbn/unified-doc-viewer@link:packages/kbn-unified-doc-viewer": +"@kbn/unified-doc-viewer@link:src/platform/packages/shared/kbn-unified-doc-viewer": version "0.0.0" uid "" @@ -7801,11 +7801,11 @@ version "0.0.0" uid "" -"@kbn/unified-field-list@link:packages/kbn-unified-field-list": +"@kbn/unified-field-list@link:src/platform/packages/shared/kbn-unified-field-list": version "0.0.0" uid "" -"@kbn/unified-histogram-plugin@link:src/plugins/unified_histogram": +"@kbn/unified-histogram-plugin@link:src/platform/plugins/shared/unified_histogram": version "0.0.0" uid "" @@ -7813,7 +7813,7 @@ version "0.0.0" uid "" -"@kbn/unsaved-changes-badge@link:packages/kbn-unsaved-changes-badge": +"@kbn/unsaved-changes-badge@link:src/platform/packages/private/kbn-unsaved-changes-badge": version "0.0.0" uid "" From 140c2e0ecf9f8a0277699052f9ba472066a0e96d Mon Sep 17 00:00:00 2001 From: Nikita Indik Date: Mon, 30 Dec 2024 13:38:42 +0100 Subject: [PATCH 04/10] [Security Solution] Fix incorrect changes highlighting in diff view (#205138) **Resolves: https://github.com/elastic/kibana/issues/202016** ## Summary This PR resolves an issue where the diff view incorrectly marked certain characters as changed (using bold font) in some cases. ## Root Cause The issue arises from a bug in the `diff` library (v5). The library is used to compute two-way diffs between strings (old field value and new field value), producing an array of change objects that is then used for rendering. Conditions for the bug: - `diff` v5 library is in use (fixed in v6 and above) and `DiffMethod.WORDS` is passed as a parameter to it. - The old field value contains a line with an addition separated by a space (see example below). - The next line contains some changes (additions, deletions, or updates). For example, for these input strings: ``` foo bar spring ``` ``` foo sprint ``` | You would expect to see this diff | But you actually see this | |----------|----------| | expected | actual | **A more real-life example** more_real_life ## Solution Switching to `DiffMethod.WORDS_WITH_SPACE` avoids this issue. Screenshot showing the difference between `DiffMethod.WORDS` and `DiffMethod.WORDS_WITH_SPACE`: words_vs_words_with_space ## Other changes - Removed `DiffMethod.TRIMMED_LINES` since it's now [deprecated](https://github.com/kpdecker/jsdiff/pull/486) in the `diff` library and we are not using it anyways. - Stopped using the "zip" option since I believe it produces a less readable diff, especially for cases when there's a different number of lines in the original value vs updated value.
Screenshots: with and without "zip" (click to expand) With the "zip" option (how it was before) zip No "zip" (this branch) no_zip
## Testing I thoroughly tested with `DiffMethod.WORDS_WITH_SPACE` across various inputs and scenarios, including: - Single-line and multi-line strings. - Numbers, arrays, and objects. - Additions, deletions, and updates at different positions (start, middle, and end) within and across lines. I also validated diffs against real prebuilt rules by installing an older Fleet package version and observed no issues. You can test by trying different input strings and settings in Storybook. **Run Storybook**: `yarn storybook security_solution`. https://github.com/user-attachments/assets/0440b73c-a4d7-40cf-9cee-e632146d292e You can notice that `ComparisonSide` stories are broken, but that's unrelated to these changes and needs to be handled separately. ## Compatibility with future upgrades There's an open [PR](https://github.com/elastic/kibana/pull/202622) that will upgrade the `diff` library from v5 to v7. I verified the behavior of `DiffMethod.WORDS_WITH_SPACE` on v7 and found no differences compared to v5, so it should be safe to upgrade to v7 without any changes on our end. Work started on 23-Dec-2024. --- .../json_diff/diff_view.stories.tsx | 60 +++++++++++++++++++ .../rule_details/json_diff/diff_view.tsx | 23 ++++--- .../rule_details/json_diff/mark_edits.tsx | 3 +- 3 files changed, 77 insertions(+), 9 deletions(-) create mode 100644 x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/diff_view.stories.tsx diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/diff_view.stories.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/diff_view.stories.tsx new file mode 100644 index 0000000000000..2e2e2dbb0895b --- /dev/null +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/diff_view.stories.tsx @@ -0,0 +1,60 @@ +/* + * 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. + */ + +import React from 'react'; +import type { Story } from '@storybook/react'; +import type { DiffViewProps } from './diff_view'; +import { DiffView } from './diff_view'; +import { DiffMethod } from './mark_edits'; + +export default { + component: DiffView, + title: 'Rule Management/Prebuilt Rules/Upgrade Flyout/ThreeWayDiff/DiffView', + argTypes: { + oldSource: { + control: 'text', + }, + newSource: { + control: 'text', + }, + diffMethod: { + control: 'select', + options: [ + DiffMethod.WORDS_WITH_SPACE, + DiffMethod.WORDS, + DiffMethod.CHARS, + DiffMethod.LINES, + DiffMethod.SENTENCES, + ], + defaultValue: DiffMethod.WORDS_WITH_SPACE, + }, + zip: { + control: 'boolean', + defaultValue: false, + }, + }, +}; + +const Template: Story = ({ oldSource, newSource, diffMethod, zip }) => { + return ( + + ); +}; + +export const Default = Template.bind({}); +Default.args = { + oldSource: + 'from logs-endpoint.alerts-*\n| where event.code in ("malicious_file", "memory_signature", "shellcode_thread") and rule.name is not null\n| keep host.id, rule.name, event.code\n| stats hosts = count_distinct(host.id) by rule.name, event.code\n| where hosts >= 3', + newSource: + 'from logs-endpoint.alerts-*\n| where event.code in ("malicious_file", "memory_signature", "shellcode_thread")\n| stats hosts = count_distinct(host.id)\n| where hosts >= 3', +}; diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/diff_view.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/diff_view.tsx index ba3195edab73a..9b10fb00b12eb 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/diff_view.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/diff_view.tsx @@ -25,7 +25,6 @@ import type { HunkTokens, } from 'react-diff-view'; import unidiff from 'unidiff'; -import type { Change } from 'diff'; import { useEuiTheme, COLOR_MODES_STANDARD } from '@elastic/eui'; import { Hunks } from './hunks'; import { markEdits, DiffMethod } from './mark_edits'; @@ -89,7 +88,7 @@ const useTokens = ( try { /* - Synchroniously apply all the enhancers to the hunks and return an array of tokens. + Synchronously apply all the enhancers to the hunks and return an array of tokens. */ return tokenize(hunks, options); } catch (ex) { @@ -128,7 +127,7 @@ const convertChangesToUnifiedDiffString = (changes: Change[]): string => { return unifiedDiff; }; -const convertToDiffFile = (oldSource: string, newSource: string) => { +const convertToDiffFile = (oldSource: string, newSource: string, zip?: boolean) => { /* "diffLines" call converts two strings of text into an array of Change objects. */ @@ -156,7 +155,7 @@ const convertToDiffFile = (oldSource: string, newSource: string) => { Hunks represent changed lines of code plus a few unchanged lines above and below for context. */ const [diffFile] = parseDiff(unifiedDiff, { - nearbySequences: 'zip', + nearbySequences: zip ? 'zip' : undefined, }); return diffFile; @@ -255,18 +254,25 @@ const CustomStyles: FC> = ({ children }) => { ); }; -interface DiffViewProps extends Partial { +export interface DiffViewProps extends Partial { oldSource: string; newSource: string; diffMethod?: DiffMethod; viewType?: 'split' | 'unified'; + /* + When "zip" is set to true, the change lines will be rendered in an interlaced style. + For an example, refer to: + https://github.com/otakustay/react-diff-view/blob/8a2dbdf97af0890aff6e563ed435e7da13c5e7b1/README.md#parse-diff-text + */ + zip?: boolean; } export const DiffView = ({ oldSource, newSource, - diffMethod = DiffMethod.WORDS, + diffMethod = DiffMethod.WORDS_WITH_SPACE, viewType = 'split', + zip = false, }: DiffViewProps) => { /* "react-diff-view" components consume diffs not as a strings, but as something they call "hunks". @@ -277,7 +283,10 @@ export const DiffView = ({ /* "diffFile" is essentially an object containing an array of hunks plus some metadata. */ - const diffFile = useMemo(() => convertToDiffFile(oldSource, newSource), [oldSource, newSource]); + const diffFile = useMemo( + () => convertToDiffFile(oldSource, newSource, zip), + [oldSource, newSource, zip] + ); /* Sections of diff without changes are hidden by default, because they are not present in the "hunks" array. diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/mark_edits.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/mark_edits.tsx index 95eaefdc37f15..57cb34d28c338 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/mark_edits.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/json_diff/mark_edits.tsx @@ -38,7 +38,6 @@ export enum DiffMethod { WORDS = 'diffWords', WORDS_WITH_SPACE = 'diffWordsWithSpace', LINES = 'diffLines', - TRIMMED_LINES = 'diffTrimmedLines', SENTENCES = 'diffSentences', CSS = 'diffCss', } @@ -262,7 +261,7 @@ function diffChangeBlock( * The format of the strings is as follows: */ export function markEdits(hunks: HunkData[], diffMethod: DiffMethod): TokenizeEnhancer { - /* + /* changeBlocks is an array that contains information about the lines that have changes (additions or deletions). Unchanged lines are not included. */ From b64ff102045585b2f28ced7a612edcafd0944b6e Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Mon, 30 Dec 2024 13:44:44 +0100 Subject: [PATCH 05/10] Add `@kbn/shared-ux-router` to shared bundle (#204786) ## Summary Part of https://github.com/elastic/kibana/issues/204761 . This package is used by every app and I thought it is worth adding it to the shared bundle. Especially since it is already part of Bazel. --- packages/kbn-ui-shared-deps-src/BUILD.bazel | 1 + packages/kbn-ui-shared-deps-src/src/definitions.js | 1 + packages/kbn-ui-shared-deps-src/src/entry.js | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel index 12cb35139759b..129514ee1e992 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel @@ -43,6 +43,7 @@ webpack_cli( "//packages/react/kibana_context/root", "//packages/react/kibana_context/render", "//packages/react/kibana_context/theme", + "//packages/shared-ux/router/impl:shared-ux-router", ], output_dir = True, args = [ diff --git a/packages/kbn-ui-shared-deps-src/src/definitions.js b/packages/kbn-ui-shared-deps-src/src/definitions.js index 90aa4127f1c86..4c6a66de525c3 100644 --- a/packages/kbn-ui-shared-deps-src/src/definitions.js +++ b/packages/kbn-ui-shared-deps-src/src/definitions.js @@ -110,6 +110,7 @@ const externals = { '@kbn/react-kibana-context-root': '__kbnSharedDeps__.KbnReactKibanaContextRoot', '@kbn/react-kibana-context-render': '__kbnSharedDeps__.KbnReactKibanaContextRender', '@kbn/react-kibana-context-theme': '__kbnSharedDeps__.KbnReactKibanaContextTheme', + '@kbn/shared-ux-router': '__kbnSharedDeps__.KbnSharedUxRouter', }; module.exports = { distDir, jsFilename, cssDistFilename, externals }; diff --git a/packages/kbn-ui-shared-deps-src/src/entry.js b/packages/kbn-ui-shared-deps-src/src/entry.js index bd0e8ae2efee1..8653fe4890809 100644 --- a/packages/kbn-ui-shared-deps-src/src/entry.js +++ b/packages/kbn-ui-shared-deps-src/src/entry.js @@ -83,3 +83,4 @@ export const KbnReactKibanaContextCommon = require('@kbn/react-kibana-context-co export const KbnReactKibanaContextRoot = require('@kbn/react-kibana-context-root'); export const KbnReactKibanaContextRender = require('@kbn/react-kibana-context-render'); export const KbnReactKibanaContextTheme = require('@kbn/react-kibana-context-theme'); +export const KbnSharedUxRouter = require('@kbn/shared-ux-router'); From 12608c3659a2aaea702c1d341bd0fab30f968056 Mon Sep 17 00:00:00 2001 From: Carlos Crespo Date: Mon, 30 Dec 2024 13:50:48 +0100 Subject: [PATCH 06/10] [APM Fix missing error.culprit (#205242) fixes [#205240](https://github.com/elastic/kibana/issues/205240) ## Summary Fixes the issue where `error.culprit` is always missing. image image ### How to test - Run `simple_trace` synthtrace scenario - Run the request below
POST logs-apm.error-default/_doc ``` POST logs-apm.error-default/_doc { "container": { "id": "80cc20ecab1b57865d7aca0f66ab75a0c6ec2c51f7c53da04a8540215369c359" }, "kubernetes": { "node": { "name": "ip-192-168-55-136.ec2.internal" }, "pod": { "uid": "9bbfe3dc-dace-4638-b8f5-aa6ccf435cbe", "name": "otel-demo-green-3-cartservice-5d5ccc86dd-gcxtr" }, "namespace": "otel-demo-green-3" }, "parent": { "id": "f39639f56a540e0e" }, "agent": { "name": "opentelemetry/dotnet", "version": "1.6.0" }, "source": { "port": 35136, "ip": "::ffff:192.168.50.132" }, "error": { "exception": [ { "handled": true, "message": "Exception (plain, .NET) without culprit", "type": "Grpc.Core.RpcException" } ], "culprit": "culprit msg", // remove to test the N/A scenario "id": "60674e9b23c8b06d83889e63ffe82c1c", //change the id on every run "stack_trace": "Grpc.Core.RpcException: Status(StatusCode=\"FailedPrecondition\", Detail=\"Can't access cart storage. System.ApplicationException: Wasn't able to connect to redis\n at cartservice.cartstore.RedisCartStore.EnsureRedisConnected() in /usr/src/app/src/cartstore/RedisCartStore.cs:line 79\n at cartservice.cartstore.RedisCartStore.EmptyCartAsync(String userId) in /usr/src/app/src/cartstore/RedisCartStore.cs:line 157\")\n at cartservice.cartstore.RedisCartStore.EmptyCartAsync(String userId) in /usr/src/app/src/cartstore/RedisCartStore.cs:line 166\n at cartservice.services.CartService.EmptyCart(EmptyCartRequest request, ServerCallContext context) in /usr/src/app/src/services/CartService.cs:line 65", "grouping_key": "6082c58afd7fa6838ebc27eef6e04829" }, "message": "Exception (plain, .NET)", "url": { "path": "/oteldemo.CartService/EmptyCart", "original": "http://otel-demo-green-3-cartservice:8080/oteldemo.CartService/EmptyCart", "scheme": "http", "port": 8080, "domain": "otel-demo-green-3-cartservice", "full": "http://otel-demo-green-3-cartservice:8080/oteldemo.CartService/EmptyCart" }, "labels": { "k8s_pod_ip": "192.168.62.174", "k8s_pod_start_time": "2024-12-17T02:55:54Z", "service_namespace": "opentelemetry-demo", "k8s_deployment_name": "otel-demo-green-3-cartservice" }, "observer": { "hostname": "450fbf7ab701", "type": "apm-server", "version": "8.13.2" }, "trace": { "id": "699f6d1039fc873191a1c983790db3a2" }, "@timestamp": "2024-12-30T10:30:00.000Z", "data_stream": { "namespace": "default", "type": "logs", "dataset": "apm.error" }, "service": { "node": { "name": "80cc20ecab1b57865d7aca0f66ab75a0c6ec2c51f7c53da04a8540215369c359" }, "framework": { "name": "Microsoft.AspNetCore" }, "name": "synth-node-0", "language": { "name": "dotnet" } }, "host": { "hostname": "ip-192-168-55-136.ec2.internal", "name": "ip-192-168-55-136.ec2.internal" }, "client": { "port": 35136, "ip": "::ffff:192.168.50.132" }, "http": { "request": { "method": "POST" }, "response": { "status_code": 200 }, "version": "2" }, "event": { "agent_id_status": "missing", "ingested": "2024-12-18T18:04:22Z" }, "transaction": { "id": "f39639f56a540e0e", "type": "request", "sampled": true }, "user_agent": { "original": "grpc-go/1.59.0", "name": "Other", "device": { "name": "Other" } }, "span": { "id": "f39639f56a540e0e" }, "timestamp": { "us": 1704892605838000 } } ```
--- .../errors/get_error_groups/get_error_sample_details.ts | 2 ++ .../apis/observability/apm/mobile/errors/generate_data.ts | 6 +++++- .../apm/mobile/errors/group_id_samples.spec.ts | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_sample_details.ts b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_sample_details.ts index 954086ee53084..2ea8605789acc 100644 --- a/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_sample_details.ts +++ b/x-pack/solutions/observability/plugins/apm/server/routes/errors/get_error_groups/get_error_sample_details.ts @@ -13,6 +13,7 @@ import { AGENT_NAME, AGENT_VERSION, AT_TIMESTAMP, + ERROR_CULPRIT, ERROR_EXCEPTION, ERROR_GROUP_ID, ERROR_ID, @@ -82,6 +83,7 @@ export async function getErrorSampleDetails({ SPAN_ID, AGENT_VERSION, PROCESSOR_NAME, + ERROR_CULPRIT, ERROR_STACK_TRACE, ERROR_EXC_MESSAGE, ERROR_EXC_HANDLED, diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/mobile/errors/generate_data.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/mobile/errors/generate_data.ts index c1ae372335824..1db1e4388a197 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/mobile/errors/generate_data.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/mobile/errors/generate_data.ts @@ -59,7 +59,11 @@ export async function generateData({ .transaction({ transactionName: transaction.name }) .errors( serviceGoProdInstance - .error({ message: `Error ${index}`, type: transaction.name }) + .error({ + message: `Error ${index}`, + type: transaction.name, + culprit: `Error culprit ${index}`, + }) .timestamp(timestamp) ) .duration(1000) diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/mobile/errors/group_id_samples.spec.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/mobile/errors/group_id_samples.spec.ts index 6e5a19327c24f..f50f762c5c075 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/mobile/errors/group_id_samples.spec.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/mobile/errors/group_id_samples.spec.ts @@ -134,6 +134,10 @@ export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderCon 'Error 1' ); }); + + it('displays correct error culprit info', () => { + expect(errorSampleDetailsResponse.error.error.culprit).to.equal('Error culprit 1'); + }); }); }); From ac5e20d59c4892dfcea8b66f845aa4ce2c9df2b5 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 30 Dec 2024 14:25:16 +0100 Subject: [PATCH 07/10] SKA: Relocate script V6.2 (#205244) ## Summary * Support packages that are currently placed under a `*/plugins/*` folder (and viceversa). * Transform (simplify) the following path: ``` src/platform/packages/shared/chart_expressions/common # becomes src/platform/packages/shared/chart-expressions-common ``` cc @markov00 --- packages/kbn-relocate/utils/relocate.ts | 7 ++++++- packages/kbn-relocate/utils/transforms.ts | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/kbn-relocate/utils/relocate.ts b/packages/kbn-relocate/utils/relocate.ts index 233c03b84ea05..1e833b8d2539a 100644 --- a/packages/kbn-relocate/utils/relocate.ts +++ b/packages/kbn-relocate/utils/relocate.ts @@ -39,7 +39,12 @@ export const calculateModuleTargetFolder = (module: Package): string => { const group = module.manifest.group!; const isPlugin = module.manifest.type === 'plugin'; const fullPath = join(BASE_FOLDER, module.directory); - let moduleDelimiter = isPlugin ? '/plugins/' : '/packages/'; + if (!fullPath.includes('/plugins/') && !fullPath.includes('/packages/')) { + throw new Error( + `The module ${module.id} is not located under a '*/plugins/*' or '*/packages/*' folder` + ); + } + let moduleDelimiter = fullPath.includes('/plugins/') ? '/plugins/' : '/packages/'; // for platform modules that are in a sustainable folder, strip the /private/ or /shared/ part too if (module.directory.includes(`${moduleDelimiter}private/`)) { diff --git a/packages/kbn-relocate/utils/transforms.ts b/packages/kbn-relocate/utils/transforms.ts index 267d570169d67..e3bd95b3a6c2d 100644 --- a/packages/kbn-relocate/utils/transforms.ts +++ b/packages/kbn-relocate/utils/transforms.ts @@ -11,6 +11,8 @@ import type { Package } from '../types'; type TransformFunction = (param: string) => string; const TRANSFORMS: Record = { + 'src/platform/packages/shared/chart_expressions/common': + 'src/platform/packages/shared/chart-expressions-common', 'x-pack/solutions/security/packages/security-solution/': 'x-pack/solutions/security/packages/', 'x-pack/solutions/observability/plugins/observability_solution/': 'x-pack/solutions/observability/plugins/', From 2656adbc87a48383c6a6a56f4fc374c880acc896 Mon Sep 17 00:00:00 2001 From: Elena Shostak <165678770+elena-shostak@users.noreply.github.com> Date: Mon, 30 Dec 2024 14:35:38 +0100 Subject: [PATCH 08/10] [CodeQL] Added env var to skip types for 8.x branch (#205257) ## Summary Added `CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES` env var for `8.x` branch to check if that speeds up the CodeQL run, refer to [documentation](https://codeql.github.com/docs/codeql-overview/codeql-changelog/codeql-cli-2.15.5/) for details. --- .github/workflows/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 291f869c82bf8..ea18312df3cc8 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -47,8 +47,8 @@ jobs: echo "CHECKOUT_SHA=$(git rev-parse HEAD)" >> "$GITHUB_ENV" - name: Set experimental environment variable for 8.x branch - if: env.CHECKOUT_REF == 'refs/heads/8.x' - run: echo "CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES=true" >> "$GITHUB_ENV" + if: env.CHECKOUT_REF == 'refs/heads/8.x' + run: echo "CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES=true" >> "$GITHUB_ENV" - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@883d8588e56d1753a8a58c1c86e88976f0c23449 # v3.26.3 From f3d7fa7d122087b06eed098827d4c909b1ba90f2 Mon Sep 17 00:00:00 2001 From: "Eyo O. Eyo" <7893459+eokoneyo@users.noreply.github.com> Date: Mon, 30 Dec 2024 15:23:51 +0100 Subject: [PATCH 09/10] [React18] Migrate test suites to account for testing library upgrades security-solution (#201176) This PR migrates test suites that use `renderHook` from the library `@testing-library/react-hooks` to adopt the equivalent and replacement of `renderHook` from the export that is now available from `@testing-library/react`. This work is required for the planned migration to react18. ## Context In this PR, usages of `waitForNextUpdate` that previously could have been destructured from `renderHook` are now been replaced with `waitFor` exported from `@testing-library/react`, furthermore `waitFor` that would also have been destructured from the same renderHook result is now been replaced with `waitFor` from the export of `@testing-library/react`. ***Why is `waitFor` a sufficient enough replacement for `waitForNextUpdate`, and better for testing values subject to async computations?*** WaitFor will retry the provided callback if an error is returned, till the configured timeout elapses. By default the retry interval is `50ms` with a timeout value of `1000ms` that effectively translates to at least 20 retries for assertions placed within waitFor. See https://testing-library.com/docs/dom-testing-library/api-async/#waitfor for more information. This however means that for person's writing tests, said person has to be explicit about expectations that describe the internal state of the hook being tested. This implies checking for instance when a react query hook is being rendered, there's an assertion that said hook isn't loading anymore. In this PR you'd notice that this pattern has been adopted, with most existing assertions following an invocation of `waitForNextUpdate` being placed within a `waitFor` invocation. In some cases the replacement is simply a `waitFor(() => new Promise((resolve) => resolve(null)))` (many thanks to @kapral18, for point out exactly why this works), where this suffices the assertions that follow aren't placed within a waitFor so this PR doesn't get larger than it needs to be. It's also worth pointing out this PR might also contain changes to test and application code to improve said existing test. ### What to do next? 1. Review the changes in this PR. 2. If you think the changes are correct, approve the PR. ## Any questions? If you have any questions or need help with this PR, please leave comments in this PR. --------- Co-authored-by: Elastic Machine --- .../use_panel_side_nav_items.test.tsx | 2 +- .../use_alert_count_by_rule_by_status.test.ts | 9 +- .../configurations/default/index.test.tsx | 2 +- .../use_discover_in_timeline_actions.test.tsx | 35 +++- .../components/local_storage/index.test.tsx | 2 +- .../ml/anomaly/use_anomalies_search.test.ts | 135 +++++++-------- .../hooks/use_installed_security_jobs.test.ts | 25 +-- .../ml/hooks/use_ml_rule_validations.test.ts | 2 +- .../ml/links/create_explorer_link.test.tsx | 32 ++-- .../use_bulk_alert_assignees_items.test.tsx | 3 +- .../use_bulk_alert_tags_items.test.tsx | 3 +- .../endpoint/use_endpoint_privileges.test.ts | 8 +- .../use_bulk_get_user_profiles.test.tsx | 15 +- .../use_get_current_user_profile.test.tsx | 7 +- .../user_profiles/use_suggest_users.test.tsx | 7 +- .../alerts/alerts_by_status_donut.test.ts | 3 +- .../common/alerts/alerts_histogram.test.ts | 3 +- .../common/alerts/alerts_table.test.ts | 3 +- .../common/alerts/rule_preview.test.ts | 3 +- .../common/authentication.test.ts | 2 +- .../lens_attributes/common/event.test.ts | 2 +- .../common/external_alert.test.ts | 2 +- .../hosts/kpi_host_area.test.ts | 2 +- .../hosts/kpi_host_metric.test.ts | 2 +- .../hosts/kpi_unique_ips_area.test.ts | 2 +- .../hosts/kpi_unique_ips_bar.test.ts | 2 +- .../kpi_unique_ips_destination_metric.test.ts | 2 +- .../kpi_unique_ips_source_metric.test.ts | 2 +- .../network/dns_top_domains.test.ts | 6 +- .../network/kpi_dns_queries.test.ts | 2 +- .../network/kpi_network_events.test.ts | 2 +- .../network/kpi_tls_handshakes.test.ts | 2 +- .../network/kpi_unique_flow_ids.test.ts | 2 +- .../kpi_unique_private_ips_area.test.ts | 2 +- .../kpi_unique_private_ips_bar.test.ts | 2 +- ...que_private_ips_destination_metric.test.ts | 2 +- ...i_unique_private_ips_source_metric.test.ts | 2 +- .../users/kpi_total_users_area.test.ts | 2 +- .../users/kpi_total_users_metric.test.ts | 2 +- ...user_authentication_metric_failure.test.ts | 2 +- .../kpi_user_authentications_area.test.ts | 2 +- .../kpi_user_authentications_bar.test.ts | 2 +- ...ser_authentications_metric_success.test.ts | 2 +- .../visualization_actions/mocks.tsx | 2 +- .../use_actions.test.tsx | 2 +- .../use_add_to_existing_case.test.tsx | 3 +- .../use_add_to_new_case.test.tsx | 3 +- .../use_lens_attributes.test.tsx | 2 +- .../use_save_to_library.test.tsx | 3 +- .../use_visualization_response.test.tsx | 2 +- .../events/last_event_time/index.test.ts | 113 ++++++------- .../use_messages_storage.test.tsx | 67 ++++---- .../containers/query_toggle/index.test.tsx | 24 ++- .../related_hosts/index.test.tsx | 3 +- .../related_users/index.test.tsx | 3 +- .../common/containers/source/index.test.tsx | 37 ++-- .../use_first_last_seen.test.ts | 5 +- .../containers/use_full_screen/index.test.tsx | 96 +++++------ .../containers/use_global_time/index.test.tsx | 2 +- .../use_search_strategy/index.test.ts | 3 +- ...query_timeline_by_id_on_url_change.test.ts | 2 +- .../common/hooks/use_app_toasts.test.ts | 2 +- .../common/hooks/use_data_view_id.test.ts | 13 +- .../common/hooks/use_error_toast.test.ts | 3 +- .../common/hooks/use_fetch/use_fetch.test.tsx | 108 ++++++------ .../hooks/use_global_filter_query.test.ts | 2 +- .../hooks/use_invalid_filter_query.test.tsx | 7 +- ...vigate_to_alerts_page_with_filters.test.ts | 3 +- .../hooks/use_resolve_conflict.test.tsx | 12 +- .../common/hooks/use_resolve_redirect.test.ts | 2 +- .../common/hooks/use_upselling.test.tsx | 10 +- .../public/common/links/links.test.tsx | 45 ++--- .../links/use_find_app_links_by_path.test.ts | 2 +- .../common/mock/mock_assistant_provider.tsx | 6 +- .../public/common/mock/test_providers.tsx | 4 +- .../public/common/store/reducer.test.tsx | 2 +- .../utils/get_mapped_non_ecs_value.test.ts | 2 +- .../global_query_string/helpers.test.tsx | 2 +- .../utils/global_query_string/index.test.tsx | 20 +-- .../utils/timeline/use_show_timeline.test.tsx | 36 ++-- .../components/user_info/index.test.tsx | 54 +++--- .../alerts/use_alerts_privileges.test.tsx | 74 +++----- .../alerts/use_cases_from_alerts.test.tsx | 17 +- .../alerts/use_query.test.tsx | 131 ++++++--------- .../alerts/use_signal_index.test.tsx | 158 ++++++++---------- .../use_alert_histogram_count.test.tsx | 2 +- .../use_cell_actions.test.tsx | 21 +-- .../use_persistent_controls.test.tsx | 3 +- .../hooks/use_rule_details.test.ts | 6 +- .../use_integration_card_list.test.ts | 3 +- .../hooks/use_body_config.test.ts | 3 +- .../hooks/use_completed_cards.test.ts | 10 +- .../hooks/use_expanded_card.test.ts | 5 +- 93 files changed, 666 insertions(+), 825 deletions(-) diff --git a/x-pack/solutions/security/plugins/security_solution/public/app/solution_navigation/use_panel_side_nav_items.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/app/solution_navigation/use_panel_side_nav_items.test.tsx index 84c2c32c17ca3..07445443a8df2 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/app/solution_navigation/use_panel_side_nav_items.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/app/solution_navigation/use_panel_side_nav_items.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { usePanelSideNavItems } from './use_panel_side_nav_items'; import { SecurityPageName } from '@kbn/security-solution-navigation'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/alert_count_by_status/use_alert_count_by_rule_by_status.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/alert_count_by_status/use_alert_count_by_rule_by_status.test.ts index 4caf3bf6c04db..7eb7069c76100 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/alert_count_by_status/use_alert_count_by_rule_by_status.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/alert_count_by_status/use_alert_count_by_rule_by_status.test.ts @@ -5,13 +5,10 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { mockQuery, mockAlertCountByRuleResult, parsedAlertCountByRuleResult } from './mock_data'; -import type { - UseAlertCountByRuleByStatus, - UseAlertCountByRuleByStatusProps, -} from './use_alert_count_by_rule_by_status'; +import type { UseAlertCountByRuleByStatusProps } from './use_alert_count_by_rule_by_status'; import { useAlertCountByRuleByStatus } from './use_alert_count_by_rule_by_status'; const dateNow = new Date('2022-04-15T12:00:00.000Z').valueOf(); @@ -53,7 +50,7 @@ jest.mock('../../../detections/containers/detection_engine/alerts/use_signal_ind const renderUseAlertCountByRuleByStatus = ( overrides: Partial = {} ) => - renderHook>(() => + renderHook(() => useAlertCountByRuleByStatus({ skip: false, field: 'test_field', diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/chart_settings_popover/configurations/default/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/chart_settings_popover/configurations/default/index.test.tsx index 9155edb7d36ea..9441975078e51 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/chart_settings_popover/configurations/default/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/chart_settings_popover/configurations/default/index.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import React from 'react'; import { TestProviders } from '../../../../mock'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/discover_in_timeline/use_discover_in_timeline_actions.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/discover_in_timeline/use_discover_in_timeline_actions.test.tsx index 6e9936b5f1b41..339662b2fefb2 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/discover_in_timeline/use_discover_in_timeline_actions.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/discover_in_timeline/use_discover_in_timeline_actions.test.tsx @@ -8,7 +8,7 @@ import { createSearchSourceMock } from '@kbn/data-plugin/public/mocks'; import { discoverPluginMock } from '@kbn/discover-plugin/public/mocks'; import { dataViewMock } from '@kbn/discover-utils/src/__mocks__'; import type { SavedSearch } from '@kbn/saved-search-plugin/common'; -import { renderHook } from '@testing-library/react-hooks'; +import { waitFor, act, renderHook } from '@testing-library/react'; import { createMockStore, mockGlobalState, TestProviders } from '../../mock'; import { useDiscoverInTimelineActions } from './use_discover_in_timeline_actions'; import type { Filter } from '@kbn/es-query'; @@ -20,9 +20,6 @@ import * as timelineActions from '../../../timelines/store/actions'; import type { ComponentType, FC, PropsWithChildren } from 'react'; import React from 'react'; import type { DataView } from '@kbn/data-views-plugin/common'; -import TestRenderer from 'react-test-renderer'; - -const { act } = TestRenderer; let mockDiscoverStateContainerRef = { current: discoverPluginMock.getDiscoverStateMock({}), @@ -148,7 +145,7 @@ describe('useDiscoverInTimelineActions', () => { }); describe('getAppStateFromSavedSearch', () => { it('should reach out to discover to convert app state from saved search', async () => { - const { result, waitFor } = renderTestHook(); + const { result } = renderTestHook(); const { appState } = result.current.getAppStateFromSavedSearch(savedSearchMock); await waitFor(() => { expect(appState).toMatchObject( @@ -178,7 +175,7 @@ describe('useDiscoverInTimelineActions', () => { describe('resetDiscoverAppState', () => { it('should reset Discover AppState to a default state', async () => { - const { result, waitFor } = renderTestHook(); + const { result } = renderTestHook(); await result.current.resetDiscoverAppState(); await waitFor(() => { const appState = mockDiscoverStateContainerRef.current.appState.getState(); @@ -186,7 +183,7 @@ describe('useDiscoverInTimelineActions', () => { }); }); it('should reset Discover time to a default state', async () => { - const { result, waitFor } = renderTestHook(); + const { result } = renderTestHook(); await result.current.resetDiscoverAppState(); await waitFor(() => { const globalState = mockDiscoverStateContainerRef.current.globalState.get(); @@ -197,6 +194,15 @@ describe('useDiscoverInTimelineActions', () => { describe('updateSavedSearch', () => { it('should add defaults to the savedSearch before updating saved search', async () => { const { result } = renderTestHook(); + + await waitFor(() => + expect(result.current).toEqual( + expect.objectContaining({ + updateSavedSearch: expect.any(Function), + }) + ) + ); + await act(async () => { await result.current.updateSavedSearch(savedSearchMock, TimelineId.active); }); @@ -216,6 +222,7 @@ describe('useDiscoverInTimelineActions', () => { }) ); }); + it('should initialize saved search when it is not set on the timeline model yet', async () => { const localMockState: State = { ...mockGlobalState, @@ -235,6 +242,13 @@ describe('useDiscoverInTimelineActions', () => { const LocalTestProvider = getTestProviderWithCustomState(localMockState); const { result } = renderTestHook(LocalTestProvider); + await waitFor(() => + expect(result.current).toEqual( + expect.objectContaining({ + updateSavedSearch: expect.any(Function), + }) + ) + ); await act(async () => { await result.current.updateSavedSearch(savedSearchMock, TimelineId.active); }); @@ -269,6 +283,13 @@ describe('useDiscoverInTimelineActions', () => { const LocalTestProvider = getTestProviderWithCustomState(localMockState); const { result } = renderTestHook(LocalTestProvider); + await waitFor(() => + expect(result.current).toEqual( + expect.objectContaining({ + updateSavedSearch: expect.any(Function), + }) + ) + ); await act(async () => { await result.current.updateSavedSearch(changedSavedSearchMock, TimelineId.active); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/local_storage/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/local_storage/index.test.tsx index a7e37b50f88a7..46f3a26bb9f51 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/local_storage/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/local_storage/index.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; +import { renderHook, act } from '@testing-library/react'; import { APP_ID } from '../../../../common/constants'; import { DEFAULT_STACK_BY_FIELD } from '../../../detections/components/alerts_kpis/common/config'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/anomaly/use_anomalies_search.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/anomaly/use_anomalies_search.test.ts index 4c828e918b187..993f7c0b47b59 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/anomaly/use_anomalies_search.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/anomaly/use_anomalies_search.test.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; + +import { act, waitFor, renderHook } from '@testing-library/react'; import { TestProviders } from '../../../mock'; import { useAggregatedAnomaliesByJob, AnomalyEntity } from './use_anomalies_search'; @@ -70,16 +71,11 @@ describe('useAggregatedAnomaliesByJob', () => { }); it('refetch calls useSecurityJobs().refetch', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook( - () => useAggregatedAnomaliesByJob({ skip: false, from, to }), - { - wrapper: TestProviders, - } - ); - - await waitForNextUpdate(); + const { result } = renderHook(() => useAggregatedAnomaliesByJob({ skip: false, from, to }), { + wrapper: TestProviders, + }); + act(() => { result.current.refetch(); }); @@ -87,20 +83,15 @@ describe('useAggregatedAnomaliesByJob', () => { }); it('returns formated data', async () => { - await act(async () => { - const jobCount = { key: jobId, doc_count: 99 }; - mockAnomaliesSearch.mockResolvedValue({ - aggregations: { number_of_anomalies: { buckets: [jobCount] } }, - }); - const { result, waitForNextUpdate } = renderHook( - () => useAggregatedAnomaliesByJob({ skip: false, from, to }), - { - wrapper: TestProviders, - } - ); - await waitForNextUpdate(); - await waitForNextUpdate(); + const jobCount = { key: jobId, doc_count: 99 }; + mockAnomaliesSearch.mockResolvedValue({ + aggregations: { number_of_anomalies: { buckets: [jobCount] } }, + }); + const { result } = renderHook(() => useAggregatedAnomaliesByJob({ skip: false, from, to }), { + wrapper: TestProviders, + }); + await waitFor(() => expect(result.current.data).toEqual( expect.arrayContaining([ { @@ -110,55 +101,50 @@ describe('useAggregatedAnomaliesByJob', () => { entity: AnomalyEntity.Host, }, ]) - ); - }); + ) + ); }); it('returns jobs sorted by name', async () => { - await act(async () => { - const firstJobId = 'v3_windows_anomalous_script'; - const secondJobId = 'auth_rare_source_ip_for_a_user'; - const fistJobCount = { key: firstJobId, doc_count: 99 }; - const secondJobCount = { key: secondJobId, doc_count: 99 }; - const firstJobSecurityName = '0000001'; - const secondJobSecurityName = '0000002'; - const firstJob = { - id: firstJobId, - jobState: 'started', - datafeedState: 'started', - customSettings: { - security_app_display_name: firstJobSecurityName, - }, - }; - const secondJob = { - id: secondJobId, - jobState: 'started', - datafeedState: 'started', - customSettings: { - security_app_display_name: secondJobSecurityName, - }, - }; - - mockAnomaliesSearch.mockResolvedValue({ - aggregations: { number_of_anomalies: { buckets: [fistJobCount, secondJobCount] } }, - }); + const firstJobId = 'v3_windows_anomalous_script'; + const secondJobId = 'auth_rare_source_ip_for_a_user'; + const fistJobCount = { key: firstJobId, doc_count: 99 }; + const secondJobCount = { key: secondJobId, doc_count: 99 }; + const firstJobSecurityName = '0000001'; + const secondJobSecurityName = '0000002'; + const firstJob = { + id: firstJobId, + jobState: 'started', + datafeedState: 'started', + customSettings: { + security_app_display_name: firstJobSecurityName, + }, + }; + const secondJob = { + id: secondJobId, + jobState: 'started', + datafeedState: 'started', + customSettings: { + security_app_display_name: secondJobSecurityName, + }, + }; + + mockAnomaliesSearch.mockResolvedValue({ + aggregations: { number_of_anomalies: { buckets: [fistJobCount, secondJobCount] } }, + }); - mockUseSecurityJobs.mockReturnValue({ - loading: false, - isMlAdmin: true, - jobs: [firstJob, secondJob], - refetch: useSecurityJobsRefetch, - }); + mockUseSecurityJobs.mockReturnValue({ + loading: false, + isMlAdmin: true, + jobs: [firstJob, secondJob], + refetch: useSecurityJobsRefetch, + }); - const { result, waitForNextUpdate } = renderHook( - () => useAggregatedAnomaliesByJob({ skip: false, from, to }), - { - wrapper: TestProviders, - } - ); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useAggregatedAnomaliesByJob({ skip: false, from, to }), { + wrapper: TestProviders, + }); + await waitFor(() => { const names = result.current.data.map(({ name }) => name); expect(names[0]).toEqual(firstJobSecurityName); @@ -167,18 +153,11 @@ describe('useAggregatedAnomaliesByJob', () => { }); it('does not throw error when aggregations is undefined', async () => { - await act(async () => { - mockAnomaliesSearch.mockResolvedValue({}); - const { waitForNextUpdate } = renderHook( - () => useAggregatedAnomaliesByJob({ skip: false, from, to }), - { - wrapper: TestProviders, - } - ); - await waitForNextUpdate(); - await waitForNextUpdate(); - - expect(mockAddToastError).not.toBeCalled(); + mockAnomaliesSearch.mockResolvedValue({}); + renderHook(() => useAggregatedAnomaliesByJob({ skip: false, from, to }), { + wrapper: TestProviders, }); + + await waitFor(() => expect(mockAddToastError).not.toBeCalled()); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/hooks/use_installed_security_jobs.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/hooks/use_installed_security_jobs.test.ts index 0ee5217babb1d..b492c97853e6e 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/hooks/use_installed_security_jobs.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/hooks/use_installed_security_jobs.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { waitFor, renderHook } from '@testing-library/react'; import { hasMlUserPermissions } from '../../../../../common/machine_learning/has_ml_user_permissions'; import { hasMlLicense } from '../../../../../common/machine_learning/has_ml_license'; @@ -38,12 +38,12 @@ describe('useInstalledSecurityJobs', () => { }); it('returns jobs and permissions', async () => { - const { result, waitForNextUpdate } = renderHook(() => useInstalledSecurityJobs(), { + const { result } = renderHook(() => useInstalledSecurityJobs(), { wrapper: TestProviders, }); - await waitForNextUpdate(); - expect(result.current.jobs).toHaveLength(3); + await waitFor(() => expect(result.current.jobs).toHaveLength(3)); + expect(result.current.jobs).toEqual( expect.arrayContaining([ { @@ -71,25 +71,26 @@ describe('useInstalledSecurityJobs', () => { }); it('filters out non-security jobs', async () => { - const { result, waitForNextUpdate } = renderHook(() => useInstalledSecurityJobs(), { + const { result } = renderHook(() => useInstalledSecurityJobs(), { wrapper: TestProviders, }); - await waitForNextUpdate(); + await waitFor(() => expect(result.current.jobs.length).toBeGreaterThan(0)); - expect(result.current.jobs.length).toBeGreaterThan(0); expect(result.current.jobs.every(isSecurityJob)).toEqual(true); }); it('renders a toast error if the ML call fails', async () => { (getJobsSummary as jest.Mock).mockRejectedValue('whoops'); - const { waitForNextUpdate } = renderHook(() => useInstalledSecurityJobs(), { + + renderHook(() => useInstalledSecurityJobs(), { wrapper: TestProviders, }); - await waitForNextUpdate(); - expect(appToastsMock.addError).toHaveBeenCalledWith('whoops', { - title: 'Security job fetch failure', - }); + await waitFor(() => + expect(appToastsMock.addError).toHaveBeenCalledWith('whoops', { + title: 'Security job fetch failure', + }) + ); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/hooks/use_ml_rule_validations.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/hooks/use_ml_rule_validations.test.ts index bb38669b34533..d0c605af78c44 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/hooks/use_ml_rule_validations.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/hooks/use_ml_rule_validations.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { TestProviders } from '../../../mock'; import { buildMockJobsSummary, getJobsSummaryResponseMock } from '../../ml_popover/api.mock'; import { useInstalledSecurityJobs } from './use_installed_security_jobs'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/links/create_explorer_link.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/links/create_explorer_link.test.tsx index 28d70edcce46a..32aa97f1aea00 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/links/create_explorer_link.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/ml/links/create_explorer_link.test.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { render, act } from '@testing-library/react'; +import { render } from '@testing-library/react'; import { mockAnomalies } from '../mock'; import { cloneDeep } from 'lodash/fp'; import { ExplorerLink } from './create_explorer_link'; @@ -27,23 +27,21 @@ describe('create_explorer_link', () => { const ml = { locator }; const http = { basePath: { get: jest.fn(() => {}) } }; - await act(async () => { - const { findByText } = render( - - - - ); + const { findByText } = render( + + + + ); - const url = (await findByText('Open in Anomaly Explorer')).getAttribute('href'); + const url = (await findByText('Open in Anomaly Explorer')).getAttribute('href'); - expect(url).toEqual( - "/app/ml/explorer?_g=(ml:(jobIds:!(job-1)),refreshInterval:(pause:!t,value:0),time:(from:'1970-01-01T00:00:00.000Z',mode:absolute,to:'3000-01-01T00:00:00.000Z'))&_a=(explorer:(mlExplorerFilter:(),mlExplorerSwimlane:()))" - ); - }); + expect(url).toEqual( + "/app/ml/explorer?_g=(ml:(jobIds:!(job-1)),refreshInterval:(pause:!t,value:0),time:(from:'1970-01-01T00:00:00.000Z',mode:absolute,to:'3000-01-01T00:00:00.000Z'))&_a=(explorer:(mlExplorerFilter:(),mlExplorerSwimlane:()))" + ); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/toolbar/bulk_actions/use_bulk_alert_assignees_items.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/toolbar/bulk_actions/use_bulk_alert_assignees_items.test.tsx index 82e9b062d9a7d..ca4e3175a08dc 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/toolbar/bulk_actions/use_bulk_alert_assignees_items.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/toolbar/bulk_actions/use_bulk_alert_assignees_items.test.tsx @@ -8,8 +8,7 @@ import { ALERT_WORKFLOW_ASSIGNEE_IDS } from '@kbn/rule-data-utils'; import type { BulkActionsConfig } from '@kbn/triggers-actions-ui-plugin/public/types'; import type { TimelineItem } from '@kbn/triggers-actions-ui-plugin/public/application/sections/alerts_table/bulk_actions/components/toolbar'; -import { act, fireEvent, render } from '@testing-library/react'; -import { renderHook } from '@testing-library/react-hooks'; +import { act, fireEvent, render, renderHook } from '@testing-library/react'; import { TestProviders } from '../../../mock'; import type { diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/toolbar/bulk_actions/use_bulk_alert_tags_items.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/toolbar/bulk_actions/use_bulk_alert_tags_items.test.tsx index 2c1b30b976d72..b1dfc10ea6947 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/toolbar/bulk_actions/use_bulk_alert_tags_items.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/toolbar/bulk_actions/use_bulk_alert_tags_items.test.tsx @@ -6,8 +6,7 @@ */ import { ALERT_WORKFLOW_TAGS } from '@kbn/rule-data-utils'; -import { act, fireEvent, render } from '@testing-library/react'; -import { renderHook } from '@testing-library/react-hooks'; +import { act, fireEvent, render, renderHook } from '@testing-library/react'; import { TestProviders } from '../../../mock'; import type { UseBulkAlertTagsItemsProps, diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/user_privileges/endpoint/use_endpoint_privileges.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/user_privileges/endpoint/use_endpoint_privileges.test.ts index d4db9ae7b9183..2cfe665697b93 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/user_privileges/endpoint/use_endpoint_privileges.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/user_privileges/endpoint/use_endpoint_privileges.test.ts @@ -5,8 +5,8 @@ * 2.0. */ -import type { RenderHookResult, RenderResult } from '@testing-library/react-hooks'; -import { renderHook } from '@testing-library/react-hooks'; +import type { RenderHookResult } from '@testing-library/react'; +import { renderHook } from '@testing-library/react'; import { securityMock } from '@kbn/security-plugin/public/mocks'; import type { AuthenticatedUser } from '@kbn/security-plugin/common'; @@ -38,9 +38,9 @@ const licenseServiceMock = licenseService as jest.Mocked; describe('When using useEndpointPrivileges hook', () => { let authenticatedUser: AuthenticatedUser; - let result: RenderResult; + let result: RenderHookResult['result']; let unmount: ReturnType['unmount']; - let render: () => RenderHookResult; + let render: () => RenderHookResult; beforeEach(() => { authenticatedUser = securityMock.createMockAuthenticatedUser({ diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_bulk_get_user_profiles.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_bulk_get_user_profiles.test.tsx index 3861e6a6c8a67..58f8b2d31a458 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_bulk_get_user_profiles.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_bulk_get_user_profiles.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { waitFor, renderHook } from '@testing-library/react'; import { securityMock } from '@kbn/security-plugin/public/mocks'; import { mockUserProfiles } from './mock'; @@ -39,16 +39,13 @@ describe('useBulkGetUserProfiles hook', () => { const userProfiles = useKibana().services.security.userProfiles; const spyOnUserProfiles = jest.spyOn(userProfiles, 'bulkGet'); const assigneesIds = new Set(['user1']); - const { result, waitForNextUpdate } = renderHook( - () => useBulkGetUserProfiles({ uids: assigneesIds }), - { - wrapper: TestProviders, - } - ); - await waitForNextUpdate(); + const { result } = renderHook(() => useBulkGetUserProfiles({ uids: assigneesIds }), { + wrapper: TestProviders, + }); + + await waitFor(() => expect(result.current.isLoading).toEqual(false)); expect(spyOnUserProfiles).toHaveBeenCalledTimes(1); - expect(result.current.isLoading).toEqual(false); expect(result.current.data).toEqual(mockUserProfiles); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_get_current_user_profile.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_get_current_user_profile.test.tsx index 84beb0a8b135b..d604d4ff53263 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_get_current_user_profile.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_get_current_user_profile.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { waitFor, renderHook } from '@testing-library/react'; import { securityMock } from '@kbn/security-plugin/public/mocks'; import { mockCurrentUserProfile } from './mock'; @@ -38,13 +38,12 @@ describe('useGetCurrentUserProfile hook', () => { it('returns current user', async () => { const userProfiles = useKibana().services.security.userProfiles; const spyOnUserProfiles = jest.spyOn(userProfiles, 'getCurrent'); - const { result, waitForNextUpdate } = renderHook(() => useGetCurrentUserProfile(), { + const { result } = renderHook(() => useGetCurrentUserProfile(), { wrapper: TestProviders, }); - await waitForNextUpdate(); + await waitFor(() => expect(result.current.isLoading).toEqual(false)); expect(spyOnUserProfiles).toHaveBeenCalledTimes(1); - expect(result.current.isLoading).toEqual(false); expect(result.current.data).toEqual(mockCurrentUserProfile); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_suggest_users.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_suggest_users.test.tsx index 2cb727942ed57..b3ea10a841b16 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_suggest_users.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/user_profiles/use_suggest_users.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { waitFor, renderHook } from '@testing-library/react'; import { useSuggestUsers } from './use_suggest_users'; import * as api from './api'; @@ -27,12 +27,11 @@ describe('useSuggestUsers hook', () => { it('returns an array of userProfiles', async () => { const spyOnUserProfiles = jest.spyOn(api, 'suggestUsers'); - const { result, waitForNextUpdate } = renderHook(() => useSuggestUsers({ searchTerm: '' }), { + const { result } = renderHook(() => useSuggestUsers({ searchTerm: '' }), { wrapper: TestProviders, }); - await waitForNextUpdate(); + await waitFor(() => expect(result.current.isLoading).toEqual(false)); expect(spyOnUserProfiles).toHaveBeenCalledTimes(1); - expect(result.current.isLoading).toEqual(false); expect(result.current.data).toEqual(mockUserProfiles); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_by_status_donut.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_by_status_donut.test.ts index 7240f1de35ac6..ee6c7117093fa 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_by_status_donut.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_by_status_donut.test.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { mockExtraFilter, wrapper } from '../../../mocks'; import { useLensAttributes } from '../../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_histogram.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_histogram.test.ts index d712f69a295a1..e853ba80d01aa 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_histogram.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_histogram.test.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../../mocks'; import { useLensAttributes } from '../../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_table.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_table.test.ts index cec804e090f10..3436825f210e4 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_table.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/alerts_table.test.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../../mocks'; import { useLensAttributes } from '../../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/rule_preview.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/rule_preview.test.ts index 73f871def8ee9..0d0eae638afeb 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/rule_preview.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/alerts/rule_preview.test.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { mockRulePreviewFilter, wrapper } from '../../../mocks'; import { useLensAttributes } from '../../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/authentication.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/authentication.test.ts index 6d2b510da4897..734390f6040b8 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/authentication.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/authentication.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/event.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/event.test.ts index b29b10f8b9b4e..be87445ba2618 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/event.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/event.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useRouteSpy } from '../../../../utils/route/use_route_spy'; import { wrapper } from '../../mocks'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/external_alert.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/external_alert.test.ts index 8fd7c0a57cc6e..62a9fe3bd108c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/external_alert.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/common/external_alert.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_host_area.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_host_area.test.ts index 6ab9c4b599057..cffcf9f91b4ea 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_host_area.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_host_area.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_host_metric.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_host_metric.test.ts index 0a146fae457ef..fc8742494a54e 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_host_metric.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_host_metric.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_area.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_area.test.ts index 003176c784c17..cb4260c2d630a 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_area.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_area.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_bar.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_bar.test.ts index 5121aab8bf8bf..187cf18ddc88f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_bar.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_bar.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_destination_metric.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_destination_metric.test.ts index eff175a0b5466..ecac8666e22c2 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_destination_metric.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_destination_metric.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_source_metric.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_source_metric.test.ts index cd9f68d632478..19ee1df315909 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_source_metric.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/hosts/kpi_unique_ips_source_metric.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/dns_top_domains.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/dns_top_domains.test.ts index bb0d0cb5c9012..8446c7a71db86 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/dns_top_domains.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/dns_top_domains.test.ts @@ -5,8 +5,8 @@ * 2.0. */ -import type { RenderResult } from '@testing-library/react-hooks'; -import { renderHook } from '@testing-library/react-hooks'; +import type { RenderHookResult } from '@testing-library/react'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import type { LensAttributes } from '../../types'; @@ -34,7 +34,7 @@ jest.mock('../../../../utils/route/use_route_spy', () => ({ })); describe('getDnsTopDomainsLensAttributes', () => { - let result: RenderResult; + let result: RenderHookResult['result']; const render = () => { const hookRenderResponse = renderHook( () => diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_dns_queries.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_dns_queries.test.ts index 6c0cb3d3d8198..bf3cb88bf00d2 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_dns_queries.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_dns_queries.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_network_events.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_network_events.test.ts index 6e2a66567f1e0..7742d5658b239 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_network_events.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_network_events.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_tls_handshakes.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_tls_handshakes.test.ts index f0b87c0ee221a..6148350b83edd 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_tls_handshakes.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_tls_handshakes.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_flow_ids.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_flow_ids.test.ts index 414bc1263e93e..29af131cec384 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_flow_ids.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_flow_ids.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_area.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_area.test.ts index 9ac8d9733d157..4948d649f0740 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_area.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_area.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_bar.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_bar.test.ts index 25fc271e7ef62..e8bfdbad68dce 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_bar.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_bar.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_destination_metric.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_destination_metric.test.ts index a7fd2208bec47..22996f32df705 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_destination_metric.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_destination_metric.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_source_metric.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_source_metric.test.ts index 6208d5c97bdc9..1749a43bb6bb9 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_source_metric.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/network/kpi_unique_private_ips_source_metric.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_total_users_area.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_total_users_area.test.ts index a34e98b70e607..6c4b5316cd69e 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_total_users_area.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_total_users_area.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_total_users_metric.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_total_users_metric.test.ts index affbdd4a77905..9a63bb90b6987 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_total_users_metric.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_total_users_metric.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentication_metric_failure.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentication_metric_failure.test.ts index 4c93280dd3b9e..c88bc1f92e424 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentication_metric_failure.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentication_metric_failure.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_area.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_area.test.ts index 599ceb9745f53..c60a8682ea32c 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_area.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_area.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_bar.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_bar.test.ts index 2231459b347ed..2d6f8992b27f2 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_bar.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_bar.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_metric_success.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_metric_success.test.ts index 3ab3de0592d77..c9304a02e8478 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_metric_success.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/lens_attributes/users/kpi_user_authentications_metric_success.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { wrapper } from '../../mocks'; import { useLensAttributes } from '../../use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/mocks.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/mocks.tsx index 0153fc6b06c43..b8e2d53caa2bb 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/mocks.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/mocks.tsx @@ -48,7 +48,7 @@ const mockCreateStoreWithQueryFilters = () => { return createMockStore(myState); }; -export const wrapper = ({ children }: { children: React.ReactElement }) => ( +export const wrapper = ({ children }: React.PropsWithChildren) => ( {children} ); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_actions.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_actions.test.tsx index 45195d0982c5d..db5f4189739fa 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_actions.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_actions.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import React from 'react'; import { mockAttributes } from './mocks'; import { DEFAULT_ACTIONS, useActions } from './use_actions'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_add_to_existing_case.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_add_to_existing_case.test.tsx index 5181d33370afe..95b09b05414bc 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_add_to_existing_case.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_add_to_existing_case.test.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { useKibana as mockUseKibana } from '../../lib/kibana/__mocks__'; import { kpiHostMetricLensAttributes } from './lens_attributes/hosts/kpi_host_metric'; import { useAddToExistingCase } from './use_add_to_existing_case'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_add_to_new_case.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_add_to_new_case.test.tsx index fceff5e6cdaae..e282fcb6aef1f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_add_to_new_case.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_add_to_new_case.test.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { useKibana as mockUseKibana } from '../../lib/kibana/__mocks__'; import { kpiHostMetricLensAttributes } from './lens_attributes/hosts/kpi_host_metric'; import { useAddToNewCase } from './use_add_to_new_case'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_lens_attributes.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_lens_attributes.test.tsx index 3d6bb712e9d93..341fcab3c567d 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_lens_attributes.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_lens_attributes.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { getExternalAlertLensAttributes } from './lens_attributes/common/external_alert'; import { useLensAttributes } from './use_lens_attributes'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_save_to_library.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_save_to_library.test.tsx index 1350024564bb8..0801ce58ce7a4 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_save_to_library.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_save_to_library.test.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; + +import { renderHook, act } from '@testing-library/react'; import { toMountPoint } from '@kbn/react-kibana-mount'; import { useSaveToLibrary } from './use_save_to_library'; import { useKibana } from '../../lib/kibana'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_visualization_response.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_visualization_response.test.tsx index 6089bdc665392..5bcccbc5fed61 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_visualization_response.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/components/visualization_actions/use_visualization_response.test.tsx @@ -7,7 +7,7 @@ import { createMockStore, mockGlobalState, TestProviders } from '../../mock'; import { useVisualizationResponse } from './use_visualization_response'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import React from 'react'; import { parseVisualizationData } from './utils'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/events/last_event_time/index.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/containers/events/last_event_time/index.test.ts index 6fb6a2bcedbd8..88f949435e86f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/events/last_event_time/index.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/events/last_event_time/index.test.ts @@ -5,33 +5,19 @@ * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; -import { noop } from 'lodash/fp'; -import type { UseTimelineLastEventTimeArgs } from '.'; +import { waitFor, renderHook } from '@testing-library/react'; +import { BehaviorSubject } from 'rxjs'; import { useTimelineLastEventTime } from '.'; import { LastEventIndexKey } from '../../../../../common/search_strategy'; import { useKibana } from '../../../lib/kibana'; const mockSearchStrategy = jest.fn(); + const mockUseKibana = { services: { data: { search: { - search: mockSearchStrategy.mockReturnValue({ - unsubscribe: jest.fn(), - subscribe: jest.fn(({ next, error }) => { - const mockData = { - lastSeen: '1 minute ago', - }; - try { - next(mockData); - /* eslint-disable no-empty */ - } catch (e) {} - return { - unsubscribe: jest.fn(), - }; - }), - }), + search: mockSearchStrategy, }, }, notifications: { @@ -53,67 +39,68 @@ jest.mock('../../../lib/kibana', () => ({ })); describe('useTimelineLastEventTime', () => { + let searchStrategy$: BehaviorSubject<{ lastSeen: string | null; errorMessage?: string }>; + beforeEach(() => { - jest.clearAllMocks(); + jest.useFakeTimers({ legacyFakeTimers: true }); + searchStrategy$ = new BehaviorSubject<{ lastSeen: string | null; errorMessage?: string }>({ + lastSeen: null, + }); + + mockSearchStrategy.mockReturnValue(searchStrategy$.asObservable()); + (useKibana as jest.Mock).mockReturnValue(mockUseKibana); }); + afterEach(() => { + jest.clearAllMocks(); + }); + it('should init', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook< - string, - [boolean, UseTimelineLastEventTimeArgs] - >(() => - useTimelineLastEventTime({ - indexKey: LastEventIndexKey.hostDetails, - details: {}, - indexNames: [], - }) - ); - await waitForNextUpdate(); - expect(result.current).toEqual([ - false, - { errorMessage: undefined, lastSeen: null, refetch: noop }, - ]); - }); + const { result } = renderHook(() => + useTimelineLastEventTime({ + indexKey: LastEventIndexKey.hostDetails, + details: {}, + indexNames: [], + }) + ); + + expect(result.current).toEqual([ + false, + { errorMessage: undefined, lastSeen: null, refetch: expect.any(Function) }, + ]); }); it('should call search strategy', async () => { - await act(async () => { - const { waitForNextUpdate } = renderHook( - () => - useTimelineLastEventTime({ - indexKey: LastEventIndexKey.hostDetails, - details: {}, - indexNames: [], - }) - ); - await waitForNextUpdate(); - await waitForNextUpdate(); + renderHook(() => + useTimelineLastEventTime({ + indexKey: LastEventIndexKey.hostDetails, + details: {}, + indexNames: [], + }) + ); + await waitFor(() => expect(mockSearchStrategy.mock.calls[0][0]).toEqual({ defaultIndex: [], details: {}, factoryQueryType: 'eventsLastEventTime', indexKey: 'hostDetails', - }); - }); + }) + ); }); it('should set response', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook< - string, - [boolean, UseTimelineLastEventTimeArgs] - >(() => - useTimelineLastEventTime({ - indexKey: LastEventIndexKey.hostDetails, - details: {}, - indexNames: [], - }) - ); - await waitForNextUpdate(); - await waitForNextUpdate(); - expect(result.current[1].lastSeen).toEqual('1 minute ago'); + searchStrategy$.next({ + lastSeen: '1 minute ago', }); + + const { result } = renderHook(() => + useTimelineLastEventTime({ + indexKey: LastEventIndexKey.hostDetails, + details: {}, + indexNames: [], + }) + ); + await waitFor(() => expect(result.current[1].lastSeen).toEqual('1 minute ago')); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/local_storage/use_messages_storage.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/containers/local_storage/use_messages_storage.test.tsx index b80356b65cb5c..c9452309fcfe9 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/local_storage/use_messages_storage.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/local_storage/use_messages_storage.test.tsx @@ -5,9 +5,8 @@ * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; +import { act, waitFor, renderHook } from '@testing-library/react'; import { useKibana } from '../../lib/kibana'; -import type { UseMessagesStorage } from './use_messages_storage'; import { useMessagesStorage } from './use_messages_storage'; jest.mock('../../lib/kibana'); @@ -18,81 +17,71 @@ describe('useLocalStorage', () => { }); it('should return an empty array when there is no messages', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useMessagesStorage() - ); - await waitForNextUpdate(); - const { getMessages } = result.current; + const { result } = renderHook(() => useMessagesStorage()); + const { getMessages } = result.current; + await waitFor(() => { expect(getMessages('case')).toEqual([]); }); }); it('should add a message', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useMessagesStorage() - ); - await waitForNextUpdate(); - const { getMessages, addMessage } = result.current; + const { result } = renderHook(() => useMessagesStorage()); + const { getMessages, addMessage } = result.current; + act(() => { addMessage('case', 'id-1'); - expect(getMessages('case')).toEqual(['id-1']); }); + + await waitFor(() => expect(getMessages('case')).toEqual(['id-1'])); }); it('should add multiple messages', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useMessagesStorage() - ); - await waitForNextUpdate(); - const { getMessages, addMessage } = result.current; + const { result } = renderHook(() => useMessagesStorage()); + const { getMessages, addMessage } = result.current; + + act(() => { addMessage('case', 'id-1'); addMessage('case', 'id-2'); - expect(getMessages('case')).toEqual(['id-1', 'id-2']); }); + + await waitFor(() => expect(getMessages('case')).toEqual(['id-1', 'id-2'])); }); it('should remove a message', async () => { + const { result } = renderHook(() => useMessagesStorage()); + const { getMessages, addMessage, removeMessage } = result.current; + await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useMessagesStorage() - ); - await waitForNextUpdate(); - const { getMessages, addMessage, removeMessage } = result.current; addMessage('case', 'id-1'); addMessage('case', 'id-2'); removeMessage('case', 'id-2'); - expect(getMessages('case')).toEqual(['id-1']); }); + + await waitFor(() => expect(getMessages('case')).toEqual(['id-1'])); }); it('should return presence of a message', async () => { + const { result } = renderHook(() => useMessagesStorage()); + const { hasMessage, addMessage, removeMessage } = result.current; await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useMessagesStorage() - ); - await waitForNextUpdate(); - const { hasMessage, addMessage, removeMessage } = result.current; addMessage('case', 'id-1'); addMessage('case', 'id-2'); removeMessage('case', 'id-2'); + }); + + await waitFor(() => { expect(hasMessage('case', 'id-1')).toEqual(true); expect(hasMessage('case', 'id-2')).toEqual(false); }); }); it('should clear all messages', async () => { + const { result } = renderHook(() => useMessagesStorage()); + const { getMessages, addMessage, clearAllMessages } = result.current; await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useMessagesStorage() - ); - await waitForNextUpdate(); - const { getMessages, addMessage, clearAllMessages } = result.current; addMessage('case', 'id-1'); addMessage('case', 'id-2'); clearAllMessages('case'); - expect(getMessages('case')).toEqual([]); }); + await waitFor(() => expect(getMessages('case')).toEqual([])); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/query_toggle/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/containers/query_toggle/index.test.tsx index d9cd0c181ba47..984a288668b1b 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/query_toggle/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/query_toggle/index.test.tsx @@ -5,8 +5,8 @@ * 2.0. */ -import type { RenderResult, WaitForNextUpdate } from '@testing-library/react-hooks'; -import { renderHook, act, cleanup } from '@testing-library/react-hooks'; +import type { RenderHookResult } from '@testing-library/react'; +import { waitFor, act, cleanup, renderHook } from '@testing-library/react'; import type { QueryToggle } from '.'; import { useQueryToggle } from '.'; import type { RouteSpyState } from '../../utils/route/types'; @@ -26,8 +26,8 @@ jest.mock('../../utils/route/use_route_spy', () => ({ })); describe('useQueryToggle', () => { - let result: RenderResult; - let waitForNextUpdate: WaitForNextUpdate; + let result: RenderHookResult['result']; + const mockSet = jest.fn(); beforeAll(() => { (useKibana as jest.Mock).mockReturnValue({ @@ -43,11 +43,9 @@ describe('useQueryToggle', () => { jest.clearAllMocks(); }); it('Toggles local storage', async () => { - await act(async () => { - ({ result, waitForNextUpdate } = renderHook(() => useQueryToggle('queryId'))); - await waitForNextUpdate(); - expect(result.current.toggleStatus).toEqual(true); - }); + ({ result } = renderHook(() => useQueryToggle('queryId'))); + await waitFor(() => expect(result.current.toggleStatus).toEqual(true)); + act(() => { result.current.setToggleStatus(false); }); @@ -56,11 +54,9 @@ describe('useQueryToggle', () => { cleanup(); }); it('null storage key, do not set', async () => { - await act(async () => { - ({ result, waitForNextUpdate } = renderHook(() => useQueryToggle())); - await waitForNextUpdate(); - expect(result.current.toggleStatus).toEqual(true); - }); + ({ result } = renderHook(() => useQueryToggle())); + await waitFor(() => expect(result.current.toggleStatus).toEqual(true)); + act(() => { result.current.setToggleStatus(false); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/related_entities/related_hosts/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/containers/related_entities/related_hosts/index.test.tsx index fade86c6c698c..a5787f560f5a6 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/related_entities/related_hosts/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/related_entities/related_hosts/index.test.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; + +import { renderHook, act } from '@testing-library/react'; import { TestProviders } from '../../../mock'; import { useUserRelatedHosts } from '.'; import { useSearchStrategy } from '../../use_search_strategy'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/related_entities/related_users/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/containers/related_entities/related_users/index.test.tsx index 51bf34bddd338..234be35640a04 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/related_entities/related_users/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/related_entities/related_users/index.test.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; + +import { renderHook, act } from '@testing-library/react'; import { TestProviders } from '../../../mock'; import { useHostRelatedUsers } from '.'; import { useSearchStrategy } from '../../use_search_strategy'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/source/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/containers/source/index.test.tsx index 189e04a5c1d64..3f59b65a8fc53 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/source/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/source/index.test.tsx @@ -5,12 +5,11 @@ * 2.0. */ -import type { PropsWithChildren } from 'react'; import type { IndexFieldSearch } from './use_data_view'; import { useDataView } from './use_data_view'; import { mocksSource } from './mock'; import { mockGlobalState, TestProviders } from '../../mock'; -import { act, renderHook } from '@testing-library/react-hooks'; +import { act, renderHook } from '@testing-library/react'; import { useKibana } from '../../lib/kibana'; const mockDispatch = jest.fn(); @@ -84,14 +83,11 @@ describe('source/index.tsx', () => { }); }); it('sets field data for data view', async () => { + const { result } = renderHook(() => useDataView(), { + wrapper: TestProviders, + }); + await act(async () => { - const { waitForNextUpdate, result } = renderHook< - PropsWithChildren<{}>, - { indexFieldsSearch: IndexFieldSearch } - >(() => useDataView(), { - wrapper: TestProviders, - }); - await waitForNextUpdate(); await result.current.indexFieldsSearch({ dataViewId: 'neato' }); }); expect(mockDispatch.mock.calls[0][0]).toEqual({ @@ -105,14 +101,12 @@ describe('source/index.tsx', () => { it('should reuse the result for dataView info when cleanCache not passed', async () => { let indexFieldsSearch: IndexFieldSearch; + + const { result } = renderHook(() => useDataView(), { + wrapper: TestProviders, + }); + await act(async () => { - const { waitForNextUpdate, result } = renderHook< - PropsWithChildren<{}>, - { indexFieldsSearch: IndexFieldSearch } - >(() => useDataView(), { - wrapper: TestProviders, - }); - await waitForNextUpdate(); indexFieldsSearch = result.current.indexFieldsSearch; }); @@ -134,14 +128,11 @@ describe('source/index.tsx', () => { it('should not reuse the result for dataView info when cleanCache passed', async () => { let indexFieldsSearch: IndexFieldSearch; + const { result } = renderHook(() => useDataView(), { + wrapper: TestProviders, + }); + await act(async () => { - const { waitForNextUpdate, result } = renderHook< - PropsWithChildren<{}>, - { indexFieldsSearch: IndexFieldSearch } - >(() => useDataView(), { - wrapper: TestProviders, - }); - await waitForNextUpdate(); indexFieldsSearch = result.current.indexFieldsSearch; }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_first_last_seen/use_first_last_seen.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_first_last_seen/use_first_last_seen.test.ts index ec49319e87734..9f04a126445db 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_first_last_seen/use_first_last_seen.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_first_last_seen/use_first_last_seen.test.ts @@ -5,10 +5,9 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { Direction } from '../../../../common/search_strategy'; -import type { FirstLastSeenProps } from '../../components/first_last_seen/first_last_seen'; import type { UseFirstLastSeen } from './use_first_last_seen'; import { useFirstLastSeen } from './use_first_last_seen'; @@ -22,7 +21,7 @@ const mockUseSearchStrategy = useSearchStrategy as jest.Mock; const mockSearch = jest.fn(); const renderUseFirstLastSeen = (overrides?: Partial) => - renderHook>(() => + renderHook(() => useFirstLastSeen({ order: Direction.asc, field: 'host.name', diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_full_screen/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_full_screen/index.test.tsx index b4de304a0d9a7..7013bdcc55550 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_full_screen/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_full_screen/index.test.tsx @@ -7,81 +7,77 @@ import React, { useEffect } from 'react'; import { TestProviders } from '../../mock'; -import type { RenderResult, WaitForNextUpdate } from '@testing-library/react-hooks'; -import { renderHook, act, cleanup } from '@testing-library/react-hooks'; +import type { RenderHookResult } from '@testing-library/react'; +import { waitFor, act, cleanup, renderHook } from '@testing-library/react'; import type { GlobalFullScreen } from '.'; import { useGlobalFullScreen } from '.'; describe('useFullScreen', () => { describe('with no data-grid present in the dom', () => { - let result: RenderResult; - let waitForNextUpdate: WaitForNextUpdate; + let result: RenderHookResult['result']; + test('Default values with no data grid in the dom', async () => { - await act(async () => { - const WrapperContainer: React.FC<{ children?: React.ReactNode }> = ({ children }) => ( -
- {children} -
- ); - ({ result, waitForNextUpdate } = renderHook(() => useGlobalFullScreen(), { - wrapper: WrapperContainer, - })); - await waitForNextUpdate(); - expect(result.current.globalFullScreen).toEqual(false); - }); + const WrapperContainer = ({ children }: React.PropsWithChildren) => ( +
+ {children} +
+ ); + ({ result } = renderHook(() => useGlobalFullScreen(), { + wrapper: WrapperContainer, + })); + await waitFor(() => expect(result.current.globalFullScreen).toEqual(false)); + act(() => { result.current.setGlobalFullScreen(true); }); + expect(result.current.globalFullScreen).toEqual(true); cleanup(); }); }); describe('with a mock full screen data-grid in the dom', () => { - let result: RenderResult; - let waitForNextUpdate: WaitForNextUpdate; + let result: RenderHookResult['result']; + afterEach(() => { cleanup(); }); test('setting globalFullScreen to true should not remove the chrome removal class and data grid remains open and full screen', async () => { - await act(async () => { - const WrapperContainer: React.FC<{ children?: React.ReactNode }> = ({ children }) => { - useEffect(() => { - document.body.classList.add('euiDataGrid__restrictBody'); - }, []); - return ( -
- {children} -
- ); - }; - ({ result, waitForNextUpdate } = renderHook(() => useGlobalFullScreen(), { - wrapper: WrapperContainer, - })); - await waitForNextUpdate(); - }); + const WrapperContainer: React.FC<{ children?: React.ReactNode }> = ({ children }) => { + useEffect(() => { + document.body.classList.add('euiDataGrid__restrictBody'); + }, []); + return ( +
+ {children} +
+ ); + }; + + ({ result } = renderHook(() => useGlobalFullScreen(), { + wrapper: WrapperContainer, + })); + act(() => { result.current.setGlobalFullScreen(true); }); expect(document.querySelector('.euiDataGrid__restrictBody')).toBeTruthy(); }); test('setting globalFullScreen to false should remove the chrome removal class and data grid remains open and full screen', async () => { - await act(async () => { - const WrapperContainer: React.FC<{ children?: React.ReactNode }> = ({ children }) => { - useEffect(() => { - document.body.classList.add('euiDataGrid__restrictBody'); - }, []); - return ( -
- {children} -
- ); - }; - ({ result, waitForNextUpdate } = renderHook(() => useGlobalFullScreen(), { - wrapper: WrapperContainer, - })); - await waitForNextUpdate(); - }); + const WrapperContainer: React.FC = ({ children }) => { + useEffect(() => { + document.body.classList.add('euiDataGrid__restrictBody'); + }, []); + return ( +
+ {children} +
+ ); + }; + ({ result } = renderHook(() => useGlobalFullScreen(), { + wrapper: WrapperContainer, + })); + act(() => { result.current.setGlobalFullScreen(false); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_global_time/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_global_time/index.test.tsx index 46a2738d6247a..3ec1b82b2f376 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_global_time/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_global_time/index.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; +import { renderHook, act } from '@testing-library/react'; import { useGlobalTime } from '.'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_search_strategy/index.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_search_strategy/index.test.ts index 067f6cdc53ef8..3fa23d7855d28 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_search_strategy/index.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/containers/use_search_strategy/index.test.ts @@ -6,7 +6,8 @@ */ import { useSearch, useSearchStrategy } from '.'; -import { act, renderHook } from '@testing-library/react-hooks'; + +import { renderHook, act } from '@testing-library/react'; import { useObservable } from '@kbn/securitysolution-hook-utils'; import type { diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/timeline/use_query_timeline_by_id_on_url_change.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/timeline/use_query_timeline_by_id_on_url_change.test.ts index ef86f71777484..f78aee9a991e3 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/timeline/use_query_timeline_by_id_on_url_change.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/timeline/use_query_timeline_by_id_on_url_change.test.ts @@ -7,7 +7,7 @@ import { useQueryTimelineById } from '../../../timelines/components/open_timeline/helpers'; import { useQueryTimelineByIdOnUrlChange } from './use_query_timeline_by_id_on_url_change'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { timelineDefaults } from '../../../timelines/store/defaults'; jest.mock('../use_experimental_features'); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.test.ts index f2470d197d562..0c2c224803afe 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import type { IEsError } from '@kbn/search-errors'; import type { KibanaError, SecurityAppError } from '@kbn/securitysolution-t-grid'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_data_view_id.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_data_view_id.test.ts index bbfa85b383158..3d05533790475 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_data_view_id.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_data_view_id.test.ts @@ -5,8 +5,7 @@ * 2.0. */ -import type { PropsWithChildren } from 'react'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { TestProviders } from '../mock'; import { SourcererScopeName } from '../../sourcerer/store/model'; import { DEFAULT_DATA_VIEW_ID } from '../../../common/constants'; @@ -17,10 +16,7 @@ describe('useDataViewId', () => { it.each(Object.values(SourcererScopeName))( 'should return the data view id for %s scope', (scope) => { - const { result } = renderHook< - PropsWithChildren<{ scope: SourcererScopeName }>, - string | undefined - >((props) => useDataViewId(props.scope), { + const { result } = renderHook((props) => useDataViewId(props.scope), { initialProps: { scope }, wrapper: TestProviders, }); @@ -33,10 +29,7 @@ describe('useDataViewId', () => { .spyOn(sourcererSelectors, 'sourcererScopeSelectedDataViewId') .mockImplementationOnce(() => null); - const { result } = renderHook< - PropsWithChildren<{ scope: SourcererScopeName }>, - string | undefined - >((props) => useDataViewId(props.scope), { + const { result } = renderHook((props) => useDataViewId(props.scope), { initialProps: { scope: SourcererScopeName.default }, wrapper: TestProviders, }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_error_toast.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_error_toast.test.ts index 993326d906a18..5a7f7a401676f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_error_toast.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_error_toast.test.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { useErrorToast } from './use_error_toast'; jest.mock('./use_app_toasts'); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_fetch/use_fetch.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_fetch/use_fetch.test.tsx index 75f4972b0f11f..3075063bdd82f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_fetch/use_fetch.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_fetch/use_fetch.test.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; +import { act, waitFor, renderHook } from '@testing-library/react'; import type { RequestName } from './request_names'; -import type { OptionsParam, RequestFnParam, Result } from './use_fetch'; +import type { OptionsParam } from './use_fetch'; import { useFetch } from './use_fetch'; export const mockEndTracking = jest.fn(); @@ -28,14 +28,10 @@ type Parameters = typeof parameters; const response = 'someData'; const mockFetchFn = jest.fn(async (_: Parameters) => response); -type UseFetchParams = [RequestName, RequestFnParam, OptionsParam]; - const abortController = new AbortController(); const renderUseFetch = (options?: OptionsParam) => - renderHook>(() => - useFetch(requestName, mockFetchFn, options) - ); + renderHook(() => useFetch(requestName, mockFetchFn, options)); describe('useFetch', () => { beforeEach(() => { @@ -55,7 +51,7 @@ describe('useFetch', () => { }); it('should call fetch', async () => { - const { result, waitForNextUpdate } = renderUseFetch(); + const { result } = renderUseFetch(); expect(result.current.data).toEqual(undefined); expect(result.current.isLoading).toEqual(false); @@ -63,17 +59,17 @@ describe('useFetch', () => { await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); + await waitFor(() => expect(result.current.isLoading).toEqual(false)); + expect(result.current.data).toEqual(response); - expect(result.current.isLoading).toEqual(false); expect(result.current.error).toEqual(undefined); expect(mockFetchFn).toHaveBeenCalledWith(parameters, abortController.signal); }); it('should call fetch if initialParameters option defined', async () => { - const { result, waitForNextUpdate } = renderUseFetch({ initialParameters: parameters }); + const { result } = renderUseFetch({ initialParameters: parameters }); expect(result.current.data).toEqual(undefined); expect(result.current.isLoading).toEqual(true); @@ -81,32 +77,28 @@ describe('useFetch', () => { expect(mockFetchFn).toHaveBeenCalledWith(parameters, abortController.signal); - await act(async () => { - await waitForNextUpdate(); - }); + await waitFor(() => expect(result.current.isLoading).toEqual(false)); expect(result.current.data).toEqual(response); - expect(result.current.isLoading).toEqual(false); expect(result.current.error).toEqual(undefined); }); it('should refetch with same parameters', async () => { - const { result, waitForNextUpdate } = renderUseFetch({ initialParameters: parameters }); + const { result } = renderUseFetch({ initialParameters: parameters }); expect(mockFetchFn).toHaveBeenCalledTimes(1); expect(mockFetchFn).toHaveBeenCalledWith(parameters, abortController.signal); await act(async () => { result.current.refetch(); - await waitForNextUpdate(); }); - expect(mockFetchFn).toHaveBeenCalledTimes(1); + await waitFor(() => expect(mockFetchFn).toHaveBeenCalledTimes(1)); expect(mockFetchFn).toHaveBeenCalledWith(parameters, abortController.signal); }); it('should not call fetch if disabled option defined', async () => { - const { result, waitForNextUpdate } = renderUseFetch({ + const { result } = renderUseFetch({ initialParameters: parameters, disabled: true, }); @@ -119,11 +111,11 @@ describe('useFetch', () => { await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); + await waitFor(() => expect(result.current.isLoading).toEqual(true)); + expect(result.current.data).toEqual(undefined); - expect(result.current.isLoading).toEqual(true); expect(result.current.error).toEqual(undefined); expect(mockFetchFn).not.toHaveBeenCalled(); }); @@ -134,16 +126,15 @@ describe('useFetch', () => { return response; }); - const { result, waitForNextUpdate, unmount } = renderUseFetch(); + const { result, unmount } = renderUseFetch(); expect(result.current.data).toEqual(undefined); await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); - expect(result.current.data).toEqual(undefined); + await waitFor(() => expect(result.current.data).toEqual(undefined)); }); it('should ignore state change if error but component is unmounted', async () => { @@ -152,35 +143,32 @@ describe('useFetch', () => { throw new Error(); }); - const { result, waitForNextUpdate, unmount } = renderUseFetch(); + const { result, unmount } = renderUseFetch(); expect(result.current.error).toEqual(undefined); await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); - expect(result.current.error).toEqual(undefined); + await waitFor(() => expect(result.current.error).toEqual(undefined)); }); it('should abort initial request if fetch is called', async () => { const firstAbortCtrl = new AbortController(); const abortSpy = jest.spyOn(window, 'AbortController').mockReturnValueOnce(firstAbortCtrl); - const { result, waitForNextUpdate } = renderUseFetch({ initialParameters: parameters }); + const { result } = renderUseFetch({ initialParameters: parameters }); mockFetchFn.mockImplementationOnce(async () => { result.current.fetch(parameters); return response; }); - await act(async () => { - await waitForNextUpdate(); + await waitFor(() => { + expect(firstAbortCtrl.signal.aborted).toEqual(true); }); - expect(firstAbortCtrl.signal.aborted).toEqual(true); - abortSpy.mockRestore(); }); @@ -188,7 +176,7 @@ describe('useFetch', () => { const firstAbortCtrl = new AbortController(); const abortSpy = jest.spyOn(window, 'AbortController').mockReturnValueOnce(firstAbortCtrl); - const { result, waitForNextUpdate } = renderUseFetch(); + const { result } = renderUseFetch(); mockFetchFn.mockImplementationOnce(async () => { result.current.fetch(parameters); @@ -197,9 +185,10 @@ describe('useFetch', () => { await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); + await waitFor(() => expect(firstAbortCtrl.signal.aborted).toEqual(true)); + expect(firstAbortCtrl.signal.aborted).toEqual(true); abortSpy.mockRestore(); @@ -207,51 +196,50 @@ describe('useFetch', () => { describe('APM tracking', () => { it('should track with request name', async () => { - const { result, waitForNextUpdate } = renderUseFetch(); + const { result } = renderUseFetch(); await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); - expect(mockStartTracking).toHaveBeenCalledTimes(1); + await waitFor(() => expect(mockStartTracking).toHaveBeenCalledTimes(1)); + expect(mockStartTracking).toHaveBeenCalledWith({ name: requestName }); }); it('should track each request', async () => { - const { result, waitForNextUpdate } = renderUseFetch({ + const { result } = renderUseFetch({ initialParameters: parameters, }); - await act(async () => { - await waitForNextUpdate(); + await waitFor(() => { + expect(mockFetchFn).toHaveBeenCalledTimes(1); + expect(mockStartTracking).toHaveBeenCalledTimes(1); + expect(mockEndTracking).toHaveBeenCalledTimes(1); + expect(mockStartTracking).toHaveBeenCalledWith({ name: requestName }); }); - expect(mockFetchFn).toHaveBeenCalledTimes(1); - expect(mockStartTracking).toHaveBeenCalledTimes(1); - expect(mockEndTracking).toHaveBeenCalledTimes(1); - expect(mockStartTracking).toHaveBeenCalledWith({ name: requestName }); - await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); - expect(mockFetchFn).toHaveBeenCalledTimes(2); + await waitFor(() => expect(mockFetchFn).toHaveBeenCalledTimes(2)); + expect(mockStartTracking).toHaveBeenCalledTimes(2); expect(mockEndTracking).toHaveBeenCalledTimes(2); }); it('should end success', async () => { - const { result, waitForNextUpdate } = renderUseFetch(); + const { result } = renderUseFetch(); await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); - expect(mockEndTracking).toHaveBeenCalledTimes(1); - expect(mockEndTracking).toHaveBeenCalledWith('success'); + await waitFor(() => { + expect(mockEndTracking).toHaveBeenCalledTimes(1); + expect(mockEndTracking).toHaveBeenCalledWith('success'); + }); }); it('should end aborted', async () => { @@ -263,15 +251,16 @@ describe('useFetch', () => { throw Error('request aborted'); }); - const { result, waitForNextUpdate } = renderUseFetch(); + const { result } = renderUseFetch(); await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); - expect(mockEndTracking).toHaveBeenCalledTimes(1); - expect(mockEndTracking).toHaveBeenCalledWith('aborted'); + await waitFor(() => { + expect(mockEndTracking).toHaveBeenCalledTimes(1); + expect(mockEndTracking).toHaveBeenCalledWith('aborted'); + }); abortSpy.mockRestore(); }); @@ -281,15 +270,16 @@ describe('useFetch', () => { throw Error('request error'); }); - const { result, waitForNextUpdate } = renderUseFetch(); + const { result } = renderUseFetch(); await act(async () => { result.current.fetch(parameters); - await waitForNextUpdate(); }); - expect(mockEndTracking).toHaveBeenCalledTimes(1); - expect(mockEndTracking).toHaveBeenCalledWith('error'); + await waitFor(() => { + expect(mockEndTracking).toHaveBeenCalledTimes(1); + expect(mockEndTracking).toHaveBeenCalledWith('error'); + }); }); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_global_filter_query.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_global_filter_query.test.ts index 7bba81268cd97..93385988bb407 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_global_filter_query.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_global_filter_query.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { TestProviders } from '../mock'; import { useGlobalFilterQuery } from './use_global_filter_query'; import type { Filter, Query } from '@kbn/es-query'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_invalid_filter_query.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_invalid_filter_query.test.tsx index 8b94e964452bb..c83858f6c5f67 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_invalid_filter_query.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_invalid_filter_query.test.tsx @@ -10,8 +10,7 @@ // but is simply documenting the current behavior. import React from 'react'; -import { render } from '@testing-library/react'; -import { renderHook } from '@testing-library/react-hooks'; +import { render, renderHook } from '@testing-library/react'; import type { Store } from 'redux'; import { createMockStore, kibanaMock, mockGlobalState, TestProviders } from '../mock'; @@ -211,8 +210,8 @@ describe('useInvalidFilterQuery', () => { initialProps: props, wrapper: getWrapper(store), }); - rerender(); - rerender(); + rerender(props); + rerender(props); expect(kibanaMock.notifications.toasts.addError).toHaveBeenCalledTimes(1); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_navigate_to_alerts_page_with_filters.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_navigate_to_alerts_page_with_filters.test.ts index 3bfc0c56e81fa..c38ddfd402411 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_navigate_to_alerts_page_with_filters.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_navigate_to_alerts_page_with_filters.test.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { SecurityPageName } from '../../app/types'; import { useNavigateToAlertsPageWithFilters } from './use_navigate_to_alerts_page_with_filters'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_resolve_conflict.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_resolve_conflict.test.tsx index 3e3b28cd028f7..212fc8b4c4c86 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_resolve_conflict.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_resolve_conflict.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ import { useLocation } from 'react-router-dom'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useDeepEqualSelector } from './use_selector'; import { useKibana } from '../lib/kibana'; import { useResolveConflict } from './use_resolve_conflict'; @@ -61,7 +61,7 @@ describe('useResolveConflict', () => { graphEventId: 'current-graph-event-id', show: false, })); - const { result } = renderHook<{}, JSX.Element | null>(() => useResolveConflict()); + const { result } = renderHook(() => useResolveConflict()); expect(mockGetLegacyUrlConflict).not.toHaveBeenCalled(); expect(result.current).toEqual(null); }); @@ -78,7 +78,7 @@ describe('useResolveConflict', () => { graphEventId: 'current-graph-event-id', show: false, })); - const { result } = renderHook<{}, JSX.Element | null>(() => useResolveConflict()); + const { result } = renderHook(() => useResolveConflict()); expect(mockGetLegacyUrlConflict).not.toHaveBeenCalled(); expect(result.current).toEqual(null); }); @@ -92,7 +92,7 @@ describe('useResolveConflict', () => { alias_target_id: 'new-id', }, })); - const { result } = renderHook<{}, JSX.Element | null>(() => useResolveConflict()); + const { result } = renderHook(() => useResolveConflict()); expect(mockGetLegacyUrlConflict).not.toHaveBeenCalled(); expect(result.current).toEqual(null); }); @@ -108,7 +108,7 @@ describe('useResolveConflict', () => { }, })); mockGetLegacyUrlConflict.mockImplementation(() => mockTextContent); - const { result } = renderHook<{}, JSX.Element | null>(() => useResolveConflict()); + const { result } = renderHook(() => useResolveConflict()); expect(mockGetLegacyUrlConflict).toHaveBeenCalledWith({ objectNoun: 'timeline', currentObjectId: '04e8ffb0-2c2a-11ec-949c-39005af91f70', @@ -142,7 +142,7 @@ describe('useResolveConflict', () => { })); mockGetLegacyUrlConflict.mockImplementation(() => mockTextContent); renderHook(() => useResolveConflict()); - const { result } = renderHook<{}, JSX.Element | null>(() => useResolveConflict()); + const { result } = renderHook(() => useResolveConflict()); expect(mockGetLegacyUrlConflict).toHaveBeenCalledWith({ objectNoun: 'timeline', currentObjectId: 'current-saved-object-id', diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_resolve_redirect.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_resolve_redirect.test.ts index 113a18dad705c..bd51959fe486b 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_resolve_redirect.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_resolve_redirect.test.ts @@ -6,7 +6,7 @@ */ import { useLocation } from 'react-router-dom'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { useDeepEqualSelector } from './use_selector'; import { useKibana } from '../lib/kibana'; import { useResolveRedirect } from './use_resolve_redirect'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_upselling.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_upselling.test.tsx index c18a6282eb373..a4a154d414a54 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_upselling.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_upselling.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import type { FC, PropsWithChildren } from 'react'; import React from 'react'; import { SecurityPageName } from '../../../common'; @@ -36,6 +36,8 @@ const RenderWrapper: FC> = ({ children }) => { describe('use_upselling', () => { test('useUpsellingComponent returns sections', () => { + const getSectionsValueSpy = jest.spyOn(mockUpselling, 'getSectionsValue'); + mockUpselling.setSections({ entity_analytics_panel: TestComponent, }); @@ -44,7 +46,7 @@ describe('use_upselling', () => { wrapper: RenderWrapper, }); expect(result.current).toBe(TestComponent); - expect(result.all.length).toBe(1); // assert that it should not cause unnecessary re-renders + expect(getSectionsValueSpy).toHaveBeenCalledTimes(1); // assert that it should not cause unnecessary re-renders }); test('useUpsellingPage returns pages', () => { @@ -59,6 +61,8 @@ describe('use_upselling', () => { }); test('useUpsellingMessage returns messages', () => { + const getMessagesValueSpy = jest.spyOn(mockUpselling, 'getMessagesValue'); + const testMessage = 'test message'; mockUpselling.setMessages({ investigation_guide: testMessage, @@ -68,7 +72,7 @@ describe('use_upselling', () => { wrapper: RenderWrapper, }); expect(result.current).toBe(testMessage); - expect(result.all.length).toBe(1); // assert that it should not cause unnecessary re-renders + expect(getMessagesValueSpy).toHaveBeenCalledTimes(1); // assert that it should not cause unnecessary re-renders }); test('useUpsellingMessage returns undefined when upsellingMessageId not found', () => { diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/links/links.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/links/links.test.tsx index c5f05afde9c62..7ecd8541e909f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/links/links.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/links/links.test.tsx @@ -10,7 +10,7 @@ import type { Capabilities } from '@kbn/core/types'; import { mockGlobalState, TestProviders } from '../mock'; import type { ILicense, LicenseType } from '@kbn/licensing-plugin/common/types'; import type { AppLinkItems, LinkItem, LinksPermissions } from './types'; -import { act, renderHook } from '@testing-library/react-hooks'; +import { act, waitFor, renderHook } from '@testing-library/react'; import { useAppLinks, getAncestorLinksInfo, @@ -83,10 +83,9 @@ const mockLicense = { const mockUiSettingsClient = uiSettingsServiceMock.createStartContract(); -const renderUseAppLinks = () => - renderHook<{}, AppLinkItems>(() => useAppLinks(), { wrapper: TestProviders }); +const renderUseAppLinks = () => renderHook(() => useAppLinks(), { wrapper: TestProviders }); const renderUseLinkExists = (id: SecurityPageName) => - renderHook, boolean>(() => useLinkExists(id), { + renderHook(() => useLinkExists(id), { wrapper: TestProviders, }); @@ -110,7 +109,7 @@ describe('Security links', () => { }); it('should filter not allowed links', async () => { - const { result, waitForNextUpdate } = renderUseAppLinks(); + const { result } = renderUseAppLinks(); // this link should not be excluded, the test checks all conditions are passed const networkLinkItem = { id: SecurityPageName.network, @@ -182,17 +181,16 @@ describe('Security links', () => { uiSettingsClient: mockUiSettingsClient, } ); - await waitForNextUpdate(); }); - expect(result.current).toStrictEqual([networkLinkItem]); + await waitFor(() => expect(result.current).toStrictEqual([networkLinkItem])); }); it('should return unauthorized page when page has upselling (serverless)', async () => { const upselling = new UpsellingService(); upselling.setPages({ [SecurityPageName.network]: () => }); - const { result, waitForNextUpdate } = renderUseAppLinks(); + const { result } = renderUseAppLinks(); const networkLinkItem = { id: SecurityPageName.network, title: 'Network', @@ -249,16 +247,17 @@ describe('Security links', () => { uiSettingsClient: mockUiSettingsClient, } ); - await waitForNextUpdate(); }); - expect(result.current).toStrictEqual([{ ...networkLinkItem, unauthorized: true }]); + await waitFor(() => + expect(result.current).toStrictEqual([{ ...networkLinkItem, unauthorized: true }]) + ); }); it('should return unauthorized page when page has upselling (ESS)', async () => { const upselling = new UpsellingService(); upselling.setPages({ [SecurityPageName.network]: () => }); - const { result, waitForNextUpdate } = renderUseAppLinks(); + const { result } = renderUseAppLinks(); const hostLinkItem = { id: SecurityPageName.hosts, title: 'Hosts', @@ -278,9 +277,11 @@ describe('Security links', () => { upselling: mockUpselling, uiSettingsClient: mockUiSettingsClient, }); - await waitForNextUpdate(); }); - expect(result.current).toStrictEqual([{ ...hostLinkItem, unauthorized: true }]); + + await waitFor(() => + expect(result.current).toStrictEqual([{ ...hostLinkItem, unauthorized: true }]) + ); // cleanup mockUpselling.setPages({}); @@ -289,7 +290,7 @@ describe('Security links', () => { it('should filter out experimental page even if it has upselling', async () => { const upselling = new UpsellingService(); upselling.setPages({ [SecurityPageName.network]: () => }); - const { result, waitForNextUpdate } = renderUseAppLinks(); + const { result } = renderUseAppLinks(); const hostLinkItem = { id: SecurityPageName.hosts, title: 'Hosts', @@ -310,9 +311,9 @@ describe('Security links', () => { upselling: mockUpselling, uiSettingsClient: mockUiSettingsClient, }); - await waitForNextUpdate(); }); - expect(result.current).toStrictEqual([]); + + await waitFor(() => expect(result.current).toStrictEqual([])); // cleanup mockUpselling.setPages({}); @@ -331,7 +332,7 @@ describe('Security links', () => { }); it('should update if the links are removed', async () => { - const { result, waitForNextUpdate } = renderUseLinkExists(SecurityPageName.hostsEvents); + const { result } = renderUseLinkExists(SecurityPageName.hostsEvents); expect(result.current).toBe(true); await act(async () => { updateAppLinks( @@ -350,13 +351,13 @@ describe('Security links', () => { uiSettingsClient: mockUiSettingsClient, } ); - await waitForNextUpdate(); }); - expect(result.current).toBe(false); + + await waitFor(() => expect(result.current).toBe(false)); }); it('should update if the links are added', async () => { - const { result, waitForNextUpdate } = renderUseLinkExists(SecurityPageName.rules); + const { result } = renderUseLinkExists(SecurityPageName.rules); expect(result.current).toBe(false); await act(async () => { updateAppLinks( @@ -382,9 +383,9 @@ describe('Security links', () => { uiSettingsClient: mockUiSettingsClient, } ); - await waitForNextUpdate(); }); - expect(result.current).toBe(true); + + await waitFor(() => expect(result.current).toBe(true)); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/links/use_find_app_links_by_path.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/links/use_find_app_links_by_path.test.ts index b1c94256467c1..7203d14a69242 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/links/use_find_app_links_by_path.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/links/use_find_app_links_by_path.test.ts @@ -6,7 +6,7 @@ */ import { ExternalPageName } from '@kbn/security-solution-navigation'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { APP_PATH, SecurityPageName } from '../../../common'; import { useFindAppLinksByPath } from './use_find_app_links_by_path'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/mock/mock_assistant_provider.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/mock/mock_assistant_provider.tsx index 56cdc325c9646..7b3d1bd1880f1 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/mock/mock_assistant_provider.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/mock/mock_assistant_provider.tsx @@ -38,6 +38,10 @@ export const MockAssistantProviderComponent: React.FC = ({ isAssistantEnabled: true, }; + const mockUserProfileService = { + getCurrent: jest.fn(() => Promise.resolve({ avatar: 'avatar' })), + } as unknown as UserProfileService; + return ( = ({ navigateToApp={mockNavigateToApp} baseConversations={BASE_SECURITY_CONVERSATIONS} currentAppId={'test'} - userProfileService={jest.fn() as unknown as UserProfileService} + userProfileService={mockUserProfileService} > {children} diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/mock/test_providers.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/mock/test_providers.tsx index 1a0689b53b229..c4525faf3b316 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/mock/test_providers.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/mock/test_providers.tsx @@ -53,13 +53,13 @@ window.scrollTo = jest.fn(); const MockKibanaContextProvider = createKibanaContextProviderMock(); /** A utility for wrapping children in the providers required to run most tests */ -export const TestProvidersComponent: React.FC = ({ +export const TestProvidersComponent = ({ children, store = createMockStore(), startServices, onDragEnd = jest.fn(), cellActions = [], -}) => { +}: React.PropsWithChildren) => { const queryClient = new QueryClient({ defaultOptions: { queries: { diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/store/reducer.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/store/reducer.test.tsx index fc06e6369e949..2df9f1e28a536 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/store/reducer.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/store/reducer.test.tsx @@ -10,7 +10,7 @@ import type { SecuritySubPlugins } from '../../app/types'; import { createInitialState } from './reducer'; import { mockIndexPattern, mockSourcererState, TestProviders, createMockStore } from '../mock'; import { useSourcererDataView } from '../../sourcerer/containers'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { initialGroupingState } from './grouping/reducer'; import { initialAnalyzerState } from '../../resolver/store/helpers'; import { initialNotesState } from '../../notes/store/notes.slice'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/utils/get_mapped_non_ecs_value.test.ts b/x-pack/solutions/security/plugins/security_solution/public/common/utils/get_mapped_non_ecs_value.test.ts index 70e3078fd6301..c0816db90ae53 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/utils/get_mapped_non_ecs_value.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/common/utils/get_mapped_non_ecs_value.test.ts @@ -7,7 +7,7 @@ import type { TimelineNonEcsData } from '@kbn/timelines-plugin/common'; import { getMappedNonEcsValue, useGetMappedNonEcsValue } from './get_mapped_non_ecs_value'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; describe('getMappedNonEcsValue', () => { it('should return the correct value', () => { diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/utils/global_query_string/helpers.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/utils/global_query_string/helpers.test.tsx index 6da409bcf92d9..8c0a43b2c0b99 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/utils/global_query_string/helpers.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/utils/global_query_string/helpers.test.tsx @@ -14,7 +14,7 @@ import { useReplaceUrlParams, createHistoryEntry, } from './helpers'; -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { createMemoryHistory } from 'history'; // eslint-disable-next-line no-restricted-imports import { Router } from 'react-router-dom'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/utils/global_query_string/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/utils/global_query_string/index.test.tsx index 6905b5abca118..015f81f9f2595 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/utils/global_query_string/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/utils/global_query_string/index.test.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { act, renderHook } from '@testing-library/react-hooks'; +import { act, waitFor, renderHook } from '@testing-library/react'; import { useInitializeUrlParam, useGlobalQueryString, @@ -56,7 +56,7 @@ describe('global query string', () => { }); const makeWrapper = (globalUrlParam?: GlobalUrlParam) => { - const wrapper = ({ children }: { children: React.ReactElement }) => ( + const wrapper = ({ children }: React.PropsWithChildren) => ( {children} ); return wrapper; @@ -196,7 +196,7 @@ describe('global query string', () => { testEmptyString: '', }, }); - const wrapper = ({ children }: { children: React.ReactElement }) => ( + const wrapper = ({ children }: React.PropsWithChildren) => ( {children} ); @@ -306,8 +306,8 @@ describe('global query string', () => { }; const store = makeStore(globalUrlParam); - const { waitForNextUpdate } = renderHook(() => useSyncGlobalQueryString(), { - wrapper: ({ children }: { children: React.ReactElement }) => ( + renderHook(() => useSyncGlobalQueryString(), { + wrapper: ({ children }: React.PropsWithChildren) => ( {children} ), }); @@ -318,11 +318,11 @@ describe('global query string', () => { store.dispatch(globalUrlParamActions.deregisterUrlParam({ key: urlParamKey })); }); - waitForNextUpdate(); - - expect(mockHistory.replace).toHaveBeenCalledWith({ - search: ``, - }); + await waitFor(() => + expect(mockHistory.replace).toHaveBeenCalledWith({ + search: ``, + }) + ); }); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/common/utils/timeline/use_show_timeline.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/common/utils/timeline/use_show_timeline.test.tsx index dec72d0f938b0..1d3a758b70199 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/common/utils/timeline/use_show_timeline.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/common/utils/timeline/use_show_timeline.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; +import { waitFor, renderHook } from '@testing-library/react'; import { allowedExperimentalValues } from '../../../../common/experimental_features'; import { UpsellingService } from '@kbn/security-solution-upselling/service'; import { updateAppLinks } from '../../links'; @@ -77,40 +77,26 @@ describe('use show timeline', () => { }); it('shows timeline for routes on default', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => useShowTimeline()); - await waitForNextUpdate(); - const showTimeline = result.current; - expect(showTimeline).toEqual([true]); - }); + const { result } = renderHook(() => useShowTimeline()); + await waitFor(() => expect(result.current).toEqual([true])); }); it('hides timeline for blacklist routes', async () => { mockUseLocation.mockReturnValueOnce({ pathname: '/rules/add_rules' }); - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => useShowTimeline()); - await waitForNextUpdate(); - const showTimeline = result.current; - expect(showTimeline).toEqual([false]); - }); + const { result } = renderHook(() => useShowTimeline()); + await waitFor(() => expect(result.current).toEqual([false])); }); + it('shows timeline for partial blacklist routes', async () => { mockUseLocation.mockReturnValueOnce({ pathname: '/rules' }); - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => useShowTimeline()); - await waitForNextUpdate(); - const showTimeline = result.current; - expect(showTimeline).toEqual([true]); - }); + const { result } = renderHook(() => useShowTimeline()); + await waitFor(() => expect(result.current).toEqual([true])); }); + it('hides timeline for sub blacklist routes', async () => { mockUseLocation.mockReturnValueOnce({ pathname: '/administration/policy' }); - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => useShowTimeline()); - await waitForNextUpdate(); - const showTimeline = result.current; - expect(showTimeline).toEqual([false]); - }); + const { result } = renderHook(() => useShowTimeline()); + await waitFor(() => expect(result.current).toEqual([false])); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/components/user_info/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/components/user_info/index.test.tsx index af0aacc7025ae..8e84d1a5e4f0b 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/components/user_info/index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/components/user_info/index.test.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { renderHook, act } from '@testing-library/react-hooks'; +import { waitFor, renderHook } from '@testing-library/react'; import { useUserInfo, ManageUserInfo } from '.'; import type { Capabilities } from '@kbn/core/public'; @@ -38,29 +38,24 @@ describe('useUserInfo', () => { jest.spyOn(sourcererSelectors, 'signalIndexMappingOutdated').mockReturnValue(null); }); it('returns default state', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => useUserInfo(), { - wrapper: TestProviders, - }); - await waitForNextUpdate(); + const { result } = renderHook(() => useUserInfo(), { + wrapper: TestProviders, + }); - expect(result.all).toHaveLength(1); - expect(result.current).toEqual({ - canUserCRUD: null, - canUserREAD: null, - hasEncryptionKey: null, - hasIndexManage: null, - hasIndexMaintenance: null, - hasIndexWrite: null, - hasIndexRead: null, - hasIndexUpdateDelete: null, - isAuthenticated: null, - isSignalIndexExists: null, - loading: true, - signalIndexName: null, - signalIndexMappingOutdated: null, - }); - expect(result.error).toBeUndefined(); + expect(result.current).toEqual({ + canUserCRUD: null, + canUserREAD: null, + hasEncryptionKey: null, + hasIndexManage: null, + hasIndexMaintenance: null, + hasIndexWrite: null, + hasIndexRead: null, + hasIndexUpdateDelete: null, + isAuthenticated: null, + isSignalIndexExists: null, + loading: true, + signalIndexName: null, + signalIndexMappingOutdated: null, }); }); @@ -70,7 +65,7 @@ describe('useUserInfo', () => { name: 'mock-signal-index', index_mapping_outdated: true, }); - const wrapper = ({ children }: { children: JSX.Element }) => ( + const wrapper = ({ children }: React.PropsWithChildren) => ( { ); - await act(async () => { - const { waitForNextUpdate } = renderHook(() => useUserInfo(), { wrapper }); - await waitForNextUpdate(); - await waitForNextUpdate(); + + renderHook(() => useUserInfo(), { wrapper }); + await waitFor(() => { + expect(spyOnGetSignalIndex).toHaveBeenCalledTimes(2); + expect(spyOnCreateSignalIndex).toHaveBeenCalledTimes(1); }); - expect(spyOnGetSignalIndex).toHaveBeenCalledTimes(2); - expect(spyOnCreateSignalIndex).toHaveBeenCalledTimes(1); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_alerts_privileges.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_alerts_privileges.test.tsx index 5411cada8dd64..e87ebd14b7c88 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_alerts_privileges.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_alerts_privileges.test.tsx @@ -5,13 +5,12 @@ * 2.0. */ -import { act, renderHook } from '@testing-library/react-hooks'; +import { waitFor, renderHook } from '@testing-library/react'; import produce from 'immer'; import { useAppToasts } from '../../../../common/hooks/use_app_toasts'; import { useAppToastsMock } from '../../../../common/hooks/use_app_toasts.mock'; import { useUserPrivileges } from '../../../../common/components/user_privileges'; import type { Privilege } from './types'; -import type { UseAlertsPrivelegesReturn } from './use_alerts_privileges'; import { useAlertsPrivileges } from './use_alerts_privileges'; import { getEndpointPrivilegesInitialStateMock } from '../../../../common/components/user_privileges/endpoint/mocks'; @@ -90,11 +89,8 @@ describe('useAlertsPrivileges', () => { }); test('init', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useAlertsPrivileges() - ); - await waitForNextUpdate(); + const { result } = renderHook(() => useAlertsPrivileges()); + await waitFor(() => expect(result.current).toEqual({ hasEncryptionKey: null, hasIndexManage: null, @@ -106,8 +102,8 @@ describe('useAlertsPrivileges', () => { hasKibanaREAD: false, isAuthenticated: null, loading: false, - }); - }); + }) + ); }); test('if there is an error when fetching user privilege, we should get back false for all index related properties', async () => { @@ -115,12 +111,8 @@ describe('useAlertsPrivileges', () => { draft.detectionEnginePrivileges.error = new Error('Something went wrong'); }); useUserPrivilegesMock.mockReturnValue(userPrivileges); - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useAlertsPrivileges() - ); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useAlertsPrivileges()); + await waitFor(() => expect(result.current).toEqual({ hasEncryptionKey: false, hasIndexManage: false, @@ -132,8 +124,8 @@ describe('useAlertsPrivileges', () => { hasKibanaREAD: true, isAuthenticated: false, loading: false, - }); - }); + }) + ); }); test('returns "hasIndexManage" is false if the privilege does not have cluster manage', async () => { @@ -145,12 +137,8 @@ describe('useAlertsPrivileges', () => { }); useUserPrivilegesMock.mockReturnValue(userPrivileges); - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useAlertsPrivileges() - ); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useAlertsPrivileges()); + await waitFor(() => expect(result.current).toEqual({ hasEncryptionKey: true, hasIndexManage: false, @@ -162,8 +150,8 @@ describe('useAlertsPrivileges', () => { hasKibanaREAD: true, isAuthenticated: true, loading: false, - }); - }); + }) + ); }); test('returns "hasIndexManage" is true if the privilege has cluster manage', async () => { @@ -172,12 +160,8 @@ describe('useAlertsPrivileges', () => { }); useUserPrivilegesMock.mockReturnValue(userPrivileges); - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useAlertsPrivileges() - ); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useAlertsPrivileges()); + await waitFor(() => expect(result.current).toEqual({ hasEncryptionKey: true, hasIndexManage: true, @@ -189,8 +173,8 @@ describe('useAlertsPrivileges', () => { hasKibanaREAD: true, isAuthenticated: true, loading: false, - }); - }); + }) + ); }); test('returns "hasKibanaCRUD" as false if user does not have SIEM Kibana "all" privileges', async () => { @@ -200,12 +184,8 @@ describe('useAlertsPrivileges', () => { }); useUserPrivilegesMock.mockReturnValue(userPrivileges); - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useAlertsPrivileges() - ); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useAlertsPrivileges()); + await waitFor(() => expect(result.current).toEqual({ hasEncryptionKey: true, hasIndexManage: true, @@ -217,8 +197,8 @@ describe('useAlertsPrivileges', () => { hasKibanaREAD: true, isAuthenticated: true, loading: false, - }); - }); + }) + ); }); test('returns "hasKibanaREAD" as false if user does not have at least SIEM Kibana "read" privileges', async () => { @@ -228,12 +208,8 @@ describe('useAlertsPrivileges', () => { }); useUserPrivilegesMock.mockReturnValue(userPrivileges); - await act(async () => { - const { result, waitForNextUpdate } = renderHook(() => - useAlertsPrivileges() - ); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useAlertsPrivileges()); + await waitFor(() => expect(result.current).toEqual({ hasEncryptionKey: true, hasIndexManage: true, @@ -245,7 +221,7 @@ describe('useAlertsPrivileges', () => { hasKibanaREAD: false, isAuthenticated: true, loading: false, - }); - }); + }) + ); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_cases_from_alerts.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_cases_from_alerts.test.tsx index 01bbe8c807ec2..ef5fedc9e9875 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_cases_from_alerts.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_cases_from_alerts.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { waitFor, renderHook } from '@testing-library/react'; import { useCasesFromAlerts } from './use_cases_from_alerts'; import * as api from './api'; import { useAppToasts } from '../../../../common/hooks/use_app_toasts'; @@ -25,14 +25,13 @@ describe('useCasesFromAlerts hook', () => { it('returns an array of caseIds', async () => { const spyOnCases = jest.spyOn(api, 'getCaseIdsFromAlertId'); - const { result, waitForNextUpdate } = renderHook(() => - useCasesFromAlerts({ alertId: 'anAlertId' }) - ); - await waitForNextUpdate(); - expect(spyOnCases).toHaveBeenCalledTimes(1); - expect(result.current).toEqual({ - loading: false, - casesInfo: mockCaseIdsFromAlertId, + const { result } = renderHook(() => useCasesFromAlerts({ alertId: 'anAlertId' })); + await waitFor(() => { + expect(spyOnCases).toHaveBeenCalledTimes(1); + expect(result.current).toEqual({ + loading: false, + casesInfo: mockCaseIdsFromAlertId, + }); }); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_query.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_query.test.tsx index 0e78f11a69a3e..b799410e3a5e7 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_query.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_query.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; +import { waitFor, act, renderHook } from '@testing-library/react'; import type { ReturnQueryAlerts } from './use_query'; import { useQueryAlerts } from './use_query'; import { ALERTS_QUERY_NAMES } from './constants'; @@ -28,31 +28,20 @@ describe('useQueryAlerts', () => { }); test('init', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook< - [object, string], - ReturnQueryAlerts - >(() => useQueryAlerts(defaultProps)); - await waitForNextUpdate(); - expect(result.current).toEqual({ - loading: false, - data: null, - response: '', - request: '', - setQuery: result.current.setQuery, - refetch: null, - }); + const { result } = renderHook(() => useQueryAlerts(defaultProps)); + expect(result.current).toEqual({ + loading: true, + data: null, + response: '', + request: '', + setQuery: result.current.setQuery, + refetch: null, }); }); test('fetch alerts data', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook< - [object, string], - ReturnQueryAlerts - >(() => useQueryAlerts(defaultProps)); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useQueryAlerts(defaultProps)); + await waitFor(() => expect(result.current).toEqual({ loading: false, data: alertsMock, @@ -60,61 +49,48 @@ describe('useQueryAlerts', () => { request: JSON.stringify({ index: [indexName] ?? [''], body: mockAlertsQuery }, null, 2), setQuery: result.current.setQuery, refetch: result.current.refetch, - }); - }); + }) + ); }); test('re-fetch alerts data', async () => { const spyOnfetchQueryAlerts = jest.spyOn(api, 'fetchQueryAlerts'); - await act(async () => { - const { result, waitForNextUpdate } = renderHook< - [object, string], - ReturnQueryAlerts - >(() => useQueryAlerts(defaultProps)); - await waitForNextUpdate(); - await waitForNextUpdate(); - if (result.current.refetch) { - result.current.refetch(); - } - await waitForNextUpdate(); - expect(spyOnfetchQueryAlerts).toHaveBeenCalledTimes(2); + const { result } = renderHook(() => useQueryAlerts(defaultProps)); + await waitFor(() => expect(result.current.refetch).toBeDefined()); + + act(() => { + result.current.refetch!(); }); + + await waitFor(() => expect(spyOnfetchQueryAlerts).toHaveBeenCalledTimes(2)); }); test('fetch alert when index name changed', async () => { const spyOnfetchRules = jest.spyOn(api, 'fetchQueryAlerts'); - await act(async () => { - const { rerender, waitForNextUpdate } = renderHook< - [object, string], - ReturnQueryAlerts - >((args) => useQueryAlerts({ ...defaultProps, query: args[0], indexName: args[1] }), { + const { rerender } = renderHook, [object, string]>( + (args) => useQueryAlerts({ ...defaultProps, query: args[0], indexName: args[1] }), + { initialProps: [mockAlertsQuery, indexName], - }); - await waitForNextUpdate(); - await waitForNextUpdate(); - rerender([mockAlertsQuery, 'new-mock-index-name']); - await waitForNextUpdate(); - expect(spyOnfetchRules).toHaveBeenCalledTimes(2); - }); + } + ); + + rerender([mockAlertsQuery, 'new-mock-index-name']); + await waitFor(() => expect(spyOnfetchRules).toHaveBeenCalledTimes(2)); }); test('fetch alert when query object changed', async () => { const spyOnfetchRules = jest.spyOn(api, 'fetchQueryAlerts'); - await act(async () => { - const { result, waitForNextUpdate } = renderHook< - [object, string], - ReturnQueryAlerts - >((args) => useQueryAlerts({ ...defaultProps, query: args[0], indexName: args[1] }), { + const { result } = renderHook, [object, string]>( + (args) => useQueryAlerts({ ...defaultProps, query: args[0], indexName: args[1] }), + { initialProps: [mockAlertsQuery, indexName], - }); - await waitForNextUpdate(); - await waitForNextUpdate(); - if (result.current.setQuery) { - result.current.setQuery({ ...mockAlertsQuery }); } - await waitForNextUpdate(); - expect(spyOnfetchRules).toHaveBeenCalledTimes(2); - }); + ); + await waitFor(() => expect(result.current.setQuery).toBeDefined()); + + result.current.setQuery({ ...mockAlertsQuery }); + + await waitFor(() => expect(spyOnfetchRules).toHaveBeenCalledTimes(2)); }); test('if there is an error when fetching data, we should get back the init value for every properties', async () => { @@ -122,12 +98,8 @@ describe('useQueryAlerts', () => { spyOnGetUserPrivilege.mockImplementation(() => { throw new Error('Something went wrong, let see what happen'); }); - await act(async () => { - const { result, waitForNextUpdate } = renderHook>( - () => useQueryAlerts(defaultProps) - ); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useQueryAlerts(defaultProps)); + await waitFor(() => expect(result.current).toEqual({ loading: false, data: null, @@ -135,25 +107,18 @@ describe('useQueryAlerts', () => { request: '', setQuery: result.current.setQuery, refetch: result.current.refetch, - }); - }); + }) + ); }); test('skip', async () => { const abortSpy = jest.spyOn(AbortController.prototype, 'abort'); - await act(async () => { - const localProps = { ...defaultProps, skip: false }; - const { rerender, waitForNextUpdate } = renderHook< - [object, string], - ReturnQueryAlerts - >(() => useQueryAlerts(localProps)); - await waitForNextUpdate(); - await waitForNextUpdate(); - - localProps.skip = true; - act(() => rerender()); - act(() => rerender()); - expect(abortSpy).toHaveBeenCalledTimes(2); - }); + const localProps = { ...defaultProps, skip: false }; + const { rerender } = renderHook(() => useQueryAlerts(localProps)); + + localProps.skip = true; + rerender(); + rerender(); + expect(abortSpy).toHaveBeenCalledTimes(2); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_signal_index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_signal_index.test.tsx index 7fed5e84b5320..04f3abec51036 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_signal_index.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/containers/detection_engine/alerts/use_signal_index.test.tsx @@ -4,10 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import type { PropsWithChildren } from 'react'; -import { renderHook, act } from '@testing-library/react-hooks'; +import { waitFor, act, renderHook } from '@testing-library/react'; import { TestProvidersWithPrivileges } from '../../../../common/mock'; -import type { ReturnSignalIndex } from './use_signal_index'; import { useSignalIndex } from './use_signal_index'; import * as api from './api'; import { useAppToastsMock } from '../../../../common/hooks/use_app_toasts.mock'; @@ -31,35 +29,26 @@ describe('useSignalIndex', () => { }); test('init', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook, ReturnSignalIndex>( - () => useSignalIndex(), - { - wrapper: TestProvidersWithPrivileges, - } - ); - await waitForNextUpdate(); - expect(result.current).toEqual({ - createDeSignalIndex: null, - loading: true, - signalIndexExists: null, - signalIndexName: null, - signalIndexMappingOutdated: null, - }); + const { result } = renderHook(() => useSignalIndex(), { + wrapper: TestProvidersWithPrivileges, + }); + + expect(result.current).toEqual({ + createDeSignalIndex: null, + loading: false, + signalIndexExists: null, + signalIndexName: null, + signalIndexMappingOutdated: null, }); }); test('fetch alerts info', async () => { - await act(async () => { - const { result, waitForNextUpdate } = renderHook, ReturnSignalIndex>( - () => useSignalIndex(), - { - wrapper: TestProvidersWithPrivileges, - } - ); - await waitForNextUpdate(); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useSignalIndex(), { + wrapper: TestProvidersWithPrivileges, + }); + + await waitFor(() => { + expect(result.current.loading).toBe(false); expect(result.current).toEqual({ createDeSignalIndex: result.current.createDeSignalIndex, loading: false, @@ -71,48 +60,39 @@ describe('useSignalIndex', () => { }); test('make sure that createSignalIndex is giving back the signal info', async () => { + const { result } = renderHook(() => useSignalIndex(), { + wrapper: TestProvidersWithPrivileges, + }); + await waitFor(() => expect(result.current.createDeSignalIndex).toBeDefined()); + await act(async () => { - const { result, waitForNextUpdate } = renderHook, ReturnSignalIndex>( - () => useSignalIndex(), - { - wrapper: TestProvidersWithPrivileges, - } - ); - await waitForNextUpdate(); - await waitForNextUpdate(); - await waitForNextUpdate(); - if (result.current.createDeSignalIndex != null) { - await result.current.createDeSignalIndex(); - } - await waitForNextUpdate(); + await result.current.createDeSignalIndex!(); + }); + + await waitFor(() => expect(result.current).toEqual({ createDeSignalIndex: result.current.createDeSignalIndex, loading: false, signalIndexExists: true, signalIndexName: 'mock-signal-index', signalIndexMappingOutdated: false, - }); - }); + }) + ); }); test('make sure that createSignalIndex have been called when trying to create signal index', async () => { const spyOnCreateSignalIndex = jest.spyOn(api, 'createSignalIndex'); + + const { result } = renderHook(() => useSignalIndex(), { + wrapper: TestProvidersWithPrivileges, + }); + await waitFor(() => expect(result.current.createDeSignalIndex).toBeDefined()); + await act(async () => { - const { result, waitForNextUpdate } = renderHook, ReturnSignalIndex>( - () => useSignalIndex(), - { - wrapper: TestProvidersWithPrivileges, - } - ); - await waitForNextUpdate(); - await waitForNextUpdate(); - await waitForNextUpdate(); - if (result.current.createDeSignalIndex != null) { - await result.current.createDeSignalIndex(); - } - await waitForNextUpdate(); - expect(spyOnCreateSignalIndex).toHaveBeenCalledTimes(1); + await result.current.createDeSignalIndex!(); }); + + await waitFor(() => expect(spyOnCreateSignalIndex).toHaveBeenCalledTimes(1)); }); test('if there is an error during createSignalIndex, we should get back signalIndexExists === false && signalIndexName == null', async () => { @@ -120,27 +100,25 @@ describe('useSignalIndex', () => { spyOnCreateSignalIndex.mockImplementation(() => { throw new Error('Something went wrong, let see what happen'); }); + const { result } = renderHook(() => useSignalIndex(), { + wrapper: TestProvidersWithPrivileges, + }); + + await waitFor(() => expect(result.current.createDeSignalIndex).toBeDefined()); + await act(async () => { - const { result, waitForNextUpdate } = renderHook, ReturnSignalIndex>( - () => useSignalIndex(), - { - wrapper: TestProvidersWithPrivileges, - } - ); - await waitForNextUpdate(); - await waitForNextUpdate(); - await waitForNextUpdate(); - if (result.current.createDeSignalIndex != null) { - await result.current.createDeSignalIndex(); - } + await result.current.createDeSignalIndex!(); + }); + + await waitFor(() => expect(result.current).toEqual({ createDeSignalIndex: result.current.createDeSignalIndex, loading: false, signalIndexExists: false, signalIndexName: null, signalIndexMappingOutdated: null, - }); - }); + }) + ); }); test('if there is an error when fetching alerts info, signalIndexExists === false && signalIndexName == null', async () => { @@ -148,24 +126,25 @@ describe('useSignalIndex', () => { spyOnGetSignalIndex.mockImplementation(() => { throw new Error('Something went wrong, let see what happen'); }); + const { result } = renderHook(() => useSignalIndex(), { + wrapper: TestProvidersWithPrivileges, + }); + + await waitFor(() => expect(result.current.createDeSignalIndex).toBeDefined()); + await act(async () => { - const { result, waitForNextUpdate } = renderHook, ReturnSignalIndex>( - () => useSignalIndex(), - { - wrapper: TestProvidersWithPrivileges, - } - ); - await waitForNextUpdate(); - await waitForNextUpdate(); - await waitForNextUpdate(); + await result.current.createDeSignalIndex!(); + }); + + await waitFor(() => expect(result.current).toEqual({ createDeSignalIndex: result.current.createDeSignalIndex, loading: false, signalIndexExists: false, signalIndexName: null, signalIndexMappingOutdated: null, - }); - }); + }) + ); }); test('should not make API calls when signal index already stored in sourcerer', async () => { @@ -175,16 +154,11 @@ describe('useSignalIndex', () => { .mockReturnValue('mock-signal-index-from-sourcerer'); jest.spyOn(sourcererSelectors, 'signalIndexMappingOutdated').mockReturnValue(false); - await act(async () => { - const { result, waitForNextUpdate } = renderHook, ReturnSignalIndex>( - () => useSignalIndex(), - { - wrapper: TestProvidersWithPrivileges, - } - ); - await waitForNextUpdate(); - await waitForNextUpdate(); - await waitForNextUpdate(); + const { result } = renderHook(() => useSignalIndex(), { + wrapper: TestProvidersWithPrivileges, + }); + + await waitFor(() => { expect(spyOnGetSignalIndex).not.toHaveBeenCalled(); expect(result.current).toEqual({ createDeSignalIndex: result.current.createDeSignalIndex, diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/alerts_visualization/use_alert_histogram_count.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/alerts_visualization/use_alert_histogram_count.test.tsx index 9781f3ad991e3..c0e0b0e0d605b 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/alerts_visualization/use_alert_histogram_count.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/alerts_visualization/use_alert_histogram_count.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; +import { renderHook } from '@testing-library/react'; import { TestProviders } from '../../../common/mock'; import { useAlertHistogramCount } from './use_alert_histogram_count'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_cell_actions.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_cell_actions.test.tsx index c1600c73caa6a..618c1b1ba2cc0 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_cell_actions.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_cell_actions.test.tsx @@ -7,7 +7,6 @@ import { createMockStore, mockGlobalState, TestProviders } from '../../../common/mock'; import { TableId } from '@kbn/securitysolution-data-table'; -import { renderHook } from '@testing-library/react-hooks'; import { getUseCellActionsHook } from './use_cell_actions'; import { columns as mockColumns, data as mockData } from './mock/data'; import type { @@ -17,7 +16,7 @@ import type { EuiDataGridRefProps, } from '@elastic/eui'; import { EuiButtonEmpty } from '@elastic/eui'; -import { render, screen } from '@testing-library/react'; +import { render, screen, waitFor, renderHook } from '@testing-library/react'; import type { ComponentProps, JSXElementConstructor, PropsWithChildren } from 'react'; import React from 'react'; import { makeAction } from '../../../common/components/cell_actions/mocks'; @@ -86,7 +85,7 @@ const TestProviderWithCustomStateAndActions = withCustomPropsAndCellActions({ describe('getUseCellActionsHook', () => { it('should render cell actions correctly for gridView view', async () => { - const { result, waitForNextUpdate } = renderHook( + const { result } = renderHook( () => useCellActions({ columns: mockColumns as unknown as EuiDataGridColumn[], @@ -101,17 +100,17 @@ describe('getUseCellActionsHook', () => { } ); - await waitForNextUpdate(); + await waitFor(() => { + const cellAction = result.current.getCellActions('host.name', 0)[0]; - const cellAction = result.current.getCellActions('host.name', 0)[0]; + renderCellAction(cellAction); - renderCellAction(cellAction); - - expect(screen.getByTestId('dataGridColumnCellAction-action1')).toBeInTheDocument(); + expect(screen.getByTestId('dataGridColumnCellAction-action1')).toBeInTheDocument(); + }); }); it('should not render cell actions correctly for eventRendered view', async () => { - const { result, waitForNextUpdate } = renderHook( + const { result } = renderHook( () => useCellActions({ columns: mockColumns as unknown as EuiDataGridColumn[], @@ -128,8 +127,6 @@ describe('getUseCellActionsHook', () => { const cellAction = result.current.getCellActions('host.name', 0); - await waitForNextUpdate(); - - expect(cellAction).toHaveLength(0); + await waitFor(() => expect(cellAction).toHaveLength(0)); }); }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_persistent_controls.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_persistent_controls.test.tsx index d2ca9bd93198a..1fe2e617f3616 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_persistent_controls.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detections/hooks/trigger_actions_alert_table/use_persistent_controls.test.tsx @@ -8,8 +8,7 @@ import React from 'react'; import { getPersistentControlsHook } from './use_persistent_controls'; import { TableId } from '@kbn/securitysolution-data-table'; -import { renderHook } from '@testing-library/react-hooks'; -import { render, fireEvent } from '@testing-library/react'; +import { render, fireEvent, renderHook } from '@testing-library/react'; import { createMockStore, mockGlobalState, TestProviders } from '../../../common/mock'; import { useSourcererDataView } from '../../../sourcerer/containers'; import { useDeepEqualSelector, useShallowEqualSelector } from '../../../common/hooks/use_selector'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/flyout/rule_details/hooks/use_rule_details.test.ts b/x-pack/solutions/security/plugins/security_solution/public/flyout/rule_details/hooks/use_rule_details.test.ts index 41370334ed6a1..0086fb8c84799 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/flyout/rule_details/hooks/use_rule_details.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/flyout/rule_details/hooks/use_rule_details.test.ts @@ -5,8 +5,8 @@ * 2.0. */ -import type { RenderHookResult } from '@testing-library/react-hooks'; -import { renderHook } from '@testing-library/react-hooks'; +import type { RenderHookResult } from '@testing-library/react'; +import { renderHook } from '@testing-library/react'; import type { UseRuleDetailsParams, UseRuleDetailsResult } from './use_rule_details'; import { useRuleDetails } from './use_rule_details'; import { useRuleWithFallback } from '../../../detection_engine/rule_management/logic/use_rule_with_fallback'; @@ -19,7 +19,7 @@ const initialProps: UseRuleDetailsParams = { }; describe('useRuleDetails', () => { - let hookResult: RenderHookResult; + let hookResult: RenderHookResult; it('should return loading as true when the rule is loading', () => { mockUseRuleWithFallback.mockReturnValue({ diff --git a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/integrations/use_integration_card_list.test.ts b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/integrations/use_integration_card_list.test.ts index 095b2f988e59c..555d68c73a830 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/integrations/use_integration_card_list.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/cards/integrations/use_integration_card_list.test.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { useIntegrationCardList } from './use_integration_card_list'; import { trackOnboardingLinkClick } from '../../../lib/telemetry'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_body_config.test.ts b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_body_config.test.ts index c2c89594669c9..5ed1653066af6 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_body_config.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_body_config.test.ts @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { renderHook } from '@testing-library/react-hooks'; + +import { renderHook } from '@testing-library/react'; import { useBodyConfig } from './use_body_config'; import { mockOnboardingContext, onboardingContext } from '../../__mocks__/mocks'; diff --git a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_completed_cards.test.ts b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_completed_cards.test.ts index 1ace059a5115e..48d637dc6a28f 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_completed_cards.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_completed_cards.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { renderHook, act, type RenderHookResult } from '@testing-library/react-hooks'; +import { renderHook, act, type RenderHookResult } from '@testing-library/react'; import { useCompletedCards } from './use_completed_cards'; import type { OnboardingGroupConfig } from '../../../types'; import type { OnboardingCardId } from '../../../constants'; @@ -107,8 +107,8 @@ describe('useCompletedCards Hook', () => { describe('when checkComplete functions are rejected', () => { let renderResult: RenderHookResult< - OnboardingGroupConfig[], - ReturnType + ReturnType, + OnboardingGroupConfig[] >; beforeEach(async () => { mockUseKibana.mockReturnValue({ @@ -150,8 +150,8 @@ describe('useCompletedCards Hook', () => { describe('when checkComplete functions are resolved', () => { let renderResult: RenderHookResult< - OnboardingGroupConfig[], - ReturnType + ReturnType, + OnboardingGroupConfig[] >; beforeEach(async () => { renderResult = renderHook(useCompletedCards, { initialProps: mockCardsGroupConfig }); diff --git a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_expanded_card.test.ts b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_expanded_card.test.ts index 0c053b5ea0b69..b60642093b651 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_expanded_card.test.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/onboarding/components/onboarding_body/hooks/use_expanded_card.test.ts @@ -5,10 +5,9 @@ * 2.0. */ -import { renderHook, act } from '@testing-library/react-hooks'; -import { waitFor } from '@testing-library/react'; -import type { OnboardingCardId } from '../../../constants'; import { useExpandedCard } from './use_expanded_card'; +import type { OnboardingCardId } from '../../../constants'; +import { waitFor, renderHook, act } from '@testing-library/react'; const mockSetCardDetail = jest.fn(); jest.mock('../../hooks/use_url_detail', () => ({ From 8cc2f2b9c8c463feaa87f77a05e46a3f75f10fb7 Mon Sep 17 00:00:00 2001 From: Kerry Gallagher Date: Mon, 30 Dec 2024 14:24:19 +0000 Subject: [PATCH 10/10] [Streams] Schema Editor isWiredStream > isWiredReadStream (#205251) ## Summary Small fix to the Schema Editor page after the changes in https://github.com/elastic/kibana/pull/204671. (Without this mapped fields won't be displayed as we use a read stream definition). --- .../components/stream_detail_schema_editor/fields_table.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_schema_editor/fields_table.tsx b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_schema_editor/fields_table.tsx index 4daf6acf0a6f2..1b6d0131a6bc2 100644 --- a/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_schema_editor/fields_table.tsx +++ b/x-pack/solutions/observability/plugins/streams_app/public/components/stream_detail_schema_editor/fields_table.tsx @@ -22,7 +22,7 @@ import type { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import useToggle from 'react-use/lib/useToggle'; -import { isWiredStream, ReadStreamDefinition } from '@kbn/streams-schema'; +import { isWiredReadStream, ReadStreamDefinition } from '@kbn/streams-schema'; import { FieldType } from './field_type'; import { FieldStatus } from './field_status'; import { FieldEntry, SchemaEditorEditingState } from './hooks/use_editing_state'; @@ -93,7 +93,7 @@ export const FieldsTableContainer = ({ }, [inheritedFields, query]); const mappedFields = useMemo(() => { - if (isWiredStream(definition)) { + if (isWiredReadStream(definition)) { return Object.entries(definition.stream.ingest.wired.fields).map(([name, field]) => ({ name, type: field.type,