From bb877cff7ef24c3f7295bdcdbdebb960c7db81b3 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 30 Dec 2024 13:23:47 +0100 Subject: [PATCH] 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 ""