From 3c34745213128c518681a3f3f21c0f4fc1c05cd0 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 14:54:53 +0100 Subject: [PATCH 01/43] Relocating module `@kbn/content-management-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/content_management/README.md | 2 +- .../shared}/content_management/common/constants.ts | 0 .../plugins/shared}/content_management/common/index.ts | 0 .../shared}/content_management/common/rpc/bulk_get.ts | 0 .../shared}/content_management/common/rpc/common.ts | 0 .../shared}/content_management/common/rpc/constants.ts | 0 .../shared}/content_management/common/rpc/create.ts | 0 .../shared}/content_management/common/rpc/delete.ts | 0 .../plugins/shared}/content_management/common/rpc/get.ts | 0 .../shared}/content_management/common/rpc/index.ts | 0 .../shared}/content_management/common/rpc/msearch.ts | 0 .../plugins/shared}/content_management/common/rpc/rpc.ts | 0 .../shared}/content_management/common/rpc/search.ts | 0 .../shared}/content_management/common/rpc/types.ts | 0 .../shared}/content_management/common/rpc/update.ts | 0 .../plugins/shared}/content_management/common/schemas.ts | 0 .../content_management/docs/conent_management_landing.mdx | 0 .../content_management/docs/content_onboarding.mdx | 4 ++-- .../plugins/shared}/content_management/jest.config.js | 8 ++++---- .../shared}/content_management/jest.integration.config.js | 4 ++-- .../plugins/shared}/content_management/kibana.jsonc | 0 .../public/content_client/content_client.test.ts | 0 .../public/content_client/content_client.tsx | 0 .../public/content_client/content_client_context.tsx | 0 .../content_client/content_client_mutation_hooks.test.tsx | 0 .../content_client/content_client_mutation_hooks.tsx | 0 .../content_client/content_client_query_hooks.test.tsx | 0 .../public/content_client/content_client_query_hooks.tsx | 0 .../content_management/public/content_client/index.ts | 0 .../public/content_client/query_observable.ts | 0 .../public/crud_client/crud_client.mock.ts | 0 .../content_management/public/crud_client/crud_client.ts | 0 .../content_management/public/crud_client/index.ts | 0 .../plugins/shared}/content_management/public/index.ts | 0 .../plugins/shared}/content_management/public/mocks.ts | 0 .../plugins/shared}/content_management/public/plugin.ts | 0 .../public/registry/content_type.test.ts | 0 .../content_management/public/registry/content_type.ts | 0 .../public/registry/content_type_definition.ts | 0 .../shared}/content_management/public/registry/index.ts | 0 .../content_management/public/registry/registry.test.ts | 0 .../content_management/public/registry/registry.ts | 0 .../shared}/content_management/public/rpc_client/index.ts | 0 .../public/rpc_client/rpc_client.test.ts | 0 .../content_management/public/rpc_client/rpc_client.ts | 0 .../plugins/shared}/content_management/public/types.ts | 0 .../server/content_client/content_client.test.ts | 0 .../server/content_client/content_client.ts | 0 .../server/content_client/content_client_factory.ts | 0 .../content_management/server/content_client/index.ts | 0 .../content_management/server/content_client/types.ts | 0 .../content_management/server/core/content_type.ts | 0 .../shared}/content_management/server/core/core.test.ts | 0 .../shared}/content_management/server/core/core.ts | 0 .../shared}/content_management/server/core/crud.ts | 0 .../shared}/content_management/server/core/event_bus.ts | 0 .../shared}/content_management/server/core/event_types.ts | 0 .../shared}/content_management/server/core/index.ts | 0 .../server/core/mocks/in_memory_storage.ts | 0 .../shared}/content_management/server/core/mocks/index.ts | 0 .../content_management/server/core/msearch.test.ts | 0 .../shared}/content_management/server/core/msearch.ts | 0 .../shared}/content_management/server/core/registry.ts | 0 .../shared}/content_management/server/core/types.ts | 0 .../content_management/server/event_stream/README.md | 0 .../server/event_stream/es/es_event_stream_client.ts | 0 .../event_stream/es/es_event_stream_client_factory.ts | 0 .../server/event_stream/es/es_event_stream_names.ts | 0 .../content_management/server/event_stream/es/index.ts | 0 .../event_stream/es/init/es_event_stream_initializer.ts | 0 .../server/event_stream/es/init/index_template.ts | 0 .../server/event_stream/es/init/mappings.ts | 0 .../es/integration_tests/es_event_stream_client.test.ts | 0 .../content_management/server/event_stream/es/types.ts | 0 .../content_management/server/event_stream/es/util.ts | 0 .../server/event_stream/event_stream_service.test.ts | 0 .../server/event_stream/event_stream_service.ts | 0 .../content_management/server/event_stream/index.ts | 0 .../server/event_stream/memory/index.ts | 0 .../memory/memory_event_stream_client.test.ts | 0 .../event_stream/memory/memory_event_stream_client.ts | 0 .../memory/memory_event_stream_client_factory.ts | 0 .../content_management/server/event_stream/memory/util.ts | 0 .../server/event_stream/tests/event_stream_logger_mock.ts | 0 .../event_stream/tests/setup_event_stream_service.ts | 0 .../server/event_stream/tests/test_event_stream_client.ts | 0 .../content_management/server/event_stream/tests/util.ts | 0 .../content_management/server/event_stream/types.ts | 0 .../content_management/server/event_stream/validation.ts | 0 .../plugins/shared}/content_management/server/index.ts | 0 .../shared}/content_management/server/plugin.test.ts | 0 .../plugins/shared}/content_management/server/plugin.ts | 0 .../shared}/content_management/server/rpc/index.ts | 0 .../server/rpc/procedures/all_procedures.ts | 0 .../server/rpc/procedures/bulk_get.test.ts | 0 .../content_management/server/rpc/procedures/bulk_get.ts | 0 .../server/rpc/procedures/create.test.ts | 0 .../content_management/server/rpc/procedures/create.ts | 0 .../server/rpc/procedures/delete.test.ts | 0 .../content_management/server/rpc/procedures/delete.ts | 0 .../content_management/server/rpc/procedures/get.test.ts | 0 .../content_management/server/rpc/procedures/get.ts | 0 .../content_management/server/rpc/procedures/index.ts | 0 .../server/rpc/procedures/msearch.test.ts | 0 .../content_management/server/rpc/procedures/msearch.ts | 0 .../server/rpc/procedures/search.test.ts | 0 .../content_management/server/rpc/procedures/search.ts | 0 .../server/rpc/procedures/update.test.ts | 0 .../content_management/server/rpc/procedures/update.ts | 0 .../content_management/server/rpc/routes/error_wrapper.ts | 0 .../shared}/content_management/server/rpc/routes/index.ts | 0 .../content_management/server/rpc/routes/routes.ts | 0 .../content_management/server/rpc/rpc_service.test.ts | 0 .../shared}/content_management/server/rpc/rpc_service.ts | 0 .../shared}/content_management/server/rpc/types.ts | 0 .../plugins/shared}/content_management/server/types.ts | 0 .../shared}/content_management/server/utils/index.ts | 0 .../server/utils/services_transforms_factory.ts | 0 .../shared}/content_management/server/utils/utils.ts | 0 .../plugins/shared}/content_management/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 125 files changed, 16 insertions(+), 16 deletions(-) rename src/{plugins => platform/plugins/shared}/content_management/README.md (87%) rename src/{plugins => platform/plugins/shared}/content_management/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/bulk_get.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/common.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/create.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/delete.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/get.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/msearch.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/rpc.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/search.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/types.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/rpc/update.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/common/schemas.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/docs/conent_management_landing.mdx (100%) rename src/{plugins => platform/plugins/shared}/content_management/docs/content_onboarding.mdx (99%) rename src/{plugins => platform/plugins/shared}/content_management/jest.config.js (72%) rename src/{plugins => platform/plugins/shared}/content_management/jest.integration.config.js (84%) rename src/{plugins => platform/plugins/shared}/content_management/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/content_client/content_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/content_client/content_client.tsx (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/content_client/content_client_context.tsx (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/content_client/content_client_mutation_hooks.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/content_client/content_client_mutation_hooks.tsx (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/content_client/content_client_query_hooks.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/content_client/content_client_query_hooks.tsx (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/content_client/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/content_client/query_observable.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/crud_client/crud_client.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/crud_client/crud_client.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/crud_client/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/registry/content_type.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/registry/content_type.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/registry/content_type_definition.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/registry/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/registry/registry.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/registry/registry.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/rpc_client/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/rpc_client/rpc_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/rpc_client/rpc_client.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/content_client/content_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/content_client/content_client.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/content_client/content_client_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/content_client/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/content_client/types.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/content_type.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/core.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/core.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/crud.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/event_bus.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/event_types.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/mocks/in_memory_storage.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/mocks/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/msearch.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/msearch.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/registry.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/core/types.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/README.md (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/es_event_stream_client.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/es_event_stream_client_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/es_event_stream_names.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/init/es_event_stream_initializer.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/init/index_template.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/init/mappings.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/integration_tests/es_event_stream_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/types.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/es/util.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/event_stream_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/event_stream_service.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/memory/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/memory/memory_event_stream_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/memory/memory_event_stream_client.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/memory/memory_event_stream_client_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/memory/util.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/tests/event_stream_logger_mock.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/tests/setup_event_stream_service.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/tests/test_event_stream_client.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/tests/util.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/types.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/event_stream/validation.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/all_procedures.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/bulk_get.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/bulk_get.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/create.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/create.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/delete.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/delete.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/get.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/get.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/msearch.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/msearch.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/search.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/search.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/update.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/procedures/update.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/routes/error_wrapper.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/routes/routes.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/rpc_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/rpc_service.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/rpc/types.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/utils/index.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/utils/services_transforms_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/server/utils/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/content_management/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a6d5f85891f62..b0062db1ebc4b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -612,6 +612,7 @@ src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-ma src/platform/packages/shared/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management src/platform/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant src/platform/plugins/shared/console @elastic/kibana-management +src/platform/plugins/shared/content_management @elastic/appex-sharedux src/platform/plugins/shared/dev_tools @elastic/kibana-management src/platform/plugins/shared/es_ui_shared @elastic/kibana-management src/platform/plugins/shared/esql @elastic/kibana-esql @@ -628,7 +629,6 @@ src/plugins/chart_expressions/expression_partition_vis @elastic/kibana-visualiza src/plugins/chart_expressions/expression_tagcloud @elastic/kibana-visualizations src/plugins/chart_expressions/expression_xy @elastic/kibana-visualizations src/plugins/charts @elastic/kibana-visualizations -src/plugins/content_management @elastic/appex-sharedux src/plugins/controls @elastic/kibana-presentation src/plugins/custom_integrations @elastic/fleet src/plugins/dashboard @elastic/kibana-presentation diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 80511095a000f..319bb50d8ebee 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -44,7 +44,7 @@ as uiSettings within the code. |Console provides the user with tools for storing and executing requests against Elasticsearch. -|{kib-repo}blob/{branch}/src/plugins/content_management/README.md[contentManagement] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/content_management/README.md[contentManagement] |The content management plugin provides functionality to manage content in Kibana. diff --git a/package.json b/package.json index 0b62d48e35a04..e253a3976257e 100644 --- a/package.json +++ b/package.json @@ -236,7 +236,7 @@ "@kbn/content-management-favorites-common": "link:packages/content-management/favorites/favorites_common", "@kbn/content-management-favorites-public": "link:packages/content-management/favorites/favorites_public", "@kbn/content-management-favorites-server": "link:packages/content-management/favorites/favorites_server", - "@kbn/content-management-plugin": "link:src/plugins/content_management", + "@kbn/content-management-plugin": "link:src/platform/plugins/shared/content_management", "@kbn/content-management-tabbed-table-list-view": "link:packages/content-management/tabbed_table_list_view", "@kbn/content-management-table-list-view": "link:packages/content-management/table_list_view", "@kbn/content-management-table-list-view-common": "link:packages/content-management/table_list_view_common", diff --git a/src/plugins/content_management/README.md b/src/platform/plugins/shared/content_management/README.md similarity index 87% rename from src/plugins/content_management/README.md rename to src/platform/plugins/shared/content_management/README.md index 94eeb23a50d8f..1715865a54b7b 100644 --- a/src/plugins/content_management/README.md +++ b/src/platform/plugins/shared/content_management/README.md @@ -18,5 +18,5 @@ Integration Tests*, which execute tests against a real Elasticsearch instance. Run integrations tests with: ``` -yarn test:jest_integration src/plugins/content_management +yarn test:jest_integration src/platform/plugins/shared/content_management ``` diff --git a/src/plugins/content_management/common/constants.ts b/src/platform/plugins/shared/content_management/common/constants.ts similarity index 100% rename from src/plugins/content_management/common/constants.ts rename to src/platform/plugins/shared/content_management/common/constants.ts diff --git a/src/plugins/content_management/common/index.ts b/src/platform/plugins/shared/content_management/common/index.ts similarity index 100% rename from src/plugins/content_management/common/index.ts rename to src/platform/plugins/shared/content_management/common/index.ts diff --git a/src/plugins/content_management/common/rpc/bulk_get.ts b/src/platform/plugins/shared/content_management/common/rpc/bulk_get.ts similarity index 100% rename from src/plugins/content_management/common/rpc/bulk_get.ts rename to src/platform/plugins/shared/content_management/common/rpc/bulk_get.ts diff --git a/src/plugins/content_management/common/rpc/common.ts b/src/platform/plugins/shared/content_management/common/rpc/common.ts similarity index 100% rename from src/plugins/content_management/common/rpc/common.ts rename to src/platform/plugins/shared/content_management/common/rpc/common.ts diff --git a/src/plugins/content_management/common/rpc/constants.ts b/src/platform/plugins/shared/content_management/common/rpc/constants.ts similarity index 100% rename from src/plugins/content_management/common/rpc/constants.ts rename to src/platform/plugins/shared/content_management/common/rpc/constants.ts diff --git a/src/plugins/content_management/common/rpc/create.ts b/src/platform/plugins/shared/content_management/common/rpc/create.ts similarity index 100% rename from src/plugins/content_management/common/rpc/create.ts rename to src/platform/plugins/shared/content_management/common/rpc/create.ts diff --git a/src/plugins/content_management/common/rpc/delete.ts b/src/platform/plugins/shared/content_management/common/rpc/delete.ts similarity index 100% rename from src/plugins/content_management/common/rpc/delete.ts rename to src/platform/plugins/shared/content_management/common/rpc/delete.ts diff --git a/src/plugins/content_management/common/rpc/get.ts b/src/platform/plugins/shared/content_management/common/rpc/get.ts similarity index 100% rename from src/plugins/content_management/common/rpc/get.ts rename to src/platform/plugins/shared/content_management/common/rpc/get.ts diff --git a/src/plugins/content_management/common/rpc/index.ts b/src/platform/plugins/shared/content_management/common/rpc/index.ts similarity index 100% rename from src/plugins/content_management/common/rpc/index.ts rename to src/platform/plugins/shared/content_management/common/rpc/index.ts diff --git a/src/plugins/content_management/common/rpc/msearch.ts b/src/platform/plugins/shared/content_management/common/rpc/msearch.ts similarity index 100% rename from src/plugins/content_management/common/rpc/msearch.ts rename to src/platform/plugins/shared/content_management/common/rpc/msearch.ts diff --git a/src/plugins/content_management/common/rpc/rpc.ts b/src/platform/plugins/shared/content_management/common/rpc/rpc.ts similarity index 100% rename from src/plugins/content_management/common/rpc/rpc.ts rename to src/platform/plugins/shared/content_management/common/rpc/rpc.ts diff --git a/src/plugins/content_management/common/rpc/search.ts b/src/platform/plugins/shared/content_management/common/rpc/search.ts similarity index 100% rename from src/plugins/content_management/common/rpc/search.ts rename to src/platform/plugins/shared/content_management/common/rpc/search.ts diff --git a/src/plugins/content_management/common/rpc/types.ts b/src/platform/plugins/shared/content_management/common/rpc/types.ts similarity index 100% rename from src/plugins/content_management/common/rpc/types.ts rename to src/platform/plugins/shared/content_management/common/rpc/types.ts diff --git a/src/plugins/content_management/common/rpc/update.ts b/src/platform/plugins/shared/content_management/common/rpc/update.ts similarity index 100% rename from src/plugins/content_management/common/rpc/update.ts rename to src/platform/plugins/shared/content_management/common/rpc/update.ts diff --git a/src/plugins/content_management/common/schemas.ts b/src/platform/plugins/shared/content_management/common/schemas.ts similarity index 100% rename from src/plugins/content_management/common/schemas.ts rename to src/platform/plugins/shared/content_management/common/schemas.ts diff --git a/src/plugins/content_management/docs/conent_management_landing.mdx b/src/platform/plugins/shared/content_management/docs/conent_management_landing.mdx similarity index 100% rename from src/plugins/content_management/docs/conent_management_landing.mdx rename to src/platform/plugins/shared/content_management/docs/conent_management_landing.mdx diff --git a/src/plugins/content_management/docs/content_onboarding.mdx b/src/platform/plugins/shared/content_management/docs/content_onboarding.mdx similarity index 99% rename from src/plugins/content_management/docs/content_onboarding.mdx rename to src/platform/plugins/shared/content_management/docs/content_onboarding.mdx index f198a720b9878..4a1c065423595 100644 --- a/src/plugins/content_management/docs/content_onboarding.mdx +++ b/src/platform/plugins/shared/content_management/docs/content_onboarding.mdx @@ -236,7 +236,7 @@ Once we have all our TS types defined and our CM ServicesDefinition map, we can /** * Import the map of CM services definitions that we created earlier. */ -import { cmServicesDefinition } from '../../common/content_management/cm_services'; +import { cmServicesDefinition } from '../../../../common/content_management/cm_services'; /** * It is a good practice to not directly exposes the SO document fields, specially the "attributes" object. @@ -465,7 +465,7 @@ This step is optional but it is recommended. Indeed, we could access the CM publ import type { SearchQuery } from '@kbn/content-management-plugin/common'; -import type { MapGetIn, MapGetOut, MapCreateIn, MapCreateOut, ... } from '../../common/content_management'; +import type { MapGetIn, MapGetOut, MapCreateIn, MapCreateOut, ... } from '../../../../common/content_management'; import { getContentManagement } from '../kibana_services'; const get = async (id: string) => { diff --git a/src/plugins/content_management/jest.config.js b/src/platform/plugins/shared/content_management/jest.config.js similarity index 72% rename from src/plugins/content_management/jest.config.js rename to src/platform/plugins/shared/content_management/jest.config.js index b29fe2d56135f..300a0450c4bfd 100644 --- a/src/plugins/content_management/jest.config.js +++ b/src/platform/plugins/shared/content_management/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/content_management'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/content_management', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/content_management'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/content_management', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/content_management/{common,public,server}/**/*.{js,ts,tsx}', + '/src/platform/plugins/shared/content_management/{common,public,server}/**/*.{js,ts,tsx}', ], }; diff --git a/src/plugins/content_management/jest.integration.config.js b/src/platform/plugins/shared/content_management/jest.integration.config.js similarity index 84% rename from src/plugins/content_management/jest.integration.config.js rename to src/platform/plugins/shared/content_management/jest.integration.config.js index e06daebd07142..3a762e67d26ab 100644 --- a/src/plugins/content_management/jest.integration.config.js +++ b/src/platform/plugins/shared/content_management/jest.integration.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_integration', - rootDir: '../../..', - roots: ['/src/plugins/content_management'], + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/content_management'], }; diff --git a/src/plugins/content_management/kibana.jsonc b/src/platform/plugins/shared/content_management/kibana.jsonc similarity index 100% rename from src/plugins/content_management/kibana.jsonc rename to src/platform/plugins/shared/content_management/kibana.jsonc diff --git a/src/plugins/content_management/public/content_client/content_client.test.ts b/src/platform/plugins/shared/content_management/public/content_client/content_client.test.ts similarity index 100% rename from src/plugins/content_management/public/content_client/content_client.test.ts rename to src/platform/plugins/shared/content_management/public/content_client/content_client.test.ts diff --git a/src/plugins/content_management/public/content_client/content_client.tsx b/src/platform/plugins/shared/content_management/public/content_client/content_client.tsx similarity index 100% rename from src/plugins/content_management/public/content_client/content_client.tsx rename to src/platform/plugins/shared/content_management/public/content_client/content_client.tsx diff --git a/src/plugins/content_management/public/content_client/content_client_context.tsx b/src/platform/plugins/shared/content_management/public/content_client/content_client_context.tsx similarity index 100% rename from src/plugins/content_management/public/content_client/content_client_context.tsx rename to src/platform/plugins/shared/content_management/public/content_client/content_client_context.tsx diff --git a/src/plugins/content_management/public/content_client/content_client_mutation_hooks.test.tsx b/src/platform/plugins/shared/content_management/public/content_client/content_client_mutation_hooks.test.tsx similarity index 100% rename from src/plugins/content_management/public/content_client/content_client_mutation_hooks.test.tsx rename to src/platform/plugins/shared/content_management/public/content_client/content_client_mutation_hooks.test.tsx diff --git a/src/plugins/content_management/public/content_client/content_client_mutation_hooks.tsx b/src/platform/plugins/shared/content_management/public/content_client/content_client_mutation_hooks.tsx similarity index 100% rename from src/plugins/content_management/public/content_client/content_client_mutation_hooks.tsx rename to src/platform/plugins/shared/content_management/public/content_client/content_client_mutation_hooks.tsx diff --git a/src/plugins/content_management/public/content_client/content_client_query_hooks.test.tsx b/src/platform/plugins/shared/content_management/public/content_client/content_client_query_hooks.test.tsx similarity index 100% rename from src/plugins/content_management/public/content_client/content_client_query_hooks.test.tsx rename to src/platform/plugins/shared/content_management/public/content_client/content_client_query_hooks.test.tsx diff --git a/src/plugins/content_management/public/content_client/content_client_query_hooks.tsx b/src/platform/plugins/shared/content_management/public/content_client/content_client_query_hooks.tsx similarity index 100% rename from src/plugins/content_management/public/content_client/content_client_query_hooks.tsx rename to src/platform/plugins/shared/content_management/public/content_client/content_client_query_hooks.tsx diff --git a/src/plugins/content_management/public/content_client/index.ts b/src/platform/plugins/shared/content_management/public/content_client/index.ts similarity index 100% rename from src/plugins/content_management/public/content_client/index.ts rename to src/platform/plugins/shared/content_management/public/content_client/index.ts diff --git a/src/plugins/content_management/public/content_client/query_observable.ts b/src/platform/plugins/shared/content_management/public/content_client/query_observable.ts similarity index 100% rename from src/plugins/content_management/public/content_client/query_observable.ts rename to src/platform/plugins/shared/content_management/public/content_client/query_observable.ts diff --git a/src/plugins/content_management/public/crud_client/crud_client.mock.ts b/src/platform/plugins/shared/content_management/public/crud_client/crud_client.mock.ts similarity index 100% rename from src/plugins/content_management/public/crud_client/crud_client.mock.ts rename to src/platform/plugins/shared/content_management/public/crud_client/crud_client.mock.ts diff --git a/src/plugins/content_management/public/crud_client/crud_client.ts b/src/platform/plugins/shared/content_management/public/crud_client/crud_client.ts similarity index 100% rename from src/plugins/content_management/public/crud_client/crud_client.ts rename to src/platform/plugins/shared/content_management/public/crud_client/crud_client.ts diff --git a/src/plugins/content_management/public/crud_client/index.ts b/src/platform/plugins/shared/content_management/public/crud_client/index.ts similarity index 100% rename from src/plugins/content_management/public/crud_client/index.ts rename to src/platform/plugins/shared/content_management/public/crud_client/index.ts diff --git a/src/plugins/content_management/public/index.ts b/src/platform/plugins/shared/content_management/public/index.ts similarity index 100% rename from src/plugins/content_management/public/index.ts rename to src/platform/plugins/shared/content_management/public/index.ts diff --git a/src/plugins/content_management/public/mocks.ts b/src/platform/plugins/shared/content_management/public/mocks.ts similarity index 100% rename from src/plugins/content_management/public/mocks.ts rename to src/platform/plugins/shared/content_management/public/mocks.ts diff --git a/src/plugins/content_management/public/plugin.ts b/src/platform/plugins/shared/content_management/public/plugin.ts similarity index 100% rename from src/plugins/content_management/public/plugin.ts rename to src/platform/plugins/shared/content_management/public/plugin.ts diff --git a/src/plugins/content_management/public/registry/content_type.test.ts b/src/platform/plugins/shared/content_management/public/registry/content_type.test.ts similarity index 100% rename from src/plugins/content_management/public/registry/content_type.test.ts rename to src/platform/plugins/shared/content_management/public/registry/content_type.test.ts diff --git a/src/plugins/content_management/public/registry/content_type.ts b/src/platform/plugins/shared/content_management/public/registry/content_type.ts similarity index 100% rename from src/plugins/content_management/public/registry/content_type.ts rename to src/platform/plugins/shared/content_management/public/registry/content_type.ts diff --git a/src/plugins/content_management/public/registry/content_type_definition.ts b/src/platform/plugins/shared/content_management/public/registry/content_type_definition.ts similarity index 100% rename from src/plugins/content_management/public/registry/content_type_definition.ts rename to src/platform/plugins/shared/content_management/public/registry/content_type_definition.ts diff --git a/src/plugins/content_management/public/registry/index.ts b/src/platform/plugins/shared/content_management/public/registry/index.ts similarity index 100% rename from src/plugins/content_management/public/registry/index.ts rename to src/platform/plugins/shared/content_management/public/registry/index.ts diff --git a/src/plugins/content_management/public/registry/registry.test.ts b/src/platform/plugins/shared/content_management/public/registry/registry.test.ts similarity index 100% rename from src/plugins/content_management/public/registry/registry.test.ts rename to src/platform/plugins/shared/content_management/public/registry/registry.test.ts diff --git a/src/plugins/content_management/public/registry/registry.ts b/src/platform/plugins/shared/content_management/public/registry/registry.ts similarity index 100% rename from src/plugins/content_management/public/registry/registry.ts rename to src/platform/plugins/shared/content_management/public/registry/registry.ts diff --git a/src/plugins/content_management/public/rpc_client/index.ts b/src/platform/plugins/shared/content_management/public/rpc_client/index.ts similarity index 100% rename from src/plugins/content_management/public/rpc_client/index.ts rename to src/platform/plugins/shared/content_management/public/rpc_client/index.ts diff --git a/src/plugins/content_management/public/rpc_client/rpc_client.test.ts b/src/platform/plugins/shared/content_management/public/rpc_client/rpc_client.test.ts similarity index 100% rename from src/plugins/content_management/public/rpc_client/rpc_client.test.ts rename to src/platform/plugins/shared/content_management/public/rpc_client/rpc_client.test.ts diff --git a/src/plugins/content_management/public/rpc_client/rpc_client.ts b/src/platform/plugins/shared/content_management/public/rpc_client/rpc_client.ts similarity index 100% rename from src/plugins/content_management/public/rpc_client/rpc_client.ts rename to src/platform/plugins/shared/content_management/public/rpc_client/rpc_client.ts diff --git a/src/plugins/content_management/public/types.ts b/src/platform/plugins/shared/content_management/public/types.ts similarity index 100% rename from src/plugins/content_management/public/types.ts rename to src/platform/plugins/shared/content_management/public/types.ts diff --git a/src/plugins/content_management/server/content_client/content_client.test.ts b/src/platform/plugins/shared/content_management/server/content_client/content_client.test.ts similarity index 100% rename from src/plugins/content_management/server/content_client/content_client.test.ts rename to src/platform/plugins/shared/content_management/server/content_client/content_client.test.ts diff --git a/src/plugins/content_management/server/content_client/content_client.ts b/src/platform/plugins/shared/content_management/server/content_client/content_client.ts similarity index 100% rename from src/plugins/content_management/server/content_client/content_client.ts rename to src/platform/plugins/shared/content_management/server/content_client/content_client.ts diff --git a/src/plugins/content_management/server/content_client/content_client_factory.ts b/src/platform/plugins/shared/content_management/server/content_client/content_client_factory.ts similarity index 100% rename from src/plugins/content_management/server/content_client/content_client_factory.ts rename to src/platform/plugins/shared/content_management/server/content_client/content_client_factory.ts diff --git a/src/plugins/content_management/server/content_client/index.ts b/src/platform/plugins/shared/content_management/server/content_client/index.ts similarity index 100% rename from src/plugins/content_management/server/content_client/index.ts rename to src/platform/plugins/shared/content_management/server/content_client/index.ts diff --git a/src/plugins/content_management/server/content_client/types.ts b/src/platform/plugins/shared/content_management/server/content_client/types.ts similarity index 100% rename from src/plugins/content_management/server/content_client/types.ts rename to src/platform/plugins/shared/content_management/server/content_client/types.ts diff --git a/src/plugins/content_management/server/core/content_type.ts b/src/platform/plugins/shared/content_management/server/core/content_type.ts similarity index 100% rename from src/plugins/content_management/server/core/content_type.ts rename to src/platform/plugins/shared/content_management/server/core/content_type.ts diff --git a/src/plugins/content_management/server/core/core.test.ts b/src/platform/plugins/shared/content_management/server/core/core.test.ts similarity index 100% rename from src/plugins/content_management/server/core/core.test.ts rename to src/platform/plugins/shared/content_management/server/core/core.test.ts diff --git a/src/plugins/content_management/server/core/core.ts b/src/platform/plugins/shared/content_management/server/core/core.ts similarity index 100% rename from src/plugins/content_management/server/core/core.ts rename to src/platform/plugins/shared/content_management/server/core/core.ts diff --git a/src/plugins/content_management/server/core/crud.ts b/src/platform/plugins/shared/content_management/server/core/crud.ts similarity index 100% rename from src/plugins/content_management/server/core/crud.ts rename to src/platform/plugins/shared/content_management/server/core/crud.ts diff --git a/src/plugins/content_management/server/core/event_bus.ts b/src/platform/plugins/shared/content_management/server/core/event_bus.ts similarity index 100% rename from src/plugins/content_management/server/core/event_bus.ts rename to src/platform/plugins/shared/content_management/server/core/event_bus.ts diff --git a/src/plugins/content_management/server/core/event_types.ts b/src/platform/plugins/shared/content_management/server/core/event_types.ts similarity index 100% rename from src/plugins/content_management/server/core/event_types.ts rename to src/platform/plugins/shared/content_management/server/core/event_types.ts diff --git a/src/plugins/content_management/server/core/index.ts b/src/platform/plugins/shared/content_management/server/core/index.ts similarity index 100% rename from src/plugins/content_management/server/core/index.ts rename to src/platform/plugins/shared/content_management/server/core/index.ts diff --git a/src/plugins/content_management/server/core/mocks/in_memory_storage.ts b/src/platform/plugins/shared/content_management/server/core/mocks/in_memory_storage.ts similarity index 100% rename from src/plugins/content_management/server/core/mocks/in_memory_storage.ts rename to src/platform/plugins/shared/content_management/server/core/mocks/in_memory_storage.ts diff --git a/src/plugins/content_management/server/core/mocks/index.ts b/src/platform/plugins/shared/content_management/server/core/mocks/index.ts similarity index 100% rename from src/plugins/content_management/server/core/mocks/index.ts rename to src/platform/plugins/shared/content_management/server/core/mocks/index.ts diff --git a/src/plugins/content_management/server/core/msearch.test.ts b/src/platform/plugins/shared/content_management/server/core/msearch.test.ts similarity index 100% rename from src/plugins/content_management/server/core/msearch.test.ts rename to src/platform/plugins/shared/content_management/server/core/msearch.test.ts diff --git a/src/plugins/content_management/server/core/msearch.ts b/src/platform/plugins/shared/content_management/server/core/msearch.ts similarity index 100% rename from src/plugins/content_management/server/core/msearch.ts rename to src/platform/plugins/shared/content_management/server/core/msearch.ts diff --git a/src/plugins/content_management/server/core/registry.ts b/src/platform/plugins/shared/content_management/server/core/registry.ts similarity index 100% rename from src/plugins/content_management/server/core/registry.ts rename to src/platform/plugins/shared/content_management/server/core/registry.ts diff --git a/src/plugins/content_management/server/core/types.ts b/src/platform/plugins/shared/content_management/server/core/types.ts similarity index 100% rename from src/plugins/content_management/server/core/types.ts rename to src/platform/plugins/shared/content_management/server/core/types.ts diff --git a/src/plugins/content_management/server/event_stream/README.md b/src/platform/plugins/shared/content_management/server/event_stream/README.md similarity index 100% rename from src/plugins/content_management/server/event_stream/README.md rename to src/platform/plugins/shared/content_management/server/event_stream/README.md diff --git a/src/plugins/content_management/server/event_stream/es/es_event_stream_client.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/es_event_stream_client.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/es_event_stream_client.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/es_event_stream_client.ts diff --git a/src/plugins/content_management/server/event_stream/es/es_event_stream_client_factory.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/es_event_stream_client_factory.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/es_event_stream_client_factory.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/es_event_stream_client_factory.ts diff --git a/src/plugins/content_management/server/event_stream/es/es_event_stream_names.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/es_event_stream_names.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/es_event_stream_names.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/es_event_stream_names.ts diff --git a/src/plugins/content_management/server/event_stream/es/index.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/index.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/index.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/index.ts diff --git a/src/plugins/content_management/server/event_stream/es/init/es_event_stream_initializer.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/init/es_event_stream_initializer.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/init/es_event_stream_initializer.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/init/es_event_stream_initializer.ts diff --git a/src/plugins/content_management/server/event_stream/es/init/index_template.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/init/index_template.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/init/index_template.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/init/index_template.ts diff --git a/src/plugins/content_management/server/event_stream/es/init/mappings.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/init/mappings.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/init/mappings.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/init/mappings.ts diff --git a/src/plugins/content_management/server/event_stream/es/integration_tests/es_event_stream_client.test.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/integration_tests/es_event_stream_client.test.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/integration_tests/es_event_stream_client.test.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/integration_tests/es_event_stream_client.test.ts diff --git a/src/plugins/content_management/server/event_stream/es/types.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/types.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/types.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/types.ts diff --git a/src/plugins/content_management/server/event_stream/es/util.ts b/src/platform/plugins/shared/content_management/server/event_stream/es/util.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/es/util.ts rename to src/platform/plugins/shared/content_management/server/event_stream/es/util.ts diff --git a/src/plugins/content_management/server/event_stream/event_stream_service.test.ts b/src/platform/plugins/shared/content_management/server/event_stream/event_stream_service.test.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/event_stream_service.test.ts rename to src/platform/plugins/shared/content_management/server/event_stream/event_stream_service.test.ts diff --git a/src/plugins/content_management/server/event_stream/event_stream_service.ts b/src/platform/plugins/shared/content_management/server/event_stream/event_stream_service.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/event_stream_service.ts rename to src/platform/plugins/shared/content_management/server/event_stream/event_stream_service.ts diff --git a/src/plugins/content_management/server/event_stream/index.ts b/src/platform/plugins/shared/content_management/server/event_stream/index.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/index.ts rename to src/platform/plugins/shared/content_management/server/event_stream/index.ts diff --git a/src/plugins/content_management/server/event_stream/memory/index.ts b/src/platform/plugins/shared/content_management/server/event_stream/memory/index.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/memory/index.ts rename to src/platform/plugins/shared/content_management/server/event_stream/memory/index.ts diff --git a/src/plugins/content_management/server/event_stream/memory/memory_event_stream_client.test.ts b/src/platform/plugins/shared/content_management/server/event_stream/memory/memory_event_stream_client.test.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/memory/memory_event_stream_client.test.ts rename to src/platform/plugins/shared/content_management/server/event_stream/memory/memory_event_stream_client.test.ts diff --git a/src/plugins/content_management/server/event_stream/memory/memory_event_stream_client.ts b/src/platform/plugins/shared/content_management/server/event_stream/memory/memory_event_stream_client.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/memory/memory_event_stream_client.ts rename to src/platform/plugins/shared/content_management/server/event_stream/memory/memory_event_stream_client.ts diff --git a/src/plugins/content_management/server/event_stream/memory/memory_event_stream_client_factory.ts b/src/platform/plugins/shared/content_management/server/event_stream/memory/memory_event_stream_client_factory.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/memory/memory_event_stream_client_factory.ts rename to src/platform/plugins/shared/content_management/server/event_stream/memory/memory_event_stream_client_factory.ts diff --git a/src/plugins/content_management/server/event_stream/memory/util.ts b/src/platform/plugins/shared/content_management/server/event_stream/memory/util.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/memory/util.ts rename to src/platform/plugins/shared/content_management/server/event_stream/memory/util.ts diff --git a/src/plugins/content_management/server/event_stream/tests/event_stream_logger_mock.ts b/src/platform/plugins/shared/content_management/server/event_stream/tests/event_stream_logger_mock.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/tests/event_stream_logger_mock.ts rename to src/platform/plugins/shared/content_management/server/event_stream/tests/event_stream_logger_mock.ts diff --git a/src/plugins/content_management/server/event_stream/tests/setup_event_stream_service.ts b/src/platform/plugins/shared/content_management/server/event_stream/tests/setup_event_stream_service.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/tests/setup_event_stream_service.ts rename to src/platform/plugins/shared/content_management/server/event_stream/tests/setup_event_stream_service.ts diff --git a/src/plugins/content_management/server/event_stream/tests/test_event_stream_client.ts b/src/platform/plugins/shared/content_management/server/event_stream/tests/test_event_stream_client.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/tests/test_event_stream_client.ts rename to src/platform/plugins/shared/content_management/server/event_stream/tests/test_event_stream_client.ts diff --git a/src/plugins/content_management/server/event_stream/tests/util.ts b/src/platform/plugins/shared/content_management/server/event_stream/tests/util.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/tests/util.ts rename to src/platform/plugins/shared/content_management/server/event_stream/tests/util.ts diff --git a/src/plugins/content_management/server/event_stream/types.ts b/src/platform/plugins/shared/content_management/server/event_stream/types.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/types.ts rename to src/platform/plugins/shared/content_management/server/event_stream/types.ts diff --git a/src/plugins/content_management/server/event_stream/validation.ts b/src/platform/plugins/shared/content_management/server/event_stream/validation.ts similarity index 100% rename from src/plugins/content_management/server/event_stream/validation.ts rename to src/platform/plugins/shared/content_management/server/event_stream/validation.ts diff --git a/src/plugins/content_management/server/index.ts b/src/platform/plugins/shared/content_management/server/index.ts similarity index 100% rename from src/plugins/content_management/server/index.ts rename to src/platform/plugins/shared/content_management/server/index.ts diff --git a/src/plugins/content_management/server/plugin.test.ts b/src/platform/plugins/shared/content_management/server/plugin.test.ts similarity index 100% rename from src/plugins/content_management/server/plugin.test.ts rename to src/platform/plugins/shared/content_management/server/plugin.test.ts diff --git a/src/plugins/content_management/server/plugin.ts b/src/platform/plugins/shared/content_management/server/plugin.ts similarity index 100% rename from src/plugins/content_management/server/plugin.ts rename to src/platform/plugins/shared/content_management/server/plugin.ts diff --git a/src/plugins/content_management/server/rpc/index.ts b/src/platform/plugins/shared/content_management/server/rpc/index.ts similarity index 100% rename from src/plugins/content_management/server/rpc/index.ts rename to src/platform/plugins/shared/content_management/server/rpc/index.ts diff --git a/src/plugins/content_management/server/rpc/procedures/all_procedures.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/all_procedures.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/all_procedures.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/all_procedures.ts diff --git a/src/plugins/content_management/server/rpc/procedures/bulk_get.test.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/bulk_get.test.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/bulk_get.test.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/bulk_get.test.ts diff --git a/src/plugins/content_management/server/rpc/procedures/bulk_get.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/bulk_get.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/bulk_get.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/bulk_get.ts diff --git a/src/plugins/content_management/server/rpc/procedures/create.test.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/create.test.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/create.test.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/create.test.ts diff --git a/src/plugins/content_management/server/rpc/procedures/create.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/create.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/create.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/create.ts diff --git a/src/plugins/content_management/server/rpc/procedures/delete.test.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/delete.test.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/delete.test.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/delete.test.ts diff --git a/src/plugins/content_management/server/rpc/procedures/delete.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/delete.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/delete.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/delete.ts diff --git a/src/plugins/content_management/server/rpc/procedures/get.test.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/get.test.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/get.test.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/get.test.ts diff --git a/src/plugins/content_management/server/rpc/procedures/get.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/get.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/get.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/get.ts diff --git a/src/plugins/content_management/server/rpc/procedures/index.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/index.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/index.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/index.ts diff --git a/src/plugins/content_management/server/rpc/procedures/msearch.test.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/msearch.test.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/msearch.test.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/msearch.test.ts diff --git a/src/plugins/content_management/server/rpc/procedures/msearch.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/msearch.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/msearch.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/msearch.ts diff --git a/src/plugins/content_management/server/rpc/procedures/search.test.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/search.test.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/search.test.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/search.test.ts diff --git a/src/plugins/content_management/server/rpc/procedures/search.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/search.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/search.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/search.ts diff --git a/src/plugins/content_management/server/rpc/procedures/update.test.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/update.test.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/update.test.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/update.test.ts diff --git a/src/plugins/content_management/server/rpc/procedures/update.ts b/src/platform/plugins/shared/content_management/server/rpc/procedures/update.ts similarity index 100% rename from src/plugins/content_management/server/rpc/procedures/update.ts rename to src/platform/plugins/shared/content_management/server/rpc/procedures/update.ts diff --git a/src/plugins/content_management/server/rpc/routes/error_wrapper.ts b/src/platform/plugins/shared/content_management/server/rpc/routes/error_wrapper.ts similarity index 100% rename from src/plugins/content_management/server/rpc/routes/error_wrapper.ts rename to src/platform/plugins/shared/content_management/server/rpc/routes/error_wrapper.ts diff --git a/src/plugins/content_management/server/rpc/routes/index.ts b/src/platform/plugins/shared/content_management/server/rpc/routes/index.ts similarity index 100% rename from src/plugins/content_management/server/rpc/routes/index.ts rename to src/platform/plugins/shared/content_management/server/rpc/routes/index.ts diff --git a/src/plugins/content_management/server/rpc/routes/routes.ts b/src/platform/plugins/shared/content_management/server/rpc/routes/routes.ts similarity index 100% rename from src/plugins/content_management/server/rpc/routes/routes.ts rename to src/platform/plugins/shared/content_management/server/rpc/routes/routes.ts diff --git a/src/plugins/content_management/server/rpc/rpc_service.test.ts b/src/platform/plugins/shared/content_management/server/rpc/rpc_service.test.ts similarity index 100% rename from src/plugins/content_management/server/rpc/rpc_service.test.ts rename to src/platform/plugins/shared/content_management/server/rpc/rpc_service.test.ts diff --git a/src/plugins/content_management/server/rpc/rpc_service.ts b/src/platform/plugins/shared/content_management/server/rpc/rpc_service.ts similarity index 100% rename from src/plugins/content_management/server/rpc/rpc_service.ts rename to src/platform/plugins/shared/content_management/server/rpc/rpc_service.ts diff --git a/src/plugins/content_management/server/rpc/types.ts b/src/platform/plugins/shared/content_management/server/rpc/types.ts similarity index 100% rename from src/plugins/content_management/server/rpc/types.ts rename to src/platform/plugins/shared/content_management/server/rpc/types.ts diff --git a/src/plugins/content_management/server/types.ts b/src/platform/plugins/shared/content_management/server/types.ts similarity index 100% rename from src/plugins/content_management/server/types.ts rename to src/platform/plugins/shared/content_management/server/types.ts diff --git a/src/plugins/content_management/server/utils/index.ts b/src/platform/plugins/shared/content_management/server/utils/index.ts similarity index 100% rename from src/plugins/content_management/server/utils/index.ts rename to src/platform/plugins/shared/content_management/server/utils/index.ts diff --git a/src/plugins/content_management/server/utils/services_transforms_factory.ts b/src/platform/plugins/shared/content_management/server/utils/services_transforms_factory.ts similarity index 100% rename from src/plugins/content_management/server/utils/services_transforms_factory.ts rename to src/platform/plugins/shared/content_management/server/utils/services_transforms_factory.ts diff --git a/src/plugins/content_management/server/utils/utils.ts b/src/platform/plugins/shared/content_management/server/utils/utils.ts similarity index 100% rename from src/plugins/content_management/server/utils/utils.ts rename to src/platform/plugins/shared/content_management/server/utils/utils.ts diff --git a/src/plugins/content_management/tsconfig.json b/src/platform/plugins/shared/content_management/tsconfig.json similarity index 93% rename from src/plugins/content_management/tsconfig.json rename to src/platform/plugins/shared/content_management/tsconfig.json index bde3ff1334cbb..e02852e8fad3d 100644 --- a/src/plugins/content_management/tsconfig.json +++ b/src/platform/plugins/shared/content_management/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 10c2066c09866..6573e37441cf8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -214,8 +214,8 @@ "@kbn/content-management-favorites-public/*": ["packages/content-management/favorites/favorites_public/*"], "@kbn/content-management-favorites-server": ["packages/content-management/favorites/favorites_server"], "@kbn/content-management-favorites-server/*": ["packages/content-management/favorites/favorites_server/*"], - "@kbn/content-management-plugin": ["src/plugins/content_management"], - "@kbn/content-management-plugin/*": ["src/plugins/content_management/*"], + "@kbn/content-management-plugin": ["src/platform/plugins/shared/content_management"], + "@kbn/content-management-plugin/*": ["src/platform/plugins/shared/content_management/*"], "@kbn/content-management-tabbed-table-list-view": ["packages/content-management/tabbed_table_list_view"], "@kbn/content-management-tabbed-table-list-view/*": ["packages/content-management/tabbed_table_list_view/*"], "@kbn/content-management-table-list-view": ["packages/content-management/table_list_view"], diff --git a/yarn.lock b/yarn.lock index 64471fa3dd692..33ac10cdf0523 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4245,7 +4245,7 @@ version "0.0.0" uid "" -"@kbn/content-management-plugin@link:src/plugins/content_management": +"@kbn/content-management-plugin@link:src/platform/plugins/shared/content_management": version "0.0.0" uid "" From f9a24a56e4c37f8eca8e6544a2eea19f742b87c1 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 14:56:20 +0100 Subject: [PATCH 02/43] Relocating module `@kbn/custom-branding-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../plugins/private}/custom_branding/README.md | 0 .../custom_branding/architecture_diagram.png | Bin .../private}/custom_branding/common/constants.ts | 0 .../private}/custom_branding/common/types.ts | 0 .../plugins/private}/custom_branding/kibana.jsonc | 0 .../private}/custom_branding/public/index.ts | 0 .../private}/custom_branding/public/plugin.ts | 0 .../private}/custom_branding/public/types.ts | 0 .../private}/custom_branding/server/index.ts | 0 .../private}/custom_branding/server/plugin.ts | 0 .../private}/custom_branding/server/routes/index.ts | 0 .../private}/custom_branding/server/routes/info.ts | 0 .../private}/custom_branding/server/types.ts | 0 .../private}/custom_branding/server/ui_settings.ts | 0 .../plugins/private}/custom_branding/tsconfig.json | 2 +- yarn.lock | 2 +- 21 files changed, 8 insertions(+), 8 deletions(-) rename x-pack/{plugins => platform/plugins/private}/custom_branding/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/architecture_diagram.png (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/common/constants.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/server/routes/info.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/server/ui_settings.ts (100%) rename x-pack/{plugins => platform/plugins/private}/custom_branding/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b0062db1ebc4b..7b84a2a5be5f7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -840,6 +840,7 @@ x-pack/platform/packages/shared/ml/trained_models_utils @elastic/ml-ui x-pack/platform/packages/shared/observability/alerting_rule_utils @elastic/obs-ux-management-team x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration @elastic/kibana-management x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management +x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux 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/grokdebugger @elastic/kibana-management @@ -876,7 +877,6 @@ x-pack/plugins/cloud_integrations/cloud_chat @elastic/kibana-core 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/dashboard_enhanced @elastic/kibana-presentation x-pack/plugins/data_quality @elastic/obs-ux-logs-team x-pack/plugins/discover_enhanced @elastic/kibana-data-discovery diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 319bb50d8ebee..09df4fe2145b1 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -525,7 +525,7 @@ This plugin no-longer exposes any evaluation APIs. Refer to Date: Thu, 19 Dec 2024 14:57:52 +0100 Subject: [PATCH 03/43] Relocating module `@kbn/files-management-plugin` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/private}/files_management/README.md | 0 .../plugins/private}/files_management/common/index.ts | 0 .../plugins/private}/files_management/kibana.jsonc | 0 .../plugins/private}/files_management/public/app.tsx | 0 .../files_management/public/components/diagnostics_flyout.tsx | 0 .../files_management/public/components/empty_prompt.tsx | 0 .../files_management/public/components/file_flyout.tsx | 0 .../private}/files_management/public/components/index.ts | 0 .../plugins/private}/files_management/public/context.tsx | 0 .../plugins/private}/files_management/public/i18n_texts.ts | 0 .../plugins/private}/files_management/public/index.ts | 0 .../files_management/public/mount_management_section.tsx | 0 .../plugins/private}/files_management/public/plugin.ts | 0 .../plugins/private}/files_management/public/types.ts | 0 .../plugins/private}/files_management/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 8 insertions(+), 8 deletions(-) rename src/{plugins => platform/plugins/private}/files_management/README.md (100%) rename src/{plugins => platform/plugins/private}/files_management/common/index.ts (100%) rename src/{plugins => platform/plugins/private}/files_management/kibana.jsonc (100%) rename src/{plugins => platform/plugins/private}/files_management/public/app.tsx (100%) rename src/{plugins => platform/plugins/private}/files_management/public/components/diagnostics_flyout.tsx (100%) rename src/{plugins => platform/plugins/private}/files_management/public/components/empty_prompt.tsx (100%) rename src/{plugins => platform/plugins/private}/files_management/public/components/file_flyout.tsx (100%) rename src/{plugins => platform/plugins/private}/files_management/public/components/index.ts (100%) rename src/{plugins => platform/plugins/private}/files_management/public/context.tsx (100%) rename src/{plugins => platform/plugins/private}/files_management/public/i18n_texts.ts (100%) rename src/{plugins => platform/plugins/private}/files_management/public/index.ts (100%) rename src/{plugins => platform/plugins/private}/files_management/public/mount_management_section.tsx (100%) rename src/{plugins => platform/plugins/private}/files_management/public/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/files_management/public/types.ts (100%) rename src/{plugins => platform/plugins/private}/files_management/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7b84a2a5be5f7..25c3c17eb9e9a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -610,6 +610,7 @@ src/platform/packages/shared/kbn-typed-react-router-config @elastic/obs-knowledg src/platform/packages/shared/kbn-unsaved-changes-prompt @elastic/kibana-management src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-management src/platform/packages/shared/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management +src/platform/plugins/private/files_management @elastic/appex-sharedux src/platform/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant src/platform/plugins/shared/console @elastic/kibana-management src/platform/plugins/shared/content_management @elastic/appex-sharedux @@ -651,7 +652,6 @@ src/plugins/expression_shape @elastic/kibana-presentation 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 src/plugins/guided_onboarding @elastic/appex-sharedux src/plugins/home @elastic/appex-sharedux diff --git a/.i18nrc.json b/.i18nrc.json index 0e167c2b08b54..40ab8daf116cd 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -61,7 +61,7 @@ "fieldUtils": "packages/kbn-field-utils", "fieldFormats": "src/plugins/field_formats", "files": "src/plugins/files", - "filesManagement": "src/plugins/files_management", + "filesManagement": "src/platform/plugins/private/files_management", "flot": "packages/kbn-flot-charts/lib", "generateCsv": "packages/kbn-generate-csv", "grouping": "packages/kbn-grouping/src", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 09df4fe2145b1..62006ad479463 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -204,7 +204,7 @@ for use in their own application. |The files service provides functionality to manage, retrieve, share files in Kibana. -|{kib-repo}blob/{branch}/src/plugins/files_management/README.md[filesManagement] +|{kib-repo}blob/{branch}/src/platform/plugins/private/files_management/README.md[filesManagement] |Minimal interface for admins to manage files in Kibana. diff --git a/package.json b/package.json index a1c9dbb32db6b..b9076c71e203f 100644 --- a/package.json +++ b/package.json @@ -535,7 +535,7 @@ "@kbn/fields-metadata-plugin": "link:x-pack/plugins/fields_metadata", "@kbn/file-upload-plugin": "link:x-pack/plugins/file_upload", "@kbn/files-example-plugin": "link:examples/files_example", - "@kbn/files-management-plugin": "link:src/plugins/files_management", + "@kbn/files-management-plugin": "link:src/platform/plugins/private/files_management", "@kbn/files-plugin": "link:src/plugins/files", "@kbn/fleet-plugin": "link:x-pack/plugins/fleet", "@kbn/flot-charts": "link:packages/kbn-flot-charts", diff --git a/src/plugins/files_management/README.md b/src/platform/plugins/private/files_management/README.md similarity index 100% rename from src/plugins/files_management/README.md rename to src/platform/plugins/private/files_management/README.md diff --git a/src/plugins/files_management/common/index.ts b/src/platform/plugins/private/files_management/common/index.ts similarity index 100% rename from src/plugins/files_management/common/index.ts rename to src/platform/plugins/private/files_management/common/index.ts diff --git a/src/plugins/files_management/kibana.jsonc b/src/platform/plugins/private/files_management/kibana.jsonc similarity index 100% rename from src/plugins/files_management/kibana.jsonc rename to src/platform/plugins/private/files_management/kibana.jsonc diff --git a/src/plugins/files_management/public/app.tsx b/src/platform/plugins/private/files_management/public/app.tsx similarity index 100% rename from src/plugins/files_management/public/app.tsx rename to src/platform/plugins/private/files_management/public/app.tsx diff --git a/src/plugins/files_management/public/components/diagnostics_flyout.tsx b/src/platform/plugins/private/files_management/public/components/diagnostics_flyout.tsx similarity index 100% rename from src/plugins/files_management/public/components/diagnostics_flyout.tsx rename to src/platform/plugins/private/files_management/public/components/diagnostics_flyout.tsx diff --git a/src/plugins/files_management/public/components/empty_prompt.tsx b/src/platform/plugins/private/files_management/public/components/empty_prompt.tsx similarity index 100% rename from src/plugins/files_management/public/components/empty_prompt.tsx rename to src/platform/plugins/private/files_management/public/components/empty_prompt.tsx diff --git a/src/plugins/files_management/public/components/file_flyout.tsx b/src/platform/plugins/private/files_management/public/components/file_flyout.tsx similarity index 100% rename from src/plugins/files_management/public/components/file_flyout.tsx rename to src/platform/plugins/private/files_management/public/components/file_flyout.tsx diff --git a/src/plugins/files_management/public/components/index.ts b/src/platform/plugins/private/files_management/public/components/index.ts similarity index 100% rename from src/plugins/files_management/public/components/index.ts rename to src/platform/plugins/private/files_management/public/components/index.ts diff --git a/src/plugins/files_management/public/context.tsx b/src/platform/plugins/private/files_management/public/context.tsx similarity index 100% rename from src/plugins/files_management/public/context.tsx rename to src/platform/plugins/private/files_management/public/context.tsx diff --git a/src/plugins/files_management/public/i18n_texts.ts b/src/platform/plugins/private/files_management/public/i18n_texts.ts similarity index 100% rename from src/plugins/files_management/public/i18n_texts.ts rename to src/platform/plugins/private/files_management/public/i18n_texts.ts diff --git a/src/plugins/files_management/public/index.ts b/src/platform/plugins/private/files_management/public/index.ts similarity index 100% rename from src/plugins/files_management/public/index.ts rename to src/platform/plugins/private/files_management/public/index.ts diff --git a/src/plugins/files_management/public/mount_management_section.tsx b/src/platform/plugins/private/files_management/public/mount_management_section.tsx similarity index 100% rename from src/plugins/files_management/public/mount_management_section.tsx rename to src/platform/plugins/private/files_management/public/mount_management_section.tsx diff --git a/src/plugins/files_management/public/plugin.ts b/src/platform/plugins/private/files_management/public/plugin.ts similarity index 100% rename from src/plugins/files_management/public/plugin.ts rename to src/platform/plugins/private/files_management/public/plugin.ts diff --git a/src/plugins/files_management/public/types.ts b/src/platform/plugins/private/files_management/public/types.ts similarity index 100% rename from src/plugins/files_management/public/types.ts rename to src/platform/plugins/private/files_management/public/types.ts diff --git a/src/plugins/files_management/tsconfig.json b/src/platform/plugins/private/files_management/tsconfig.json similarity index 91% rename from src/plugins/files_management/tsconfig.json rename to src/platform/plugins/private/files_management/tsconfig.json index ef899289bc42b..04419bce06e79 100644 --- a/src/plugins/files_management/tsconfig.json +++ b/src/platform/plugins/private/files_management/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 44aed1c424c6c..5898f016ee8af 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -960,8 +960,8 @@ "@kbn/file-upload-plugin/*": ["x-pack/plugins/file_upload/*"], "@kbn/files-example-plugin": ["examples/files_example"], "@kbn/files-example-plugin/*": ["examples/files_example/*"], - "@kbn/files-management-plugin": ["src/plugins/files_management"], - "@kbn/files-management-plugin/*": ["src/plugins/files_management/*"], + "@kbn/files-management-plugin": ["src/platform/plugins/private/files_management"], + "@kbn/files-management-plugin/*": ["src/platform/plugins/private/files_management/*"], "@kbn/files-plugin": ["src/plugins/files"], "@kbn/files-plugin/*": ["src/plugins/files/*"], "@kbn/find-used-node-modules": ["packages/kbn-find-used-node-modules"], diff --git a/yarn.lock b/yarn.lock index 680601d72a5a0..3f63832bc63aa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5737,7 +5737,7 @@ version "0.0.0" uid "" -"@kbn/files-management-plugin@link:src/plugins/files_management": +"@kbn/files-management-plugin@link:src/platform/plugins/private/files_management": version "0.0.0" uid "" From 502f6e97d510a92ec7b64dafb1b95d6c1fa6f77e Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 14:59:25 +0100 Subject: [PATCH 04/43] Relocating module `@kbn/files-plugin` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- src/{plugins => platform/plugins/shared}/files/README.md | 0 .../plugins/shared}/files/common/api_routes.ts | 0 .../plugins/shared}/files/common/constants.ts | 0 .../shared}/files/common/default_image_file_kind.ts | 0 .../shared}/files/common/file_kinds_registry/index.ts | 0 .../plugins/shared}/files/common/files_client.ts | 0 .../plugins/shared}/files/common/index.ts | 0 .../plugins/shared}/files/common/types.ts | 0 .../plugins/shared}/files/docs/tutorial.mdx | 0 .../plugins/shared}/files/jest.config.js | 8 ++++---- .../plugins/shared}/files/jest.integration.config.js | 4 ++-- .../plugins/shared}/files/kibana.jsonc | 0 .../files/public/files_client/files_client.test.ts | 0 .../shared}/files/public/files_client/files_client.ts | 0 .../plugins/shared}/files/public/files_client/index.ts | 0 .../plugins/shared}/files/public/index.ts | 0 .../plugins/shared}/files/public/mocks.ts | 0 .../plugins/shared}/files/public/plugin.ts | 0 .../plugins/shared}/files/public/types.ts | 0 .../plugins/shared}/files/server/audit_events.ts | 0 .../files/server/blob_storage_service/adapters/README.md | 0 .../adapters/es/content_stream/content_stream.test.ts | 0 .../adapters/es/content_stream/content_stream.ts | 0 .../adapters/es/content_stream/index.ts | 0 .../server/blob_storage_service/adapters/es/es.test.ts | 0 .../files/server/blob_storage_service/adapters/es/es.ts | 0 .../server/blob_storage_service/adapters/es/index.ts | 0 .../adapters/es/integration_tests/es.test.ts | 0 .../server/blob_storage_service/adapters/es/mappings.ts | 0 .../files/server/blob_storage_service/adapters/index.ts | 0 .../server/blob_storage_service/blob_storage_service.ts | 0 .../shared}/files/server/blob_storage_service/index.ts | 0 .../shared}/files/server/blob_storage_service/types.ts | 0 .../plugins/shared}/files/server/feature.ts | 0 .../plugins/shared}/files/server/file/errors.ts | 0 .../plugins/shared}/files/server/file/file.test.ts | 0 .../plugins/shared}/files/server/file/file.ts | 0 .../shared}/files/server/file/file_attributes_reducer.ts | 0 .../plugins/shared}/files/server/file/index.ts | 0 .../plugins/shared}/files/server/file/to_json.ts | 0 .../server/file_client/create_es_file_client.test.ts | 0 .../files/server/file_client/create_es_file_client.ts | 0 .../shared}/files/server/file_client/file_client.ts | 0 .../file_metadata_client/adapters/es_index.test.ts | 0 .../file_client/file_metadata_client/adapters/es_index.ts | 0 .../file_client/file_metadata_client/adapters/index.ts | 0 .../file_metadata_client/adapters/query_filters.ts | 0 .../file_metadata_client/adapters/saved_objects.ts | 0 .../file_metadata_client/file_metadata_client.ts | 0 .../server/file_client/file_metadata_client/index.ts | 0 .../plugins/shared}/files/server/file_client/index.ts | 0 .../file_client/integration_tests/es_file_client.test.ts | 0 .../file_hash_transform/file_hash_transform.test.ts | 0 .../file_hash_transform/file_hash_transform.ts | 0 .../stream_transforms/file_hash_transform/index.ts | 0 .../files/server/file_client/stream_transforms/index.ts | 0 .../stream_transforms/max_byte_size_transform/errors.ts | 0 .../stream_transforms/max_byte_size_transform/index.ts | 0 .../max_byte_size_transform.test.ts | 0 .../max_byte_size_transform/max_byte_size_transform.ts | 0 .../plugins/shared}/files/server/file_client/types.ts | 0 .../plugins/shared}/files/server/file_client/utils.ts | 0 .../plugins/shared}/files/server/file_service/errors.ts | 0 .../files/server/file_service/file_action_types.ts | 0 .../shared}/files/server/file_service/file_service.ts | 0 .../files/server/file_service/file_service_factory.ts | 0 .../plugins/shared}/files/server/file_service/index.ts | 0 .../files/server/file_service/internal_file_service.ts | 0 .../shared}/files/server/file_share_service/errors.ts | 0 .../file_share_service/generate_share_token.test.ts | 0 .../server/file_share_service/generate_share_token.ts | 0 .../shared}/files/server/file_share_service/index.ts | 0 .../file_share_service/internal_file_share_service.ts | 0 .../shared}/files/server/file_share_service/types.ts | 0 .../plugins/shared}/files/server/index.ts | 0 .../shared}/files/server/integration_tests/README.md | 0 .../files/server/integration_tests/file_service.test.ts | 0 .../plugins/shared}/files/server/mocks.ts | 0 .../shared}/files/server/performance/event_names.ts | 0 .../plugins/shared}/files/server/performance/index.ts | 0 .../files/server/performance/report_performance.ts | 0 .../plugins/shared}/files/server/plugin.ts | 0 .../plugins/shared}/files/server/routes/api_routes.ts | 0 .../plugins/shared}/files/server/routes/bulk_delete.ts | 0 .../plugins/shared}/files/server/routes/common.test.ts | 0 .../plugins/shared}/files/server/routes/common.ts | 0 .../plugins/shared}/files/server/routes/common_schemas.ts | 0 .../shared}/files/server/routes/file_kind/create.ts | 0 .../shared}/files/server/routes/file_kind/delete.ts | 0 .../shared}/files/server/routes/file_kind/download.ts | 0 .../files/server/routes/file_kind/enhance_router.ts | 0 .../shared}/files/server/routes/file_kind/get_by_id.ts | 0 .../shared}/files/server/routes/file_kind/helpers.ts | 0 .../shared}/files/server/routes/file_kind/index.ts | 0 .../file_kind/integration_tests/file_kind_http.test.ts | 0 .../plugins/shared}/files/server/routes/file_kind/list.ts | 0 .../shared}/files/server/routes/file_kind/share/get.ts | 0 .../shared}/files/server/routes/file_kind/share/list.ts | 0 .../shared}/files/server/routes/file_kind/share/share.ts | 0 .../files/server/routes/file_kind/share/unshare.ts | 0 .../shared}/files/server/routes/file_kind/types.ts | 0 .../shared}/files/server/routes/file_kind/update.ts | 0 .../shared}/files/server/routes/file_kind/upload.test.ts | 0 .../shared}/files/server/routes/file_kind/upload.ts | 0 .../plugins/shared}/files/server/routes/find.ts | 0 .../plugins/shared}/files/server/routes/index.ts | 0 .../files/server/routes/integration_tests/routes.test.ts | 0 .../plugins/shared}/files/server/routes/metrics.ts | 0 .../shared}/files/server/routes/public_facing/download.ts | 0 .../plugins/shared}/files/server/routes/test_utils.ts | 0 .../plugins/shared}/files/server/routes/types.ts | 0 .../plugins/shared}/files/server/saved_objects/file.ts | 0 .../shared}/files/server/saved_objects/file_share.ts | 0 .../plugins/shared}/files/server/saved_objects/index.ts | 0 .../plugins/shared}/files/server/test_utils/index.ts | 0 .../server/test_utils/setup_integration_environment.ts | 0 .../plugins/shared}/files/server/types.ts | 0 .../plugins/shared}/files/server/usage/counters.ts | 0 .../plugins/shared}/files/server/usage/index.ts | 0 .../files/server/usage/integration_tests/usage.test.ts | 0 .../files/server/usage/register_usage_collector.ts | 0 .../plugins/shared}/files/server/usage/schema.ts | 0 .../plugins/shared}/files/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- .../scripts/endpoint/common/response_actions.ts | 2 +- yarn.lock | 2 +- 130 files changed, 15 insertions(+), 15 deletions(-) rename src/{plugins => platform/plugins/shared}/files/README.md (100%) rename src/{plugins => platform/plugins/shared}/files/common/api_routes.ts (100%) rename src/{plugins => platform/plugins/shared}/files/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/files/common/default_image_file_kind.ts (100%) rename src/{plugins => platform/plugins/shared}/files/common/file_kinds_registry/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/common/files_client.ts (100%) rename src/{plugins => platform/plugins/shared}/files/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/common/types.ts (100%) rename src/{plugins => platform/plugins/shared}/files/docs/tutorial.mdx (100%) rename src/{plugins => platform/plugins/shared}/files/jest.config.js (72%) rename src/{plugins => platform/plugins/shared}/files/jest.integration.config.js (85%) rename src/{plugins => platform/plugins/shared}/files/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/files/public/files_client/files_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/public/files_client/files_client.ts (100%) rename src/{plugins => platform/plugins/shared}/files/public/files_client/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/files/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/files/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/audit_events.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/README.md (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/es/content_stream/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/es/es.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/es/es.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/es/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/es/mappings.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/adapters/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/blob_storage_service.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/blob_storage_service/types.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/feature.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file/file.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file/file.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file/file_attributes_reducer.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file/to_json.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/create_es_file_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/create_es_file_client.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/file_client.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/file_metadata_client/adapters/es_index.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/file_metadata_client/adapters/es_index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/file_metadata_client/adapters/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/file_metadata_client/adapters/query_filters.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/file_metadata_client/adapters/saved_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/file_metadata_client/file_metadata_client.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/file_metadata_client/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/integration_tests/es_file_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/stream_transforms/file_hash_transform/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/stream_transforms/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/types.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_client/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_service/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_service/file_action_types.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_service/file_service.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_service/file_service_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_service/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_service/internal_file_service.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_share_service/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_share_service/generate_share_token.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_share_service/generate_share_token.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_share_service/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_share_service/internal_file_share_service.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/file_share_service/types.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/integration_tests/README.md (100%) rename src/{plugins => platform/plugins/shared}/files/server/integration_tests/file_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/performance/event_names.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/performance/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/performance/report_performance.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/api_routes.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/bulk_delete.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/common.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/common.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/common_schemas.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/create.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/delete.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/download.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/enhance_router.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/get_by_id.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/helpers.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/list.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/share/get.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/share/list.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/share/share.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/share/unshare.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/types.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/update.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/upload.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/file_kind/upload.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/find.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/integration_tests/routes.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/metrics.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/public_facing/download.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/test_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/routes/types.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/saved_objects/file.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/saved_objects/file_share.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/saved_objects/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/test_utils/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/test_utils/setup_integration_environment.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/usage/counters.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/usage/index.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/usage/integration_tests/usage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/usage/register_usage_collector.ts (100%) rename src/{plugins => platform/plugins/shared}/files/server/usage/schema.ts (100%) rename src/{plugins => platform/plugins/shared}/files/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 25c3c17eb9e9a..8d10a2be58c43 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -618,6 +618,7 @@ src/platform/plugins/shared/dev_tools @elastic/kibana-management src/platform/plugins/shared/es_ui_shared @elastic/kibana-management src/platform/plugins/shared/esql @elastic/kibana-esql src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql +src/platform/plugins/shared/files @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux @@ -651,7 +652,6 @@ src/plugins/expression_reveal_image @elastic/kibana-presentation src/plugins/expression_shape @elastic/kibana-presentation src/plugins/expressions @elastic/kibana-visualizations src/plugins/field_formats @elastic/kibana-data-discovery -src/plugins/files @elastic/appex-sharedux src/plugins/ftr_apis @elastic/kibana-core src/plugins/guided_onboarding @elastic/appex-sharedux src/plugins/home @elastic/appex-sharedux diff --git a/.i18nrc.json b/.i18nrc.json index 40ab8daf116cd..a2dddca540a11 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -60,7 +60,7 @@ "eventAnnotationComponents": "packages/kbn-event-annotation-components", "fieldUtils": "packages/kbn-field-utils", "fieldFormats": "src/plugins/field_formats", - "files": "src/plugins/files", + "files": "src/platform/plugins/shared/files", "filesManagement": "src/platform/plugins/private/files_management", "flot": "packages/kbn-flot-charts/lib", "generateCsv": "packages/kbn-generate-csv", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 62006ad479463..5e0c2f37f29a8 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -200,7 +200,7 @@ for use in their own application. |Index pattern fields formatters -|{kib-repo}blob/{branch}/src/plugins/files/README.md[files] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/files/README.md[files] |The files service provides functionality to manage, retrieve, share files in Kibana. diff --git a/package.json b/package.json index b9076c71e203f..899242dafaa14 100644 --- a/package.json +++ b/package.json @@ -536,7 +536,7 @@ "@kbn/file-upload-plugin": "link:x-pack/plugins/file_upload", "@kbn/files-example-plugin": "link:examples/files_example", "@kbn/files-management-plugin": "link:src/platform/plugins/private/files_management", - "@kbn/files-plugin": "link:src/plugins/files", + "@kbn/files-plugin": "link:src/platform/plugins/shared/files", "@kbn/fleet-plugin": "link:x-pack/plugins/fleet", "@kbn/flot-charts": "link:packages/kbn-flot-charts", "@kbn/foo-plugin": "link:x-pack/test/ui_capabilities/common/plugins/foo_plugin", diff --git a/src/plugins/files/README.md b/src/platform/plugins/shared/files/README.md similarity index 100% rename from src/plugins/files/README.md rename to src/platform/plugins/shared/files/README.md diff --git a/src/plugins/files/common/api_routes.ts b/src/platform/plugins/shared/files/common/api_routes.ts similarity index 100% rename from src/plugins/files/common/api_routes.ts rename to src/platform/plugins/shared/files/common/api_routes.ts diff --git a/src/plugins/files/common/constants.ts b/src/platform/plugins/shared/files/common/constants.ts similarity index 100% rename from src/plugins/files/common/constants.ts rename to src/platform/plugins/shared/files/common/constants.ts diff --git a/src/plugins/files/common/default_image_file_kind.ts b/src/platform/plugins/shared/files/common/default_image_file_kind.ts similarity index 100% rename from src/plugins/files/common/default_image_file_kind.ts rename to src/platform/plugins/shared/files/common/default_image_file_kind.ts diff --git a/src/plugins/files/common/file_kinds_registry/index.ts b/src/platform/plugins/shared/files/common/file_kinds_registry/index.ts similarity index 100% rename from src/plugins/files/common/file_kinds_registry/index.ts rename to src/platform/plugins/shared/files/common/file_kinds_registry/index.ts diff --git a/src/plugins/files/common/files_client.ts b/src/platform/plugins/shared/files/common/files_client.ts similarity index 100% rename from src/plugins/files/common/files_client.ts rename to src/platform/plugins/shared/files/common/files_client.ts diff --git a/src/plugins/files/common/index.ts b/src/platform/plugins/shared/files/common/index.ts similarity index 100% rename from src/plugins/files/common/index.ts rename to src/platform/plugins/shared/files/common/index.ts diff --git a/src/plugins/files/common/types.ts b/src/platform/plugins/shared/files/common/types.ts similarity index 100% rename from src/plugins/files/common/types.ts rename to src/platform/plugins/shared/files/common/types.ts diff --git a/src/plugins/files/docs/tutorial.mdx b/src/platform/plugins/shared/files/docs/tutorial.mdx similarity index 100% rename from src/plugins/files/docs/tutorial.mdx rename to src/platform/plugins/shared/files/docs/tutorial.mdx diff --git a/src/plugins/files/jest.config.js b/src/platform/plugins/shared/files/jest.config.js similarity index 72% rename from src/plugins/files/jest.config.js rename to src/platform/plugins/shared/files/jest.config.js index b765ea7f12764..c9c62707c498f 100644 --- a/src/plugins/files/jest.config.js +++ b/src/platform/plugins/shared/files/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/files'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/files', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/files'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/files', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/files/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/files/{common,public,server}/**/*.{js,ts,tsx}'], }; diff --git a/src/plugins/files/jest.integration.config.js b/src/platform/plugins/shared/files/jest.integration.config.js similarity index 85% rename from src/plugins/files/jest.integration.config.js rename to src/platform/plugins/shared/files/jest.integration.config.js index b1d616c2ee850..2d9b1564bf4e5 100644 --- a/src/plugins/files/jest.integration.config.js +++ b/src/platform/plugins/shared/files/jest.integration.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_integration', - rootDir: '../../..', - roots: ['/src/plugins/files'], + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/files'], }; diff --git a/src/plugins/files/kibana.jsonc b/src/platform/plugins/shared/files/kibana.jsonc similarity index 100% rename from src/plugins/files/kibana.jsonc rename to src/platform/plugins/shared/files/kibana.jsonc diff --git a/src/plugins/files/public/files_client/files_client.test.ts b/src/platform/plugins/shared/files/public/files_client/files_client.test.ts similarity index 100% rename from src/plugins/files/public/files_client/files_client.test.ts rename to src/platform/plugins/shared/files/public/files_client/files_client.test.ts diff --git a/src/plugins/files/public/files_client/files_client.ts b/src/platform/plugins/shared/files/public/files_client/files_client.ts similarity index 100% rename from src/plugins/files/public/files_client/files_client.ts rename to src/platform/plugins/shared/files/public/files_client/files_client.ts diff --git a/src/plugins/files/public/files_client/index.ts b/src/platform/plugins/shared/files/public/files_client/index.ts similarity index 100% rename from src/plugins/files/public/files_client/index.ts rename to src/platform/plugins/shared/files/public/files_client/index.ts diff --git a/src/plugins/files/public/index.ts b/src/platform/plugins/shared/files/public/index.ts similarity index 100% rename from src/plugins/files/public/index.ts rename to src/platform/plugins/shared/files/public/index.ts diff --git a/src/plugins/files/public/mocks.ts b/src/platform/plugins/shared/files/public/mocks.ts similarity index 100% rename from src/plugins/files/public/mocks.ts rename to src/platform/plugins/shared/files/public/mocks.ts diff --git a/src/plugins/files/public/plugin.ts b/src/platform/plugins/shared/files/public/plugin.ts similarity index 100% rename from src/plugins/files/public/plugin.ts rename to src/platform/plugins/shared/files/public/plugin.ts diff --git a/src/plugins/files/public/types.ts b/src/platform/plugins/shared/files/public/types.ts similarity index 100% rename from src/plugins/files/public/types.ts rename to src/platform/plugins/shared/files/public/types.ts diff --git a/src/plugins/files/server/audit_events.ts b/src/platform/plugins/shared/files/server/audit_events.ts similarity index 100% rename from src/plugins/files/server/audit_events.ts rename to src/platform/plugins/shared/files/server/audit_events.ts diff --git a/src/plugins/files/server/blob_storage_service/adapters/README.md b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/README.md similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/README.md rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/README.md diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/content_stream/index.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/content_stream/index.ts diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/es.test.ts b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/es.test.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/es/es.test.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/es.test.ts diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/es.ts b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/es.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/es/es.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/es.ts diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/index.ts b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/index.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/es/index.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/index.ts diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/mappings.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/mappings.ts diff --git a/src/plugins/files/server/blob_storage_service/adapters/index.ts b/src/platform/plugins/shared/files/server/blob_storage_service/adapters/index.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/adapters/index.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/adapters/index.ts diff --git a/src/plugins/files/server/blob_storage_service/blob_storage_service.ts b/src/platform/plugins/shared/files/server/blob_storage_service/blob_storage_service.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/blob_storage_service.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/blob_storage_service.ts diff --git a/src/plugins/files/server/blob_storage_service/index.ts b/src/platform/plugins/shared/files/server/blob_storage_service/index.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/index.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/index.ts diff --git a/src/plugins/files/server/blob_storage_service/types.ts b/src/platform/plugins/shared/files/server/blob_storage_service/types.ts similarity index 100% rename from src/plugins/files/server/blob_storage_service/types.ts rename to src/platform/plugins/shared/files/server/blob_storage_service/types.ts diff --git a/src/plugins/files/server/feature.ts b/src/platform/plugins/shared/files/server/feature.ts similarity index 100% rename from src/plugins/files/server/feature.ts rename to src/platform/plugins/shared/files/server/feature.ts diff --git a/src/plugins/files/server/file/errors.ts b/src/platform/plugins/shared/files/server/file/errors.ts similarity index 100% rename from src/plugins/files/server/file/errors.ts rename to src/platform/plugins/shared/files/server/file/errors.ts diff --git a/src/plugins/files/server/file/file.test.ts b/src/platform/plugins/shared/files/server/file/file.test.ts similarity index 100% rename from src/plugins/files/server/file/file.test.ts rename to src/platform/plugins/shared/files/server/file/file.test.ts diff --git a/src/plugins/files/server/file/file.ts b/src/platform/plugins/shared/files/server/file/file.ts similarity index 100% rename from src/plugins/files/server/file/file.ts rename to src/platform/plugins/shared/files/server/file/file.ts diff --git a/src/plugins/files/server/file/file_attributes_reducer.ts b/src/platform/plugins/shared/files/server/file/file_attributes_reducer.ts similarity index 100% rename from src/plugins/files/server/file/file_attributes_reducer.ts rename to src/platform/plugins/shared/files/server/file/file_attributes_reducer.ts diff --git a/src/plugins/files/server/file/index.ts b/src/platform/plugins/shared/files/server/file/index.ts similarity index 100% rename from src/plugins/files/server/file/index.ts rename to src/platform/plugins/shared/files/server/file/index.ts diff --git a/src/plugins/files/server/file/to_json.ts b/src/platform/plugins/shared/files/server/file/to_json.ts similarity index 100% rename from src/plugins/files/server/file/to_json.ts rename to src/platform/plugins/shared/files/server/file/to_json.ts diff --git a/src/plugins/files/server/file_client/create_es_file_client.test.ts b/src/platform/plugins/shared/files/server/file_client/create_es_file_client.test.ts similarity index 100% rename from src/plugins/files/server/file_client/create_es_file_client.test.ts rename to src/platform/plugins/shared/files/server/file_client/create_es_file_client.test.ts diff --git a/src/plugins/files/server/file_client/create_es_file_client.ts b/src/platform/plugins/shared/files/server/file_client/create_es_file_client.ts similarity index 100% rename from src/plugins/files/server/file_client/create_es_file_client.ts rename to src/platform/plugins/shared/files/server/file_client/create_es_file_client.ts diff --git a/src/plugins/files/server/file_client/file_client.ts b/src/platform/plugins/shared/files/server/file_client/file_client.ts similarity index 100% rename from src/plugins/files/server/file_client/file_client.ts rename to src/platform/plugins/shared/files/server/file_client/file_client.ts diff --git a/src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.test.ts b/src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/es_index.test.ts similarity index 100% rename from src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.test.ts rename to src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/es_index.test.ts diff --git a/src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts b/src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/es_index.ts similarity index 100% rename from src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts rename to src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/es_index.ts diff --git a/src/plugins/files/server/file_client/file_metadata_client/adapters/index.ts b/src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/index.ts similarity index 100% rename from src/plugins/files/server/file_client/file_metadata_client/adapters/index.ts rename to src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/index.ts diff --git a/src/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts b/src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/query_filters.ts similarity index 100% rename from src/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts rename to src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/query_filters.ts diff --git a/src/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts b/src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/saved_objects.ts similarity index 100% rename from src/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts rename to src/platform/plugins/shared/files/server/file_client/file_metadata_client/adapters/saved_objects.ts diff --git a/src/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts b/src/platform/plugins/shared/files/server/file_client/file_metadata_client/file_metadata_client.ts similarity index 100% rename from src/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts rename to src/platform/plugins/shared/files/server/file_client/file_metadata_client/file_metadata_client.ts diff --git a/src/plugins/files/server/file_client/file_metadata_client/index.ts b/src/platform/plugins/shared/files/server/file_client/file_metadata_client/index.ts similarity index 100% rename from src/plugins/files/server/file_client/file_metadata_client/index.ts rename to src/platform/plugins/shared/files/server/file_client/file_metadata_client/index.ts diff --git a/src/plugins/files/server/file_client/index.ts b/src/platform/plugins/shared/files/server/file_client/index.ts similarity index 100% rename from src/plugins/files/server/file_client/index.ts rename to src/platform/plugins/shared/files/server/file_client/index.ts diff --git a/src/plugins/files/server/file_client/integration_tests/es_file_client.test.ts b/src/platform/plugins/shared/files/server/file_client/integration_tests/es_file_client.test.ts similarity index 100% rename from src/plugins/files/server/file_client/integration_tests/es_file_client.test.ts rename to src/platform/plugins/shared/files/server/file_client/integration_tests/es_file_client.test.ts diff --git a/src/plugins/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.test.ts b/src/platform/plugins/shared/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.test.ts similarity index 100% rename from src/plugins/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.test.ts rename to src/platform/plugins/shared/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.test.ts diff --git a/src/plugins/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.ts b/src/platform/plugins/shared/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.ts similarity index 100% rename from src/plugins/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.ts rename to src/platform/plugins/shared/files/server/file_client/stream_transforms/file_hash_transform/file_hash_transform.ts diff --git a/src/plugins/files/server/file_client/stream_transforms/file_hash_transform/index.ts b/src/platform/plugins/shared/files/server/file_client/stream_transforms/file_hash_transform/index.ts similarity index 100% rename from src/plugins/files/server/file_client/stream_transforms/file_hash_transform/index.ts rename to src/platform/plugins/shared/files/server/file_client/stream_transforms/file_hash_transform/index.ts diff --git a/src/plugins/files/server/file_client/stream_transforms/index.ts b/src/platform/plugins/shared/files/server/file_client/stream_transforms/index.ts similarity index 100% rename from src/plugins/files/server/file_client/stream_transforms/index.ts rename to src/platform/plugins/shared/files/server/file_client/stream_transforms/index.ts diff --git a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts b/src/platform/plugins/shared/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts similarity index 100% rename from src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts rename to src/platform/plugins/shared/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts diff --git a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts b/src/platform/plugins/shared/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts similarity index 100% rename from src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts rename to src/platform/plugins/shared/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts diff --git a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts b/src/platform/plugins/shared/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts similarity index 100% rename from src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts rename to src/platform/plugins/shared/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts diff --git a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts b/src/platform/plugins/shared/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts similarity index 100% rename from src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts rename to src/platform/plugins/shared/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts diff --git a/src/plugins/files/server/file_client/types.ts b/src/platform/plugins/shared/files/server/file_client/types.ts similarity index 100% rename from src/plugins/files/server/file_client/types.ts rename to src/platform/plugins/shared/files/server/file_client/types.ts diff --git a/src/plugins/files/server/file_client/utils.ts b/src/platform/plugins/shared/files/server/file_client/utils.ts similarity index 100% rename from src/plugins/files/server/file_client/utils.ts rename to src/platform/plugins/shared/files/server/file_client/utils.ts diff --git a/src/plugins/files/server/file_service/errors.ts b/src/platform/plugins/shared/files/server/file_service/errors.ts similarity index 100% rename from src/plugins/files/server/file_service/errors.ts rename to src/platform/plugins/shared/files/server/file_service/errors.ts diff --git a/src/plugins/files/server/file_service/file_action_types.ts b/src/platform/plugins/shared/files/server/file_service/file_action_types.ts similarity index 100% rename from src/plugins/files/server/file_service/file_action_types.ts rename to src/platform/plugins/shared/files/server/file_service/file_action_types.ts diff --git a/src/plugins/files/server/file_service/file_service.ts b/src/platform/plugins/shared/files/server/file_service/file_service.ts similarity index 100% rename from src/plugins/files/server/file_service/file_service.ts rename to src/platform/plugins/shared/files/server/file_service/file_service.ts diff --git a/src/plugins/files/server/file_service/file_service_factory.ts b/src/platform/plugins/shared/files/server/file_service/file_service_factory.ts similarity index 100% rename from src/plugins/files/server/file_service/file_service_factory.ts rename to src/platform/plugins/shared/files/server/file_service/file_service_factory.ts diff --git a/src/plugins/files/server/file_service/index.ts b/src/platform/plugins/shared/files/server/file_service/index.ts similarity index 100% rename from src/plugins/files/server/file_service/index.ts rename to src/platform/plugins/shared/files/server/file_service/index.ts diff --git a/src/plugins/files/server/file_service/internal_file_service.ts b/src/platform/plugins/shared/files/server/file_service/internal_file_service.ts similarity index 100% rename from src/plugins/files/server/file_service/internal_file_service.ts rename to src/platform/plugins/shared/files/server/file_service/internal_file_service.ts diff --git a/src/plugins/files/server/file_share_service/errors.ts b/src/platform/plugins/shared/files/server/file_share_service/errors.ts similarity index 100% rename from src/plugins/files/server/file_share_service/errors.ts rename to src/platform/plugins/shared/files/server/file_share_service/errors.ts diff --git a/src/plugins/files/server/file_share_service/generate_share_token.test.ts b/src/platform/plugins/shared/files/server/file_share_service/generate_share_token.test.ts similarity index 100% rename from src/plugins/files/server/file_share_service/generate_share_token.test.ts rename to src/platform/plugins/shared/files/server/file_share_service/generate_share_token.test.ts diff --git a/src/plugins/files/server/file_share_service/generate_share_token.ts b/src/platform/plugins/shared/files/server/file_share_service/generate_share_token.ts similarity index 100% rename from src/plugins/files/server/file_share_service/generate_share_token.ts rename to src/platform/plugins/shared/files/server/file_share_service/generate_share_token.ts diff --git a/src/plugins/files/server/file_share_service/index.ts b/src/platform/plugins/shared/files/server/file_share_service/index.ts similarity index 100% rename from src/plugins/files/server/file_share_service/index.ts rename to src/platform/plugins/shared/files/server/file_share_service/index.ts diff --git a/src/plugins/files/server/file_share_service/internal_file_share_service.ts b/src/platform/plugins/shared/files/server/file_share_service/internal_file_share_service.ts similarity index 100% rename from src/plugins/files/server/file_share_service/internal_file_share_service.ts rename to src/platform/plugins/shared/files/server/file_share_service/internal_file_share_service.ts diff --git a/src/plugins/files/server/file_share_service/types.ts b/src/platform/plugins/shared/files/server/file_share_service/types.ts similarity index 100% rename from src/plugins/files/server/file_share_service/types.ts rename to src/platform/plugins/shared/files/server/file_share_service/types.ts diff --git a/src/plugins/files/server/index.ts b/src/platform/plugins/shared/files/server/index.ts similarity index 100% rename from src/plugins/files/server/index.ts rename to src/platform/plugins/shared/files/server/index.ts diff --git a/src/plugins/files/server/integration_tests/README.md b/src/platform/plugins/shared/files/server/integration_tests/README.md similarity index 100% rename from src/plugins/files/server/integration_tests/README.md rename to src/platform/plugins/shared/files/server/integration_tests/README.md diff --git a/src/plugins/files/server/integration_tests/file_service.test.ts b/src/platform/plugins/shared/files/server/integration_tests/file_service.test.ts similarity index 100% rename from src/plugins/files/server/integration_tests/file_service.test.ts rename to src/platform/plugins/shared/files/server/integration_tests/file_service.test.ts diff --git a/src/plugins/files/server/mocks.ts b/src/platform/plugins/shared/files/server/mocks.ts similarity index 100% rename from src/plugins/files/server/mocks.ts rename to src/platform/plugins/shared/files/server/mocks.ts diff --git a/src/plugins/files/server/performance/event_names.ts b/src/platform/plugins/shared/files/server/performance/event_names.ts similarity index 100% rename from src/plugins/files/server/performance/event_names.ts rename to src/platform/plugins/shared/files/server/performance/event_names.ts diff --git a/src/plugins/files/server/performance/index.ts b/src/platform/plugins/shared/files/server/performance/index.ts similarity index 100% rename from src/plugins/files/server/performance/index.ts rename to src/platform/plugins/shared/files/server/performance/index.ts diff --git a/src/plugins/files/server/performance/report_performance.ts b/src/platform/plugins/shared/files/server/performance/report_performance.ts similarity index 100% rename from src/plugins/files/server/performance/report_performance.ts rename to src/platform/plugins/shared/files/server/performance/report_performance.ts diff --git a/src/plugins/files/server/plugin.ts b/src/platform/plugins/shared/files/server/plugin.ts similarity index 100% rename from src/plugins/files/server/plugin.ts rename to src/platform/plugins/shared/files/server/plugin.ts diff --git a/src/plugins/files/server/routes/api_routes.ts b/src/platform/plugins/shared/files/server/routes/api_routes.ts similarity index 100% rename from src/plugins/files/server/routes/api_routes.ts rename to src/platform/plugins/shared/files/server/routes/api_routes.ts diff --git a/src/plugins/files/server/routes/bulk_delete.ts b/src/platform/plugins/shared/files/server/routes/bulk_delete.ts similarity index 100% rename from src/plugins/files/server/routes/bulk_delete.ts rename to src/platform/plugins/shared/files/server/routes/bulk_delete.ts diff --git a/src/plugins/files/server/routes/common.test.ts b/src/platform/plugins/shared/files/server/routes/common.test.ts similarity index 100% rename from src/plugins/files/server/routes/common.test.ts rename to src/platform/plugins/shared/files/server/routes/common.test.ts diff --git a/src/plugins/files/server/routes/common.ts b/src/platform/plugins/shared/files/server/routes/common.ts similarity index 100% rename from src/plugins/files/server/routes/common.ts rename to src/platform/plugins/shared/files/server/routes/common.ts diff --git a/src/plugins/files/server/routes/common_schemas.ts b/src/platform/plugins/shared/files/server/routes/common_schemas.ts similarity index 100% rename from src/plugins/files/server/routes/common_schemas.ts rename to src/platform/plugins/shared/files/server/routes/common_schemas.ts diff --git a/src/plugins/files/server/routes/file_kind/create.ts b/src/platform/plugins/shared/files/server/routes/file_kind/create.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/create.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/create.ts diff --git a/src/plugins/files/server/routes/file_kind/delete.ts b/src/platform/plugins/shared/files/server/routes/file_kind/delete.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/delete.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/delete.ts diff --git a/src/plugins/files/server/routes/file_kind/download.ts b/src/platform/plugins/shared/files/server/routes/file_kind/download.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/download.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/download.ts diff --git a/src/plugins/files/server/routes/file_kind/enhance_router.ts b/src/platform/plugins/shared/files/server/routes/file_kind/enhance_router.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/enhance_router.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/enhance_router.ts diff --git a/src/plugins/files/server/routes/file_kind/get_by_id.ts b/src/platform/plugins/shared/files/server/routes/file_kind/get_by_id.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/get_by_id.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/get_by_id.ts diff --git a/src/plugins/files/server/routes/file_kind/helpers.ts b/src/platform/plugins/shared/files/server/routes/file_kind/helpers.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/helpers.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/helpers.ts diff --git a/src/plugins/files/server/routes/file_kind/index.ts b/src/platform/plugins/shared/files/server/routes/file_kind/index.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/index.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/index.ts diff --git a/src/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts b/src/platform/plugins/shared/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts diff --git a/src/plugins/files/server/routes/file_kind/list.ts b/src/platform/plugins/shared/files/server/routes/file_kind/list.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/list.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/list.ts diff --git a/src/plugins/files/server/routes/file_kind/share/get.ts b/src/platform/plugins/shared/files/server/routes/file_kind/share/get.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/share/get.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/share/get.ts diff --git a/src/plugins/files/server/routes/file_kind/share/list.ts b/src/platform/plugins/shared/files/server/routes/file_kind/share/list.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/share/list.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/share/list.ts diff --git a/src/plugins/files/server/routes/file_kind/share/share.ts b/src/platform/plugins/shared/files/server/routes/file_kind/share/share.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/share/share.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/share/share.ts diff --git a/src/plugins/files/server/routes/file_kind/share/unshare.ts b/src/platform/plugins/shared/files/server/routes/file_kind/share/unshare.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/share/unshare.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/share/unshare.ts diff --git a/src/plugins/files/server/routes/file_kind/types.ts b/src/platform/plugins/shared/files/server/routes/file_kind/types.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/types.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/types.ts diff --git a/src/plugins/files/server/routes/file_kind/update.ts b/src/platform/plugins/shared/files/server/routes/file_kind/update.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/update.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/update.ts diff --git a/src/plugins/files/server/routes/file_kind/upload.test.ts b/src/platform/plugins/shared/files/server/routes/file_kind/upload.test.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/upload.test.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/upload.test.ts diff --git a/src/plugins/files/server/routes/file_kind/upload.ts b/src/platform/plugins/shared/files/server/routes/file_kind/upload.ts similarity index 100% rename from src/plugins/files/server/routes/file_kind/upload.ts rename to src/platform/plugins/shared/files/server/routes/file_kind/upload.ts diff --git a/src/plugins/files/server/routes/find.ts b/src/platform/plugins/shared/files/server/routes/find.ts similarity index 100% rename from src/plugins/files/server/routes/find.ts rename to src/platform/plugins/shared/files/server/routes/find.ts diff --git a/src/plugins/files/server/routes/index.ts b/src/platform/plugins/shared/files/server/routes/index.ts similarity index 100% rename from src/plugins/files/server/routes/index.ts rename to src/platform/plugins/shared/files/server/routes/index.ts diff --git a/src/plugins/files/server/routes/integration_tests/routes.test.ts b/src/platform/plugins/shared/files/server/routes/integration_tests/routes.test.ts similarity index 100% rename from src/plugins/files/server/routes/integration_tests/routes.test.ts rename to src/platform/plugins/shared/files/server/routes/integration_tests/routes.test.ts diff --git a/src/plugins/files/server/routes/metrics.ts b/src/platform/plugins/shared/files/server/routes/metrics.ts similarity index 100% rename from src/plugins/files/server/routes/metrics.ts rename to src/platform/plugins/shared/files/server/routes/metrics.ts diff --git a/src/plugins/files/server/routes/public_facing/download.ts b/src/platform/plugins/shared/files/server/routes/public_facing/download.ts similarity index 100% rename from src/plugins/files/server/routes/public_facing/download.ts rename to src/platform/plugins/shared/files/server/routes/public_facing/download.ts diff --git a/src/plugins/files/server/routes/test_utils.ts b/src/platform/plugins/shared/files/server/routes/test_utils.ts similarity index 100% rename from src/plugins/files/server/routes/test_utils.ts rename to src/platform/plugins/shared/files/server/routes/test_utils.ts diff --git a/src/plugins/files/server/routes/types.ts b/src/platform/plugins/shared/files/server/routes/types.ts similarity index 100% rename from src/plugins/files/server/routes/types.ts rename to src/platform/plugins/shared/files/server/routes/types.ts diff --git a/src/plugins/files/server/saved_objects/file.ts b/src/platform/plugins/shared/files/server/saved_objects/file.ts similarity index 100% rename from src/plugins/files/server/saved_objects/file.ts rename to src/platform/plugins/shared/files/server/saved_objects/file.ts diff --git a/src/plugins/files/server/saved_objects/file_share.ts b/src/platform/plugins/shared/files/server/saved_objects/file_share.ts similarity index 100% rename from src/plugins/files/server/saved_objects/file_share.ts rename to src/platform/plugins/shared/files/server/saved_objects/file_share.ts diff --git a/src/plugins/files/server/saved_objects/index.ts b/src/platform/plugins/shared/files/server/saved_objects/index.ts similarity index 100% rename from src/plugins/files/server/saved_objects/index.ts rename to src/platform/plugins/shared/files/server/saved_objects/index.ts diff --git a/src/plugins/files/server/test_utils/index.ts b/src/platform/plugins/shared/files/server/test_utils/index.ts similarity index 100% rename from src/plugins/files/server/test_utils/index.ts rename to src/platform/plugins/shared/files/server/test_utils/index.ts diff --git a/src/plugins/files/server/test_utils/setup_integration_environment.ts b/src/platform/plugins/shared/files/server/test_utils/setup_integration_environment.ts similarity index 100% rename from src/plugins/files/server/test_utils/setup_integration_environment.ts rename to src/platform/plugins/shared/files/server/test_utils/setup_integration_environment.ts diff --git a/src/plugins/files/server/types.ts b/src/platform/plugins/shared/files/server/types.ts similarity index 100% rename from src/plugins/files/server/types.ts rename to src/platform/plugins/shared/files/server/types.ts diff --git a/src/plugins/files/server/usage/counters.ts b/src/platform/plugins/shared/files/server/usage/counters.ts similarity index 100% rename from src/plugins/files/server/usage/counters.ts rename to src/platform/plugins/shared/files/server/usage/counters.ts diff --git a/src/plugins/files/server/usage/index.ts b/src/platform/plugins/shared/files/server/usage/index.ts similarity index 100% rename from src/plugins/files/server/usage/index.ts rename to src/platform/plugins/shared/files/server/usage/index.ts diff --git a/src/plugins/files/server/usage/integration_tests/usage.test.ts b/src/platform/plugins/shared/files/server/usage/integration_tests/usage.test.ts similarity index 100% rename from src/plugins/files/server/usage/integration_tests/usage.test.ts rename to src/platform/plugins/shared/files/server/usage/integration_tests/usage.test.ts diff --git a/src/plugins/files/server/usage/register_usage_collector.ts b/src/platform/plugins/shared/files/server/usage/register_usage_collector.ts similarity index 100% rename from src/plugins/files/server/usage/register_usage_collector.ts rename to src/platform/plugins/shared/files/server/usage/register_usage_collector.ts diff --git a/src/plugins/files/server/usage/schema.ts b/src/platform/plugins/shared/files/server/usage/schema.ts similarity index 100% rename from src/plugins/files/server/usage/schema.ts rename to src/platform/plugins/shared/files/server/usage/schema.ts diff --git a/src/plugins/files/tsconfig.json b/src/platform/plugins/shared/files/tsconfig.json similarity index 95% rename from src/plugins/files/tsconfig.json rename to src/platform/plugins/shared/files/tsconfig.json index c31650d197ba2..a5297703e7958 100644 --- a/src/plugins/files/tsconfig.json +++ b/src/platform/plugins/shared/files/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 5898f016ee8af..8c48b71902b2c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -962,8 +962,8 @@ "@kbn/files-example-plugin/*": ["examples/files_example/*"], "@kbn/files-management-plugin": ["src/platform/plugins/private/files_management"], "@kbn/files-management-plugin/*": ["src/platform/plugins/private/files_management/*"], - "@kbn/files-plugin": ["src/plugins/files"], - "@kbn/files-plugin/*": ["src/plugins/files/*"], + "@kbn/files-plugin": ["src/platform/plugins/shared/files"], + "@kbn/files-plugin/*": ["src/platform/plugins/shared/files/*"], "@kbn/find-used-node-modules": ["packages/kbn-find-used-node-modules"], "@kbn/find-used-node-modules/*": ["packages/kbn-find-used-node-modules/*"], "@kbn/fleet-plugin": ["x-pack/plugins/fleet"], diff --git a/x-pack/solutions/security/plugins/security_solution/scripts/endpoint/common/response_actions.ts b/x-pack/solutions/security/plugins/security_solution/scripts/endpoint/common/response_actions.ts index d54df140b3b4c..3a96ac8ad98ce 100644 --- a/x-pack/solutions/security/plugins/security_solution/scripts/endpoint/common/response_actions.ts +++ b/x-pack/solutions/security/plugins/security_solution/scripts/endpoint/common/response_actions.ts @@ -240,7 +240,7 @@ export const sendEndpointActionResponse = async ( // Index the file content (just one chunk) // call to `.index()` copied from File plugin here: - // https://github.com/elastic/kibana/blob/main/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts#L195 + // https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts#L195 await esClient .index( { diff --git a/yarn.lock b/yarn.lock index 3f63832bc63aa..7ec89afafd12c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5741,7 +5741,7 @@ version "0.0.0" uid "" -"@kbn/files-plugin@link:src/plugins/files": +"@kbn/files-plugin@link:src/platform/plugins/shared/files": version "0.0.0" uid "" From b6fbaae60cf04765eea68d4aee7e849e948b9e94 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:01:01 +0100 Subject: [PATCH 05/43] Relocating module `@kbn/global-search-bar-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../plugins/private}/global_search_bar/README.md | 0 .../plugins/private}/global_search_bar/jest.config.js | 8 ++++---- .../plugins/private}/global_search_bar/kibana.jsonc | 0 .../illustration_product_no_search_results_dark.svg | 0 .../illustration_product_no_search_results_light.svg | 0 .../private}/global_search_bar/public/components/index.ts | 0 .../public/components/popover_footer.tsx | 0 .../public/components/popover_placeholder.tsx | 0 .../public/components/result_tag_list.tsx | 0 .../global_search_bar/public/components/search_bar.scss | 0 .../public/components/search_bar.test.tsx | 0 .../global_search_bar/public/components/search_bar.tsx | 0 .../private}/global_search_bar/public/components/types.ts | 0 .../plugins/private}/global_search_bar/public/index.ts | 0 .../private}/global_search_bar/public/lib/index.ts | 0 .../global_search_bar/public/lib/result_to_option.test.ts | 0 .../global_search_bar/public/lib/result_to_option.tsx | 0 .../global_search_bar/public/lib/suggestion_to_option.ts | 0 .../private}/global_search_bar/public/plugin.test.ts | 0 .../plugins/private}/global_search_bar/public/plugin.tsx | 0 .../global_search_bar/public/search_syntax/index.ts | 0 .../public/search_syntax/parse_search_params.test.ts | 0 .../public/search_syntax/parse_search_params.ts | 0 .../public/search_syntax/query_utils.test.ts | 0 .../global_search_bar/public/search_syntax/query_utils.ts | 0 .../global_search_bar/public/search_syntax/types.ts | 0 .../plugins/private}/global_search_bar/public/strings.ts | 0 .../public/suggestions/get_suggestions.test.ts | 0 .../public/suggestions/get_suggestions.ts | 0 .../global_search_bar/public/suggestions/index.ts | 0 .../global_search_bar/public/telemetry/event_reporter.ts | 0 .../global_search_bar/public/telemetry/event_types.ts | 0 .../private}/global_search_bar/public/telemetry/index.ts | 0 .../global_search_bar/public/telemetry/telemetry.test.tsx | 0 .../plugins/private}/global_search_bar/public/types.ts | 0 .../plugins/private}/global_search_bar/server/config.ts | 0 .../plugins/private}/global_search_bar/server/index.ts | 0 .../plugins/private}/global_search_bar/server/plugin.ts | 0 .../plugins/private}/global_search_bar/tsconfig.json | 2 +- yarn.lock | 2 +- 45 files changed, 12 insertions(+), 12 deletions(-) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/jest.config.js (60%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/assets/illustration_product_no_search_results_dark.svg (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/assets/illustration_product_no_search_results_light.svg (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/components/popover_footer.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/components/popover_placeholder.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/components/result_tag_list.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/components/search_bar.scss (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/components/search_bar.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/components/search_bar.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/components/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/lib/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/lib/result_to_option.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/lib/result_to_option.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/lib/suggestion_to_option.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/search_syntax/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/search_syntax/parse_search_params.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/search_syntax/parse_search_params.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/search_syntax/query_utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/search_syntax/query_utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/search_syntax/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/strings.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/suggestions/get_suggestions.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/suggestions/get_suggestions.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/suggestions/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/telemetry/event_reporter.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/telemetry/event_types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/telemetry/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/telemetry/telemetry.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_bar/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8d10a2be58c43..c36e484e420c4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -843,6 +843,7 @@ x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-manage x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux 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/global_search_bar @elastic/appex-sharedux x-pack/platform/plugins/private/grokdebugger @elastic/kibana-management x-pack/platform/plugins/private/index_lifecycle_management @elastic/kibana-management x-pack/platform/plugins/private/license_api_guard @elastic/kibana-management @@ -890,7 +891,6 @@ x-pack/plugins/fields_metadata @elastic/obs-ux-logs-team x-pack/plugins/file_upload @elastic/kibana-presentation @elastic/ml-ui x-pack/plugins/fleet @elastic/fleet x-pack/plugins/global_search @elastic/appex-sharedux -x-pack/plugins/global_search_bar @elastic/appex-sharedux x-pack/plugins/global_search_providers @elastic/appex-sharedux x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/index_management @elastic/kibana-management diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 5e0c2f37f29a8..a202454fcb796 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -618,7 +618,7 @@ activities. or dashboards from the Kibana instance, from both server and client-side plugins -|{kib-repo}blob/{branch}/x-pack/plugins/global_search_bar/README.md[globalSearchBar] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/global_search_bar/README.md[globalSearchBar] |The GlobalSearchBar plugin provides a search interface for navigating Kibana. (It is the UI to the GlobalSearch plugin.) diff --git a/package.json b/package.json index 899242dafaa14..4ccd4069be6a7 100644 --- a/package.json +++ b/package.json @@ -546,7 +546,7 @@ "@kbn/gen-ai-streaming-response-example-plugin": "link:x-pack/examples/gen_ai_streaming_response_example", "@kbn/generate-console-definitions": "link:packages/kbn-generate-console-definitions", "@kbn/generate-csv": "link:packages/kbn-generate-csv", - "@kbn/global-search-bar-plugin": "link:x-pack/plugins/global_search_bar", + "@kbn/global-search-bar-plugin": "link:x-pack/platform/plugins/private/global_search_bar", "@kbn/global-search-plugin": "link:x-pack/plugins/global_search", "@kbn/global-search-providers-plugin": "link:x-pack/plugins/global_search_providers", "@kbn/global-search-test-plugin": "link:x-pack/test/plugin_functional/plugins/global_search_test", diff --git a/tsconfig.base.json b/tsconfig.base.json index 8c48b71902b2c..980b39fc13185 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -996,8 +996,8 @@ "@kbn/generate-csv/*": ["packages/kbn-generate-csv/*"], "@kbn/get-repo-files": ["packages/kbn-get-repo-files"], "@kbn/get-repo-files/*": ["packages/kbn-get-repo-files/*"], - "@kbn/global-search-bar-plugin": ["x-pack/plugins/global_search_bar"], - "@kbn/global-search-bar-plugin/*": ["x-pack/plugins/global_search_bar/*"], + "@kbn/global-search-bar-plugin": ["x-pack/platform/plugins/private/global_search_bar"], + "@kbn/global-search-bar-plugin/*": ["x-pack/platform/plugins/private/global_search_bar/*"], "@kbn/global-search-plugin": ["x-pack/plugins/global_search"], "@kbn/global-search-plugin/*": ["x-pack/plugins/global_search/*"], "@kbn/global-search-providers-plugin": ["x-pack/plugins/global_search_providers"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 67c78e7db9d53..da47cbe81c80b 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -50,7 +50,7 @@ "plugins/global_search" ], "xpack.globalSearchBar": [ - "plugins/global_search_bar" + "platform/plugins/private/global_search_bar" ], "xpack.graph": [ "plugins/graph" diff --git a/x-pack/plugins/global_search_bar/README.md b/x-pack/platform/plugins/private/global_search_bar/README.md similarity index 100% rename from x-pack/plugins/global_search_bar/README.md rename to x-pack/platform/plugins/private/global_search_bar/README.md diff --git a/x-pack/plugins/global_search_bar/jest.config.js b/x-pack/platform/plugins/private/global_search_bar/jest.config.js similarity index 60% rename from x-pack/plugins/global_search_bar/jest.config.js rename to x-pack/platform/plugins/private/global_search_bar/jest.config.js index e00903df125c9..971b25e6a5c30 100644 --- a/x-pack/plugins/global_search_bar/jest.config.js +++ b/x-pack/platform/plugins/private/global_search_bar/jest.config.js @@ -7,9 +7,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/global_search_bar'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/global_search_bar', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/global_search_bar'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/global_search_bar', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/global_search_bar/public/**/*.{ts,tsx}'], + collectCoverageFrom: ['/x-pack/platform/plugins/private/global_search_bar/public/**/*.{ts,tsx}'], }; diff --git a/x-pack/plugins/global_search_bar/kibana.jsonc b/x-pack/platform/plugins/private/global_search_bar/kibana.jsonc similarity index 100% rename from x-pack/plugins/global_search_bar/kibana.jsonc rename to x-pack/platform/plugins/private/global_search_bar/kibana.jsonc diff --git a/x-pack/plugins/global_search_bar/public/assets/illustration_product_no_search_results_dark.svg b/x-pack/platform/plugins/private/global_search_bar/public/assets/illustration_product_no_search_results_dark.svg similarity index 100% rename from x-pack/plugins/global_search_bar/public/assets/illustration_product_no_search_results_dark.svg rename to x-pack/platform/plugins/private/global_search_bar/public/assets/illustration_product_no_search_results_dark.svg diff --git a/x-pack/plugins/global_search_bar/public/assets/illustration_product_no_search_results_light.svg b/x-pack/platform/plugins/private/global_search_bar/public/assets/illustration_product_no_search_results_light.svg similarity index 100% rename from x-pack/plugins/global_search_bar/public/assets/illustration_product_no_search_results_light.svg rename to x-pack/platform/plugins/private/global_search_bar/public/assets/illustration_product_no_search_results_light.svg diff --git a/x-pack/plugins/global_search_bar/public/components/index.ts b/x-pack/platform/plugins/private/global_search_bar/public/components/index.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/components/index.ts rename to x-pack/platform/plugins/private/global_search_bar/public/components/index.ts diff --git a/x-pack/plugins/global_search_bar/public/components/popover_footer.tsx b/x-pack/platform/plugins/private/global_search_bar/public/components/popover_footer.tsx similarity index 100% rename from x-pack/plugins/global_search_bar/public/components/popover_footer.tsx rename to x-pack/platform/plugins/private/global_search_bar/public/components/popover_footer.tsx diff --git a/x-pack/plugins/global_search_bar/public/components/popover_placeholder.tsx b/x-pack/platform/plugins/private/global_search_bar/public/components/popover_placeholder.tsx similarity index 100% rename from x-pack/plugins/global_search_bar/public/components/popover_placeholder.tsx rename to x-pack/platform/plugins/private/global_search_bar/public/components/popover_placeholder.tsx diff --git a/x-pack/plugins/global_search_bar/public/components/result_tag_list.tsx b/x-pack/platform/plugins/private/global_search_bar/public/components/result_tag_list.tsx similarity index 100% rename from x-pack/plugins/global_search_bar/public/components/result_tag_list.tsx rename to x-pack/platform/plugins/private/global_search_bar/public/components/result_tag_list.tsx diff --git a/x-pack/plugins/global_search_bar/public/components/search_bar.scss b/x-pack/platform/plugins/private/global_search_bar/public/components/search_bar.scss similarity index 100% rename from x-pack/plugins/global_search_bar/public/components/search_bar.scss rename to x-pack/platform/plugins/private/global_search_bar/public/components/search_bar.scss diff --git a/x-pack/plugins/global_search_bar/public/components/search_bar.test.tsx b/x-pack/platform/plugins/private/global_search_bar/public/components/search_bar.test.tsx similarity index 100% rename from x-pack/plugins/global_search_bar/public/components/search_bar.test.tsx rename to x-pack/platform/plugins/private/global_search_bar/public/components/search_bar.test.tsx diff --git a/x-pack/plugins/global_search_bar/public/components/search_bar.tsx b/x-pack/platform/plugins/private/global_search_bar/public/components/search_bar.tsx similarity index 100% rename from x-pack/plugins/global_search_bar/public/components/search_bar.tsx rename to x-pack/platform/plugins/private/global_search_bar/public/components/search_bar.tsx diff --git a/x-pack/plugins/global_search_bar/public/components/types.ts b/x-pack/platform/plugins/private/global_search_bar/public/components/types.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/components/types.ts rename to x-pack/platform/plugins/private/global_search_bar/public/components/types.ts diff --git a/x-pack/plugins/global_search_bar/public/index.ts b/x-pack/platform/plugins/private/global_search_bar/public/index.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/index.ts rename to x-pack/platform/plugins/private/global_search_bar/public/index.ts diff --git a/x-pack/plugins/global_search_bar/public/lib/index.ts b/x-pack/platform/plugins/private/global_search_bar/public/lib/index.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/lib/index.ts rename to x-pack/platform/plugins/private/global_search_bar/public/lib/index.ts diff --git a/x-pack/plugins/global_search_bar/public/lib/result_to_option.test.ts b/x-pack/platform/plugins/private/global_search_bar/public/lib/result_to_option.test.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/lib/result_to_option.test.ts rename to x-pack/platform/plugins/private/global_search_bar/public/lib/result_to_option.test.ts diff --git a/x-pack/plugins/global_search_bar/public/lib/result_to_option.tsx b/x-pack/platform/plugins/private/global_search_bar/public/lib/result_to_option.tsx similarity index 100% rename from x-pack/plugins/global_search_bar/public/lib/result_to_option.tsx rename to x-pack/platform/plugins/private/global_search_bar/public/lib/result_to_option.tsx diff --git a/x-pack/plugins/global_search_bar/public/lib/suggestion_to_option.ts b/x-pack/platform/plugins/private/global_search_bar/public/lib/suggestion_to_option.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/lib/suggestion_to_option.ts rename to x-pack/platform/plugins/private/global_search_bar/public/lib/suggestion_to_option.ts diff --git a/x-pack/plugins/global_search_bar/public/plugin.test.ts b/x-pack/platform/plugins/private/global_search_bar/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/plugin.test.ts rename to x-pack/platform/plugins/private/global_search_bar/public/plugin.test.ts diff --git a/x-pack/plugins/global_search_bar/public/plugin.tsx b/x-pack/platform/plugins/private/global_search_bar/public/plugin.tsx similarity index 100% rename from x-pack/plugins/global_search_bar/public/plugin.tsx rename to x-pack/platform/plugins/private/global_search_bar/public/plugin.tsx diff --git a/x-pack/plugins/global_search_bar/public/search_syntax/index.ts b/x-pack/platform/plugins/private/global_search_bar/public/search_syntax/index.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/search_syntax/index.ts rename to x-pack/platform/plugins/private/global_search_bar/public/search_syntax/index.ts diff --git a/x-pack/plugins/global_search_bar/public/search_syntax/parse_search_params.test.ts b/x-pack/platform/plugins/private/global_search_bar/public/search_syntax/parse_search_params.test.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/search_syntax/parse_search_params.test.ts rename to x-pack/platform/plugins/private/global_search_bar/public/search_syntax/parse_search_params.test.ts diff --git a/x-pack/plugins/global_search_bar/public/search_syntax/parse_search_params.ts b/x-pack/platform/plugins/private/global_search_bar/public/search_syntax/parse_search_params.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/search_syntax/parse_search_params.ts rename to x-pack/platform/plugins/private/global_search_bar/public/search_syntax/parse_search_params.ts diff --git a/x-pack/plugins/global_search_bar/public/search_syntax/query_utils.test.ts b/x-pack/platform/plugins/private/global_search_bar/public/search_syntax/query_utils.test.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/search_syntax/query_utils.test.ts rename to x-pack/platform/plugins/private/global_search_bar/public/search_syntax/query_utils.test.ts diff --git a/x-pack/plugins/global_search_bar/public/search_syntax/query_utils.ts b/x-pack/platform/plugins/private/global_search_bar/public/search_syntax/query_utils.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/search_syntax/query_utils.ts rename to x-pack/platform/plugins/private/global_search_bar/public/search_syntax/query_utils.ts diff --git a/x-pack/plugins/global_search_bar/public/search_syntax/types.ts b/x-pack/platform/plugins/private/global_search_bar/public/search_syntax/types.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/search_syntax/types.ts rename to x-pack/platform/plugins/private/global_search_bar/public/search_syntax/types.ts diff --git a/x-pack/plugins/global_search_bar/public/strings.ts b/x-pack/platform/plugins/private/global_search_bar/public/strings.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/strings.ts rename to x-pack/platform/plugins/private/global_search_bar/public/strings.ts diff --git a/x-pack/plugins/global_search_bar/public/suggestions/get_suggestions.test.ts b/x-pack/platform/plugins/private/global_search_bar/public/suggestions/get_suggestions.test.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/suggestions/get_suggestions.test.ts rename to x-pack/platform/plugins/private/global_search_bar/public/suggestions/get_suggestions.test.ts diff --git a/x-pack/plugins/global_search_bar/public/suggestions/get_suggestions.ts b/x-pack/platform/plugins/private/global_search_bar/public/suggestions/get_suggestions.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/suggestions/get_suggestions.ts rename to x-pack/platform/plugins/private/global_search_bar/public/suggestions/get_suggestions.ts diff --git a/x-pack/plugins/global_search_bar/public/suggestions/index.ts b/x-pack/platform/plugins/private/global_search_bar/public/suggestions/index.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/suggestions/index.ts rename to x-pack/platform/plugins/private/global_search_bar/public/suggestions/index.ts diff --git a/x-pack/plugins/global_search_bar/public/telemetry/event_reporter.ts b/x-pack/platform/plugins/private/global_search_bar/public/telemetry/event_reporter.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/telemetry/event_reporter.ts rename to x-pack/platform/plugins/private/global_search_bar/public/telemetry/event_reporter.ts diff --git a/x-pack/plugins/global_search_bar/public/telemetry/event_types.ts b/x-pack/platform/plugins/private/global_search_bar/public/telemetry/event_types.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/telemetry/event_types.ts rename to x-pack/platform/plugins/private/global_search_bar/public/telemetry/event_types.ts diff --git a/x-pack/plugins/global_search_bar/public/telemetry/index.ts b/x-pack/platform/plugins/private/global_search_bar/public/telemetry/index.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/telemetry/index.ts rename to x-pack/platform/plugins/private/global_search_bar/public/telemetry/index.ts diff --git a/x-pack/plugins/global_search_bar/public/telemetry/telemetry.test.tsx b/x-pack/platform/plugins/private/global_search_bar/public/telemetry/telemetry.test.tsx similarity index 100% rename from x-pack/plugins/global_search_bar/public/telemetry/telemetry.test.tsx rename to x-pack/platform/plugins/private/global_search_bar/public/telemetry/telemetry.test.tsx diff --git a/x-pack/plugins/global_search_bar/public/types.ts b/x-pack/platform/plugins/private/global_search_bar/public/types.ts similarity index 100% rename from x-pack/plugins/global_search_bar/public/types.ts rename to x-pack/platform/plugins/private/global_search_bar/public/types.ts diff --git a/x-pack/plugins/global_search_bar/server/config.ts b/x-pack/platform/plugins/private/global_search_bar/server/config.ts similarity index 100% rename from x-pack/plugins/global_search_bar/server/config.ts rename to x-pack/platform/plugins/private/global_search_bar/server/config.ts diff --git a/x-pack/plugins/global_search_bar/server/index.ts b/x-pack/platform/plugins/private/global_search_bar/server/index.ts similarity index 100% rename from x-pack/plugins/global_search_bar/server/index.ts rename to x-pack/platform/plugins/private/global_search_bar/server/index.ts diff --git a/x-pack/plugins/global_search_bar/server/plugin.ts b/x-pack/platform/plugins/private/global_search_bar/server/plugin.ts similarity index 100% rename from x-pack/plugins/global_search_bar/server/plugin.ts rename to x-pack/platform/plugins/private/global_search_bar/server/plugin.ts diff --git a/x-pack/plugins/global_search_bar/tsconfig.json b/x-pack/platform/plugins/private/global_search_bar/tsconfig.json similarity index 91% rename from x-pack/plugins/global_search_bar/tsconfig.json rename to x-pack/platform/plugins/private/global_search_bar/tsconfig.json index 188f9e005c893..296d66f9d5f2f 100644 --- a/x-pack/plugins/global_search_bar/tsconfig.json +++ b/x-pack/platform/plugins/private/global_search_bar/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/yarn.lock b/yarn.lock index 7ec89afafd12c..382af0945251d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5809,7 +5809,7 @@ version "0.0.0" uid "" -"@kbn/global-search-bar-plugin@link:x-pack/plugins/global_search_bar": +"@kbn/global-search-bar-plugin@link:x-pack/platform/plugins/private/global_search_bar": version "0.0.0" uid "" From 25687eb782b3b7b55d49a88eb532215ad0b2517d Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:02:32 +0100 Subject: [PATCH 06/43] Relocating module `@kbn/global-search-plugin` --- .eslintrc.js | 2 +- .github/CODEOWNERS | 4 ++-- .../architecture/core/elasticsearch-service.asciidoc | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../plugins/shared}/global_search/README.md | 2 +- .../plugins/shared}/global_search/common/constants.ts | 0 .../plugins/shared}/global_search/common/errors.test.ts | 0 .../plugins/shared}/global_search/common/errors.ts | 0 .../shared}/global_search/common/license_checker.mock.ts | 0 .../shared}/global_search/common/license_checker.test.ts | 0 .../shared}/global_search/common/license_checker.ts | 0 .../shared}/global_search/common/operators/index.ts | 0 .../global_search/common/operators/take_in_array.test.ts | 0 .../global_search/common/operators/take_in_array.ts | 0 .../global_search/common/process_result.test.mocks.ts | 0 .../shared}/global_search/common/process_result.test.ts | 0 .../shared}/global_search/common/process_result.ts | 0 .../plugins/shared}/global_search/common/types.ts | 0 .../plugins/shared}/global_search/common/utils.test.ts | 0 .../plugins/shared}/global_search/common/utils.ts | 0 .../plugins/shared}/global_search/jest.config.js | 8 ++++---- .../shared}/global_search/jest.integration.config.js | 4 ++-- .../plugins/shared}/global_search/kibana.jsonc | 0 .../plugins/shared}/global_search/public/config.ts | 0 .../plugins/shared}/global_search/public/index.ts | 0 .../plugins/shared}/global_search/public/mocks.ts | 0 .../plugins/shared}/global_search/public/plugin.ts | 0 .../public/services/fetch_server_results.test.ts | 0 .../global_search/public/services/fetch_server_results.ts | 0 .../public/services/fetch_server_searchable_types.test.ts | 0 .../public/services/fetch_server_searchable_types.ts | 0 .../shared}/global_search/public/services/index.ts | 0 .../global_search/public/services/search_service.mock.ts | 0 .../public/services/search_service.test.mocks.ts | 0 .../global_search/public/services/search_service.test.ts | 0 .../global_search/public/services/search_service.ts | 0 .../shared}/global_search/public/services/types.ts | 0 .../shared}/global_search/public/services/utils.test.ts | 0 .../shared}/global_search/public/services/utils.ts | 0 .../plugins/shared}/global_search/public/types.ts | 0 .../plugins/shared}/global_search/server/config.ts | 0 .../plugins/shared}/global_search/server/index.ts | 0 .../plugins/shared}/global_search/server/mocks.ts | 0 .../shared}/global_search/server/plugin.test.mocks.ts | 0 .../plugins/shared}/global_search/server/plugin.test.ts | 0 .../plugins/shared}/global_search/server/plugin.ts | 0 .../plugins/shared}/global_search/server/routes/find.ts | 0 .../global_search/server/routes/get_searchable_types.ts | 0 .../shared}/global_search/server/routes/index.test.ts | 0 .../plugins/shared}/global_search/server/routes/index.ts | 0 .../server/routes/integration_tests/find.test.ts | 0 .../routes/integration_tests/get_searchable_types.test.ts | 0 .../shared}/global_search/server/services/context.mock.ts | 0 .../shared}/global_search/server/services/context.test.ts | 0 .../shared}/global_search/server/services/context.ts | 0 .../shared}/global_search/server/services/index.ts | 0 .../global_search/server/services/search_service.mock.ts | 0 .../global_search/server/services/search_service.test.ts | 0 .../global_search/server/services/search_service.ts | 0 .../shared}/global_search/server/services/utils.test.ts | 0 .../shared}/global_search/server/services/utils.ts | 0 .../plugins/shared}/global_search/server/types.ts | 0 .../plugins/shared}/global_search/tsconfig.json | 4 ++-- yarn.lock | 2 +- 67 files changed, 19 insertions(+), 19 deletions(-) rename x-pack/{plugins => platform/plugins/shared}/global_search/README.md (93%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/errors.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/errors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/license_checker.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/license_checker.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/license_checker.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/operators/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/operators/take_in_array.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/operators/take_in_array.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/process_result.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/process_result.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/process_result.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/common/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/jest.config.js (64%) rename x-pack/{plugins => platform/plugins/shared}/global_search/jest.integration.config.js (76%) rename x-pack/{plugins => platform/plugins/shared}/global_search/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/fetch_server_results.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/fetch_server_results.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/fetch_server_searchable_types.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/fetch_server_searchable_types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/search_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/search_service.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/search_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/search_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/services/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/plugin.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/routes/find.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/routes/get_searchable_types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/routes/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/routes/integration_tests/find.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/routes/integration_tests/get_searchable_types.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/services/context.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/services/context.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/services/context.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/services/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/services/search_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/services/search_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/services/search_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/services/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/services/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/global_search/tsconfig.json (82%) diff --git a/.eslintrc.js b/.eslintrc.js index 93e3dabf3b861..8f6b0e238a504 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1918,7 +1918,7 @@ module.exports = { 'src/core/**', 'x-pack/plugins/features/**', 'x-pack/plugins/licensing/**', - 'x-pack/plugins/global_search/**', + 'x-pack/platform/plugins/shared/global_search/**', 'x-pack/plugins/cloud/**', 'packages/kbn-config-schema', 'src/plugins/status_page/**', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c36e484e420c4..0a5916dc4818a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -859,6 +859,7 @@ x-pack/platform/plugins/shared/ai_infra/llm_tasks @elastic/appex-ai-infra x-pack/platform/plugins/shared/ai_infra/product_doc_base @elastic/appex-ai-infra x-pack/platform/plugins/shared/aiops @elastic/ml-ui x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities +x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management x-pack/platform/plugins/shared/integration_assistant @elastic/security-scalability @@ -890,7 +891,6 @@ x-pack/plugins/features @elastic/kibana-core x-pack/plugins/fields_metadata @elastic/obs-ux-logs-team x-pack/plugins/file_upload @elastic/kibana-presentation @elastic/ml-ui x-pack/plugins/fleet @elastic/fleet -x-pack/plugins/global_search @elastic/appex-sharedux x-pack/plugins/global_search_providers @elastic/appex-sharedux x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/index_management @elastic/kibana-management @@ -1827,7 +1827,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql #CC# /src/plugins/saved_objects/ @elastic/kibana-core #CC# /x-pack/plugins/cloud/ @elastic/kibana-core #CC# /x-pack/plugins/features/ @elastic/kibana-core -#CC# /x-pack/plugins/global_search/ @elastic/kibana-core +#CC# /x-pack/platform/plugins/shared/global_search/ @elastic/kibana-core #CC# /src/plugins/newsfeed @elastic/kibana-core #CC# /x-pack/plugins/global_search_providers/ @elastic/kibana-core diff --git a/docs/developer/architecture/core/elasticsearch-service.asciidoc b/docs/developer/architecture/core/elasticsearch-service.asciidoc index 83a35f30c9b16..0ad4226a1d7aa 100644 --- a/docs/developer/architecture/core/elasticsearch-service.asciidoc +++ b/docs/developer/architecture/core/elasticsearch-service.asciidoc @@ -24,5 +24,5 @@ export class MyPlugin implements Plugin { } ---- -For advanced use-cases, such as a search for specific objects, use the {kib-repo}blob/{branch}/x-pack/plugins/global_search/README.md[Global search plugin]. +For advanced use-cases, such as a search for specific objects, use the {kib-repo}blob/{branch}/x-pack/platform/plugins/shared/global_search/README.md[Global search plugin]. diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index a202454fcb796..5eb6ac5a50698 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -613,7 +613,7 @@ activities. |Fleet provides a web-based UI in Kibana for centrally managing Elastic Agents and their policies. -|{kib-repo}blob/{branch}/x-pack/plugins/global_search/README.md[globalSearch] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/global_search/README.md[globalSearch] |The GlobalSearch plugin provides an easy way to search for various objects, such as applications or dashboards from the Kibana instance, from both server and client-side plugins diff --git a/package.json b/package.json index 4ccd4069be6a7..7befa0c2755e8 100644 --- a/package.json +++ b/package.json @@ -547,7 +547,7 @@ "@kbn/generate-console-definitions": "link:packages/kbn-generate-console-definitions", "@kbn/generate-csv": "link:packages/kbn-generate-csv", "@kbn/global-search-bar-plugin": "link:x-pack/platform/plugins/private/global_search_bar", - "@kbn/global-search-plugin": "link:x-pack/plugins/global_search", + "@kbn/global-search-plugin": "link:x-pack/platform/plugins/shared/global_search", "@kbn/global-search-providers-plugin": "link:x-pack/plugins/global_search_providers", "@kbn/global-search-test-plugin": "link:x-pack/test/plugin_functional/plugins/global_search_test", "@kbn/graph-plugin": "link:x-pack/plugins/graph", diff --git a/tsconfig.base.json b/tsconfig.base.json index 980b39fc13185..15d6657dd7379 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -998,8 +998,8 @@ "@kbn/get-repo-files/*": ["packages/kbn-get-repo-files/*"], "@kbn/global-search-bar-plugin": ["x-pack/platform/plugins/private/global_search_bar"], "@kbn/global-search-bar-plugin/*": ["x-pack/platform/plugins/private/global_search_bar/*"], - "@kbn/global-search-plugin": ["x-pack/plugins/global_search"], - "@kbn/global-search-plugin/*": ["x-pack/plugins/global_search/*"], + "@kbn/global-search-plugin": ["x-pack/platform/plugins/shared/global_search"], + "@kbn/global-search-plugin/*": ["x-pack/platform/plugins/shared/global_search/*"], "@kbn/global-search-providers-plugin": ["x-pack/plugins/global_search_providers"], "@kbn/global-search-providers-plugin/*": ["x-pack/plugins/global_search_providers/*"], "@kbn/global-search-test-plugin": ["x-pack/test/plugin_functional/plugins/global_search_test"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index da47cbe81c80b..7a4eb6c029a36 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -47,7 +47,7 @@ "xpack.exploratoryView": "solutions/observability/plugins/exploratory_view", "xpack.fileUpload": "plugins/file_upload", "xpack.globalSearch": [ - "plugins/global_search" + "platform/plugins/shared/global_search" ], "xpack.globalSearchBar": [ "platform/plugins/private/global_search_bar" diff --git a/x-pack/plugins/global_search/README.md b/x-pack/platform/plugins/shared/global_search/README.md similarity index 93% rename from x-pack/plugins/global_search/README.md rename to x-pack/platform/plugins/shared/global_search/README.md index db72f4901c778..a6078ea1fdbd0 100644 --- a/x-pack/plugins/global_search/README.md +++ b/x-pack/platform/plugins/shared/global_search/README.md @@ -39,7 +39,7 @@ Results from providers registered from the client-side `registerResultProvider` not be available when performing a search from the server-side. For this reason, prefer registering providers using the server-side API when possible. -Refer to the [RFC](../../../rfcs/text/0011_global_search.md#result_provider_registration) for more details +Refer to the [RFC](../../../../../rfcs/text/0011_global_search.md#result_provider_registration) for more details ### Search completion cause diff --git a/x-pack/plugins/global_search/common/constants.ts b/x-pack/platform/plugins/shared/global_search/common/constants.ts similarity index 100% rename from x-pack/plugins/global_search/common/constants.ts rename to x-pack/platform/plugins/shared/global_search/common/constants.ts diff --git a/x-pack/plugins/global_search/common/errors.test.ts b/x-pack/platform/plugins/shared/global_search/common/errors.test.ts similarity index 100% rename from x-pack/plugins/global_search/common/errors.test.ts rename to x-pack/platform/plugins/shared/global_search/common/errors.test.ts diff --git a/x-pack/plugins/global_search/common/errors.ts b/x-pack/platform/plugins/shared/global_search/common/errors.ts similarity index 100% rename from x-pack/plugins/global_search/common/errors.ts rename to x-pack/platform/plugins/shared/global_search/common/errors.ts diff --git a/x-pack/plugins/global_search/common/license_checker.mock.ts b/x-pack/platform/plugins/shared/global_search/common/license_checker.mock.ts similarity index 100% rename from x-pack/plugins/global_search/common/license_checker.mock.ts rename to x-pack/platform/plugins/shared/global_search/common/license_checker.mock.ts diff --git a/x-pack/plugins/global_search/common/license_checker.test.ts b/x-pack/platform/plugins/shared/global_search/common/license_checker.test.ts similarity index 100% rename from x-pack/plugins/global_search/common/license_checker.test.ts rename to x-pack/platform/plugins/shared/global_search/common/license_checker.test.ts diff --git a/x-pack/plugins/global_search/common/license_checker.ts b/x-pack/platform/plugins/shared/global_search/common/license_checker.ts similarity index 100% rename from x-pack/plugins/global_search/common/license_checker.ts rename to x-pack/platform/plugins/shared/global_search/common/license_checker.ts diff --git a/x-pack/plugins/global_search/common/operators/index.ts b/x-pack/platform/plugins/shared/global_search/common/operators/index.ts similarity index 100% rename from x-pack/plugins/global_search/common/operators/index.ts rename to x-pack/platform/plugins/shared/global_search/common/operators/index.ts diff --git a/x-pack/plugins/global_search/common/operators/take_in_array.test.ts b/x-pack/platform/plugins/shared/global_search/common/operators/take_in_array.test.ts similarity index 100% rename from x-pack/plugins/global_search/common/operators/take_in_array.test.ts rename to x-pack/platform/plugins/shared/global_search/common/operators/take_in_array.test.ts diff --git a/x-pack/plugins/global_search/common/operators/take_in_array.ts b/x-pack/platform/plugins/shared/global_search/common/operators/take_in_array.ts similarity index 100% rename from x-pack/plugins/global_search/common/operators/take_in_array.ts rename to x-pack/platform/plugins/shared/global_search/common/operators/take_in_array.ts diff --git a/x-pack/plugins/global_search/common/process_result.test.mocks.ts b/x-pack/platform/plugins/shared/global_search/common/process_result.test.mocks.ts similarity index 100% rename from x-pack/plugins/global_search/common/process_result.test.mocks.ts rename to x-pack/platform/plugins/shared/global_search/common/process_result.test.mocks.ts diff --git a/x-pack/plugins/global_search/common/process_result.test.ts b/x-pack/platform/plugins/shared/global_search/common/process_result.test.ts similarity index 100% rename from x-pack/plugins/global_search/common/process_result.test.ts rename to x-pack/platform/plugins/shared/global_search/common/process_result.test.ts diff --git a/x-pack/plugins/global_search/common/process_result.ts b/x-pack/platform/plugins/shared/global_search/common/process_result.ts similarity index 100% rename from x-pack/plugins/global_search/common/process_result.ts rename to x-pack/platform/plugins/shared/global_search/common/process_result.ts diff --git a/x-pack/plugins/global_search/common/types.ts b/x-pack/platform/plugins/shared/global_search/common/types.ts similarity index 100% rename from x-pack/plugins/global_search/common/types.ts rename to x-pack/platform/plugins/shared/global_search/common/types.ts diff --git a/x-pack/plugins/global_search/common/utils.test.ts b/x-pack/platform/plugins/shared/global_search/common/utils.test.ts similarity index 100% rename from x-pack/plugins/global_search/common/utils.test.ts rename to x-pack/platform/plugins/shared/global_search/common/utils.test.ts diff --git a/x-pack/plugins/global_search/common/utils.ts b/x-pack/platform/plugins/shared/global_search/common/utils.ts similarity index 100% rename from x-pack/plugins/global_search/common/utils.ts rename to x-pack/platform/plugins/shared/global_search/common/utils.ts diff --git a/x-pack/plugins/global_search/jest.config.js b/x-pack/platform/plugins/shared/global_search/jest.config.js similarity index 64% rename from x-pack/plugins/global_search/jest.config.js rename to x-pack/platform/plugins/shared/global_search/jest.config.js index ba4c8130c375c..6bebb174d3ebb 100644 --- a/x-pack/plugins/global_search/jest.config.js +++ b/x-pack/platform/plugins/shared/global_search/jest.config.js @@ -7,11 +7,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/global_search'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/global_search', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/global_search'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/global_search', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/global_search/{common,public,server}/**/*.{ts,tsx}', + '/x-pack/platform/plugins/shared/global_search/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/x-pack/plugins/global_search/jest.integration.config.js b/x-pack/platform/plugins/shared/global_search/jest.integration.config.js similarity index 76% rename from x-pack/plugins/global_search/jest.integration.config.js rename to x-pack/platform/plugins/shared/global_search/jest.integration.config.js index 6fb4e4bfe6d68..623bdd46246cc 100644 --- a/x-pack/plugins/global_search/jest.integration.config.js +++ b/x-pack/platform/plugins/shared/global_search/jest.integration.config.js @@ -7,6 +7,6 @@ module.exports = { preset: '@kbn/test/jest_integration', - rootDir: '../../..', - roots: ['/x-pack/plugins/global_search'], + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/global_search'], }; diff --git a/x-pack/plugins/global_search/kibana.jsonc b/x-pack/platform/plugins/shared/global_search/kibana.jsonc similarity index 100% rename from x-pack/plugins/global_search/kibana.jsonc rename to x-pack/platform/plugins/shared/global_search/kibana.jsonc diff --git a/x-pack/plugins/global_search/public/config.ts b/x-pack/platform/plugins/shared/global_search/public/config.ts similarity index 100% rename from x-pack/plugins/global_search/public/config.ts rename to x-pack/platform/plugins/shared/global_search/public/config.ts diff --git a/x-pack/plugins/global_search/public/index.ts b/x-pack/platform/plugins/shared/global_search/public/index.ts similarity index 100% rename from x-pack/plugins/global_search/public/index.ts rename to x-pack/platform/plugins/shared/global_search/public/index.ts diff --git a/x-pack/plugins/global_search/public/mocks.ts b/x-pack/platform/plugins/shared/global_search/public/mocks.ts similarity index 100% rename from x-pack/plugins/global_search/public/mocks.ts rename to x-pack/platform/plugins/shared/global_search/public/mocks.ts diff --git a/x-pack/plugins/global_search/public/plugin.ts b/x-pack/platform/plugins/shared/global_search/public/plugin.ts similarity index 100% rename from x-pack/plugins/global_search/public/plugin.ts rename to x-pack/platform/plugins/shared/global_search/public/plugin.ts diff --git a/x-pack/plugins/global_search/public/services/fetch_server_results.test.ts b/x-pack/platform/plugins/shared/global_search/public/services/fetch_server_results.test.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/fetch_server_results.test.ts rename to x-pack/platform/plugins/shared/global_search/public/services/fetch_server_results.test.ts diff --git a/x-pack/plugins/global_search/public/services/fetch_server_results.ts b/x-pack/platform/plugins/shared/global_search/public/services/fetch_server_results.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/fetch_server_results.ts rename to x-pack/platform/plugins/shared/global_search/public/services/fetch_server_results.ts diff --git a/x-pack/plugins/global_search/public/services/fetch_server_searchable_types.test.ts b/x-pack/platform/plugins/shared/global_search/public/services/fetch_server_searchable_types.test.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/fetch_server_searchable_types.test.ts rename to x-pack/platform/plugins/shared/global_search/public/services/fetch_server_searchable_types.test.ts diff --git a/x-pack/plugins/global_search/public/services/fetch_server_searchable_types.ts b/x-pack/platform/plugins/shared/global_search/public/services/fetch_server_searchable_types.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/fetch_server_searchable_types.ts rename to x-pack/platform/plugins/shared/global_search/public/services/fetch_server_searchable_types.ts diff --git a/x-pack/plugins/global_search/public/services/index.ts b/x-pack/platform/plugins/shared/global_search/public/services/index.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/index.ts rename to x-pack/platform/plugins/shared/global_search/public/services/index.ts diff --git a/x-pack/plugins/global_search/public/services/search_service.mock.ts b/x-pack/platform/plugins/shared/global_search/public/services/search_service.mock.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/search_service.mock.ts rename to x-pack/platform/plugins/shared/global_search/public/services/search_service.mock.ts diff --git a/x-pack/plugins/global_search/public/services/search_service.test.mocks.ts b/x-pack/platform/plugins/shared/global_search/public/services/search_service.test.mocks.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/search_service.test.mocks.ts rename to x-pack/platform/plugins/shared/global_search/public/services/search_service.test.mocks.ts diff --git a/x-pack/plugins/global_search/public/services/search_service.test.ts b/x-pack/platform/plugins/shared/global_search/public/services/search_service.test.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/search_service.test.ts rename to x-pack/platform/plugins/shared/global_search/public/services/search_service.test.ts diff --git a/x-pack/plugins/global_search/public/services/search_service.ts b/x-pack/platform/plugins/shared/global_search/public/services/search_service.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/search_service.ts rename to x-pack/platform/plugins/shared/global_search/public/services/search_service.ts diff --git a/x-pack/plugins/global_search/public/services/types.ts b/x-pack/platform/plugins/shared/global_search/public/services/types.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/types.ts rename to x-pack/platform/plugins/shared/global_search/public/services/types.ts diff --git a/x-pack/plugins/global_search/public/services/utils.test.ts b/x-pack/platform/plugins/shared/global_search/public/services/utils.test.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/utils.test.ts rename to x-pack/platform/plugins/shared/global_search/public/services/utils.test.ts diff --git a/x-pack/plugins/global_search/public/services/utils.ts b/x-pack/platform/plugins/shared/global_search/public/services/utils.ts similarity index 100% rename from x-pack/plugins/global_search/public/services/utils.ts rename to x-pack/platform/plugins/shared/global_search/public/services/utils.ts diff --git a/x-pack/plugins/global_search/public/types.ts b/x-pack/platform/plugins/shared/global_search/public/types.ts similarity index 100% rename from x-pack/plugins/global_search/public/types.ts rename to x-pack/platform/plugins/shared/global_search/public/types.ts diff --git a/x-pack/plugins/global_search/server/config.ts b/x-pack/platform/plugins/shared/global_search/server/config.ts similarity index 100% rename from x-pack/plugins/global_search/server/config.ts rename to x-pack/platform/plugins/shared/global_search/server/config.ts diff --git a/x-pack/plugins/global_search/server/index.ts b/x-pack/platform/plugins/shared/global_search/server/index.ts similarity index 100% rename from x-pack/plugins/global_search/server/index.ts rename to x-pack/platform/plugins/shared/global_search/server/index.ts diff --git a/x-pack/plugins/global_search/server/mocks.ts b/x-pack/platform/plugins/shared/global_search/server/mocks.ts similarity index 100% rename from x-pack/plugins/global_search/server/mocks.ts rename to x-pack/platform/plugins/shared/global_search/server/mocks.ts diff --git a/x-pack/plugins/global_search/server/plugin.test.mocks.ts b/x-pack/platform/plugins/shared/global_search/server/plugin.test.mocks.ts similarity index 100% rename from x-pack/plugins/global_search/server/plugin.test.mocks.ts rename to x-pack/platform/plugins/shared/global_search/server/plugin.test.mocks.ts diff --git a/x-pack/plugins/global_search/server/plugin.test.ts b/x-pack/platform/plugins/shared/global_search/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/global_search/server/plugin.test.ts rename to x-pack/platform/plugins/shared/global_search/server/plugin.test.ts diff --git a/x-pack/plugins/global_search/server/plugin.ts b/x-pack/platform/plugins/shared/global_search/server/plugin.ts similarity index 100% rename from x-pack/plugins/global_search/server/plugin.ts rename to x-pack/platform/plugins/shared/global_search/server/plugin.ts diff --git a/x-pack/plugins/global_search/server/routes/find.ts b/x-pack/platform/plugins/shared/global_search/server/routes/find.ts similarity index 100% rename from x-pack/plugins/global_search/server/routes/find.ts rename to x-pack/platform/plugins/shared/global_search/server/routes/find.ts diff --git a/x-pack/plugins/global_search/server/routes/get_searchable_types.ts b/x-pack/platform/plugins/shared/global_search/server/routes/get_searchable_types.ts similarity index 100% rename from x-pack/plugins/global_search/server/routes/get_searchable_types.ts rename to x-pack/platform/plugins/shared/global_search/server/routes/get_searchable_types.ts diff --git a/x-pack/plugins/global_search/server/routes/index.test.ts b/x-pack/platform/plugins/shared/global_search/server/routes/index.test.ts similarity index 100% rename from x-pack/plugins/global_search/server/routes/index.test.ts rename to x-pack/platform/plugins/shared/global_search/server/routes/index.test.ts diff --git a/x-pack/plugins/global_search/server/routes/index.ts b/x-pack/platform/plugins/shared/global_search/server/routes/index.ts similarity index 100% rename from x-pack/plugins/global_search/server/routes/index.ts rename to x-pack/platform/plugins/shared/global_search/server/routes/index.ts diff --git a/x-pack/plugins/global_search/server/routes/integration_tests/find.test.ts b/x-pack/platform/plugins/shared/global_search/server/routes/integration_tests/find.test.ts similarity index 100% rename from x-pack/plugins/global_search/server/routes/integration_tests/find.test.ts rename to x-pack/platform/plugins/shared/global_search/server/routes/integration_tests/find.test.ts diff --git a/x-pack/plugins/global_search/server/routes/integration_tests/get_searchable_types.test.ts b/x-pack/platform/plugins/shared/global_search/server/routes/integration_tests/get_searchable_types.test.ts similarity index 100% rename from x-pack/plugins/global_search/server/routes/integration_tests/get_searchable_types.test.ts rename to x-pack/platform/plugins/shared/global_search/server/routes/integration_tests/get_searchable_types.test.ts diff --git a/x-pack/plugins/global_search/server/services/context.mock.ts b/x-pack/platform/plugins/shared/global_search/server/services/context.mock.ts similarity index 100% rename from x-pack/plugins/global_search/server/services/context.mock.ts rename to x-pack/platform/plugins/shared/global_search/server/services/context.mock.ts diff --git a/x-pack/plugins/global_search/server/services/context.test.ts b/x-pack/platform/plugins/shared/global_search/server/services/context.test.ts similarity index 100% rename from x-pack/plugins/global_search/server/services/context.test.ts rename to x-pack/platform/plugins/shared/global_search/server/services/context.test.ts diff --git a/x-pack/plugins/global_search/server/services/context.ts b/x-pack/platform/plugins/shared/global_search/server/services/context.ts similarity index 100% rename from x-pack/plugins/global_search/server/services/context.ts rename to x-pack/platform/plugins/shared/global_search/server/services/context.ts diff --git a/x-pack/plugins/global_search/server/services/index.ts b/x-pack/platform/plugins/shared/global_search/server/services/index.ts similarity index 100% rename from x-pack/plugins/global_search/server/services/index.ts rename to x-pack/platform/plugins/shared/global_search/server/services/index.ts diff --git a/x-pack/plugins/global_search/server/services/search_service.mock.ts b/x-pack/platform/plugins/shared/global_search/server/services/search_service.mock.ts similarity index 100% rename from x-pack/plugins/global_search/server/services/search_service.mock.ts rename to x-pack/platform/plugins/shared/global_search/server/services/search_service.mock.ts diff --git a/x-pack/plugins/global_search/server/services/search_service.test.ts b/x-pack/platform/plugins/shared/global_search/server/services/search_service.test.ts similarity index 100% rename from x-pack/plugins/global_search/server/services/search_service.test.ts rename to x-pack/platform/plugins/shared/global_search/server/services/search_service.test.ts diff --git a/x-pack/plugins/global_search/server/services/search_service.ts b/x-pack/platform/plugins/shared/global_search/server/services/search_service.ts similarity index 100% rename from x-pack/plugins/global_search/server/services/search_service.ts rename to x-pack/platform/plugins/shared/global_search/server/services/search_service.ts diff --git a/x-pack/plugins/global_search/server/services/utils.test.ts b/x-pack/platform/plugins/shared/global_search/server/services/utils.test.ts similarity index 100% rename from x-pack/plugins/global_search/server/services/utils.test.ts rename to x-pack/platform/plugins/shared/global_search/server/services/utils.test.ts diff --git a/x-pack/plugins/global_search/server/services/utils.ts b/x-pack/platform/plugins/shared/global_search/server/services/utils.ts similarity index 100% rename from x-pack/plugins/global_search/server/services/utils.ts rename to x-pack/platform/plugins/shared/global_search/server/services/utils.ts diff --git a/x-pack/plugins/global_search/server/types.ts b/x-pack/platform/plugins/shared/global_search/server/types.ts similarity index 100% rename from x-pack/plugins/global_search/server/types.ts rename to x-pack/platform/plugins/shared/global_search/server/types.ts diff --git a/x-pack/plugins/global_search/tsconfig.json b/x-pack/platform/plugins/shared/global_search/tsconfig.json similarity index 82% rename from x-pack/plugins/global_search/tsconfig.json rename to x-pack/platform/plugins/shared/global_search/tsconfig.json index 0c63083590437..5f01cb6d574ed 100644 --- a/x-pack/plugins/global_search/tsconfig.json +++ b/x-pack/platform/plugins/shared/global_search/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -7,7 +7,7 @@ "public/**/*", "server/**/*", "common/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/yarn.lock b/yarn.lock index 382af0945251d..814beafc29f78 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5813,7 +5813,7 @@ version "0.0.0" uid "" -"@kbn/global-search-plugin@link:x-pack/plugins/global_search": +"@kbn/global-search-plugin@link:x-pack/platform/plugins/shared/global_search": version "0.0.0" uid "" From 72bc3abf3adcd120725339c4efb0d85736e6c4d7 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:04:13 +0100 Subject: [PATCH 07/43] Relocating module `@kbn/global-search-providers-plugin` --- .github/CODEOWNERS | 4 ++-- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- .../plugins/private}/global_search_providers/README.md | 0 .../private}/global_search_providers/jest.config.js | 8 ++++---- .../plugins/private}/global_search_providers/kibana.jsonc | 0 .../private}/global_search_providers/public/index.ts | 0 .../global_search_providers/public/plugin.test.ts | 0 .../private}/global_search_providers/public/plugin.ts | 0 .../public/providers/application.test.mocks.ts | 0 .../public/providers/application.test.ts | 0 .../public/providers/application.ts | 0 .../public/providers/get_app_results.test.ts | 0 .../public/providers/get_app_results.ts | 0 .../global_search_providers/public/providers/index.ts | 0 .../private}/global_search_providers/server/index.ts | 0 .../global_search_providers/server/plugin.test.ts | 0 .../private}/global_search_providers/server/plugin.ts | 0 .../global_search_providers/server/providers/index.ts | 0 .../providers/saved_objects/get_searchable_types.test.ts | 0 .../providers/saved_objects/get_searchable_types.ts | 0 .../server/providers/saved_objects/index.ts | 0 .../providers/saved_objects/map_object_to_result.test.ts | 0 .../providers/saved_objects/map_object_to_result.ts | 0 .../server/providers/saved_objects/provider.test.ts | 0 .../server/providers/saved_objects/provider.ts | 0 .../private}/global_search_providers/tsconfig.json | 4 ++-- yarn.lock | 2 +- 29 files changed, 13 insertions(+), 13 deletions(-) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/jest.config.js (61%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/public/providers/application.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/public/providers/application.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/public/providers/application.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/public/providers/get_app_results.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/public/providers/get_app_results.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/public/providers/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/providers/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/providers/saved_objects/get_searchable_types.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/providers/saved_objects/get_searchable_types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/providers/saved_objects/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/providers/saved_objects/map_object_to_result.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/providers/saved_objects/map_object_to_result.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/providers/saved_objects/provider.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/server/providers/saved_objects/provider.ts (100%) rename x-pack/{plugins => platform/plugins/private}/global_search_providers/tsconfig.json (73%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0a5916dc4818a..c29ee6c74b16b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -844,6 +844,7 @@ x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux 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/global_search_bar @elastic/appex-sharedux +x-pack/platform/plugins/private/global_search_providers @elastic/appex-sharedux x-pack/platform/plugins/private/grokdebugger @elastic/kibana-management x-pack/platform/plugins/private/index_lifecycle_management @elastic/kibana-management x-pack/platform/plugins/private/license_api_guard @elastic/kibana-management @@ -891,7 +892,6 @@ x-pack/plugins/features @elastic/kibana-core x-pack/plugins/fields_metadata @elastic/obs-ux-logs-team x-pack/plugins/file_upload @elastic/kibana-presentation @elastic/ml-ui x-pack/plugins/fleet @elastic/fleet -x-pack/plugins/global_search_providers @elastic/appex-sharedux x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/index_management @elastic/kibana-management x-pack/plugins/lens @elastic/kibana-visualizations @@ -1829,7 +1829,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql #CC# /x-pack/plugins/features/ @elastic/kibana-core #CC# /x-pack/platform/plugins/shared/global_search/ @elastic/kibana-core #CC# /src/plugins/newsfeed @elastic/kibana-core -#CC# /x-pack/plugins/global_search_providers/ @elastic/kibana-core +#CC# /x-pack/platform/plugins/private/global_search_providers/ @elastic/kibana-core # AppEx AI Infra /x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra @elastic/obs-ai-assistant @elastic/security-generative-ai diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 5eb6ac5a50698..9cf2b3d1e1f56 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -622,7 +622,7 @@ or dashboards from the Kibana instance, from both server and client-side plugins |The GlobalSearchBar plugin provides a search interface for navigating Kibana. (It is the UI to the GlobalSearch plugin.) -|{kib-repo}blob/{branch}/x-pack/plugins/global_search_providers/README.md[globalSearchProviders] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/global_search_providers/README.md[globalSearchProviders] |The globalSearchProviders plugin provides Kibana default search providers for the GlobalSearch plugin. diff --git a/package.json b/package.json index 7befa0c2755e8..fbdf223f689e0 100644 --- a/package.json +++ b/package.json @@ -548,7 +548,7 @@ "@kbn/generate-csv": "link:packages/kbn-generate-csv", "@kbn/global-search-bar-plugin": "link:x-pack/platform/plugins/private/global_search_bar", "@kbn/global-search-plugin": "link:x-pack/platform/plugins/shared/global_search", - "@kbn/global-search-providers-plugin": "link:x-pack/plugins/global_search_providers", + "@kbn/global-search-providers-plugin": "link:x-pack/platform/plugins/private/global_search_providers", "@kbn/global-search-test-plugin": "link:x-pack/test/plugin_functional/plugins/global_search_test", "@kbn/graph-plugin": "link:x-pack/plugins/graph", "@kbn/grid-example-plugin": "link:examples/grid_example", diff --git a/tsconfig.base.json b/tsconfig.base.json index 15d6657dd7379..9492a9ffdae8c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1000,8 +1000,8 @@ "@kbn/global-search-bar-plugin/*": ["x-pack/platform/plugins/private/global_search_bar/*"], "@kbn/global-search-plugin": ["x-pack/platform/plugins/shared/global_search"], "@kbn/global-search-plugin/*": ["x-pack/platform/plugins/shared/global_search/*"], - "@kbn/global-search-providers-plugin": ["x-pack/plugins/global_search_providers"], - "@kbn/global-search-providers-plugin/*": ["x-pack/plugins/global_search_providers/*"], + "@kbn/global-search-providers-plugin": ["x-pack/platform/plugins/private/global_search_providers"], + "@kbn/global-search-providers-plugin/*": ["x-pack/platform/plugins/private/global_search_providers/*"], "@kbn/global-search-test-plugin": ["x-pack/test/plugin_functional/plugins/global_search_test"], "@kbn/global-search-test-plugin/*": ["x-pack/test/plugin_functional/plugins/global_search_test/*"], "@kbn/graph-plugin": ["x-pack/plugins/graph"], diff --git a/x-pack/plugins/global_search_providers/README.md b/x-pack/platform/plugins/private/global_search_providers/README.md similarity index 100% rename from x-pack/plugins/global_search_providers/README.md rename to x-pack/platform/plugins/private/global_search_providers/README.md diff --git a/x-pack/plugins/global_search_providers/jest.config.js b/x-pack/platform/plugins/private/global_search_providers/jest.config.js similarity index 61% rename from x-pack/plugins/global_search_providers/jest.config.js rename to x-pack/platform/plugins/private/global_search_providers/jest.config.js index 231b444585b03..6a34afbd4820c 100644 --- a/x-pack/plugins/global_search_providers/jest.config.js +++ b/x-pack/platform/plugins/private/global_search_providers/jest.config.js @@ -7,11 +7,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/global_search_providers'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/global_search_providers', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/global_search_providers'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/global_search_providers', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/global_search_providers/{public,server}/**/*.{ts,tsx}', + '/x-pack/platform/plugins/private/global_search_providers/{public,server}/**/*.{ts,tsx}', ], }; diff --git a/x-pack/plugins/global_search_providers/kibana.jsonc b/x-pack/platform/plugins/private/global_search_providers/kibana.jsonc similarity index 100% rename from x-pack/plugins/global_search_providers/kibana.jsonc rename to x-pack/platform/plugins/private/global_search_providers/kibana.jsonc diff --git a/x-pack/plugins/global_search_providers/public/index.ts b/x-pack/platform/plugins/private/global_search_providers/public/index.ts similarity index 100% rename from x-pack/plugins/global_search_providers/public/index.ts rename to x-pack/platform/plugins/private/global_search_providers/public/index.ts diff --git a/x-pack/plugins/global_search_providers/public/plugin.test.ts b/x-pack/platform/plugins/private/global_search_providers/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/global_search_providers/public/plugin.test.ts rename to x-pack/platform/plugins/private/global_search_providers/public/plugin.test.ts diff --git a/x-pack/plugins/global_search_providers/public/plugin.ts b/x-pack/platform/plugins/private/global_search_providers/public/plugin.ts similarity index 100% rename from x-pack/plugins/global_search_providers/public/plugin.ts rename to x-pack/platform/plugins/private/global_search_providers/public/plugin.ts diff --git a/x-pack/plugins/global_search_providers/public/providers/application.test.mocks.ts b/x-pack/platform/plugins/private/global_search_providers/public/providers/application.test.mocks.ts similarity index 100% rename from x-pack/plugins/global_search_providers/public/providers/application.test.mocks.ts rename to x-pack/platform/plugins/private/global_search_providers/public/providers/application.test.mocks.ts diff --git a/x-pack/plugins/global_search_providers/public/providers/application.test.ts b/x-pack/platform/plugins/private/global_search_providers/public/providers/application.test.ts similarity index 100% rename from x-pack/plugins/global_search_providers/public/providers/application.test.ts rename to x-pack/platform/plugins/private/global_search_providers/public/providers/application.test.ts diff --git a/x-pack/plugins/global_search_providers/public/providers/application.ts b/x-pack/platform/plugins/private/global_search_providers/public/providers/application.ts similarity index 100% rename from x-pack/plugins/global_search_providers/public/providers/application.ts rename to x-pack/platform/plugins/private/global_search_providers/public/providers/application.ts diff --git a/x-pack/plugins/global_search_providers/public/providers/get_app_results.test.ts b/x-pack/platform/plugins/private/global_search_providers/public/providers/get_app_results.test.ts similarity index 100% rename from x-pack/plugins/global_search_providers/public/providers/get_app_results.test.ts rename to x-pack/platform/plugins/private/global_search_providers/public/providers/get_app_results.test.ts diff --git a/x-pack/plugins/global_search_providers/public/providers/get_app_results.ts b/x-pack/platform/plugins/private/global_search_providers/public/providers/get_app_results.ts similarity index 100% rename from x-pack/plugins/global_search_providers/public/providers/get_app_results.ts rename to x-pack/platform/plugins/private/global_search_providers/public/providers/get_app_results.ts diff --git a/x-pack/plugins/global_search_providers/public/providers/index.ts b/x-pack/platform/plugins/private/global_search_providers/public/providers/index.ts similarity index 100% rename from x-pack/plugins/global_search_providers/public/providers/index.ts rename to x-pack/platform/plugins/private/global_search_providers/public/providers/index.ts diff --git a/x-pack/plugins/global_search_providers/server/index.ts b/x-pack/platform/plugins/private/global_search_providers/server/index.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/index.ts rename to x-pack/platform/plugins/private/global_search_providers/server/index.ts diff --git a/x-pack/plugins/global_search_providers/server/plugin.test.ts b/x-pack/platform/plugins/private/global_search_providers/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/plugin.test.ts rename to x-pack/platform/plugins/private/global_search_providers/server/plugin.test.ts diff --git a/x-pack/plugins/global_search_providers/server/plugin.ts b/x-pack/platform/plugins/private/global_search_providers/server/plugin.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/plugin.ts rename to x-pack/platform/plugins/private/global_search_providers/server/plugin.ts diff --git a/x-pack/plugins/global_search_providers/server/providers/index.ts b/x-pack/platform/plugins/private/global_search_providers/server/providers/index.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/providers/index.ts rename to x-pack/platform/plugins/private/global_search_providers/server/providers/index.ts diff --git a/x-pack/plugins/global_search_providers/server/providers/saved_objects/get_searchable_types.test.ts b/x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/get_searchable_types.test.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/providers/saved_objects/get_searchable_types.test.ts rename to x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/get_searchable_types.test.ts diff --git a/x-pack/plugins/global_search_providers/server/providers/saved_objects/get_searchable_types.ts b/x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/get_searchable_types.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/providers/saved_objects/get_searchable_types.ts rename to x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/get_searchable_types.ts diff --git a/x-pack/plugins/global_search_providers/server/providers/saved_objects/index.ts b/x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/providers/saved_objects/index.ts rename to x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/index.ts diff --git a/x-pack/plugins/global_search_providers/server/providers/saved_objects/map_object_to_result.test.ts b/x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/map_object_to_result.test.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/providers/saved_objects/map_object_to_result.test.ts rename to x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/map_object_to_result.test.ts diff --git a/x-pack/plugins/global_search_providers/server/providers/saved_objects/map_object_to_result.ts b/x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/map_object_to_result.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/providers/saved_objects/map_object_to_result.ts rename to x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/map_object_to_result.ts diff --git a/x-pack/plugins/global_search_providers/server/providers/saved_objects/provider.test.ts b/x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/provider.test.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/providers/saved_objects/provider.test.ts rename to x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/provider.test.ts diff --git a/x-pack/plugins/global_search_providers/server/providers/saved_objects/provider.ts b/x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/provider.ts similarity index 100% rename from x-pack/plugins/global_search_providers/server/providers/saved_objects/provider.ts rename to x-pack/platform/plugins/private/global_search_providers/server/providers/saved_objects/provider.ts diff --git a/x-pack/plugins/global_search_providers/tsconfig.json b/x-pack/platform/plugins/private/global_search_providers/tsconfig.json similarity index 73% rename from x-pack/plugins/global_search_providers/tsconfig.json rename to x-pack/platform/plugins/private/global_search_providers/tsconfig.json index 45c5e2865f500..9a084c6356c5a 100644 --- a/x-pack/plugins/global_search_providers/tsconfig.json +++ b/x-pack/platform/plugins/private/global_search_providers/tsconfig.json @@ -1,12 +1,12 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, "include": [ "public/**/*", "server/**/*", - "../../../typings/**/*", + "../../../../../typings/**/*", ], "kbn_references": [ "@kbn/core", diff --git a/yarn.lock b/yarn.lock index 814beafc29f78..eea3899a0542a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5817,7 +5817,7 @@ version "0.0.0" uid "" -"@kbn/global-search-providers-plugin@link:x-pack/plugins/global_search_providers": +"@kbn/global-search-providers-plugin@link:x-pack/platform/plugins/private/global_search_providers": version "0.0.0" uid "" From 82904c4e65b227177a9de65f69b202c88b170c85 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:05:47 +0100 Subject: [PATCH 08/43] Relocating module `@kbn/guided-onboarding-plugin` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- examples/guided_onboarding_example/README.md | 2 +- package.json | 2 +- .../plugins/shared}/guided_onboarding/.i18nrc.json | 0 .../plugins/shared}/guided_onboarding/README.md | 4 ++-- .../guided_onboarding/assets/panel_bg_bottom.svg | 0 .../assets/panel_bg_bottom_dark.svg | 0 .../guided_onboarding/assets/panel_bg_top.svg | 0 .../guided_onboarding/assets/panel_bg_top_dark.svg | 0 .../guided_onboarding/assets/well_done_animated.gif | Bin .../assets/well_done_animated_dark.gif | Bin .../shared}/guided_onboarding/common/constants.ts | 0 .../shared}/guided_onboarding/common/index.ts | 0 .../shared}/guided_onboarding/common/types.ts | 0 .../shared}/guided_onboarding/jest.config.js | 8 ++++---- .../plugins/shared}/guided_onboarding/kibana.jsonc | 0 .../public/components/get_step_location.test.ts | 0 .../public/components/get_step_location.ts | 0 .../public/components/guide_button.tsx | 0 .../public/components/guide_button_popover.tsx | 0 .../public/components/guide_panel.styles.ts | 0 .../public/components/guide_panel.test.tsx | 0 .../public/components/guide_panel.tsx | 0 .../guide_panel_flyout/guide_panel_flyout_body.tsx | 0 .../guide_panel_flyout_footer.tsx | 0 .../guide_panel_flyout_header.tsx | 0 .../guide_panel_flyout/guide_progress.tsx | 0 .../public/components/guide_panel_flyout/index.tsx | 0 .../public/components/guide_panel_step.styles.ts | 0 .../public/components/guide_panel_step.tsx | 0 .../guided_onboarding/public/components/index.ts | 0 .../public/components/quit_guide_modal.tsx | 0 .../shared}/guided_onboarding/public/index.ts | 0 .../shared}/guided_onboarding/public/mocks.ts | 0 .../shared}/guided_onboarding/public/plugin.tsx | 0 .../guided_onboarding/public/services/api.mocks.ts | 0 .../public/services/api.service.test.ts | 0 .../public/services/api.service.ts | 0 .../public/services/config.service.test.ts | 0 .../public/services/config.service.ts | 0 .../public/services/helpers.test.ts | 0 .../guided_onboarding/public/services/helpers.ts | 0 .../shared}/guided_onboarding/public/types.ts | 0 .../shared}/guided_onboarding/server/config.ts | 0 .../shared}/guided_onboarding/server/feature.ts | 0 .../server/helpers/guide_state_utils.ts | 0 .../guided_onboarding/server/helpers/index.ts | 0 .../server/helpers/plugin_state_utils.test.ts | 0 .../server/helpers/plugin_state_utils.ts | 0 .../shared}/guided_onboarding/server/index.ts | 0 .../shared}/guided_onboarding/server/plugin.ts | 0 .../server/routes/config_routes.ts | 0 .../server/routes/guide_state_routes.ts | 0 .../guided_onboarding/server/routes/index.ts | 0 .../server/routes/plugin_state_routes.ts | 0 .../server/saved_objects/guided_setup.ts | 0 .../guided_onboarding/server/saved_objects/index.ts | 0 .../shared}/guided_onboarding/server/types.ts | 0 .../plugins/shared}/guided_onboarding/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 63 files changed, 15 insertions(+), 15 deletions(-) rename src/{plugins => platform/plugins/shared}/guided_onboarding/.i18nrc.json (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/README.md (93%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/assets/panel_bg_bottom.svg (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/assets/panel_bg_bottom_dark.svg (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/assets/panel_bg_top.svg (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/assets/panel_bg_top_dark.svg (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/assets/well_done_animated.gif (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/assets/well_done_animated_dark.gif (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/common/types.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/jest.config.js (72%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/get_step_location.test.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/get_step_location.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_button.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_button_popover.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel.styles.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_body.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_footer.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_header.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel_flyout/guide_progress.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel_flyout/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel_step.styles.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/guide_panel_step.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/components/quit_guide_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/services/api.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/services/api.service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/services/api.service.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/services/config.service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/services/config.service.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/services/helpers.test.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/services/helpers.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/config.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/feature.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/helpers/guide_state_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/helpers/index.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/helpers/plugin_state_utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/helpers/plugin_state_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/routes/config_routes.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/routes/guide_state_routes.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/routes/plugin_state_routes.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/saved_objects/guided_setup.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/saved_objects/index.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/guided_onboarding/tsconfig.json (92%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c29ee6c74b16b..a3c6e69f7b86a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -619,6 +619,7 @@ src/platform/plugins/shared/es_ui_shared @elastic/kibana-management src/platform/plugins/shared/esql @elastic/kibana-esql src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql src/platform/plugins/shared/files @elastic/appex-sharedux +src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux @@ -653,7 +654,6 @@ src/plugins/expression_shape @elastic/kibana-presentation src/plugins/expressions @elastic/kibana-visualizations src/plugins/field_formats @elastic/kibana-data-discovery src/plugins/ftr_apis @elastic/kibana-core -src/plugins/guided_onboarding @elastic/appex-sharedux src/plugins/home @elastic/appex-sharedux src/plugins/image_embeddable @elastic/appex-sharedux src/plugins/input_control_vis @elastic/kibana-presentation diff --git a/.i18nrc.json b/.i18nrc.json index a2dddca540a11..f42704b8323fe 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -66,7 +66,7 @@ "generateCsv": "packages/kbn-generate-csv", "grouping": "packages/kbn-grouping/src", "alertsGrouping": "packages/kbn-alerts-grouping", - "guidedOnboarding": "src/plugins/guided_onboarding", + "guidedOnboarding": "src/platform/plugins/shared/guided_onboarding", "guidedOnboardingPackage": "packages/kbn-guided-onboarding", "home": "src/plugins/home", "homePackages": "packages/home", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 9cf2b3d1e1f56..5f23149ac7530 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -212,7 +212,7 @@ for use in their own application. |This plugin exposes a set of APIs used internally during functional tests by the FTR. -|{kib-repo}blob/{branch}/src/plugins/guided_onboarding/README.md[guidedOnboarding] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/guided_onboarding/README.md[guidedOnboarding] |This plugin contains the code for the Guided Onboarding project. Guided onboarding consists of guides for Solutions (Enterprise Search, Observability, Security) that can be completed as a checklist of steps. The guides help users to ingest their data and to navigate to the correct Solutions pages. diff --git a/examples/guided_onboarding_example/README.md b/examples/guided_onboarding_example/README.md index 544db5b5731e8..0034cd8d87844 100755 --- a/examples/guided_onboarding_example/README.md +++ b/examples/guided_onboarding_example/README.md @@ -1,6 +1,6 @@ # guidedOnboardingExample -This plugin contains code examples for the Guided Onboarding plugin. More information can be found in `KIBANA_FOLDER/src/plugins/guided_onboarding/README.md` +This plugin contains code examples for the Guided Onboarding plugin. More information can be found in `KIBANA_FOLDER/src/platform/plugins/shared/guided_onboarding/README.md` --- diff --git a/package.json b/package.json index fbdf223f689e0..bef2be202319b 100644 --- a/package.json +++ b/package.json @@ -557,7 +557,7 @@ "@kbn/grouping": "link:packages/kbn-grouping", "@kbn/guided-onboarding": "link:packages/kbn-guided-onboarding", "@kbn/guided-onboarding-example-plugin": "link:examples/guided_onboarding_example", - "@kbn/guided-onboarding-plugin": "link:src/plugins/guided_onboarding", + "@kbn/guided-onboarding-plugin": "link:src/platform/plugins/shared/guided_onboarding", "@kbn/handlebars": "link:packages/kbn-handlebars", "@kbn/hapi-mocks": "link:packages/kbn-hapi-mocks", "@kbn/hardening-plugin": "link:test/plugin_functional/plugins/hardening", diff --git a/src/plugins/guided_onboarding/.i18nrc.json b/src/platform/plugins/shared/guided_onboarding/.i18nrc.json similarity index 100% rename from src/plugins/guided_onboarding/.i18nrc.json rename to src/platform/plugins/shared/guided_onboarding/.i18nrc.json diff --git a/src/plugins/guided_onboarding/README.md b/src/platform/plugins/shared/guided_onboarding/README.md similarity index 93% rename from src/plugins/guided_onboarding/README.md rename to src/platform/plugins/shared/guided_onboarding/README.md index f5e1ae42e71ab..8a4121599e2e9 100755 --- a/src/plugins/guided_onboarding/README.md +++ b/src/platform/plugins/shared/guided_onboarding/README.md @@ -22,12 +22,12 @@ The plugin’s state keeps track of which guide has been started and its current ## Architecture description -The guided onboarding is currently implemented in a separate `guided_onboarding` plugin that contains the code for the header button ([link](https://github.com/elastic/kibana/blob/main/src/plugins/guided_onboarding/public/components/guide_button.tsx)), the dropdown panel ([link](https://github.com/elastic/kibana/blob/main/src/plugins/guided_onboarding/public/components/guide_panel.tsx)) and the API service ([link](https://github.com/elastic/kibana/blob/main/src/plugins/guided_onboarding/public/services/api.service.ts)) exposed out of the client side that can be used by other plugins to get/update the state of the guided onboarding. +The guided onboarding is currently implemented in a separate `guided_onboarding` plugin that contains the code for the header button ([link](https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/guided_onboarding/public/components/guide_button.tsx)), the dropdown panel ([link](https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel.tsx)) and the API service ([link](https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/guided_onboarding/public/services/api.service.ts)) exposed out of the client side that can be used by other plugins to get/update the state of the guided onboarding. For example, when a user goes through the SIEM guide they are first taken to the integrations page where they follow some EUI tour steps and install the Elastic Agent and the Elastic Defend integration. The code on the integrations page uses the guided onboarding API service to check if a guide for the Elastic Defend integration is currently in progress. If yes, the page will display the EUI tour steps to guide the user. The page will also use the API service to update the guided onboarding state to the next step when the user completes the installation. There is also a server side in the guided onboarding plugin that creates several endpoints for plugin only internal use. The endpoints are for fetching the guide configs, the state of the guided onboarding and to update the state. -The server side also exposes a function ([link](https://github.com/elastic/kibana/blob/main/src/plugins/guided_onboarding/server/plugin.ts#L40)) that is used by consumers to register their guide configs. That way the config files are a part of the consumers code and the guided onboarding is only used as a framework. +The server side also exposes a function ([link](https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/guided_onboarding/server/plugin.ts#L40)) that is used by consumers to register their guide configs. That way the config files are a part of the consumers code and the guided onboarding is only used as a framework. Another part of the guided onboarding code is in the home plugin where the code for the landing page ([link](https://github.com/elastic/kibana/tree/main/src/plugins/home/public/application/components/guided_onboarding)) is situated. The landing page can be found under `/app/home#/getting_started` and there is some logic ([link](https://github.com/elastic/kibana/blob/main/src/plugins/home/public/application/components/home.tsx#L200)) that redirects the user to the landing page when the deployment is new (i.e. there is no data in the deployment). Some of the static components for the landing page were extracted to the `kbn-guided-onboarding` package ([link](https://github.com/elastic/kibana/tree/main/packages/kbn-guided-onboarding)). diff --git a/src/plugins/guided_onboarding/assets/panel_bg_bottom.svg b/src/platform/plugins/shared/guided_onboarding/assets/panel_bg_bottom.svg similarity index 100% rename from src/plugins/guided_onboarding/assets/panel_bg_bottom.svg rename to src/platform/plugins/shared/guided_onboarding/assets/panel_bg_bottom.svg diff --git a/src/plugins/guided_onboarding/assets/panel_bg_bottom_dark.svg b/src/platform/plugins/shared/guided_onboarding/assets/panel_bg_bottom_dark.svg similarity index 100% rename from src/plugins/guided_onboarding/assets/panel_bg_bottom_dark.svg rename to src/platform/plugins/shared/guided_onboarding/assets/panel_bg_bottom_dark.svg diff --git a/src/plugins/guided_onboarding/assets/panel_bg_top.svg b/src/platform/plugins/shared/guided_onboarding/assets/panel_bg_top.svg similarity index 100% rename from src/plugins/guided_onboarding/assets/panel_bg_top.svg rename to src/platform/plugins/shared/guided_onboarding/assets/panel_bg_top.svg diff --git a/src/plugins/guided_onboarding/assets/panel_bg_top_dark.svg b/src/platform/plugins/shared/guided_onboarding/assets/panel_bg_top_dark.svg similarity index 100% rename from src/plugins/guided_onboarding/assets/panel_bg_top_dark.svg rename to src/platform/plugins/shared/guided_onboarding/assets/panel_bg_top_dark.svg diff --git a/src/plugins/guided_onboarding/assets/well_done_animated.gif b/src/platform/plugins/shared/guided_onboarding/assets/well_done_animated.gif similarity index 100% rename from src/plugins/guided_onboarding/assets/well_done_animated.gif rename to src/platform/plugins/shared/guided_onboarding/assets/well_done_animated.gif diff --git a/src/plugins/guided_onboarding/assets/well_done_animated_dark.gif b/src/platform/plugins/shared/guided_onboarding/assets/well_done_animated_dark.gif similarity index 100% rename from src/plugins/guided_onboarding/assets/well_done_animated_dark.gif rename to src/platform/plugins/shared/guided_onboarding/assets/well_done_animated_dark.gif diff --git a/src/plugins/guided_onboarding/common/constants.ts b/src/platform/plugins/shared/guided_onboarding/common/constants.ts similarity index 100% rename from src/plugins/guided_onboarding/common/constants.ts rename to src/platform/plugins/shared/guided_onboarding/common/constants.ts diff --git a/src/plugins/guided_onboarding/common/index.ts b/src/platform/plugins/shared/guided_onboarding/common/index.ts similarity index 100% rename from src/plugins/guided_onboarding/common/index.ts rename to src/platform/plugins/shared/guided_onboarding/common/index.ts diff --git a/src/plugins/guided_onboarding/common/types.ts b/src/platform/plugins/shared/guided_onboarding/common/types.ts similarity index 100% rename from src/plugins/guided_onboarding/common/types.ts rename to src/platform/plugins/shared/guided_onboarding/common/types.ts diff --git a/src/plugins/guided_onboarding/jest.config.js b/src/platform/plugins/shared/guided_onboarding/jest.config.js similarity index 72% rename from src/plugins/guided_onboarding/jest.config.js rename to src/platform/plugins/shared/guided_onboarding/jest.config.js index f1bebac931ece..d09dca92f008a 100644 --- a/src/plugins/guided_onboarding/jest.config.js +++ b/src/platform/plugins/shared/guided_onboarding/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/guided_onboarding'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/guided_onboarding', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/guided_onboarding'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/guided_onboarding', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/guided_onboarding/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/guided_onboarding/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/guided_onboarding/kibana.jsonc b/src/platform/plugins/shared/guided_onboarding/kibana.jsonc similarity index 100% rename from src/plugins/guided_onboarding/kibana.jsonc rename to src/platform/plugins/shared/guided_onboarding/kibana.jsonc diff --git a/src/plugins/guided_onboarding/public/components/get_step_location.test.ts b/src/platform/plugins/shared/guided_onboarding/public/components/get_step_location.test.ts similarity index 100% rename from src/plugins/guided_onboarding/public/components/get_step_location.test.ts rename to src/platform/plugins/shared/guided_onboarding/public/components/get_step_location.test.ts diff --git a/src/plugins/guided_onboarding/public/components/get_step_location.ts b/src/platform/plugins/shared/guided_onboarding/public/components/get_step_location.ts similarity index 100% rename from src/plugins/guided_onboarding/public/components/get_step_location.ts rename to src/platform/plugins/shared/guided_onboarding/public/components/get_step_location.ts diff --git a/src/plugins/guided_onboarding/public/components/guide_button.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_button.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_button.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_button.tsx diff --git a/src/plugins/guided_onboarding/public/components/guide_button_popover.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_button_popover.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_button_popover.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_button_popover.tsx diff --git a/src/plugins/guided_onboarding/public/components/guide_panel.styles.ts b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel.styles.ts similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel.styles.ts rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel.styles.ts diff --git a/src/plugins/guided_onboarding/public/components/guide_panel.test.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel.test.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel.test.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel.test.tsx diff --git a/src/plugins/guided_onboarding/public/components/guide_panel.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel.tsx diff --git a/src/plugins/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_body.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_body.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_body.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_body.tsx diff --git a/src/plugins/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_footer.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_footer.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_footer.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_footer.tsx diff --git a/src/plugins/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_header.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_header.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_header.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/guide_panel_flyout_header.tsx diff --git a/src/plugins/guided_onboarding/public/components/guide_panel_flyout/guide_progress.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/guide_progress.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel_flyout/guide_progress.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/guide_progress.tsx diff --git a/src/plugins/guided_onboarding/public/components/guide_panel_flyout/index.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/index.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel_flyout/index.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_flyout/index.tsx diff --git a/src/plugins/guided_onboarding/public/components/guide_panel_step.styles.ts b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_step.styles.ts similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel_step.styles.ts rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_step.styles.ts diff --git a/src/plugins/guided_onboarding/public/components/guide_panel_step.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_step.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/guide_panel_step.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/guide_panel_step.tsx diff --git a/src/plugins/guided_onboarding/public/components/index.ts b/src/platform/plugins/shared/guided_onboarding/public/components/index.ts similarity index 100% rename from src/plugins/guided_onboarding/public/components/index.ts rename to src/platform/plugins/shared/guided_onboarding/public/components/index.ts diff --git a/src/plugins/guided_onboarding/public/components/quit_guide_modal.tsx b/src/platform/plugins/shared/guided_onboarding/public/components/quit_guide_modal.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/components/quit_guide_modal.tsx rename to src/platform/plugins/shared/guided_onboarding/public/components/quit_guide_modal.tsx diff --git a/src/plugins/guided_onboarding/public/index.ts b/src/platform/plugins/shared/guided_onboarding/public/index.ts similarity index 100% rename from src/plugins/guided_onboarding/public/index.ts rename to src/platform/plugins/shared/guided_onboarding/public/index.ts diff --git a/src/plugins/guided_onboarding/public/mocks.ts b/src/platform/plugins/shared/guided_onboarding/public/mocks.ts similarity index 100% rename from src/plugins/guided_onboarding/public/mocks.ts rename to src/platform/plugins/shared/guided_onboarding/public/mocks.ts diff --git a/src/plugins/guided_onboarding/public/plugin.tsx b/src/platform/plugins/shared/guided_onboarding/public/plugin.tsx similarity index 100% rename from src/plugins/guided_onboarding/public/plugin.tsx rename to src/platform/plugins/shared/guided_onboarding/public/plugin.tsx diff --git a/src/plugins/guided_onboarding/public/services/api.mocks.ts b/src/platform/plugins/shared/guided_onboarding/public/services/api.mocks.ts similarity index 100% rename from src/plugins/guided_onboarding/public/services/api.mocks.ts rename to src/platform/plugins/shared/guided_onboarding/public/services/api.mocks.ts diff --git a/src/plugins/guided_onboarding/public/services/api.service.test.ts b/src/platform/plugins/shared/guided_onboarding/public/services/api.service.test.ts similarity index 100% rename from src/plugins/guided_onboarding/public/services/api.service.test.ts rename to src/platform/plugins/shared/guided_onboarding/public/services/api.service.test.ts diff --git a/src/plugins/guided_onboarding/public/services/api.service.ts b/src/platform/plugins/shared/guided_onboarding/public/services/api.service.ts similarity index 100% rename from src/plugins/guided_onboarding/public/services/api.service.ts rename to src/platform/plugins/shared/guided_onboarding/public/services/api.service.ts diff --git a/src/plugins/guided_onboarding/public/services/config.service.test.ts b/src/platform/plugins/shared/guided_onboarding/public/services/config.service.test.ts similarity index 100% rename from src/plugins/guided_onboarding/public/services/config.service.test.ts rename to src/platform/plugins/shared/guided_onboarding/public/services/config.service.test.ts diff --git a/src/plugins/guided_onboarding/public/services/config.service.ts b/src/platform/plugins/shared/guided_onboarding/public/services/config.service.ts similarity index 100% rename from src/plugins/guided_onboarding/public/services/config.service.ts rename to src/platform/plugins/shared/guided_onboarding/public/services/config.service.ts diff --git a/src/plugins/guided_onboarding/public/services/helpers.test.ts b/src/platform/plugins/shared/guided_onboarding/public/services/helpers.test.ts similarity index 100% rename from src/plugins/guided_onboarding/public/services/helpers.test.ts rename to src/platform/plugins/shared/guided_onboarding/public/services/helpers.test.ts diff --git a/src/plugins/guided_onboarding/public/services/helpers.ts b/src/platform/plugins/shared/guided_onboarding/public/services/helpers.ts similarity index 100% rename from src/plugins/guided_onboarding/public/services/helpers.ts rename to src/platform/plugins/shared/guided_onboarding/public/services/helpers.ts diff --git a/src/plugins/guided_onboarding/public/types.ts b/src/platform/plugins/shared/guided_onboarding/public/types.ts similarity index 100% rename from src/plugins/guided_onboarding/public/types.ts rename to src/platform/plugins/shared/guided_onboarding/public/types.ts diff --git a/src/plugins/guided_onboarding/server/config.ts b/src/platform/plugins/shared/guided_onboarding/server/config.ts similarity index 100% rename from src/plugins/guided_onboarding/server/config.ts rename to src/platform/plugins/shared/guided_onboarding/server/config.ts diff --git a/src/plugins/guided_onboarding/server/feature.ts b/src/platform/plugins/shared/guided_onboarding/server/feature.ts similarity index 100% rename from src/plugins/guided_onboarding/server/feature.ts rename to src/platform/plugins/shared/guided_onboarding/server/feature.ts diff --git a/src/plugins/guided_onboarding/server/helpers/guide_state_utils.ts b/src/platform/plugins/shared/guided_onboarding/server/helpers/guide_state_utils.ts similarity index 100% rename from src/plugins/guided_onboarding/server/helpers/guide_state_utils.ts rename to src/platform/plugins/shared/guided_onboarding/server/helpers/guide_state_utils.ts diff --git a/src/plugins/guided_onboarding/server/helpers/index.ts b/src/platform/plugins/shared/guided_onboarding/server/helpers/index.ts similarity index 100% rename from src/plugins/guided_onboarding/server/helpers/index.ts rename to src/platform/plugins/shared/guided_onboarding/server/helpers/index.ts diff --git a/src/plugins/guided_onboarding/server/helpers/plugin_state_utils.test.ts b/src/platform/plugins/shared/guided_onboarding/server/helpers/plugin_state_utils.test.ts similarity index 100% rename from src/plugins/guided_onboarding/server/helpers/plugin_state_utils.test.ts rename to src/platform/plugins/shared/guided_onboarding/server/helpers/plugin_state_utils.test.ts diff --git a/src/plugins/guided_onboarding/server/helpers/plugin_state_utils.ts b/src/platform/plugins/shared/guided_onboarding/server/helpers/plugin_state_utils.ts similarity index 100% rename from src/plugins/guided_onboarding/server/helpers/plugin_state_utils.ts rename to src/platform/plugins/shared/guided_onboarding/server/helpers/plugin_state_utils.ts diff --git a/src/plugins/guided_onboarding/server/index.ts b/src/platform/plugins/shared/guided_onboarding/server/index.ts similarity index 100% rename from src/plugins/guided_onboarding/server/index.ts rename to src/platform/plugins/shared/guided_onboarding/server/index.ts diff --git a/src/plugins/guided_onboarding/server/plugin.ts b/src/platform/plugins/shared/guided_onboarding/server/plugin.ts similarity index 100% rename from src/plugins/guided_onboarding/server/plugin.ts rename to src/platform/plugins/shared/guided_onboarding/server/plugin.ts diff --git a/src/plugins/guided_onboarding/server/routes/config_routes.ts b/src/platform/plugins/shared/guided_onboarding/server/routes/config_routes.ts similarity index 100% rename from src/plugins/guided_onboarding/server/routes/config_routes.ts rename to src/platform/plugins/shared/guided_onboarding/server/routes/config_routes.ts diff --git a/src/plugins/guided_onboarding/server/routes/guide_state_routes.ts b/src/platform/plugins/shared/guided_onboarding/server/routes/guide_state_routes.ts similarity index 100% rename from src/plugins/guided_onboarding/server/routes/guide_state_routes.ts rename to src/platform/plugins/shared/guided_onboarding/server/routes/guide_state_routes.ts diff --git a/src/plugins/guided_onboarding/server/routes/index.ts b/src/platform/plugins/shared/guided_onboarding/server/routes/index.ts similarity index 100% rename from src/plugins/guided_onboarding/server/routes/index.ts rename to src/platform/plugins/shared/guided_onboarding/server/routes/index.ts diff --git a/src/plugins/guided_onboarding/server/routes/plugin_state_routes.ts b/src/platform/plugins/shared/guided_onboarding/server/routes/plugin_state_routes.ts similarity index 100% rename from src/plugins/guided_onboarding/server/routes/plugin_state_routes.ts rename to src/platform/plugins/shared/guided_onboarding/server/routes/plugin_state_routes.ts diff --git a/src/plugins/guided_onboarding/server/saved_objects/guided_setup.ts b/src/platform/plugins/shared/guided_onboarding/server/saved_objects/guided_setup.ts similarity index 100% rename from src/plugins/guided_onboarding/server/saved_objects/guided_setup.ts rename to src/platform/plugins/shared/guided_onboarding/server/saved_objects/guided_setup.ts diff --git a/src/plugins/guided_onboarding/server/saved_objects/index.ts b/src/platform/plugins/shared/guided_onboarding/server/saved_objects/index.ts similarity index 100% rename from src/plugins/guided_onboarding/server/saved_objects/index.ts rename to src/platform/plugins/shared/guided_onboarding/server/saved_objects/index.ts diff --git a/src/plugins/guided_onboarding/server/types.ts b/src/platform/plugins/shared/guided_onboarding/server/types.ts similarity index 100% rename from src/plugins/guided_onboarding/server/types.ts rename to src/platform/plugins/shared/guided_onboarding/server/types.ts diff --git a/src/plugins/guided_onboarding/tsconfig.json b/src/platform/plugins/shared/guided_onboarding/tsconfig.json similarity index 92% rename from src/plugins/guided_onboarding/tsconfig.json rename to src/platform/plugins/shared/guided_onboarding/tsconfig.json index b48582480142f..4c3414008608c 100644 --- a/src/plugins/guided_onboarding/tsconfig.json +++ b/src/platform/plugins/shared/guided_onboarding/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 9492a9ffdae8c..12fe13d795ca7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1018,8 +1018,8 @@ "@kbn/guided-onboarding/*": ["packages/kbn-guided-onboarding/*"], "@kbn/guided-onboarding-example-plugin": ["examples/guided_onboarding_example"], "@kbn/guided-onboarding-example-plugin/*": ["examples/guided_onboarding_example/*"], - "@kbn/guided-onboarding-plugin": ["src/plugins/guided_onboarding"], - "@kbn/guided-onboarding-plugin/*": ["src/plugins/guided_onboarding/*"], + "@kbn/guided-onboarding-plugin": ["src/platform/plugins/shared/guided_onboarding"], + "@kbn/guided-onboarding-plugin/*": ["src/platform/plugins/shared/guided_onboarding/*"], "@kbn/handlebars": ["packages/kbn-handlebars"], "@kbn/handlebars/*": ["packages/kbn-handlebars/*"], "@kbn/hapi-mocks": ["packages/kbn-hapi-mocks"], diff --git a/yarn.lock b/yarn.lock index eea3899a0542a..24b20737950a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5849,7 +5849,7 @@ version "0.0.0" uid "" -"@kbn/guided-onboarding-plugin@link:src/plugins/guided_onboarding": +"@kbn/guided-onboarding-plugin@link:src/platform/plugins/shared/guided_onboarding": version "0.0.0" uid "" From 0e789d4dd0c36d98d37b80d8a3866c17cb8e9666 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:07:19 +0100 Subject: [PATCH 09/43] Relocating module `@kbn/home-plugin` --- .github/CODEOWNERS | 16 ++++++++-------- .i18nrc.json | 2 +- .../architecture/add-data-tutorials.asciidoc | 8 ++++---- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- packages/home/sample_data_card/src/constants.ts | 6 +++--- packages/home/sample_data_tab/src/constants.ts | 2 +- packages/home/sample_data_types/index.d.ts | 8 ++++---- src/dev/storybook/aliases.ts | 2 +- .../plugins/shared/guided_onboarding/README.md | 2 +- .../plugins/shared}/home/.storybook/main.ts | 2 +- .../plugins/shared}/home/.storybook/manager.ts | 2 +- .../plugins/shared}/home/README.md | 6 +++--- .../plugins/shared}/home/common/constants.ts | 0 .../shared}/home/common/instruction_variant.ts | 0 .../plugins/shared}/home/jest.config.js | 8 ++++---- .../plugins/shared}/home/kibana.jsonc | 0 .../home/public/application/application.tsx | 0 .../components/__snapshots__/home.test.tsx.snap | 0 .../recently_accessed.test.js.snap | 0 .../__snapshots__/synopsis.test.js.snap | 0 .../__snapshots__/welcome.test.tsx.snap | 0 .../application/components/_add_data.scss | 0 .../public/application/components/_index.scss | 0 .../application/components/_manage_data.scss | 0 .../components/_solutions_section.scss | 0 .../public/application/components/_welcome.scss | 0 .../__snapshots__/add_data.test.tsx.snap | 0 .../components/add_data/add_data.test.tsx | 0 .../components/add_data/add_data.tsx | 0 .../application/components/add_data/index.ts | 0 .../components/app_navigation_handler.ts | 0 .../guided_onboarding/getting_started.test.tsx | 0 .../guided_onboarding/getting_started.tsx | 0 .../components/guided_onboarding/index.ts | 0 .../public/application/components/home.test.tsx | 0 .../home/public/application/components/home.tsx | 0 .../public/application/components/home_app.js | 0 .../__snapshots__/manage_data.test.tsx.snap | 0 .../components/manage_data/index.tsx | 0 .../components/manage_data/manage_data.test.tsx | 0 .../components/manage_data/manage_data.tsx | 0 .../application/components/move_data/index.tsx | 0 .../components/move_data/move_data.test.tsx | 0 .../components/move_data/move_data.tsx | 0 .../application/components/recently_accessed.js | 0 .../components/recently_accessed.test.js | 0 .../components/sample_data/index.tsx | 0 .../__snapshots__/solution_panel.test.tsx.snap | 0 .../solutions_section.test.tsx.snap | 0 .../components/solutions_section/index.ts | 0 .../solutions_section/solution_panel.test.tsx | 0 .../solutions_section/solution_panel.tsx | 0 .../solutions_section.test.tsx | 0 .../solutions_section/solutions_section.tsx | 0 .../public/application/components/synopsis.js | 0 .../application/components/synopsis.test.js | 0 .../tutorial/__snapshots__/content.test.js.snap | 0 .../tutorial/__snapshots__/footer.test.js.snap | 0 .../__snapshots__/instruction_set.test.js.snap | 0 .../__snapshots__/introduction.test.js.snap | 0 .../saved_objects_installer.test.js.snap | 0 .../__snapshots__/tutorial.test.js.snap | 0 .../components/tutorial/_tutorial.scss | 0 .../application/components/tutorial/content.js | 0 .../components/tutorial/content.test.js | 0 .../application/components/tutorial/footer.js | 0 .../components/tutorial/footer.test.js | 0 .../components/tutorial/instruction.js | 0 .../components/tutorial/instruction_set.js | 0 .../components/tutorial/instruction_set.test.js | 0 .../components/tutorial/introduction.js | 0 .../components/tutorial/introduction.test.js | 0 .../components/tutorial/number_parameter.js | 0 .../components/tutorial/parameter_form.js | 0 .../tutorial/replace_template_strings.js | 0 .../tutorial/saved_objects_installer.js | 0 .../tutorial/saved_objects_installer.test.js | 0 .../components/tutorial/status_check_states.js | 0 .../components/tutorial/string_parameter.js | 0 .../application/components/tutorial/tutorial.js | 0 .../components/tutorial/tutorial.test.js | 0 .../components/tutorial_directory.js | 0 .../components/welcome.test.mocks.ts | 0 .../application/components/welcome.test.tsx | 0 .../public/application/components/welcome.tsx | 0 .../shared}/home/public/application/index.scss | 0 .../shared}/home/public/application/index.ts | 0 .../home/public/application/kibana_services.ts | 0 .../home/public/application/load_tutorials.js | 0 .../public/application/sample_data_client.ts | 0 .../public/assets/activemq_logs/screenshot.webp | Bin .../public/assets/apache_logs/screenshot.webp | Bin .../assets/apache_metrics/screenshot.webp | Bin .../public/assets/auditbeat/screenshot.webp | Bin .../public/assets/auditd_logs/screenshot.webp | Bin .../home/public/assets/aws_logs/screenshot.webp | Bin .../public/assets/aws_metrics/screenshot.webp | Bin .../public/assets/azure_logs/screenshot.webp | Bin .../public/assets/azure_metrics/screenshot.webp | Bin .../public/assets/cisco_logs/screenshot.webp | Bin .../assets/cockroachdb_metrics/screenshot.webp | Bin .../illustration_integrations_darkmode.png | Bin .../illustration_integrations_lightmode.png | Bin .../assets/consul_metrics/screenshot.webp | Bin .../public/assets/coredns_logs/screenshot.webp | Bin .../assets/coredns_metrics/screenshot.webp | Bin .../assets/couchdb_metrics/screenshot.webp | Bin .../assets/crowdstrike_logs/screenshot.webp | Bin .../assets/docker_metrics/screenshot.webp | Bin .../assets/envoyproxy_logs/screenshot.webp | Bin .../assets/googlecloud_logs/screenshot.webp | Bin .../assets/googlecloud_metrics/screenshot.webp | Bin .../public/assets/haproxy_logs/screenshot.webp | Bin .../public/assets/ibmmq_logs/screenshot.webp | Bin .../public/assets/ibmmq_metrics/screenshot.webp | Bin .../public/assets/icinga_logs/screenshot.webp | Bin .../home/public/assets/iis_logs/screenshot.webp | Bin .../public/assets/iis_metrics/screenshot.webp | Bin .../public/assets/iptables_logs/screenshot.webp | Bin .../public/assets/kafka_logs/screenshot.webp | Bin .../assets/kubernetes_metrics/screenshot.webp | Bin .../home/public/assets/logos/activemq.svg | 0 .../home/public/assets/logos/barracuda.svg | 0 .../home/public/assets/logos/checkpoint.svg | 0 .../shared}/home/public/assets/logos/cisco.svg | 0 .../home/public/assets/logos/cockroachdb.svg | 0 .../shared}/home/public/assets/logos/consul.svg | 0 .../home/public/assets/logos/coredns.svg | 0 .../home/public/assets/logos/couchdb.svg | 0 .../home/public/assets/logos/crowdstrike.svg | 0 .../home/public/assets/logos/cylance.svg | 0 .../home/public/assets/logos/envoyproxy.svg | 0 .../shared}/home/public/assets/logos/f5.svg | 0 .../home/public/assets/logos/fortinet.svg | 0 .../shared}/home/public/assets/logos/ibmmq.svg | 0 .../shared}/home/public/assets/logos/icinga.svg | 0 .../shared}/home/public/assets/logos/iis.svg | 0 .../home/public/assets/logos/infoblox.svg | 0 .../home/public/assets/logos/juniper.svg | 0 .../shared}/home/public/assets/logos/linux.svg | 0 .../home/public/assets/logos/microsoft.svg | 0 .../shared}/home/public/assets/logos/misp.svg | 0 .../shared}/home/public/assets/logos/mssql.svg | 0 .../shared}/home/public/assets/logos/munin.svg | 0 .../shared}/home/public/assets/logos/nats.svg | 0 .../home/public/assets/logos/netscout.svg | 0 .../shared}/home/public/assets/logos/o365.svg | 0 .../shared}/home/public/assets/logos/okta.svg | 0 .../home/public/assets/logos/openmetrics.svg | 0 .../shared}/home/public/assets/logos/oracle.svg | 0 .../home/public/assets/logos/osquery.svg | 0 .../home/public/assets/logos/paloalto.svg | 0 .../home/public/assets/logos/rabbitmq.svg | 0 .../home/public/assets/logos/radware.svg | 0 .../home/public/assets/logos/sonicwall.svg | 0 .../shared}/home/public/assets/logos/sophos.svg | 0 .../shared}/home/public/assets/logos/stan.svg | 0 .../shared}/home/public/assets/logos/statsd.svg | 0 .../home/public/assets/logos/suricata.svg | 0 .../shared}/home/public/assets/logos/system.svg | 0 .../shared}/home/public/assets/logos/tomcat.svg | 0 .../home/public/assets/logos/traefik.svg | 0 .../home/public/assets/logos/ubiquiti.svg | 0 .../shared}/home/public/assets/logos/uwsgi.svg | 0 .../home/public/assets/logos/vsphere.svg | 0 .../shared}/home/public/assets/logos/zeek.svg | 0 .../home/public/assets/logos/zookeeper.svg | 0 .../home/public/assets/logos/zscaler.svg | 0 .../public/assets/logstash_logs/screenshot.webp | Bin .../assets/microsoft_logs/screenshot.webp | Bin .../public/assets/misp_logs/screenshot.webp | Bin .../public/assets/mongodb_logs/screenshot.webp | Bin .../assets/mongodb_metrics/screenshot.webp | Bin .../public/assets/mssql_metrics/screenshot.webp | Bin .../public/assets/mysql_logs/screenshot.webp | Bin .../public/assets/mysql_metrics/screenshot.webp | Bin .../public/assets/nats_logs/screenshot.webp | Bin .../public/assets/nats_metrics/screenshot.webp | Bin .../public/assets/nginx_logs/screenshot.webp | Bin .../public/assets/nginx_metrics/screenshot.webp | Bin .../public/assets/o365_logs/screenshot.webp | Bin .../public/assets/okta_logs/screenshot.webp | Bin .../public/assets/osquery_logs/screenshot.webp | Bin .../public/assets/panw_logs/screenshot.webp | Bin .../assets/postgresql_logs/screenshot.webp | Bin .../assets/rabbitmq_metrics/screenshot.webp | Bin .../public/assets/redis_logs/screenshot.webp | Bin .../public/assets/redis_metrics/screenshot.webp | Bin .../redisenterprise_metrics/screenshot.webp | Bin .../ecommerce/dashboard.webp | Bin .../ecommerce/dashboard_dark.webp | Bin .../sample_data_resources/ecommerce/icon.svg | 0 .../flights/dashboard.webp | Bin .../flights/dashboard_dark.webp | Bin .../sample_data_resources/flights/icon.svg | 0 .../sample_data_resources/logs/dashboard.webp | Bin .../logs/dashboard_dark.webp | Bin .../assets/sample_data_resources/logs/icon.svg | 0 .../public/assets/santa_logs/screenshot.webp | Bin .../public/assets/solution_logos/kubernetes.png | Bin .../assets/solution_logos/kubernetes_dark.png | Bin .../assets/solution_logos/observability.png | Bin .../solution_logos/observability_dark.png | Bin .../public/assets/solution_logos/search.png | Bin .../assets/solution_logos/search_dark.png | Bin .../public/assets/solution_logos/security.png | Bin .../assets/solution_logos/security_dark.png | Bin .../public/assets/stan_metrics/screenshot.webp | Bin .../public/assets/suricata_logs/screenshot.webp | Bin .../public/assets/system_logs/screenshot.webp | Bin .../assets/system_metrics/screenshot.webp | Bin .../public/assets/traefik_logs/screenshot.webp | Bin .../assets/uptime_monitors/screenshot.webp | Bin .../public/assets/uwsgi_metrics/screenshot.webp | Bin .../public/assets/welcome_graphic_dark_2x.png | Bin .../public/assets/welcome_graphic_light_2x.png | Bin .../public/assets/zeek_logs/screenshot.webp | Bin .../plugins/shared}/home/public/index.ts | 0 .../plugins/shared}/home/public/mocks.ts | 0 .../shared}/home/public/plugin.test.mocks.ts | 0 .../plugins/shared}/home/public/plugin.test.ts | 0 .../plugins/shared}/home/public/plugin.ts | 0 .../services/add_data/add_data_service.mock.ts | 0 .../services/add_data/add_data_service.test.tsx | 0 .../services/add_data/add_data_service.ts | 0 .../home/public/services/add_data/index.ts | 0 .../services/environment/environment.mock.ts | 0 .../services/environment/environment.test.ts | 0 .../public/services/environment/environment.ts | 0 .../home/public/services/environment/index.ts | 0 .../feature_catalogue_registry.mock.ts | 0 .../feature_catalogue_registry.test.ts | 0 .../feature_catalogue_registry.ts | 0 .../public/services/feature_catalogue/index.ts | 0 .../shared}/home/public/services/index.ts | 0 .../home/public/services/tutorials/index.ts | 0 .../services/tutorials/tutorial_service.mock.ts | 0 .../tutorials/tutorial_service.test.tsx | 0 .../services/tutorials/tutorial_service.ts | 0 .../home/public/services/welcome/index.ts | 0 .../services/welcome/welcome_service.mocks.ts | 0 .../services/welcome/welcome_service.test.ts | 0 .../public/services/welcome/welcome_service.ts | 0 .../home/server/capabilities_provider.ts | 0 .../plugins/shared}/home/server/config.ts | 0 .../plugins/shared}/home/server/index.ts | 0 .../shared}/home/server/plugin.test.mocks.ts | 0 .../plugins/shared}/home/server/plugin.test.ts | 0 .../plugins/shared}/home/server/plugin.ts | 0 .../home/server/routes/fetch_es_hits_status.ts | 0 .../plugins/shared}/home/server/routes/index.ts | 0 .../shared}/home/server/saved_objects/index.ts | 0 .../saved_objects/sample_data_telemetry.ts | 0 .../shared}/home/server/services/index.ts | 0 .../data_sets/ecommerce/ecommerce.json.gz | Bin .../data_sets/ecommerce/field_mappings.ts | 0 .../sample_data/data_sets/ecommerce/index.ts | 0 .../data_sets/ecommerce/saved_objects.ts | 0 .../data_sets/flights/field_mappings.ts | 0 .../data_sets/flights/flights.json.gz | Bin .../sample_data/data_sets/flights/index.ts | 0 .../data_sets/flights/saved_objects.ts | 0 .../services/sample_data/data_sets/index.ts | 0 .../data_sets/logs/field_mappings.ts | 0 .../sample_data/data_sets/logs/index.ts | 2 +- .../sample_data/data_sets/logs/logs.json.gz | Bin .../sample_data/data_sets/logs/saved_objects.ts | 0 .../data_sets/logs_tsdb/field_mappings.ts | 0 .../sample_data/data_sets/logs_tsdb/index.ts | 2 +- .../data_sets/logs_tsdb/logs.json.gz | Bin .../data_sets/logs_tsdb/saved_objects.ts | 0 .../home/server/services/sample_data/errors.ts | 0 .../home/server/services/sample_data/index.ts | 0 .../sample_data/lib/create_index_name.ts | 0 .../lib/find_sample_objects.test.mock.ts | 0 .../sample_data/lib/find_sample_objects.test.ts | 0 .../sample_data/lib/find_sample_objects.ts | 0 .../sample_data/lib/insert_data_into_index.ts | 0 .../services/sample_data/lib/load_data.ts | 0 .../lib/register_with_integrations.ts | 0 .../lib/sample_dataset_registry_types.ts | 0 .../sample_data/lib/sample_dataset_schema.ts | 0 .../sample_data/lib/translate_timestamp.test.ts | 0 .../sample_data/lib/translate_timestamp.ts | 0 .../server/services/sample_data/lib/utils.ts | 0 .../server/services/sample_data/routes/index.ts | 0 .../services/sample_data/routes/install.ts | 0 .../server/services/sample_data/routes/list.ts | 0 .../services/sample_data/routes/uninstall.ts | 0 .../server/services/sample_data/routes/utils.ts | 0 .../sample_data_installer.test.mocks.ts | 0 .../sample_data/sample_data_installer.test.ts | 0 .../sample_data/sample_data_installer.ts | 0 .../sample_data/sample_data_registry.mock.ts | 0 .../sample_data/sample_data_registry.test.ts | 0 .../sample_data/sample_data_registry.ts | 0 .../services/sample_data/usage/collector.ts | 0 .../sample_data/usage/collector_fetch.test.ts | 0 .../sample_data/usage/collector_fetch.ts | 0 .../server/services/sample_data/usage/index.ts | 0 .../server/services/sample_data/usage/usage.ts | 0 .../home/server/services/tutorials/index.ts | 0 .../services/tutorials/lib/tutorial_schema.ts | 0 .../tutorials/lib/tutorials_registry_types.ts | 0 .../tutorials/tutorials_registry.mock.ts | 0 .../tutorials/tutorials_registry.test.ts | 0 .../services/tutorials/tutorials_registry.ts | 0 .../server/tutorials/activemq_logs/index.ts | 0 .../server/tutorials/activemq_metrics/index.ts | 0 .../server/tutorials/aerospike_metrics/index.ts | 0 .../home/server/tutorials/apache_logs/index.ts | 0 .../server/tutorials/apache_metrics/index.ts | 0 .../home/server/tutorials/auditbeat/index.ts | 0 .../home/server/tutorials/auditd_logs/index.ts | 0 .../home/server/tutorials/aws_logs/index.ts | 0 .../home/server/tutorials/aws_metrics/index.ts | 0 .../home/server/tutorials/azure_logs/index.ts | 0 .../server/tutorials/azure_metrics/index.ts | 0 .../server/tutorials/barracuda_logs/index.ts | 0 .../server/tutorials/bluecoat_logs/index.ts | 0 .../home/server/tutorials/cef_logs/index.ts | 0 .../home/server/tutorials/ceph_metrics/index.ts | 0 .../server/tutorials/checkpoint_logs/index.ts | 0 .../home/server/tutorials/cisco_logs/index.ts | 0 .../tutorials/cockroachdb_metrics/index.ts | 0 .../server/tutorials/consul_metrics/index.ts | 0 .../home/server/tutorials/coredns_logs/index.ts | 0 .../server/tutorials/coredns_metrics/index.ts | 0 .../server/tutorials/couchbase_metrics/index.ts | 0 .../server/tutorials/couchdb_metrics/index.ts | 0 .../server/tutorials/crowdstrike_logs/index.ts | 0 .../home/server/tutorials/cylance_logs/index.ts | 0 .../server/tutorials/docker_metrics/index.ts | 0 .../tutorials/dropwizard_metrics/index.ts | 0 .../tutorials/elasticsearch_logs/index.ts | 0 .../tutorials/elasticsearch_metrics/index.ts | 0 .../server/tutorials/envoyproxy_logs/index.ts | 0 .../tutorials/envoyproxy_metrics/index.ts | 0 .../home/server/tutorials/etcd_metrics/index.ts | 0 .../home/server/tutorials/f5_logs/index.ts | 0 .../server/tutorials/fortinet_logs/index.ts | 0 .../home/server/tutorials/gcp_logs/index.ts | 0 .../home/server/tutorials/gcp_metrics/index.ts | 0 .../server/tutorials/golang_metrics/index.ts | 0 .../home/server/tutorials/gsuite_logs/index.ts | 0 .../home/server/tutorials/haproxy_logs/index.ts | 0 .../server/tutorials/haproxy_metrics/index.ts | 0 .../home/server/tutorials/ibmmq_logs/index.ts | 0 .../server/tutorials/ibmmq_metrics/index.ts | 0 .../home/server/tutorials/icinga_logs/index.ts | 0 .../home/server/tutorials/iis_logs/index.ts | 0 .../home/server/tutorials/iis_metrics/index.ts | 0 .../home/server/tutorials/imperva_logs/index.ts | 0 .../server/tutorials/infoblox_logs/index.ts | 0 .../instructions/auditbeat_instructions.ts | 0 .../instructions/cloud_instructions.ts | 0 .../instructions/filebeat_instructions.ts | 0 .../get_space_id_for_beats_tutorial.ts | 0 .../instructions/heartbeat_instructions.ts | 0 .../instructions/logstash_instructions.ts | 0 .../instructions/metricbeat_instructions.ts | 0 .../instructions/onprem_cloud_instructions.ts | 0 .../tutorials/instructions/param_types.ts | 0 .../instructions/winlogbeat_instructions.ts | 0 .../server/tutorials/iptables_logs/index.ts | 0 .../home/server/tutorials/juniper_logs/index.ts | 0 .../home/server/tutorials/kafka_logs/index.ts | 0 .../server/tutorials/kafka_metrics/index.ts | 0 .../home/server/tutorials/kibana_logs/index.ts | 0 .../server/tutorials/kibana_metrics/index.ts | 0 .../tutorials/kubernetes_metrics/index.ts | 0 .../server/tutorials/logstash_logs/index.ts | 0 .../server/tutorials/logstash_metrics/index.ts | 0 .../server/tutorials/memcached_metrics/index.ts | 0 .../server/tutorials/microsoft_logs/index.ts | 0 .../home/server/tutorials/misp_logs/index.ts | 0 .../home/server/tutorials/mongodb_logs/index.ts | 0 .../server/tutorials/mongodb_metrics/index.ts | 0 .../home/server/tutorials/mssql_logs/index.ts | 0 .../server/tutorials/mssql_metrics/index.ts | 0 .../server/tutorials/munin_metrics/index.ts | 0 .../home/server/tutorials/mysql_logs/index.ts | 0 .../server/tutorials/mysql_metrics/index.ts | 0 .../home/server/tutorials/nats_logs/index.ts | 0 .../home/server/tutorials/nats_metrics/index.ts | 0 .../home/server/tutorials/netflow_logs/index.ts | 0 .../server/tutorials/netscout_logs/index.ts | 0 .../home/server/tutorials/nginx_logs/index.ts | 0 .../server/tutorials/nginx_metrics/index.ts | 0 .../home/server/tutorials/o365_logs/index.ts | 0 .../home/server/tutorials/okta_logs/index.ts | 0 .../tutorials/openmetrics_metrics/index.ts | 0 .../server/tutorials/oracle_metrics/index.ts | 0 .../home/server/tutorials/osquery_logs/index.ts | 0 .../home/server/tutorials/panw_logs/index.ts | 0 .../server/tutorials/php_fpm_metrics/index.ts | 0 .../server/tutorials/postgresql_logs/index.ts | 0 .../tutorials/postgresql_metrics/index.ts | 0 .../tutorials/prometheus_metrics/index.ts | 0 .../server/tutorials/rabbitmq_logs/index.ts | 0 .../server/tutorials/rabbitmq_metrics/index.ts | 0 .../home/server/tutorials/radware_logs/index.ts | 0 .../home/server/tutorials/redis_logs/index.ts | 0 .../server/tutorials/redis_metrics/index.ts | 0 .../tutorials/redisenterprise_metrics/index.ts | 0 .../shared}/home/server/tutorials/register.ts | 0 .../home/server/tutorials/santa_logs/index.ts | 0 .../server/tutorials/sonicwall_logs/index.ts | 0 .../home/server/tutorials/sophos_logs/index.ts | 0 .../home/server/tutorials/stan_metrics/index.ts | 0 .../server/tutorials/statsd_metrics/index.ts | 0 .../server/tutorials/suricata_logs/index.ts | 0 .../home/server/tutorials/system_logs/index.ts | 0 .../server/tutorials/system_metrics/index.ts | 0 .../home/server/tutorials/tomcat_logs/index.ts | 0 .../home/server/tutorials/traefik_logs/index.ts | 0 .../server/tutorials/traefik_metrics/index.ts | 0 .../server/tutorials/uptime_monitors/index.ts | 0 .../server/tutorials/uwsgi_metrics/index.ts | 0 .../server/tutorials/vsphere_metrics/index.ts | 0 .../tutorials/windows_event_logs/index.ts | 0 .../server/tutorials/windows_metrics/index.ts | 0 .../home/server/tutorials/zeek_logs/index.ts | 0 .../server/tutorials/zookeeper_metrics/index.ts | 0 .../home/server/tutorials/zscaler_logs/index.ts | 0 .../plugins/shared}/home/tsconfig.json | 2 +- test/api_integration/apis/home/sample_data.ts | 4 ++-- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 430 files changed, 42 insertions(+), 42 deletions(-) rename src/{plugins => platform/plugins/shared}/home/.storybook/main.ts (85%) rename src/{plugins => platform/plugins/shared}/home/.storybook/manager.ts (96%) rename src/{plugins => platform/plugins/shared}/home/README.md (90%) rename src/{plugins => platform/plugins/shared}/home/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/home/common/instruction_variant.ts (100%) rename src/{plugins => platform/plugins/shared}/home/jest.config.js (73%) rename src/{plugins => platform/plugins/shared}/home/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/application.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/__snapshots__/home.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/__snapshots__/recently_accessed.test.js.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/__snapshots__/synopsis.test.js.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/__snapshots__/welcome.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/_add_data.scss (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/_index.scss (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/_manage_data.scss (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/_solutions_section.scss (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/_welcome.scss (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/add_data/__snapshots__/add_data.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/add_data/add_data.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/add_data/add_data.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/add_data/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/app_navigation_handler.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/guided_onboarding/getting_started.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/guided_onboarding/getting_started.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/guided_onboarding/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/home.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/home.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/home_app.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/manage_data/__snapshots__/manage_data.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/manage_data/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/manage_data/manage_data.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/manage_data/manage_data.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/move_data/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/move_data/move_data.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/move_data/move_data.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/recently_accessed.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/recently_accessed.test.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/sample_data/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/solutions_section/__snapshots__/solution_panel.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/solutions_section/__snapshots__/solutions_section.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/solutions_section/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/solutions_section/solution_panel.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/solutions_section/solution_panel.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/solutions_section/solutions_section.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/solutions_section/solutions_section.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/synopsis.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/synopsis.test.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/__snapshots__/content.test.js.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/__snapshots__/footer.test.js.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/__snapshots__/instruction_set.test.js.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/__snapshots__/introduction.test.js.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/__snapshots__/tutorial.test.js.snap (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/_tutorial.scss (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/content.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/content.test.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/footer.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/footer.test.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/instruction.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/instruction_set.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/instruction_set.test.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/introduction.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/introduction.test.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/number_parameter.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/parameter_form.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/replace_template_strings.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/saved_objects_installer.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/saved_objects_installer.test.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/status_check_states.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/string_parameter.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/tutorial.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial/tutorial.test.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/tutorial_directory.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/welcome.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/welcome.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/components/welcome.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/index.scss (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/kibana_services.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/load_tutorials.js (100%) rename src/{plugins => platform/plugins/shared}/home/public/application/sample_data_client.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/activemq_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/apache_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/apache_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/auditbeat/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/auditd_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/aws_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/aws_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/azure_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/azure_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/cisco_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/cockroachdb_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/common/illustration_integrations_darkmode.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/common/illustration_integrations_lightmode.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/consul_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/coredns_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/coredns_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/couchdb_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/crowdstrike_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/docker_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/envoyproxy_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/googlecloud_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/googlecloud_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/haproxy_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/ibmmq_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/ibmmq_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/icinga_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/iis_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/iis_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/iptables_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/kafka_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/kubernetes_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/activemq.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/barracuda.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/checkpoint.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/cisco.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/cockroachdb.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/consul.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/coredns.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/couchdb.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/crowdstrike.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/cylance.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/envoyproxy.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/f5.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/fortinet.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/ibmmq.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/icinga.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/iis.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/infoblox.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/juniper.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/linux.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/microsoft.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/misp.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/mssql.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/munin.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/nats.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/netscout.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/o365.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/okta.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/openmetrics.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/oracle.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/osquery.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/paloalto.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/rabbitmq.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/radware.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/sonicwall.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/sophos.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/stan.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/statsd.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/suricata.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/system.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/tomcat.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/traefik.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/ubiquiti.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/uwsgi.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/vsphere.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/zeek.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/zookeeper.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logos/zscaler.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/logstash_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/microsoft_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/misp_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/mongodb_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/mongodb_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/mssql_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/mysql_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/mysql_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/nats_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/nats_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/nginx_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/nginx_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/o365_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/okta_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/osquery_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/panw_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/postgresql_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/rabbitmq_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/redis_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/redis_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/redisenterprise_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/sample_data_resources/ecommerce/dashboard.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/sample_data_resources/ecommerce/dashboard_dark.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/sample_data_resources/ecommerce/icon.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/sample_data_resources/flights/dashboard.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/sample_data_resources/flights/dashboard_dark.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/sample_data_resources/flights/icon.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/sample_data_resources/logs/dashboard.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/sample_data_resources/logs/dashboard_dark.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/sample_data_resources/logs/icon.svg (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/santa_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/solution_logos/kubernetes.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/solution_logos/kubernetes_dark.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/solution_logos/observability.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/solution_logos/observability_dark.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/solution_logos/search.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/solution_logos/search_dark.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/solution_logos/security.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/solution_logos/security_dark.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/stan_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/suricata_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/system_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/system_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/traefik_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/uptime_monitors/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/uwsgi_metrics/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/welcome_graphic_dark_2x.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/welcome_graphic_light_2x.png (100%) rename src/{plugins => platform/plugins/shared}/home/public/assets/zeek_logs/screenshot.webp (100%) rename src/{plugins => platform/plugins/shared}/home/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/plugin.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/add_data/add_data_service.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/add_data/add_data_service.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/add_data/add_data_service.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/add_data/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/environment/environment.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/environment/environment.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/environment/environment.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/environment/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/feature_catalogue/feature_catalogue_registry.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/feature_catalogue/feature_catalogue_registry.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/feature_catalogue/feature_catalogue_registry.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/feature_catalogue/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/tutorials/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/tutorials/tutorial_service.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/tutorials/tutorial_service.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/tutorials/tutorial_service.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/welcome/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/welcome/welcome_service.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/welcome/welcome_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/public/services/welcome/welcome_service.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/capabilities_provider.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/config.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/plugin.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/routes/fetch_es_hits_status.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/saved_objects/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/saved_objects/sample_data_telemetry.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/ecommerce/ecommerce.json.gz (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/ecommerce/field_mappings.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/ecommerce/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/ecommerce/saved_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/flights/field_mappings.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/flights/flights.json.gz (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/flights/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/flights/saved_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/logs/field_mappings.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/logs/index.ts (94%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/logs/logs.json.gz (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/logs/saved_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/logs_tsdb/field_mappings.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/logs_tsdb/index.ts (95%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/logs_tsdb/logs.json.gz (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/data_sets/logs_tsdb/saved_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/create_index_name.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/find_sample_objects.test.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/find_sample_objects.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/find_sample_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/insert_data_into_index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/load_data.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/register_with_integrations.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/sample_dataset_registry_types.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/sample_dataset_schema.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/translate_timestamp.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/translate_timestamp.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/lib/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/routes/install.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/routes/list.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/routes/uninstall.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/routes/utils.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/sample_data_installer.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/sample_data_installer.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/sample_data_installer.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/sample_data_registry.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/sample_data_registry.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/sample_data_registry.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/usage/collector.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/usage/collector_fetch.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/usage/collector_fetch.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/usage/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/sample_data/usage/usage.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/tutorials/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/tutorials/lib/tutorial_schema.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/tutorials/lib/tutorials_registry_types.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/tutorials/tutorials_registry.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/tutorials/tutorials_registry.test.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/services/tutorials/tutorials_registry.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/activemq_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/activemq_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/aerospike_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/apache_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/apache_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/auditbeat/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/auditd_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/aws_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/aws_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/azure_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/azure_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/barracuda_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/bluecoat_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/cef_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/ceph_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/checkpoint_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/cisco_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/cockroachdb_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/consul_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/coredns_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/coredns_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/couchbase_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/couchdb_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/crowdstrike_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/cylance_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/docker_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/dropwizard_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/elasticsearch_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/elasticsearch_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/envoyproxy_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/envoyproxy_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/etcd_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/f5_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/fortinet_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/gcp_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/gcp_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/golang_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/gsuite_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/haproxy_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/haproxy_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/ibmmq_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/ibmmq_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/icinga_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/iis_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/iis_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/imperva_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/infoblox_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/auditbeat_instructions.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/cloud_instructions.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/filebeat_instructions.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/get_space_id_for_beats_tutorial.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/heartbeat_instructions.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/logstash_instructions.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/metricbeat_instructions.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/onprem_cloud_instructions.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/param_types.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/instructions/winlogbeat_instructions.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/iptables_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/juniper_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/kafka_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/kafka_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/kibana_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/kibana_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/kubernetes_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/logstash_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/logstash_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/memcached_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/microsoft_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/misp_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/mongodb_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/mongodb_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/mssql_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/mssql_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/munin_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/mysql_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/mysql_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/nats_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/nats_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/netflow_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/netscout_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/nginx_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/nginx_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/o365_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/okta_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/openmetrics_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/oracle_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/osquery_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/panw_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/php_fpm_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/postgresql_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/postgresql_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/prometheus_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/rabbitmq_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/rabbitmq_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/radware_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/redis_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/redis_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/redisenterprise_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/register.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/santa_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/sonicwall_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/sophos_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/stan_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/statsd_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/suricata_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/system_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/system_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/tomcat_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/traefik_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/traefik_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/uptime_monitors/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/uwsgi_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/vsphere_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/windows_event_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/windows_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/zeek_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/zookeeper_metrics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/server/tutorials/zscaler_logs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/home/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a3c6e69f7b86a..d239cdd5c6cd0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -620,6 +620,7 @@ src/platform/plugins/shared/esql @elastic/kibana-esql src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql src/platform/plugins/shared/files @elastic/appex-sharedux src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux +src/platform/plugins/shared/home @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux @@ -654,7 +655,6 @@ src/plugins/expression_shape @elastic/kibana-presentation src/plugins/expressions @elastic/kibana-visualizations src/plugins/field_formats @elastic/kibana-data-discovery src/plugins/ftr_apis @elastic/kibana-core -src/plugins/home @elastic/appex-sharedux src/plugins/image_embeddable @elastic/appex-sharedux src/plugins/input_control_vis @elastic/kibana-presentation src/plugins/inspector @elastic/kibana-presentation @@ -1237,14 +1237,14 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /src/plugins/kibana_react/public/ @elastic/appex-sharedux @elastic/kibana-presentation ### Home Plugin and Packages -/src/plugins/home/public @elastic/appex-sharedux -/src/plugins/home/server/*.ts @elastic/appex-sharedux -/src/plugins/home/server/services/ @elastic/appex-sharedux +/src/platform/plugins/shared/home/public @elastic/appex-sharedux +/src/platform/plugins/shared/home/server/*.ts @elastic/appex-sharedux +/src/platform/plugins/shared/home/server/services/ @elastic/appex-sharedux ### Code Coverage -#CC# /src/plugins/home/public @elastic/appex-sharedux -#CC# /src/plugins/home/server/services/ @elastic/appex-sharedux -#CC# /src/plugins/home/ @elastic/appex-sharedux +#CC# /src/platform/plugins/shared/home/public @elastic/appex-sharedux +#CC# /src/platform/plugins/shared/home/server/services/ @elastic/appex-sharedux +#CC# /src/platform/plugins/shared/home/ @elastic/appex-sharedux #CC# /x-pack/plugins/reporting/ @elastic/appex-sharedux #CC# /x-pack/solutions/security/plugins/security_solution_serverless/ @elastic/appex-sharedux @@ -2568,7 +2568,7 @@ x-pack/solutions/security/plugins/security_solution/server/lib/security_integrat /src/plugins/kibana_react/public/page_template/ @elastic/eui-team @elastic/appex-sharedux # Landing page for guided onboarding in Home plugin -/src/plugins/home/public/application/components/guided_onboarding @elastic/appex-sharedux +/src/platform/plugins/shared/home/public/application/components/guided_onboarding @elastic/appex-sharedux # Changes to translation files should not ping code reviewers x-pack/platform/plugins/private/translations/translations diff --git a/.i18nrc.json b/.i18nrc.json index f42704b8323fe..c4f6d74356f08 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -68,7 +68,7 @@ "alertsGrouping": "packages/kbn-alerts-grouping", "guidedOnboarding": "src/platform/plugins/shared/guided_onboarding", "guidedOnboardingPackage": "packages/kbn-guided-onboarding", - "home": "src/plugins/home", + "home": "src/platform/plugins/shared/home", "homePackages": "packages/home", "indexPatternEditor": "src/plugins/data_view_editor", "indexPatternFieldEditor": "src/plugins/data_view_field_editor", diff --git a/docs/developer/architecture/add-data-tutorials.asciidoc b/docs/developer/architecture/add-data-tutorials.asciidoc index 7a756dd61b18f..256143a900300 100644 --- a/docs/developer/architecture/add-data-tutorials.asciidoc +++ b/docs/developer/architecture/add-data-tutorials.asciidoc @@ -11,10 +11,10 @@ Each tutorial contains three sets of instructions: [discrete] === Creating a new tutorial -1. Create a new directory in the link:https://github.com/elastic/kibana/tree/main/src/plugins/home/server/tutorials[tutorials directory]. +1. Create a new directory in the link:https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/home/server/tutorials[tutorials directory]. 2. In the new directory, create a file called `index.ts` that exports a function. -The function must return a function object that conforms to the `TutorialSchema` interface link:{kib-repo}tree/{branch}/src/plugins/home/server/services/tutorials/lib/tutorial_schema.ts[tutorial schema]. -3. Register the tutorial in link:{kib-repo}tree/{branch}/src/plugins/home/server/tutorials/register.ts[register.ts] by adding it to the `builtInTutorials`. +The function must return a function object that conforms to the `TutorialSchema` interface link:{kib-repo}tree/{branch}/src/platform/plugins/shared/home/server/services/tutorials/lib/tutorial_schema.ts[tutorial schema]. +3. Register the tutorial in link:{kib-repo}tree/{branch}/src/platform/plugins/shared/home/server/tutorials/register.ts[register.ts] by adding it to the `builtInTutorials`. // TODO update path once assets are migrated 4. Add image assets to the `tutorial_resources` directory. 5. Run {kib} locally to preview the tutorial. @@ -28,7 +28,7 @@ Then register the tutorial object by calling `home.tutorials.registerTutorial(tu String values can contain variables that are substituted when rendered. Variables are specified by `{}`. For example: `{config.docs.version}` is rendered as `6.2` when running the tutorial in {kib} 6.2. -link:{kib-repo}tree/{branch}/src/plugins/home/public/application/components/tutorial/replace_template_strings.js[Provided variables] +link:{kib-repo}tree/{branch}/src/platform/plugins/shared/home/public/application/components/tutorial/replace_template_strings.js[Provided variables] [discrete] ==== Markdown diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 5f23149ac7530..05a7c7b343ec3 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -216,7 +216,7 @@ for use in their own application. |This plugin contains the code for the Guided Onboarding project. Guided onboarding consists of guides for Solutions (Enterprise Search, Observability, Security) that can be completed as a checklist of steps. The guides help users to ingest their data and to navigate to the correct Solutions pages. -|{kib-repo}blob/{branch}/src/plugins/home/README.md[home] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/home/README.md[home] |Moves the legacy ui/registry/feature_catalogue module for registering "features" that should be shown in the home page's feature catalogue to a service within a "home" plugin. The feature catalogue refered to here should not be confused with the "feature" plugin for registering features used to derive UI capabilities for feature controls. diff --git a/package.json b/package.json index bef2be202319b..6032dda3734fe 100644 --- a/package.json +++ b/package.json @@ -563,7 +563,7 @@ "@kbn/hardening-plugin": "link:test/plugin_functional/plugins/hardening", "@kbn/health-gateway-server": "link:packages/kbn-health-gateway-server", "@kbn/hello-world-plugin": "link:examples/hello_world", - "@kbn/home-plugin": "link:src/plugins/home", + "@kbn/home-plugin": "link:src/platform/plugins/shared/home", "@kbn/home-sample-data-card": "link:packages/home/sample_data_card", "@kbn/home-sample-data-tab": "link:packages/home/sample_data_tab", "@kbn/home-sample-data-types": "link:packages/home/sample_data_types", diff --git a/packages/home/sample_data_card/src/constants.ts b/packages/home/sample_data_card/src/constants.ts index cfc6de38c5f07..8f5a91f8e2d7e 100644 --- a/packages/home/sample_data_card/src/constants.ts +++ b/packages/home/sample_data_card/src/constants.ts @@ -9,15 +9,15 @@ /** * DataSetStatusType for an installed data set. - * @see src/plugins/home/server/services/sample_data/lib/sample_dataset_registry_types + * @see src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_registry_types */ export const INSTALLED_STATUS = 'installed'; /** * DataSetStatusType for a data set that is not installed yet. - * @see src/plugins/home/server/services/sample_data/lib/sample_dataset_registry_types + * @see src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_registry_types */ export const UNINSTALLED_STATUS = 'not_installed'; -// Corresponds to src/plugins/home/server/services/sample_data/routes +// Corresponds to src/platform/plugins/shared/home/server/services/sample_data/routes export const SAMPLE_DATA_API = '/api/sample_data'; diff --git a/packages/home/sample_data_tab/src/constants.ts b/packages/home/sample_data_tab/src/constants.ts index 12bdbd0bf90d1..c8d437fa72e3a 100644 --- a/packages/home/sample_data_tab/src/constants.ts +++ b/packages/home/sample_data_tab/src/constants.ts @@ -7,7 +7,7 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -// Corresponds to src/plugins/home/server/services/sample_data/routes +// Corresponds to src/platform/plugins/shared/home/server/services/sample_data/routes export const URL_SAMPLE_DATA_API = '/api/sample_data'; // TODO: clintandrewhall pull from config diff --git a/packages/home/sample_data_types/index.d.ts b/packages/home/sample_data_types/index.d.ts index 251535df3d760..2068d57a82b9a 100644 --- a/packages/home/sample_data_types/index.d.ts +++ b/packages/home/sample_data_types/index.d.ts @@ -10,7 +10,7 @@ /** * A relevant subset of the `AppLinkData` type. * - * @see src/plugins/home/server/services/sample_data/lib/sample_dataset_registry_types + * @see src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_registry_types */ export interface AppLink { icon: string; @@ -21,7 +21,7 @@ export interface AppLink { } /** - * @see src/plugins/home/server/services/sample_data/lib/sample_dataset_registry_types + * @see src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_registry_types */ export type InstalledStatus = 'installed' | 'not_installed' | 'unknown'; @@ -29,8 +29,8 @@ export type InstalledStatus = 'installed' | 'not_installed' | 'unknown'; * A subset of properties from a Sample Data Set that are relevant to these components. * Included here as the type is not in a package for consumption by a package. * - * @see src/plugins/home/server/services/sample_data/lib/sample_dataset_schema - * @see src/plugins/home/server/services/sample_data/lib/sample_dataset_registry_types + * @see src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_schema + * @see src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_registry_types */ export interface SampleDataSet { appLinks: AppLink[]; diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index 2bf3888ce6cb2..2c5f829a7b5cb 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -45,7 +45,7 @@ export const storybookAliases = { expression_tagcloud: 'src/plugins/chart_expressions/expression_tagcloud/.storybook', fleet: 'x-pack/plugins/fleet/.storybook', grouping: 'packages/kbn-grouping/.storybook', - home: 'src/plugins/home/.storybook', + home: 'src/platform/plugins/shared/home/.storybook', infra: 'x-pack/plugins/observability_solution/infra/.storybook', inventory: 'x-pack/plugins/observability_solution/inventory/.storybook', investigate: 'x-pack/solutions/observability/plugins/investigate_app/.storybook', diff --git a/src/platform/plugins/shared/guided_onboarding/README.md b/src/platform/plugins/shared/guided_onboarding/README.md index 8a4121599e2e9..cd517102f2803 100755 --- a/src/platform/plugins/shared/guided_onboarding/README.md +++ b/src/platform/plugins/shared/guided_onboarding/README.md @@ -29,7 +29,7 @@ For example, when a user goes through the SIEM guide they are first taken to the There is also a server side in the guided onboarding plugin that creates several endpoints for plugin only internal use. The endpoints are for fetching the guide configs, the state of the guided onboarding and to update the state. The server side also exposes a function ([link](https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/guided_onboarding/server/plugin.ts#L40)) that is used by consumers to register their guide configs. That way the config files are a part of the consumers code and the guided onboarding is only used as a framework. -Another part of the guided onboarding code is in the home plugin where the code for the landing page ([link](https://github.com/elastic/kibana/tree/main/src/plugins/home/public/application/components/guided_onboarding)) is situated. The landing page can be found under `/app/home#/getting_started` and there is some logic ([link](https://github.com/elastic/kibana/blob/main/src/plugins/home/public/application/components/home.tsx#L200)) that redirects the user to the landing page when the deployment is new (i.e. there is no data in the deployment). Some of the static components for the landing page were extracted to the `kbn-guided-onboarding` package ([link](https://github.com/elastic/kibana/tree/main/packages/kbn-guided-onboarding)). +Another part of the guided onboarding code is in the home plugin where the code for the landing page ([link](https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/home/public/application/components/guided_onboarding)) is situated. The landing page can be found under `/app/home#/getting_started` and there is some logic ([link](https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/home/public/application/components/home.tsx#L200)) that redirects the user to the landing page when the deployment is new (i.e. there is no data in the deployment). Some of the static components for the landing page were extracted to the `kbn-guided-onboarding` package ([link](https://github.com/elastic/kibana/tree/main/packages/kbn-guided-onboarding)). When starting Kibana with `yarn start --run-examples` the `guided_onboarding_example` plugin ([link](https://github.com/elastic/kibana/tree/main/examples/guided_onboarding_example)) can be found under `/app/guidedOnboardingExample`. This page displays the current state of the guided onboarding and allows setting the state to any point in the guide. Otherwise, it can be difficult and time consuming to reach a specific step in a production guide during dev work. The example plugin also registers a config for a test guide that can be completed on the pages of the example plugin. The test guide is also used for unit and functional tests of the guided onboarding plugin. diff --git a/src/plugins/home/.storybook/main.ts b/src/platform/plugins/shared/home/.storybook/main.ts similarity index 85% rename from src/plugins/home/.storybook/main.ts rename to src/platform/plugins/shared/home/.storybook/main.ts index d8160d757a4ba..81a40a55685bd 100644 --- a/src/plugins/home/.storybook/main.ts +++ b/src/platform/plugins/shared/home/.storybook/main.ts @@ -11,7 +11,7 @@ import { defaultConfig } from '@kbn/storybook'; module.exports = { ...defaultConfig, - stories: ['../../../../packages/home/**/*.stories.+(tsx|mdx)', '../**/*.stories.+(tsx|mdx)'], + stories: ['../../../../../../packages/home/**/*.stories.+(tsx|mdx)', '../**/*.stories.+(tsx|mdx)'], reactOptions: { strictMode: true, }, diff --git a/src/plugins/home/.storybook/manager.ts b/src/platform/plugins/shared/home/.storybook/manager.ts similarity index 96% rename from src/plugins/home/.storybook/manager.ts rename to src/platform/plugins/shared/home/.storybook/manager.ts index 4660c04c7202e..1d26facb84442 100644 --- a/src/plugins/home/.storybook/manager.ts +++ b/src/platform/plugins/shared/home/.storybook/manager.ts @@ -15,7 +15,7 @@ addons.setConfig({ theme: create({ base: 'light', brandTitle: 'Home Storybook', - brandUrl: 'https://github.com/elastic/kibana/tree/main/src/plugins/home', + brandUrl: 'https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/home', }), showPanel: true.valueOf, selectedPanel: PANEL_ID, diff --git a/src/plugins/home/README.md b/src/platform/plugins/shared/home/README.md similarity index 90% rename from src/plugins/home/README.md rename to src/platform/plugins/shared/home/README.md index 1ce0ae0bf44d3..93831a2d89e92 100644 --- a/src/plugins/home/README.md +++ b/src/platform/plugins/shared/home/README.md @@ -38,17 +38,17 @@ Replaces the sample data mixin putting functions on the global `server` object. 3) Kibana uses bulk insert to ingest the new-line delimited json into the Elasticsearch index. Kibana migrates timestamps provided in new-line delimited json to the current time frame for any date field defined in `timeFields` 4) Kibana will install all saved objects for sample data set. This will override any saved objects previouslly installed for sample data set. -Elasticsearch index names are prefixed with `kibana_sample_data_`. For more details see [createIndexName](/src/plugins/home/server/services/sample_data/lib/create_index_name.js) +Elasticsearch index names are prefixed with `kibana_sample_data_`. For more details see [createIndexName](/src/platform/plugins/shared/home/server/services/sample_data/lib/create_index_name.js) Sample data sets typically provide data that spans 5 weeks from the past and 5 weeks into the future so users see data relative to `now` for a few weeks after installing sample data sets. ### Adding new sample data sets -Use [existing sample data sets](/src/plugins/home/server/services/sample_data/data_sets) as examples. +Use [existing sample data sets](/src/platform/plugins/shared/home/server/services/sample_data/data_sets) as examples. To avoid bloating the Kibana distribution, keep data set size to a minimum. Follow the steps below to add new Sample data sets to Kibana. 1) Create new-line delimited json containing sample data. 2) Create file with Elasticsearch field mappings for sample data indices. 3) Create Kibana saved objects for sample data including index-patterns, visualizations, and dashboards. The best way to extract the saved objects is from the Kibana management -> saved objects [export UI](https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html#_export) -4) Define sample data spec conforming to [Data Set Schema](/src/plugins/home/server/services/sample_data/lib/sample_dataset_registry_types.ts). +4) Define sample data spec conforming to [Data Set Schema](/src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_registry_types.ts). 5) Register sample data by calling `plguins.home.sampleData.registerSampleDataset(yourSpecProvider)` in your `setup` method where `yourSpecProvider` is a function that returns an object containing your sample data spec from step 4. diff --git a/src/plugins/home/common/constants.ts b/src/platform/plugins/shared/home/common/constants.ts similarity index 100% rename from src/plugins/home/common/constants.ts rename to src/platform/plugins/shared/home/common/constants.ts diff --git a/src/plugins/home/common/instruction_variant.ts b/src/platform/plugins/shared/home/common/instruction_variant.ts similarity index 100% rename from src/plugins/home/common/instruction_variant.ts rename to src/platform/plugins/shared/home/common/instruction_variant.ts diff --git a/src/plugins/home/jest.config.js b/src/platform/plugins/shared/home/jest.config.js similarity index 73% rename from src/plugins/home/jest.config.js rename to src/platform/plugins/shared/home/jest.config.js index 1265080f41cf7..2ae90c477d305 100644 --- a/src/plugins/home/jest.config.js +++ b/src/platform/plugins/shared/home/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/home'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/home', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/home'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/home', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/home/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/home/{common,public,server}/**/*.{js,ts,tsx}'], }; diff --git a/src/plugins/home/kibana.jsonc b/src/platform/plugins/shared/home/kibana.jsonc similarity index 100% rename from src/plugins/home/kibana.jsonc rename to src/platform/plugins/shared/home/kibana.jsonc diff --git a/src/plugins/home/public/application/application.tsx b/src/platform/plugins/shared/home/public/application/application.tsx similarity index 100% rename from src/plugins/home/public/application/application.tsx rename to src/platform/plugins/shared/home/public/application/application.tsx diff --git a/src/plugins/home/public/application/components/__snapshots__/home.test.tsx.snap b/src/platform/plugins/shared/home/public/application/components/__snapshots__/home.test.tsx.snap similarity index 100% rename from src/plugins/home/public/application/components/__snapshots__/home.test.tsx.snap rename to src/platform/plugins/shared/home/public/application/components/__snapshots__/home.test.tsx.snap diff --git a/src/plugins/home/public/application/components/__snapshots__/recently_accessed.test.js.snap b/src/platform/plugins/shared/home/public/application/components/__snapshots__/recently_accessed.test.js.snap similarity index 100% rename from src/plugins/home/public/application/components/__snapshots__/recently_accessed.test.js.snap rename to src/platform/plugins/shared/home/public/application/components/__snapshots__/recently_accessed.test.js.snap diff --git a/src/plugins/home/public/application/components/__snapshots__/synopsis.test.js.snap b/src/platform/plugins/shared/home/public/application/components/__snapshots__/synopsis.test.js.snap similarity index 100% rename from src/plugins/home/public/application/components/__snapshots__/synopsis.test.js.snap rename to src/platform/plugins/shared/home/public/application/components/__snapshots__/synopsis.test.js.snap diff --git a/src/plugins/home/public/application/components/__snapshots__/welcome.test.tsx.snap b/src/platform/plugins/shared/home/public/application/components/__snapshots__/welcome.test.tsx.snap similarity index 100% rename from src/plugins/home/public/application/components/__snapshots__/welcome.test.tsx.snap rename to src/platform/plugins/shared/home/public/application/components/__snapshots__/welcome.test.tsx.snap diff --git a/src/plugins/home/public/application/components/_add_data.scss b/src/platform/plugins/shared/home/public/application/components/_add_data.scss similarity index 100% rename from src/plugins/home/public/application/components/_add_data.scss rename to src/platform/plugins/shared/home/public/application/components/_add_data.scss diff --git a/src/plugins/home/public/application/components/_index.scss b/src/platform/plugins/shared/home/public/application/components/_index.scss similarity index 100% rename from src/plugins/home/public/application/components/_index.scss rename to src/platform/plugins/shared/home/public/application/components/_index.scss diff --git a/src/plugins/home/public/application/components/_manage_data.scss b/src/platform/plugins/shared/home/public/application/components/_manage_data.scss similarity index 100% rename from src/plugins/home/public/application/components/_manage_data.scss rename to src/platform/plugins/shared/home/public/application/components/_manage_data.scss diff --git a/src/plugins/home/public/application/components/_solutions_section.scss b/src/platform/plugins/shared/home/public/application/components/_solutions_section.scss similarity index 100% rename from src/plugins/home/public/application/components/_solutions_section.scss rename to src/platform/plugins/shared/home/public/application/components/_solutions_section.scss diff --git a/src/plugins/home/public/application/components/_welcome.scss b/src/platform/plugins/shared/home/public/application/components/_welcome.scss similarity index 100% rename from src/plugins/home/public/application/components/_welcome.scss rename to src/platform/plugins/shared/home/public/application/components/_welcome.scss diff --git a/src/plugins/home/public/application/components/add_data/__snapshots__/add_data.test.tsx.snap b/src/platform/plugins/shared/home/public/application/components/add_data/__snapshots__/add_data.test.tsx.snap similarity index 100% rename from src/plugins/home/public/application/components/add_data/__snapshots__/add_data.test.tsx.snap rename to src/platform/plugins/shared/home/public/application/components/add_data/__snapshots__/add_data.test.tsx.snap diff --git a/src/plugins/home/public/application/components/add_data/add_data.test.tsx b/src/platform/plugins/shared/home/public/application/components/add_data/add_data.test.tsx similarity index 100% rename from src/plugins/home/public/application/components/add_data/add_data.test.tsx rename to src/platform/plugins/shared/home/public/application/components/add_data/add_data.test.tsx diff --git a/src/plugins/home/public/application/components/add_data/add_data.tsx b/src/platform/plugins/shared/home/public/application/components/add_data/add_data.tsx similarity index 100% rename from src/plugins/home/public/application/components/add_data/add_data.tsx rename to src/platform/plugins/shared/home/public/application/components/add_data/add_data.tsx diff --git a/src/plugins/home/public/application/components/add_data/index.ts b/src/platform/plugins/shared/home/public/application/components/add_data/index.ts similarity index 100% rename from src/plugins/home/public/application/components/add_data/index.ts rename to src/platform/plugins/shared/home/public/application/components/add_data/index.ts diff --git a/src/plugins/home/public/application/components/app_navigation_handler.ts b/src/platform/plugins/shared/home/public/application/components/app_navigation_handler.ts similarity index 100% rename from src/plugins/home/public/application/components/app_navigation_handler.ts rename to src/platform/plugins/shared/home/public/application/components/app_navigation_handler.ts diff --git a/src/plugins/home/public/application/components/guided_onboarding/getting_started.test.tsx b/src/platform/plugins/shared/home/public/application/components/guided_onboarding/getting_started.test.tsx similarity index 100% rename from src/plugins/home/public/application/components/guided_onboarding/getting_started.test.tsx rename to src/platform/plugins/shared/home/public/application/components/guided_onboarding/getting_started.test.tsx diff --git a/src/plugins/home/public/application/components/guided_onboarding/getting_started.tsx b/src/platform/plugins/shared/home/public/application/components/guided_onboarding/getting_started.tsx similarity index 100% rename from src/plugins/home/public/application/components/guided_onboarding/getting_started.tsx rename to src/platform/plugins/shared/home/public/application/components/guided_onboarding/getting_started.tsx diff --git a/src/plugins/home/public/application/components/guided_onboarding/index.ts b/src/platform/plugins/shared/home/public/application/components/guided_onboarding/index.ts similarity index 100% rename from src/plugins/home/public/application/components/guided_onboarding/index.ts rename to src/platform/plugins/shared/home/public/application/components/guided_onboarding/index.ts diff --git a/src/plugins/home/public/application/components/home.test.tsx b/src/platform/plugins/shared/home/public/application/components/home.test.tsx similarity index 100% rename from src/plugins/home/public/application/components/home.test.tsx rename to src/platform/plugins/shared/home/public/application/components/home.test.tsx diff --git a/src/plugins/home/public/application/components/home.tsx b/src/platform/plugins/shared/home/public/application/components/home.tsx similarity index 100% rename from src/plugins/home/public/application/components/home.tsx rename to src/platform/plugins/shared/home/public/application/components/home.tsx diff --git a/src/plugins/home/public/application/components/home_app.js b/src/platform/plugins/shared/home/public/application/components/home_app.js similarity index 100% rename from src/plugins/home/public/application/components/home_app.js rename to src/platform/plugins/shared/home/public/application/components/home_app.js diff --git a/src/plugins/home/public/application/components/manage_data/__snapshots__/manage_data.test.tsx.snap b/src/platform/plugins/shared/home/public/application/components/manage_data/__snapshots__/manage_data.test.tsx.snap similarity index 100% rename from src/plugins/home/public/application/components/manage_data/__snapshots__/manage_data.test.tsx.snap rename to src/platform/plugins/shared/home/public/application/components/manage_data/__snapshots__/manage_data.test.tsx.snap diff --git a/src/plugins/home/public/application/components/manage_data/index.tsx b/src/platform/plugins/shared/home/public/application/components/manage_data/index.tsx similarity index 100% rename from src/plugins/home/public/application/components/manage_data/index.tsx rename to src/platform/plugins/shared/home/public/application/components/manage_data/index.tsx diff --git a/src/plugins/home/public/application/components/manage_data/manage_data.test.tsx b/src/platform/plugins/shared/home/public/application/components/manage_data/manage_data.test.tsx similarity index 100% rename from src/plugins/home/public/application/components/manage_data/manage_data.test.tsx rename to src/platform/plugins/shared/home/public/application/components/manage_data/manage_data.test.tsx diff --git a/src/plugins/home/public/application/components/manage_data/manage_data.tsx b/src/platform/plugins/shared/home/public/application/components/manage_data/manage_data.tsx similarity index 100% rename from src/plugins/home/public/application/components/manage_data/manage_data.tsx rename to src/platform/plugins/shared/home/public/application/components/manage_data/manage_data.tsx diff --git a/src/plugins/home/public/application/components/move_data/index.tsx b/src/platform/plugins/shared/home/public/application/components/move_data/index.tsx similarity index 100% rename from src/plugins/home/public/application/components/move_data/index.tsx rename to src/platform/plugins/shared/home/public/application/components/move_data/index.tsx diff --git a/src/plugins/home/public/application/components/move_data/move_data.test.tsx b/src/platform/plugins/shared/home/public/application/components/move_data/move_data.test.tsx similarity index 100% rename from src/plugins/home/public/application/components/move_data/move_data.test.tsx rename to src/platform/plugins/shared/home/public/application/components/move_data/move_data.test.tsx diff --git a/src/plugins/home/public/application/components/move_data/move_data.tsx b/src/platform/plugins/shared/home/public/application/components/move_data/move_data.tsx similarity index 100% rename from src/plugins/home/public/application/components/move_data/move_data.tsx rename to src/platform/plugins/shared/home/public/application/components/move_data/move_data.tsx diff --git a/src/plugins/home/public/application/components/recently_accessed.js b/src/platform/plugins/shared/home/public/application/components/recently_accessed.js similarity index 100% rename from src/plugins/home/public/application/components/recently_accessed.js rename to src/platform/plugins/shared/home/public/application/components/recently_accessed.js diff --git a/src/plugins/home/public/application/components/recently_accessed.test.js b/src/platform/plugins/shared/home/public/application/components/recently_accessed.test.js similarity index 100% rename from src/plugins/home/public/application/components/recently_accessed.test.js rename to src/platform/plugins/shared/home/public/application/components/recently_accessed.test.js diff --git a/src/plugins/home/public/application/components/sample_data/index.tsx b/src/platform/plugins/shared/home/public/application/components/sample_data/index.tsx similarity index 100% rename from src/plugins/home/public/application/components/sample_data/index.tsx rename to src/platform/plugins/shared/home/public/application/components/sample_data/index.tsx diff --git a/src/plugins/home/public/application/components/solutions_section/__snapshots__/solution_panel.test.tsx.snap b/src/platform/plugins/shared/home/public/application/components/solutions_section/__snapshots__/solution_panel.test.tsx.snap similarity index 100% rename from src/plugins/home/public/application/components/solutions_section/__snapshots__/solution_panel.test.tsx.snap rename to src/platform/plugins/shared/home/public/application/components/solutions_section/__snapshots__/solution_panel.test.tsx.snap diff --git a/src/plugins/home/public/application/components/solutions_section/__snapshots__/solutions_section.test.tsx.snap b/src/platform/plugins/shared/home/public/application/components/solutions_section/__snapshots__/solutions_section.test.tsx.snap similarity index 100% rename from src/plugins/home/public/application/components/solutions_section/__snapshots__/solutions_section.test.tsx.snap rename to src/platform/plugins/shared/home/public/application/components/solutions_section/__snapshots__/solutions_section.test.tsx.snap diff --git a/src/plugins/home/public/application/components/solutions_section/index.ts b/src/platform/plugins/shared/home/public/application/components/solutions_section/index.ts similarity index 100% rename from src/plugins/home/public/application/components/solutions_section/index.ts rename to src/platform/plugins/shared/home/public/application/components/solutions_section/index.ts diff --git a/src/plugins/home/public/application/components/solutions_section/solution_panel.test.tsx b/src/platform/plugins/shared/home/public/application/components/solutions_section/solution_panel.test.tsx similarity index 100% rename from src/plugins/home/public/application/components/solutions_section/solution_panel.test.tsx rename to src/platform/plugins/shared/home/public/application/components/solutions_section/solution_panel.test.tsx diff --git a/src/plugins/home/public/application/components/solutions_section/solution_panel.tsx b/src/platform/plugins/shared/home/public/application/components/solutions_section/solution_panel.tsx similarity index 100% rename from src/plugins/home/public/application/components/solutions_section/solution_panel.tsx rename to src/platform/plugins/shared/home/public/application/components/solutions_section/solution_panel.tsx diff --git a/src/plugins/home/public/application/components/solutions_section/solutions_section.test.tsx b/src/platform/plugins/shared/home/public/application/components/solutions_section/solutions_section.test.tsx similarity index 100% rename from src/plugins/home/public/application/components/solutions_section/solutions_section.test.tsx rename to src/platform/plugins/shared/home/public/application/components/solutions_section/solutions_section.test.tsx diff --git a/src/plugins/home/public/application/components/solutions_section/solutions_section.tsx b/src/platform/plugins/shared/home/public/application/components/solutions_section/solutions_section.tsx similarity index 100% rename from src/plugins/home/public/application/components/solutions_section/solutions_section.tsx rename to src/platform/plugins/shared/home/public/application/components/solutions_section/solutions_section.tsx diff --git a/src/plugins/home/public/application/components/synopsis.js b/src/platform/plugins/shared/home/public/application/components/synopsis.js similarity index 100% rename from src/plugins/home/public/application/components/synopsis.js rename to src/platform/plugins/shared/home/public/application/components/synopsis.js diff --git a/src/plugins/home/public/application/components/synopsis.test.js b/src/platform/plugins/shared/home/public/application/components/synopsis.test.js similarity index 100% rename from src/plugins/home/public/application/components/synopsis.test.js rename to src/platform/plugins/shared/home/public/application/components/synopsis.test.js diff --git a/src/plugins/home/public/application/components/tutorial/__snapshots__/content.test.js.snap b/src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/content.test.js.snap similarity index 100% rename from src/plugins/home/public/application/components/tutorial/__snapshots__/content.test.js.snap rename to src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/content.test.js.snap diff --git a/src/plugins/home/public/application/components/tutorial/__snapshots__/footer.test.js.snap b/src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/footer.test.js.snap similarity index 100% rename from src/plugins/home/public/application/components/tutorial/__snapshots__/footer.test.js.snap rename to src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/footer.test.js.snap diff --git a/src/plugins/home/public/application/components/tutorial/__snapshots__/instruction_set.test.js.snap b/src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/instruction_set.test.js.snap similarity index 100% rename from src/plugins/home/public/application/components/tutorial/__snapshots__/instruction_set.test.js.snap rename to src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/instruction_set.test.js.snap diff --git a/src/plugins/home/public/application/components/tutorial/__snapshots__/introduction.test.js.snap b/src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/introduction.test.js.snap similarity index 100% rename from src/plugins/home/public/application/components/tutorial/__snapshots__/introduction.test.js.snap rename to src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/introduction.test.js.snap diff --git a/src/plugins/home/public/application/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap b/src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap similarity index 100% rename from src/plugins/home/public/application/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap rename to src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/saved_objects_installer.test.js.snap diff --git a/src/plugins/home/public/application/components/tutorial/__snapshots__/tutorial.test.js.snap b/src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/tutorial.test.js.snap similarity index 100% rename from src/plugins/home/public/application/components/tutorial/__snapshots__/tutorial.test.js.snap rename to src/platform/plugins/shared/home/public/application/components/tutorial/__snapshots__/tutorial.test.js.snap diff --git a/src/plugins/home/public/application/components/tutorial/_tutorial.scss b/src/platform/plugins/shared/home/public/application/components/tutorial/_tutorial.scss similarity index 100% rename from src/plugins/home/public/application/components/tutorial/_tutorial.scss rename to src/platform/plugins/shared/home/public/application/components/tutorial/_tutorial.scss diff --git a/src/plugins/home/public/application/components/tutorial/content.js b/src/platform/plugins/shared/home/public/application/components/tutorial/content.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/content.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/content.js diff --git a/src/plugins/home/public/application/components/tutorial/content.test.js b/src/platform/plugins/shared/home/public/application/components/tutorial/content.test.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/content.test.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/content.test.js diff --git a/src/plugins/home/public/application/components/tutorial/footer.js b/src/platform/plugins/shared/home/public/application/components/tutorial/footer.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/footer.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/footer.js diff --git a/src/plugins/home/public/application/components/tutorial/footer.test.js b/src/platform/plugins/shared/home/public/application/components/tutorial/footer.test.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/footer.test.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/footer.test.js diff --git a/src/plugins/home/public/application/components/tutorial/instruction.js b/src/platform/plugins/shared/home/public/application/components/tutorial/instruction.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/instruction.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/instruction.js diff --git a/src/plugins/home/public/application/components/tutorial/instruction_set.js b/src/platform/plugins/shared/home/public/application/components/tutorial/instruction_set.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/instruction_set.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/instruction_set.js diff --git a/src/plugins/home/public/application/components/tutorial/instruction_set.test.js b/src/platform/plugins/shared/home/public/application/components/tutorial/instruction_set.test.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/instruction_set.test.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/instruction_set.test.js diff --git a/src/plugins/home/public/application/components/tutorial/introduction.js b/src/platform/plugins/shared/home/public/application/components/tutorial/introduction.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/introduction.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/introduction.js diff --git a/src/plugins/home/public/application/components/tutorial/introduction.test.js b/src/platform/plugins/shared/home/public/application/components/tutorial/introduction.test.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/introduction.test.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/introduction.test.js diff --git a/src/plugins/home/public/application/components/tutorial/number_parameter.js b/src/platform/plugins/shared/home/public/application/components/tutorial/number_parameter.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/number_parameter.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/number_parameter.js diff --git a/src/plugins/home/public/application/components/tutorial/parameter_form.js b/src/platform/plugins/shared/home/public/application/components/tutorial/parameter_form.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/parameter_form.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/parameter_form.js diff --git a/src/plugins/home/public/application/components/tutorial/replace_template_strings.js b/src/platform/plugins/shared/home/public/application/components/tutorial/replace_template_strings.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/replace_template_strings.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/replace_template_strings.js diff --git a/src/plugins/home/public/application/components/tutorial/saved_objects_installer.js b/src/platform/plugins/shared/home/public/application/components/tutorial/saved_objects_installer.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/saved_objects_installer.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/saved_objects_installer.js diff --git a/src/plugins/home/public/application/components/tutorial/saved_objects_installer.test.js b/src/platform/plugins/shared/home/public/application/components/tutorial/saved_objects_installer.test.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/saved_objects_installer.test.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/saved_objects_installer.test.js diff --git a/src/plugins/home/public/application/components/tutorial/status_check_states.js b/src/platform/plugins/shared/home/public/application/components/tutorial/status_check_states.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/status_check_states.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/status_check_states.js diff --git a/src/plugins/home/public/application/components/tutorial/string_parameter.js b/src/platform/plugins/shared/home/public/application/components/tutorial/string_parameter.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/string_parameter.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/string_parameter.js diff --git a/src/plugins/home/public/application/components/tutorial/tutorial.js b/src/platform/plugins/shared/home/public/application/components/tutorial/tutorial.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/tutorial.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/tutorial.js diff --git a/src/plugins/home/public/application/components/tutorial/tutorial.test.js b/src/platform/plugins/shared/home/public/application/components/tutorial/tutorial.test.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial/tutorial.test.js rename to src/platform/plugins/shared/home/public/application/components/tutorial/tutorial.test.js diff --git a/src/plugins/home/public/application/components/tutorial_directory.js b/src/platform/plugins/shared/home/public/application/components/tutorial_directory.js similarity index 100% rename from src/plugins/home/public/application/components/tutorial_directory.js rename to src/platform/plugins/shared/home/public/application/components/tutorial_directory.js diff --git a/src/plugins/home/public/application/components/welcome.test.mocks.ts b/src/platform/plugins/shared/home/public/application/components/welcome.test.mocks.ts similarity index 100% rename from src/plugins/home/public/application/components/welcome.test.mocks.ts rename to src/platform/plugins/shared/home/public/application/components/welcome.test.mocks.ts diff --git a/src/plugins/home/public/application/components/welcome.test.tsx b/src/platform/plugins/shared/home/public/application/components/welcome.test.tsx similarity index 100% rename from src/plugins/home/public/application/components/welcome.test.tsx rename to src/platform/plugins/shared/home/public/application/components/welcome.test.tsx diff --git a/src/plugins/home/public/application/components/welcome.tsx b/src/platform/plugins/shared/home/public/application/components/welcome.tsx similarity index 100% rename from src/plugins/home/public/application/components/welcome.tsx rename to src/platform/plugins/shared/home/public/application/components/welcome.tsx diff --git a/src/plugins/home/public/application/index.scss b/src/platform/plugins/shared/home/public/application/index.scss similarity index 100% rename from src/plugins/home/public/application/index.scss rename to src/platform/plugins/shared/home/public/application/index.scss diff --git a/src/plugins/home/public/application/index.ts b/src/platform/plugins/shared/home/public/application/index.ts similarity index 100% rename from src/plugins/home/public/application/index.ts rename to src/platform/plugins/shared/home/public/application/index.ts diff --git a/src/plugins/home/public/application/kibana_services.ts b/src/platform/plugins/shared/home/public/application/kibana_services.ts similarity index 100% rename from src/plugins/home/public/application/kibana_services.ts rename to src/platform/plugins/shared/home/public/application/kibana_services.ts diff --git a/src/plugins/home/public/application/load_tutorials.js b/src/platform/plugins/shared/home/public/application/load_tutorials.js similarity index 100% rename from src/plugins/home/public/application/load_tutorials.js rename to src/platform/plugins/shared/home/public/application/load_tutorials.js diff --git a/src/plugins/home/public/application/sample_data_client.ts b/src/platform/plugins/shared/home/public/application/sample_data_client.ts similarity index 100% rename from src/plugins/home/public/application/sample_data_client.ts rename to src/platform/plugins/shared/home/public/application/sample_data_client.ts diff --git a/src/plugins/home/public/assets/activemq_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/activemq_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/activemq_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/activemq_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/apache_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/apache_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/apache_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/apache_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/apache_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/apache_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/apache_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/apache_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/auditbeat/screenshot.webp b/src/platform/plugins/shared/home/public/assets/auditbeat/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/auditbeat/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/auditbeat/screenshot.webp diff --git a/src/plugins/home/public/assets/auditd_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/auditd_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/auditd_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/auditd_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/aws_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/aws_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/aws_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/aws_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/aws_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/aws_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/aws_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/aws_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/azure_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/azure_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/azure_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/azure_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/azure_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/azure_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/azure_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/azure_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/cisco_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/cisco_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/cisco_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/cisco_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/cockroachdb_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/cockroachdb_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/cockroachdb_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/cockroachdb_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/common/illustration_integrations_darkmode.png b/src/platform/plugins/shared/home/public/assets/common/illustration_integrations_darkmode.png similarity index 100% rename from src/plugins/home/public/assets/common/illustration_integrations_darkmode.png rename to src/platform/plugins/shared/home/public/assets/common/illustration_integrations_darkmode.png diff --git a/src/plugins/home/public/assets/common/illustration_integrations_lightmode.png b/src/platform/plugins/shared/home/public/assets/common/illustration_integrations_lightmode.png similarity index 100% rename from src/plugins/home/public/assets/common/illustration_integrations_lightmode.png rename to src/platform/plugins/shared/home/public/assets/common/illustration_integrations_lightmode.png diff --git a/src/plugins/home/public/assets/consul_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/consul_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/consul_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/consul_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/coredns_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/coredns_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/coredns_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/coredns_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/coredns_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/coredns_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/coredns_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/coredns_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/couchdb_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/couchdb_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/couchdb_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/couchdb_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/crowdstrike_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/crowdstrike_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/crowdstrike_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/crowdstrike_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/docker_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/docker_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/docker_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/docker_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/envoyproxy_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/envoyproxy_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/envoyproxy_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/envoyproxy_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/googlecloud_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/googlecloud_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/googlecloud_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/googlecloud_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/googlecloud_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/googlecloud_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/googlecloud_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/googlecloud_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/haproxy_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/haproxy_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/haproxy_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/haproxy_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/ibmmq_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/ibmmq_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/ibmmq_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/ibmmq_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/ibmmq_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/ibmmq_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/ibmmq_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/ibmmq_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/icinga_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/icinga_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/icinga_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/icinga_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/iis_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/iis_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/iis_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/iis_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/iis_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/iis_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/iis_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/iis_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/iptables_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/iptables_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/iptables_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/iptables_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/kafka_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/kafka_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/kafka_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/kafka_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/kubernetes_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/kubernetes_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/kubernetes_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/kubernetes_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/logos/activemq.svg b/src/platform/plugins/shared/home/public/assets/logos/activemq.svg similarity index 100% rename from src/plugins/home/public/assets/logos/activemq.svg rename to src/platform/plugins/shared/home/public/assets/logos/activemq.svg diff --git a/src/plugins/home/public/assets/logos/barracuda.svg b/src/platform/plugins/shared/home/public/assets/logos/barracuda.svg similarity index 100% rename from src/plugins/home/public/assets/logos/barracuda.svg rename to src/platform/plugins/shared/home/public/assets/logos/barracuda.svg diff --git a/src/plugins/home/public/assets/logos/checkpoint.svg b/src/platform/plugins/shared/home/public/assets/logos/checkpoint.svg similarity index 100% rename from src/plugins/home/public/assets/logos/checkpoint.svg rename to src/platform/plugins/shared/home/public/assets/logos/checkpoint.svg diff --git a/src/plugins/home/public/assets/logos/cisco.svg b/src/platform/plugins/shared/home/public/assets/logos/cisco.svg similarity index 100% rename from src/plugins/home/public/assets/logos/cisco.svg rename to src/platform/plugins/shared/home/public/assets/logos/cisco.svg diff --git a/src/plugins/home/public/assets/logos/cockroachdb.svg b/src/platform/plugins/shared/home/public/assets/logos/cockroachdb.svg similarity index 100% rename from src/plugins/home/public/assets/logos/cockroachdb.svg rename to src/platform/plugins/shared/home/public/assets/logos/cockroachdb.svg diff --git a/src/plugins/home/public/assets/logos/consul.svg b/src/platform/plugins/shared/home/public/assets/logos/consul.svg similarity index 100% rename from src/plugins/home/public/assets/logos/consul.svg rename to src/platform/plugins/shared/home/public/assets/logos/consul.svg diff --git a/src/plugins/home/public/assets/logos/coredns.svg b/src/platform/plugins/shared/home/public/assets/logos/coredns.svg similarity index 100% rename from src/plugins/home/public/assets/logos/coredns.svg rename to src/platform/plugins/shared/home/public/assets/logos/coredns.svg diff --git a/src/plugins/home/public/assets/logos/couchdb.svg b/src/platform/plugins/shared/home/public/assets/logos/couchdb.svg similarity index 100% rename from src/plugins/home/public/assets/logos/couchdb.svg rename to src/platform/plugins/shared/home/public/assets/logos/couchdb.svg diff --git a/src/plugins/home/public/assets/logos/crowdstrike.svg b/src/platform/plugins/shared/home/public/assets/logos/crowdstrike.svg similarity index 100% rename from src/plugins/home/public/assets/logos/crowdstrike.svg rename to src/platform/plugins/shared/home/public/assets/logos/crowdstrike.svg diff --git a/src/plugins/home/public/assets/logos/cylance.svg b/src/platform/plugins/shared/home/public/assets/logos/cylance.svg similarity index 100% rename from src/plugins/home/public/assets/logos/cylance.svg rename to src/platform/plugins/shared/home/public/assets/logos/cylance.svg diff --git a/src/plugins/home/public/assets/logos/envoyproxy.svg b/src/platform/plugins/shared/home/public/assets/logos/envoyproxy.svg similarity index 100% rename from src/plugins/home/public/assets/logos/envoyproxy.svg rename to src/platform/plugins/shared/home/public/assets/logos/envoyproxy.svg diff --git a/src/plugins/home/public/assets/logos/f5.svg b/src/platform/plugins/shared/home/public/assets/logos/f5.svg similarity index 100% rename from src/plugins/home/public/assets/logos/f5.svg rename to src/platform/plugins/shared/home/public/assets/logos/f5.svg diff --git a/src/plugins/home/public/assets/logos/fortinet.svg b/src/platform/plugins/shared/home/public/assets/logos/fortinet.svg similarity index 100% rename from src/plugins/home/public/assets/logos/fortinet.svg rename to src/platform/plugins/shared/home/public/assets/logos/fortinet.svg diff --git a/src/plugins/home/public/assets/logos/ibmmq.svg b/src/platform/plugins/shared/home/public/assets/logos/ibmmq.svg similarity index 100% rename from src/plugins/home/public/assets/logos/ibmmq.svg rename to src/platform/plugins/shared/home/public/assets/logos/ibmmq.svg diff --git a/src/plugins/home/public/assets/logos/icinga.svg b/src/platform/plugins/shared/home/public/assets/logos/icinga.svg similarity index 100% rename from src/plugins/home/public/assets/logos/icinga.svg rename to src/platform/plugins/shared/home/public/assets/logos/icinga.svg diff --git a/src/plugins/home/public/assets/logos/iis.svg b/src/platform/plugins/shared/home/public/assets/logos/iis.svg similarity index 100% rename from src/plugins/home/public/assets/logos/iis.svg rename to src/platform/plugins/shared/home/public/assets/logos/iis.svg diff --git a/src/plugins/home/public/assets/logos/infoblox.svg b/src/platform/plugins/shared/home/public/assets/logos/infoblox.svg similarity index 100% rename from src/plugins/home/public/assets/logos/infoblox.svg rename to src/platform/plugins/shared/home/public/assets/logos/infoblox.svg diff --git a/src/plugins/home/public/assets/logos/juniper.svg b/src/platform/plugins/shared/home/public/assets/logos/juniper.svg similarity index 100% rename from src/plugins/home/public/assets/logos/juniper.svg rename to src/platform/plugins/shared/home/public/assets/logos/juniper.svg diff --git a/src/plugins/home/public/assets/logos/linux.svg b/src/platform/plugins/shared/home/public/assets/logos/linux.svg similarity index 100% rename from src/plugins/home/public/assets/logos/linux.svg rename to src/platform/plugins/shared/home/public/assets/logos/linux.svg diff --git a/src/plugins/home/public/assets/logos/microsoft.svg b/src/platform/plugins/shared/home/public/assets/logos/microsoft.svg similarity index 100% rename from src/plugins/home/public/assets/logos/microsoft.svg rename to src/platform/plugins/shared/home/public/assets/logos/microsoft.svg diff --git a/src/plugins/home/public/assets/logos/misp.svg b/src/platform/plugins/shared/home/public/assets/logos/misp.svg similarity index 100% rename from src/plugins/home/public/assets/logos/misp.svg rename to src/platform/plugins/shared/home/public/assets/logos/misp.svg diff --git a/src/plugins/home/public/assets/logos/mssql.svg b/src/platform/plugins/shared/home/public/assets/logos/mssql.svg similarity index 100% rename from src/plugins/home/public/assets/logos/mssql.svg rename to src/platform/plugins/shared/home/public/assets/logos/mssql.svg diff --git a/src/plugins/home/public/assets/logos/munin.svg b/src/platform/plugins/shared/home/public/assets/logos/munin.svg similarity index 100% rename from src/plugins/home/public/assets/logos/munin.svg rename to src/platform/plugins/shared/home/public/assets/logos/munin.svg diff --git a/src/plugins/home/public/assets/logos/nats.svg b/src/platform/plugins/shared/home/public/assets/logos/nats.svg similarity index 100% rename from src/plugins/home/public/assets/logos/nats.svg rename to src/platform/plugins/shared/home/public/assets/logos/nats.svg diff --git a/src/plugins/home/public/assets/logos/netscout.svg b/src/platform/plugins/shared/home/public/assets/logos/netscout.svg similarity index 100% rename from src/plugins/home/public/assets/logos/netscout.svg rename to src/platform/plugins/shared/home/public/assets/logos/netscout.svg diff --git a/src/plugins/home/public/assets/logos/o365.svg b/src/platform/plugins/shared/home/public/assets/logos/o365.svg similarity index 100% rename from src/plugins/home/public/assets/logos/o365.svg rename to src/platform/plugins/shared/home/public/assets/logos/o365.svg diff --git a/src/plugins/home/public/assets/logos/okta.svg b/src/platform/plugins/shared/home/public/assets/logos/okta.svg similarity index 100% rename from src/plugins/home/public/assets/logos/okta.svg rename to src/platform/plugins/shared/home/public/assets/logos/okta.svg diff --git a/src/plugins/home/public/assets/logos/openmetrics.svg b/src/platform/plugins/shared/home/public/assets/logos/openmetrics.svg similarity index 100% rename from src/plugins/home/public/assets/logos/openmetrics.svg rename to src/platform/plugins/shared/home/public/assets/logos/openmetrics.svg diff --git a/src/plugins/home/public/assets/logos/oracle.svg b/src/platform/plugins/shared/home/public/assets/logos/oracle.svg similarity index 100% rename from src/plugins/home/public/assets/logos/oracle.svg rename to src/platform/plugins/shared/home/public/assets/logos/oracle.svg diff --git a/src/plugins/home/public/assets/logos/osquery.svg b/src/platform/plugins/shared/home/public/assets/logos/osquery.svg similarity index 100% rename from src/plugins/home/public/assets/logos/osquery.svg rename to src/platform/plugins/shared/home/public/assets/logos/osquery.svg diff --git a/src/plugins/home/public/assets/logos/paloalto.svg b/src/platform/plugins/shared/home/public/assets/logos/paloalto.svg similarity index 100% rename from src/plugins/home/public/assets/logos/paloalto.svg rename to src/platform/plugins/shared/home/public/assets/logos/paloalto.svg diff --git a/src/plugins/home/public/assets/logos/rabbitmq.svg b/src/platform/plugins/shared/home/public/assets/logos/rabbitmq.svg similarity index 100% rename from src/plugins/home/public/assets/logos/rabbitmq.svg rename to src/platform/plugins/shared/home/public/assets/logos/rabbitmq.svg diff --git a/src/plugins/home/public/assets/logos/radware.svg b/src/platform/plugins/shared/home/public/assets/logos/radware.svg similarity index 100% rename from src/plugins/home/public/assets/logos/radware.svg rename to src/platform/plugins/shared/home/public/assets/logos/radware.svg diff --git a/src/plugins/home/public/assets/logos/sonicwall.svg b/src/platform/plugins/shared/home/public/assets/logos/sonicwall.svg similarity index 100% rename from src/plugins/home/public/assets/logos/sonicwall.svg rename to src/platform/plugins/shared/home/public/assets/logos/sonicwall.svg diff --git a/src/plugins/home/public/assets/logos/sophos.svg b/src/platform/plugins/shared/home/public/assets/logos/sophos.svg similarity index 100% rename from src/plugins/home/public/assets/logos/sophos.svg rename to src/platform/plugins/shared/home/public/assets/logos/sophos.svg diff --git a/src/plugins/home/public/assets/logos/stan.svg b/src/platform/plugins/shared/home/public/assets/logos/stan.svg similarity index 100% rename from src/plugins/home/public/assets/logos/stan.svg rename to src/platform/plugins/shared/home/public/assets/logos/stan.svg diff --git a/src/plugins/home/public/assets/logos/statsd.svg b/src/platform/plugins/shared/home/public/assets/logos/statsd.svg similarity index 100% rename from src/plugins/home/public/assets/logos/statsd.svg rename to src/platform/plugins/shared/home/public/assets/logos/statsd.svg diff --git a/src/plugins/home/public/assets/logos/suricata.svg b/src/platform/plugins/shared/home/public/assets/logos/suricata.svg similarity index 100% rename from src/plugins/home/public/assets/logos/suricata.svg rename to src/platform/plugins/shared/home/public/assets/logos/suricata.svg diff --git a/src/plugins/home/public/assets/logos/system.svg b/src/platform/plugins/shared/home/public/assets/logos/system.svg similarity index 100% rename from src/plugins/home/public/assets/logos/system.svg rename to src/platform/plugins/shared/home/public/assets/logos/system.svg diff --git a/src/plugins/home/public/assets/logos/tomcat.svg b/src/platform/plugins/shared/home/public/assets/logos/tomcat.svg similarity index 100% rename from src/plugins/home/public/assets/logos/tomcat.svg rename to src/platform/plugins/shared/home/public/assets/logos/tomcat.svg diff --git a/src/plugins/home/public/assets/logos/traefik.svg b/src/platform/plugins/shared/home/public/assets/logos/traefik.svg similarity index 100% rename from src/plugins/home/public/assets/logos/traefik.svg rename to src/platform/plugins/shared/home/public/assets/logos/traefik.svg diff --git a/src/plugins/home/public/assets/logos/ubiquiti.svg b/src/platform/plugins/shared/home/public/assets/logos/ubiquiti.svg similarity index 100% rename from src/plugins/home/public/assets/logos/ubiquiti.svg rename to src/platform/plugins/shared/home/public/assets/logos/ubiquiti.svg diff --git a/src/plugins/home/public/assets/logos/uwsgi.svg b/src/platform/plugins/shared/home/public/assets/logos/uwsgi.svg similarity index 100% rename from src/plugins/home/public/assets/logos/uwsgi.svg rename to src/platform/plugins/shared/home/public/assets/logos/uwsgi.svg diff --git a/src/plugins/home/public/assets/logos/vsphere.svg b/src/platform/plugins/shared/home/public/assets/logos/vsphere.svg similarity index 100% rename from src/plugins/home/public/assets/logos/vsphere.svg rename to src/platform/plugins/shared/home/public/assets/logos/vsphere.svg diff --git a/src/plugins/home/public/assets/logos/zeek.svg b/src/platform/plugins/shared/home/public/assets/logos/zeek.svg similarity index 100% rename from src/plugins/home/public/assets/logos/zeek.svg rename to src/platform/plugins/shared/home/public/assets/logos/zeek.svg diff --git a/src/plugins/home/public/assets/logos/zookeeper.svg b/src/platform/plugins/shared/home/public/assets/logos/zookeeper.svg similarity index 100% rename from src/plugins/home/public/assets/logos/zookeeper.svg rename to src/platform/plugins/shared/home/public/assets/logos/zookeeper.svg diff --git a/src/plugins/home/public/assets/logos/zscaler.svg b/src/platform/plugins/shared/home/public/assets/logos/zscaler.svg similarity index 100% rename from src/plugins/home/public/assets/logos/zscaler.svg rename to src/platform/plugins/shared/home/public/assets/logos/zscaler.svg diff --git a/src/plugins/home/public/assets/logstash_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/logstash_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/logstash_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/logstash_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/microsoft_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/microsoft_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/microsoft_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/microsoft_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/misp_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/misp_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/misp_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/misp_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/mongodb_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/mongodb_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/mongodb_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/mongodb_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/mongodb_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/mongodb_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/mongodb_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/mongodb_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/mssql_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/mssql_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/mssql_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/mssql_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/mysql_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/mysql_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/mysql_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/mysql_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/mysql_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/mysql_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/mysql_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/mysql_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/nats_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/nats_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/nats_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/nats_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/nats_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/nats_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/nats_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/nats_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/nginx_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/nginx_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/nginx_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/nginx_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/nginx_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/nginx_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/nginx_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/nginx_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/o365_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/o365_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/o365_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/o365_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/okta_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/okta_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/okta_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/okta_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/osquery_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/osquery_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/osquery_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/osquery_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/panw_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/panw_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/panw_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/panw_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/postgresql_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/postgresql_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/postgresql_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/postgresql_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/rabbitmq_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/rabbitmq_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/rabbitmq_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/rabbitmq_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/redis_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/redis_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/redis_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/redis_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/redis_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/redis_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/redis_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/redis_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/redisenterprise_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/redisenterprise_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/redisenterprise_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/redisenterprise_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/sample_data_resources/ecommerce/dashboard.webp b/src/platform/plugins/shared/home/public/assets/sample_data_resources/ecommerce/dashboard.webp similarity index 100% rename from src/plugins/home/public/assets/sample_data_resources/ecommerce/dashboard.webp rename to src/platform/plugins/shared/home/public/assets/sample_data_resources/ecommerce/dashboard.webp diff --git a/src/plugins/home/public/assets/sample_data_resources/ecommerce/dashboard_dark.webp b/src/platform/plugins/shared/home/public/assets/sample_data_resources/ecommerce/dashboard_dark.webp similarity index 100% rename from src/plugins/home/public/assets/sample_data_resources/ecommerce/dashboard_dark.webp rename to src/platform/plugins/shared/home/public/assets/sample_data_resources/ecommerce/dashboard_dark.webp diff --git a/src/plugins/home/public/assets/sample_data_resources/ecommerce/icon.svg b/src/platform/plugins/shared/home/public/assets/sample_data_resources/ecommerce/icon.svg similarity index 100% rename from src/plugins/home/public/assets/sample_data_resources/ecommerce/icon.svg rename to src/platform/plugins/shared/home/public/assets/sample_data_resources/ecommerce/icon.svg diff --git a/src/plugins/home/public/assets/sample_data_resources/flights/dashboard.webp b/src/platform/plugins/shared/home/public/assets/sample_data_resources/flights/dashboard.webp similarity index 100% rename from src/plugins/home/public/assets/sample_data_resources/flights/dashboard.webp rename to src/platform/plugins/shared/home/public/assets/sample_data_resources/flights/dashboard.webp diff --git a/src/plugins/home/public/assets/sample_data_resources/flights/dashboard_dark.webp b/src/platform/plugins/shared/home/public/assets/sample_data_resources/flights/dashboard_dark.webp similarity index 100% rename from src/plugins/home/public/assets/sample_data_resources/flights/dashboard_dark.webp rename to src/platform/plugins/shared/home/public/assets/sample_data_resources/flights/dashboard_dark.webp diff --git a/src/plugins/home/public/assets/sample_data_resources/flights/icon.svg b/src/platform/plugins/shared/home/public/assets/sample_data_resources/flights/icon.svg similarity index 100% rename from src/plugins/home/public/assets/sample_data_resources/flights/icon.svg rename to src/platform/plugins/shared/home/public/assets/sample_data_resources/flights/icon.svg diff --git a/src/plugins/home/public/assets/sample_data_resources/logs/dashboard.webp b/src/platform/plugins/shared/home/public/assets/sample_data_resources/logs/dashboard.webp similarity index 100% rename from src/plugins/home/public/assets/sample_data_resources/logs/dashboard.webp rename to src/platform/plugins/shared/home/public/assets/sample_data_resources/logs/dashboard.webp diff --git a/src/plugins/home/public/assets/sample_data_resources/logs/dashboard_dark.webp b/src/platform/plugins/shared/home/public/assets/sample_data_resources/logs/dashboard_dark.webp similarity index 100% rename from src/plugins/home/public/assets/sample_data_resources/logs/dashboard_dark.webp rename to src/platform/plugins/shared/home/public/assets/sample_data_resources/logs/dashboard_dark.webp diff --git a/src/plugins/home/public/assets/sample_data_resources/logs/icon.svg b/src/platform/plugins/shared/home/public/assets/sample_data_resources/logs/icon.svg similarity index 100% rename from src/plugins/home/public/assets/sample_data_resources/logs/icon.svg rename to src/platform/plugins/shared/home/public/assets/sample_data_resources/logs/icon.svg diff --git a/src/plugins/home/public/assets/santa_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/santa_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/santa_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/santa_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/solution_logos/kubernetes.png b/src/platform/plugins/shared/home/public/assets/solution_logos/kubernetes.png similarity index 100% rename from src/plugins/home/public/assets/solution_logos/kubernetes.png rename to src/platform/plugins/shared/home/public/assets/solution_logos/kubernetes.png diff --git a/src/plugins/home/public/assets/solution_logos/kubernetes_dark.png b/src/platform/plugins/shared/home/public/assets/solution_logos/kubernetes_dark.png similarity index 100% rename from src/plugins/home/public/assets/solution_logos/kubernetes_dark.png rename to src/platform/plugins/shared/home/public/assets/solution_logos/kubernetes_dark.png diff --git a/src/plugins/home/public/assets/solution_logos/observability.png b/src/platform/plugins/shared/home/public/assets/solution_logos/observability.png similarity index 100% rename from src/plugins/home/public/assets/solution_logos/observability.png rename to src/platform/plugins/shared/home/public/assets/solution_logos/observability.png diff --git a/src/plugins/home/public/assets/solution_logos/observability_dark.png b/src/platform/plugins/shared/home/public/assets/solution_logos/observability_dark.png similarity index 100% rename from src/plugins/home/public/assets/solution_logos/observability_dark.png rename to src/platform/plugins/shared/home/public/assets/solution_logos/observability_dark.png diff --git a/src/plugins/home/public/assets/solution_logos/search.png b/src/platform/plugins/shared/home/public/assets/solution_logos/search.png similarity index 100% rename from src/plugins/home/public/assets/solution_logos/search.png rename to src/platform/plugins/shared/home/public/assets/solution_logos/search.png diff --git a/src/plugins/home/public/assets/solution_logos/search_dark.png b/src/platform/plugins/shared/home/public/assets/solution_logos/search_dark.png similarity index 100% rename from src/plugins/home/public/assets/solution_logos/search_dark.png rename to src/platform/plugins/shared/home/public/assets/solution_logos/search_dark.png diff --git a/src/plugins/home/public/assets/solution_logos/security.png b/src/platform/plugins/shared/home/public/assets/solution_logos/security.png similarity index 100% rename from src/plugins/home/public/assets/solution_logos/security.png rename to src/platform/plugins/shared/home/public/assets/solution_logos/security.png diff --git a/src/plugins/home/public/assets/solution_logos/security_dark.png b/src/platform/plugins/shared/home/public/assets/solution_logos/security_dark.png similarity index 100% rename from src/plugins/home/public/assets/solution_logos/security_dark.png rename to src/platform/plugins/shared/home/public/assets/solution_logos/security_dark.png diff --git a/src/plugins/home/public/assets/stan_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/stan_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/stan_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/stan_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/suricata_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/suricata_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/suricata_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/suricata_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/system_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/system_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/system_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/system_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/system_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/system_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/system_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/system_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/traefik_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/traefik_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/traefik_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/traefik_logs/screenshot.webp diff --git a/src/plugins/home/public/assets/uptime_monitors/screenshot.webp b/src/platform/plugins/shared/home/public/assets/uptime_monitors/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/uptime_monitors/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/uptime_monitors/screenshot.webp diff --git a/src/plugins/home/public/assets/uwsgi_metrics/screenshot.webp b/src/platform/plugins/shared/home/public/assets/uwsgi_metrics/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/uwsgi_metrics/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/uwsgi_metrics/screenshot.webp diff --git a/src/plugins/home/public/assets/welcome_graphic_dark_2x.png b/src/platform/plugins/shared/home/public/assets/welcome_graphic_dark_2x.png similarity index 100% rename from src/plugins/home/public/assets/welcome_graphic_dark_2x.png rename to src/platform/plugins/shared/home/public/assets/welcome_graphic_dark_2x.png diff --git a/src/plugins/home/public/assets/welcome_graphic_light_2x.png b/src/platform/plugins/shared/home/public/assets/welcome_graphic_light_2x.png similarity index 100% rename from src/plugins/home/public/assets/welcome_graphic_light_2x.png rename to src/platform/plugins/shared/home/public/assets/welcome_graphic_light_2x.png diff --git a/src/plugins/home/public/assets/zeek_logs/screenshot.webp b/src/platform/plugins/shared/home/public/assets/zeek_logs/screenshot.webp similarity index 100% rename from src/plugins/home/public/assets/zeek_logs/screenshot.webp rename to src/platform/plugins/shared/home/public/assets/zeek_logs/screenshot.webp diff --git a/src/plugins/home/public/index.ts b/src/platform/plugins/shared/home/public/index.ts similarity index 100% rename from src/plugins/home/public/index.ts rename to src/platform/plugins/shared/home/public/index.ts diff --git a/src/plugins/home/public/mocks.ts b/src/platform/plugins/shared/home/public/mocks.ts similarity index 100% rename from src/plugins/home/public/mocks.ts rename to src/platform/plugins/shared/home/public/mocks.ts diff --git a/src/plugins/home/public/plugin.test.mocks.ts b/src/platform/plugins/shared/home/public/plugin.test.mocks.ts similarity index 100% rename from src/plugins/home/public/plugin.test.mocks.ts rename to src/platform/plugins/shared/home/public/plugin.test.mocks.ts diff --git a/src/plugins/home/public/plugin.test.ts b/src/platform/plugins/shared/home/public/plugin.test.ts similarity index 100% rename from src/plugins/home/public/plugin.test.ts rename to src/platform/plugins/shared/home/public/plugin.test.ts diff --git a/src/plugins/home/public/plugin.ts b/src/platform/plugins/shared/home/public/plugin.ts similarity index 100% rename from src/plugins/home/public/plugin.ts rename to src/platform/plugins/shared/home/public/plugin.ts diff --git a/src/plugins/home/public/services/add_data/add_data_service.mock.ts b/src/platform/plugins/shared/home/public/services/add_data/add_data_service.mock.ts similarity index 100% rename from src/plugins/home/public/services/add_data/add_data_service.mock.ts rename to src/platform/plugins/shared/home/public/services/add_data/add_data_service.mock.ts diff --git a/src/plugins/home/public/services/add_data/add_data_service.test.tsx b/src/platform/plugins/shared/home/public/services/add_data/add_data_service.test.tsx similarity index 100% rename from src/plugins/home/public/services/add_data/add_data_service.test.tsx rename to src/platform/plugins/shared/home/public/services/add_data/add_data_service.test.tsx diff --git a/src/plugins/home/public/services/add_data/add_data_service.ts b/src/platform/plugins/shared/home/public/services/add_data/add_data_service.ts similarity index 100% rename from src/plugins/home/public/services/add_data/add_data_service.ts rename to src/platform/plugins/shared/home/public/services/add_data/add_data_service.ts diff --git a/src/plugins/home/public/services/add_data/index.ts b/src/platform/plugins/shared/home/public/services/add_data/index.ts similarity index 100% rename from src/plugins/home/public/services/add_data/index.ts rename to src/platform/plugins/shared/home/public/services/add_data/index.ts diff --git a/src/plugins/home/public/services/environment/environment.mock.ts b/src/platform/plugins/shared/home/public/services/environment/environment.mock.ts similarity index 100% rename from src/plugins/home/public/services/environment/environment.mock.ts rename to src/platform/plugins/shared/home/public/services/environment/environment.mock.ts diff --git a/src/plugins/home/public/services/environment/environment.test.ts b/src/platform/plugins/shared/home/public/services/environment/environment.test.ts similarity index 100% rename from src/plugins/home/public/services/environment/environment.test.ts rename to src/platform/plugins/shared/home/public/services/environment/environment.test.ts diff --git a/src/plugins/home/public/services/environment/environment.ts b/src/platform/plugins/shared/home/public/services/environment/environment.ts similarity index 100% rename from src/plugins/home/public/services/environment/environment.ts rename to src/platform/plugins/shared/home/public/services/environment/environment.ts diff --git a/src/plugins/home/public/services/environment/index.ts b/src/platform/plugins/shared/home/public/services/environment/index.ts similarity index 100% rename from src/plugins/home/public/services/environment/index.ts rename to src/platform/plugins/shared/home/public/services/environment/index.ts diff --git a/src/plugins/home/public/services/feature_catalogue/feature_catalogue_registry.mock.ts b/src/platform/plugins/shared/home/public/services/feature_catalogue/feature_catalogue_registry.mock.ts similarity index 100% rename from src/plugins/home/public/services/feature_catalogue/feature_catalogue_registry.mock.ts rename to src/platform/plugins/shared/home/public/services/feature_catalogue/feature_catalogue_registry.mock.ts diff --git a/src/plugins/home/public/services/feature_catalogue/feature_catalogue_registry.test.ts b/src/platform/plugins/shared/home/public/services/feature_catalogue/feature_catalogue_registry.test.ts similarity index 100% rename from src/plugins/home/public/services/feature_catalogue/feature_catalogue_registry.test.ts rename to src/platform/plugins/shared/home/public/services/feature_catalogue/feature_catalogue_registry.test.ts diff --git a/src/plugins/home/public/services/feature_catalogue/feature_catalogue_registry.ts b/src/platform/plugins/shared/home/public/services/feature_catalogue/feature_catalogue_registry.ts similarity index 100% rename from src/plugins/home/public/services/feature_catalogue/feature_catalogue_registry.ts rename to src/platform/plugins/shared/home/public/services/feature_catalogue/feature_catalogue_registry.ts diff --git a/src/plugins/home/public/services/feature_catalogue/index.ts b/src/platform/plugins/shared/home/public/services/feature_catalogue/index.ts similarity index 100% rename from src/plugins/home/public/services/feature_catalogue/index.ts rename to src/platform/plugins/shared/home/public/services/feature_catalogue/index.ts diff --git a/src/plugins/home/public/services/index.ts b/src/platform/plugins/shared/home/public/services/index.ts similarity index 100% rename from src/plugins/home/public/services/index.ts rename to src/platform/plugins/shared/home/public/services/index.ts diff --git a/src/plugins/home/public/services/tutorials/index.ts b/src/platform/plugins/shared/home/public/services/tutorials/index.ts similarity index 100% rename from src/plugins/home/public/services/tutorials/index.ts rename to src/platform/plugins/shared/home/public/services/tutorials/index.ts diff --git a/src/plugins/home/public/services/tutorials/tutorial_service.mock.ts b/src/platform/plugins/shared/home/public/services/tutorials/tutorial_service.mock.ts similarity index 100% rename from src/plugins/home/public/services/tutorials/tutorial_service.mock.ts rename to src/platform/plugins/shared/home/public/services/tutorials/tutorial_service.mock.ts diff --git a/src/plugins/home/public/services/tutorials/tutorial_service.test.tsx b/src/platform/plugins/shared/home/public/services/tutorials/tutorial_service.test.tsx similarity index 100% rename from src/plugins/home/public/services/tutorials/tutorial_service.test.tsx rename to src/platform/plugins/shared/home/public/services/tutorials/tutorial_service.test.tsx diff --git a/src/plugins/home/public/services/tutorials/tutorial_service.ts b/src/platform/plugins/shared/home/public/services/tutorials/tutorial_service.ts similarity index 100% rename from src/plugins/home/public/services/tutorials/tutorial_service.ts rename to src/platform/plugins/shared/home/public/services/tutorials/tutorial_service.ts diff --git a/src/plugins/home/public/services/welcome/index.ts b/src/platform/plugins/shared/home/public/services/welcome/index.ts similarity index 100% rename from src/plugins/home/public/services/welcome/index.ts rename to src/platform/plugins/shared/home/public/services/welcome/index.ts diff --git a/src/plugins/home/public/services/welcome/welcome_service.mocks.ts b/src/platform/plugins/shared/home/public/services/welcome/welcome_service.mocks.ts similarity index 100% rename from src/plugins/home/public/services/welcome/welcome_service.mocks.ts rename to src/platform/plugins/shared/home/public/services/welcome/welcome_service.mocks.ts diff --git a/src/plugins/home/public/services/welcome/welcome_service.test.ts b/src/platform/plugins/shared/home/public/services/welcome/welcome_service.test.ts similarity index 100% rename from src/plugins/home/public/services/welcome/welcome_service.test.ts rename to src/platform/plugins/shared/home/public/services/welcome/welcome_service.test.ts diff --git a/src/plugins/home/public/services/welcome/welcome_service.ts b/src/platform/plugins/shared/home/public/services/welcome/welcome_service.ts similarity index 100% rename from src/plugins/home/public/services/welcome/welcome_service.ts rename to src/platform/plugins/shared/home/public/services/welcome/welcome_service.ts diff --git a/src/plugins/home/server/capabilities_provider.ts b/src/platform/plugins/shared/home/server/capabilities_provider.ts similarity index 100% rename from src/plugins/home/server/capabilities_provider.ts rename to src/platform/plugins/shared/home/server/capabilities_provider.ts diff --git a/src/plugins/home/server/config.ts b/src/platform/plugins/shared/home/server/config.ts similarity index 100% rename from src/plugins/home/server/config.ts rename to src/platform/plugins/shared/home/server/config.ts diff --git a/src/plugins/home/server/index.ts b/src/platform/plugins/shared/home/server/index.ts similarity index 100% rename from src/plugins/home/server/index.ts rename to src/platform/plugins/shared/home/server/index.ts diff --git a/src/plugins/home/server/plugin.test.mocks.ts b/src/platform/plugins/shared/home/server/plugin.test.mocks.ts similarity index 100% rename from src/plugins/home/server/plugin.test.mocks.ts rename to src/platform/plugins/shared/home/server/plugin.test.mocks.ts diff --git a/src/plugins/home/server/plugin.test.ts b/src/platform/plugins/shared/home/server/plugin.test.ts similarity index 100% rename from src/plugins/home/server/plugin.test.ts rename to src/platform/plugins/shared/home/server/plugin.test.ts diff --git a/src/plugins/home/server/plugin.ts b/src/platform/plugins/shared/home/server/plugin.ts similarity index 100% rename from src/plugins/home/server/plugin.ts rename to src/platform/plugins/shared/home/server/plugin.ts diff --git a/src/plugins/home/server/routes/fetch_es_hits_status.ts b/src/platform/plugins/shared/home/server/routes/fetch_es_hits_status.ts similarity index 100% rename from src/plugins/home/server/routes/fetch_es_hits_status.ts rename to src/platform/plugins/shared/home/server/routes/fetch_es_hits_status.ts diff --git a/src/plugins/home/server/routes/index.ts b/src/platform/plugins/shared/home/server/routes/index.ts similarity index 100% rename from src/plugins/home/server/routes/index.ts rename to src/platform/plugins/shared/home/server/routes/index.ts diff --git a/src/plugins/home/server/saved_objects/index.ts b/src/platform/plugins/shared/home/server/saved_objects/index.ts similarity index 100% rename from src/plugins/home/server/saved_objects/index.ts rename to src/platform/plugins/shared/home/server/saved_objects/index.ts diff --git a/src/plugins/home/server/saved_objects/sample_data_telemetry.ts b/src/platform/plugins/shared/home/server/saved_objects/sample_data_telemetry.ts similarity index 100% rename from src/plugins/home/server/saved_objects/sample_data_telemetry.ts rename to src/platform/plugins/shared/home/server/saved_objects/sample_data_telemetry.ts diff --git a/src/plugins/home/server/services/index.ts b/src/platform/plugins/shared/home/server/services/index.ts similarity index 100% rename from src/plugins/home/server/services/index.ts rename to src/platform/plugins/shared/home/server/services/index.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/ecommerce/ecommerce.json.gz b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/ecommerce/ecommerce.json.gz similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/ecommerce/ecommerce.json.gz rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/ecommerce/ecommerce.json.gz diff --git a/src/plugins/home/server/services/sample_data/data_sets/ecommerce/field_mappings.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/ecommerce/field_mappings.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/ecommerce/field_mappings.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/ecommerce/field_mappings.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/ecommerce/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/ecommerce/index.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/ecommerce/index.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/ecommerce/index.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/ecommerce/saved_objects.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/ecommerce/saved_objects.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/ecommerce/saved_objects.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/ecommerce/saved_objects.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/flights/field_mappings.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/field_mappings.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/flights/field_mappings.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/field_mappings.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/flights/flights.json.gz b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/flights.json.gz similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/flights/flights.json.gz rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/flights.json.gz diff --git a/src/plugins/home/server/services/sample_data/data_sets/flights/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/index.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/flights/index.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/index.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/flights/saved_objects.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/saved_objects.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/flights/saved_objects.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/saved_objects.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/index.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/index.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/index.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/logs/field_mappings.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/field_mappings.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/logs/field_mappings.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/field_mappings.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/logs/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/index.ts similarity index 94% rename from src/plugins/home/server/services/sample_data/data_sets/logs/index.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/index.ts index 95e8dbde88180..37fa0cf959105 100644 --- a/src/plugins/home/server/services/sample_data/data_sets/logs/index.ts +++ b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/index.ts @@ -20,7 +20,7 @@ const logsDescription = i18n.translate('home.sampleData.logsSpecDescription', { defaultMessage: 'Sample data, visualizations, and dashboards for monitoring web logs.', }); -export const GLOBE_ICON_PATH = '/plugins/home/assets/sample_data_resources/logs/icon.svg'; +export const GLOBE_ICON_PATH = '/platform/plugins/shared/home/assets/sample_data_resources/logs/icon.svg'; export const logsSpecProvider: SampleDatasetProvider = ({ staticAssets }) => { return { id: 'logs', diff --git a/src/plugins/home/server/services/sample_data/data_sets/logs/logs.json.gz b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/logs.json.gz similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/logs/logs.json.gz rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/logs.json.gz diff --git a/src/plugins/home/server/services/sample_data/data_sets/logs/saved_objects.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/saved_objects.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/logs/saved_objects.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/saved_objects.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/logs_tsdb/field_mappings.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/field_mappings.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/logs_tsdb/field_mappings.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/field_mappings.ts diff --git a/src/plugins/home/server/services/sample_data/data_sets/logs_tsdb/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/index.ts similarity index 95% rename from src/plugins/home/server/services/sample_data/data_sets/logs_tsdb/index.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/index.ts index 837fc48ce8333..8a43f31a37b78 100644 --- a/src/plugins/home/server/services/sample_data/data_sets/logs_tsdb/index.ts +++ b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/index.ts @@ -20,7 +20,7 @@ const logsDescription = i18n.translate('home.sampleData.logsTsdbSpecDescription' defaultMessage: 'Sample data, visualizations, and dashboards for monitoring web logs.', }); -export const GLOBE_ICON_PATH = '/plugins/home/assets/sample_data_resources/logs/icon.svg'; +export const GLOBE_ICON_PATH = '/platform/plugins/shared/home/assets/sample_data_resources/logs/icon.svg'; export const logsTSDBSpecProvider: SampleDatasetProvider = ({ staticAssets }) => { const startDate = new Date(); const endDate = new Date(); diff --git a/src/plugins/home/server/services/sample_data/data_sets/logs_tsdb/logs.json.gz b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/logs.json.gz similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/logs_tsdb/logs.json.gz rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/logs.json.gz diff --git a/src/plugins/home/server/services/sample_data/data_sets/logs_tsdb/saved_objects.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/saved_objects.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/data_sets/logs_tsdb/saved_objects.ts rename to src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/saved_objects.ts diff --git a/src/plugins/home/server/services/sample_data/errors.ts b/src/platform/plugins/shared/home/server/services/sample_data/errors.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/errors.ts rename to src/platform/plugins/shared/home/server/services/sample_data/errors.ts diff --git a/src/plugins/home/server/services/sample_data/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/index.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/index.ts rename to src/platform/plugins/shared/home/server/services/sample_data/index.ts diff --git a/src/plugins/home/server/services/sample_data/lib/create_index_name.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/create_index_name.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/create_index_name.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/create_index_name.ts diff --git a/src/plugins/home/server/services/sample_data/lib/find_sample_objects.test.mock.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/find_sample_objects.test.mock.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/find_sample_objects.test.mock.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/find_sample_objects.test.mock.ts diff --git a/src/plugins/home/server/services/sample_data/lib/find_sample_objects.test.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/find_sample_objects.test.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/find_sample_objects.test.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/find_sample_objects.test.ts diff --git a/src/plugins/home/server/services/sample_data/lib/find_sample_objects.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/find_sample_objects.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/find_sample_objects.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/find_sample_objects.ts diff --git a/src/plugins/home/server/services/sample_data/lib/insert_data_into_index.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/insert_data_into_index.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/insert_data_into_index.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/insert_data_into_index.ts diff --git a/src/plugins/home/server/services/sample_data/lib/load_data.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/load_data.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/load_data.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/load_data.ts diff --git a/src/plugins/home/server/services/sample_data/lib/register_with_integrations.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/register_with_integrations.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/register_with_integrations.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/register_with_integrations.ts diff --git a/src/plugins/home/server/services/sample_data/lib/sample_dataset_registry_types.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_registry_types.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/sample_dataset_registry_types.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_registry_types.ts diff --git a/src/plugins/home/server/services/sample_data/lib/sample_dataset_schema.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_schema.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/sample_dataset_schema.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/sample_dataset_schema.ts diff --git a/src/plugins/home/server/services/sample_data/lib/translate_timestamp.test.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/translate_timestamp.test.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/translate_timestamp.test.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/translate_timestamp.test.ts diff --git a/src/plugins/home/server/services/sample_data/lib/translate_timestamp.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/translate_timestamp.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/translate_timestamp.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/translate_timestamp.ts diff --git a/src/plugins/home/server/services/sample_data/lib/utils.ts b/src/platform/plugins/shared/home/server/services/sample_data/lib/utils.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/lib/utils.ts rename to src/platform/plugins/shared/home/server/services/sample_data/lib/utils.ts diff --git a/src/plugins/home/server/services/sample_data/routes/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/routes/index.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/routes/index.ts rename to src/platform/plugins/shared/home/server/services/sample_data/routes/index.ts diff --git a/src/plugins/home/server/services/sample_data/routes/install.ts b/src/platform/plugins/shared/home/server/services/sample_data/routes/install.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/routes/install.ts rename to src/platform/plugins/shared/home/server/services/sample_data/routes/install.ts diff --git a/src/plugins/home/server/services/sample_data/routes/list.ts b/src/platform/plugins/shared/home/server/services/sample_data/routes/list.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/routes/list.ts rename to src/platform/plugins/shared/home/server/services/sample_data/routes/list.ts diff --git a/src/plugins/home/server/services/sample_data/routes/uninstall.ts b/src/platform/plugins/shared/home/server/services/sample_data/routes/uninstall.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/routes/uninstall.ts rename to src/platform/plugins/shared/home/server/services/sample_data/routes/uninstall.ts diff --git a/src/plugins/home/server/services/sample_data/routes/utils.ts b/src/platform/plugins/shared/home/server/services/sample_data/routes/utils.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/routes/utils.ts rename to src/platform/plugins/shared/home/server/services/sample_data/routes/utils.ts diff --git a/src/plugins/home/server/services/sample_data/sample_data_installer.test.mocks.ts b/src/platform/plugins/shared/home/server/services/sample_data/sample_data_installer.test.mocks.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/sample_data_installer.test.mocks.ts rename to src/platform/plugins/shared/home/server/services/sample_data/sample_data_installer.test.mocks.ts diff --git a/src/plugins/home/server/services/sample_data/sample_data_installer.test.ts b/src/platform/plugins/shared/home/server/services/sample_data/sample_data_installer.test.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/sample_data_installer.test.ts rename to src/platform/plugins/shared/home/server/services/sample_data/sample_data_installer.test.ts diff --git a/src/plugins/home/server/services/sample_data/sample_data_installer.ts b/src/platform/plugins/shared/home/server/services/sample_data/sample_data_installer.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/sample_data_installer.ts rename to src/platform/plugins/shared/home/server/services/sample_data/sample_data_installer.ts diff --git a/src/plugins/home/server/services/sample_data/sample_data_registry.mock.ts b/src/platform/plugins/shared/home/server/services/sample_data/sample_data_registry.mock.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/sample_data_registry.mock.ts rename to src/platform/plugins/shared/home/server/services/sample_data/sample_data_registry.mock.ts diff --git a/src/plugins/home/server/services/sample_data/sample_data_registry.test.ts b/src/platform/plugins/shared/home/server/services/sample_data/sample_data_registry.test.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/sample_data_registry.test.ts rename to src/platform/plugins/shared/home/server/services/sample_data/sample_data_registry.test.ts diff --git a/src/plugins/home/server/services/sample_data/sample_data_registry.ts b/src/platform/plugins/shared/home/server/services/sample_data/sample_data_registry.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/sample_data_registry.ts rename to src/platform/plugins/shared/home/server/services/sample_data/sample_data_registry.ts diff --git a/src/plugins/home/server/services/sample_data/usage/collector.ts b/src/platform/plugins/shared/home/server/services/sample_data/usage/collector.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/usage/collector.ts rename to src/platform/plugins/shared/home/server/services/sample_data/usage/collector.ts diff --git a/src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts b/src/platform/plugins/shared/home/server/services/sample_data/usage/collector_fetch.test.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts rename to src/platform/plugins/shared/home/server/services/sample_data/usage/collector_fetch.test.ts diff --git a/src/plugins/home/server/services/sample_data/usage/collector_fetch.ts b/src/platform/plugins/shared/home/server/services/sample_data/usage/collector_fetch.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/usage/collector_fetch.ts rename to src/platform/plugins/shared/home/server/services/sample_data/usage/collector_fetch.ts diff --git a/src/plugins/home/server/services/sample_data/usage/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/usage/index.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/usage/index.ts rename to src/platform/plugins/shared/home/server/services/sample_data/usage/index.ts diff --git a/src/plugins/home/server/services/sample_data/usage/usage.ts b/src/platform/plugins/shared/home/server/services/sample_data/usage/usage.ts similarity index 100% rename from src/plugins/home/server/services/sample_data/usage/usage.ts rename to src/platform/plugins/shared/home/server/services/sample_data/usage/usage.ts diff --git a/src/plugins/home/server/services/tutorials/index.ts b/src/platform/plugins/shared/home/server/services/tutorials/index.ts similarity index 100% rename from src/plugins/home/server/services/tutorials/index.ts rename to src/platform/plugins/shared/home/server/services/tutorials/index.ts diff --git a/src/plugins/home/server/services/tutorials/lib/tutorial_schema.ts b/src/platform/plugins/shared/home/server/services/tutorials/lib/tutorial_schema.ts similarity index 100% rename from src/plugins/home/server/services/tutorials/lib/tutorial_schema.ts rename to src/platform/plugins/shared/home/server/services/tutorials/lib/tutorial_schema.ts diff --git a/src/plugins/home/server/services/tutorials/lib/tutorials_registry_types.ts b/src/platform/plugins/shared/home/server/services/tutorials/lib/tutorials_registry_types.ts similarity index 100% rename from src/plugins/home/server/services/tutorials/lib/tutorials_registry_types.ts rename to src/platform/plugins/shared/home/server/services/tutorials/lib/tutorials_registry_types.ts diff --git a/src/plugins/home/server/services/tutorials/tutorials_registry.mock.ts b/src/platform/plugins/shared/home/server/services/tutorials/tutorials_registry.mock.ts similarity index 100% rename from src/plugins/home/server/services/tutorials/tutorials_registry.mock.ts rename to src/platform/plugins/shared/home/server/services/tutorials/tutorials_registry.mock.ts diff --git a/src/plugins/home/server/services/tutorials/tutorials_registry.test.ts b/src/platform/plugins/shared/home/server/services/tutorials/tutorials_registry.test.ts similarity index 100% rename from src/plugins/home/server/services/tutorials/tutorials_registry.test.ts rename to src/platform/plugins/shared/home/server/services/tutorials/tutorials_registry.test.ts diff --git a/src/plugins/home/server/services/tutorials/tutorials_registry.ts b/src/platform/plugins/shared/home/server/services/tutorials/tutorials_registry.ts similarity index 100% rename from src/plugins/home/server/services/tutorials/tutorials_registry.ts rename to src/platform/plugins/shared/home/server/services/tutorials/tutorials_registry.ts diff --git a/src/plugins/home/server/tutorials/activemq_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/activemq_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/activemq_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/activemq_logs/index.ts diff --git a/src/plugins/home/server/tutorials/activemq_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/activemq_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/activemq_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/activemq_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/aerospike_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/aerospike_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/aerospike_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/aerospike_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/apache_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/apache_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/apache_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/apache_logs/index.ts diff --git a/src/plugins/home/server/tutorials/apache_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/apache_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/apache_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/apache_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/auditbeat/index.ts b/src/platform/plugins/shared/home/server/tutorials/auditbeat/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/auditbeat/index.ts rename to src/platform/plugins/shared/home/server/tutorials/auditbeat/index.ts diff --git a/src/plugins/home/server/tutorials/auditd_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/auditd_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/auditd_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/auditd_logs/index.ts diff --git a/src/plugins/home/server/tutorials/aws_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/aws_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/aws_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/aws_logs/index.ts diff --git a/src/plugins/home/server/tutorials/aws_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/aws_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/aws_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/aws_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/azure_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/azure_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/azure_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/azure_logs/index.ts diff --git a/src/plugins/home/server/tutorials/azure_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/azure_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/azure_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/azure_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/barracuda_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/barracuda_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/barracuda_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/barracuda_logs/index.ts diff --git a/src/plugins/home/server/tutorials/bluecoat_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/bluecoat_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/bluecoat_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/bluecoat_logs/index.ts diff --git a/src/plugins/home/server/tutorials/cef_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/cef_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/cef_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/cef_logs/index.ts diff --git a/src/plugins/home/server/tutorials/ceph_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/ceph_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/ceph_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/ceph_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/checkpoint_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/checkpoint_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/checkpoint_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/checkpoint_logs/index.ts diff --git a/src/plugins/home/server/tutorials/cisco_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/cisco_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/cisco_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/cisco_logs/index.ts diff --git a/src/plugins/home/server/tutorials/cockroachdb_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/cockroachdb_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/cockroachdb_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/cockroachdb_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/consul_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/consul_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/consul_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/consul_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/coredns_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/coredns_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/coredns_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/coredns_logs/index.ts diff --git a/src/plugins/home/server/tutorials/coredns_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/coredns_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/coredns_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/coredns_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/couchbase_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/couchbase_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/couchbase_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/couchbase_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/couchdb_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/couchdb_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/couchdb_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/couchdb_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/crowdstrike_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/crowdstrike_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/crowdstrike_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/crowdstrike_logs/index.ts diff --git a/src/plugins/home/server/tutorials/cylance_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/cylance_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/cylance_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/cylance_logs/index.ts diff --git a/src/plugins/home/server/tutorials/docker_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/docker_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/docker_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/docker_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/dropwizard_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/dropwizard_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/dropwizard_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/dropwizard_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/elasticsearch_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/elasticsearch_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/elasticsearch_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/elasticsearch_logs/index.ts diff --git a/src/plugins/home/server/tutorials/elasticsearch_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/elasticsearch_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/elasticsearch_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/elasticsearch_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/envoyproxy_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/envoyproxy_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/envoyproxy_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/envoyproxy_logs/index.ts diff --git a/src/plugins/home/server/tutorials/envoyproxy_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/envoyproxy_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/envoyproxy_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/envoyproxy_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/etcd_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/etcd_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/etcd_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/etcd_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/f5_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/f5_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/f5_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/f5_logs/index.ts diff --git a/src/plugins/home/server/tutorials/fortinet_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/fortinet_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/fortinet_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/fortinet_logs/index.ts diff --git a/src/plugins/home/server/tutorials/gcp_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/gcp_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/gcp_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/gcp_logs/index.ts diff --git a/src/plugins/home/server/tutorials/gcp_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/gcp_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/gcp_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/gcp_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/golang_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/golang_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/golang_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/golang_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/gsuite_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/gsuite_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/gsuite_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/gsuite_logs/index.ts diff --git a/src/plugins/home/server/tutorials/haproxy_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/haproxy_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/haproxy_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/haproxy_logs/index.ts diff --git a/src/plugins/home/server/tutorials/haproxy_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/haproxy_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/haproxy_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/haproxy_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/ibmmq_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/ibmmq_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/ibmmq_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/ibmmq_logs/index.ts diff --git a/src/plugins/home/server/tutorials/ibmmq_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/ibmmq_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/ibmmq_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/ibmmq_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/icinga_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/icinga_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/icinga_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/icinga_logs/index.ts diff --git a/src/plugins/home/server/tutorials/iis_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/iis_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/iis_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/iis_logs/index.ts diff --git a/src/plugins/home/server/tutorials/iis_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/iis_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/iis_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/iis_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/imperva_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/imperva_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/imperva_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/imperva_logs/index.ts diff --git a/src/plugins/home/server/tutorials/infoblox_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/infoblox_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/infoblox_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/infoblox_logs/index.ts diff --git a/src/plugins/home/server/tutorials/instructions/auditbeat_instructions.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/auditbeat_instructions.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/auditbeat_instructions.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/auditbeat_instructions.ts diff --git a/src/plugins/home/server/tutorials/instructions/cloud_instructions.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/cloud_instructions.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/cloud_instructions.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/cloud_instructions.ts diff --git a/src/plugins/home/server/tutorials/instructions/filebeat_instructions.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/filebeat_instructions.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/filebeat_instructions.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/filebeat_instructions.ts diff --git a/src/plugins/home/server/tutorials/instructions/get_space_id_for_beats_tutorial.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/get_space_id_for_beats_tutorial.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/get_space_id_for_beats_tutorial.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/get_space_id_for_beats_tutorial.ts diff --git a/src/plugins/home/server/tutorials/instructions/heartbeat_instructions.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/heartbeat_instructions.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/heartbeat_instructions.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/heartbeat_instructions.ts diff --git a/src/plugins/home/server/tutorials/instructions/logstash_instructions.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/logstash_instructions.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/logstash_instructions.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/logstash_instructions.ts diff --git a/src/plugins/home/server/tutorials/instructions/metricbeat_instructions.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/metricbeat_instructions.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/metricbeat_instructions.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/metricbeat_instructions.ts diff --git a/src/plugins/home/server/tutorials/instructions/onprem_cloud_instructions.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/onprem_cloud_instructions.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/onprem_cloud_instructions.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/onprem_cloud_instructions.ts diff --git a/src/plugins/home/server/tutorials/instructions/param_types.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/param_types.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/param_types.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/param_types.ts diff --git a/src/plugins/home/server/tutorials/instructions/winlogbeat_instructions.ts b/src/platform/plugins/shared/home/server/tutorials/instructions/winlogbeat_instructions.ts similarity index 100% rename from src/plugins/home/server/tutorials/instructions/winlogbeat_instructions.ts rename to src/platform/plugins/shared/home/server/tutorials/instructions/winlogbeat_instructions.ts diff --git a/src/plugins/home/server/tutorials/iptables_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/iptables_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/iptables_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/iptables_logs/index.ts diff --git a/src/plugins/home/server/tutorials/juniper_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/juniper_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/juniper_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/juniper_logs/index.ts diff --git a/src/plugins/home/server/tutorials/kafka_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/kafka_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/kafka_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/kafka_logs/index.ts diff --git a/src/plugins/home/server/tutorials/kafka_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/kafka_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/kafka_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/kafka_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/kibana_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/kibana_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/kibana_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/kibana_logs/index.ts diff --git a/src/plugins/home/server/tutorials/kibana_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/kibana_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/kibana_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/kibana_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/kubernetes_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/kubernetes_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/kubernetes_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/kubernetes_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/logstash_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/logstash_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/logstash_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/logstash_logs/index.ts diff --git a/src/plugins/home/server/tutorials/logstash_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/logstash_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/logstash_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/logstash_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/memcached_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/memcached_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/memcached_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/memcached_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/microsoft_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/microsoft_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/microsoft_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/microsoft_logs/index.ts diff --git a/src/plugins/home/server/tutorials/misp_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/misp_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/misp_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/misp_logs/index.ts diff --git a/src/plugins/home/server/tutorials/mongodb_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/mongodb_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/mongodb_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/mongodb_logs/index.ts diff --git a/src/plugins/home/server/tutorials/mongodb_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/mongodb_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/mongodb_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/mongodb_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/mssql_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/mssql_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/mssql_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/mssql_logs/index.ts diff --git a/src/plugins/home/server/tutorials/mssql_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/mssql_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/mssql_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/mssql_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/munin_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/munin_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/munin_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/munin_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/mysql_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/mysql_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/mysql_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/mysql_logs/index.ts diff --git a/src/plugins/home/server/tutorials/mysql_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/mysql_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/mysql_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/mysql_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/nats_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/nats_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/nats_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/nats_logs/index.ts diff --git a/src/plugins/home/server/tutorials/nats_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/nats_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/nats_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/nats_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/netflow_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/netflow_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/netflow_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/netflow_logs/index.ts diff --git a/src/plugins/home/server/tutorials/netscout_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/netscout_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/netscout_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/netscout_logs/index.ts diff --git a/src/plugins/home/server/tutorials/nginx_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/nginx_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/nginx_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/nginx_logs/index.ts diff --git a/src/plugins/home/server/tutorials/nginx_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/nginx_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/nginx_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/nginx_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/o365_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/o365_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/o365_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/o365_logs/index.ts diff --git a/src/plugins/home/server/tutorials/okta_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/okta_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/okta_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/okta_logs/index.ts diff --git a/src/plugins/home/server/tutorials/openmetrics_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/openmetrics_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/openmetrics_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/openmetrics_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/oracle_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/oracle_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/oracle_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/oracle_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/osquery_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/osquery_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/osquery_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/osquery_logs/index.ts diff --git a/src/plugins/home/server/tutorials/panw_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/panw_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/panw_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/panw_logs/index.ts diff --git a/src/plugins/home/server/tutorials/php_fpm_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/php_fpm_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/php_fpm_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/php_fpm_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/postgresql_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/postgresql_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/postgresql_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/postgresql_logs/index.ts diff --git a/src/plugins/home/server/tutorials/postgresql_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/postgresql_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/postgresql_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/postgresql_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/prometheus_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/prometheus_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/prometheus_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/prometheus_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/rabbitmq_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/rabbitmq_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/rabbitmq_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/rabbitmq_logs/index.ts diff --git a/src/plugins/home/server/tutorials/rabbitmq_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/rabbitmq_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/rabbitmq_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/rabbitmq_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/radware_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/radware_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/radware_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/radware_logs/index.ts diff --git a/src/plugins/home/server/tutorials/redis_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/redis_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/redis_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/redis_logs/index.ts diff --git a/src/plugins/home/server/tutorials/redis_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/redis_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/redis_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/redis_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/redisenterprise_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/redisenterprise_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/redisenterprise_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/redisenterprise_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/register.ts b/src/platform/plugins/shared/home/server/tutorials/register.ts similarity index 100% rename from src/plugins/home/server/tutorials/register.ts rename to src/platform/plugins/shared/home/server/tutorials/register.ts diff --git a/src/plugins/home/server/tutorials/santa_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/santa_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/santa_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/santa_logs/index.ts diff --git a/src/plugins/home/server/tutorials/sonicwall_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/sonicwall_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/sonicwall_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/sonicwall_logs/index.ts diff --git a/src/plugins/home/server/tutorials/sophos_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/sophos_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/sophos_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/sophos_logs/index.ts diff --git a/src/plugins/home/server/tutorials/stan_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/stan_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/stan_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/stan_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/statsd_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/statsd_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/statsd_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/statsd_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/suricata_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/suricata_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/suricata_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/suricata_logs/index.ts diff --git a/src/plugins/home/server/tutorials/system_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/system_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/system_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/system_logs/index.ts diff --git a/src/plugins/home/server/tutorials/system_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/system_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/system_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/system_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/tomcat_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/tomcat_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/tomcat_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/tomcat_logs/index.ts diff --git a/src/plugins/home/server/tutorials/traefik_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/traefik_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/traefik_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/traefik_logs/index.ts diff --git a/src/plugins/home/server/tutorials/traefik_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/traefik_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/traefik_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/traefik_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/uptime_monitors/index.ts b/src/platform/plugins/shared/home/server/tutorials/uptime_monitors/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/uptime_monitors/index.ts rename to src/platform/plugins/shared/home/server/tutorials/uptime_monitors/index.ts diff --git a/src/plugins/home/server/tutorials/uwsgi_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/uwsgi_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/uwsgi_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/uwsgi_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/vsphere_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/vsphere_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/vsphere_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/vsphere_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/windows_event_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/windows_event_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/windows_event_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/windows_event_logs/index.ts diff --git a/src/plugins/home/server/tutorials/windows_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/windows_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/windows_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/windows_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/zeek_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/zeek_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/zeek_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/zeek_logs/index.ts diff --git a/src/plugins/home/server/tutorials/zookeeper_metrics/index.ts b/src/platform/plugins/shared/home/server/tutorials/zookeeper_metrics/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/zookeeper_metrics/index.ts rename to src/platform/plugins/shared/home/server/tutorials/zookeeper_metrics/index.ts diff --git a/src/plugins/home/server/tutorials/zscaler_logs/index.ts b/src/platform/plugins/shared/home/server/tutorials/zscaler_logs/index.ts similarity index 100% rename from src/plugins/home/server/tutorials/zscaler_logs/index.ts rename to src/platform/plugins/shared/home/server/tutorials/zscaler_logs/index.ts diff --git a/src/plugins/home/tsconfig.json b/src/platform/plugins/shared/home/tsconfig.json similarity index 95% rename from src/plugins/home/tsconfig.json rename to src/platform/plugins/shared/home/tsconfig.json index 7f8ce49f3c854..30048ffd56124 100644 --- a/src/plugins/home/tsconfig.json +++ b/src/platform/plugins/shared/home/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/test/api_integration/apis/home/sample_data.ts b/test/api_integration/apis/home/sample_data.ts index 13ab83e85a05a..e849c905b2681 100644 --- a/test/api_integration/apis/home/sample_data.ts +++ b/test/api_integration/apis/home/sample_data.ts @@ -21,7 +21,7 @@ export default function ({ getService }: FtrProviderContext) { const SPACES = ['default', 'other']; /** * default ID of the flights overview dashboard - * @see {@link src/plugins/home/server/services/sample_data/data_sets/flights/index.ts} + * @see {@link src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/index.ts} */ const FLIGHTS_OVERVIEW_DASHBOARD_ID = '7adfa750-4c81-11e8-b3d7-01146121b73d'; @@ -74,7 +74,7 @@ export default function ({ getService }: FtrProviderContext) { describe('dates', () => { // dates being compared are not arbitrary, but rather the dates of the earliest and latest timestamp of the flight sample data - // this can be verified in the flight data archive here {@link src/plugins/home/server/services/sample_data/data_sets/flights/flights.json.gz} + // this can be verified in the flight data archive here {@link src/platform/plugins/shared/home/server/services/sample_data/data_sets/flights/flights.json.gz} const sampleDataTimeIntervalInMS = differenceInMilliseconds( new Date('2018-02-11T14:54:34'), new Date('2018-01-01T00:00:00') diff --git a/tsconfig.base.json b/tsconfig.base.json index 12fe13d795ca7..854cf608b9efd 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1030,8 +1030,8 @@ "@kbn/health-gateway-server/*": ["packages/kbn-health-gateway-server/*"], "@kbn/hello-world-plugin": ["examples/hello_world"], "@kbn/hello-world-plugin/*": ["examples/hello_world/*"], - "@kbn/home-plugin": ["src/plugins/home"], - "@kbn/home-plugin/*": ["src/plugins/home/*"], + "@kbn/home-plugin": ["src/platform/plugins/shared/home"], + "@kbn/home-plugin/*": ["src/platform/plugins/shared/home/*"], "@kbn/home-sample-data-card": ["packages/home/sample_data_card"], "@kbn/home-sample-data-card/*": ["packages/home/sample_data_card/*"], "@kbn/home-sample-data-tab": ["packages/home/sample_data_tab"], diff --git a/yarn.lock b/yarn.lock index 24b20737950a9..240af09f7bb42 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5877,7 +5877,7 @@ version "0.0.0" uid "" -"@kbn/home-plugin@link:src/plugins/home": +"@kbn/home-plugin@link:src/platform/plugins/shared/home": version "0.0.0" uid "" From 113e536ce7783e85154225bb7f881dbbaed27201 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:08:51 +0100 Subject: [PATCH 10/43] Relocating module `@kbn/image-embeddable-plugin` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/private}/image_embeddable/README.md | 0 .../private}/image_embeddable/jest.config.js | 8 ++++---- .../plugins/private}/image_embeddable/kibana.jsonc | 0 .../public/actions/create_image_action.ts | 0 .../public/actions/image_click_trigger.ts | 0 .../image_embeddable/public/actions/index.ts | 0 .../image_editor/image_editor_flyout.test.tsx | 0 .../components/image_editor/image_editor_flyout.tsx | 0 .../public/components/image_editor/index.ts | 0 .../components/image_editor/open_image_editor.tsx | 0 .../public/components/image_embeddable.scss | 0 .../public/components/image_embeddable.tsx | 0 .../image_viewer/assets/not_found_light.png | Bin .../image_viewer/assets/not_found_light@2x.png | Bin .../components/image_viewer/image_viewer.test.tsx | 0 .../public/components/image_viewer/image_viewer.tsx | 0 .../image_viewer/image_viewer_context.tsx | 0 .../public/components/image_viewer/index.tsx | 0 .../public/image_embeddable/constants.ts | 0 .../get_image_embeddable_factory.tsx | 0 .../public/image_embeddable/types.ts | 0 .../private}/image_embeddable/public/imports.ts | 0 .../private}/image_embeddable/public/index.ts | 0 .../private}/image_embeddable/public/plugin.ts | 0 .../public/services/kibana_services.ts | 0 .../private}/image_embeddable/public/types.ts | 0 .../public/utils/validate_image_config.ts | 0 .../image_embeddable/public/utils/validate_url.ts | 0 .../plugins/private}/image_embeddable/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 35 files changed, 12 insertions(+), 12 deletions(-) rename src/{plugins => platform/plugins/private}/image_embeddable/README.md (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/jest.config.js (70%) rename src/{plugins => platform/plugins/private}/image_embeddable/kibana.jsonc (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/actions/create_image_action.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/actions/image_click_trigger.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/actions/index.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_editor/image_editor_flyout.test.tsx (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_editor/image_editor_flyout.tsx (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_editor/index.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_editor/open_image_editor.tsx (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_embeddable.scss (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_embeddable.tsx (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_viewer/assets/not_found_light.png (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_viewer/assets/not_found_light@2x.png (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_viewer/image_viewer.test.tsx (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_viewer/image_viewer.tsx (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_viewer/image_viewer_context.tsx (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/components/image_viewer/index.tsx (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/image_embeddable/constants.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/image_embeddable/get_image_embeddable_factory.tsx (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/image_embeddable/types.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/imports.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/index.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/services/kibana_services.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/types.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/utils/validate_image_config.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/public/utils/validate_url.ts (100%) rename src/{plugins => platform/plugins/private}/image_embeddable/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d239cdd5c6cd0..f7e571bc47457 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -611,6 +611,7 @@ src/platform/packages/shared/kbn-unsaved-changes-prompt @elastic/kibana-manageme src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-management src/platform/packages/shared/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management src/platform/plugins/private/files_management @elastic/appex-sharedux +src/platform/plugins/private/image_embeddable @elastic/appex-sharedux src/platform/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant src/platform/plugins/shared/console @elastic/kibana-management src/platform/plugins/shared/content_management @elastic/appex-sharedux @@ -655,7 +656,6 @@ src/plugins/expression_shape @elastic/kibana-presentation src/plugins/expressions @elastic/kibana-visualizations src/plugins/field_formats @elastic/kibana-data-discovery src/plugins/ftr_apis @elastic/kibana-core -src/plugins/image_embeddable @elastic/appex-sharedux src/plugins/input_control_vis @elastic/kibana-presentation src/plugins/inspector @elastic/kibana-presentation src/plugins/interactive_setup @elastic/kibana-security diff --git a/.i18nrc.json b/.i18nrc.json index c4f6d74356f08..544df7cc664af 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -78,7 +78,7 @@ "inspectorViews": "src/legacy/core_plugins/inspector_views", "interactiveSetup": "src/plugins/interactive_setup", "interpreter": "src/legacy/core_plugins/interpreter", - "imageEmbeddable": "src/plugins/image_embeddable", + "imageEmbeddable": "src/platform/plugins/private/image_embeddable", "kbn": "src/legacy/core_plugins/kibana", "kbn-esql-validation-autocomplete": "src/platform/packages/shared/kbn-esql-validation-autocomplete/src", "kbnConfig": "packages/kbn-config/src", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 05a7c7b343ec3..7d41bdee1c4c0 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -220,7 +220,7 @@ for use in their own application. |Moves the legacy ui/registry/feature_catalogue module for registering "features" that should be shown in the home page's feature catalogue to a service within a "home" plugin. The feature catalogue refered to here should not be confused with the "feature" plugin for registering features used to derive UI capabilities for feature controls. -|{kib-repo}blob/{branch}/src/plugins/image_embeddable/README.md[imageEmbeddable] +|{kib-repo}blob/{branch}/src/platform/plugins/private/image_embeddable/README.md[imageEmbeddable] |This plugin contains image embeddable. Image embeddable allows to embed images into the dashboard. Images can be added either by URL or by uploading the image file via file service. diff --git a/package.json b/package.json index 6032dda3734fe..c17e3e564f375 100644 --- a/package.json +++ b/package.json @@ -570,7 +570,7 @@ "@kbn/i18n": "link:packages/kbn-i18n", "@kbn/i18n-react": "link:packages/kbn-i18n-react", "@kbn/iframe-embedded-plugin": "link:x-pack/test/functional_embedded/plugins/iframe_embedded", - "@kbn/image-embeddable-plugin": "link:src/plugins/image_embeddable", + "@kbn/image-embeddable-plugin": "link:src/platform/plugins/private/image_embeddable", "@kbn/index-adapter": "link:x-pack/solutions/security/packages/index-adapter", "@kbn/index-lifecycle-management-common-shared": "link:x-pack/platform/packages/shared/index-lifecycle-management/index_lifecycle_management_common_shared", "@kbn/index-lifecycle-management-plugin": "link:x-pack/platform/plugins/private/index_lifecycle_management", diff --git a/src/plugins/image_embeddable/README.md b/src/platform/plugins/private/image_embeddable/README.md similarity index 100% rename from src/plugins/image_embeddable/README.md rename to src/platform/plugins/private/image_embeddable/README.md diff --git a/src/plugins/image_embeddable/jest.config.js b/src/platform/plugins/private/image_embeddable/jest.config.js similarity index 70% rename from src/plugins/image_embeddable/jest.config.js rename to src/platform/plugins/private/image_embeddable/jest.config.js index 3ff815d5c0311..d829930e98019 100644 --- a/src/plugins/image_embeddable/jest.config.js +++ b/src/platform/plugins/private/image_embeddable/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/image_embeddable'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/image_embeddable', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/image_embeddable'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/image_embeddable', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/image_embeddable/{__packages_do_not_import__,common,public,server,static}/**/*.{ts,tsx}', + '/src/platform/plugins/private/image_embeddable/{__packages_do_not_import__,common,public,server,static}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/image_embeddable/kibana.jsonc b/src/platform/plugins/private/image_embeddable/kibana.jsonc similarity index 100% rename from src/plugins/image_embeddable/kibana.jsonc rename to src/platform/plugins/private/image_embeddable/kibana.jsonc diff --git a/src/plugins/image_embeddable/public/actions/create_image_action.ts b/src/platform/plugins/private/image_embeddable/public/actions/create_image_action.ts similarity index 100% rename from src/plugins/image_embeddable/public/actions/create_image_action.ts rename to src/platform/plugins/private/image_embeddable/public/actions/create_image_action.ts diff --git a/src/plugins/image_embeddable/public/actions/image_click_trigger.ts b/src/platform/plugins/private/image_embeddable/public/actions/image_click_trigger.ts similarity index 100% rename from src/plugins/image_embeddable/public/actions/image_click_trigger.ts rename to src/platform/plugins/private/image_embeddable/public/actions/image_click_trigger.ts diff --git a/src/plugins/image_embeddable/public/actions/index.ts b/src/platform/plugins/private/image_embeddable/public/actions/index.ts similarity index 100% rename from src/plugins/image_embeddable/public/actions/index.ts rename to src/platform/plugins/private/image_embeddable/public/actions/index.ts diff --git a/src/plugins/image_embeddable/public/components/image_editor/image_editor_flyout.test.tsx b/src/platform/plugins/private/image_embeddable/public/components/image_editor/image_editor_flyout.test.tsx similarity index 100% rename from src/plugins/image_embeddable/public/components/image_editor/image_editor_flyout.test.tsx rename to src/platform/plugins/private/image_embeddable/public/components/image_editor/image_editor_flyout.test.tsx diff --git a/src/plugins/image_embeddable/public/components/image_editor/image_editor_flyout.tsx b/src/platform/plugins/private/image_embeddable/public/components/image_editor/image_editor_flyout.tsx similarity index 100% rename from src/plugins/image_embeddable/public/components/image_editor/image_editor_flyout.tsx rename to src/platform/plugins/private/image_embeddable/public/components/image_editor/image_editor_flyout.tsx diff --git a/src/plugins/image_embeddable/public/components/image_editor/index.ts b/src/platform/plugins/private/image_embeddable/public/components/image_editor/index.ts similarity index 100% rename from src/plugins/image_embeddable/public/components/image_editor/index.ts rename to src/platform/plugins/private/image_embeddable/public/components/image_editor/index.ts diff --git a/src/plugins/image_embeddable/public/components/image_editor/open_image_editor.tsx b/src/platform/plugins/private/image_embeddable/public/components/image_editor/open_image_editor.tsx similarity index 100% rename from src/plugins/image_embeddable/public/components/image_editor/open_image_editor.tsx rename to src/platform/plugins/private/image_embeddable/public/components/image_editor/open_image_editor.tsx diff --git a/src/plugins/image_embeddable/public/components/image_embeddable.scss b/src/platform/plugins/private/image_embeddable/public/components/image_embeddable.scss similarity index 100% rename from src/plugins/image_embeddable/public/components/image_embeddable.scss rename to src/platform/plugins/private/image_embeddable/public/components/image_embeddable.scss diff --git a/src/plugins/image_embeddable/public/components/image_embeddable.tsx b/src/platform/plugins/private/image_embeddable/public/components/image_embeddable.tsx similarity index 100% rename from src/plugins/image_embeddable/public/components/image_embeddable.tsx rename to src/platform/plugins/private/image_embeddable/public/components/image_embeddable.tsx diff --git a/src/plugins/image_embeddable/public/components/image_viewer/assets/not_found_light.png b/src/platform/plugins/private/image_embeddable/public/components/image_viewer/assets/not_found_light.png similarity index 100% rename from src/plugins/image_embeddable/public/components/image_viewer/assets/not_found_light.png rename to src/platform/plugins/private/image_embeddable/public/components/image_viewer/assets/not_found_light.png diff --git a/src/plugins/image_embeddable/public/components/image_viewer/assets/not_found_light@2x.png b/src/platform/plugins/private/image_embeddable/public/components/image_viewer/assets/not_found_light@2x.png similarity index 100% rename from src/plugins/image_embeddable/public/components/image_viewer/assets/not_found_light@2x.png rename to src/platform/plugins/private/image_embeddable/public/components/image_viewer/assets/not_found_light@2x.png diff --git a/src/plugins/image_embeddable/public/components/image_viewer/image_viewer.test.tsx b/src/platform/plugins/private/image_embeddable/public/components/image_viewer/image_viewer.test.tsx similarity index 100% rename from src/plugins/image_embeddable/public/components/image_viewer/image_viewer.test.tsx rename to src/platform/plugins/private/image_embeddable/public/components/image_viewer/image_viewer.test.tsx diff --git a/src/plugins/image_embeddable/public/components/image_viewer/image_viewer.tsx b/src/platform/plugins/private/image_embeddable/public/components/image_viewer/image_viewer.tsx similarity index 100% rename from src/plugins/image_embeddable/public/components/image_viewer/image_viewer.tsx rename to src/platform/plugins/private/image_embeddable/public/components/image_viewer/image_viewer.tsx diff --git a/src/plugins/image_embeddable/public/components/image_viewer/image_viewer_context.tsx b/src/platform/plugins/private/image_embeddable/public/components/image_viewer/image_viewer_context.tsx similarity index 100% rename from src/plugins/image_embeddable/public/components/image_viewer/image_viewer_context.tsx rename to src/platform/plugins/private/image_embeddable/public/components/image_viewer/image_viewer_context.tsx diff --git a/src/plugins/image_embeddable/public/components/image_viewer/index.tsx b/src/platform/plugins/private/image_embeddable/public/components/image_viewer/index.tsx similarity index 100% rename from src/plugins/image_embeddable/public/components/image_viewer/index.tsx rename to src/platform/plugins/private/image_embeddable/public/components/image_viewer/index.tsx diff --git a/src/plugins/image_embeddable/public/image_embeddable/constants.ts b/src/platform/plugins/private/image_embeddable/public/image_embeddable/constants.ts similarity index 100% rename from src/plugins/image_embeddable/public/image_embeddable/constants.ts rename to src/platform/plugins/private/image_embeddable/public/image_embeddable/constants.ts diff --git a/src/plugins/image_embeddable/public/image_embeddable/get_image_embeddable_factory.tsx b/src/platform/plugins/private/image_embeddable/public/image_embeddable/get_image_embeddable_factory.tsx similarity index 100% rename from src/plugins/image_embeddable/public/image_embeddable/get_image_embeddable_factory.tsx rename to src/platform/plugins/private/image_embeddable/public/image_embeddable/get_image_embeddable_factory.tsx diff --git a/src/plugins/image_embeddable/public/image_embeddable/types.ts b/src/platform/plugins/private/image_embeddable/public/image_embeddable/types.ts similarity index 100% rename from src/plugins/image_embeddable/public/image_embeddable/types.ts rename to src/platform/plugins/private/image_embeddable/public/image_embeddable/types.ts diff --git a/src/plugins/image_embeddable/public/imports.ts b/src/platform/plugins/private/image_embeddable/public/imports.ts similarity index 100% rename from src/plugins/image_embeddable/public/imports.ts rename to src/platform/plugins/private/image_embeddable/public/imports.ts diff --git a/src/plugins/image_embeddable/public/index.ts b/src/platform/plugins/private/image_embeddable/public/index.ts similarity index 100% rename from src/plugins/image_embeddable/public/index.ts rename to src/platform/plugins/private/image_embeddable/public/index.ts diff --git a/src/plugins/image_embeddable/public/plugin.ts b/src/platform/plugins/private/image_embeddable/public/plugin.ts similarity index 100% rename from src/plugins/image_embeddable/public/plugin.ts rename to src/platform/plugins/private/image_embeddable/public/plugin.ts diff --git a/src/plugins/image_embeddable/public/services/kibana_services.ts b/src/platform/plugins/private/image_embeddable/public/services/kibana_services.ts similarity index 100% rename from src/plugins/image_embeddable/public/services/kibana_services.ts rename to src/platform/plugins/private/image_embeddable/public/services/kibana_services.ts diff --git a/src/plugins/image_embeddable/public/types.ts b/src/platform/plugins/private/image_embeddable/public/types.ts similarity index 100% rename from src/plugins/image_embeddable/public/types.ts rename to src/platform/plugins/private/image_embeddable/public/types.ts diff --git a/src/plugins/image_embeddable/public/utils/validate_image_config.ts b/src/platform/plugins/private/image_embeddable/public/utils/validate_image_config.ts similarity index 100% rename from src/plugins/image_embeddable/public/utils/validate_image_config.ts rename to src/platform/plugins/private/image_embeddable/public/utils/validate_image_config.ts diff --git a/src/plugins/image_embeddable/public/utils/validate_url.ts b/src/platform/plugins/private/image_embeddable/public/utils/validate_url.ts similarity index 100% rename from src/plugins/image_embeddable/public/utils/validate_url.ts rename to src/platform/plugins/private/image_embeddable/public/utils/validate_url.ts diff --git a/src/plugins/image_embeddable/tsconfig.json b/src/platform/plugins/private/image_embeddable/tsconfig.json similarity index 93% rename from src/plugins/image_embeddable/tsconfig.json rename to src/platform/plugins/private/image_embeddable/tsconfig.json index d9863cf7fd6ac..1d434d082392d 100644 --- a/src/plugins/image_embeddable/tsconfig.json +++ b/src/platform/plugins/private/image_embeddable/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 854cf608b9efd..ed1983b57cdd2 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1044,8 +1044,8 @@ "@kbn/i18n-react/*": ["packages/kbn-i18n-react/*"], "@kbn/iframe-embedded-plugin": ["x-pack/test/functional_embedded/plugins/iframe_embedded"], "@kbn/iframe-embedded-plugin/*": ["x-pack/test/functional_embedded/plugins/iframe_embedded/*"], - "@kbn/image-embeddable-plugin": ["src/plugins/image_embeddable"], - "@kbn/image-embeddable-plugin/*": ["src/plugins/image_embeddable/*"], + "@kbn/image-embeddable-plugin": ["src/platform/plugins/private/image_embeddable"], + "@kbn/image-embeddable-plugin/*": ["src/platform/plugins/private/image_embeddable/*"], "@kbn/import-locator": ["packages/kbn-import-locator"], "@kbn/import-locator/*": ["packages/kbn-import-locator/*"], "@kbn/import-resolver": ["packages/kbn-import-resolver"], diff --git a/yarn.lock b/yarn.lock index 240af09f7bb42..56fabfcf06de1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5905,7 +5905,7 @@ version "0.0.0" uid "" -"@kbn/image-embeddable-plugin@link:src/plugins/image_embeddable": +"@kbn/image-embeddable-plugin@link:src/platform/plugins/private/image_embeddable": version "0.0.0" uid "" From d565addb711cab11324244f08b56fa57b7101307 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:10:19 +0100 Subject: [PATCH 11/43] Relocating module `@kbn/kibana-overview-plugin` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/private}/kibana_overview/README.md | 0 .../plugins/private}/kibana_overview/common/index.ts | 0 .../plugins/private}/kibana_overview/jest.config.js | 8 ++++---- .../plugins/private}/kibana_overview/kibana.jsonc | 0 .../private}/kibana_overview/public/application.tsx | 0 .../kibana_overview/public/assets/kibana_canvas_dark.svg | 0 .../kibana_overview/public/assets/kibana_canvas_light.svg | 0 .../public/assets/kibana_dashboards_dark.svg | 0 .../public/assets/kibana_dashboards_light.svg | 0 .../public/assets/kibana_discover_dark.svg | 0 .../public/assets/kibana_discover_light.svg | 0 .../kibana_overview/public/assets/kibana_graph_dark.svg | 0 .../kibana_overview/public/assets/kibana_graph_light.svg | 0 .../kibana_overview/public/assets/kibana_maps_dark.svg | 0 .../kibana_overview/public/assets/kibana_maps_light.svg | 0 .../kibana_overview/public/assets/kibana_ml_dark.svg | 0 .../kibana_overview/public/assets/kibana_ml_light.svg | 0 .../kibana_overview/public/assets/kibana_montage_dark.svg | 0 .../public/assets/kibana_montage_light.svg | 0 .../kibana_overview/public/components/_index.scss | 0 .../kibana_overview/public/components/_overview.scss | 0 .../add_data/__snapshots__/add_data.test.tsx.snap | 0 .../public/components/add_data/add_data.test.tsx | 0 .../public/components/add_data/add_data.tsx | 0 .../kibana_overview/public/components/add_data/index.ts | 0 .../private}/kibana_overview/public/components/app.tsx | 0 .../manage_data/__snapshots__/manage_data.test.tsx.snap | 0 .../public/components/manage_data/index.tsx | 0 .../public/components/manage_data/manage_data.test.tsx | 0 .../public/components/manage_data/manage_data.tsx | 0 .../news_feed/__snapshots__/news_feed.test.tsx.snap | 0 .../kibana_overview/public/components/news_feed/index.ts | 0 .../public/components/news_feed/news_feed.test.tsx | 0 .../public/components/news_feed/news_feed.tsx | 0 .../overview/__snapshots__/overview.test.tsx.snap | 0 .../kibana_overview/public/components/overview/index.ts | 0 .../public/components/overview/overview.test.mocks.ts | 0 .../public/components/overview/overview.test.tsx | 0 .../public/components/overview/overview.tsx | 0 .../synopsis/__snapshots__/synopsis.test.js.snap | 0 .../kibana_overview/public/components/synopsis/index.js | 0 .../public/components/synopsis/synopsis.js | 0 .../public/components/synopsis/synopsis.test.js | 0 .../plugins/private}/kibana_overview/public/index.scss | 0 .../plugins/private}/kibana_overview/public/index.ts | 0 .../private}/kibana_overview/public/lib/ui_metric.ts | 0 .../plugins/private}/kibana_overview/public/plugin.ts | 0 .../plugins/private}/kibana_overview/public/types.ts | 0 .../plugins/private}/kibana_overview/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 55 files changed, 12 insertions(+), 12 deletions(-) rename src/{plugins => platform/plugins/private}/kibana_overview/README.md (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/common/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/jest.config.js (70%) rename src/{plugins => platform/plugins/private}/kibana_overview/kibana.jsonc (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/application.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_canvas_dark.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_canvas_light.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_dashboards_dark.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_dashboards_light.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_discover_dark.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_discover_light.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_graph_dark.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_graph_light.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_maps_dark.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_maps_light.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_ml_dark.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_ml_light.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_montage_dark.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/assets/kibana_montage_light.svg (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/_index.scss (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/_overview.scss (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/add_data/__snapshots__/add_data.test.tsx.snap (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/add_data/add_data.test.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/add_data/add_data.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/add_data/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/app.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/manage_data/index.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/manage_data/manage_data.test.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/manage_data/manage_data.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/news_feed/__snapshots__/news_feed.test.tsx.snap (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/news_feed/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/news_feed/news_feed.test.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/news_feed/news_feed.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/overview/__snapshots__/overview.test.tsx.snap (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/overview/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/overview/overview.test.mocks.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/overview/overview.test.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/overview/overview.tsx (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/synopsis/__snapshots__/synopsis.test.js.snap (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/synopsis/index.js (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/synopsis/synopsis.js (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/components/synopsis/synopsis.test.js (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/index.scss (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/lib/ui_metric.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/public/types.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_overview/tsconfig.json (94%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f7e571bc47457..e27d2b6d753bc 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -612,6 +612,7 @@ src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-ma src/platform/packages/shared/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management src/platform/plugins/private/files_management @elastic/appex-sharedux src/platform/plugins/private/image_embeddable @elastic/appex-sharedux +src/platform/plugins/private/kibana_overview @elastic/appex-sharedux src/platform/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant src/platform/plugins/shared/console @elastic/kibana-management src/platform/plugins/shared/content_management @elastic/appex-sharedux @@ -659,7 +660,6 @@ src/plugins/ftr_apis @elastic/kibana-core src/plugins/input_control_vis @elastic/kibana-presentation src/plugins/inspector @elastic/kibana-presentation src/plugins/interactive_setup @elastic/kibana-security -src/plugins/kibana_overview @elastic/appex-sharedux src/plugins/kibana_react @elastic/appex-sharedux src/plugins/kibana_usage_collection @elastic/kibana-core src/plugins/kibana_utils @elastic/appex-sharedux diff --git a/.i18nrc.json b/.i18nrc.json index 544df7cc664af..5720a7218c48b 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -86,7 +86,7 @@ "kibana_react": "src/legacy/core_plugins/kibana_react", "kibana_utils": "src/plugins/kibana_utils", "kibana-react": "src/plugins/kibana_react", - "kibanaOverview": "src/plugins/kibana_overview", + "kibanaOverview": "src/platform/plugins/private/kibana_overview", "lensFormulaDocs": "packages/kbn-lens-formula-docs", "lists": "x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src", "exceptionList-components": "x-pack/solutions/security/packages/kbn-securitysolution-exception-list-components/src", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 7d41bdee1c4c0..f56c29f7155b4 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -238,7 +238,7 @@ in Kibana, e.g. visualizations. It has the form of a flyout panel. |This plugin provides UI and APIs for interactive setup mode a.k.a "enrollment flow". -|{kib-repo}blob/{branch}/src/plugins/kibana_overview/README.md[kibanaOverview] +|{kib-repo}blob/{branch}/src/platform/plugins/private/kibana_overview/README.md[kibanaOverview] |An overview page highlighting Kibana apps diff --git a/package.json b/package.json index c17e3e564f375..f01b45ff67003 100644 --- a/package.json +++ b/package.json @@ -603,7 +603,7 @@ "@kbn/kbn-tp-custom-visualizations-plugin": "link:test/plugin_functional/plugins/kbn_tp_custom_visualizations", "@kbn/kbn-tp-run-pipeline-plugin": "link:test/interpreter_functional/plugins/kbn_tp_run_pipeline", "@kbn/kibana-cors-test-plugin": "link:x-pack/test/functional_cors/plugins/kibana_cors_test", - "@kbn/kibana-overview-plugin": "link:src/plugins/kibana_overview", + "@kbn/kibana-overview-plugin": "link:src/platform/plugins/private/kibana_overview", "@kbn/kibana-react-plugin": "link:src/plugins/kibana_react", "@kbn/kibana-usage-collection-plugin": "link:src/plugins/kibana_usage_collection", "@kbn/kibana-utils-plugin": "link:src/plugins/kibana_utils", diff --git a/src/plugins/kibana_overview/README.md b/src/platform/plugins/private/kibana_overview/README.md similarity index 100% rename from src/plugins/kibana_overview/README.md rename to src/platform/plugins/private/kibana_overview/README.md diff --git a/src/plugins/kibana_overview/common/index.ts b/src/platform/plugins/private/kibana_overview/common/index.ts similarity index 100% rename from src/plugins/kibana_overview/common/index.ts rename to src/platform/plugins/private/kibana_overview/common/index.ts diff --git a/src/plugins/kibana_overview/jest.config.js b/src/platform/plugins/private/kibana_overview/jest.config.js similarity index 70% rename from src/plugins/kibana_overview/jest.config.js rename to src/platform/plugins/private/kibana_overview/jest.config.js index 60b81f5a105ad..853f861780721 100644 --- a/src/plugins/kibana_overview/jest.config.js +++ b/src/platform/plugins/private/kibana_overview/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/kibana_overview'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/kibana_overview', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/kibana_overview'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/kibana_overview', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/kibana_overview/{common,public}/**/*.{js,ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/private/kibana_overview/{common,public}/**/*.{js,ts,tsx}'], }; diff --git a/src/plugins/kibana_overview/kibana.jsonc b/src/platform/plugins/private/kibana_overview/kibana.jsonc similarity index 100% rename from src/plugins/kibana_overview/kibana.jsonc rename to src/platform/plugins/private/kibana_overview/kibana.jsonc diff --git a/src/plugins/kibana_overview/public/application.tsx b/src/platform/plugins/private/kibana_overview/public/application.tsx similarity index 100% rename from src/plugins/kibana_overview/public/application.tsx rename to src/platform/plugins/private/kibana_overview/public/application.tsx diff --git a/src/plugins/kibana_overview/public/assets/kibana_canvas_dark.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_canvas_dark.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_canvas_dark.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_canvas_dark.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_canvas_light.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_canvas_light.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_canvas_light.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_canvas_light.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_dashboards_dark.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_dashboards_dark.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_dashboards_dark.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_dashboards_dark.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_dashboards_light.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_dashboards_light.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_dashboards_light.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_dashboards_light.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_discover_dark.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_discover_dark.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_discover_dark.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_discover_dark.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_discover_light.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_discover_light.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_discover_light.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_discover_light.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_graph_dark.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_graph_dark.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_graph_dark.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_graph_dark.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_graph_light.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_graph_light.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_graph_light.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_graph_light.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_maps_dark.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_maps_dark.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_maps_dark.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_maps_dark.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_maps_light.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_maps_light.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_maps_light.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_maps_light.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_ml_dark.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_ml_dark.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_ml_dark.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_ml_dark.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_ml_light.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_ml_light.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_ml_light.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_ml_light.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_montage_dark.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_montage_dark.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_montage_dark.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_montage_dark.svg diff --git a/src/plugins/kibana_overview/public/assets/kibana_montage_light.svg b/src/platform/plugins/private/kibana_overview/public/assets/kibana_montage_light.svg similarity index 100% rename from src/plugins/kibana_overview/public/assets/kibana_montage_light.svg rename to src/platform/plugins/private/kibana_overview/public/assets/kibana_montage_light.svg diff --git a/src/plugins/kibana_overview/public/components/_index.scss b/src/platform/plugins/private/kibana_overview/public/components/_index.scss similarity index 100% rename from src/plugins/kibana_overview/public/components/_index.scss rename to src/platform/plugins/private/kibana_overview/public/components/_index.scss diff --git a/src/plugins/kibana_overview/public/components/_overview.scss b/src/platform/plugins/private/kibana_overview/public/components/_overview.scss similarity index 100% rename from src/plugins/kibana_overview/public/components/_overview.scss rename to src/platform/plugins/private/kibana_overview/public/components/_overview.scss diff --git a/src/plugins/kibana_overview/public/components/add_data/__snapshots__/add_data.test.tsx.snap b/src/platform/plugins/private/kibana_overview/public/components/add_data/__snapshots__/add_data.test.tsx.snap similarity index 100% rename from src/plugins/kibana_overview/public/components/add_data/__snapshots__/add_data.test.tsx.snap rename to src/platform/plugins/private/kibana_overview/public/components/add_data/__snapshots__/add_data.test.tsx.snap diff --git a/src/plugins/kibana_overview/public/components/add_data/add_data.test.tsx b/src/platform/plugins/private/kibana_overview/public/components/add_data/add_data.test.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/add_data/add_data.test.tsx rename to src/platform/plugins/private/kibana_overview/public/components/add_data/add_data.test.tsx diff --git a/src/plugins/kibana_overview/public/components/add_data/add_data.tsx b/src/platform/plugins/private/kibana_overview/public/components/add_data/add_data.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/add_data/add_data.tsx rename to src/platform/plugins/private/kibana_overview/public/components/add_data/add_data.tsx diff --git a/src/plugins/kibana_overview/public/components/add_data/index.ts b/src/platform/plugins/private/kibana_overview/public/components/add_data/index.ts similarity index 100% rename from src/plugins/kibana_overview/public/components/add_data/index.ts rename to src/platform/plugins/private/kibana_overview/public/components/add_data/index.ts diff --git a/src/plugins/kibana_overview/public/components/app.tsx b/src/platform/plugins/private/kibana_overview/public/components/app.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/app.tsx rename to src/platform/plugins/private/kibana_overview/public/components/app.tsx diff --git a/src/plugins/kibana_overview/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap b/src/platform/plugins/private/kibana_overview/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap similarity index 100% rename from src/plugins/kibana_overview/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap rename to src/platform/plugins/private/kibana_overview/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap diff --git a/src/plugins/kibana_overview/public/components/manage_data/index.tsx b/src/platform/plugins/private/kibana_overview/public/components/manage_data/index.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/manage_data/index.tsx rename to src/platform/plugins/private/kibana_overview/public/components/manage_data/index.tsx diff --git a/src/plugins/kibana_overview/public/components/manage_data/manage_data.test.tsx b/src/platform/plugins/private/kibana_overview/public/components/manage_data/manage_data.test.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/manage_data/manage_data.test.tsx rename to src/platform/plugins/private/kibana_overview/public/components/manage_data/manage_data.test.tsx diff --git a/src/plugins/kibana_overview/public/components/manage_data/manage_data.tsx b/src/platform/plugins/private/kibana_overview/public/components/manage_data/manage_data.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/manage_data/manage_data.tsx rename to src/platform/plugins/private/kibana_overview/public/components/manage_data/manage_data.tsx diff --git a/src/plugins/kibana_overview/public/components/news_feed/__snapshots__/news_feed.test.tsx.snap b/src/platform/plugins/private/kibana_overview/public/components/news_feed/__snapshots__/news_feed.test.tsx.snap similarity index 100% rename from src/plugins/kibana_overview/public/components/news_feed/__snapshots__/news_feed.test.tsx.snap rename to src/platform/plugins/private/kibana_overview/public/components/news_feed/__snapshots__/news_feed.test.tsx.snap diff --git a/src/plugins/kibana_overview/public/components/news_feed/index.ts b/src/platform/plugins/private/kibana_overview/public/components/news_feed/index.ts similarity index 100% rename from src/plugins/kibana_overview/public/components/news_feed/index.ts rename to src/platform/plugins/private/kibana_overview/public/components/news_feed/index.ts diff --git a/src/plugins/kibana_overview/public/components/news_feed/news_feed.test.tsx b/src/platform/plugins/private/kibana_overview/public/components/news_feed/news_feed.test.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/news_feed/news_feed.test.tsx rename to src/platform/plugins/private/kibana_overview/public/components/news_feed/news_feed.test.tsx diff --git a/src/plugins/kibana_overview/public/components/news_feed/news_feed.tsx b/src/platform/plugins/private/kibana_overview/public/components/news_feed/news_feed.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/news_feed/news_feed.tsx rename to src/platform/plugins/private/kibana_overview/public/components/news_feed/news_feed.tsx diff --git a/src/plugins/kibana_overview/public/components/overview/__snapshots__/overview.test.tsx.snap b/src/platform/plugins/private/kibana_overview/public/components/overview/__snapshots__/overview.test.tsx.snap similarity index 100% rename from src/plugins/kibana_overview/public/components/overview/__snapshots__/overview.test.tsx.snap rename to src/platform/plugins/private/kibana_overview/public/components/overview/__snapshots__/overview.test.tsx.snap diff --git a/src/plugins/kibana_overview/public/components/overview/index.ts b/src/platform/plugins/private/kibana_overview/public/components/overview/index.ts similarity index 100% rename from src/plugins/kibana_overview/public/components/overview/index.ts rename to src/platform/plugins/private/kibana_overview/public/components/overview/index.ts diff --git a/src/plugins/kibana_overview/public/components/overview/overview.test.mocks.ts b/src/platform/plugins/private/kibana_overview/public/components/overview/overview.test.mocks.ts similarity index 100% rename from src/plugins/kibana_overview/public/components/overview/overview.test.mocks.ts rename to src/platform/plugins/private/kibana_overview/public/components/overview/overview.test.mocks.ts diff --git a/src/plugins/kibana_overview/public/components/overview/overview.test.tsx b/src/platform/plugins/private/kibana_overview/public/components/overview/overview.test.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/overview/overview.test.tsx rename to src/platform/plugins/private/kibana_overview/public/components/overview/overview.test.tsx diff --git a/src/plugins/kibana_overview/public/components/overview/overview.tsx b/src/platform/plugins/private/kibana_overview/public/components/overview/overview.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/overview/overview.tsx rename to src/platform/plugins/private/kibana_overview/public/components/overview/overview.tsx diff --git a/src/plugins/kibana_overview/public/components/synopsis/__snapshots__/synopsis.test.js.snap b/src/platform/plugins/private/kibana_overview/public/components/synopsis/__snapshots__/synopsis.test.js.snap similarity index 100% rename from src/plugins/kibana_overview/public/components/synopsis/__snapshots__/synopsis.test.js.snap rename to src/platform/plugins/private/kibana_overview/public/components/synopsis/__snapshots__/synopsis.test.js.snap diff --git a/src/plugins/kibana_overview/public/components/synopsis/index.js b/src/platform/plugins/private/kibana_overview/public/components/synopsis/index.js similarity index 100% rename from src/plugins/kibana_overview/public/components/synopsis/index.js rename to src/platform/plugins/private/kibana_overview/public/components/synopsis/index.js diff --git a/src/plugins/kibana_overview/public/components/synopsis/synopsis.js b/src/platform/plugins/private/kibana_overview/public/components/synopsis/synopsis.js similarity index 100% rename from src/plugins/kibana_overview/public/components/synopsis/synopsis.js rename to src/platform/plugins/private/kibana_overview/public/components/synopsis/synopsis.js diff --git a/src/plugins/kibana_overview/public/components/synopsis/synopsis.test.js b/src/platform/plugins/private/kibana_overview/public/components/synopsis/synopsis.test.js similarity index 100% rename from src/plugins/kibana_overview/public/components/synopsis/synopsis.test.js rename to src/platform/plugins/private/kibana_overview/public/components/synopsis/synopsis.test.js diff --git a/src/plugins/kibana_overview/public/index.scss b/src/platform/plugins/private/kibana_overview/public/index.scss similarity index 100% rename from src/plugins/kibana_overview/public/index.scss rename to src/platform/plugins/private/kibana_overview/public/index.scss diff --git a/src/plugins/kibana_overview/public/index.ts b/src/platform/plugins/private/kibana_overview/public/index.ts similarity index 100% rename from src/plugins/kibana_overview/public/index.ts rename to src/platform/plugins/private/kibana_overview/public/index.ts diff --git a/src/plugins/kibana_overview/public/lib/ui_metric.ts b/src/platform/plugins/private/kibana_overview/public/lib/ui_metric.ts similarity index 100% rename from src/plugins/kibana_overview/public/lib/ui_metric.ts rename to src/platform/plugins/private/kibana_overview/public/lib/ui_metric.ts diff --git a/src/plugins/kibana_overview/public/plugin.ts b/src/platform/plugins/private/kibana_overview/public/plugin.ts similarity index 100% rename from src/plugins/kibana_overview/public/plugin.ts rename to src/platform/plugins/private/kibana_overview/public/plugin.ts diff --git a/src/plugins/kibana_overview/public/types.ts b/src/platform/plugins/private/kibana_overview/public/types.ts similarity index 100% rename from src/plugins/kibana_overview/public/types.ts rename to src/platform/plugins/private/kibana_overview/public/types.ts diff --git a/src/plugins/kibana_overview/tsconfig.json b/src/platform/plugins/private/kibana_overview/tsconfig.json similarity index 94% rename from src/plugins/kibana_overview/tsconfig.json rename to src/platform/plugins/private/kibana_overview/tsconfig.json index ad6a946b432b5..f2fd70144e928 100644 --- a/src/plugins/kibana_overview/tsconfig.json +++ b/src/platform/plugins/private/kibana_overview/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index ed1983b57cdd2..6d5a73b71ec61 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1124,8 +1124,8 @@ "@kbn/kibana-cors-test-plugin/*": ["x-pack/test/functional_cors/plugins/kibana_cors_test/*"], "@kbn/kibana-manifest-schema": ["packages/kbn-kibana-manifest-schema"], "@kbn/kibana-manifest-schema/*": ["packages/kbn-kibana-manifest-schema/*"], - "@kbn/kibana-overview-plugin": ["src/plugins/kibana_overview"], - "@kbn/kibana-overview-plugin/*": ["src/plugins/kibana_overview/*"], + "@kbn/kibana-overview-plugin": ["src/platform/plugins/private/kibana_overview"], + "@kbn/kibana-overview-plugin/*": ["src/platform/plugins/private/kibana_overview/*"], "@kbn/kibana-react-plugin": ["src/plugins/kibana_react"], "@kbn/kibana-react-plugin/*": ["src/plugins/kibana_react/*"], "@kbn/kibana-usage-collection-plugin": ["src/plugins/kibana_usage_collection"], diff --git a/yarn.lock b/yarn.lock index 56fabfcf06de1..7cc59880f4a3b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6065,7 +6065,7 @@ version "0.0.0" uid "" -"@kbn/kibana-overview-plugin@link:src/plugins/kibana_overview": +"@kbn/kibana-overview-plugin@link:src/platform/plugins/private/kibana_overview": version "0.0.0" uid "" From 2d75db97deca1fd5071dbffd83fbe5502f2aee7a Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:11:46 +0100 Subject: [PATCH 12/43] Relocating module `@kbn/kibana-react-plugin` --- .../scripts/pipelines/pull_request/pipeline.ts | 2 +- .eslintrc.js | 2 +- .github/CODEOWNERS | 8 ++++---- .i18nrc.json | 4 ++-- docs/developer/best-practices/index.asciidoc | 2 +- docs/developer/plugin-list.asciidoc | 2 +- legacy_rfcs/text/0006_management_section_service.md | 4 ++-- package.json | 2 +- .../core-application-browser/src/app_mount.ts | 2 +- packages/kbn-monaco/src/painless/README.md | 2 +- packages/kbn-storybook/src/lib/run_storybook_cli.ts | 2 +- .../buttons/toolbar_button/toolbar_button.styles.ts | 2 +- src/dev/storybook/aliases.ts | 2 +- .../plugins/shared}/kibana_react/.storybook/main.ts | 0 .../shared}/kibana_react/.storybook/manager.ts | 2 +- .../plugins/shared}/kibana_react/README.md | 0 .../kibana_react/common/eui_styled_components.tsx | 0 .../plugins/shared}/kibana_react/common/index.ts | 0 .../plugins/shared}/kibana_react/jest.config.js | 8 ++++---- .../plugins/shared}/kibana_react/kibana.jsonc | 0 .../public/assets/elastic_agent_card.svg | 0 .../public/assets/illustration_cloud_migration.png | Bin .../assets/illustration_integrations_darkmode.svg | 0 .../assets/illustration_integrations_lightmode.svg | 0 .../public/assets/solutions_enterprise_search.svg | 0 .../kibana_react/public/assets/solutions_kibana.svg | 0 .../public/assets/solutions_observability.svg | 0 .../public/assets/solutions_security_solution.svg | 0 .../shared}/kibana_react/public/assets/texture.svg | 0 .../kibana_react/public/context/context.test.tsx | 0 .../shared}/kibana_react/public/context/context.tsx | 0 .../shared}/kibana_react/public/context/index.ts | 0 .../shared}/kibana_react/public/context/types.ts | 0 .../shared}/kibana_react/public/dark_mode/index.ts | 0 .../public/dark_mode/use_dark_mode.test.tsx | 0 .../kibana_react/public/dark_mode/use_dark_mode.ts | 0 .../plugins/shared}/kibana_react/public/index.ts | 0 .../markdown/__snapshots__/markdown.test.tsx.snap | 0 .../kibana_react/public/markdown/_markdown.scss | 0 .../shared}/kibana_react/public/markdown/index.scss | 0 .../shared}/kibana_react/public/markdown/index.tsx | 0 .../kibana_react/public/markdown/markdown.test.tsx | 0 .../kibana_react/public/markdown/markdown.tsx | 0 .../public/markdown/markdown_simple.tsx | 0 .../notifications/create_notifications.test.tsx | 0 .../public/notifications/create_notifications.tsx | 0 .../kibana_react/public/notifications/index.tsx | 0 .../kibana_react/public/notifications/types.ts | 0 .../public/overlays/create_react_overlays.test.tsx | 0 .../public/overlays/create_react_overlays.tsx | 0 .../shared}/kibana_react/public/overlays/index.tsx | 0 .../shared}/kibana_react/public/overlays/types.ts | 0 .../kibana_react/public/overview_page/index.ts | 0 .../overview_page_actions.test.tsx.snap | 0 .../overview_page/overview_page_actions/index.ts | 0 .../overview_page_actions.test.tsx | 0 .../overview_page_actions/overview_page_actions.tsx | 0 .../overview_page_footer.test.tsx.snap | 0 .../overview_page/overview_page_footer/index.ts | 0 .../overview_page_footer.test.tsx | 0 .../overview_page_footer/overview_page_footer.tsx | 0 .../kibana_react/public/page_template/index.ts | 0 .../__snapshots__/no_data_page.test.tsx.snap | 0 .../no_data_page/action_cards/action_cards.scss | 0 .../no_data_page/action_cards/action_cards.test.tsx | 0 .../no_data_page/action_cards/action_cards.tsx | 0 .../no_data_page/action_cards/index.tsx | 0 .../public/page_template/no_data_page/index.ts | 0 .../__snapshots__/elastic_agent_card.test.tsx.snap | 0 .../__snapshots__/no_data_card.test.tsx.snap | 0 .../no_data_card/elastic_agent_card.test.tsx | 0 .../no_data_card/elastic_agent_card.tsx | 0 .../no_data_page/no_data_card/index.ts | 0 .../no_data_page/no_data_card/no_data_card.test.tsx | 0 .../no_data_page/no_data_card/no_data_card.tsx | 0 .../no_data_page/no_data_page.test.tsx | 0 .../page_template/no_data_page/no_data_page.tsx | 0 .../__snapshots__/no_data_page_body.test.tsx.snap | 0 .../no_data_page/no_data_page_body/index.tsx | 0 .../no_data_page_body/no_data_page_body.test.tsx | 0 .../no_data_page_body/no_data_page_body.tsx | 0 .../__snapshots__/solution_nav.test.tsx.snap | 0 .../__snapshots__/solution_nav_avatar.test.tsx.snap | 0 .../public/page_template/solution_nav/index.ts | 0 .../page_template/solution_nav/solution_nav.scss | 0 .../solution_nav/solution_nav.test.tsx | 0 .../page_template/solution_nav/solution_nav.tsx | 0 .../solution_nav/solution_nav_avatar.scss | 0 .../solution_nav/solution_nav_avatar.test.tsx | 0 .../solution_nav/solution_nav_avatar.tsx | 0 .../solution_nav/solution_nav_collapse_button.scss | 0 .../solution_nav/solution_nav_collapse_button.tsx | 0 .../kibana_react/public/page_template/util/index.ts | 0 .../public/page_template/util/presentation.ts | 0 .../public/react_router_navigate/index.ts | 0 .../react_router_navigate/react_router_navigate.tsx | 0 .../plugins/shared}/kibana_react/public/theme.tsx | 0 .../kibana_react/public/ui_settings/index.ts | 0 .../public/ui_settings/use_ui_setting.test.tsx | 0 .../public/ui_settings/use_ui_setting.ts | 0 .../public/url_template_editor/index.ts | 0 .../public/url_template_editor/styles.scss | 0 .../url_template_editor.stories.tsx | 0 .../url_template_editor/url_template_editor.tsx | 0 .../public/use_execution_context/index.ts | 0 .../use_execution_context/use_execution_context.ts | 0 .../shared}/kibana_react/public/util/index.tsx | 0 .../kibana_react/public/validated_range/index.ts | 0 .../public/validated_range/is_range_valid.test.ts | 0 .../public/validated_range/is_range_valid.ts | 0 .../public/validated_range/validated_dual_range.tsx | 0 .../plugins/shared}/kibana_react/tsconfig.json | 4 ++-- tsconfig.base.json | 4 ++-- .../plugins/private/runtime_fields/README.md | 2 +- .../public/mocks/mock_kibana_ui_settings_service.ts | 2 +- yarn.lock | 2 +- 116 files changed, 30 insertions(+), 30 deletions(-) rename src/{plugins => platform/plugins/shared}/kibana_react/.storybook/main.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/.storybook/manager.ts (95%) rename src/{plugins => platform/plugins/shared}/kibana_react/README.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/common/eui_styled_components.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/jest.config.js (71%) rename src/{plugins => platform/plugins/shared}/kibana_react/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/assets/elastic_agent_card.svg (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/assets/illustration_cloud_migration.png (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/assets/illustration_integrations_darkmode.svg (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/assets/illustration_integrations_lightmode.svg (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/assets/solutions_enterprise_search.svg (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/assets/solutions_kibana.svg (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/assets/solutions_observability.svg (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/assets/solutions_security_solution.svg (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/assets/texture.svg (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/context/context.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/context/context.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/context/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/context/types.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/dark_mode/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/dark_mode/use_dark_mode.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/dark_mode/use_dark_mode.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/markdown/__snapshots__/markdown.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/markdown/_markdown.scss (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/markdown/index.scss (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/markdown/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/markdown/markdown.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/markdown/markdown.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/markdown/markdown_simple.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/notifications/create_notifications.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/notifications/create_notifications.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/notifications/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/notifications/types.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overlays/create_react_overlays.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overlays/create_react_overlays.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overlays/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overlays/types.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overview_page/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overview_page/overview_page_actions/__snapshots__/overview_page_actions.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overview_page/overview_page_actions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overview_page/overview_page_footer/__snapshots__/overview_page_footer.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overview_page/overview_page_footer/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/__snapshots__/no_data_page.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/action_cards/action_cards.scss (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/action_cards/action_cards.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/action_cards/action_cards.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/action_cards/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/elastic_agent_card.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_card/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_page.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_page.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_page_body/__snapshots__/no_data_page_body.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_page_body/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav_avatar.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/solution_nav.scss (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/solution_nav.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/solution_nav.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/solution_nav_avatar.scss (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/solution_nav_avatar.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/solution_nav_avatar.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.scss (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/util/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/page_template/util/presentation.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/react_router_navigate/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/react_router_navigate/react_router_navigate.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/theme.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/ui_settings/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/ui_settings/use_ui_setting.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/ui_settings/use_ui_setting.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/url_template_editor/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/url_template_editor/styles.scss (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/url_template_editor/url_template_editor.stories.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/url_template_editor/url_template_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/use_execution_context/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/use_execution_context/use_execution_context.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/util/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/validated_range/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/validated_range/is_range_valid.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/validated_range/is_range_valid.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/public/validated_range/validated_dual_range.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_react/tsconfig.json (89%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 4e6b5d30cbc64..a0d6b6e20947e 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -323,7 +323,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^src\/plugins\/discover/, /^src\/plugins\/field_formats/, /^src\/plugins\/inspector/, - /^src\/plugins\/kibana_react/, + /^src\/platform\/plugins\/shared\/kibana_react/, /^src\/plugins\/kibana_utils/, /^src\/plugins\/saved_search/, /^src\/plugins\/ui_actions/, diff --git a/.eslintrc.js b/.eslintrc.js index 8f6b0e238a504..f92fdb9da7f68 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -283,7 +283,7 @@ module.exports = { * Temporarily disable some react rules for specific plugins, remove in separate PRs */ { - files: ['src/plugins/kibana_react/**/*.{js,mjs,ts,tsx}'], + files: ['src/platform/plugins/shared/kibana_react/**/*.{js,mjs,ts,tsx}'], rules: { 'react-hooks/rules-of-hooks': 'off', 'react-hooks/exhaustive-deps': 'off', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e27d2b6d753bc..b235e6b43e9db 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -623,6 +623,7 @@ src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql src/platform/plugins/shared/files @elastic/appex-sharedux src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux src/platform/plugins/shared/home @elastic/appex-sharedux +src/platform/plugins/shared/kibana_react @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux @@ -660,7 +661,6 @@ src/plugins/ftr_apis @elastic/kibana-core src/plugins/input_control_vis @elastic/kibana-presentation src/plugins/inspector @elastic/kibana-presentation src/plugins/interactive_setup @elastic/kibana-security -src/plugins/kibana_react @elastic/appex-sharedux src/plugins/kibana_usage_collection @elastic/kibana-core src/plugins/kibana_utils @elastic/appex-sharedux src/plugins/links @elastic/kibana-presentation @@ -1234,7 +1234,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/test/saved_object_tagging/ @elastic/appex-sharedux ### Kibana React (to be deprecated) -/src/plugins/kibana_react/public/ @elastic/appex-sharedux @elastic/kibana-presentation +/src/platform/plugins/shared/kibana_react/public/ @elastic/appex-sharedux @elastic/kibana-presentation ### Home Plugin and Packages /src/platform/plugins/shared/home/public @elastic/appex-sharedux @@ -1495,7 +1495,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/test_serverless/functional/test_suites/search/dashboards/ @elastic/kibana-presentation /test/plugin_functional/test_suites/panel_actions @elastic/kibana-presentation /x-pack/test/functional/es_archives/canvas/logstash_lens @elastic/kibana-presentation -#CC# /src/plugins/kibana_react/public/code_editor/ @elastic/kibana-presentation +#CC# /src/platform/plugins/shared/kibana_react/public/code_editor/ @elastic/kibana-presentation /x-pack/test/upgrade/services/maps_upgrade_services.ts @elastic/kibana-presentation /x-pack/test/stack_functional_integration/apps/maps @elastic/kibana-presentation /x-pack/test/functional/page_objects/geo_file_upload.ts @elastic/kibana-presentation @@ -2565,7 +2565,7 @@ x-pack/solutions/security/plugins/security_solution/server/lib/security_integrat #CC# /x-pack/plugins/logstash/ @elastic/logstash # EUI team -/src/plugins/kibana_react/public/page_template/ @elastic/eui-team @elastic/appex-sharedux +/src/platform/plugins/shared/kibana_react/public/page_template/ @elastic/eui-team @elastic/appex-sharedux # Landing page for guided onboarding in Home plugin /src/platform/plugins/shared/home/public/application/components/guided_onboarding @elastic/appex-sharedux diff --git a/.i18nrc.json b/.i18nrc.json index 5720a7218c48b..1db90f17774b2 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -83,9 +83,9 @@ "kbn-esql-validation-autocomplete": "src/platform/packages/shared/kbn-esql-validation-autocomplete/src", "kbnConfig": "packages/kbn-config/src", "kbnDocViews": "src/legacy/core_plugins/kbn_doc_views", - "kibana_react": "src/legacy/core_plugins/kibana_react", + "kibana_react": "src/legacy/core_platform/plugins/shared/kibana_react", "kibana_utils": "src/plugins/kibana_utils", - "kibana-react": "src/plugins/kibana_react", + "kibana-react": "src/platform/plugins/shared/kibana_react", "kibanaOverview": "src/platform/plugins/private/kibana_overview", "lensFormulaDocs": "packages/kbn-lens-formula-docs", "lists": "x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src", diff --git a/docs/developer/best-practices/index.asciidoc b/docs/developer/best-practices/index.asciidoc index 57a10ee06a697..b7f4f6d5c3ab5 100644 --- a/docs/developer/best-practices/index.asciidoc +++ b/docs/developer/best-practices/index.asciidoc @@ -92,7 +92,7 @@ syncing] and container] utilities provided by * {kib-repo}tree/{branch}/src/plugins/kibana_utils/README.md[kibana_utils] if you want to sync your application state to the URL? -** {kib-repo}tree/{branch}/src/plugins/kibana_react/README.md[kibana_react] +** {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_react/README.md[kibana_react] for react specific helpers Re-using these services will help create a consistent experience across diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index f56c29f7155b4..185eed89d1cf2 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -242,7 +242,7 @@ in Kibana, e.g. visualizations. It has the form of a flyout panel. |An overview page highlighting Kibana apps -|{kib-repo}blob/{branch}/src/plugins/kibana_react/README.md[kibanaReact] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/kibana_react/README.md[kibanaReact] |Tools for building React applications in Kibana. diff --git a/legacy_rfcs/text/0006_management_section_service.md b/legacy_rfcs/text/0006_management_section_service.md index c2a62c3686680..b6b606ccf9cd8 100644 --- a/legacy_rfcs/text/0006_management_section_service.md +++ b/legacy_rfcs/text/0006_management_section_service.md @@ -84,7 +84,7 @@ export function renderApp(context, { sectionBasePath, element }) { We can also create a utility in `kibana_react` to make it easy for folks to `mount` a React app: ```ts -// src/plugins/kibana_react/public/mount_with_react.tsx +// src/platform/plugins/shared/kibana_react/public/mount_with_react.tsx import { KibanaContextProvider } from './context'; export const mountWithReact = ( @@ -105,7 +105,7 @@ export const mountWithReact = ( } // my_plugin/public/plugin.ts -import { mountWithReact } from 'src/plugins/kibana_react/public'; +import { mountWithReact } from 'src/platform/plugins/shared/kibana_react/public'; export class MyPlugin { setup(core, { management }) { diff --git a/package.json b/package.json index f01b45ff67003..222a5f70f894a 100644 --- a/package.json +++ b/package.json @@ -604,7 +604,7 @@ "@kbn/kbn-tp-run-pipeline-plugin": "link:test/interpreter_functional/plugins/kbn_tp_run_pipeline", "@kbn/kibana-cors-test-plugin": "link:x-pack/test/functional_cors/plugins/kibana_cors_test", "@kbn/kibana-overview-plugin": "link:src/platform/plugins/private/kibana_overview", - "@kbn/kibana-react-plugin": "link:src/plugins/kibana_react", + "@kbn/kibana-react-plugin": "link:src/platform/plugins/shared/kibana_react", "@kbn/kibana-usage-collection-plugin": "link:src/plugins/kibana_usage_collection", "@kbn/kibana-utils-plugin": "link:src/plugins/kibana_utils", "@kbn/kubernetes-security-plugin": "link:x-pack/solutions/security/plugins/kubernetes_security", diff --git a/packages/core/application/core-application-browser/src/app_mount.ts b/packages/core/application/core-application-browser/src/app_mount.ts index 4fb38b10a3704..5db2e3a5bc45a 100644 --- a/packages/core/application/core-application-browser/src/app_mount.ts +++ b/packages/core/application/core-application-browser/src/app_mount.ts @@ -217,7 +217,7 @@ export interface AppMountParameters { * import ReactDOM from 'react-dom'; * * import { AppMountParameters } from 'src/core/public'; - * import { wrapWithTheme } from 'src/plugins/kibana_react'; + * import { wrapWithTheme } from 'src/platform/plugins/shared/kibana_react'; * import { MyApp } from './app'; * * export renderApp = ({ element, theme$ }: AppMountParameters) => { diff --git a/packages/kbn-monaco/src/painless/README.md b/packages/kbn-monaco/src/painless/README.md index dc748e5bf8ced..a862db636cf0e 100644 --- a/packages/kbn-monaco/src/painless/README.md +++ b/packages/kbn-monaco/src/painless/README.md @@ -45,7 +45,7 @@ This directory contains the Painless lexer and grammar rules, as well as the gen ``` import { PainlessLang, PainlessContext } from '@kbn/monaco'; -import { CodeEditor } from '../src/plugins/kibana_react/public'; +import { CodeEditor } from '../src/platform/plugins/shared/kibana_react/public'; // Fields are optional and only applicable in certain contexts const fields = [ diff --git a/packages/kbn-storybook/src/lib/run_storybook_cli.ts b/packages/kbn-storybook/src/lib/run_storybook_cli.ts index 7ddeb6f2429dd..f10be2741d687 100644 --- a/packages/kbn-storybook/src/lib/run_storybook_cli.ts +++ b/packages/kbn-storybook/src/lib/run_storybook_cli.ts @@ -43,7 +43,7 @@ export function runStorybookCli({ configDir, name }: { configDir: string; name: const staticDir = [ UiSharedDepsNpm.distDir, UiSharedDepsSrc.distDir, - 'src/plugins/kibana_react/public/assets:plugins/kibanaReact/assets', + 'src/platform/plugins/shared/kibana_react/public/assets:plugins/kibanaReact/assets', ]; const config: Record = { configDir, diff --git a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.styles.ts b/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.styles.ts index b70993ed8b02e..2763e3eedc4af 100644 --- a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.styles.ts +++ b/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.styles.ts @@ -17,7 +17,7 @@ export const fontWeightDefinitions = (euiTheme: UseEuiTheme['euiTheme']) => ({ export const ToolbarButtonStyles = ({ euiTheme }: UseEuiTheme) => { return { default: { - // style declaration carried over from https://github.com/elastic/kibana/blob/v8.10.4/src/plugins/kibana_react/public/toolbar_button/toolbar_button.scss + // style declaration carried over from https://github.com/elastic/kibana/blob/v8.10.4/src/platform/plugins/shared/kibana_react/public/toolbar_button/toolbar_button.scss // informed by issue https://github.com/elastic/eui/issues/4730 borderStyle: 'solid', border: euiTheme.border.thin, diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index 2c5f829a7b5cb..5e7dc6496f7c5 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -49,7 +49,7 @@ export const storybookAliases = { infra: 'x-pack/plugins/observability_solution/infra/.storybook', inventory: 'x-pack/plugins/observability_solution/inventory/.storybook', investigate: 'x-pack/solutions/observability/plugins/investigate_app/.storybook', - kibana_react: 'src/plugins/kibana_react/.storybook', + kibana_react: 'src/platform/plugins/shared/kibana_react/.storybook', lists: 'x-pack/solutions/security/plugins/lists/.storybook', logs_explorer: 'x-pack/plugins/observability_solution/logs_explorer/.storybook', management: 'packages/kbn-management/storybook/config', diff --git a/src/plugins/kibana_react/.storybook/main.ts b/src/platform/plugins/shared/kibana_react/.storybook/main.ts similarity index 100% rename from src/plugins/kibana_react/.storybook/main.ts rename to src/platform/plugins/shared/kibana_react/.storybook/main.ts diff --git a/src/plugins/kibana_react/.storybook/manager.ts b/src/platform/plugins/shared/kibana_react/.storybook/manager.ts similarity index 95% rename from src/plugins/kibana_react/.storybook/manager.ts rename to src/platform/plugins/shared/kibana_react/.storybook/manager.ts index a01465d16b9d4..fd3c2c6b73c28 100644 --- a/src/plugins/kibana_react/.storybook/manager.ts +++ b/src/platform/plugins/shared/kibana_react/.storybook/manager.ts @@ -15,7 +15,7 @@ addons.setConfig({ theme: create({ base: 'light', brandTitle: 'Kibana React Storybook', - brandUrl: 'https://github.com/elastic/kibana/tree/main/src/plugins/kibana_react', + brandUrl: 'https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_react', }), showPanel: true.valueOf, selectedPanel: PANEL_ID, diff --git a/src/plugins/kibana_react/README.md b/src/platform/plugins/shared/kibana_react/README.md similarity index 100% rename from src/plugins/kibana_react/README.md rename to src/platform/plugins/shared/kibana_react/README.md diff --git a/src/plugins/kibana_react/common/eui_styled_components.tsx b/src/platform/plugins/shared/kibana_react/common/eui_styled_components.tsx similarity index 100% rename from src/plugins/kibana_react/common/eui_styled_components.tsx rename to src/platform/plugins/shared/kibana_react/common/eui_styled_components.tsx diff --git a/src/plugins/kibana_react/common/index.ts b/src/platform/plugins/shared/kibana_react/common/index.ts similarity index 100% rename from src/plugins/kibana_react/common/index.ts rename to src/platform/plugins/shared/kibana_react/common/index.ts diff --git a/src/plugins/kibana_react/jest.config.js b/src/platform/plugins/shared/kibana_react/jest.config.js similarity index 71% rename from src/plugins/kibana_react/jest.config.js rename to src/platform/plugins/shared/kibana_react/jest.config.js index 5b93b0dc3b612..84ba6e298236e 100644 --- a/src/plugins/kibana_react/jest.config.js +++ b/src/platform/plugins/shared/kibana_react/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/kibana_react'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/kibana_react', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/kibana_react'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/kibana_react', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/kibana_react/{common,public}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/kibana_react/{common,public}/**/*.{ts,tsx}'], }; diff --git a/src/plugins/kibana_react/kibana.jsonc b/src/platform/plugins/shared/kibana_react/kibana.jsonc similarity index 100% rename from src/plugins/kibana_react/kibana.jsonc rename to src/platform/plugins/shared/kibana_react/kibana.jsonc diff --git a/src/plugins/kibana_react/public/assets/elastic_agent_card.svg b/src/platform/plugins/shared/kibana_react/public/assets/elastic_agent_card.svg similarity index 100% rename from src/plugins/kibana_react/public/assets/elastic_agent_card.svg rename to src/platform/plugins/shared/kibana_react/public/assets/elastic_agent_card.svg diff --git a/src/plugins/kibana_react/public/assets/illustration_cloud_migration.png b/src/platform/plugins/shared/kibana_react/public/assets/illustration_cloud_migration.png similarity index 100% rename from src/plugins/kibana_react/public/assets/illustration_cloud_migration.png rename to src/platform/plugins/shared/kibana_react/public/assets/illustration_cloud_migration.png diff --git a/src/plugins/kibana_react/public/assets/illustration_integrations_darkmode.svg b/src/platform/plugins/shared/kibana_react/public/assets/illustration_integrations_darkmode.svg similarity index 100% rename from src/plugins/kibana_react/public/assets/illustration_integrations_darkmode.svg rename to src/platform/plugins/shared/kibana_react/public/assets/illustration_integrations_darkmode.svg diff --git a/src/plugins/kibana_react/public/assets/illustration_integrations_lightmode.svg b/src/platform/plugins/shared/kibana_react/public/assets/illustration_integrations_lightmode.svg similarity index 100% rename from src/plugins/kibana_react/public/assets/illustration_integrations_lightmode.svg rename to src/platform/plugins/shared/kibana_react/public/assets/illustration_integrations_lightmode.svg diff --git a/src/plugins/kibana_react/public/assets/solutions_enterprise_search.svg b/src/platform/plugins/shared/kibana_react/public/assets/solutions_enterprise_search.svg similarity index 100% rename from src/plugins/kibana_react/public/assets/solutions_enterprise_search.svg rename to src/platform/plugins/shared/kibana_react/public/assets/solutions_enterprise_search.svg diff --git a/src/plugins/kibana_react/public/assets/solutions_kibana.svg b/src/platform/plugins/shared/kibana_react/public/assets/solutions_kibana.svg similarity index 100% rename from src/plugins/kibana_react/public/assets/solutions_kibana.svg rename to src/platform/plugins/shared/kibana_react/public/assets/solutions_kibana.svg diff --git a/src/plugins/kibana_react/public/assets/solutions_observability.svg b/src/platform/plugins/shared/kibana_react/public/assets/solutions_observability.svg similarity index 100% rename from src/plugins/kibana_react/public/assets/solutions_observability.svg rename to src/platform/plugins/shared/kibana_react/public/assets/solutions_observability.svg diff --git a/src/plugins/kibana_react/public/assets/solutions_security_solution.svg b/src/platform/plugins/shared/kibana_react/public/assets/solutions_security_solution.svg similarity index 100% rename from src/plugins/kibana_react/public/assets/solutions_security_solution.svg rename to src/platform/plugins/shared/kibana_react/public/assets/solutions_security_solution.svg diff --git a/src/plugins/kibana_react/public/assets/texture.svg b/src/platform/plugins/shared/kibana_react/public/assets/texture.svg similarity index 100% rename from src/plugins/kibana_react/public/assets/texture.svg rename to src/platform/plugins/shared/kibana_react/public/assets/texture.svg diff --git a/src/plugins/kibana_react/public/context/context.test.tsx b/src/platform/plugins/shared/kibana_react/public/context/context.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/context/context.test.tsx rename to src/platform/plugins/shared/kibana_react/public/context/context.test.tsx diff --git a/src/plugins/kibana_react/public/context/context.tsx b/src/platform/plugins/shared/kibana_react/public/context/context.tsx similarity index 100% rename from src/plugins/kibana_react/public/context/context.tsx rename to src/platform/plugins/shared/kibana_react/public/context/context.tsx diff --git a/src/plugins/kibana_react/public/context/index.ts b/src/platform/plugins/shared/kibana_react/public/context/index.ts similarity index 100% rename from src/plugins/kibana_react/public/context/index.ts rename to src/platform/plugins/shared/kibana_react/public/context/index.ts diff --git a/src/plugins/kibana_react/public/context/types.ts b/src/platform/plugins/shared/kibana_react/public/context/types.ts similarity index 100% rename from src/plugins/kibana_react/public/context/types.ts rename to src/platform/plugins/shared/kibana_react/public/context/types.ts diff --git a/src/plugins/kibana_react/public/dark_mode/index.ts b/src/platform/plugins/shared/kibana_react/public/dark_mode/index.ts similarity index 100% rename from src/plugins/kibana_react/public/dark_mode/index.ts rename to src/platform/plugins/shared/kibana_react/public/dark_mode/index.ts diff --git a/src/plugins/kibana_react/public/dark_mode/use_dark_mode.test.tsx b/src/platform/plugins/shared/kibana_react/public/dark_mode/use_dark_mode.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/dark_mode/use_dark_mode.test.tsx rename to src/platform/plugins/shared/kibana_react/public/dark_mode/use_dark_mode.test.tsx diff --git a/src/plugins/kibana_react/public/dark_mode/use_dark_mode.ts b/src/platform/plugins/shared/kibana_react/public/dark_mode/use_dark_mode.ts similarity index 100% rename from src/plugins/kibana_react/public/dark_mode/use_dark_mode.ts rename to src/platform/plugins/shared/kibana_react/public/dark_mode/use_dark_mode.ts diff --git a/src/plugins/kibana_react/public/index.ts b/src/platform/plugins/shared/kibana_react/public/index.ts similarity index 100% rename from src/plugins/kibana_react/public/index.ts rename to src/platform/plugins/shared/kibana_react/public/index.ts diff --git a/src/plugins/kibana_react/public/markdown/__snapshots__/markdown.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/markdown/__snapshots__/markdown.test.tsx.snap similarity index 100% rename from src/plugins/kibana_react/public/markdown/__snapshots__/markdown.test.tsx.snap rename to src/platform/plugins/shared/kibana_react/public/markdown/__snapshots__/markdown.test.tsx.snap diff --git a/src/plugins/kibana_react/public/markdown/_markdown.scss b/src/platform/plugins/shared/kibana_react/public/markdown/_markdown.scss similarity index 100% rename from src/plugins/kibana_react/public/markdown/_markdown.scss rename to src/platform/plugins/shared/kibana_react/public/markdown/_markdown.scss diff --git a/src/plugins/kibana_react/public/markdown/index.scss b/src/platform/plugins/shared/kibana_react/public/markdown/index.scss similarity index 100% rename from src/plugins/kibana_react/public/markdown/index.scss rename to src/platform/plugins/shared/kibana_react/public/markdown/index.scss diff --git a/src/plugins/kibana_react/public/markdown/index.tsx b/src/platform/plugins/shared/kibana_react/public/markdown/index.tsx similarity index 100% rename from src/plugins/kibana_react/public/markdown/index.tsx rename to src/platform/plugins/shared/kibana_react/public/markdown/index.tsx diff --git a/src/plugins/kibana_react/public/markdown/markdown.test.tsx b/src/platform/plugins/shared/kibana_react/public/markdown/markdown.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/markdown/markdown.test.tsx rename to src/platform/plugins/shared/kibana_react/public/markdown/markdown.test.tsx diff --git a/src/plugins/kibana_react/public/markdown/markdown.tsx b/src/platform/plugins/shared/kibana_react/public/markdown/markdown.tsx similarity index 100% rename from src/plugins/kibana_react/public/markdown/markdown.tsx rename to src/platform/plugins/shared/kibana_react/public/markdown/markdown.tsx diff --git a/src/plugins/kibana_react/public/markdown/markdown_simple.tsx b/src/platform/plugins/shared/kibana_react/public/markdown/markdown_simple.tsx similarity index 100% rename from src/plugins/kibana_react/public/markdown/markdown_simple.tsx rename to src/platform/plugins/shared/kibana_react/public/markdown/markdown_simple.tsx diff --git a/src/plugins/kibana_react/public/notifications/create_notifications.test.tsx b/src/platform/plugins/shared/kibana_react/public/notifications/create_notifications.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/notifications/create_notifications.test.tsx rename to src/platform/plugins/shared/kibana_react/public/notifications/create_notifications.test.tsx diff --git a/src/plugins/kibana_react/public/notifications/create_notifications.tsx b/src/platform/plugins/shared/kibana_react/public/notifications/create_notifications.tsx similarity index 100% rename from src/plugins/kibana_react/public/notifications/create_notifications.tsx rename to src/platform/plugins/shared/kibana_react/public/notifications/create_notifications.tsx diff --git a/src/plugins/kibana_react/public/notifications/index.tsx b/src/platform/plugins/shared/kibana_react/public/notifications/index.tsx similarity index 100% rename from src/plugins/kibana_react/public/notifications/index.tsx rename to src/platform/plugins/shared/kibana_react/public/notifications/index.tsx diff --git a/src/plugins/kibana_react/public/notifications/types.ts b/src/platform/plugins/shared/kibana_react/public/notifications/types.ts similarity index 100% rename from src/plugins/kibana_react/public/notifications/types.ts rename to src/platform/plugins/shared/kibana_react/public/notifications/types.ts diff --git a/src/plugins/kibana_react/public/overlays/create_react_overlays.test.tsx b/src/platform/plugins/shared/kibana_react/public/overlays/create_react_overlays.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/overlays/create_react_overlays.test.tsx rename to src/platform/plugins/shared/kibana_react/public/overlays/create_react_overlays.test.tsx diff --git a/src/plugins/kibana_react/public/overlays/create_react_overlays.tsx b/src/platform/plugins/shared/kibana_react/public/overlays/create_react_overlays.tsx similarity index 100% rename from src/plugins/kibana_react/public/overlays/create_react_overlays.tsx rename to src/platform/plugins/shared/kibana_react/public/overlays/create_react_overlays.tsx diff --git a/src/plugins/kibana_react/public/overlays/index.tsx b/src/platform/plugins/shared/kibana_react/public/overlays/index.tsx similarity index 100% rename from src/plugins/kibana_react/public/overlays/index.tsx rename to src/platform/plugins/shared/kibana_react/public/overlays/index.tsx diff --git a/src/plugins/kibana_react/public/overlays/types.ts b/src/platform/plugins/shared/kibana_react/public/overlays/types.ts similarity index 100% rename from src/plugins/kibana_react/public/overlays/types.ts rename to src/platform/plugins/shared/kibana_react/public/overlays/types.ts diff --git a/src/plugins/kibana_react/public/overview_page/index.ts b/src/platform/plugins/shared/kibana_react/public/overview_page/index.ts similarity index 100% rename from src/plugins/kibana_react/public/overview_page/index.ts rename to src/platform/plugins/shared/kibana_react/public/overview_page/index.ts diff --git a/src/plugins/kibana_react/public/overview_page/overview_page_actions/__snapshots__/overview_page_actions.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_actions/__snapshots__/overview_page_actions.test.tsx.snap similarity index 100% rename from src/plugins/kibana_react/public/overview_page/overview_page_actions/__snapshots__/overview_page_actions.test.tsx.snap rename to src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_actions/__snapshots__/overview_page_actions.test.tsx.snap diff --git a/src/plugins/kibana_react/public/overview_page/overview_page_actions/index.ts b/src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_actions/index.ts similarity index 100% rename from src/plugins/kibana_react/public/overview_page/overview_page_actions/index.ts rename to src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_actions/index.ts diff --git a/src/plugins/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.test.tsx b/src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.test.tsx rename to src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.test.tsx diff --git a/src/plugins/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.tsx b/src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.tsx similarity index 100% rename from src/plugins/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.tsx rename to src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_actions/overview_page_actions.tsx diff --git a/src/plugins/kibana_react/public/overview_page/overview_page_footer/__snapshots__/overview_page_footer.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_footer/__snapshots__/overview_page_footer.test.tsx.snap similarity index 100% rename from src/plugins/kibana_react/public/overview_page/overview_page_footer/__snapshots__/overview_page_footer.test.tsx.snap rename to src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_footer/__snapshots__/overview_page_footer.test.tsx.snap diff --git a/src/plugins/kibana_react/public/overview_page/overview_page_footer/index.ts b/src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_footer/index.ts similarity index 100% rename from src/plugins/kibana_react/public/overview_page/overview_page_footer/index.ts rename to src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_footer/index.ts diff --git a/src/plugins/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.test.tsx b/src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.test.tsx rename to src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.test.tsx diff --git a/src/plugins/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.tsx b/src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.tsx similarity index 100% rename from src/plugins/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.tsx rename to src/platform/plugins/shared/kibana_react/public/overview_page/overview_page_footer/overview_page_footer.tsx diff --git a/src/plugins/kibana_react/public/page_template/index.ts b/src/platform/plugins/shared/kibana_react/public/page_template/index.ts similarity index 100% rename from src/plugins/kibana_react/public/page_template/index.ts rename to src/platform/plugins/shared/kibana_react/public/page_template/index.ts diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/__snapshots__/no_data_page.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/__snapshots__/no_data_page.test.tsx.snap similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/__snapshots__/no_data_page.test.tsx.snap rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/__snapshots__/no_data_page.test.tsx.snap diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/action_cards/action_cards.scss b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/action_cards/action_cards.scss similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/action_cards/action_cards.scss rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/action_cards/action_cards.scss diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/action_cards/action_cards.test.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/action_cards/action_cards.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/action_cards/action_cards.test.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/action_cards/action_cards.test.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/action_cards/action_cards.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/action_cards/action_cards.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/action_cards/action_cards.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/action_cards/action_cards.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/action_cards/index.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/action_cards/index.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/action_cards/index.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/action_cards/index.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/index.ts b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/index.ts similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/index.ts rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/index.ts diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/elastic_agent_card.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/elastic_agent_card.test.tsx.snap similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/elastic_agent_card.test.tsx.snap rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/elastic_agent_card.test.tsx.snap diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.test.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.test.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.test.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/elastic_agent_card.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/index.ts b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/index.ts similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/index.ts rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/index.ts diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.test.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.test.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.test.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_card/no_data_card.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_page.test.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_page.test.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page.test.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_page.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_page.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_page_body/__snapshots__/no_data_page_body.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page_body/__snapshots__/no_data_page_body.test.tsx.snap similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_page_body/__snapshots__/no_data_page_body.test.tsx.snap rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page_body/__snapshots__/no_data_page_body.test.tsx.snap diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_page_body/index.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page_body/index.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_page_body/index.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page_body/index.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.test.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.test.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.test.tsx diff --git a/src/plugins/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/no_data_page/no_data_page_body/no_data_page_body.tsx diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav.test.tsx.snap similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav.test.tsx.snap rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav.test.tsx.snap diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav_avatar.test.tsx.snap b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav_avatar.test.tsx.snap similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav_avatar.test.tsx.snap rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/__snapshots__/solution_nav_avatar.test.tsx.snap diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/index.ts b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/index.ts similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/index.ts rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/index.ts diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/solution_nav.scss b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.scss similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/solution_nav.scss rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.scss diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/solution_nav.test.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/solution_nav.test.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.test.tsx diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/solution_nav.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/solution_nav.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav.tsx diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_avatar.scss b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.scss similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_avatar.scss rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.scss diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_avatar.test.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_avatar.test.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.test.tsx diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_avatar.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_avatar.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_avatar.tsx diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.scss b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.scss similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.scss rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.scss diff --git a/src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.tsx b/src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.tsx similarity index 100% rename from src/plugins/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.tsx rename to src/platform/plugins/shared/kibana_react/public/page_template/solution_nav/solution_nav_collapse_button.tsx diff --git a/src/plugins/kibana_react/public/page_template/util/index.ts b/src/platform/plugins/shared/kibana_react/public/page_template/util/index.ts similarity index 100% rename from src/plugins/kibana_react/public/page_template/util/index.ts rename to src/platform/plugins/shared/kibana_react/public/page_template/util/index.ts diff --git a/src/plugins/kibana_react/public/page_template/util/presentation.ts b/src/platform/plugins/shared/kibana_react/public/page_template/util/presentation.ts similarity index 100% rename from src/plugins/kibana_react/public/page_template/util/presentation.ts rename to src/platform/plugins/shared/kibana_react/public/page_template/util/presentation.ts diff --git a/src/plugins/kibana_react/public/react_router_navigate/index.ts b/src/platform/plugins/shared/kibana_react/public/react_router_navigate/index.ts similarity index 100% rename from src/plugins/kibana_react/public/react_router_navigate/index.ts rename to src/platform/plugins/shared/kibana_react/public/react_router_navigate/index.ts diff --git a/src/plugins/kibana_react/public/react_router_navigate/react_router_navigate.tsx b/src/platform/plugins/shared/kibana_react/public/react_router_navigate/react_router_navigate.tsx similarity index 100% rename from src/plugins/kibana_react/public/react_router_navigate/react_router_navigate.tsx rename to src/platform/plugins/shared/kibana_react/public/react_router_navigate/react_router_navigate.tsx diff --git a/src/plugins/kibana_react/public/theme.tsx b/src/platform/plugins/shared/kibana_react/public/theme.tsx similarity index 100% rename from src/plugins/kibana_react/public/theme.tsx rename to src/platform/plugins/shared/kibana_react/public/theme.tsx diff --git a/src/plugins/kibana_react/public/ui_settings/index.ts b/src/platform/plugins/shared/kibana_react/public/ui_settings/index.ts similarity index 100% rename from src/plugins/kibana_react/public/ui_settings/index.ts rename to src/platform/plugins/shared/kibana_react/public/ui_settings/index.ts diff --git a/src/plugins/kibana_react/public/ui_settings/use_ui_setting.test.tsx b/src/platform/plugins/shared/kibana_react/public/ui_settings/use_ui_setting.test.tsx similarity index 100% rename from src/plugins/kibana_react/public/ui_settings/use_ui_setting.test.tsx rename to src/platform/plugins/shared/kibana_react/public/ui_settings/use_ui_setting.test.tsx diff --git a/src/plugins/kibana_react/public/ui_settings/use_ui_setting.ts b/src/platform/plugins/shared/kibana_react/public/ui_settings/use_ui_setting.ts similarity index 100% rename from src/plugins/kibana_react/public/ui_settings/use_ui_setting.ts rename to src/platform/plugins/shared/kibana_react/public/ui_settings/use_ui_setting.ts diff --git a/src/plugins/kibana_react/public/url_template_editor/index.ts b/src/platform/plugins/shared/kibana_react/public/url_template_editor/index.ts similarity index 100% rename from src/plugins/kibana_react/public/url_template_editor/index.ts rename to src/platform/plugins/shared/kibana_react/public/url_template_editor/index.ts diff --git a/src/plugins/kibana_react/public/url_template_editor/styles.scss b/src/platform/plugins/shared/kibana_react/public/url_template_editor/styles.scss similarity index 100% rename from src/plugins/kibana_react/public/url_template_editor/styles.scss rename to src/platform/plugins/shared/kibana_react/public/url_template_editor/styles.scss diff --git a/src/plugins/kibana_react/public/url_template_editor/url_template_editor.stories.tsx b/src/platform/plugins/shared/kibana_react/public/url_template_editor/url_template_editor.stories.tsx similarity index 100% rename from src/plugins/kibana_react/public/url_template_editor/url_template_editor.stories.tsx rename to src/platform/plugins/shared/kibana_react/public/url_template_editor/url_template_editor.stories.tsx diff --git a/src/plugins/kibana_react/public/url_template_editor/url_template_editor.tsx b/src/platform/plugins/shared/kibana_react/public/url_template_editor/url_template_editor.tsx similarity index 100% rename from src/plugins/kibana_react/public/url_template_editor/url_template_editor.tsx rename to src/platform/plugins/shared/kibana_react/public/url_template_editor/url_template_editor.tsx diff --git a/src/plugins/kibana_react/public/use_execution_context/index.ts b/src/platform/plugins/shared/kibana_react/public/use_execution_context/index.ts similarity index 100% rename from src/plugins/kibana_react/public/use_execution_context/index.ts rename to src/platform/plugins/shared/kibana_react/public/use_execution_context/index.ts diff --git a/src/plugins/kibana_react/public/use_execution_context/use_execution_context.ts b/src/platform/plugins/shared/kibana_react/public/use_execution_context/use_execution_context.ts similarity index 100% rename from src/plugins/kibana_react/public/use_execution_context/use_execution_context.ts rename to src/platform/plugins/shared/kibana_react/public/use_execution_context/use_execution_context.ts diff --git a/src/plugins/kibana_react/public/util/index.tsx b/src/platform/plugins/shared/kibana_react/public/util/index.tsx similarity index 100% rename from src/plugins/kibana_react/public/util/index.tsx rename to src/platform/plugins/shared/kibana_react/public/util/index.tsx diff --git a/src/plugins/kibana_react/public/validated_range/index.ts b/src/platform/plugins/shared/kibana_react/public/validated_range/index.ts similarity index 100% rename from src/plugins/kibana_react/public/validated_range/index.ts rename to src/platform/plugins/shared/kibana_react/public/validated_range/index.ts diff --git a/src/plugins/kibana_react/public/validated_range/is_range_valid.test.ts b/src/platform/plugins/shared/kibana_react/public/validated_range/is_range_valid.test.ts similarity index 100% rename from src/plugins/kibana_react/public/validated_range/is_range_valid.test.ts rename to src/platform/plugins/shared/kibana_react/public/validated_range/is_range_valid.test.ts diff --git a/src/plugins/kibana_react/public/validated_range/is_range_valid.ts b/src/platform/plugins/shared/kibana_react/public/validated_range/is_range_valid.ts similarity index 100% rename from src/plugins/kibana_react/public/validated_range/is_range_valid.ts rename to src/platform/plugins/shared/kibana_react/public/validated_range/is_range_valid.ts diff --git a/src/plugins/kibana_react/public/validated_range/validated_dual_range.tsx b/src/platform/plugins/shared/kibana_react/public/validated_range/validated_dual_range.tsx similarity index 100% rename from src/plugins/kibana_react/public/validated_range/validated_dual_range.tsx rename to src/platform/plugins/shared/kibana_react/public/validated_range/validated_dual_range.tsx diff --git a/src/plugins/kibana_react/tsconfig.json b/src/platform/plugins/shared/kibana_react/tsconfig.json similarity index 89% rename from src/plugins/kibana_react/tsconfig.json rename to src/platform/plugins/shared/kibana_react/tsconfig.json index 2394c7bfe5250..16a047bd250ee 100644 --- a/src/plugins/kibana_react/tsconfig.json +++ b/src/platform/plugins/shared/kibana_react/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -7,7 +7,7 @@ ".storybook/**/*", "common/**/*", "public/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/storybook", diff --git a/tsconfig.base.json b/tsconfig.base.json index 6d5a73b71ec61..f6e5f20c98455 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1126,8 +1126,8 @@ "@kbn/kibana-manifest-schema/*": ["packages/kbn-kibana-manifest-schema/*"], "@kbn/kibana-overview-plugin": ["src/platform/plugins/private/kibana_overview"], "@kbn/kibana-overview-plugin/*": ["src/platform/plugins/private/kibana_overview/*"], - "@kbn/kibana-react-plugin": ["src/plugins/kibana_react"], - "@kbn/kibana-react-plugin/*": ["src/plugins/kibana_react/*"], + "@kbn/kibana-react-plugin": ["src/platform/plugins/shared/kibana_react"], + "@kbn/kibana-react-plugin/*": ["src/platform/plugins/shared/kibana_react/*"], "@kbn/kibana-usage-collection-plugin": ["src/plugins/kibana_usage_collection"], "@kbn/kibana-usage-collection-plugin/*": ["src/plugins/kibana_usage_collection/*"], "@kbn/kibana-utils-plugin": ["src/plugins/kibana_utils"], diff --git a/x-pack/platform/plugins/private/runtime_fields/README.md b/x-pack/platform/plugins/private/runtime_fields/README.md index c4e657fdb3b44..d2a041bc1cbbc 100644 --- a/x-pack/platform/plugins/private/runtime_fields/README.md +++ b/x-pack/platform/plugins/private/runtime_fields/README.md @@ -152,7 +152,7 @@ import React, { useRef } from 'react'; import { EuiButton } from '@elastic/eui'; import { OverlayRef } from 'src/core/public'; -import { createKibanaReactContext, toMountPoint } from '../../../../src/plugins/kibana_react/public'; +import { createKibanaReactContext, toMountPoint } from '../../../../src/platform/plugins/shared/kibana_react/public'; import { RuntimeFieldEditorFlyoutContent, RuntimeField } from '../runtime_fields/public'; const MyComponent = () => { diff --git a/x-pack/solutions/security/plugins/threat_intelligence/public/mocks/mock_kibana_ui_settings_service.ts b/x-pack/solutions/security/plugins/threat_intelligence/public/mocks/mock_kibana_ui_settings_service.ts index be6d3483ae0c0..e2c1785bd2aec 100644 --- a/x-pack/solutions/security/plugins/threat_intelligence/public/mocks/mock_kibana_ui_settings_service.ts +++ b/x-pack/solutions/security/plugins/threat_intelligence/public/mocks/mock_kibana_ui_settings_service.ts @@ -9,7 +9,7 @@ import { IUiSettingsClient } from '@kbn/core/public'; import { DEFAULT_DATE_FORMAT, DEFAULT_DATE_FORMAT_TZ } from '../constants/common'; /** - * Creates an object to pass to the uiSettings property when creating a KibanaReacrContext (see src/plugins/kibana_react/public/context/context.tsx). + * Creates an object to pass to the uiSettings property when creating a KibanaReacrContext (see src/platform/plugins/shared/kibana_react/public/context/context.tsx). * @param dateFormat defaults to '' * @param timezone defaults to 'UTC * @returns the object {@link IUiSettingsClient} diff --git a/yarn.lock b/yarn.lock index 7cc59880f4a3b..e0601e5d0dd34 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6069,7 +6069,7 @@ version "0.0.0" uid "" -"@kbn/kibana-react-plugin@link:src/plugins/kibana_react": +"@kbn/kibana-react-plugin@link:src/platform/plugins/shared/kibana_react": version "0.0.0" uid "" From 72c936e039c83f14a6a7ce6050d677d092b17394 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:13:09 +0100 Subject: [PATCH 13/43] Relocating module `@kbn/kibana-utils-plugin` --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 2 +- .eslintrc.js | 2 +- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/best-practices/index.asciidoc | 6 +++--- docs/developer/best-practices/navigation.asciidoc | 4 ++-- docs/developer/plugin-list.asciidoc | 2 +- examples/state_containers_examples/public/plugin.ts | 4 ++-- package.json | 2 +- .../plugins/shared}/kibana_utils/.eslintrc.json | 0 .../plugins/shared}/kibana_utils/README.md | 0 .../shared}/kibana_utils/common/abort_utils.test.ts | 0 .../plugins/shared}/kibana_utils/common/abort_utils.ts | 0 .../kibana_utils/common/calculate_object_hash.test.ts | 0 .../shared}/kibana_utils/common/calculate_object_hash.ts | 0 .../kibana_utils/common/create_getter_setter.test.ts | 0 .../shared}/kibana_utils/common/create_getter_setter.ts | 0 .../plugins/shared}/kibana_utils/common/defer.test.ts | 0 .../plugins/shared}/kibana_utils/common/defer.ts | 0 .../distinct_until_changed_with_initial_value.test.ts | 0 .../common/distinct_until_changed_with_initial_value.ts | 0 .../shared}/kibana_utils/common/errors/errors.test.ts | 0 .../plugins/shared}/kibana_utils/common/errors/errors.ts | 0 .../plugins/shared}/kibana_utils/common/errors/index.ts | 0 .../plugins/shared}/kibana_utils/common/errors/types.ts | 0 .../shared}/kibana_utils/common/field_wildcard.test.ts | 0 .../plugins/shared}/kibana_utils/common/field_wildcard.ts | 0 .../plugins/shared}/kibana_utils/common/index.ts | 0 .../plugins/shared}/kibana_utils/common/now.ts | 0 .../plugins/shared}/kibana_utils/common/of.test.ts | 0 .../plugins/shared}/kibana_utils/common/of.ts | 0 .../kibana_utils/common/persistable_state/index.ts | 0 .../merge_migration_function_map.test.ts | 0 .../persistable_state/merge_migration_function_map.ts | 0 .../common/persistable_state/migrate_to_latest.test.ts | 0 .../common/persistable_state/migrate_to_latest.ts | 0 .../kibana_utils/common/persistable_state/types.ts | 0 .../kibana_utils/common/state_containers/README.md | 2 +- .../state_containers/create_state_container.test.ts | 0 .../common/state_containers/create_state_container.ts | 0 .../create_state_container_react_helpers.test.tsx | 0 .../create_state_container_react_helpers.ts | 2 +- .../shared}/kibana_utils/common/state_containers/index.ts | 2 +- .../shared}/kibana_utils/common/state_containers/types.ts | 0 .../kibana_utils/common/state_management/encode_state.ts | 0 .../kibana_utils/common/state_management/format.test.ts | 0 .../kibana_utils/common/state_management/format.ts | 0 .../kibana_utils/common/state_management/parse.test.ts | 0 .../shared}/kibana_utils/common/state_management/parse.ts | 0 .../common/state_management/set_state_to_kbn_url.test.ts | 0 .../common/state_management/set_state_to_kbn_url.ts | 0 .../common/state_management/state_hash.test.ts | 0 .../kibana_utils/common/state_management/state_hash.ts | 0 .../kibana_utils/common/url/encode_uri_query.test.ts | 0 .../shared}/kibana_utils/common/url/encode_uri_query.ts | 0 .../plugins/shared}/kibana_utils/common/url/index.ts | 0 .../plugins/shared}/kibana_utils/demos/demos.test.ts | 0 .../kibana_utils/demos/state_containers/counter.ts | 0 .../kibana_utils/demos/state_containers/todomvc.ts | 0 .../plugins/shared}/kibana_utils/demos/state_sync/url.ts | 0 .../shared}/kibana_utils/docs/state_containers/README.md | 6 +++--- .../kibana_utils/docs/state_containers/creation.md | 2 +- .../kibana_utils/docs/state_containers/no_react.md | 0 .../shared}/kibana_utils/docs/state_containers/react.md | 2 +- .../kibana_utils/docs/state_containers/react/connect.md | 0 .../kibana_utils/docs/state_containers/react/context.md | 0 .../docs/state_containers/react/use_container.md | 0 .../docs/state_containers/react/use_selector.md | 0 .../kibana_utils/docs/state_containers/react/use_state.md | 0 .../docs/state_containers/react/use_transitions.md | 0 .../shared}/kibana_utils/docs/state_containers/redux.md | 0 .../kibana_utils/docs/state_containers/transitions.md | 2 +- .../shared}/kibana_utils/docs/state_sync/README.md | 4 ++-- .../kibana_utils/docs/state_sync/data_plugin_helpers.md | 0 .../docs/state_sync/empty_or_incomplete_incoming_state.md | 0 .../kibana_utils/docs/state_sync/error_handling.md | 0 .../shared}/kibana_utils/docs/state_sync/initial_state.md | 0 .../kibana_utils/docs/state_sync/no_state_containers.md | 2 +- .../docs/state_sync/on_fly_state_migrations.md | 0 .../kibana_utils/docs/state_sync/storages/README.md | 0 .../docs/state_sync/storages/kbn_url_storage.md | 2 +- .../docs/state_sync/storages/session_storage.md | 2 +- .../shared}/kibana_utils/docs/state_sync/sync_states.md | 2 +- .../plugins/shared}/kibana_utils/jest.config.js | 8 ++++---- .../plugins/shared}/kibana_utils/kibana.jsonc | 0 .../public/core/create_start_service_getter.test.ts | 0 .../public/core/create_start_service_getter.ts | 0 .../plugins/shared}/kibana_utils/public/core/index.ts | 0 .../kibana_utils/public/history/get_query_params.test.ts | 0 .../kibana_utils/public/history/get_query_params.ts | 0 .../public/history/history_observable.test.ts | 0 .../kibana_utils/public/history/history_observable.ts | 0 .../plugins/shared}/kibana_utils/public/history/index.ts | 0 .../kibana_utils/public/history/redirect_when_missing.tsx | 0 .../public/history/remove_query_param.test.ts | 0 .../kibana_utils/public/history/remove_query_param.ts | 0 .../plugins/shared}/kibana_utils/public/index.test.ts | 0 .../plugins/shared}/kibana_utils/public/index.ts | 0 .../plugins/shared}/kibana_utils/public/mocks.ts | 0 .../plugins/shared}/kibana_utils/public/plugin.ts | 0 .../shared}/kibana_utils/public/render_complete/index.ts | 0 .../public/render_complete/render_complete_dispatcher.ts | 0 .../public/render_complete/render_complete_listener.ts | 0 .../shared}/kibana_utils/public/resize_checker/index.ts | 0 .../public/resize_checker/resize_checker.test.ts | 0 .../kibana_utils/public/resize_checker/resize_checker.ts | 0 .../state_management/state_encoder/encode_decode_state.ts | 0 .../public/state_management/state_encoder/index.ts | 0 .../public/state_management/state_hash/index.ts | 0 .../public/state_management/state_hash/state_hash.ts | 0 .../public/state_management/url/errors.test.ts | 0 .../kibana_utils/public/state_management/url/errors.ts | 0 .../public/state_management/url/hash_unhash_url.test.ts | 0 .../public/state_management/url/hash_unhash_url.ts | 0 .../kibana_utils/public/state_management/url/index.ts | 0 .../public/state_management/url/kbn_url_storage.test.ts | 0 .../public/state_management/url/kbn_url_storage.ts | 0 .../public/state_management/url/kbn_url_tracker.test.ts | 0 .../public/state_management/url/kbn_url_tracker.ts | 0 .../public/state_management/url/url_tracker.test.ts | 0 .../public/state_management/url/url_tracker.ts | 0 .../public/state_management/utils/diff_object.test.ts | 0 .../public/state_management/utils/diff_object.ts | 0 .../shared/kibana_utils/public/state_sync/README.md | 3 +++ .../shared}/kibana_utils/public/state_sync/index.ts | 4 ++-- .../kibana_utils/public/state_sync/state_sync.test.ts | 0 .../shared}/kibana_utils/public/state_sync/state_sync.ts | 2 +- .../create_kbn_url_state_storage.test.ts | 0 .../create_kbn_url_state_storage.ts | 2 +- .../create_session_storage_state_storage.test.ts | 0 .../create_session_storage_state_storage.ts | 4 ++-- .../public/state_sync/state_sync_state_storage/index.ts | 0 .../public/state_sync/state_sync_state_storage/types.ts | 0 .../shared}/kibana_utils/public/state_sync/types.ts | 0 .../storage/hashed_item_store/hashed_item_store.test.ts | 0 .../public/storage/hashed_item_store/hashed_item_store.ts | 0 .../public/storage/hashed_item_store/index.ts | 0 .../kibana_utils/public/storage/hashed_item_store/mock.ts | 0 .../plugins/shared}/kibana_utils/public/storage/index.ts | 0 .../shared}/kibana_utils/public/storage/storage.test.ts | 0 .../shared}/kibana_utils/public/storage/storage.ts | 0 .../plugins/shared}/kibana_utils/public/storage/types.ts | 0 .../plugins/shared}/kibana_utils/public/theme/index.ts | 0 .../public/theme/kibana_theme_provider.test.tsx | 0 .../kibana_utils/public/theme/kibana_theme_provider.tsx | 0 .../shared}/kibana_utils/public/ui/configurable.ts | 0 .../plugins/shared}/kibana_utils/public/ui/index.ts | 0 .../plugins/shared}/kibana_utils/server/index.ts | 0 .../shared}/kibana_utils/server/report_server_error.ts | 0 .../plugins/shared}/kibana_utils/tsconfig.json | 4 ++-- src/plugins/kibana_utils/public/state_sync/README.md | 3 --- .../public/drilldowns/drilldown_definition.ts | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 154 files changed, 47 insertions(+), 47 deletions(-) rename src/{plugins => platform/plugins/shared}/kibana_utils/.eslintrc.json (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/README.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/abort_utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/abort_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/calculate_object_hash.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/calculate_object_hash.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/create_getter_setter.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/create_getter_setter.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/defer.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/defer.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/distinct_until_changed_with_initial_value.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/distinct_until_changed_with_initial_value.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/errors/errors.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/errors/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/errors/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/errors/types.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/field_wildcard.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/field_wildcard.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/now.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/of.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/of.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/persistable_state/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/persistable_state/merge_migration_function_map.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/persistable_state/merge_migration_function_map.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/persistable_state/migrate_to_latest.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/persistable_state/migrate_to_latest.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/persistable_state/types.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_containers/README.md (62%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_containers/create_state_container.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_containers/create_state_container.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_containers/create_state_container_react_helpers.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_containers/create_state_container_react_helpers.ts (97%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_containers/index.ts (93%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_containers/types.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_management/encode_state.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_management/format.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_management/format.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_management/parse.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_management/parse.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_management/set_state_to_kbn_url.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_management/set_state_to_kbn_url.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_management/state_hash.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/state_management/state_hash.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/url/encode_uri_query.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/url/encode_uri_query.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/common/url/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/demos/demos.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/demos/state_containers/counter.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/demos/state_containers/todomvc.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/demos/state_sync/url.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/README.md (85%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/creation.md (87%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/no_react.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/react.md (93%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/react/connect.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/react/context.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/react/use_container.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/react/use_selector.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/react/use_state.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/react/use_transitions.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/redux.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_containers/transitions.md (95%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/README.md (95%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/data_plugin_helpers.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/empty_or_incomplete_incoming_state.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/error_handling.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/initial_state.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/no_state_containers.md (92%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/on_fly_state_migrations.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/storages/README.md (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/storages/kbn_url_storage.md (99%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/storages/session_storage.md (94%) rename src/{plugins => platform/plugins/shared}/kibana_utils/docs/state_sync/sync_states.md (93%) rename src/{plugins => platform/plugins/shared}/kibana_utils/jest.config.js (73%) rename src/{plugins => platform/plugins/shared}/kibana_utils/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/core/create_start_service_getter.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/core/create_start_service_getter.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/core/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/history/get_query_params.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/history/get_query_params.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/history/history_observable.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/history/history_observable.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/history/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/history/redirect_when_missing.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/history/remove_query_param.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/history/remove_query_param.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/index.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/render_complete/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/render_complete/render_complete_dispatcher.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/render_complete/render_complete_listener.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/resize_checker/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/resize_checker/resize_checker.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/resize_checker/resize_checker.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/state_encoder/encode_decode_state.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/state_encoder/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/state_hash/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/state_hash/state_hash.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/errors.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/errors.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/hash_unhash_url.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/hash_unhash_url.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/kbn_url_storage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/kbn_url_storage.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/kbn_url_tracker.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/kbn_url_tracker.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/url_tracker.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/url/url_tracker.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/utils/diff_object.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_management/utils/diff_object.ts (100%) create mode 100644 src/platform/plugins/shared/kibana_utils/public/state_sync/README.md rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/index.ts (87%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/state_sync.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/state_sync.ts (97%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/state_sync_state_storage/create_kbn_url_state_storage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/state_sync_state_storage/create_kbn_url_state_storage.ts (95%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/state_sync_state_storage/create_session_storage_state_storage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/state_sync_state_storage/create_session_storage_state_storage.ts (81%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/state_sync_state_storage/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/state_sync_state_storage/types.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/state_sync/types.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/storage/hashed_item_store/hashed_item_store.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/storage/hashed_item_store/hashed_item_store.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/storage/hashed_item_store/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/storage/hashed_item_store/mock.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/storage/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/storage/storage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/storage/storage.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/storage/types.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/theme/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/theme/kibana_theme_provider.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/theme/kibana_theme_provider.tsx (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/ui/configurable.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/public/ui/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/server/report_server_error.ts (100%) rename src/{plugins => platform/plugins/shared}/kibana_utils/tsconfig.json (88%) delete mode 100644 src/plugins/kibana_utils/public/state_sync/README.md diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index a0d6b6e20947e..901013b924428 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -324,7 +324,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^src\/plugins\/field_formats/, /^src\/plugins\/inspector/, /^src\/platform\/plugins\/shared\/kibana_react/, - /^src\/plugins\/kibana_utils/, + /^src\/platform\/plugins\/shared\/kibana_utils/, /^src\/plugins\/saved_search/, /^src\/plugins\/ui_actions/, /^src\/plugins\/unified_histogram/, diff --git a/.eslintrc.js b/.eslintrc.js index f92fdb9da7f68..37970e41d7576 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -290,7 +290,7 @@ module.exports = { }, }, { - files: ['src/plugins/kibana_utils/**/*.{js,mjs,ts,tsx}'], + files: ['src/platform/plugins/shared/kibana_utils/**/*.{js,mjs,ts,tsx}'], rules: { 'react-hooks/exhaustive-deps': 'off', }, diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b235e6b43e9db..dca75b6849a6f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -624,6 +624,7 @@ src/platform/plugins/shared/files @elastic/appex-sharedux src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux src/platform/plugins/shared/home @elastic/appex-sharedux src/platform/plugins/shared/kibana_react @elastic/appex-sharedux +src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux @@ -662,7 +663,6 @@ src/plugins/input_control_vis @elastic/kibana-presentation src/plugins/inspector @elastic/kibana-presentation src/plugins/interactive_setup @elastic/kibana-security src/plugins/kibana_usage_collection @elastic/kibana-core -src/plugins/kibana_utils @elastic/appex-sharedux src/plugins/links @elastic/kibana-presentation src/plugins/maps_ems @elastic/kibana-presentation src/plugins/navigation @elastic/appex-sharedux diff --git a/.i18nrc.json b/.i18nrc.json index 1db90f17774b2..3bd1b13dd6a2e 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -84,7 +84,7 @@ "kbnConfig": "packages/kbn-config/src", "kbnDocViews": "src/legacy/core_plugins/kbn_doc_views", "kibana_react": "src/legacy/core_platform/plugins/shared/kibana_react", - "kibana_utils": "src/plugins/kibana_utils", + "kibana_utils": "src/platform/plugins/shared/kibana_utils", "kibana-react": "src/platform/plugins/shared/kibana_react", "kibanaOverview": "src/platform/plugins/private/kibana_overview", "lensFormulaDocs": "packages/kbn-lens-formula-docs", diff --git a/docs/developer/best-practices/index.asciidoc b/docs/developer/best-practices/index.asciidoc index b7f4f6d5c3ab5..a2386799b49e5 100644 --- a/docs/developer/best-practices/index.asciidoc +++ b/docs/developer/best-practices/index.asciidoc @@ -86,11 +86,11 @@ workpad, or rendered in another plugin. ** Let other plugins inject functionality into your application ** Inject custom functionality into other plugins * Stateless helper utilities -* {kib-repo}tree/{branch}/src/plugins/kibana_utils/docs/state_sync/README.md[state +* {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/docs/state_sync/README.md[state syncing] and -* {kib-repo}tree/{branch}/src/plugins/kibana_utils/docs/state_containers/README.md[state +* {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/docs/state_containers/README.md[state container] utilities provided by -* {kib-repo}tree/{branch}/src/plugins/kibana_utils/README.md[kibana_utils] +* {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/README.md[kibana_utils] if you want to sync your application state to the URL? ** {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_react/README.md[kibana_react] for react specific helpers diff --git a/docs/developer/best-practices/navigation.asciidoc b/docs/developer/best-practices/navigation.asciidoc index 6d6ebb38e558b..5982ee27e53e4 100644 --- a/docs/developer/best-practices/navigation.asciidoc +++ b/docs/developer/best-practices/navigation.asciidoc @@ -222,7 +222,7 @@ There are utils to help you to implement such kind of state syncing. * Adding a query param flag or simple key/value to the URL. -Follow {kib-repo}tree/{branch}/src/plugins/kibana_utils/docs/state_sync#state-syncing-utilities[these] docs to learn more. +Follow {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/docs/state_sync#state-syncing-utilities[these] docs to learn more. [[preserve-state]] @@ -246,7 +246,7 @@ you'd notice that state is stored inside that link, and it also gets updated whe image:images/state_inside_the_link.png[State is stored inside the navigation link] This is where <> into `_a` and `_g` query params comes into play. What is considered a *global* state gets constantly updated in those navigation links. In the example above it was a time filter. -This is backed by {kib-repo}tree/{branch}/src/plugins/kibana_utils/public/state_management/url/kbn_url_tracker.ts#L57[KbnUrlTracker] util. You can use it to achieve similar behavior. +This is backed by {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_tracker.ts#L57[KbnUrlTracker] util. You can use it to achieve similar behavior. NOTE: After migrating to KP navigation works without page reloads and all plugins are loaded simultaneously. Hence, likely there are simpler ways to preserve state of your application, unless you want to do it through URL. diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 185eed89d1cf2..5b422b9801112 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -250,7 +250,7 @@ in Kibana, e.g. visualizations. It has the form of a flyout panel. |This plugin registers the Platform Usage Collectors in Kibana. -|{kib-repo}blob/{branch}/src/plugins/kibana_utils/README.md[kibanaUtils] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/kibana_utils/README.md[kibanaUtils] |Utilities for building Kibana plugins. diff --git a/examples/state_containers_examples/public/plugin.ts b/examples/state_containers_examples/public/plugin.ts index 73dc804f1efd9..a5504a1ce077b 100644 --- a/examples/state_containers_examples/public/plugin.ts +++ b/examples/state_containers_examples/public/plugin.ts @@ -91,14 +91,14 @@ export class StateContainersExamplesPlugin implements Plugin { links: [ { label: 'State containers README', - href: 'https://github.com/elastic/kibana/tree/main/src/plugins/kibana_utils/docs/state_containers', + href: 'https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_utils/docs/state_containers', iconType: 'logoGithub', size: 's', target: '_blank', }, { label: 'State sync utils README', - href: 'https://github.com/elastic/kibana/tree/main/src/plugins/kibana_utils/docs/state_sync', + href: 'https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_utils/docs/state_sync', iconType: 'logoGithub', size: 's', target: '_blank', diff --git a/package.json b/package.json index 222a5f70f894a..1c9f78ec07ec7 100644 --- a/package.json +++ b/package.json @@ -606,7 +606,7 @@ "@kbn/kibana-overview-plugin": "link:src/platform/plugins/private/kibana_overview", "@kbn/kibana-react-plugin": "link:src/platform/plugins/shared/kibana_react", "@kbn/kibana-usage-collection-plugin": "link:src/plugins/kibana_usage_collection", - "@kbn/kibana-utils-plugin": "link:src/plugins/kibana_utils", + "@kbn/kibana-utils-plugin": "link:src/platform/plugins/shared/kibana_utils", "@kbn/kubernetes-security-plugin": "link:x-pack/solutions/security/plugins/kubernetes_security", "@kbn/langchain": "link:x-pack/platform/packages/shared/kbn-langchain", "@kbn/language-documentation": "link:src/platform/packages/private/kbn-language-documentation", diff --git a/src/plugins/kibana_utils/.eslintrc.json b/src/platform/plugins/shared/kibana_utils/.eslintrc.json similarity index 100% rename from src/plugins/kibana_utils/.eslintrc.json rename to src/platform/plugins/shared/kibana_utils/.eslintrc.json diff --git a/src/plugins/kibana_utils/README.md b/src/platform/plugins/shared/kibana_utils/README.md similarity index 100% rename from src/plugins/kibana_utils/README.md rename to src/platform/plugins/shared/kibana_utils/README.md diff --git a/src/plugins/kibana_utils/common/abort_utils.test.ts b/src/platform/plugins/shared/kibana_utils/common/abort_utils.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/abort_utils.test.ts rename to src/platform/plugins/shared/kibana_utils/common/abort_utils.test.ts diff --git a/src/plugins/kibana_utils/common/abort_utils.ts b/src/platform/plugins/shared/kibana_utils/common/abort_utils.ts similarity index 100% rename from src/plugins/kibana_utils/common/abort_utils.ts rename to src/platform/plugins/shared/kibana_utils/common/abort_utils.ts diff --git a/src/plugins/kibana_utils/common/calculate_object_hash.test.ts b/src/platform/plugins/shared/kibana_utils/common/calculate_object_hash.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/calculate_object_hash.test.ts rename to src/platform/plugins/shared/kibana_utils/common/calculate_object_hash.test.ts diff --git a/src/plugins/kibana_utils/common/calculate_object_hash.ts b/src/platform/plugins/shared/kibana_utils/common/calculate_object_hash.ts similarity index 100% rename from src/plugins/kibana_utils/common/calculate_object_hash.ts rename to src/platform/plugins/shared/kibana_utils/common/calculate_object_hash.ts diff --git a/src/plugins/kibana_utils/common/create_getter_setter.test.ts b/src/platform/plugins/shared/kibana_utils/common/create_getter_setter.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/create_getter_setter.test.ts rename to src/platform/plugins/shared/kibana_utils/common/create_getter_setter.test.ts diff --git a/src/plugins/kibana_utils/common/create_getter_setter.ts b/src/platform/plugins/shared/kibana_utils/common/create_getter_setter.ts similarity index 100% rename from src/plugins/kibana_utils/common/create_getter_setter.ts rename to src/platform/plugins/shared/kibana_utils/common/create_getter_setter.ts diff --git a/src/plugins/kibana_utils/common/defer.test.ts b/src/platform/plugins/shared/kibana_utils/common/defer.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/defer.test.ts rename to src/platform/plugins/shared/kibana_utils/common/defer.test.ts diff --git a/src/plugins/kibana_utils/common/defer.ts b/src/platform/plugins/shared/kibana_utils/common/defer.ts similarity index 100% rename from src/plugins/kibana_utils/common/defer.ts rename to src/platform/plugins/shared/kibana_utils/common/defer.ts diff --git a/src/plugins/kibana_utils/common/distinct_until_changed_with_initial_value.test.ts b/src/platform/plugins/shared/kibana_utils/common/distinct_until_changed_with_initial_value.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/distinct_until_changed_with_initial_value.test.ts rename to src/platform/plugins/shared/kibana_utils/common/distinct_until_changed_with_initial_value.test.ts diff --git a/src/plugins/kibana_utils/common/distinct_until_changed_with_initial_value.ts b/src/platform/plugins/shared/kibana_utils/common/distinct_until_changed_with_initial_value.ts similarity index 100% rename from src/plugins/kibana_utils/common/distinct_until_changed_with_initial_value.ts rename to src/platform/plugins/shared/kibana_utils/common/distinct_until_changed_with_initial_value.ts diff --git a/src/plugins/kibana_utils/common/errors/errors.test.ts b/src/platform/plugins/shared/kibana_utils/common/errors/errors.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/errors/errors.test.ts rename to src/platform/plugins/shared/kibana_utils/common/errors/errors.test.ts diff --git a/src/plugins/kibana_utils/common/errors/errors.ts b/src/platform/plugins/shared/kibana_utils/common/errors/errors.ts similarity index 100% rename from src/plugins/kibana_utils/common/errors/errors.ts rename to src/platform/plugins/shared/kibana_utils/common/errors/errors.ts diff --git a/src/plugins/kibana_utils/common/errors/index.ts b/src/platform/plugins/shared/kibana_utils/common/errors/index.ts similarity index 100% rename from src/plugins/kibana_utils/common/errors/index.ts rename to src/platform/plugins/shared/kibana_utils/common/errors/index.ts diff --git a/src/plugins/kibana_utils/common/errors/types.ts b/src/platform/plugins/shared/kibana_utils/common/errors/types.ts similarity index 100% rename from src/plugins/kibana_utils/common/errors/types.ts rename to src/platform/plugins/shared/kibana_utils/common/errors/types.ts diff --git a/src/plugins/kibana_utils/common/field_wildcard.test.ts b/src/platform/plugins/shared/kibana_utils/common/field_wildcard.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/field_wildcard.test.ts rename to src/platform/plugins/shared/kibana_utils/common/field_wildcard.test.ts diff --git a/src/plugins/kibana_utils/common/field_wildcard.ts b/src/platform/plugins/shared/kibana_utils/common/field_wildcard.ts similarity index 100% rename from src/plugins/kibana_utils/common/field_wildcard.ts rename to src/platform/plugins/shared/kibana_utils/common/field_wildcard.ts diff --git a/src/plugins/kibana_utils/common/index.ts b/src/platform/plugins/shared/kibana_utils/common/index.ts similarity index 100% rename from src/plugins/kibana_utils/common/index.ts rename to src/platform/plugins/shared/kibana_utils/common/index.ts diff --git a/src/plugins/kibana_utils/common/now.ts b/src/platform/plugins/shared/kibana_utils/common/now.ts similarity index 100% rename from src/plugins/kibana_utils/common/now.ts rename to src/platform/plugins/shared/kibana_utils/common/now.ts diff --git a/src/plugins/kibana_utils/common/of.test.ts b/src/platform/plugins/shared/kibana_utils/common/of.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/of.test.ts rename to src/platform/plugins/shared/kibana_utils/common/of.test.ts diff --git a/src/plugins/kibana_utils/common/of.ts b/src/platform/plugins/shared/kibana_utils/common/of.ts similarity index 100% rename from src/plugins/kibana_utils/common/of.ts rename to src/platform/plugins/shared/kibana_utils/common/of.ts diff --git a/src/plugins/kibana_utils/common/persistable_state/index.ts b/src/platform/plugins/shared/kibana_utils/common/persistable_state/index.ts similarity index 100% rename from src/plugins/kibana_utils/common/persistable_state/index.ts rename to src/platform/plugins/shared/kibana_utils/common/persistable_state/index.ts diff --git a/src/plugins/kibana_utils/common/persistable_state/merge_migration_function_map.test.ts b/src/platform/plugins/shared/kibana_utils/common/persistable_state/merge_migration_function_map.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/persistable_state/merge_migration_function_map.test.ts rename to src/platform/plugins/shared/kibana_utils/common/persistable_state/merge_migration_function_map.test.ts diff --git a/src/plugins/kibana_utils/common/persistable_state/merge_migration_function_map.ts b/src/platform/plugins/shared/kibana_utils/common/persistable_state/merge_migration_function_map.ts similarity index 100% rename from src/plugins/kibana_utils/common/persistable_state/merge_migration_function_map.ts rename to src/platform/plugins/shared/kibana_utils/common/persistable_state/merge_migration_function_map.ts diff --git a/src/plugins/kibana_utils/common/persistable_state/migrate_to_latest.test.ts b/src/platform/plugins/shared/kibana_utils/common/persistable_state/migrate_to_latest.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/persistable_state/migrate_to_latest.test.ts rename to src/platform/plugins/shared/kibana_utils/common/persistable_state/migrate_to_latest.test.ts diff --git a/src/plugins/kibana_utils/common/persistable_state/migrate_to_latest.ts b/src/platform/plugins/shared/kibana_utils/common/persistable_state/migrate_to_latest.ts similarity index 100% rename from src/plugins/kibana_utils/common/persistable_state/migrate_to_latest.ts rename to src/platform/plugins/shared/kibana_utils/common/persistable_state/migrate_to_latest.ts diff --git a/src/plugins/kibana_utils/common/persistable_state/types.ts b/src/platform/plugins/shared/kibana_utils/common/persistable_state/types.ts similarity index 100% rename from src/plugins/kibana_utils/common/persistable_state/types.ts rename to src/platform/plugins/shared/kibana_utils/common/persistable_state/types.ts diff --git a/src/plugins/kibana_utils/common/state_containers/README.md b/src/platform/plugins/shared/kibana_utils/common/state_containers/README.md similarity index 62% rename from src/plugins/kibana_utils/common/state_containers/README.md rename to src/platform/plugins/shared/kibana_utils/common/state_containers/README.md index 1e9f60e41c729..4a6bab9c3d075 100644 --- a/src/plugins/kibana_utils/common/state_containers/README.md +++ b/src/platform/plugins/shared/kibana_utils/common/state_containers/README.md @@ -1,2 +1,2 @@ * [docs](../../docs/state_containers) -* [api reference](https://github.com/elastic/kibana/tree/main/src/plugins/kibana_utils/docs/state_containers) \ No newline at end of file +* [api reference](https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_utils/docs/state_containers) \ No newline at end of file diff --git a/src/plugins/kibana_utils/common/state_containers/create_state_container.test.ts b/src/platform/plugins/shared/kibana_utils/common/state_containers/create_state_container.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_containers/create_state_container.test.ts rename to src/platform/plugins/shared/kibana_utils/common/state_containers/create_state_container.test.ts diff --git a/src/plugins/kibana_utils/common/state_containers/create_state_container.ts b/src/platform/plugins/shared/kibana_utils/common/state_containers/create_state_container.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_containers/create_state_container.ts rename to src/platform/plugins/shared/kibana_utils/common/state_containers/create_state_container.ts diff --git a/src/plugins/kibana_utils/common/state_containers/create_state_container_react_helpers.test.tsx b/src/platform/plugins/shared/kibana_utils/common/state_containers/create_state_container_react_helpers.test.tsx similarity index 100% rename from src/plugins/kibana_utils/common/state_containers/create_state_container_react_helpers.test.tsx rename to src/platform/plugins/shared/kibana_utils/common/state_containers/create_state_container_react_helpers.test.tsx diff --git a/src/plugins/kibana_utils/common/state_containers/create_state_container_react_helpers.ts b/src/platform/plugins/shared/kibana_utils/common/state_containers/create_state_container_react_helpers.ts similarity index 97% rename from src/plugins/kibana_utils/common/state_containers/create_state_container_react_helpers.ts rename to src/platform/plugins/shared/kibana_utils/common/state_containers/create_state_container_react_helpers.ts index 28043e481e347..6f844db7cb872 100644 --- a/src/plugins/kibana_utils/common/state_containers/create_state_container_react_helpers.ts +++ b/src/platform/plugins/shared/kibana_utils/common/state_containers/create_state_container_react_helpers.ts @@ -64,7 +64,7 @@ export const useContainerSelector = , /** * Creates helpers for using {@link StateContainer | State Containers} with react - * Refer to {@link https://github.com/elastic/kibana/blob/main/src/plugins/kibana_utils/docs/state_containers/react.md | guide} for details + * Refer to {@link https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/kibana_utils/docs/state_containers/react.md | guide} for details * @public */ export const createStateContainerReactHelpers = >() => { diff --git a/src/plugins/kibana_utils/common/state_containers/index.ts b/src/platform/plugins/shared/kibana_utils/common/state_containers/index.ts similarity index 93% rename from src/plugins/kibana_utils/common/state_containers/index.ts rename to src/platform/plugins/shared/kibana_utils/common/state_containers/index.ts index 68a8597d2a8b6..bd14eb47fb010 100644 --- a/src/plugins/kibana_utils/common/state_containers/index.ts +++ b/src/platform/plugins/shared/kibana_utils/common/state_containers/index.ts @@ -9,7 +9,7 @@ /** * State containers are Redux-store-like objects meant to help you manage state in your services or apps. - * Refer to {@link https://github.com/elastic/kibana/tree/main/src/plugins/kibana_utils/docs/state_containers | guides and examples} for more info + * Refer to {@link https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_utils/docs/state_containers | guides and examples} for more info * * @packageDocumentation */ diff --git a/src/plugins/kibana_utils/common/state_containers/types.ts b/src/platform/plugins/shared/kibana_utils/common/state_containers/types.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_containers/types.ts rename to src/platform/plugins/shared/kibana_utils/common/state_containers/types.ts diff --git a/src/plugins/kibana_utils/common/state_management/encode_state.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/encode_state.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_management/encode_state.ts rename to src/platform/plugins/shared/kibana_utils/common/state_management/encode_state.ts diff --git a/src/plugins/kibana_utils/common/state_management/format.test.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/format.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_management/format.test.ts rename to src/platform/plugins/shared/kibana_utils/common/state_management/format.test.ts diff --git a/src/plugins/kibana_utils/common/state_management/format.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/format.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_management/format.ts rename to src/platform/plugins/shared/kibana_utils/common/state_management/format.ts diff --git a/src/plugins/kibana_utils/common/state_management/parse.test.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/parse.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_management/parse.test.ts rename to src/platform/plugins/shared/kibana_utils/common/state_management/parse.test.ts diff --git a/src/plugins/kibana_utils/common/state_management/parse.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/parse.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_management/parse.ts rename to src/platform/plugins/shared/kibana_utils/common/state_management/parse.ts diff --git a/src/plugins/kibana_utils/common/state_management/set_state_to_kbn_url.test.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_management/set_state_to_kbn_url.test.ts rename to src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.test.ts diff --git a/src/plugins/kibana_utils/common/state_management/set_state_to_kbn_url.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_management/set_state_to_kbn_url.ts rename to src/platform/plugins/shared/kibana_utils/common/state_management/set_state_to_kbn_url.ts diff --git a/src/plugins/kibana_utils/common/state_management/state_hash.test.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/state_hash.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_management/state_hash.test.ts rename to src/platform/plugins/shared/kibana_utils/common/state_management/state_hash.test.ts diff --git a/src/plugins/kibana_utils/common/state_management/state_hash.ts b/src/platform/plugins/shared/kibana_utils/common/state_management/state_hash.ts similarity index 100% rename from src/plugins/kibana_utils/common/state_management/state_hash.ts rename to src/platform/plugins/shared/kibana_utils/common/state_management/state_hash.ts diff --git a/src/plugins/kibana_utils/common/url/encode_uri_query.test.ts b/src/platform/plugins/shared/kibana_utils/common/url/encode_uri_query.test.ts similarity index 100% rename from src/plugins/kibana_utils/common/url/encode_uri_query.test.ts rename to src/platform/plugins/shared/kibana_utils/common/url/encode_uri_query.test.ts diff --git a/src/plugins/kibana_utils/common/url/encode_uri_query.ts b/src/platform/plugins/shared/kibana_utils/common/url/encode_uri_query.ts similarity index 100% rename from src/plugins/kibana_utils/common/url/encode_uri_query.ts rename to src/platform/plugins/shared/kibana_utils/common/url/encode_uri_query.ts diff --git a/src/plugins/kibana_utils/common/url/index.ts b/src/platform/plugins/shared/kibana_utils/common/url/index.ts similarity index 100% rename from src/plugins/kibana_utils/common/url/index.ts rename to src/platform/plugins/shared/kibana_utils/common/url/index.ts diff --git a/src/plugins/kibana_utils/demos/demos.test.ts b/src/platform/plugins/shared/kibana_utils/demos/demos.test.ts similarity index 100% rename from src/plugins/kibana_utils/demos/demos.test.ts rename to src/platform/plugins/shared/kibana_utils/demos/demos.test.ts diff --git a/src/plugins/kibana_utils/demos/state_containers/counter.ts b/src/platform/plugins/shared/kibana_utils/demos/state_containers/counter.ts similarity index 100% rename from src/plugins/kibana_utils/demos/state_containers/counter.ts rename to src/platform/plugins/shared/kibana_utils/demos/state_containers/counter.ts diff --git a/src/plugins/kibana_utils/demos/state_containers/todomvc.ts b/src/platform/plugins/shared/kibana_utils/demos/state_containers/todomvc.ts similarity index 100% rename from src/plugins/kibana_utils/demos/state_containers/todomvc.ts rename to src/platform/plugins/shared/kibana_utils/demos/state_containers/todomvc.ts diff --git a/src/plugins/kibana_utils/demos/state_sync/url.ts b/src/platform/plugins/shared/kibana_utils/demos/state_sync/url.ts similarity index 100% rename from src/plugins/kibana_utils/demos/state_sync/url.ts rename to src/platform/plugins/shared/kibana_utils/demos/state_sync/url.ts diff --git a/src/plugins/kibana_utils/docs/state_containers/README.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/README.md similarity index 85% rename from src/plugins/kibana_utils/docs/state_containers/README.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/README.md index ee5ebde9258e6..d24fb193eb9a5 100644 --- a/src/plugins/kibana_utils/docs/state_containers/README.md +++ b/src/platform/plugins/shared/kibana_utils/docs/state_containers/README.md @@ -15,7 +15,7 @@ your services or apps. ## Example ```ts -import { createStateContainer } from 'src/plugins/kibana_utils'; +import { createStateContainer } from 'src/platform/plugins/shared/kibana_utils'; const container = createStateContainer( { count: 0 }, @@ -41,8 +41,8 @@ See demos [here](../../demos/state_containers/). You can run them with ``` -npx -q ts-node src/plugins/kibana_utils/demos/state_containers/counter.ts -npx -q ts-node src/plugins/kibana_utils/demos/state_containers/todomvc.ts +npx -q ts-node src/platform/plugins/shared/kibana_utils/demos/state_containers/counter.ts +npx -q ts-node src/platform/plugins/shared/kibana_utils/demos/state_containers/todomvc.ts ``` ## Reference diff --git a/src/plugins/kibana_utils/docs/state_containers/creation.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/creation.md similarity index 87% rename from src/plugins/kibana_utils/docs/state_containers/creation.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/creation.md index f8ded75ed3f45..c06415c0c0050 100644 --- a/src/plugins/kibana_utils/docs/state_containers/creation.md +++ b/src/platform/plugins/shared/kibana_utils/docs/state_containers/creation.md @@ -30,7 +30,7 @@ const defaultState: MyState = { Create your a state container. ```ts -import { createStateContainer } from 'src/plugins/kibana_utils'; +import { createStateContainer } from 'src/platform/plugins/shared/kibana_utils'; const container = createStateContainer(defaultState); diff --git a/src/plugins/kibana_utils/docs/state_containers/no_react.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/no_react.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_containers/no_react.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/no_react.md diff --git a/src/plugins/kibana_utils/docs/state_containers/react.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/react.md similarity index 93% rename from src/plugins/kibana_utils/docs/state_containers/react.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/react.md index 1bab1af1d5f68..390bee9b08722 100644 --- a/src/plugins/kibana_utils/docs/state_containers/react.md +++ b/src/platform/plugins/shared/kibana_utils/docs/state_containers/react.md @@ -7,7 +7,7 @@ ```ts -import { createStateContainer, createStateContainerReactHelpers } from 'src/plugins/kibana_utils'; +import { createStateContainer, createStateContainerReactHelpers } from 'src/platform/plugins/shared/kibana_utils'; const container = createStateContainer({}); export const { diff --git a/src/plugins/kibana_utils/docs/state_containers/react/connect.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/react/connect.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_containers/react/connect.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/react/connect.md diff --git a/src/plugins/kibana_utils/docs/state_containers/react/context.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/react/context.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_containers/react/context.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/react/context.md diff --git a/src/plugins/kibana_utils/docs/state_containers/react/use_container.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/react/use_container.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_containers/react/use_container.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/react/use_container.md diff --git a/src/plugins/kibana_utils/docs/state_containers/react/use_selector.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/react/use_selector.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_containers/react/use_selector.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/react/use_selector.md diff --git a/src/plugins/kibana_utils/docs/state_containers/react/use_state.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/react/use_state.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_containers/react/use_state.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/react/use_state.md diff --git a/src/plugins/kibana_utils/docs/state_containers/react/use_transitions.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/react/use_transitions.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_containers/react/use_transitions.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/react/use_transitions.md diff --git a/src/plugins/kibana_utils/docs/state_containers/redux.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/redux.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_containers/redux.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/redux.md diff --git a/src/plugins/kibana_utils/docs/state_containers/transitions.md b/src/platform/plugins/shared/kibana_utils/docs/state_containers/transitions.md similarity index 95% rename from src/plugins/kibana_utils/docs/state_containers/transitions.md rename to src/platform/plugins/shared/kibana_utils/docs/state_containers/transitions.md index 51d52cdf3daaf..f54784692dd41 100644 --- a/src/plugins/kibana_utils/docs/state_containers/transitions.md +++ b/src/platform/plugins/shared/kibana_utils/docs/state_containers/transitions.md @@ -17,7 +17,7 @@ const setUiMode: PureTransition = state => uiMode => ({ ...state, uiMode }); You provide transitions as a second argument when you create your state container. ```ts -import { createStateContainer } from 'src/plugins/kibana_utils'; +import { createStateContainer } from 'src/platform/plugins/shared/kibana_utils'; const container = createStateContainer(0, { increment: (cnt: number) => (by: number) => cnt + by, diff --git a/src/plugins/kibana_utils/docs/state_sync/README.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/README.md similarity index 95% rename from src/plugins/kibana_utils/docs/state_sync/README.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/README.md index 6b4eb0cb1749b..dbeda7982c6cb 100644 --- a/src/plugins/kibana_utils/docs/state_sync/README.md +++ b/src/platform/plugins/shared/kibana_utils/docs/state_sync/README.md @@ -34,7 +34,7 @@ import { createStateContainer, syncState, createKbnUrlStateStorage, -} from 'src/plugins/kibana_utils/public'; +} from 'src/platform/plugins/shared/kibana_utils/public'; const stateContainer = createStateContainer({ count: 0 }); const stateStorage = createKbnUrlStateStorage(); @@ -56,7 +56,7 @@ stop(); ## Demo Plugins -See demo plugins [here](../../../../../examples/state_containers_examples). +See demo plugins [here](../../../../../../../examples/state_containers_examples). To run them, start kibana with `--run-examples` flag. diff --git a/src/plugins/kibana_utils/docs/state_sync/data_plugin_helpers.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/data_plugin_helpers.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_sync/data_plugin_helpers.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/data_plugin_helpers.md diff --git a/src/plugins/kibana_utils/docs/state_sync/empty_or_incomplete_incoming_state.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/empty_or_incomplete_incoming_state.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_sync/empty_or_incomplete_incoming_state.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/empty_or_incomplete_incoming_state.md diff --git a/src/plugins/kibana_utils/docs/state_sync/error_handling.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/error_handling.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_sync/error_handling.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/error_handling.md diff --git a/src/plugins/kibana_utils/docs/state_sync/initial_state.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/initial_state.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_sync/initial_state.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/initial_state.md diff --git a/src/plugins/kibana_utils/docs/state_sync/no_state_containers.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/no_state_containers.md similarity index 92% rename from src/plugins/kibana_utils/docs/state_sync/no_state_containers.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/no_state_containers.md index 7db04aa60b7ac..c051b6042f5dd 100644 --- a/src/plugins/kibana_utils/docs/state_sync/no_state_containers.md +++ b/src/platform/plugins/shared/kibana_utils/docs/state_sync/no_state_containers.md @@ -38,7 +38,7 @@ export class MyStateManager { ```ts // app.ts -import { syncState, createKbnUrlStateStorage } from 'src/plugins/kibana_utils/public'; +import { syncState, createKbnUrlStateStorage } from 'src/platform/plugins/shared/kibana_utils/public'; import { MyStateManager } from './my_state_manager'; const myStateManager = new MyStateManager(); diff --git a/src/plugins/kibana_utils/docs/state_sync/on_fly_state_migrations.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/on_fly_state_migrations.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_sync/on_fly_state_migrations.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/on_fly_state_migrations.md diff --git a/src/plugins/kibana_utils/docs/state_sync/storages/README.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/storages/README.md similarity index 100% rename from src/plugins/kibana_utils/docs/state_sync/storages/README.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/storages/README.md diff --git a/src/plugins/kibana_utils/docs/state_sync/storages/kbn_url_storage.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/storages/kbn_url_storage.md similarity index 99% rename from src/plugins/kibana_utils/docs/state_sync/storages/kbn_url_storage.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/storages/kbn_url_storage.md index 36c7d7119ffe5..cb0320019aaef 100644 --- a/src/plugins/kibana_utils/docs/state_sync/storages/kbn_url_storage.md +++ b/src/platform/plugins/shared/kibana_utils/docs/state_sync/storages/kbn_url_storage.md @@ -19,7 +19,7 @@ import { createStateContainer, syncState, createKbnUrlStateStorage, -} from 'src/plugins/kibana_utils/public'; +} from 'src/platform/plugins/shared/kibana_utils/public'; const stateContainer = createStateContainer({ count: 0 }); const stateStorage = createKbnUrlStateStorage(); diff --git a/src/plugins/kibana_utils/docs/state_sync/storages/session_storage.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/storages/session_storage.md similarity index 94% rename from src/plugins/kibana_utils/docs/state_sync/storages/session_storage.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/storages/session_storage.md index cfefc6688f09d..384960309004b 100644 --- a/src/plugins/kibana_utils/docs/state_sync/storages/session_storage.md +++ b/src/platform/plugins/shared/kibana_utils/docs/state_sync/storages/session_storage.md @@ -7,7 +7,7 @@ import { createStateContainer, syncState, createSessionStorageStateStorage, -} from 'src/plugins/kibana_utils/public'; +} from 'src/platform/plugins/shared/kibana_utils/public'; const stateContainer = createStateContainer({ count: 0 }); const stateStorage = createSessionStorageStateStorage(); diff --git a/src/plugins/kibana_utils/docs/state_sync/sync_states.md b/src/platform/plugins/shared/kibana_utils/docs/state_sync/sync_states.md similarity index 93% rename from src/plugins/kibana_utils/docs/state_sync/sync_states.md rename to src/platform/plugins/shared/kibana_utils/docs/state_sync/sync_states.md index 9a040cb9ba405..e69aa4a528d92 100644 --- a/src/plugins/kibana_utils/docs/state_sync/sync_states.md +++ b/src/platform/plugins/shared/kibana_utils/docs/state_sync/sync_states.md @@ -9,7 +9,7 @@ import { syncStates, createKbnUrlStateStorage, createSessionStorageStateStorage, -} from 'src/plugins/kibana_utils/public'; +} from 'src/platform/plugins/shared/kibana_utils/public'; const stateContainer = createStateContainer({ count: 0 }); const urlStateStorage = createKbnUrlStateStorage(); diff --git a/src/plugins/kibana_utils/jest.config.js b/src/platform/plugins/shared/kibana_utils/jest.config.js similarity index 73% rename from src/plugins/kibana_utils/jest.config.js rename to src/platform/plugins/shared/kibana_utils/jest.config.js index fffb016524fd6..9c91821ef6a93 100644 --- a/src/plugins/kibana_utils/jest.config.js +++ b/src/platform/plugins/shared/kibana_utils/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/kibana_utils'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/kibana_utils', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/kibana_utils'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/kibana_utils', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/kibana_utils/{common,demos,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/kibana_utils/{common,demos,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/kibana_utils/kibana.jsonc b/src/platform/plugins/shared/kibana_utils/kibana.jsonc similarity index 100% rename from src/plugins/kibana_utils/kibana.jsonc rename to src/platform/plugins/shared/kibana_utils/kibana.jsonc diff --git a/src/plugins/kibana_utils/public/core/create_start_service_getter.test.ts b/src/platform/plugins/shared/kibana_utils/public/core/create_start_service_getter.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/core/create_start_service_getter.test.ts rename to src/platform/plugins/shared/kibana_utils/public/core/create_start_service_getter.test.ts diff --git a/src/plugins/kibana_utils/public/core/create_start_service_getter.ts b/src/platform/plugins/shared/kibana_utils/public/core/create_start_service_getter.ts similarity index 100% rename from src/plugins/kibana_utils/public/core/create_start_service_getter.ts rename to src/platform/plugins/shared/kibana_utils/public/core/create_start_service_getter.ts diff --git a/src/plugins/kibana_utils/public/core/index.ts b/src/platform/plugins/shared/kibana_utils/public/core/index.ts similarity index 100% rename from src/plugins/kibana_utils/public/core/index.ts rename to src/platform/plugins/shared/kibana_utils/public/core/index.ts diff --git a/src/plugins/kibana_utils/public/history/get_query_params.test.ts b/src/platform/plugins/shared/kibana_utils/public/history/get_query_params.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/history/get_query_params.test.ts rename to src/platform/plugins/shared/kibana_utils/public/history/get_query_params.test.ts diff --git a/src/plugins/kibana_utils/public/history/get_query_params.ts b/src/platform/plugins/shared/kibana_utils/public/history/get_query_params.ts similarity index 100% rename from src/plugins/kibana_utils/public/history/get_query_params.ts rename to src/platform/plugins/shared/kibana_utils/public/history/get_query_params.ts diff --git a/src/plugins/kibana_utils/public/history/history_observable.test.ts b/src/platform/plugins/shared/kibana_utils/public/history/history_observable.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/history/history_observable.test.ts rename to src/platform/plugins/shared/kibana_utils/public/history/history_observable.test.ts diff --git a/src/plugins/kibana_utils/public/history/history_observable.ts b/src/platform/plugins/shared/kibana_utils/public/history/history_observable.ts similarity index 100% rename from src/plugins/kibana_utils/public/history/history_observable.ts rename to src/platform/plugins/shared/kibana_utils/public/history/history_observable.ts diff --git a/src/plugins/kibana_utils/public/history/index.ts b/src/platform/plugins/shared/kibana_utils/public/history/index.ts similarity index 100% rename from src/plugins/kibana_utils/public/history/index.ts rename to src/platform/plugins/shared/kibana_utils/public/history/index.ts diff --git a/src/plugins/kibana_utils/public/history/redirect_when_missing.tsx b/src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx similarity index 100% rename from src/plugins/kibana_utils/public/history/redirect_when_missing.tsx rename to src/platform/plugins/shared/kibana_utils/public/history/redirect_when_missing.tsx diff --git a/src/plugins/kibana_utils/public/history/remove_query_param.test.ts b/src/platform/plugins/shared/kibana_utils/public/history/remove_query_param.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/history/remove_query_param.test.ts rename to src/platform/plugins/shared/kibana_utils/public/history/remove_query_param.test.ts diff --git a/src/plugins/kibana_utils/public/history/remove_query_param.ts b/src/platform/plugins/shared/kibana_utils/public/history/remove_query_param.ts similarity index 100% rename from src/plugins/kibana_utils/public/history/remove_query_param.ts rename to src/platform/plugins/shared/kibana_utils/public/history/remove_query_param.ts diff --git a/src/plugins/kibana_utils/public/index.test.ts b/src/platform/plugins/shared/kibana_utils/public/index.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/index.test.ts rename to src/platform/plugins/shared/kibana_utils/public/index.test.ts diff --git a/src/plugins/kibana_utils/public/index.ts b/src/platform/plugins/shared/kibana_utils/public/index.ts similarity index 100% rename from src/plugins/kibana_utils/public/index.ts rename to src/platform/plugins/shared/kibana_utils/public/index.ts diff --git a/src/plugins/kibana_utils/public/mocks.ts b/src/platform/plugins/shared/kibana_utils/public/mocks.ts similarity index 100% rename from src/plugins/kibana_utils/public/mocks.ts rename to src/platform/plugins/shared/kibana_utils/public/mocks.ts diff --git a/src/plugins/kibana_utils/public/plugin.ts b/src/platform/plugins/shared/kibana_utils/public/plugin.ts similarity index 100% rename from src/plugins/kibana_utils/public/plugin.ts rename to src/platform/plugins/shared/kibana_utils/public/plugin.ts diff --git a/src/plugins/kibana_utils/public/render_complete/index.ts b/src/platform/plugins/shared/kibana_utils/public/render_complete/index.ts similarity index 100% rename from src/plugins/kibana_utils/public/render_complete/index.ts rename to src/platform/plugins/shared/kibana_utils/public/render_complete/index.ts diff --git a/src/plugins/kibana_utils/public/render_complete/render_complete_dispatcher.ts b/src/platform/plugins/shared/kibana_utils/public/render_complete/render_complete_dispatcher.ts similarity index 100% rename from src/plugins/kibana_utils/public/render_complete/render_complete_dispatcher.ts rename to src/platform/plugins/shared/kibana_utils/public/render_complete/render_complete_dispatcher.ts diff --git a/src/plugins/kibana_utils/public/render_complete/render_complete_listener.ts b/src/platform/plugins/shared/kibana_utils/public/render_complete/render_complete_listener.ts similarity index 100% rename from src/plugins/kibana_utils/public/render_complete/render_complete_listener.ts rename to src/platform/plugins/shared/kibana_utils/public/render_complete/render_complete_listener.ts diff --git a/src/plugins/kibana_utils/public/resize_checker/index.ts b/src/platform/plugins/shared/kibana_utils/public/resize_checker/index.ts similarity index 100% rename from src/plugins/kibana_utils/public/resize_checker/index.ts rename to src/platform/plugins/shared/kibana_utils/public/resize_checker/index.ts diff --git a/src/plugins/kibana_utils/public/resize_checker/resize_checker.test.ts b/src/platform/plugins/shared/kibana_utils/public/resize_checker/resize_checker.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/resize_checker/resize_checker.test.ts rename to src/platform/plugins/shared/kibana_utils/public/resize_checker/resize_checker.test.ts diff --git a/src/plugins/kibana_utils/public/resize_checker/resize_checker.ts b/src/platform/plugins/shared/kibana_utils/public/resize_checker/resize_checker.ts similarity index 100% rename from src/plugins/kibana_utils/public/resize_checker/resize_checker.ts rename to src/platform/plugins/shared/kibana_utils/public/resize_checker/resize_checker.ts diff --git a/src/plugins/kibana_utils/public/state_management/state_encoder/encode_decode_state.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/state_encoder/encode_decode_state.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/state_encoder/encode_decode_state.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/state_encoder/encode_decode_state.ts diff --git a/src/plugins/kibana_utils/public/state_management/state_encoder/index.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/state_encoder/index.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/state_encoder/index.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/state_encoder/index.ts diff --git a/src/plugins/kibana_utils/public/state_management/state_hash/index.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/state_hash/index.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/state_hash/index.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/state_hash/index.ts diff --git a/src/plugins/kibana_utils/public/state_management/state_hash/state_hash.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/state_hash/state_hash.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/state_hash/state_hash.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/state_hash/state_hash.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/errors.test.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/errors.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/errors.test.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/errors.test.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/errors.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/errors.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/errors.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/errors.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/hash_unhash_url.test.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/hash_unhash_url.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/hash_unhash_url.test.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/hash_unhash_url.test.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/hash_unhash_url.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/hash_unhash_url.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/hash_unhash_url.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/hash_unhash_url.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/index.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/index.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/index.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/index.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/kbn_url_storage.test.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_storage.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/kbn_url_storage.test.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_storage.test.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/kbn_url_storage.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_storage.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/kbn_url_storage.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_storage.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/kbn_url_tracker.test.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_tracker.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/kbn_url_tracker.test.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_tracker.test.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/kbn_url_tracker.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_tracker.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/kbn_url_tracker.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_tracker.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/url_tracker.test.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/url_tracker.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/url_tracker.test.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/url_tracker.test.ts diff --git a/src/plugins/kibana_utils/public/state_management/url/url_tracker.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/url/url_tracker.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/url/url_tracker.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/url/url_tracker.ts diff --git a/src/plugins/kibana_utils/public/state_management/utils/diff_object.test.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/utils/diff_object.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/utils/diff_object.test.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/utils/diff_object.test.ts diff --git a/src/plugins/kibana_utils/public/state_management/utils/diff_object.ts b/src/platform/plugins/shared/kibana_utils/public/state_management/utils/diff_object.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_management/utils/diff_object.ts rename to src/platform/plugins/shared/kibana_utils/public/state_management/utils/diff_object.ts diff --git a/src/platform/plugins/shared/kibana_utils/public/state_sync/README.md b/src/platform/plugins/shared/kibana_utils/public/state_sync/README.md new file mode 100644 index 0000000000000..b96c88f2c058e --- /dev/null +++ b/src/platform/plugins/shared/kibana_utils/public/state_sync/README.md @@ -0,0 +1,3 @@ +- [docs](../../docs/state_sync) +- [demo plugins](../../../../../../../examples/state_containers_examples): run Kibana with `--run-examples` flag. +- [api reference](https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_utils/docs/state_sync) diff --git a/src/plugins/kibana_utils/public/state_sync/index.ts b/src/platform/plugins/shared/kibana_utils/public/state_sync/index.ts similarity index 87% rename from src/plugins/kibana_utils/public/state_sync/index.ts rename to src/platform/plugins/shared/kibana_utils/public/state_sync/index.ts index 4c8624f82554e..76095990a6adc 100644 --- a/src/plugins/kibana_utils/public/state_sync/index.ts +++ b/src/platform/plugins/shared/kibana_utils/public/state_sync/index.ts @@ -11,7 +11,7 @@ * State syncing utilities are a set of helpers for syncing your application state * with browser URL or browser storage. * - * They are designed to work together with {@link https://github.com/elastic/kibana/tree/main/src/plugins/kibana_utils/docs/state_containers | state containers}. But state containers are not required. + * They are designed to work together with {@link https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_utils/docs/state_containers | state containers}. But state containers are not required. * * State syncing utilities include: * @@ -23,7 +23,7 @@ * Listens for state updates in the URL and pushes them back to state. * * {@link ISessionStorageStateStorage} - Serializes state and persists it to browser storage. * - * Refer {@link https://github.com/elastic/kibana/tree/main/src/plugins/kibana_utils/docs/state_sync | here} for a complete guide and examples. + * Refer {@link https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_utils/docs/state_sync | here} for a complete guide and examples. * @packageDocumentation */ diff --git a/src/plugins/kibana_utils/public/state_sync/state_sync.test.ts b/src/platform/plugins/shared/kibana_utils/public/state_sync/state_sync.test.ts similarity index 100% rename from src/plugins/kibana_utils/public/state_sync/state_sync.test.ts rename to src/platform/plugins/shared/kibana_utils/public/state_sync/state_sync.test.ts diff --git a/src/plugins/kibana_utils/public/state_sync/state_sync.ts b/src/platform/plugins/shared/kibana_utils/public/state_sync/state_sync.ts similarity index 97% rename from src/plugins/kibana_utils/public/state_sync/state_sync.ts rename to src/platform/plugins/shared/kibana_utils/public/state_sync/state_sync.ts index 9058eda3f0cf6..b358d5e2479a6 100644 --- a/src/plugins/kibana_utils/public/state_sync/state_sync.ts +++ b/src/platform/plugins/shared/kibana_utils/public/state_sync/state_sync.ts @@ -43,7 +43,7 @@ export interface ISyncStateRef; * diff --git a/tsconfig.base.json b/tsconfig.base.json index f6e5f20c98455..47a17c6da4fd1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1130,8 +1130,8 @@ "@kbn/kibana-react-plugin/*": ["src/platform/plugins/shared/kibana_react/*"], "@kbn/kibana-usage-collection-plugin": ["src/plugins/kibana_usage_collection"], "@kbn/kibana-usage-collection-plugin/*": ["src/plugins/kibana_usage_collection/*"], - "@kbn/kibana-utils-plugin": ["src/plugins/kibana_utils"], - "@kbn/kibana-utils-plugin/*": ["src/plugins/kibana_utils/*"], + "@kbn/kibana-utils-plugin": ["src/platform/plugins/shared/kibana_utils"], + "@kbn/kibana-utils-plugin/*": ["src/platform/plugins/shared/kibana_utils/*"], "@kbn/kubernetes-security-plugin": ["x-pack/solutions/security/plugins/kubernetes_security"], "@kbn/kubernetes-security-plugin/*": ["x-pack/solutions/security/plugins/kubernetes_security/*"], "@kbn/langchain": ["x-pack/platform/packages/shared/kbn-langchain"], diff --git a/yarn.lock b/yarn.lock index e0601e5d0dd34..5ee32e5357bf2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6077,7 +6077,7 @@ version "0.0.0" uid "" -"@kbn/kibana-utils-plugin@link:src/plugins/kibana_utils": +"@kbn/kibana-utils-plugin@link:src/platform/plugins/shared/kibana_utils": version "0.0.0" uid "" From 1f3b4de2995cebb3e9120ae504e27a3a896037fc Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:14:36 +0100 Subject: [PATCH 14/43] Relocating module `@kbn/navigation-plugin` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/navigation/README.md | 0 .../plugins/shared}/navigation/common/constants.ts | 0 .../plugins/shared}/navigation/common/index.ts | 0 .../plugins/shared}/navigation/jest.config.js | 8 ++++---- .../plugins/shared}/navigation/kibana.jsonc | 0 .../plugins/shared}/navigation/public/analytics/index.ts | 0 .../navigation/public/analytics/register_event_types.ts | 0 .../plugins/shared}/navigation/public/index.scss | 0 .../plugins/shared}/navigation/public/index.ts | 0 .../plugins/shared}/navigation/public/mocks.tsx | 0 .../plugins/shared}/navigation/public/plugin.test.ts | 0 .../plugins/shared}/navigation/public/plugin.tsx | 0 .../shared}/navigation/public/side_navigation/index.tsx | 0 .../navigation/public/side_navigation/side_navigation.tsx | 0 .../top_nav_menu/__snapshots__/top_nav_menu.test.tsx.snap | 0 .../__snapshots__/top_nav_menu_item.test.tsx.snap | 0 .../shared}/navigation/public/top_nav_menu/_index.scss | 0 .../public/top_nav_menu/create_top_nav_menu.tsx | 0 .../shared}/navigation/public/top_nav_menu/index.ts | 0 .../navigation/public/top_nav_menu/top_nav_menu.test.tsx | 0 .../navigation/public/top_nav_menu/top_nav_menu.tsx | 0 .../public/top_nav_menu/top_nav_menu_badges.tsx | 0 .../navigation/public/top_nav_menu/top_nav_menu_data.tsx | 0 .../top_nav_menu/top_nav_menu_extensions_registry.ts | 0 .../public/top_nav_menu/top_nav_menu_item.test.tsx | 0 .../navigation/public/top_nav_menu/top_nav_menu_item.tsx | 0 .../navigation/public/top_nav_menu/top_nav_menu_items.tsx | 0 .../plugins/shared}/navigation/public/types.ts | 0 .../plugins/shared}/navigation/server/index.ts | 0 .../plugins/shared}/navigation/server/plugin.ts | 0 .../plugins/shared}/navigation/server/types.ts | 0 .../plugins/shared}/navigation/server/ui_settings.test.ts | 0 .../plugins/shared}/navigation/server/ui_settings.ts | 0 .../plugins/shared}/navigation/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 40 files changed, 12 insertions(+), 12 deletions(-) rename src/{plugins => platform/plugins/shared}/navigation/README.md (100%) rename src/{plugins => platform/plugins/shared}/navigation/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/jest.config.js (73%) rename src/{plugins => platform/plugins/shared}/navigation/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/analytics/index.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/analytics/register_event_types.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/index.scss (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/mocks.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/side_navigation/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/side_navigation/side_navigation.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/__snapshots__/top_nav_menu.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/__snapshots__/top_nav_menu_item.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/_index.scss (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/create_top_nav_menu.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/index.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/top_nav_menu.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/top_nav_menu.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/top_nav_menu_badges.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/top_nav_menu_data.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/top_nav_menu_extensions_registry.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/top_nav_menu_item.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/top_nav_menu_item.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/top_nav_menu/top_nav_menu_items.tsx (100%) rename src/{plugins => platform/plugins/shared}/navigation/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/server/ui_settings.test.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/server/ui_settings.ts (100%) rename src/{plugins => platform/plugins/shared}/navigation/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dca75b6849a6f..5d89474c41bfd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -626,6 +626,7 @@ src/platform/plugins/shared/home @elastic/appex-sharedux src/platform/plugins/shared/kibana_react @elastic/appex-sharedux src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management +src/platform/plugins/shared/navigation @elastic/appex-sharedux src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux src/plugins/chart_expressions/common @elastic/kibana-visualizations @@ -665,7 +666,6 @@ src/plugins/interactive_setup @elastic/kibana-security src/plugins/kibana_usage_collection @elastic/kibana-core src/plugins/links @elastic/kibana-presentation src/plugins/maps_ems @elastic/kibana-presentation -src/plugins/navigation @elastic/appex-sharedux src/plugins/newsfeed @elastic/kibana-core src/plugins/no_data_page @elastic/appex-sharedux src/plugins/presentation_panel @elastic/kibana-presentation diff --git a/.i18nrc.json b/.i18nrc.json index 3bd1b13dd6a2e..e22928136a937 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -97,7 +97,7 @@ "packages/kbn-management" ], "monaco": "packages/kbn-monaco/src", - "navigation": ["src/plugins/navigation", "packages/solution-nav"], + "navigation": ["src/platform/plugins/shared/navigation", "packages/solution-nav"], "links": "src/plugins/links", "newsfeed": "src/plugins/newsfeed", "presentationUtil": "src/plugins/presentation_util", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 5b422b9801112..84b1cd9dd3884 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -268,7 +268,7 @@ management section itself. |Utility plugin: -|{kib-repo}blob/{branch}/src/plugins/navigation/README.md[navigation] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/navigation/README.md[navigation] |The navigation plugins exports the TopNavMenu component. It also provides a stateful version of it on the start contract. diff --git a/package.json b/package.json index 1c9f78ec07ec7..6d5cc0fd47e9c 100644 --- a/package.json +++ b/package.json @@ -685,7 +685,7 @@ "@kbn/monaco": "link:packages/kbn-monaco", "@kbn/monitoring-collection-plugin": "link:x-pack/plugins/monitoring_collection", "@kbn/monitoring-plugin": "link:x-pack/plugins/monitoring", - "@kbn/navigation-plugin": "link:src/plugins/navigation", + "@kbn/navigation-plugin": "link:src/platform/plugins/shared/navigation", "@kbn/newsfeed-plugin": "link:src/plugins/newsfeed", "@kbn/newsfeed-test-plugin": "link:test/common/plugins/newsfeed", "@kbn/no-data-page-plugin": "link:src/plugins/no_data_page", diff --git a/src/plugins/navigation/README.md b/src/platform/plugins/shared/navigation/README.md similarity index 100% rename from src/plugins/navigation/README.md rename to src/platform/plugins/shared/navigation/README.md diff --git a/src/plugins/navigation/common/constants.ts b/src/platform/plugins/shared/navigation/common/constants.ts similarity index 100% rename from src/plugins/navigation/common/constants.ts rename to src/platform/plugins/shared/navigation/common/constants.ts diff --git a/src/plugins/navigation/common/index.ts b/src/platform/plugins/shared/navigation/common/index.ts similarity index 100% rename from src/plugins/navigation/common/index.ts rename to src/platform/plugins/shared/navigation/common/index.ts diff --git a/src/plugins/navigation/jest.config.js b/src/platform/plugins/shared/navigation/jest.config.js similarity index 73% rename from src/plugins/navigation/jest.config.js rename to src/platform/plugins/shared/navigation/jest.config.js index b3bcf88e9972a..e906adb706403 100644 --- a/src/plugins/navigation/jest.config.js +++ b/src/platform/plugins/shared/navigation/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/navigation'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/navigation', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/navigation'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/navigation', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/navigation/public/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/navigation/public/**/*.{ts,tsx}'], }; diff --git a/src/plugins/navigation/kibana.jsonc b/src/platform/plugins/shared/navigation/kibana.jsonc similarity index 100% rename from src/plugins/navigation/kibana.jsonc rename to src/platform/plugins/shared/navigation/kibana.jsonc diff --git a/src/plugins/navigation/public/analytics/index.ts b/src/platform/plugins/shared/navigation/public/analytics/index.ts similarity index 100% rename from src/plugins/navigation/public/analytics/index.ts rename to src/platform/plugins/shared/navigation/public/analytics/index.ts diff --git a/src/plugins/navigation/public/analytics/register_event_types.ts b/src/platform/plugins/shared/navigation/public/analytics/register_event_types.ts similarity index 100% rename from src/plugins/navigation/public/analytics/register_event_types.ts rename to src/platform/plugins/shared/navigation/public/analytics/register_event_types.ts diff --git a/src/plugins/navigation/public/index.scss b/src/platform/plugins/shared/navigation/public/index.scss similarity index 100% rename from src/plugins/navigation/public/index.scss rename to src/platform/plugins/shared/navigation/public/index.scss diff --git a/src/plugins/navigation/public/index.ts b/src/platform/plugins/shared/navigation/public/index.ts similarity index 100% rename from src/plugins/navigation/public/index.ts rename to src/platform/plugins/shared/navigation/public/index.ts diff --git a/src/plugins/navigation/public/mocks.tsx b/src/platform/plugins/shared/navigation/public/mocks.tsx similarity index 100% rename from src/plugins/navigation/public/mocks.tsx rename to src/platform/plugins/shared/navigation/public/mocks.tsx diff --git a/src/plugins/navigation/public/plugin.test.ts b/src/platform/plugins/shared/navigation/public/plugin.test.ts similarity index 100% rename from src/plugins/navigation/public/plugin.test.ts rename to src/platform/plugins/shared/navigation/public/plugin.test.ts diff --git a/src/plugins/navigation/public/plugin.tsx b/src/platform/plugins/shared/navigation/public/plugin.tsx similarity index 100% rename from src/plugins/navigation/public/plugin.tsx rename to src/platform/plugins/shared/navigation/public/plugin.tsx diff --git a/src/plugins/navigation/public/side_navigation/index.tsx b/src/platform/plugins/shared/navigation/public/side_navigation/index.tsx similarity index 100% rename from src/plugins/navigation/public/side_navigation/index.tsx rename to src/platform/plugins/shared/navigation/public/side_navigation/index.tsx diff --git a/src/plugins/navigation/public/side_navigation/side_navigation.tsx b/src/platform/plugins/shared/navigation/public/side_navigation/side_navigation.tsx similarity index 100% rename from src/plugins/navigation/public/side_navigation/side_navigation.tsx rename to src/platform/plugins/shared/navigation/public/side_navigation/side_navigation.tsx diff --git a/src/plugins/navigation/public/top_nav_menu/__snapshots__/top_nav_menu.test.tsx.snap b/src/platform/plugins/shared/navigation/public/top_nav_menu/__snapshots__/top_nav_menu.test.tsx.snap similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/__snapshots__/top_nav_menu.test.tsx.snap rename to src/platform/plugins/shared/navigation/public/top_nav_menu/__snapshots__/top_nav_menu.test.tsx.snap diff --git a/src/plugins/navigation/public/top_nav_menu/__snapshots__/top_nav_menu_item.test.tsx.snap b/src/platform/plugins/shared/navigation/public/top_nav_menu/__snapshots__/top_nav_menu_item.test.tsx.snap similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/__snapshots__/top_nav_menu_item.test.tsx.snap rename to src/platform/plugins/shared/navigation/public/top_nav_menu/__snapshots__/top_nav_menu_item.test.tsx.snap diff --git a/src/plugins/navigation/public/top_nav_menu/_index.scss b/src/platform/plugins/shared/navigation/public/top_nav_menu/_index.scss similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/_index.scss rename to src/platform/plugins/shared/navigation/public/top_nav_menu/_index.scss diff --git a/src/plugins/navigation/public/top_nav_menu/create_top_nav_menu.tsx b/src/platform/plugins/shared/navigation/public/top_nav_menu/create_top_nav_menu.tsx similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/create_top_nav_menu.tsx rename to src/platform/plugins/shared/navigation/public/top_nav_menu/create_top_nav_menu.tsx diff --git a/src/plugins/navigation/public/top_nav_menu/index.ts b/src/platform/plugins/shared/navigation/public/top_nav_menu/index.ts similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/index.ts rename to src/platform/plugins/shared/navigation/public/top_nav_menu/index.ts diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_menu.test.tsx b/src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu.test.tsx similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/top_nav_menu.test.tsx rename to src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu.test.tsx diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_menu.tsx b/src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu.tsx similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/top_nav_menu.tsx rename to src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu.tsx diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_menu_badges.tsx b/src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_badges.tsx similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/top_nav_menu_badges.tsx rename to src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_badges.tsx diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_menu_data.tsx b/src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_data.tsx similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/top_nav_menu_data.tsx rename to src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_data.tsx diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_menu_extensions_registry.ts b/src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_extensions_registry.ts similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/top_nav_menu_extensions_registry.ts rename to src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_extensions_registry.ts diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_menu_item.test.tsx b/src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_item.test.tsx similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/top_nav_menu_item.test.tsx rename to src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_item.test.tsx diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_menu_item.tsx b/src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_item.tsx similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/top_nav_menu_item.tsx rename to src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_item.tsx diff --git a/src/plugins/navigation/public/top_nav_menu/top_nav_menu_items.tsx b/src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_items.tsx similarity index 100% rename from src/plugins/navigation/public/top_nav_menu/top_nav_menu_items.tsx rename to src/platform/plugins/shared/navigation/public/top_nav_menu/top_nav_menu_items.tsx diff --git a/src/plugins/navigation/public/types.ts b/src/platform/plugins/shared/navigation/public/types.ts similarity index 100% rename from src/plugins/navigation/public/types.ts rename to src/platform/plugins/shared/navigation/public/types.ts diff --git a/src/plugins/navigation/server/index.ts b/src/platform/plugins/shared/navigation/server/index.ts similarity index 100% rename from src/plugins/navigation/server/index.ts rename to src/platform/plugins/shared/navigation/server/index.ts diff --git a/src/plugins/navigation/server/plugin.ts b/src/platform/plugins/shared/navigation/server/plugin.ts similarity index 100% rename from src/plugins/navigation/server/plugin.ts rename to src/platform/plugins/shared/navigation/server/plugin.ts diff --git a/src/plugins/navigation/server/types.ts b/src/platform/plugins/shared/navigation/server/types.ts similarity index 100% rename from src/plugins/navigation/server/types.ts rename to src/platform/plugins/shared/navigation/server/types.ts diff --git a/src/plugins/navigation/server/ui_settings.test.ts b/src/platform/plugins/shared/navigation/server/ui_settings.test.ts similarity index 100% rename from src/plugins/navigation/server/ui_settings.test.ts rename to src/platform/plugins/shared/navigation/server/ui_settings.test.ts diff --git a/src/plugins/navigation/server/ui_settings.ts b/src/platform/plugins/shared/navigation/server/ui_settings.ts similarity index 100% rename from src/plugins/navigation/server/ui_settings.ts rename to src/platform/plugins/shared/navigation/server/ui_settings.ts diff --git a/src/plugins/navigation/tsconfig.json b/src/platform/plugins/shared/navigation/tsconfig.json similarity index 93% rename from src/plugins/navigation/tsconfig.json rename to src/platform/plugins/shared/navigation/tsconfig.json index 1ee0462330954..0ae4275042a36 100644 --- a/src/plugins/navigation/tsconfig.json +++ b/src/platform/plugins/shared/navigation/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 47a17c6da4fd1..6303bda8bf962 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1304,8 +1304,8 @@ "@kbn/monitoring-collection-plugin/*": ["x-pack/plugins/monitoring_collection/*"], "@kbn/monitoring-plugin": ["x-pack/plugins/monitoring"], "@kbn/monitoring-plugin/*": ["x-pack/plugins/monitoring/*"], - "@kbn/navigation-plugin": ["src/plugins/navigation"], - "@kbn/navigation-plugin/*": ["src/plugins/navigation/*"], + "@kbn/navigation-plugin": ["src/platform/plugins/shared/navigation"], + "@kbn/navigation-plugin/*": ["src/platform/plugins/shared/navigation/*"], "@kbn/newsfeed-plugin": ["src/plugins/newsfeed"], "@kbn/newsfeed-plugin/*": ["src/plugins/newsfeed/*"], "@kbn/newsfeed-test-plugin": ["test/common/plugins/newsfeed"], diff --git a/yarn.lock b/yarn.lock index 5ee32e5357bf2..a1fdd92a03532 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6425,7 +6425,7 @@ version "0.0.0" uid "" -"@kbn/navigation-plugin@link:src/plugins/navigation": +"@kbn/navigation-plugin@link:src/platform/plugins/shared/navigation": version "0.0.0" uid "" From adcff476c17fc50a70928052bb4743e19c6e7309 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:16:01 +0100 Subject: [PATCH 15/43] Relocating module `@kbn/no-data-page-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/private}/no_data_page/README.md | 0 .../plugins/private}/no_data_page/jest.config.js | 8 ++++---- .../plugins/private}/no_data_page/kibana.jsonc | 0 .../plugins/private}/no_data_page/public/index.ts | 0 .../plugins/private}/no_data_page/public/mocks/index.ts | 0 .../plugins/private}/no_data_page/public/plugin.ts | 0 .../plugins/private}/no_data_page/public/types.ts | 0 .../plugins/private}/no_data_page/server/config.ts | 0 .../plugins/private}/no_data_page/server/index.ts | 0 .../plugins/private}/no_data_page/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 11 insertions(+), 11 deletions(-) rename src/{plugins => platform/plugins/private}/no_data_page/README.md (100%) rename src/{plugins => platform/plugins/private}/no_data_page/jest.config.js (71%) rename src/{plugins => platform/plugins/private}/no_data_page/kibana.jsonc (100%) rename src/{plugins => platform/plugins/private}/no_data_page/public/index.ts (100%) rename src/{plugins => platform/plugins/private}/no_data_page/public/mocks/index.ts (100%) rename src/{plugins => platform/plugins/private}/no_data_page/public/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/no_data_page/public/types.ts (100%) rename src/{plugins => platform/plugins/private}/no_data_page/server/config.ts (100%) rename src/{plugins => platform/plugins/private}/no_data_page/server/index.ts (100%) rename src/{plugins => platform/plugins/private}/no_data_page/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5d89474c41bfd..7faf831fd6b87 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -613,6 +613,7 @@ src/platform/packages/shared/serverless/settings/security_project @elastic/secur src/platform/plugins/private/files_management @elastic/appex-sharedux src/platform/plugins/private/image_embeddable @elastic/appex-sharedux src/platform/plugins/private/kibana_overview @elastic/appex-sharedux +src/platform/plugins/private/no_data_page @elastic/appex-sharedux src/platform/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant src/platform/plugins/shared/console @elastic/kibana-management src/platform/plugins/shared/content_management @elastic/appex-sharedux @@ -667,7 +668,6 @@ src/plugins/kibana_usage_collection @elastic/kibana-core src/plugins/links @elastic/kibana-presentation src/plugins/maps_ems @elastic/kibana-presentation src/plugins/newsfeed @elastic/kibana-core -src/plugins/no_data_page @elastic/appex-sharedux src/plugins/presentation_panel @elastic/kibana-presentation src/plugins/presentation_util @elastic/kibana-presentation src/plugins/saved_objects @elastic/appex-sharedux diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 84b1cd9dd3884..0828d9e870557 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -278,7 +278,7 @@ It also provides a stateful version of it on the start contract. Content is fetched from the remote (https://feeds.elastic.co) once a day, with periodic checks if the content needs to be refreshed. All newsfeed content is hosted remotely. -|{kib-repo}blob/{branch}/src/plugins/no_data_page/README.md[noDataPage] +|{kib-repo}blob/{branch}/src/platform/plugins/private/no_data_page/README.md[noDataPage] |Helps to globally configure the no data page components diff --git a/package.json b/package.json index 6d5cc0fd47e9c..4eaefa8f14ef5 100644 --- a/package.json +++ b/package.json @@ -688,7 +688,7 @@ "@kbn/navigation-plugin": "link:src/platform/plugins/shared/navigation", "@kbn/newsfeed-plugin": "link:src/plugins/newsfeed", "@kbn/newsfeed-test-plugin": "link:test/common/plugins/newsfeed", - "@kbn/no-data-page-plugin": "link:src/plugins/no_data_page", + "@kbn/no-data-page-plugin": "link:src/platform/plugins/private/no_data_page", "@kbn/notifications-plugin": "link:x-pack/plugins/notifications", "@kbn/object-versioning": "link:packages/kbn-object-versioning", "@kbn/object-versioning-utils": "link:packages/kbn-object-versioning-utils", diff --git a/src/plugins/no_data_page/README.md b/src/platform/plugins/private/no_data_page/README.md similarity index 100% rename from src/plugins/no_data_page/README.md rename to src/platform/plugins/private/no_data_page/README.md diff --git a/src/plugins/no_data_page/jest.config.js b/src/platform/plugins/private/no_data_page/jest.config.js similarity index 71% rename from src/plugins/no_data_page/jest.config.js rename to src/platform/plugins/private/no_data_page/jest.config.js index 958688afb9bc7..af20a2afa1e33 100644 --- a/src/plugins/no_data_page/jest.config.js +++ b/src/platform/plugins/private/no_data_page/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/no_data_page'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/no_data_page', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/no_data_page'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/no_data_page', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/no_data_page/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/private/no_data_page/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/src/plugins/no_data_page/kibana.jsonc b/src/platform/plugins/private/no_data_page/kibana.jsonc similarity index 100% rename from src/plugins/no_data_page/kibana.jsonc rename to src/platform/plugins/private/no_data_page/kibana.jsonc diff --git a/src/plugins/no_data_page/public/index.ts b/src/platform/plugins/private/no_data_page/public/index.ts similarity index 100% rename from src/plugins/no_data_page/public/index.ts rename to src/platform/plugins/private/no_data_page/public/index.ts diff --git a/src/plugins/no_data_page/public/mocks/index.ts b/src/platform/plugins/private/no_data_page/public/mocks/index.ts similarity index 100% rename from src/plugins/no_data_page/public/mocks/index.ts rename to src/platform/plugins/private/no_data_page/public/mocks/index.ts diff --git a/src/plugins/no_data_page/public/plugin.ts b/src/platform/plugins/private/no_data_page/public/plugin.ts similarity index 100% rename from src/plugins/no_data_page/public/plugin.ts rename to src/platform/plugins/private/no_data_page/public/plugin.ts diff --git a/src/plugins/no_data_page/public/types.ts b/src/platform/plugins/private/no_data_page/public/types.ts similarity index 100% rename from src/plugins/no_data_page/public/types.ts rename to src/platform/plugins/private/no_data_page/public/types.ts diff --git a/src/plugins/no_data_page/server/config.ts b/src/platform/plugins/private/no_data_page/server/config.ts similarity index 100% rename from src/plugins/no_data_page/server/config.ts rename to src/platform/plugins/private/no_data_page/server/config.ts diff --git a/src/plugins/no_data_page/server/index.ts b/src/platform/plugins/private/no_data_page/server/index.ts similarity index 100% rename from src/plugins/no_data_page/server/index.ts rename to src/platform/plugins/private/no_data_page/server/index.ts diff --git a/src/plugins/no_data_page/tsconfig.json b/src/platform/plugins/private/no_data_page/tsconfig.json similarity index 85% rename from src/plugins/no_data_page/tsconfig.json rename to src/platform/plugins/private/no_data_page/tsconfig.json index e92a0c1560380..ff20b7aa0ed9b 100644 --- a/src/plugins/no_data_page/tsconfig.json +++ b/src/platform/plugins/private/no_data_page/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 6303bda8bf962..ef66fc3d87fb4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1310,8 +1310,8 @@ "@kbn/newsfeed-plugin/*": ["src/plugins/newsfeed/*"], "@kbn/newsfeed-test-plugin": ["test/common/plugins/newsfeed"], "@kbn/newsfeed-test-plugin/*": ["test/common/plugins/newsfeed/*"], - "@kbn/no-data-page-plugin": ["src/plugins/no_data_page"], - "@kbn/no-data-page-plugin/*": ["src/plugins/no_data_page/*"], + "@kbn/no-data-page-plugin": ["src/platform/plugins/private/no_data_page"], + "@kbn/no-data-page-plugin/*": ["src/platform/plugins/private/no_data_page/*"], "@kbn/notifications-plugin": ["x-pack/plugins/notifications"], "@kbn/notifications-plugin/*": ["x-pack/plugins/notifications/*"], "@kbn/object-versioning": ["packages/kbn-object-versioning"], diff --git a/yarn.lock b/yarn.lock index a1fdd92a03532..b28a0117af224 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6437,7 +6437,7 @@ version "0.0.0" uid "" -"@kbn/no-data-page-plugin@link:src/plugins/no_data_page": +"@kbn/no-data-page-plugin@link:src/platform/plugins/private/no_data_page": version "0.0.0" uid "" From df2e448d668b51c7602325d0d64957be981cc915 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:17:27 +0100 Subject: [PATCH 16/43] Relocating module `@kbn/notifications-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- .../plugins/shared}/notifications/README.mdx | 0 .../plugins/shared}/notifications/common/index.ts | 0 .../plugins/shared}/notifications/jest.config.js | 8 ++++---- .../plugins/shared}/notifications/kibana.jsonc | 0 .../plugins/shared}/notifications/server/config/config.ts | 0 .../plugins/shared}/notifications/server/config/index.ts | 0 .../plugins/shared}/notifications/server/index.ts | 0 .../plugins/shared}/notifications/server/mocks.ts | 0 .../plugins/shared}/notifications/server/plugin.test.ts | 0 .../plugins/shared}/notifications/server/plugin.ts | 0 .../server/services/connectors_email_service.test.ts | 0 .../server/services/connectors_email_service.ts | 0 .../services/connectors_email_service_provider.test.ts | 0 .../server/services/connectors_email_service_provider.ts | 0 .../shared}/notifications/server/services/index.ts | 0 .../server/services/licensed_email_service.test.ts | 0 .../server/services/licensed_email_service.ts | 0 .../shared}/notifications/server/services/types.ts | 0 .../plugins/shared}/notifications/server/types.ts | 0 .../plugins/shared}/notifications/tsconfig.json | 2 +- yarn.lock | 2 +- 25 files changed, 11 insertions(+), 11 deletions(-) rename x-pack/{plugins => platform/plugins/shared}/notifications/README.mdx (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/jest.config.js (61%) rename x-pack/{plugins => platform/plugins/shared}/notifications/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/config/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/config/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/services/connectors_email_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/services/connectors_email_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/services/connectors_email_service_provider.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/services/connectors_email_service_provider.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/services/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/services/licensed_email_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/services/licensed_email_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/services/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/notifications/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7faf831fd6b87..c6a576b7cda82 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -866,6 +866,7 @@ x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management x-pack/platform/plugins/shared/integration_assistant @elastic/security-scalability x-pack/platform/plugins/shared/license_management @elastic/kibana-management x-pack/platform/plugins/shared/ml @elastic/ml-ui +x-pack/platform/plugins/shared/notifications @elastic/appex-sharedux x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant @elastic/obs-ai-assistant x-pack/platform/plugins/shared/osquery @elastic/security-defend-workflows x-pack/platform/plugins/shared/screenshotting @elastic/kibana-reporting-services @@ -900,7 +901,6 @@ x-pack/plugins/logstash @elastic/logstash x-pack/plugins/maps @elastic/kibana-presentation x-pack/plugins/monitoring @elastic/stack-monitoring x-pack/plugins/monitoring_collection @elastic/stack-monitoring -x-pack/plugins/notifications @elastic/appex-sharedux x-pack/plugins/observability_solution/apm @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/apm_data_access @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/apm/ftr_e2e @elastic/obs-ux-infra_services-team diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 0828d9e870557..b14efc85b0a24 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -740,7 +740,7 @@ Elastic. |This plugin allows for other plugins to add data to Kibana stack monitoring documents. -|{kib-repo}blob/{branch}/x-pack/plugins/notifications/README.mdx[notifications] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/notifications/README.mdx[notifications] |The Notifications plugin provides a set of services to help Solutions and plugins send notifications to users. diff --git a/package.json b/package.json index 4eaefa8f14ef5..d1354a12dd5d4 100644 --- a/package.json +++ b/package.json @@ -689,7 +689,7 @@ "@kbn/newsfeed-plugin": "link:src/plugins/newsfeed", "@kbn/newsfeed-test-plugin": "link:test/common/plugins/newsfeed", "@kbn/no-data-page-plugin": "link:src/platform/plugins/private/no_data_page", - "@kbn/notifications-plugin": "link:x-pack/plugins/notifications", + "@kbn/notifications-plugin": "link:x-pack/platform/plugins/shared/notifications", "@kbn/object-versioning": "link:packages/kbn-object-versioning", "@kbn/object-versioning-utils": "link:packages/kbn-object-versioning-utils", "@kbn/observability-ai-assistant-app-plugin": "link:x-pack/solutions/observability/plugins/observability_ai_assistant_app", diff --git a/tsconfig.base.json b/tsconfig.base.json index ef66fc3d87fb4..85df495a6d890 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1312,8 +1312,8 @@ "@kbn/newsfeed-test-plugin/*": ["test/common/plugins/newsfeed/*"], "@kbn/no-data-page-plugin": ["src/platform/plugins/private/no_data_page"], "@kbn/no-data-page-plugin/*": ["src/platform/plugins/private/no_data_page/*"], - "@kbn/notifications-plugin": ["x-pack/plugins/notifications"], - "@kbn/notifications-plugin/*": ["x-pack/plugins/notifications/*"], + "@kbn/notifications-plugin": ["x-pack/platform/plugins/shared/notifications"], + "@kbn/notifications-plugin/*": ["x-pack/platform/plugins/shared/notifications/*"], "@kbn/object-versioning": ["packages/kbn-object-versioning"], "@kbn/object-versioning/*": ["packages/kbn-object-versioning/*"], "@kbn/object-versioning-utils": ["packages/kbn-object-versioning-utils"], diff --git a/x-pack/plugins/notifications/README.mdx b/x-pack/platform/plugins/shared/notifications/README.mdx similarity index 100% rename from x-pack/plugins/notifications/README.mdx rename to x-pack/platform/plugins/shared/notifications/README.mdx diff --git a/x-pack/plugins/notifications/common/index.ts b/x-pack/platform/plugins/shared/notifications/common/index.ts similarity index 100% rename from x-pack/plugins/notifications/common/index.ts rename to x-pack/platform/plugins/shared/notifications/common/index.ts diff --git a/x-pack/plugins/notifications/jest.config.js b/x-pack/platform/plugins/shared/notifications/jest.config.js similarity index 61% rename from x-pack/plugins/notifications/jest.config.js rename to x-pack/platform/plugins/shared/notifications/jest.config.js index b19a8f2efe334..f0e6e54f95bca 100644 --- a/x-pack/plugins/notifications/jest.config.js +++ b/x-pack/platform/plugins/shared/notifications/jest.config.js @@ -7,9 +7,9 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../..', - roots: ['/x-pack/plugins/notifications'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/notifications', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/notifications'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/notifications', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/notifications/{common,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: ['/x-pack/platform/plugins/shared/notifications/{common,server}/**/*.{js,ts,tsx}'], }; diff --git a/x-pack/plugins/notifications/kibana.jsonc b/x-pack/platform/plugins/shared/notifications/kibana.jsonc similarity index 100% rename from x-pack/plugins/notifications/kibana.jsonc rename to x-pack/platform/plugins/shared/notifications/kibana.jsonc diff --git a/x-pack/plugins/notifications/server/config/config.ts b/x-pack/platform/plugins/shared/notifications/server/config/config.ts similarity index 100% rename from x-pack/plugins/notifications/server/config/config.ts rename to x-pack/platform/plugins/shared/notifications/server/config/config.ts diff --git a/x-pack/plugins/notifications/server/config/index.ts b/x-pack/platform/plugins/shared/notifications/server/config/index.ts similarity index 100% rename from x-pack/plugins/notifications/server/config/index.ts rename to x-pack/platform/plugins/shared/notifications/server/config/index.ts diff --git a/x-pack/plugins/notifications/server/index.ts b/x-pack/platform/plugins/shared/notifications/server/index.ts similarity index 100% rename from x-pack/plugins/notifications/server/index.ts rename to x-pack/platform/plugins/shared/notifications/server/index.ts diff --git a/x-pack/plugins/notifications/server/mocks.ts b/x-pack/platform/plugins/shared/notifications/server/mocks.ts similarity index 100% rename from x-pack/plugins/notifications/server/mocks.ts rename to x-pack/platform/plugins/shared/notifications/server/mocks.ts diff --git a/x-pack/plugins/notifications/server/plugin.test.ts b/x-pack/platform/plugins/shared/notifications/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/notifications/server/plugin.test.ts rename to x-pack/platform/plugins/shared/notifications/server/plugin.test.ts diff --git a/x-pack/plugins/notifications/server/plugin.ts b/x-pack/platform/plugins/shared/notifications/server/plugin.ts similarity index 100% rename from x-pack/plugins/notifications/server/plugin.ts rename to x-pack/platform/plugins/shared/notifications/server/plugin.ts diff --git a/x-pack/plugins/notifications/server/services/connectors_email_service.test.ts b/x-pack/platform/plugins/shared/notifications/server/services/connectors_email_service.test.ts similarity index 100% rename from x-pack/plugins/notifications/server/services/connectors_email_service.test.ts rename to x-pack/platform/plugins/shared/notifications/server/services/connectors_email_service.test.ts diff --git a/x-pack/plugins/notifications/server/services/connectors_email_service.ts b/x-pack/platform/plugins/shared/notifications/server/services/connectors_email_service.ts similarity index 100% rename from x-pack/plugins/notifications/server/services/connectors_email_service.ts rename to x-pack/platform/plugins/shared/notifications/server/services/connectors_email_service.ts diff --git a/x-pack/plugins/notifications/server/services/connectors_email_service_provider.test.ts b/x-pack/platform/plugins/shared/notifications/server/services/connectors_email_service_provider.test.ts similarity index 100% rename from x-pack/plugins/notifications/server/services/connectors_email_service_provider.test.ts rename to x-pack/platform/plugins/shared/notifications/server/services/connectors_email_service_provider.test.ts diff --git a/x-pack/plugins/notifications/server/services/connectors_email_service_provider.ts b/x-pack/platform/plugins/shared/notifications/server/services/connectors_email_service_provider.ts similarity index 100% rename from x-pack/plugins/notifications/server/services/connectors_email_service_provider.ts rename to x-pack/platform/plugins/shared/notifications/server/services/connectors_email_service_provider.ts diff --git a/x-pack/plugins/notifications/server/services/index.ts b/x-pack/platform/plugins/shared/notifications/server/services/index.ts similarity index 100% rename from x-pack/plugins/notifications/server/services/index.ts rename to x-pack/platform/plugins/shared/notifications/server/services/index.ts diff --git a/x-pack/plugins/notifications/server/services/licensed_email_service.test.ts b/x-pack/platform/plugins/shared/notifications/server/services/licensed_email_service.test.ts similarity index 100% rename from x-pack/plugins/notifications/server/services/licensed_email_service.test.ts rename to x-pack/platform/plugins/shared/notifications/server/services/licensed_email_service.test.ts diff --git a/x-pack/plugins/notifications/server/services/licensed_email_service.ts b/x-pack/platform/plugins/shared/notifications/server/services/licensed_email_service.ts similarity index 100% rename from x-pack/plugins/notifications/server/services/licensed_email_service.ts rename to x-pack/platform/plugins/shared/notifications/server/services/licensed_email_service.ts diff --git a/x-pack/plugins/notifications/server/services/types.ts b/x-pack/platform/plugins/shared/notifications/server/services/types.ts similarity index 100% rename from x-pack/plugins/notifications/server/services/types.ts rename to x-pack/platform/plugins/shared/notifications/server/services/types.ts diff --git a/x-pack/plugins/notifications/server/types.ts b/x-pack/platform/plugins/shared/notifications/server/types.ts similarity index 100% rename from x-pack/plugins/notifications/server/types.ts rename to x-pack/platform/plugins/shared/notifications/server/types.ts diff --git a/x-pack/plugins/notifications/tsconfig.json b/x-pack/platform/plugins/shared/notifications/tsconfig.json similarity index 90% rename from x-pack/plugins/notifications/tsconfig.json rename to x-pack/platform/plugins/shared/notifications/tsconfig.json index a3230dfa321b1..e30c81d43c7c2 100644 --- a/x-pack/plugins/notifications/tsconfig.json +++ b/x-pack/platform/plugins/shared/notifications/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/yarn.lock b/yarn.lock index b28a0117af224..7b791046ef30a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6441,7 +6441,7 @@ version "0.0.0" uid "" -"@kbn/notifications-plugin@link:x-pack/plugins/notifications": +"@kbn/notifications-plugin@link:x-pack/platform/plugins/shared/notifications": version "0.0.0" uid "" From a64deb76dd7793f26f09ff832f04774e904c8197 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:18:49 +0100 Subject: [PATCH 17/43] Relocating module `@kbn/reporting-plugin` --- .eslintignore | 4 +- .github/CODEOWNERS | 4 +- docs/developer/plugin-list.asciidoc | 2 +- legacy_rfcs/text/0020_nodejs_clustering.md | 2 +- package.json | 2 +- .../__tests__/mocks/team_assign_mock.txt | 38 +++++++++---------- .../__tests__/transforms.test.js | 10 ++--- tsconfig.base.json | 4 +- x-pack/.gitignore | 4 +- x-pack/.i18nrc.json | 2 +- x-pack/build_chromium/README.md | 4 +- .../plugins/private}/reporting/.gitignore | 0 .../plugins/private}/reporting/README.md | 0 .../private}/reporting/common/constants.ts | 0 .../errors/map_to_reporting_error.test.ts | 0 .../common/errors/map_to_reporting_error.ts | 2 +- .../private}/reporting/common/job_utils.ts | 0 .../private}/reporting/common/poller.ts | 0 .../reporting/common/test/fixtures.ts | 0 .../private}/reporting/common/test/index.ts | 0 .../private}/reporting/common/test/types.ts | 0 .../private}/reporting/common/types.ts | 0 .../plugins/private}/reporting/jest.config.js | 8 ++-- .../reporting/jest.integration.config.js | 4 +- .../plugins/private}/reporting/kibana.jsonc | 0 .../private}/reporting/public/index.ts | 0 .../__snapshots__/stream_handler.test.ts.snap | 0 .../public/lib/default_status_context.tsx | 0 .../public/lib/ilm_policy_status_context.tsx | 0 .../private}/reporting/public/lib/job.test.ts | 0 .../public/lib/job_queue_client.test.mocks.ts | 0 .../public/lib/stream_handler.test.ts | 0 .../reporting/public/lib/stream_handler.ts | 0 .../public/management/__test__/index.ts | 0 .../__test__/report_listing.test.helpers.tsx | 0 .../management/components/ilm_policy_link.tsx | 0 .../public/management/components/index.ts | 0 .../get_console_text_pit.ts | 0 .../get_console_text_scroll.ts | 0 .../inspect_in_console_button.tsx | 0 .../ilm_policy_migration_needed_callout.tsx | 0 .../migrate_ilm_policy_callout/index.tsx | 0 .../components/report_delete_button.test.tsx | 0 .../components/report_delete_button.tsx | 0 .../components/report_diagnostic.test.tsx | 0 .../components/report_diagnostic.tsx | 0 .../components/report_info_button.tsx | 0 .../components/report_info_flyout.tsx | 0 .../components/report_info_flyout_content.tsx | 0 .../components/report_status_indicator.tsx | 0 .../default/report_listing_default.tsx | 0 .../reporting/public/management/index.ts | 0 .../management/mount_management_section.tsx | 0 .../public/management/report_listing.scss | 0 .../public/management/report_listing.test.ts | 0 .../public/management/report_listing.tsx | 0 .../management/report_listing_table.tsx | 0 .../stateful/report_listing_stateful.tsx | 0 .../reporting/public/management/utils.ts | 0 .../private}/reporting/public/mocks.ts | 0 .../public/notifier/general_error.tsx | 0 .../reporting/public/notifier/index.ts | 0 .../public/notifier/job_download_button.tsx | 0 .../reporting/public/notifier/job_failure.tsx | 0 .../reporting/public/notifier/job_success.tsx | 0 .../reporting/public/notifier/job_warning.tsx | 0 .../public/notifier/job_warning_formulas.tsx | 0 .../public/notifier/job_warning_max_size.tsx | 0 .../reporting/public/notifier/report_link.tsx | 0 .../private}/reporting/public/plugin.ts | 0 .../reporting/public/redirect/index.ts | 0 .../public/redirect/mount_redirect_app.tsx | 0 .../public/redirect/redirect_app.scss | 0 .../public/redirect/redirect_app.tsx | 0 .../reporting/public/shared_i18n_texts.tsx | 0 .../reporting/public/shared_imports.ts | 0 .../private}/reporting/public/types.ts | 0 .../server/config/create_config.test.ts | 0 .../reporting/server/config/create_config.ts | 0 .../private}/reporting/server/config/index.ts | 0 .../server/config/ui_settings.test.ts | 0 .../reporting/server/config/ui_settings.ts | 0 .../plugins/private}/reporting/server/core.ts | 0 .../reporting/server/deprecations/index.ts | 0 ...igrate_existing_indices_ilm_policy.test.ts | 0 .../migrate_existing_indices_ilm_policy.ts | 0 .../private}/reporting/server/features.ts | 0 .../private}/reporting/server/index.ts | 0 .../server/lib/check_params_version.ts | 0 .../server/lib/content_stream.test.ts | 0 .../reporting/server/lib/content_stream.ts | 0 .../server/lib/deprecations/index.ts | 0 .../server/lib/deprecations/types.ts | 0 .../server/lib/event_logger/adapter.test.ts | 0 .../server/lib/event_logger/adapter.ts | 0 .../server/lib/event_logger/index.ts | 0 .../server/lib/event_logger/logger.test.ts | 0 .../server/lib/event_logger/logger.ts | 0 .../server/lib/event_logger/types.ts | 0 .../server/lib/export_types_registry.test.js | 0 .../private}/reporting/server/lib/index.ts | 0 .../server/lib/passthrough_stream.test.ts | 0 .../server/lib/passthrough_stream.ts | 0 .../ilm_policy_manager/ilm_policy_manager.ts | 0 .../lib/store/ilm_policy_manager/index.ts | 0 .../reporting/server/lib/store/index.ts | 0 .../reporting/server/lib/store/report.test.ts | 0 .../reporting/server/lib/store/report.ts | 0 .../server/lib/store/runtime_fields.ts | 0 .../server/lib/store/saved_report.test.ts | 0 .../server/lib/store/saved_report.ts | 0 .../reporting/server/lib/store/store.test.ts | 0 .../reporting/server/lib/store/store.ts | 0 .../server/lib/tasks/error_logger.test.ts | 0 .../server/lib/tasks/error_logger.ts | 0 .../server/lib/tasks/execute_report.test.ts | 0 .../server/lib/tasks/execute_report.ts | 0 .../reporting/server/lib/tasks/index.ts | 0 .../private}/reporting/server/lib/trace.ts | 0 .../private}/reporting/server/mocks/index.ts | 0 .../private}/reporting/server/plugin.test.ts | 0 .../private}/reporting/server/plugin.ts | 0 .../authorized_user_pre_routing.test.ts | 0 .../common/authorized_user_pre_routing.ts | 0 .../server/routes/common/generate/index.ts | 0 .../common/generate/request_handler.test.ts | 0 .../routes/common/generate/request_handler.ts | 0 .../server/routes/common/get_counter.ts | 0 .../server/routes/common/get_user.ts | 0 .../reporting/server/routes/common/index.ts | 0 .../server/routes/common/jobs/constants.ts | 0 .../common/jobs/get_document_payload.test.ts | 0 .../common/jobs/get_document_payload.ts | 0 .../routes/common/jobs/get_job_routes.ts | 0 .../server/routes/common/jobs/index.ts | 0 .../jobs/job_management_pre_routing.test.ts | 0 .../common/jobs/job_management_pre_routing.ts | 0 .../routes/common/jobs/jobs_query.test.ts | 0 .../server/routes/common/jobs/jobs_query.ts | 0 .../private}/reporting/server/routes/index.ts | 0 .../internal/deprecations/deprecations.ts | 0 .../integration_tests/deprecations.test.ts | 0 .../routes/internal/diagnostic/browser.ts | 0 .../routes/internal/diagnostic/index.ts | 0 .../integration_tests/browser.test.ts | 0 .../generate/generate_from_jobparams.ts | 0 .../generation_from_jobparams.test.ts | 0 .../management/integration_tests/jobs.test.ts | 0 .../server/routes/internal/management/jobs.ts | 0 .../routes/public/generate_from_jobparams.ts | 0 .../generation_from_jobparams.test.ts | 0 .../public/integration_tests/jobs.test.ts | 0 .../reporting/server/routes/public/jobs.ts | 0 .../create_mock_reportingplugin.ts | 0 .../reporting/server/test_helpers/index.ts | 0 .../private}/reporting/server/types.ts | 0 .../server/usage/collection_schema.test.ts | 0 .../server/usage/collection_schema.ts | 0 .../reporting/server/usage/event_tracker.ts | 0 .../private}/reporting/server/usage/index.ts | 0 .../server/usage/register_event_types.ts | 0 .../usage/reporting_usage_collector.test.ts | 0 .../server/usage/reporting_usage_collector.ts | 0 .../plugins/private}/reporting/tsconfig.json | 4 +- .../canvas/storybook/canvas_webpack.ts | 2 +- yarn.lock | 2 +- 166 files changed, 49 insertions(+), 49 deletions(-) rename x-pack/{plugins => platform/plugins/private}/reporting/.gitignore (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/common/constants.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/common/errors/map_to_reporting_error.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/common/errors/map_to_reporting_error.ts (97%) rename x-pack/{plugins => platform/plugins/private}/reporting/common/job_utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/common/poller.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/common/test/fixtures.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/common/test/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/common/test/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/jest.config.js (64%) rename x-pack/{plugins => platform/plugins/private}/reporting/jest.integration.config.js (76%) rename x-pack/{plugins => platform/plugins/private}/reporting/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/lib/__snapshots__/stream_handler.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/lib/default_status_context.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/lib/ilm_policy_status_context.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/lib/job.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/lib/job_queue_client.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/lib/stream_handler.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/lib/stream_handler.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/__test__/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/__test__/report_listing.test.helpers.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/ilm_policy_link.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/inspect_in_console_button/get_console_text_pit.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/inspect_in_console_button/get_console_text_scroll.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/inspect_in_console_button/inspect_in_console_button.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/migrate_ilm_policy_callout/ilm_policy_migration_needed_callout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/migrate_ilm_policy_callout/index.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/report_delete_button.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/report_delete_button.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/report_diagnostic.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/report_diagnostic.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/report_info_button.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/report_info_flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/report_info_flyout_content.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/components/report_status_indicator.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/default/report_listing_default.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/mount_management_section.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/report_listing.scss (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/report_listing.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/report_listing.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/report_listing_table.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/stateful/report_listing_stateful.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/management/utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/notifier/general_error.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/notifier/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/notifier/job_download_button.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/notifier/job_failure.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/notifier/job_success.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/notifier/job_warning.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/notifier/job_warning_formulas.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/notifier/job_warning_max_size.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/notifier/report_link.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/redirect/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/redirect/mount_redirect_app.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/redirect/redirect_app.scss (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/redirect/redirect_app.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/shared_i18n_texts.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/shared_imports.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/config/create_config.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/config/create_config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/config/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/config/ui_settings.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/config/ui_settings.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/core.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/deprecations/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/deprecations/migrate_existing_indices_ilm_policy.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/deprecations/migrate_existing_indices_ilm_policy.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/features.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/check_params_version.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/content_stream.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/content_stream.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/deprecations/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/deprecations/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/event_logger/adapter.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/event_logger/adapter.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/event_logger/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/event_logger/logger.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/event_logger/logger.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/event_logger/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/export_types_registry.test.js (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/passthrough_stream.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/passthrough_stream.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/ilm_policy_manager/ilm_policy_manager.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/ilm_policy_manager/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/report.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/report.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/runtime_fields.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/saved_report.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/saved_report.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/store.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/store/store.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/tasks/error_logger.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/tasks/error_logger.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/tasks/execute_report.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/tasks/execute_report.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/tasks/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/lib/trace.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/mocks/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/authorized_user_pre_routing.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/authorized_user_pre_routing.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/generate/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/generate/request_handler.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/generate/request_handler.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/get_counter.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/get_user.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/jobs/constants.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/jobs/get_document_payload.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/jobs/get_document_payload.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/jobs/get_job_routes.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/jobs/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/jobs/job_management_pre_routing.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/jobs/job_management_pre_routing.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/jobs/jobs_query.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/common/jobs/jobs_query.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/internal/deprecations/deprecations.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/internal/deprecations/integration_tests/deprecations.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/internal/diagnostic/browser.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/internal/diagnostic/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/internal/diagnostic/integration_tests/browser.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/internal/generate/generate_from_jobparams.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/internal/generate/integration_tests/generation_from_jobparams.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/internal/management/integration_tests/jobs.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/internal/management/jobs.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/public/generate_from_jobparams.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/public/integration_tests/generation_from_jobparams.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/public/integration_tests/jobs.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/routes/public/jobs.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/test_helpers/create_mock_reportingplugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/test_helpers/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/usage/collection_schema.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/usage/collection_schema.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/usage/event_tracker.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/usage/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/usage/register_event_types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/usage/reporting_usage_collector.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/server/usage/reporting_usage_collector.ts (100%) rename x-pack/{plugins => platform/plugins/private}/reporting/tsconfig.json (95%) diff --git a/.eslintignore b/.eslintignore index e2b06124e936a..d265619603300 100644 --- a/.eslintignore +++ b/.eslintignore @@ -25,8 +25,8 @@ snapshots.js /x-pack/plugins/canvas/canvas_plugin /x-pack/plugins/canvas/shareable_runtime/build /x-pack/plugins/canvas/storybook/build -/x-pack/plugins/reporting/server/export_types/printable_pdf/server/lib/pdf/assets/** -/x-pack/plugins/reporting/server/export_types/printable_pdf_v2/server/lib/pdf/assets/** +/x-pack/platform/plugins/private/reporting/server/export_types/printable_pdf/server/lib/pdf/assets/** +/x-pack/platform/plugins/private/reporting/server/export_types/printable_pdf_v2/server/lib/pdf/assets/** /x-pack/plugins/cloud_integrations/cloud_full_story/server/assets/** # package overrides diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c6a576b7cda82..bf52536062ed4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -850,6 +850,7 @@ x-pack/platform/plugins/private/index_lifecycle_management @elastic/kibana-manag x-pack/platform/plugins/private/license_api_guard @elastic/kibana-management x-pack/platform/plugins/private/painless_lab @elastic/kibana-management x-pack/platform/plugins/private/remote_clusters @elastic/kibana-management +x-pack/platform/plugins/private/reporting @elastic/appex-sharedux x-pack/platform/plugins/private/rollup @elastic/kibana-management x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management @@ -918,7 +919,6 @@ x-pack/plugins/observability_solution/observability_onboarding/e2e @elastic/obs- x-pack/plugins/observability_solution/observability_shared @elastic/observability-ui x-pack/plugins/observability_solution/profiling @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/profiling_data_access @elastic/obs-ux-infra_services-team -x-pack/plugins/reporting @elastic/appex-sharedux x-pack/plugins/rule_registry @elastic/response-ops @elastic/obs-ux-management-team x-pack/plugins/saved_objects_tagging @elastic/appex-sharedux x-pack/plugins/search_assistant @elastic/search-kibana @@ -1245,7 +1245,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql #CC# /src/platform/plugins/shared/home/public @elastic/appex-sharedux #CC# /src/platform/plugins/shared/home/server/services/ @elastic/appex-sharedux #CC# /src/platform/plugins/shared/home/ @elastic/appex-sharedux -#CC# /x-pack/plugins/reporting/ @elastic/appex-sharedux +#CC# /x-pack/platform/plugins/private/reporting/ @elastic/appex-sharedux #CC# /x-pack/solutions/security/plugins/security_solution_serverless/ @elastic/appex-sharedux diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index b14efc85b0a24..466e6d4b6a177 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -796,7 +796,7 @@ Elastic. |This plugin helps users manage their remote clusters, which enable cross-cluster search and cross-cluster replication. -|{kib-repo}blob/{branch}/x-pack/plugins/reporting/README.md[reporting] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/reporting/README.md[reporting] |An awesome Kibana reporting plugin diff --git a/legacy_rfcs/text/0020_nodejs_clustering.md b/legacy_rfcs/text/0020_nodejs_clustering.md index 9ee5d764c8de1..99da77989bfc6 100644 --- a/legacy_rfcs/text/0020_nodejs_clustering.md +++ b/legacy_rfcs/text/0020_nodejs_clustering.md @@ -571,7 +571,7 @@ Kibana instance, only one worker should have polling enabled. #### Reporting We will probably want to restrict to a single headless per Kibana instance. For that, we will have to change the logic -in [createQueueFactory](https://github.com/elastic/kibana/blob/4584a8b570402aa07832cf3e5b520e5d2cfa7166/x-pack/plugins/reporting/server/lib/create_queue.ts#L60-L64) +in [createQueueFactory](https://github.com/elastic/kibana/blob/4584a8b570402aa07832cf3e5b520e5d2cfa7166/x-pack/platform/plugins/private/reporting/server/lib/create_queue.ts#L60-L64) to only have the 'main' worker be polling for reporting tasks. #### Telemetry diff --git a/package.json b/package.json index d1354a12dd5d4..1b6d421fd5117 100644 --- a/package.json +++ b/package.json @@ -756,7 +756,7 @@ "@kbn/reporting-export-types-png": "link:packages/kbn-reporting/export_types/png", "@kbn/reporting-export-types-png-common": "link:packages/kbn-reporting/export_types/png_common", "@kbn/reporting-mocks-server": "link:packages/kbn-reporting/mocks_server", - "@kbn/reporting-plugin": "link:x-pack/plugins/reporting", + "@kbn/reporting-plugin": "link:x-pack/platform/plugins/private/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", 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 b04178ec71c6f..ab242e46481f8 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 @@ -139,25 +139,25 @@ x-pack/plugins/lens/public/indexpattern_datasource/indexpattern.tsx kibana-app x-pack/plugins/lens/public/indexpattern_datasource/indexpattern_suggestions.test.tsx kibana-app x-pack/plugins/lens/public/indexpattern_datasource/indexpattern_suggestions.ts kibana-app x-pack/plugins/lens/public/indexpattern_datasource/layerpanel.test.tsx kibana-app -x-pack/plugins/reporting/server/browsers/download/clean.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/download/download.test.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/download/download.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/download/ensure_downloaded.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/download/index.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/download/util.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/extract/extract.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/extract/extract_error.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/extract/index.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/extract/unzip.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/index.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/install.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/network_policy.test.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/network_policy.ts kibana-reporting -x-pack/plugins/reporting/server/browsers/safe_child_process.ts kibana-reporting -x-pack/plugins/reporting/server/config/config.ts kibana-reporting -x-pack/plugins/reporting/server/config/create_config.test.ts kibana-reporting -x-pack/plugins/reporting/server/config/create_config.ts kibana-reporting -x-pack/plugins/reporting/server/config/default_chromium_sandbox_disabled.test.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/download/clean.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/download/download.test.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/download/download.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/download/ensure_downloaded.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/download/index.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/download/util.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/extract/extract.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/extract/extract_error.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/extract/index.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/extract/unzip.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/index.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/install.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/network_policy.test.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/network_policy.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/browsers/safe_child_process.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/config/config.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/config/create_config.test.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/config/create_config.ts kibana-reporting +x-pack/platform/plugins/private/reporting/server/config/default_chromium_sandbox_disabled.test.ts kibana-reporting x-pack/plugins/lens/public/indexpattern_datasource/layerpanel.tsx kibana-app x-pack/plugins/lens/public/indexpattern_datasource/lens_field_icon.test.tsx kibana-app x-pack/plugins/lens/public/indexpattern_datasource/lens_field_icon.tsx kibana-app diff --git a/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js b/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js index 7035b8bad93fd..3bf836c883068 100644 --- a/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js +++ b/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js @@ -33,13 +33,13 @@ describe(`Transform fns`, () => { it(`should remove the jenkins workspace path`, () => { const obj = { staticSiteUrl: - '/var/lib/jenkins/workspace/elastic+kibana+code-coverage/kibana/x-pack/plugins/reporting/server/browsers/extract/unzip.ts', + '/var/lib/jenkins/workspace/elastic+kibana+code-coverage/kibana/x-pack/platform/plugins/private/reporting/server/browsers/extract/unzip.ts', COVERAGE_INGESTION_KIBANA_ROOT: '/var/lib/jenkins/workspace/elastic+kibana+code-coverage/kibana', }; expect(coveredFilePath(obj)).toHaveProperty( 'coveredFilePath', - 'x-pack/plugins/reporting/server/browsers/extract/unzip.ts' + 'x-pack/platform/plugins/private/reporting/server/browsers/extract/unzip.ts' ); }); }); @@ -47,13 +47,13 @@ describe(`Transform fns`, () => { it(`should remove the jenkins workspace path`, () => { const obj = { staticSiteUrl: - '/var/lib/jenkins/workspace/elastic+kibana+qa-research/kibana/x-pack/plugins/reporting/server/browsers/extract/unzip.ts', + '/var/lib/jenkins/workspace/elastic+kibana+qa-research/kibana/x-pack/platform/plugins/private/reporting/server/browsers/extract/unzip.ts', COVERAGE_INGESTION_KIBANA_ROOT: '/var/lib/jenkins/workspace/elastic+kibana+qa-research/kibana', }; expect(coveredFilePath(obj)).toHaveProperty( 'coveredFilePath', - 'x-pack/plugins/reporting/server/browsers/extract/unzip.ts' + 'x-pack/platform/plugins/private/reporting/server/browsers/extract/unzip.ts' ); }); }); @@ -83,7 +83,7 @@ describe(`Transform fns`, () => { describe(`teamAssignment`, () => { const teamAssignmentsPathMOCK = 'src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt'; - const coveredFilePath = 'x-pack/plugins/reporting/server/browsers/extract/unzip.ts'; + const coveredFilePath = 'x-pack/platform/plugins/private/reporting/server/browsers/extract/unzip.ts'; const obj = { coveredFilePath }; const log = new ToolingLog({ level: 'info', diff --git a/tsconfig.base.json b/tsconfig.base.json index 85df495a6d890..8a457cf16a320 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1482,8 +1482,8 @@ "@kbn/reporting-export-types-png-common/*": ["packages/kbn-reporting/export_types/png_common/*"], "@kbn/reporting-mocks-server": ["packages/kbn-reporting/mocks_server"], "@kbn/reporting-mocks-server/*": ["packages/kbn-reporting/mocks_server/*"], - "@kbn/reporting-plugin": ["x-pack/plugins/reporting"], - "@kbn/reporting-plugin/*": ["x-pack/plugins/reporting/*"], + "@kbn/reporting-plugin": ["x-pack/platform/plugins/private/reporting"], + "@kbn/reporting-plugin/*": ["x-pack/platform/plugins/private/reporting/*"], "@kbn/reporting-public": ["packages/kbn-reporting/public"], "@kbn/reporting-public/*": ["packages/kbn-reporting/public/*"], "@kbn/reporting-server": ["packages/kbn-reporting/server"], diff --git a/x-pack/.gitignore b/x-pack/.gitignore index b8d3255bbefd4..b974877d2723b 100644 --- a/x-pack/.gitignore +++ b/x-pack/.gitignore @@ -9,8 +9,8 @@ # TODO remove once all of the modules have been relocated # we keep them around to avoid conflicts derived of merge commits, # suddenly adding a huge amount of files due to these rules being outdated -/plugins/reporting/.chromium/ -/plugins/reporting/.phantom/ +/platform/plugins/private/reporting/.chromium/ +/platform/plugins/private/reporting/.phantom/ /plugins/screenshotting/.chromium/ /plugins/screenshotting/chromium/ diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 7a4eb6c029a36..85639b2e48c1a 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -121,7 +121,7 @@ ], "xpack.remoteClusters": "platform/plugins/private/remote_clusters", "xpack.reporting": [ - "plugins/reporting" + "platform/plugins/private/reporting" ], "xpack.rollupJobs": [ "platform/packages/private/rollup", diff --git a/x-pack/build_chromium/README.md b/x-pack/build_chromium/README.md index 15d335077f7f0..eeb53a62743ec 100644 --- a/x-pack/build_chromium/README.md +++ b/x-pack/build_chromium/README.md @@ -65,7 +65,7 @@ node scripts/chromium_version.js [PuppeteerVersion] ``` When bumping the Puppeteer version, make sure you also update the `ChromiumArchivePaths.revision` variable in -`x-pack/plugins/reporting/server/browsers/chromium/paths.ts`. +`x-pack/platform/plugins/private/reporting/server/browsers/chromium/paths.ts`. In some cases the revision number might not be available for the darwin or windows builds in `https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html`. For example, 1181205 was not available for darwin arm64 or windows. In that case, the next available revision numbers 1181286 and 1181280 were used. @@ -103,7 +103,7 @@ Here's the steps on how to test a Puppeteer upgrade, run these tests on Mac, Win - Make sure the Reporting plugin is fetching the correct version of the browser at start-up time, and that it can successfully unzip it and copy the files to - `x-pack/plugins/reporting/chromium` + `x-pack/platform/plugins/private/reporting/chromium` - Make sure there are no errors when using the **Reporting diagnostic tool** - All functional and API tests that generate PDF and PNG files should pass. - Use a VM to run Kibana in a low-memory environment and try to generate a PNG of a dashboard that outputs as a 4MB file. Document the minimum requirements in the PR. diff --git a/x-pack/plugins/reporting/.gitignore b/x-pack/platform/plugins/private/reporting/.gitignore similarity index 100% rename from x-pack/plugins/reporting/.gitignore rename to x-pack/platform/plugins/private/reporting/.gitignore diff --git a/x-pack/plugins/reporting/README.md b/x-pack/platform/plugins/private/reporting/README.md similarity index 100% rename from x-pack/plugins/reporting/README.md rename to x-pack/platform/plugins/private/reporting/README.md diff --git a/x-pack/plugins/reporting/common/constants.ts b/x-pack/platform/plugins/private/reporting/common/constants.ts similarity index 100% rename from x-pack/plugins/reporting/common/constants.ts rename to x-pack/platform/plugins/private/reporting/common/constants.ts diff --git a/x-pack/plugins/reporting/common/errors/map_to_reporting_error.test.ts b/x-pack/platform/plugins/private/reporting/common/errors/map_to_reporting_error.test.ts similarity index 100% rename from x-pack/plugins/reporting/common/errors/map_to_reporting_error.test.ts rename to x-pack/platform/plugins/private/reporting/common/errors/map_to_reporting_error.test.ts diff --git a/x-pack/plugins/reporting/common/errors/map_to_reporting_error.ts b/x-pack/platform/plugins/private/reporting/common/errors/map_to_reporting_error.ts similarity index 97% rename from x-pack/plugins/reporting/common/errors/map_to_reporting_error.ts rename to x-pack/platform/plugins/private/reporting/common/errors/map_to_reporting_error.ts index e55082e4ce3db..8a1c61a283632 100644 --- a/x-pack/plugins/reporting/common/errors/map_to_reporting_error.ts +++ b/x-pack/platform/plugins/private/reporting/common/errors/map_to_reporting_error.ts @@ -37,7 +37,7 @@ function getErrorName(error: ExecutionError | unknown): string | undefined { * Map an error object from the Screenshotting plugin into an error type of the Reporting domain. * * NOTE: each type of ReportingError code must be referenced in each applicable `errorCodesSchema*` object in - * x-pack/plugins/reporting/server/usage/schema.ts + * x-pack/platform/plugins/private/reporting/server/usage/schema.ts * * @param {unknown} error - a kind of error object * @returns {ReportingError} - the converted error object diff --git a/x-pack/plugins/reporting/common/job_utils.ts b/x-pack/platform/plugins/private/reporting/common/job_utils.ts similarity index 100% rename from x-pack/plugins/reporting/common/job_utils.ts rename to x-pack/platform/plugins/private/reporting/common/job_utils.ts diff --git a/x-pack/plugins/reporting/common/poller.ts b/x-pack/platform/plugins/private/reporting/common/poller.ts similarity index 100% rename from x-pack/plugins/reporting/common/poller.ts rename to x-pack/platform/plugins/private/reporting/common/poller.ts diff --git a/x-pack/plugins/reporting/common/test/fixtures.ts b/x-pack/platform/plugins/private/reporting/common/test/fixtures.ts similarity index 100% rename from x-pack/plugins/reporting/common/test/fixtures.ts rename to x-pack/platform/plugins/private/reporting/common/test/fixtures.ts diff --git a/x-pack/plugins/reporting/common/test/index.ts b/x-pack/platform/plugins/private/reporting/common/test/index.ts similarity index 100% rename from x-pack/plugins/reporting/common/test/index.ts rename to x-pack/platform/plugins/private/reporting/common/test/index.ts diff --git a/x-pack/plugins/reporting/common/test/types.ts b/x-pack/platform/plugins/private/reporting/common/test/types.ts similarity index 100% rename from x-pack/plugins/reporting/common/test/types.ts rename to x-pack/platform/plugins/private/reporting/common/test/types.ts diff --git a/x-pack/plugins/reporting/common/types.ts b/x-pack/platform/plugins/private/reporting/common/types.ts similarity index 100% rename from x-pack/plugins/reporting/common/types.ts rename to x-pack/platform/plugins/private/reporting/common/types.ts diff --git a/x-pack/plugins/reporting/jest.config.js b/x-pack/platform/plugins/private/reporting/jest.config.js similarity index 64% rename from x-pack/plugins/reporting/jest.config.js rename to x-pack/platform/plugins/private/reporting/jest.config.js index 4354377fc26cd..45eb58745fc36 100644 --- a/x-pack/plugins/reporting/jest.config.js +++ b/x-pack/platform/plugins/private/reporting/jest.config.js @@ -7,11 +7,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/reporting'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/reporting', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/reporting'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/reporting', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/reporting/{common,public,server}/**/*.{js,ts,tsx}', + '/x-pack/platform/plugins/private/reporting/{common,public,server}/**/*.{js,ts,tsx}', ], }; diff --git a/x-pack/plugins/reporting/jest.integration.config.js b/x-pack/platform/plugins/private/reporting/jest.integration.config.js similarity index 76% rename from x-pack/plugins/reporting/jest.integration.config.js rename to x-pack/platform/plugins/private/reporting/jest.integration.config.js index 7f43fa6b4464a..54a75e566f4de 100644 --- a/x-pack/plugins/reporting/jest.integration.config.js +++ b/x-pack/platform/plugins/private/reporting/jest.integration.config.js @@ -7,6 +7,6 @@ module.exports = { preset: '@kbn/test/jest_integration', - rootDir: '../../..', - roots: ['/x-pack/plugins/reporting'], + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/reporting'], }; diff --git a/x-pack/plugins/reporting/kibana.jsonc b/x-pack/platform/plugins/private/reporting/kibana.jsonc similarity index 100% rename from x-pack/plugins/reporting/kibana.jsonc rename to x-pack/platform/plugins/private/reporting/kibana.jsonc diff --git a/x-pack/plugins/reporting/public/index.ts b/x-pack/platform/plugins/private/reporting/public/index.ts similarity index 100% rename from x-pack/plugins/reporting/public/index.ts rename to x-pack/platform/plugins/private/reporting/public/index.ts diff --git a/x-pack/plugins/reporting/public/lib/__snapshots__/stream_handler.test.ts.snap b/x-pack/platform/plugins/private/reporting/public/lib/__snapshots__/stream_handler.test.ts.snap similarity index 100% rename from x-pack/plugins/reporting/public/lib/__snapshots__/stream_handler.test.ts.snap rename to x-pack/platform/plugins/private/reporting/public/lib/__snapshots__/stream_handler.test.ts.snap diff --git a/x-pack/plugins/reporting/public/lib/default_status_context.tsx b/x-pack/platform/plugins/private/reporting/public/lib/default_status_context.tsx similarity index 100% rename from x-pack/plugins/reporting/public/lib/default_status_context.tsx rename to x-pack/platform/plugins/private/reporting/public/lib/default_status_context.tsx diff --git a/x-pack/plugins/reporting/public/lib/ilm_policy_status_context.tsx b/x-pack/platform/plugins/private/reporting/public/lib/ilm_policy_status_context.tsx similarity index 100% rename from x-pack/plugins/reporting/public/lib/ilm_policy_status_context.tsx rename to x-pack/platform/plugins/private/reporting/public/lib/ilm_policy_status_context.tsx diff --git a/x-pack/plugins/reporting/public/lib/job.test.ts b/x-pack/platform/plugins/private/reporting/public/lib/job.test.ts similarity index 100% rename from x-pack/plugins/reporting/public/lib/job.test.ts rename to x-pack/platform/plugins/private/reporting/public/lib/job.test.ts diff --git a/x-pack/plugins/reporting/public/lib/job_queue_client.test.mocks.ts b/x-pack/platform/plugins/private/reporting/public/lib/job_queue_client.test.mocks.ts similarity index 100% rename from x-pack/plugins/reporting/public/lib/job_queue_client.test.mocks.ts rename to x-pack/platform/plugins/private/reporting/public/lib/job_queue_client.test.mocks.ts diff --git a/x-pack/plugins/reporting/public/lib/stream_handler.test.ts b/x-pack/platform/plugins/private/reporting/public/lib/stream_handler.test.ts similarity index 100% rename from x-pack/plugins/reporting/public/lib/stream_handler.test.ts rename to x-pack/platform/plugins/private/reporting/public/lib/stream_handler.test.ts diff --git a/x-pack/plugins/reporting/public/lib/stream_handler.ts b/x-pack/platform/plugins/private/reporting/public/lib/stream_handler.ts similarity index 100% rename from x-pack/plugins/reporting/public/lib/stream_handler.ts rename to x-pack/platform/plugins/private/reporting/public/lib/stream_handler.ts diff --git a/x-pack/plugins/reporting/public/management/__test__/index.ts b/x-pack/platform/plugins/private/reporting/public/management/__test__/index.ts similarity index 100% rename from x-pack/plugins/reporting/public/management/__test__/index.ts rename to x-pack/platform/plugins/private/reporting/public/management/__test__/index.ts diff --git a/x-pack/plugins/reporting/public/management/__test__/report_listing.test.helpers.tsx b/x-pack/platform/plugins/private/reporting/public/management/__test__/report_listing.test.helpers.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/__test__/report_listing.test.helpers.tsx rename to x-pack/platform/plugins/private/reporting/public/management/__test__/report_listing.test.helpers.tsx diff --git a/x-pack/plugins/reporting/public/management/components/ilm_policy_link.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/ilm_policy_link.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/ilm_policy_link.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/ilm_policy_link.tsx diff --git a/x-pack/plugins/reporting/public/management/components/index.ts b/x-pack/platform/plugins/private/reporting/public/management/components/index.ts similarity index 100% rename from x-pack/plugins/reporting/public/management/components/index.ts rename to x-pack/platform/plugins/private/reporting/public/management/components/index.ts diff --git a/x-pack/plugins/reporting/public/management/components/inspect_in_console_button/get_console_text_pit.ts b/x-pack/platform/plugins/private/reporting/public/management/components/inspect_in_console_button/get_console_text_pit.ts similarity index 100% rename from x-pack/plugins/reporting/public/management/components/inspect_in_console_button/get_console_text_pit.ts rename to x-pack/platform/plugins/private/reporting/public/management/components/inspect_in_console_button/get_console_text_pit.ts diff --git a/x-pack/plugins/reporting/public/management/components/inspect_in_console_button/get_console_text_scroll.ts b/x-pack/platform/plugins/private/reporting/public/management/components/inspect_in_console_button/get_console_text_scroll.ts similarity index 100% rename from x-pack/plugins/reporting/public/management/components/inspect_in_console_button/get_console_text_scroll.ts rename to x-pack/platform/plugins/private/reporting/public/management/components/inspect_in_console_button/get_console_text_scroll.ts diff --git a/x-pack/plugins/reporting/public/management/components/inspect_in_console_button/inspect_in_console_button.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/inspect_in_console_button/inspect_in_console_button.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/inspect_in_console_button/inspect_in_console_button.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/inspect_in_console_button/inspect_in_console_button.tsx diff --git a/x-pack/plugins/reporting/public/management/components/migrate_ilm_policy_callout/ilm_policy_migration_needed_callout.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/migrate_ilm_policy_callout/ilm_policy_migration_needed_callout.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/migrate_ilm_policy_callout/ilm_policy_migration_needed_callout.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/migrate_ilm_policy_callout/ilm_policy_migration_needed_callout.tsx diff --git a/x-pack/plugins/reporting/public/management/components/migrate_ilm_policy_callout/index.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/migrate_ilm_policy_callout/index.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/migrate_ilm_policy_callout/index.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/migrate_ilm_policy_callout/index.tsx diff --git a/x-pack/plugins/reporting/public/management/components/report_delete_button.test.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/report_delete_button.test.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/report_delete_button.test.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/report_delete_button.test.tsx diff --git a/x-pack/plugins/reporting/public/management/components/report_delete_button.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/report_delete_button.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/report_delete_button.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/report_delete_button.tsx diff --git a/x-pack/plugins/reporting/public/management/components/report_diagnostic.test.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/report_diagnostic.test.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/report_diagnostic.test.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/report_diagnostic.test.tsx diff --git a/x-pack/plugins/reporting/public/management/components/report_diagnostic.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/report_diagnostic.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/report_diagnostic.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/report_diagnostic.tsx diff --git a/x-pack/plugins/reporting/public/management/components/report_info_button.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/report_info_button.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/report_info_button.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/report_info_button.tsx diff --git a/x-pack/plugins/reporting/public/management/components/report_info_flyout.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/report_info_flyout.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/report_info_flyout.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/report_info_flyout.tsx diff --git a/x-pack/plugins/reporting/public/management/components/report_info_flyout_content.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/report_info_flyout_content.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/report_info_flyout_content.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/report_info_flyout_content.tsx diff --git a/x-pack/plugins/reporting/public/management/components/report_status_indicator.tsx b/x-pack/platform/plugins/private/reporting/public/management/components/report_status_indicator.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/components/report_status_indicator.tsx rename to x-pack/platform/plugins/private/reporting/public/management/components/report_status_indicator.tsx diff --git a/x-pack/plugins/reporting/public/management/default/report_listing_default.tsx b/x-pack/platform/plugins/private/reporting/public/management/default/report_listing_default.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/default/report_listing_default.tsx rename to x-pack/platform/plugins/private/reporting/public/management/default/report_listing_default.tsx diff --git a/x-pack/plugins/reporting/public/management/index.ts b/x-pack/platform/plugins/private/reporting/public/management/index.ts similarity index 100% rename from x-pack/plugins/reporting/public/management/index.ts rename to x-pack/platform/plugins/private/reporting/public/management/index.ts diff --git a/x-pack/plugins/reporting/public/management/mount_management_section.tsx b/x-pack/platform/plugins/private/reporting/public/management/mount_management_section.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/mount_management_section.tsx rename to x-pack/platform/plugins/private/reporting/public/management/mount_management_section.tsx diff --git a/x-pack/plugins/reporting/public/management/report_listing.scss b/x-pack/platform/plugins/private/reporting/public/management/report_listing.scss similarity index 100% rename from x-pack/plugins/reporting/public/management/report_listing.scss rename to x-pack/platform/plugins/private/reporting/public/management/report_listing.scss diff --git a/x-pack/plugins/reporting/public/management/report_listing.test.ts b/x-pack/platform/plugins/private/reporting/public/management/report_listing.test.ts similarity index 100% rename from x-pack/plugins/reporting/public/management/report_listing.test.ts rename to x-pack/platform/plugins/private/reporting/public/management/report_listing.test.ts diff --git a/x-pack/plugins/reporting/public/management/report_listing.tsx b/x-pack/platform/plugins/private/reporting/public/management/report_listing.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/report_listing.tsx rename to x-pack/platform/plugins/private/reporting/public/management/report_listing.tsx diff --git a/x-pack/plugins/reporting/public/management/report_listing_table.tsx b/x-pack/platform/plugins/private/reporting/public/management/report_listing_table.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/report_listing_table.tsx rename to x-pack/platform/plugins/private/reporting/public/management/report_listing_table.tsx diff --git a/x-pack/plugins/reporting/public/management/stateful/report_listing_stateful.tsx b/x-pack/platform/plugins/private/reporting/public/management/stateful/report_listing_stateful.tsx similarity index 100% rename from x-pack/plugins/reporting/public/management/stateful/report_listing_stateful.tsx rename to x-pack/platform/plugins/private/reporting/public/management/stateful/report_listing_stateful.tsx diff --git a/x-pack/plugins/reporting/public/management/utils.ts b/x-pack/platform/plugins/private/reporting/public/management/utils.ts similarity index 100% rename from x-pack/plugins/reporting/public/management/utils.ts rename to x-pack/platform/plugins/private/reporting/public/management/utils.ts diff --git a/x-pack/plugins/reporting/public/mocks.ts b/x-pack/platform/plugins/private/reporting/public/mocks.ts similarity index 100% rename from x-pack/plugins/reporting/public/mocks.ts rename to x-pack/platform/plugins/private/reporting/public/mocks.ts diff --git a/x-pack/plugins/reporting/public/notifier/general_error.tsx b/x-pack/platform/plugins/private/reporting/public/notifier/general_error.tsx similarity index 100% rename from x-pack/plugins/reporting/public/notifier/general_error.tsx rename to x-pack/platform/plugins/private/reporting/public/notifier/general_error.tsx diff --git a/x-pack/plugins/reporting/public/notifier/index.ts b/x-pack/platform/plugins/private/reporting/public/notifier/index.ts similarity index 100% rename from x-pack/plugins/reporting/public/notifier/index.ts rename to x-pack/platform/plugins/private/reporting/public/notifier/index.ts diff --git a/x-pack/plugins/reporting/public/notifier/job_download_button.tsx b/x-pack/platform/plugins/private/reporting/public/notifier/job_download_button.tsx similarity index 100% rename from x-pack/plugins/reporting/public/notifier/job_download_button.tsx rename to x-pack/platform/plugins/private/reporting/public/notifier/job_download_button.tsx diff --git a/x-pack/plugins/reporting/public/notifier/job_failure.tsx b/x-pack/platform/plugins/private/reporting/public/notifier/job_failure.tsx similarity index 100% rename from x-pack/plugins/reporting/public/notifier/job_failure.tsx rename to x-pack/platform/plugins/private/reporting/public/notifier/job_failure.tsx diff --git a/x-pack/plugins/reporting/public/notifier/job_success.tsx b/x-pack/platform/plugins/private/reporting/public/notifier/job_success.tsx similarity index 100% rename from x-pack/plugins/reporting/public/notifier/job_success.tsx rename to x-pack/platform/plugins/private/reporting/public/notifier/job_success.tsx diff --git a/x-pack/plugins/reporting/public/notifier/job_warning.tsx b/x-pack/platform/plugins/private/reporting/public/notifier/job_warning.tsx similarity index 100% rename from x-pack/plugins/reporting/public/notifier/job_warning.tsx rename to x-pack/platform/plugins/private/reporting/public/notifier/job_warning.tsx diff --git a/x-pack/plugins/reporting/public/notifier/job_warning_formulas.tsx b/x-pack/platform/plugins/private/reporting/public/notifier/job_warning_formulas.tsx similarity index 100% rename from x-pack/plugins/reporting/public/notifier/job_warning_formulas.tsx rename to x-pack/platform/plugins/private/reporting/public/notifier/job_warning_formulas.tsx diff --git a/x-pack/plugins/reporting/public/notifier/job_warning_max_size.tsx b/x-pack/platform/plugins/private/reporting/public/notifier/job_warning_max_size.tsx similarity index 100% rename from x-pack/plugins/reporting/public/notifier/job_warning_max_size.tsx rename to x-pack/platform/plugins/private/reporting/public/notifier/job_warning_max_size.tsx diff --git a/x-pack/plugins/reporting/public/notifier/report_link.tsx b/x-pack/platform/plugins/private/reporting/public/notifier/report_link.tsx similarity index 100% rename from x-pack/plugins/reporting/public/notifier/report_link.tsx rename to x-pack/platform/plugins/private/reporting/public/notifier/report_link.tsx diff --git a/x-pack/plugins/reporting/public/plugin.ts b/x-pack/platform/plugins/private/reporting/public/plugin.ts similarity index 100% rename from x-pack/plugins/reporting/public/plugin.ts rename to x-pack/platform/plugins/private/reporting/public/plugin.ts diff --git a/x-pack/plugins/reporting/public/redirect/index.ts b/x-pack/platform/plugins/private/reporting/public/redirect/index.ts similarity index 100% rename from x-pack/plugins/reporting/public/redirect/index.ts rename to x-pack/platform/plugins/private/reporting/public/redirect/index.ts diff --git a/x-pack/plugins/reporting/public/redirect/mount_redirect_app.tsx b/x-pack/platform/plugins/private/reporting/public/redirect/mount_redirect_app.tsx similarity index 100% rename from x-pack/plugins/reporting/public/redirect/mount_redirect_app.tsx rename to x-pack/platform/plugins/private/reporting/public/redirect/mount_redirect_app.tsx diff --git a/x-pack/plugins/reporting/public/redirect/redirect_app.scss b/x-pack/platform/plugins/private/reporting/public/redirect/redirect_app.scss similarity index 100% rename from x-pack/plugins/reporting/public/redirect/redirect_app.scss rename to x-pack/platform/plugins/private/reporting/public/redirect/redirect_app.scss diff --git a/x-pack/plugins/reporting/public/redirect/redirect_app.tsx b/x-pack/platform/plugins/private/reporting/public/redirect/redirect_app.tsx similarity index 100% rename from x-pack/plugins/reporting/public/redirect/redirect_app.tsx rename to x-pack/platform/plugins/private/reporting/public/redirect/redirect_app.tsx diff --git a/x-pack/plugins/reporting/public/shared_i18n_texts.tsx b/x-pack/platform/plugins/private/reporting/public/shared_i18n_texts.tsx similarity index 100% rename from x-pack/plugins/reporting/public/shared_i18n_texts.tsx rename to x-pack/platform/plugins/private/reporting/public/shared_i18n_texts.tsx diff --git a/x-pack/plugins/reporting/public/shared_imports.ts b/x-pack/platform/plugins/private/reporting/public/shared_imports.ts similarity index 100% rename from x-pack/plugins/reporting/public/shared_imports.ts rename to x-pack/platform/plugins/private/reporting/public/shared_imports.ts diff --git a/x-pack/plugins/reporting/public/types.ts b/x-pack/platform/plugins/private/reporting/public/types.ts similarity index 100% rename from x-pack/plugins/reporting/public/types.ts rename to x-pack/platform/plugins/private/reporting/public/types.ts diff --git a/x-pack/plugins/reporting/server/config/create_config.test.ts b/x-pack/platform/plugins/private/reporting/server/config/create_config.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/config/create_config.test.ts rename to x-pack/platform/plugins/private/reporting/server/config/create_config.test.ts diff --git a/x-pack/plugins/reporting/server/config/create_config.ts b/x-pack/platform/plugins/private/reporting/server/config/create_config.ts similarity index 100% rename from x-pack/plugins/reporting/server/config/create_config.ts rename to x-pack/platform/plugins/private/reporting/server/config/create_config.ts diff --git a/x-pack/plugins/reporting/server/config/index.ts b/x-pack/platform/plugins/private/reporting/server/config/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/config/index.ts rename to x-pack/platform/plugins/private/reporting/server/config/index.ts diff --git a/x-pack/plugins/reporting/server/config/ui_settings.test.ts b/x-pack/platform/plugins/private/reporting/server/config/ui_settings.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/config/ui_settings.test.ts rename to x-pack/platform/plugins/private/reporting/server/config/ui_settings.test.ts diff --git a/x-pack/plugins/reporting/server/config/ui_settings.ts b/x-pack/platform/plugins/private/reporting/server/config/ui_settings.ts similarity index 100% rename from x-pack/plugins/reporting/server/config/ui_settings.ts rename to x-pack/platform/plugins/private/reporting/server/config/ui_settings.ts diff --git a/x-pack/plugins/reporting/server/core.ts b/x-pack/platform/plugins/private/reporting/server/core.ts similarity index 100% rename from x-pack/plugins/reporting/server/core.ts rename to x-pack/platform/plugins/private/reporting/server/core.ts diff --git a/x-pack/plugins/reporting/server/deprecations/index.ts b/x-pack/platform/plugins/private/reporting/server/deprecations/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/deprecations/index.ts rename to x-pack/platform/plugins/private/reporting/server/deprecations/index.ts diff --git a/x-pack/plugins/reporting/server/deprecations/migrate_existing_indices_ilm_policy.test.ts b/x-pack/platform/plugins/private/reporting/server/deprecations/migrate_existing_indices_ilm_policy.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/deprecations/migrate_existing_indices_ilm_policy.test.ts rename to x-pack/platform/plugins/private/reporting/server/deprecations/migrate_existing_indices_ilm_policy.test.ts diff --git a/x-pack/plugins/reporting/server/deprecations/migrate_existing_indices_ilm_policy.ts b/x-pack/platform/plugins/private/reporting/server/deprecations/migrate_existing_indices_ilm_policy.ts similarity index 100% rename from x-pack/plugins/reporting/server/deprecations/migrate_existing_indices_ilm_policy.ts rename to x-pack/platform/plugins/private/reporting/server/deprecations/migrate_existing_indices_ilm_policy.ts diff --git a/x-pack/plugins/reporting/server/features.ts b/x-pack/platform/plugins/private/reporting/server/features.ts similarity index 100% rename from x-pack/plugins/reporting/server/features.ts rename to x-pack/platform/plugins/private/reporting/server/features.ts diff --git a/x-pack/plugins/reporting/server/index.ts b/x-pack/platform/plugins/private/reporting/server/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/index.ts rename to x-pack/platform/plugins/private/reporting/server/index.ts diff --git a/x-pack/plugins/reporting/server/lib/check_params_version.ts b/x-pack/platform/plugins/private/reporting/server/lib/check_params_version.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/check_params_version.ts rename to x-pack/platform/plugins/private/reporting/server/lib/check_params_version.ts diff --git a/x-pack/plugins/reporting/server/lib/content_stream.test.ts b/x-pack/platform/plugins/private/reporting/server/lib/content_stream.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/content_stream.test.ts rename to x-pack/platform/plugins/private/reporting/server/lib/content_stream.test.ts diff --git a/x-pack/plugins/reporting/server/lib/content_stream.ts b/x-pack/platform/plugins/private/reporting/server/lib/content_stream.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/content_stream.ts rename to x-pack/platform/plugins/private/reporting/server/lib/content_stream.ts diff --git a/x-pack/plugins/reporting/server/lib/deprecations/index.ts b/x-pack/platform/plugins/private/reporting/server/lib/deprecations/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/deprecations/index.ts rename to x-pack/platform/plugins/private/reporting/server/lib/deprecations/index.ts diff --git a/x-pack/plugins/reporting/server/lib/deprecations/types.ts b/x-pack/platform/plugins/private/reporting/server/lib/deprecations/types.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/deprecations/types.ts rename to x-pack/platform/plugins/private/reporting/server/lib/deprecations/types.ts diff --git a/x-pack/plugins/reporting/server/lib/event_logger/adapter.test.ts b/x-pack/platform/plugins/private/reporting/server/lib/event_logger/adapter.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/event_logger/adapter.test.ts rename to x-pack/platform/plugins/private/reporting/server/lib/event_logger/adapter.test.ts diff --git a/x-pack/plugins/reporting/server/lib/event_logger/adapter.ts b/x-pack/platform/plugins/private/reporting/server/lib/event_logger/adapter.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/event_logger/adapter.ts rename to x-pack/platform/plugins/private/reporting/server/lib/event_logger/adapter.ts diff --git a/x-pack/plugins/reporting/server/lib/event_logger/index.ts b/x-pack/platform/plugins/private/reporting/server/lib/event_logger/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/event_logger/index.ts rename to x-pack/platform/plugins/private/reporting/server/lib/event_logger/index.ts diff --git a/x-pack/plugins/reporting/server/lib/event_logger/logger.test.ts b/x-pack/platform/plugins/private/reporting/server/lib/event_logger/logger.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/event_logger/logger.test.ts rename to x-pack/platform/plugins/private/reporting/server/lib/event_logger/logger.test.ts diff --git a/x-pack/plugins/reporting/server/lib/event_logger/logger.ts b/x-pack/platform/plugins/private/reporting/server/lib/event_logger/logger.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/event_logger/logger.ts rename to x-pack/platform/plugins/private/reporting/server/lib/event_logger/logger.ts diff --git a/x-pack/plugins/reporting/server/lib/event_logger/types.ts b/x-pack/platform/plugins/private/reporting/server/lib/event_logger/types.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/event_logger/types.ts rename to x-pack/platform/plugins/private/reporting/server/lib/event_logger/types.ts diff --git a/x-pack/plugins/reporting/server/lib/export_types_registry.test.js b/x-pack/platform/plugins/private/reporting/server/lib/export_types_registry.test.js similarity index 100% rename from x-pack/plugins/reporting/server/lib/export_types_registry.test.js rename to x-pack/platform/plugins/private/reporting/server/lib/export_types_registry.test.js diff --git a/x-pack/plugins/reporting/server/lib/index.ts b/x-pack/platform/plugins/private/reporting/server/lib/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/index.ts rename to x-pack/platform/plugins/private/reporting/server/lib/index.ts diff --git a/x-pack/plugins/reporting/server/lib/passthrough_stream.test.ts b/x-pack/platform/plugins/private/reporting/server/lib/passthrough_stream.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/passthrough_stream.test.ts rename to x-pack/platform/plugins/private/reporting/server/lib/passthrough_stream.test.ts diff --git a/x-pack/plugins/reporting/server/lib/passthrough_stream.ts b/x-pack/platform/plugins/private/reporting/server/lib/passthrough_stream.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/passthrough_stream.ts rename to x-pack/platform/plugins/private/reporting/server/lib/passthrough_stream.ts diff --git a/x-pack/plugins/reporting/server/lib/store/ilm_policy_manager/ilm_policy_manager.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/ilm_policy_manager/ilm_policy_manager.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/ilm_policy_manager/ilm_policy_manager.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/ilm_policy_manager/ilm_policy_manager.ts diff --git a/x-pack/plugins/reporting/server/lib/store/ilm_policy_manager/index.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/ilm_policy_manager/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/ilm_policy_manager/index.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/ilm_policy_manager/index.ts diff --git a/x-pack/plugins/reporting/server/lib/store/index.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/index.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/index.ts diff --git a/x-pack/plugins/reporting/server/lib/store/report.test.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/report.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/report.test.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/report.test.ts diff --git a/x-pack/plugins/reporting/server/lib/store/report.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/report.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/report.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/report.ts diff --git a/x-pack/plugins/reporting/server/lib/store/runtime_fields.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/runtime_fields.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/runtime_fields.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/runtime_fields.ts diff --git a/x-pack/plugins/reporting/server/lib/store/saved_report.test.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/saved_report.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/saved_report.test.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/saved_report.test.ts diff --git a/x-pack/plugins/reporting/server/lib/store/saved_report.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/saved_report.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/saved_report.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/saved_report.ts diff --git a/x-pack/plugins/reporting/server/lib/store/store.test.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/store.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/store.test.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/store.test.ts diff --git a/x-pack/plugins/reporting/server/lib/store/store.ts b/x-pack/platform/plugins/private/reporting/server/lib/store/store.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/store/store.ts rename to x-pack/platform/plugins/private/reporting/server/lib/store/store.ts diff --git a/x-pack/plugins/reporting/server/lib/tasks/error_logger.test.ts b/x-pack/platform/plugins/private/reporting/server/lib/tasks/error_logger.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/tasks/error_logger.test.ts rename to x-pack/platform/plugins/private/reporting/server/lib/tasks/error_logger.test.ts diff --git a/x-pack/plugins/reporting/server/lib/tasks/error_logger.ts b/x-pack/platform/plugins/private/reporting/server/lib/tasks/error_logger.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/tasks/error_logger.ts rename to x-pack/platform/plugins/private/reporting/server/lib/tasks/error_logger.ts diff --git a/x-pack/plugins/reporting/server/lib/tasks/execute_report.test.ts b/x-pack/platform/plugins/private/reporting/server/lib/tasks/execute_report.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/tasks/execute_report.test.ts rename to x-pack/platform/plugins/private/reporting/server/lib/tasks/execute_report.test.ts diff --git a/x-pack/plugins/reporting/server/lib/tasks/execute_report.ts b/x-pack/platform/plugins/private/reporting/server/lib/tasks/execute_report.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/tasks/execute_report.ts rename to x-pack/platform/plugins/private/reporting/server/lib/tasks/execute_report.ts diff --git a/x-pack/plugins/reporting/server/lib/tasks/index.ts b/x-pack/platform/plugins/private/reporting/server/lib/tasks/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/tasks/index.ts rename to x-pack/platform/plugins/private/reporting/server/lib/tasks/index.ts diff --git a/x-pack/plugins/reporting/server/lib/trace.ts b/x-pack/platform/plugins/private/reporting/server/lib/trace.ts similarity index 100% rename from x-pack/plugins/reporting/server/lib/trace.ts rename to x-pack/platform/plugins/private/reporting/server/lib/trace.ts diff --git a/x-pack/plugins/reporting/server/mocks/index.ts b/x-pack/platform/plugins/private/reporting/server/mocks/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/mocks/index.ts rename to x-pack/platform/plugins/private/reporting/server/mocks/index.ts diff --git a/x-pack/plugins/reporting/server/plugin.test.ts b/x-pack/platform/plugins/private/reporting/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/plugin.test.ts rename to x-pack/platform/plugins/private/reporting/server/plugin.test.ts diff --git a/x-pack/plugins/reporting/server/plugin.ts b/x-pack/platform/plugins/private/reporting/server/plugin.ts similarity index 100% rename from x-pack/plugins/reporting/server/plugin.ts rename to x-pack/platform/plugins/private/reporting/server/plugin.ts diff --git a/x-pack/plugins/reporting/server/routes/common/authorized_user_pre_routing.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/authorized_user_pre_routing.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/authorized_user_pre_routing.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/authorized_user_pre_routing.test.ts diff --git a/x-pack/plugins/reporting/server/routes/common/authorized_user_pre_routing.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/authorized_user_pre_routing.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/authorized_user_pre_routing.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/authorized_user_pre_routing.ts diff --git a/x-pack/plugins/reporting/server/routes/common/generate/index.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/generate/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/generate/index.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/generate/index.ts diff --git a/x-pack/plugins/reporting/server/routes/common/generate/request_handler.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/generate/request_handler.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/generate/request_handler.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/generate/request_handler.test.ts diff --git a/x-pack/plugins/reporting/server/routes/common/generate/request_handler.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/generate/request_handler.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/generate/request_handler.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/generate/request_handler.ts diff --git a/x-pack/plugins/reporting/server/routes/common/get_counter.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/get_counter.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/get_counter.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/get_counter.ts diff --git a/x-pack/plugins/reporting/server/routes/common/get_user.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/get_user.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/get_user.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/get_user.ts diff --git a/x-pack/plugins/reporting/server/routes/common/index.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/index.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/index.ts diff --git a/x-pack/plugins/reporting/server/routes/common/jobs/constants.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/jobs/constants.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/jobs/constants.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/jobs/constants.ts diff --git a/x-pack/plugins/reporting/server/routes/common/jobs/get_document_payload.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/jobs/get_document_payload.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/jobs/get_document_payload.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/jobs/get_document_payload.test.ts diff --git a/x-pack/plugins/reporting/server/routes/common/jobs/get_document_payload.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/jobs/get_document_payload.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/jobs/get_document_payload.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/jobs/get_document_payload.ts diff --git a/x-pack/plugins/reporting/server/routes/common/jobs/get_job_routes.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/jobs/get_job_routes.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/jobs/get_job_routes.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/jobs/get_job_routes.ts diff --git a/x-pack/plugins/reporting/server/routes/common/jobs/index.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/jobs/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/jobs/index.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/jobs/index.ts diff --git a/x-pack/plugins/reporting/server/routes/common/jobs/job_management_pre_routing.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/jobs/job_management_pre_routing.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/jobs/job_management_pre_routing.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/jobs/job_management_pre_routing.test.ts diff --git a/x-pack/plugins/reporting/server/routes/common/jobs/job_management_pre_routing.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/jobs/job_management_pre_routing.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/jobs/job_management_pre_routing.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/jobs/job_management_pre_routing.ts diff --git a/x-pack/plugins/reporting/server/routes/common/jobs/jobs_query.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/jobs/jobs_query.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/jobs/jobs_query.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/jobs/jobs_query.test.ts diff --git a/x-pack/plugins/reporting/server/routes/common/jobs/jobs_query.ts b/x-pack/platform/plugins/private/reporting/server/routes/common/jobs/jobs_query.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/common/jobs/jobs_query.ts rename to x-pack/platform/plugins/private/reporting/server/routes/common/jobs/jobs_query.ts diff --git a/x-pack/plugins/reporting/server/routes/index.ts b/x-pack/platform/plugins/private/reporting/server/routes/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/index.ts rename to x-pack/platform/plugins/private/reporting/server/routes/index.ts diff --git a/x-pack/plugins/reporting/server/routes/internal/deprecations/deprecations.ts b/x-pack/platform/plugins/private/reporting/server/routes/internal/deprecations/deprecations.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/internal/deprecations/deprecations.ts rename to x-pack/platform/plugins/private/reporting/server/routes/internal/deprecations/deprecations.ts diff --git a/x-pack/plugins/reporting/server/routes/internal/deprecations/integration_tests/deprecations.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/internal/deprecations/integration_tests/deprecations.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/internal/deprecations/integration_tests/deprecations.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/internal/deprecations/integration_tests/deprecations.test.ts diff --git a/x-pack/plugins/reporting/server/routes/internal/diagnostic/browser.ts b/x-pack/platform/plugins/private/reporting/server/routes/internal/diagnostic/browser.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/internal/diagnostic/browser.ts rename to x-pack/platform/plugins/private/reporting/server/routes/internal/diagnostic/browser.ts diff --git a/x-pack/plugins/reporting/server/routes/internal/diagnostic/index.ts b/x-pack/platform/plugins/private/reporting/server/routes/internal/diagnostic/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/internal/diagnostic/index.ts rename to x-pack/platform/plugins/private/reporting/server/routes/internal/diagnostic/index.ts diff --git a/x-pack/plugins/reporting/server/routes/internal/diagnostic/integration_tests/browser.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/internal/diagnostic/integration_tests/browser.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/internal/diagnostic/integration_tests/browser.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/internal/diagnostic/integration_tests/browser.test.ts diff --git a/x-pack/plugins/reporting/server/routes/internal/generate/generate_from_jobparams.ts b/x-pack/platform/plugins/private/reporting/server/routes/internal/generate/generate_from_jobparams.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/internal/generate/generate_from_jobparams.ts rename to x-pack/platform/plugins/private/reporting/server/routes/internal/generate/generate_from_jobparams.ts diff --git a/x-pack/plugins/reporting/server/routes/internal/generate/integration_tests/generation_from_jobparams.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/internal/generate/integration_tests/generation_from_jobparams.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/internal/generate/integration_tests/generation_from_jobparams.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/internal/generate/integration_tests/generation_from_jobparams.test.ts diff --git a/x-pack/plugins/reporting/server/routes/internal/management/integration_tests/jobs.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/internal/management/integration_tests/jobs.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/internal/management/integration_tests/jobs.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/internal/management/integration_tests/jobs.test.ts diff --git a/x-pack/plugins/reporting/server/routes/internal/management/jobs.ts b/x-pack/platform/plugins/private/reporting/server/routes/internal/management/jobs.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/internal/management/jobs.ts rename to x-pack/platform/plugins/private/reporting/server/routes/internal/management/jobs.ts diff --git a/x-pack/plugins/reporting/server/routes/public/generate_from_jobparams.ts b/x-pack/platform/plugins/private/reporting/server/routes/public/generate_from_jobparams.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/public/generate_from_jobparams.ts rename to x-pack/platform/plugins/private/reporting/server/routes/public/generate_from_jobparams.ts diff --git a/x-pack/plugins/reporting/server/routes/public/integration_tests/generation_from_jobparams.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/public/integration_tests/generation_from_jobparams.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/public/integration_tests/generation_from_jobparams.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/public/integration_tests/generation_from_jobparams.test.ts diff --git a/x-pack/plugins/reporting/server/routes/public/integration_tests/jobs.test.ts b/x-pack/platform/plugins/private/reporting/server/routes/public/integration_tests/jobs.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/public/integration_tests/jobs.test.ts rename to x-pack/platform/plugins/private/reporting/server/routes/public/integration_tests/jobs.test.ts diff --git a/x-pack/plugins/reporting/server/routes/public/jobs.ts b/x-pack/platform/plugins/private/reporting/server/routes/public/jobs.ts similarity index 100% rename from x-pack/plugins/reporting/server/routes/public/jobs.ts rename to x-pack/platform/plugins/private/reporting/server/routes/public/jobs.ts diff --git a/x-pack/plugins/reporting/server/test_helpers/create_mock_reportingplugin.ts b/x-pack/platform/plugins/private/reporting/server/test_helpers/create_mock_reportingplugin.ts similarity index 100% rename from x-pack/plugins/reporting/server/test_helpers/create_mock_reportingplugin.ts rename to x-pack/platform/plugins/private/reporting/server/test_helpers/create_mock_reportingplugin.ts diff --git a/x-pack/plugins/reporting/server/test_helpers/index.ts b/x-pack/platform/plugins/private/reporting/server/test_helpers/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/test_helpers/index.ts rename to x-pack/platform/plugins/private/reporting/server/test_helpers/index.ts diff --git a/x-pack/plugins/reporting/server/types.ts b/x-pack/platform/plugins/private/reporting/server/types.ts similarity index 100% rename from x-pack/plugins/reporting/server/types.ts rename to x-pack/platform/plugins/private/reporting/server/types.ts diff --git a/x-pack/plugins/reporting/server/usage/collection_schema.test.ts b/x-pack/platform/plugins/private/reporting/server/usage/collection_schema.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/usage/collection_schema.test.ts rename to x-pack/platform/plugins/private/reporting/server/usage/collection_schema.test.ts diff --git a/x-pack/plugins/reporting/server/usage/collection_schema.ts b/x-pack/platform/plugins/private/reporting/server/usage/collection_schema.ts similarity index 100% rename from x-pack/plugins/reporting/server/usage/collection_schema.ts rename to x-pack/platform/plugins/private/reporting/server/usage/collection_schema.ts diff --git a/x-pack/plugins/reporting/server/usage/event_tracker.ts b/x-pack/platform/plugins/private/reporting/server/usage/event_tracker.ts similarity index 100% rename from x-pack/plugins/reporting/server/usage/event_tracker.ts rename to x-pack/platform/plugins/private/reporting/server/usage/event_tracker.ts diff --git a/x-pack/plugins/reporting/server/usage/index.ts b/x-pack/platform/plugins/private/reporting/server/usage/index.ts similarity index 100% rename from x-pack/plugins/reporting/server/usage/index.ts rename to x-pack/platform/plugins/private/reporting/server/usage/index.ts diff --git a/x-pack/plugins/reporting/server/usage/register_event_types.ts b/x-pack/platform/plugins/private/reporting/server/usage/register_event_types.ts similarity index 100% rename from x-pack/plugins/reporting/server/usage/register_event_types.ts rename to x-pack/platform/plugins/private/reporting/server/usage/register_event_types.ts diff --git a/x-pack/plugins/reporting/server/usage/reporting_usage_collector.test.ts b/x-pack/platform/plugins/private/reporting/server/usage/reporting_usage_collector.test.ts similarity index 100% rename from x-pack/plugins/reporting/server/usage/reporting_usage_collector.test.ts rename to x-pack/platform/plugins/private/reporting/server/usage/reporting_usage_collector.test.ts diff --git a/x-pack/plugins/reporting/server/usage/reporting_usage_collector.ts b/x-pack/platform/plugins/private/reporting/server/usage/reporting_usage_collector.ts similarity index 100% rename from x-pack/plugins/reporting/server/usage/reporting_usage_collector.ts rename to x-pack/platform/plugins/private/reporting/server/usage/reporting_usage_collector.ts diff --git a/x-pack/plugins/reporting/tsconfig.json b/x-pack/platform/plugins/private/reporting/tsconfig.json similarity index 95% rename from x-pack/plugins/reporting/tsconfig.json rename to x-pack/platform/plugins/private/reporting/tsconfig.json index e4e579802912b..f0b105990b7a1 100644 --- a/x-pack/plugins/reporting/tsconfig.json +++ b/x-pack/platform/plugins/private/reporting/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/x-pack/plugins/canvas/storybook/canvas_webpack.ts b/x-pack/plugins/canvas/storybook/canvas_webpack.ts index c6ae4a9dbaa95..19574ee0bc951 100644 --- a/x-pack/plugins/canvas/storybook/canvas_webpack.ts +++ b/x-pack/plugins/canvas/storybook/canvas_webpack.ts @@ -47,7 +47,7 @@ export const canvasWebpack = { { test: [ resolve(KIBANA_ROOT, 'x-pack/plugins/canvas/public/components/embeddable_flyout'), - resolve(KIBANA_ROOT, 'x-pack/plugins/reporting/public'), + resolve(KIBANA_ROOT, 'x-pack/platform/plugins/private/reporting/public'), ], use: 'null-loader', }, diff --git a/yarn.lock b/yarn.lock index 7b791046ef30a..ce5892a14cab5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6781,7 +6781,7 @@ version "0.0.0" uid "" -"@kbn/reporting-plugin@link:x-pack/plugins/reporting": +"@kbn/reporting-plugin@link:x-pack/platform/plugins/private/reporting": version "0.0.0" uid "" From 7fac4cdc631cc98c3446c0c77e54322f0826fc06 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:20:11 +0100 Subject: [PATCH 18/43] Relocating module `@kbn/saved-objects-plugin` --- .github/CODEOWNERS | 4 ++-- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/saved_objects/README.md | 0 .../plugins/shared}/saved_objects/jest.config.js | 8 ++++---- .../plugins/shared}/saved_objects/kibana.jsonc | 0 .../plugins/shared}/saved_objects/public/constants.ts | 0 .../plugins/shared}/saved_objects/public/index.scss | 0 .../plugins/shared}/saved_objects/public/index.ts | 0 .../shared}/saved_objects/public/kibana_services.ts | 0 .../plugins/shared}/saved_objects/public/mocks.ts | 0 .../plugins/shared}/saved_objects/public/plugin.ts | 0 .../__snapshots__/saved_object_save_modal.test.tsx.snap | 0 .../shared}/saved_objects/public/save_modal/_index.scss | 0 .../shared}/saved_objects/public/save_modal/index.ts | 0 .../public/save_modal/saved_object_save_modal.scss | 0 .../public/save_modal/saved_object_save_modal.test.tsx | 0 .../public/save_modal/saved_object_save_modal.tsx | 0 .../public/save_modal/saved_object_save_modal_origin.tsx | 0 .../public/save_modal/show_saved_object_save_modal.tsx | 0 .../public/saved_object/helpers/save_saved_object.ts | 0 .../shared}/saved_objects/public/saved_object/index.ts | 0 .../plugins/shared}/saved_objects/public/types.ts | 0 .../plugins/shared}/saved_objects/tsconfig.json | 4 ++-- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 27 files changed, 14 insertions(+), 14 deletions(-) rename src/{plugins => platform/plugins/shared}/saved_objects/README.md (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/jest.config.js (71%) rename src/{plugins => platform/plugins/shared}/saved_objects/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/index.scss (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/kibana_services.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/save_modal/__snapshots__/saved_object_save_modal.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/save_modal/_index.scss (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/save_modal/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/save_modal/saved_object_save_modal.scss (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/save_modal/saved_object_save_modal.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/save_modal/saved_object_save_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/save_modal/saved_object_save_modal_origin.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/save_modal/show_saved_object_save_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/saved_object/helpers/save_saved_object.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/saved_object/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bf52536062ed4..bce1e9a238f9e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -628,6 +628,7 @@ src/platform/plugins/shared/kibana_react @elastic/appex-sharedux src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management src/platform/plugins/shared/navigation @elastic/appex-sharedux +src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux src/plugins/chart_expressions/common @elastic/kibana-visualizations @@ -670,7 +671,6 @@ src/plugins/maps_ems @elastic/kibana-presentation src/plugins/newsfeed @elastic/kibana-core src/plugins/presentation_panel @elastic/kibana-presentation src/plugins/presentation_util @elastic/kibana-presentation -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 @@ -1824,7 +1824,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/test/functional/es_archives/cases/migrations/8.8.0 @elastic/response-ops #CC# /src/core/server/csp/ @elastic/kibana-core -#CC# /src/plugins/saved_objects/ @elastic/kibana-core +#CC# /src/platform/plugins/shared/saved_objects/ @elastic/kibana-core #CC# /x-pack/plugins/cloud/ @elastic/kibana-core #CC# /x-pack/plugins/features/ @elastic/kibana-core #CC# /x-pack/platform/plugins/shared/global_search/ @elastic/kibana-core diff --git a/.i18nrc.json b/.i18nrc.json index e22928136a937..4db6387439e00 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -106,7 +106,7 @@ "esqlEditor": "src/platform/packages/private/kbn-esql-editor", "esqlUtils": "src/platform/packages/shared/kbn-esql-utils", "reporting": "packages/kbn-reporting", - "savedObjects": "src/plugins/saved_objects", + "savedObjects": "src/platform/plugins/shared/saved_objects", "savedObjectsFinder": "src/plugins/saved_objects_finder", "savedObjectsManagement": "src/plugins/saved_objects_management", "searchConnectors": "packages/kbn-search-connectors", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 466e6d4b6a177..243a2c169ba73 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -290,7 +290,7 @@ Content is fetched from the remote (https://feeds.elastic.co) once a day, with p |The Presentation Utility Plugin is a set of common, shared components and toolkits for solutions within the Presentation space, (e.g. Dashboards, Canvas). -|{kib-repo}blob/{branch}/src/plugins/saved_objects/README.md[savedObjects] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/saved_objects/README.md[savedObjects] |NOTE: This plugin is deprecated and will be removed in 8.0. See https://github.com/elastic/kibana/issues/46435 for more information. diff --git a/package.json b/package.json index 1b6d421fd5117..a035299148901 100644 --- a/package.json +++ b/package.json @@ -787,7 +787,7 @@ "@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", - "@kbn/saved-objects-plugin": "link:src/plugins/saved_objects", + "@kbn/saved-objects-plugin": "link:src/platform/plugins/shared/saved_objects", "@kbn/saved-objects-settings": "link:packages/kbn-saved-objects-settings", "@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", diff --git a/src/plugins/saved_objects/README.md b/src/platform/plugins/shared/saved_objects/README.md similarity index 100% rename from src/plugins/saved_objects/README.md rename to src/platform/plugins/shared/saved_objects/README.md diff --git a/src/plugins/saved_objects/jest.config.js b/src/platform/plugins/shared/saved_objects/jest.config.js similarity index 71% rename from src/plugins/saved_objects/jest.config.js rename to src/platform/plugins/shared/saved_objects/jest.config.js index 681080082512e..1ad32bb49a9eb 100644 --- a/src/plugins/saved_objects/jest.config.js +++ b/src/platform/plugins/shared/saved_objects/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/saved_objects'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/saved_objects', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/saved_objects'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/saved_objects/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/saved_objects/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/src/plugins/saved_objects/kibana.jsonc b/src/platform/plugins/shared/saved_objects/kibana.jsonc similarity index 100% rename from src/plugins/saved_objects/kibana.jsonc rename to src/platform/plugins/shared/saved_objects/kibana.jsonc diff --git a/src/plugins/saved_objects/public/constants.ts b/src/platform/plugins/shared/saved_objects/public/constants.ts similarity index 100% rename from src/plugins/saved_objects/public/constants.ts rename to src/platform/plugins/shared/saved_objects/public/constants.ts diff --git a/src/plugins/saved_objects/public/index.scss b/src/platform/plugins/shared/saved_objects/public/index.scss similarity index 100% rename from src/plugins/saved_objects/public/index.scss rename to src/platform/plugins/shared/saved_objects/public/index.scss diff --git a/src/plugins/saved_objects/public/index.ts b/src/platform/plugins/shared/saved_objects/public/index.ts similarity index 100% rename from src/plugins/saved_objects/public/index.ts rename to src/platform/plugins/shared/saved_objects/public/index.ts diff --git a/src/plugins/saved_objects/public/kibana_services.ts b/src/platform/plugins/shared/saved_objects/public/kibana_services.ts similarity index 100% rename from src/plugins/saved_objects/public/kibana_services.ts rename to src/platform/plugins/shared/saved_objects/public/kibana_services.ts diff --git a/src/plugins/saved_objects/public/mocks.ts b/src/platform/plugins/shared/saved_objects/public/mocks.ts similarity index 100% rename from src/plugins/saved_objects/public/mocks.ts rename to src/platform/plugins/shared/saved_objects/public/mocks.ts diff --git a/src/plugins/saved_objects/public/plugin.ts b/src/platform/plugins/shared/saved_objects/public/plugin.ts similarity index 100% rename from src/plugins/saved_objects/public/plugin.ts rename to src/platform/plugins/shared/saved_objects/public/plugin.ts diff --git a/src/plugins/saved_objects/public/save_modal/__snapshots__/saved_object_save_modal.test.tsx.snap b/src/platform/plugins/shared/saved_objects/public/save_modal/__snapshots__/saved_object_save_modal.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects/public/save_modal/__snapshots__/saved_object_save_modal.test.tsx.snap rename to src/platform/plugins/shared/saved_objects/public/save_modal/__snapshots__/saved_object_save_modal.test.tsx.snap diff --git a/src/plugins/saved_objects/public/save_modal/_index.scss b/src/platform/plugins/shared/saved_objects/public/save_modal/_index.scss similarity index 100% rename from src/plugins/saved_objects/public/save_modal/_index.scss rename to src/platform/plugins/shared/saved_objects/public/save_modal/_index.scss diff --git a/src/plugins/saved_objects/public/save_modal/index.ts b/src/platform/plugins/shared/saved_objects/public/save_modal/index.ts similarity index 100% rename from src/plugins/saved_objects/public/save_modal/index.ts rename to src/platform/plugins/shared/saved_objects/public/save_modal/index.ts diff --git a/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.scss b/src/platform/plugins/shared/saved_objects/public/save_modal/saved_object_save_modal.scss similarity index 100% rename from src/plugins/saved_objects/public/save_modal/saved_object_save_modal.scss rename to src/platform/plugins/shared/saved_objects/public/save_modal/saved_object_save_modal.scss diff --git a/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.test.tsx b/src/platform/plugins/shared/saved_objects/public/save_modal/saved_object_save_modal.test.tsx similarity index 100% rename from src/plugins/saved_objects/public/save_modal/saved_object_save_modal.test.tsx rename to src/platform/plugins/shared/saved_objects/public/save_modal/saved_object_save_modal.test.tsx diff --git a/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.tsx b/src/platform/plugins/shared/saved_objects/public/save_modal/saved_object_save_modal.tsx similarity index 100% rename from src/plugins/saved_objects/public/save_modal/saved_object_save_modal.tsx rename to src/platform/plugins/shared/saved_objects/public/save_modal/saved_object_save_modal.tsx diff --git a/src/plugins/saved_objects/public/save_modal/saved_object_save_modal_origin.tsx b/src/platform/plugins/shared/saved_objects/public/save_modal/saved_object_save_modal_origin.tsx similarity index 100% rename from src/plugins/saved_objects/public/save_modal/saved_object_save_modal_origin.tsx rename to src/platform/plugins/shared/saved_objects/public/save_modal/saved_object_save_modal_origin.tsx diff --git a/src/plugins/saved_objects/public/save_modal/show_saved_object_save_modal.tsx b/src/platform/plugins/shared/saved_objects/public/save_modal/show_saved_object_save_modal.tsx similarity index 100% rename from src/plugins/saved_objects/public/save_modal/show_saved_object_save_modal.tsx rename to src/platform/plugins/shared/saved_objects/public/save_modal/show_saved_object_save_modal.tsx diff --git a/src/plugins/saved_objects/public/saved_object/helpers/save_saved_object.ts b/src/platform/plugins/shared/saved_objects/public/saved_object/helpers/save_saved_object.ts similarity index 100% rename from src/plugins/saved_objects/public/saved_object/helpers/save_saved_object.ts rename to src/platform/plugins/shared/saved_objects/public/saved_object/helpers/save_saved_object.ts diff --git a/src/plugins/saved_objects/public/saved_object/index.ts b/src/platform/plugins/shared/saved_objects/public/saved_object/index.ts similarity index 100% rename from src/plugins/saved_objects/public/saved_object/index.ts rename to src/platform/plugins/shared/saved_objects/public/saved_object/index.ts diff --git a/src/plugins/saved_objects/public/types.ts b/src/platform/plugins/shared/saved_objects/public/types.ts similarity index 100% rename from src/plugins/saved_objects/public/types.ts rename to src/platform/plugins/shared/saved_objects/public/types.ts diff --git a/src/plugins/saved_objects/tsconfig.json b/src/platform/plugins/shared/saved_objects/tsconfig.json similarity index 81% rename from src/plugins/saved_objects/tsconfig.json rename to src/platform/plugins/shared/saved_objects/tsconfig.json index 167a6e1c7551e..9931ac138a94c 100644 --- a/src/plugins/saved_objects/tsconfig.json +++ b/src/platform/plugins/shared/saved_objects/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, @@ -8,7 +8,7 @@ "public/**/*", "server/**/*", // Emotion theme typing - "../../../typings/emotion.d.ts" + "../../../../../typings/emotion.d.ts" ], "kbn_references": [ "@kbn/core", diff --git a/tsconfig.base.json b/tsconfig.base.json index 8a457cf16a320..fa13ec0efd897 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1544,8 +1544,8 @@ "@kbn/saved-objects-hidden-type-plugin/*": ["test/plugin_functional/plugins/saved_objects_hidden_type/*"], "@kbn/saved-objects-management-plugin": ["src/plugins/saved_objects_management"], "@kbn/saved-objects-management-plugin/*": ["src/plugins/saved_objects_management/*"], - "@kbn/saved-objects-plugin": ["src/plugins/saved_objects"], - "@kbn/saved-objects-plugin/*": ["src/plugins/saved_objects/*"], + "@kbn/saved-objects-plugin": ["src/platform/plugins/shared/saved_objects"], + "@kbn/saved-objects-plugin/*": ["src/platform/plugins/shared/saved_objects/*"], "@kbn/saved-objects-settings": ["packages/kbn-saved-objects-settings"], "@kbn/saved-objects-settings/*": ["packages/kbn-saved-objects-settings/*"], "@kbn/saved-objects-tagging-oss-plugin": ["src/plugins/saved_objects_tagging_oss"], diff --git a/yarn.lock b/yarn.lock index ce5892a14cab5..ea4bb1e50425c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6905,7 +6905,7 @@ version "0.0.0" uid "" -"@kbn/saved-objects-plugin@link:src/plugins/saved_objects": +"@kbn/saved-objects-plugin@link:src/platform/plugins/shared/saved_objects": version "0.0.0" uid "" From e9c2c94a2a0fbb7b839d4a6445b625535ead7ad4 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:21:33 +0100 Subject: [PATCH 19/43] Relocating module `@kbn/saved-objects-tagging-oss-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/saved_objects_tagging_oss/README.md | 0 .../shared}/saved_objects_tagging_oss/common/index.ts | 0 .../shared}/saved_objects_tagging_oss/common/types.ts | 0 .../shared}/saved_objects_tagging_oss/jest.config.js | 8 ++++---- .../shared}/saved_objects_tagging_oss/kibana.jsonc | 0 .../shared}/saved_objects_tagging_oss/public/api.mock.ts | 0 .../shared}/saved_objects_tagging_oss/public/api.ts | 0 .../shared}/saved_objects_tagging_oss/public/index.ts | 0 .../shared}/saved_objects_tagging_oss/public/mocks.ts | 0 .../saved_objects_tagging_oss/public/plugin.test.ts | 0 .../shared}/saved_objects_tagging_oss/public/plugin.ts | 0 .../shared}/saved_objects_tagging_oss/public/types.ts | 0 .../shared}/saved_objects_tagging_oss/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 11 insertions(+), 11 deletions(-) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/README.md (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/common/types.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/jest.config.js (71%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/public/api.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/public/api.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_tagging_oss/tsconfig.json (80%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bce1e9a238f9e..75857c46f5983 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -629,6 +629,7 @@ src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management src/platform/plugins/shared/navigation @elastic/appex-sharedux src/platform/plugins/shared/saved_objects @elastic/appex-sharedux +src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux src/plugins/chart_expressions/common @elastic/kibana-visualizations @@ -673,7 +674,6 @@ src/plugins/presentation_panel @elastic/kibana-presentation src/plugins/presentation_util @elastic/kibana-presentation 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 diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 243a2c169ba73..ff858bed05579 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -302,7 +302,7 @@ Content is fetched from the remote (https://feeds.elastic.co) once a day, with p |The savedObjectsManagement plugin manages the Saved Objects management section. -|{kib-repo}blob/{branch}/src/plugins/saved_objects_tagging_oss/README.md[savedObjectsTaggingOss] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/saved_objects_tagging_oss/README.md[savedObjectsTaggingOss] |Bridge plugin for consumption of the saved object tagging feature from oss plugins. diff --git a/package.json b/package.json index a035299148901..992d83a8de7d8 100644 --- a/package.json +++ b/package.json @@ -789,7 +789,7 @@ "@kbn/saved-objects-management-plugin": "link:src/plugins/saved_objects_management", "@kbn/saved-objects-plugin": "link:src/platform/plugins/shared/saved_objects", "@kbn/saved-objects-settings": "link:packages/kbn-saved-objects-settings", - "@kbn/saved-objects-tagging-oss-plugin": "link:src/plugins/saved_objects_tagging_oss", + "@kbn/saved-objects-tagging-oss-plugin": "link:src/platform/plugins/shared/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", diff --git a/src/plugins/saved_objects_tagging_oss/README.md b/src/platform/plugins/shared/saved_objects_tagging_oss/README.md similarity index 100% rename from src/plugins/saved_objects_tagging_oss/README.md rename to src/platform/plugins/shared/saved_objects_tagging_oss/README.md diff --git a/src/plugins/saved_objects_tagging_oss/common/index.ts b/src/platform/plugins/shared/saved_objects_tagging_oss/common/index.ts similarity index 100% rename from src/plugins/saved_objects_tagging_oss/common/index.ts rename to src/platform/plugins/shared/saved_objects_tagging_oss/common/index.ts diff --git a/src/plugins/saved_objects_tagging_oss/common/types.ts b/src/platform/plugins/shared/saved_objects_tagging_oss/common/types.ts similarity index 100% rename from src/plugins/saved_objects_tagging_oss/common/types.ts rename to src/platform/plugins/shared/saved_objects_tagging_oss/common/types.ts diff --git a/src/plugins/saved_objects_tagging_oss/jest.config.js b/src/platform/plugins/shared/saved_objects_tagging_oss/jest.config.js similarity index 71% rename from src/plugins/saved_objects_tagging_oss/jest.config.js rename to src/platform/plugins/shared/saved_objects_tagging_oss/jest.config.js index 678344eee6715..db60e36e56158 100644 --- a/src/plugins/saved_objects_tagging_oss/jest.config.js +++ b/src/platform/plugins/shared/saved_objects_tagging_oss/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/saved_objects_tagging_oss'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/saved_objects_tagging_oss', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/saved_objects_tagging_oss'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects_tagging_oss', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/saved_objects_tagging_oss/{common,public}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/saved_objects_tagging_oss/{common,public}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/saved_objects_tagging_oss/kibana.jsonc b/src/platform/plugins/shared/saved_objects_tagging_oss/kibana.jsonc similarity index 100% rename from src/plugins/saved_objects_tagging_oss/kibana.jsonc rename to src/platform/plugins/shared/saved_objects_tagging_oss/kibana.jsonc diff --git a/src/plugins/saved_objects_tagging_oss/public/api.mock.ts b/src/platform/plugins/shared/saved_objects_tagging_oss/public/api.mock.ts similarity index 100% rename from src/plugins/saved_objects_tagging_oss/public/api.mock.ts rename to src/platform/plugins/shared/saved_objects_tagging_oss/public/api.mock.ts diff --git a/src/plugins/saved_objects_tagging_oss/public/api.ts b/src/platform/plugins/shared/saved_objects_tagging_oss/public/api.ts similarity index 100% rename from src/plugins/saved_objects_tagging_oss/public/api.ts rename to src/platform/plugins/shared/saved_objects_tagging_oss/public/api.ts diff --git a/src/plugins/saved_objects_tagging_oss/public/index.ts b/src/platform/plugins/shared/saved_objects_tagging_oss/public/index.ts similarity index 100% rename from src/plugins/saved_objects_tagging_oss/public/index.ts rename to src/platform/plugins/shared/saved_objects_tagging_oss/public/index.ts diff --git a/src/plugins/saved_objects_tagging_oss/public/mocks.ts b/src/platform/plugins/shared/saved_objects_tagging_oss/public/mocks.ts similarity index 100% rename from src/plugins/saved_objects_tagging_oss/public/mocks.ts rename to src/platform/plugins/shared/saved_objects_tagging_oss/public/mocks.ts diff --git a/src/plugins/saved_objects_tagging_oss/public/plugin.test.ts b/src/platform/plugins/shared/saved_objects_tagging_oss/public/plugin.test.ts similarity index 100% rename from src/plugins/saved_objects_tagging_oss/public/plugin.test.ts rename to src/platform/plugins/shared/saved_objects_tagging_oss/public/plugin.test.ts diff --git a/src/plugins/saved_objects_tagging_oss/public/plugin.ts b/src/platform/plugins/shared/saved_objects_tagging_oss/public/plugin.ts similarity index 100% rename from src/plugins/saved_objects_tagging_oss/public/plugin.ts rename to src/platform/plugins/shared/saved_objects_tagging_oss/public/plugin.ts diff --git a/src/plugins/saved_objects_tagging_oss/public/types.ts b/src/platform/plugins/shared/saved_objects_tagging_oss/public/types.ts similarity index 100% rename from src/plugins/saved_objects_tagging_oss/public/types.ts rename to src/platform/plugins/shared/saved_objects_tagging_oss/public/types.ts diff --git a/src/plugins/saved_objects_tagging_oss/tsconfig.json b/src/platform/plugins/shared/saved_objects_tagging_oss/tsconfig.json similarity index 80% rename from src/plugins/saved_objects_tagging_oss/tsconfig.json rename to src/platform/plugins/shared/saved_objects_tagging_oss/tsconfig.json index fa0436bab9161..6014fefd3e670 100644 --- a/src/plugins/saved_objects_tagging_oss/tsconfig.json +++ b/src/platform/plugins/shared/saved_objects_tagging_oss/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index fa13ec0efd897..ec783194a9f0c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1548,8 +1548,8 @@ "@kbn/saved-objects-plugin/*": ["src/platform/plugins/shared/saved_objects/*"], "@kbn/saved-objects-settings": ["packages/kbn-saved-objects-settings"], "@kbn/saved-objects-settings/*": ["packages/kbn-saved-objects-settings/*"], - "@kbn/saved-objects-tagging-oss-plugin": ["src/plugins/saved_objects_tagging_oss"], - "@kbn/saved-objects-tagging-oss-plugin/*": ["src/plugins/saved_objects_tagging_oss/*"], + "@kbn/saved-objects-tagging-oss-plugin": ["src/platform/plugins/shared/saved_objects_tagging_oss"], + "@kbn/saved-objects-tagging-oss-plugin/*": ["src/platform/plugins/shared/saved_objects_tagging_oss/*"], "@kbn/saved-objects-tagging-plugin": ["x-pack/plugins/saved_objects_tagging"], "@kbn/saved-objects-tagging-plugin/*": ["x-pack/plugins/saved_objects_tagging/*"], "@kbn/saved-search-component": ["packages/kbn-saved-search-component"], diff --git a/yarn.lock b/yarn.lock index ea4bb1e50425c..4f0c0bfc47209 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6913,7 +6913,7 @@ version "0.0.0" uid "" -"@kbn/saved-objects-tagging-oss-plugin@link:src/plugins/saved_objects_tagging_oss": +"@kbn/saved-objects-tagging-oss-plugin@link:src/platform/plugins/shared/saved_objects_tagging_oss": version "0.0.0" uid "" From 7be74c347c361467f0e8ab3845a06db96345ba6b Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:22:56 +0100 Subject: [PATCH 20/43] Relocating module `@kbn/saved-objects-tagging-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../plugins/private}/saved_objects_tagging/README.md | 4 ++-- .../private}/saved_objects_tagging/common/assignments.ts | 0 .../saved_objects_tagging/common/capabilities.test.ts | 0 .../private}/saved_objects_tagging/common/capabilities.ts | 0 .../private}/saved_objects_tagging/common/constants.ts | 0 .../saved_objects_tagging/common/http_api_types.ts | 0 .../private}/saved_objects_tagging/common/index.ts | 0 .../saved_objects_tagging/common/references.test.ts | 0 .../private}/saved_objects_tagging/common/references.ts | 0 .../saved_objects_tagging/common/test_utils/index.ts | 0 .../private}/saved_objects_tagging/common/types.ts | 0 .../saved_objects_tagging/common/validation.test.ts | 0 .../private}/saved_objects_tagging/common/validation.ts | 0 .../plugins/private}/saved_objects_tagging/jest.config.js | 8 ++++---- .../plugins/private}/saved_objects_tagging/kibana.jsonc | 0 .../public/components/assign_flyout/assign_flyout.scss | 0 .../public/components/assign_flyout/assign_flyout.tsx | 0 .../components/assign_flyout/components/action_bar.tsx | 0 .../public/components/assign_flyout/components/footer.tsx | 0 .../public/components/assign_flyout/components/header.tsx | 0 .../public/components/assign_flyout/components/index.ts | 0 .../components/assign_flyout/components/result_list.tsx | 0 .../components/assign_flyout/components/search_bar.tsx | 0 .../public/components/assign_flyout/index.ts | 0 .../components/assign_flyout/lib/compute_changes.test.ts | 0 .../components/assign_flyout/lib/compute_changes.ts | 0 .../public/components/assign_flyout/lib/index.ts | 0 .../components/assign_flyout/lib/parse_query.test.ts | 0 .../public/components/assign_flyout/lib/parse_query.ts | 0 .../components/assign_flyout/open_assign_flyout.tsx | 0 .../public/components/assign_flyout/types.ts | 0 .../public/components/assign_flyout/utils.test.ts | 0 .../public/components/assign_flyout/utils.ts | 0 .../saved_objects_tagging/public/components/base/index.ts | 0 .../public/components/base/tag_badge.tsx | 0 .../public/components/base/tag_list.tsx | 0 .../public/components/base/tag_searchbar_option.tsx | 0 .../public/components/base/tag_selector.test.tsx | 0 .../public/components/base/tag_selector.tsx | 0 .../public/components/connected/index.ts | 0 .../connected/saved_object_save_modal_tag_selector.tsx | 0 .../public/components/connected/tag_list.tsx | 0 .../public/components/connected/tag_selector.tsx | 0 .../public/components/edition_modal/create_modal.test.tsx | 0 .../public/components/edition_modal/create_modal.tsx | 0 .../components/edition_modal/create_or_edit_modal.tsx | 0 .../public/components/edition_modal/edit_modal.tsx | 0 .../public/components/edition_modal/index.ts | 0 .../public/components/edition_modal/open_modal.tsx | 0 .../public/components/edition_modal/use_validation.ts | 0 .../public/components/edition_modal/utils.ts | 0 .../saved_objects_tagging/public/components/index.ts | 0 .../private}/saved_objects_tagging/public/config.ts | 0 .../private}/saved_objects_tagging/public/index.ts | 0 .../public/management/actions/assign.ts | 0 .../public/management/actions/delete.ts | 0 .../public/management/actions/edit.ts | 0 .../public/management/actions/index.test.ts | 0 .../public/management/actions/index.ts | 0 .../public/management/actions/types.ts | 0 .../public/management/bulk_actions/bulk_assign.ts | 0 .../public/management/bulk_actions/bulk_delete.test.ts | 0 .../public/management/bulk_actions/bulk_delete.ts | 0 .../public/management/bulk_actions/clear_selection.ts | 0 .../public/management/bulk_actions/index.test.ts | 0 .../public/management/bulk_actions/index.ts | 0 .../public/management/components/_action_bar.scss | 0 .../public/management/components/action_bar.tsx | 0 .../public/management/components/header.tsx | 0 .../public/management/components/index.ts | 0 .../public/management/components/table.tsx | 0 .../saved_objects_tagging/public/management/index.ts | 0 .../public/management/mount_section.tsx | 0 .../public/management/tag_management_page.tsx | 0 .../saved_objects_tagging/public/management/types.ts | 0 .../management/utils/get_tag_connections_url.test.ts | 0 .../public/management/utils/get_tag_connections_url.ts | 0 .../public/management/utils/index.ts | 0 .../private}/saved_objects_tagging/public/mocks.ts | 0 .../private}/saved_objects_tagging/public/plugin.test.ts | 0 .../private}/saved_objects_tagging/public/plugin.ts | 0 .../services/assignments/assignment_service.mock.ts | 0 .../services/assignments/assignment_service.test.ts | 0 .../public/services/assignments/assignment_service.ts | 0 .../public/services/assignments/index.ts | 0 .../saved_objects_tagging/public/services/index.ts | 0 .../saved_objects_tagging/public/services/tags/errors.ts | 0 .../saved_objects_tagging/public/services/tags/index.ts | 0 .../public/services/tags/tags_cache.mock.ts | 0 .../public/services/tags/tags_cache.test.ts | 0 .../public/services/tags/tags_cache.ts | 0 .../public/services/tags/tags_client.mock.ts | 0 .../public/services/tags/tags_client.test.ts | 0 .../public/services/tags/tags_client.ts | 0 .../private}/saved_objects_tagging/public/types.ts | 0 .../saved_objects_tagging/public/ui_api/components.ts | 0 .../public/ui_api/convert_name_to_reference.ts | 0 .../public/ui_api/get_search_bar_filter.test.ts | 0 .../public/ui_api/get_search_bar_filter.tsx | 0 .../public/ui_api/get_table_column_definition.test.ts | 0 .../public/ui_api/get_table_column_definition.tsx | 0 .../public/ui_api/get_tag_list.test.ts | 0 .../saved_objects_tagging/public/ui_api/get_tag_list.ts | 0 .../private}/saved_objects_tagging/public/ui_api/index.ts | 0 .../public/ui_api/parse_search_query.test.ts | 0 .../public/ui_api/parse_search_query.ts | 0 .../private}/saved_objects_tagging/public/utils.test.ts | 0 .../private}/saved_objects_tagging/public/utils.ts | 0 .../private}/saved_objects_tagging/server/config.ts | 0 .../private}/saved_objects_tagging/server/features.ts | 0 .../private}/saved_objects_tagging/server/index.ts | 0 .../private}/saved_objects_tagging/server/mocks.ts | 0 .../saved_objects_tagging/server/plugin.test.mocks.ts | 0 .../private}/saved_objects_tagging/server/plugin.test.ts | 0 .../private}/saved_objects_tagging/server/plugin.ts | 0 .../server/request_handler_context.ts | 0 .../server/routes/assignments/find_assignable_objects.ts | 0 .../server/routes/assignments/get_assignable_types.ts | 0 .../server/routes/assignments/index.ts | 0 .../server/routes/assignments/update_tags_assignments.ts | 0 .../private}/saved_objects_tagging/server/routes/index.ts | 0 .../server/routes/internal/bulk_delete.ts | 0 .../server/routes/internal/find_tags.ts | 0 .../saved_objects_tagging/server/routes/internal/index.ts | 0 .../server/routes/lib/get_connection_count.ts | 0 .../saved_objects_tagging/server/routes/lib/index.ts | 0 .../server/routes/tags/create_tag.ts | 0 .../server/routes/tags/delete_tag.ts | 0 .../server/routes/tags/get_all_tags.ts | 0 .../saved_objects_tagging/server/routes/tags/get_tag.ts | 0 .../saved_objects_tagging/server/routes/tags/index.ts | 0 .../server/routes/tags/update_tag.ts | 0 .../saved_objects_tagging/server/saved_objects/index.ts | 0 .../saved_objects_tagging/server/saved_objects/tag.ts | 0 .../services/assignments/assignment_service.mock.ts | 0 .../services/assignments/assignment_service.test.mocks.ts | 0 .../services/assignments/assignment_service.test.ts | 0 .../server/services/assignments/assignment_service.ts | 0 .../server/services/assignments/errors.test.ts | 0 .../server/services/assignments/errors.ts | 0 .../server/services/assignments/get_updatable_types.ts | 0 .../server/services/assignments/index.ts | 0 .../server/services/assignments/utils.test.ts | 0 .../server/services/assignments/utils.ts | 0 .../saved_objects_tagging/server/services/index.ts | 0 .../server/services/tags/errors.test.ts | 0 .../saved_objects_tagging/server/services/tags/errors.ts | 0 .../saved_objects_tagging/server/services/tags/index.ts | 0 .../server/services/tags/tags_client.mock.ts | 0 .../server/services/tags/tags_client.test.mocks.ts | 0 .../server/services/tags/tags_client.test.ts | 0 .../server/services/tags/tags_client.ts | 0 .../saved_objects_tagging/server/services/tags/utils.ts | 0 .../server/services/tags/validate_tag.test.mocks.ts | 0 .../server/services/tags/validate_tag.test.ts | 0 .../server/services/tags/validate_tag.ts | 0 .../private}/saved_objects_tagging/server/types.ts | 0 .../server/usage/fetch_tag_usage_data.ts | 0 .../private}/saved_objects_tagging/server/usage/index.ts | 0 .../saved_objects_tagging/server/usage/schema.test.ts | 0 .../private}/saved_objects_tagging/server/usage/schema.ts | 0 .../server/usage/tag_usage_collector.ts | 0 .../private}/saved_objects_tagging/server/usage/types.ts | 0 .../plugins/private}/saved_objects_tagging/tsconfig.json | 2 +- yarn.lock | 2 +- 170 files changed, 14 insertions(+), 14 deletions(-) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/README.md (85%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/assignments.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/capabilities.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/capabilities.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/constants.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/http_api_types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/references.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/references.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/test_utils/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/validation.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/common/validation.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/jest.config.js (61%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/assign_flyout.scss (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/assign_flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/components/action_bar.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/components/footer.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/components/header.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/components/result_list.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/components/search_bar.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/lib/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/open_assign_flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/assign_flyout/utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/base/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/base/tag_badge.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/base/tag_list.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/base/tag_searchbar_option.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/base/tag_selector.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/base/tag_selector.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/connected/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/connected/saved_object_save_modal_tag_selector.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/connected/tag_list.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/connected/tag_selector.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/edition_modal/create_modal.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/edition_modal/create_modal.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/edition_modal/create_or_edit_modal.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/edition_modal/edit_modal.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/edition_modal/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/edition_modal/open_modal.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/edition_modal/use_validation.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/edition_modal/utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/actions/assign.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/actions/delete.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/actions/edit.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/actions/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/actions/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/actions/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/bulk_actions/bulk_assign.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/bulk_actions/bulk_delete.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/bulk_actions/bulk_delete.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/bulk_actions/clear_selection.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/bulk_actions/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/bulk_actions/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/components/_action_bar.scss (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/components/action_bar.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/components/header.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/components/table.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/mount_section.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/tag_management_page.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/utils/get_tag_connections_url.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/utils/get_tag_connections_url.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/management/utils/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/assignments/assignment_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/assignments/assignment_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/assignments/assignment_service.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/assignments/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/tags/errors.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/tags/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/tags/tags_cache.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/tags/tags_cache.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/tags/tags_cache.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/tags/tags_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/tags/tags_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/services/tags/tags_client.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/components.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/convert_name_to_reference.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/get_search_bar_filter.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/get_search_bar_filter.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/get_table_column_definition.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/get_tag_list.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/get_tag_list.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/parse_search_query.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/ui_api/parse_search_query.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/public/utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/features.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/plugin.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/request_handler_context.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/assignments/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/internal/bulk_delete.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/internal/find_tags.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/internal/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/lib/get_connection_count.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/lib/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/tags/create_tag.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/tags/delete_tag.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/tags/get_all_tags.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/tags/get_tag.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/tags/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/routes/tags/update_tag.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/saved_objects/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/saved_objects/tag.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/assignment_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/assignment_service.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/assignment_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/assignment_service.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/errors.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/errors.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/get_updatable_types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/assignments/utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/errors.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/errors.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/tags_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/tags_client.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/tags_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/tags_client.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/validate_tag.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/validate_tag.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/services/tags/validate_tag.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/usage/fetch_tag_usage_data.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/usage/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/usage/schema.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/usage/schema.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/usage/tag_usage_collector.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/server/usage/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/saved_objects_tagging/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 75857c46f5983..d23e84d59fedd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -853,6 +853,7 @@ x-pack/platform/plugins/private/remote_clusters @elastic/kibana-management x-pack/platform/plugins/private/reporting @elastic/appex-sharedux x-pack/platform/plugins/private/rollup @elastic/kibana-management x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management +x-pack/platform/plugins/private/saved_objects_tagging @elastic/appex-sharedux x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management x-pack/platform/plugins/private/transform @elastic/ml-ui x-pack/platform/plugins/private/translations @elastic/kibana-localization @@ -920,7 +921,6 @@ x-pack/plugins/observability_solution/observability_shared @elastic/observabilit x-pack/plugins/observability_solution/profiling @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/profiling_data_access @elastic/obs-ux-infra_services-team x-pack/plugins/rule_registry @elastic/response-ops @elastic/obs-ux-management-team -x-pack/plugins/saved_objects_tagging @elastic/appex-sharedux x-pack/plugins/search_assistant @elastic/search-kibana x-pack/plugins/search_connectors @elastic/search-kibana x-pack/plugins/search_homepage @elastic/search-kibana diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index ff858bed05579..a894457a6c9e3 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -812,7 +812,7 @@ Elastic. |Welcome to the home of the runtime field editor and everything related to runtime fields! -|{kib-repo}blob/{branch}/x-pack/plugins/saved_objects_tagging/README.md[savedObjectsTagging] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/saved_objects_tagging/README.md[savedObjectsTagging] |Add tagging capability to saved objects diff --git a/package.json b/package.json index 992d83a8de7d8..33567ee103931 100644 --- a/package.json +++ b/package.json @@ -790,7 +790,7 @@ "@kbn/saved-objects-plugin": "link:src/platform/plugins/shared/saved_objects", "@kbn/saved-objects-settings": "link:packages/kbn-saved-objects-settings", "@kbn/saved-objects-tagging-oss-plugin": "link:src/platform/plugins/shared/saved_objects_tagging_oss", - "@kbn/saved-objects-tagging-plugin": "link:x-pack/plugins/saved_objects_tagging", + "@kbn/saved-objects-tagging-plugin": "link:x-pack/platform/plugins/private/saved_objects_tagging", "@kbn/saved-search-component": "link:packages/kbn-saved-search-component", "@kbn/saved-search-plugin": "link:src/plugins/saved_search", "@kbn/screenshot-mode-example-plugin": "link:examples/screenshot_mode_example", diff --git a/tsconfig.base.json b/tsconfig.base.json index ec783194a9f0c..322f8f2b814f5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1550,8 +1550,8 @@ "@kbn/saved-objects-settings/*": ["packages/kbn-saved-objects-settings/*"], "@kbn/saved-objects-tagging-oss-plugin": ["src/platform/plugins/shared/saved_objects_tagging_oss"], "@kbn/saved-objects-tagging-oss-plugin/*": ["src/platform/plugins/shared/saved_objects_tagging_oss/*"], - "@kbn/saved-objects-tagging-plugin": ["x-pack/plugins/saved_objects_tagging"], - "@kbn/saved-objects-tagging-plugin/*": ["x-pack/plugins/saved_objects_tagging/*"], + "@kbn/saved-objects-tagging-plugin": ["x-pack/platform/plugins/private/saved_objects_tagging"], + "@kbn/saved-objects-tagging-plugin/*": ["x-pack/platform/plugins/private/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"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 85639b2e48c1a..9977bef027876 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -157,7 +157,7 @@ "xpack.snapshotRestore": "platform/plugins/private/snapshot_restore", "xpack.spaces": "plugins/spaces", "xpack.savedObjectsTagging": [ - "plugins/saved_objects_tagging" + "platform/plugins/private/saved_objects_tagging" ], "xpack.taskManager": "legacy/plugins/task_manager", "xpack.threatIntelligence": "solutions/security/plugins/threat_intelligence", diff --git a/x-pack/plugins/saved_objects_tagging/README.md b/x-pack/platform/plugins/private/saved_objects_tagging/README.md similarity index 85% rename from x-pack/plugins/saved_objects_tagging/README.md rename to x-pack/platform/plugins/private/saved_objects_tagging/README.md index 93747639ef3bb..68ac5fe507767 100644 --- a/x-pack/plugins/saved_objects_tagging/README.md +++ b/x-pack/platform/plugins/private/saved_objects_tagging/README.md @@ -38,7 +38,7 @@ features.registerKibanaFeature({ ### Update the SOT telemetry collector schema to add the new type -The schema is located here: `x-pack/plugins/saved_objects_tagging/server/usage/schema.ts`. You +The schema is located here: `x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.ts`. You just need to add the name of the SO type you are adding. ```ts @@ -54,5 +54,5 @@ export const tagUsageCollectorSchema: MakeSchemaFrom = { ### Update the `taggableTypes` constant to add your type -Edit the `taggableTypes` list in `x-pack/plugins/saved_objects_tagging/common/constants.ts` to add +Edit the `taggableTypes` list in `x-pack/platform/plugins/private/saved_objects_tagging/common/constants.ts` to add the name of the type you are adding. diff --git a/x-pack/plugins/saved_objects_tagging/common/assignments.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/assignments.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/assignments.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/assignments.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/capabilities.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/capabilities.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/capabilities.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/capabilities.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/capabilities.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/constants.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/constants.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/constants.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/constants.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/http_api_types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/http_api_types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/http_api_types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/http_api_types.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/references.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/references.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/references.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/references.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/references.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/references.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/references.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/test_utils/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/test_utils/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/test_utils/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/test_utils/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/types.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/validation.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/validation.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/validation.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/validation.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/common/validation.ts b/x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/common/validation.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/common/validation.ts diff --git a/x-pack/plugins/saved_objects_tagging/jest.config.js b/x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js similarity index 61% rename from x-pack/plugins/saved_objects_tagging/jest.config.js rename to x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js index 2a2d0371267e3..5436844bcfd05 100644 --- a/x-pack/plugins/saved_objects_tagging/jest.config.js +++ b/x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js @@ -7,11 +7,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/saved_objects_tagging'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/saved_objects_tagging', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/saved_objects_tagging'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/saved_objects_tagging', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/saved_objects_tagging/{common,public,server}/**/*.{ts,tsx}', + '/x-pack/platform/plugins/private/saved_objects_tagging/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/x-pack/plugins/saved_objects_tagging/kibana.jsonc b/x-pack/platform/plugins/private/saved_objects_tagging/kibana.jsonc similarity index 100% rename from x-pack/plugins/saved_objects_tagging/kibana.jsonc rename to x-pack/platform/plugins/private/saved_objects_tagging/kibana.jsonc diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/assign_flyout.scss b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/assign_flyout.scss similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/assign_flyout.scss rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/assign_flyout.scss diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/assign_flyout.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/assign_flyout.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/assign_flyout.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/assign_flyout.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/action_bar.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/action_bar.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/action_bar.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/action_bar.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/footer.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/footer.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/footer.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/footer.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/header.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/header.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/header.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/header.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/result_list.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/result_list.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/result_list.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/result_list.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/search_bar.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/search_bar.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/components/search_bar.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/components/search_bar.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/compute_changes.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/lib/parse_query.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/open_assign_flyout.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/open_assign_flyout.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/open_assign_flyout.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/open_assign_flyout.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/types.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/utils.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/utils.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/utils.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/utils.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/utils.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/utils.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/assign_flyout/utils.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/assign_flyout/utils.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/base/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/base/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/base/tag_badge.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_badge.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/base/tag_badge.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_badge.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/base/tag_list.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_list.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/base/tag_list.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_list.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/base/tag_searchbar_option.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_searchbar_option.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/base/tag_searchbar_option.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_searchbar_option.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/base/tag_selector.test.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_selector.test.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/base/tag_selector.test.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_selector.test.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/base/tag_selector.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_selector.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/base/tag_selector.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/base/tag_selector.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/connected/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/connected/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/connected/saved_object_save_modal_tag_selector.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/saved_object_save_modal_tag_selector.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/connected/saved_object_save_modal_tag_selector.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/saved_object_save_modal_tag_selector.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/connected/tag_list.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_list.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/connected/tag_list.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_list.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/connected/tag_selector.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_selector.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/connected/tag_selector.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/connected/tag_selector.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/edition_modal/create_modal.test.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_modal.test.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/edition_modal/create_modal.test.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_modal.test.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/edition_modal/create_modal.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_modal.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/edition_modal/create_modal.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_modal.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/edition_modal/create_or_edit_modal.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_or_edit_modal.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/edition_modal/create_or_edit_modal.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/create_or_edit_modal.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/edition_modal/edit_modal.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/edit_modal.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/edition_modal/edit_modal.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/edit_modal.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/edition_modal/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/edition_modal/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/edition_modal/open_modal.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/open_modal.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/edition_modal/open_modal.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/open_modal.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/components/edition_modal/use_validation.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/use_validation.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/edition_modal/use_validation.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/use_validation.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/edition_modal/utils.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/utils.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/edition_modal/utils.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/edition_modal/utils.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/components/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/components/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/components/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/components/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/config.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/config.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/config.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/config.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/actions/assign.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/assign.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/actions/assign.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/assign.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/actions/delete.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/delete.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/actions/delete.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/delete.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/actions/edit.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/edit.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/actions/edit.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/edit.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/actions/index.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/index.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/actions/index.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/index.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/actions/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/actions/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/actions/types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/actions/types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/actions/types.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/bulk_assign.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_assign.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/bulk_assign.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_assign.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/bulk_delete.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_delete.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/bulk_delete.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_delete.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/bulk_delete.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_delete.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/bulk_delete.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/bulk_delete.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/clear_selection.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/clear_selection.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/clear_selection.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/clear_selection.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/index.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/index.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/index.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/index.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/bulk_actions/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/bulk_actions/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/components/_action_bar.scss b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/_action_bar.scss similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/components/_action_bar.scss rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/_action_bar.scss diff --git a/x-pack/plugins/saved_objects_tagging/public/management/components/action_bar.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/action_bar.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/components/action_bar.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/action_bar.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/management/components/header.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/header.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/components/header.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/header.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/management/components/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/components/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/components/table.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/table.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/components/table.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/components/table.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/management/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/mount_section.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/mount_section.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/mount_section.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/mount_section.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/management/tag_management_page.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/tag_management_page.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/tag_management_page.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/tag_management_page.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/management/types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/types.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/utils/get_tag_connections_url.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/get_tag_connections_url.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/utils/get_tag_connections_url.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/get_tag_connections_url.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/utils/get_tag_connections_url.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/get_tag_connections_url.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/utils/get_tag_connections_url.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/get_tag_connections_url.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/management/utils/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/management/utils/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/management/utils/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/mocks.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/mocks.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/mocks.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/mocks.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/plugin.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/plugin.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/plugin.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/plugin.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/plugin.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/plugin.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/plugin.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/assignments/assignment_service.mock.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.mock.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/assignments/assignment_service.mock.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.mock.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/assignments/assignment_service.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/assignments/assignment_service.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/assignments/assignment_service.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/assignments/assignment_service.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/assignment_service.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/assignments/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/assignments/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/assignments/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/tags/errors.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/errors.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/tags/errors.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/errors.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/tags/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/tags/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/tags/tags_cache.mock.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.mock.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/tags/tags_cache.mock.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.mock.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/tags/tags_cache.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/tags/tags_cache.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/tags/tags_cache.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/tags/tags_cache.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_cache.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/tags/tags_client.mock.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.mock.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/tags/tags_client.mock.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.mock.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/tags/tags_client.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/tags/tags_client.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/services/tags/tags_client.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/services/tags/tags_client.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/services/tags/tags_client.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/types.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/components.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/components.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/components.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/components.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/convert_name_to_reference.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/convert_name_to_reference.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/convert_name_to_reference.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/convert_name_to_reference.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/get_search_bar_filter.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_search_bar_filter.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/get_search_bar_filter.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_search_bar_filter.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/get_search_bar_filter.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_search_bar_filter.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/get_search_bar_filter.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_search_bar_filter.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/get_table_column_definition.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/get_table_column_definition.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_table_column_definition.tsx diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/get_tag_list.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_tag_list.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/get_tag_list.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_tag_list.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/get_tag_list.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_tag_list.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/get_tag_list.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/get_tag_list.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/parse_search_query.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/parse_search_query.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/parse_search_query.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/parse_search_query.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/ui_api/parse_search_query.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/parse_search_query.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/ui_api/parse_search_query.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/ui_api/parse_search_query.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/utils.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/utils.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/utils.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/public/utils.ts b/x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/public/utils.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/public/utils.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/config.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/config.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/config.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/config.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/features.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/features.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/features.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/features.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/mocks.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/mocks.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/mocks.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/mocks.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/plugin.test.mocks.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.test.mocks.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/plugin.test.mocks.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.test.mocks.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/plugin.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/plugin.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/plugin.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/plugin.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/plugin.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/request_handler_context.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/request_handler_context.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/request_handler_context.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/request_handler_context.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/find_assignable_objects.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/get_assignable_types.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/assignments/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/assignments/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/assignments/update_tags_assignments.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/internal/bulk_delete.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/bulk_delete.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/internal/bulk_delete.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/bulk_delete.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/internal/find_tags.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/find_tags.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/internal/find_tags.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/find_tags.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/internal/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/internal/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/internal/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/lib/get_connection_count.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/lib/get_connection_count.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/lib/get_connection_count.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/lib/get_connection_count.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/lib/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/lib/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/lib/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/lib/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/tags/create_tag.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/create_tag.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/tags/create_tag.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/create_tag.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/tags/delete_tag.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/delete_tag.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/tags/delete_tag.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/delete_tag.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/tags/get_all_tags.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_all_tags.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/tags/get_all_tags.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_all_tags.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/tags/get_tag.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_tag.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/tags/get_tag.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/get_tag.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/tags/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/tags/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/routes/tags/update_tag.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/update_tag.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/routes/tags/update_tag.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/routes/tags/update_tag.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/saved_objects/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/saved_objects/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/saved_objects/tag.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/tag.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/saved_objects/tag.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/saved_objects/tag.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/assignment_service.mock.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.mock.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/assignment_service.mock.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.mock.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/assignment_service.test.mocks.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.test.mocks.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/assignment_service.test.mocks.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.test.mocks.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/assignment_service.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/assignment_service.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/assignment_service.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/assignment_service.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/assignment_service.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/errors.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/errors.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/errors.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/errors.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/errors.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/errors.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/errors.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/errors.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/get_updatable_types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/get_updatable_types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/get_updatable_types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/get_updatable_types.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/utils.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/utils.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/utils.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/utils.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/assignments/utils.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/utils.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/assignments/utils.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/assignments/utils.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/errors.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/errors.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/errors.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/errors.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/errors.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/errors.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/errors.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/errors.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/tags_client.mock.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.mock.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/tags_client.mock.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.mock.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/tags_client.test.mocks.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.test.mocks.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/tags_client.test.mocks.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.test.mocks.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/tags_client.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/tags_client.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/tags_client.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/tags_client.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/tags_client.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/utils.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/utils.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/utils.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/utils.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/validate_tag.test.mocks.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.test.mocks.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/validate_tag.test.mocks.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.test.mocks.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/validate_tag.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/validate_tag.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/services/tags/validate_tag.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/services/tags/validate_tag.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/services/tags/validate_tag.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/types.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/usage/fetch_tag_usage_data.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/fetch_tag_usage_data.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/usage/fetch_tag_usage_data.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/usage/fetch_tag_usage_data.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/usage/index.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/index.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/usage/index.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/usage/index.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/usage/schema.test.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.test.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/usage/schema.test.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.test.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/usage/schema.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/usage/schema.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/usage/schema.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/usage/tag_usage_collector.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/tag_usage_collector.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/usage/tag_usage_collector.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/usage/tag_usage_collector.ts diff --git a/x-pack/plugins/saved_objects_tagging/server/usage/types.ts b/x-pack/platform/plugins/private/saved_objects_tagging/server/usage/types.ts similarity index 100% rename from x-pack/plugins/saved_objects_tagging/server/usage/types.ts rename to x-pack/platform/plugins/private/saved_objects_tagging/server/usage/types.ts diff --git a/x-pack/plugins/saved_objects_tagging/tsconfig.json b/x-pack/platform/plugins/private/saved_objects_tagging/tsconfig.json similarity index 93% rename from x-pack/plugins/saved_objects_tagging/tsconfig.json rename to x-pack/platform/plugins/private/saved_objects_tagging/tsconfig.json index b40ffe7f3fa81..1f24d7b1c482c 100644 --- a/x-pack/plugins/saved_objects_tagging/tsconfig.json +++ b/x-pack/platform/plugins/private/saved_objects_tagging/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/yarn.lock b/yarn.lock index 4f0c0bfc47209..db3916e76af9c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6917,7 +6917,7 @@ version "0.0.0" uid "" -"@kbn/saved-objects-tagging-plugin@link:x-pack/plugins/saved_objects_tagging": +"@kbn/saved-objects-tagging-plugin@link:x-pack/platform/plugins/private/saved_objects_tagging": version "0.0.0" uid "" From 87a16af0a4f18ec8a0620d81bb92a42926df596e Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:24:19 +0100 Subject: [PATCH 21/43] Relocating module `@kbn/screenshot-mode-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/screenshot_mode/README.md | 0 .../plugins/shared}/screenshot_mode/common/constants.ts | 0 .../shared}/screenshot_mode/common/context.test.ts | 0 .../plugins/shared}/screenshot_mode/common/context.ts | 0 .../plugins/shared}/screenshot_mode/common/index.ts | 0 .../plugins/shared}/screenshot_mode/common/mode.ts | 0 .../plugins/shared}/screenshot_mode/jest.config.js | 8 ++++---- .../plugins/shared}/screenshot_mode/kibana.jsonc | 0 .../plugins/shared}/screenshot_mode/public/index.ts | 0 .../plugins/shared}/screenshot_mode/public/mocks.ts | 0 .../plugins/shared}/screenshot_mode/public/plugin.test.ts | 0 .../plugins/shared}/screenshot_mode/public/plugin.ts | 0 .../plugins/shared}/screenshot_mode/public/types.ts | 0 .../plugins/shared}/screenshot_mode/server/index.ts | 0 .../screenshot_mode/server/is_screenshot_mode.test.ts | 0 .../shared}/screenshot_mode/server/is_screenshot_mode.ts | 0 .../plugins/shared}/screenshot_mode/server/plugin.ts | 0 .../plugins/shared}/screenshot_mode/server/types.ts | 0 .../plugins/shared}/screenshot_mode/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 24 files changed, 11 insertions(+), 11 deletions(-) rename src/{plugins => platform/plugins/shared}/screenshot_mode/README.md (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/common/context.test.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/common/context.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/common/mode.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/jest.config.js (73%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/server/is_screenshot_mode.test.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/server/is_screenshot_mode.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/screenshot_mode/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d23e84d59fedd..ed72e6e4e1195 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -630,6 +630,7 @@ src/platform/plugins/shared/management @elastic/kibana-management src/platform/plugins/shared/navigation @elastic/appex-sharedux src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux +src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux src/plugins/chart_expressions/common @elastic/kibana-visualizations @@ -675,7 +676,6 @@ src/plugins/presentation_util @elastic/kibana-presentation src/plugins/saved_objects_finder @elastic/kibana-data-discovery src/plugins/saved_objects_management @elastic/kibana-core 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 src/plugins/telemetry_collection_manager @elastic/kibana-core diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index a894457a6c9e3..7a137770a7591 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -312,7 +312,7 @@ oss plugins. This object is created when a user saves their current session in the Discover app. -|{kib-repo}blob/{branch}/src/plugins/screenshot_mode/README.md[screenshotMode] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/screenshot_mode/README.md[screenshotMode] |The service exposed by this plugin informs consumers whether they should optimize for non-interactivity. In this way plugins can avoid loading unnecessary code, data or other services. diff --git a/package.json b/package.json index 33567ee103931..3127233794cf8 100644 --- a/package.json +++ b/package.json @@ -794,7 +794,7 @@ "@kbn/saved-search-component": "link:packages/kbn-saved-search-component", "@kbn/saved-search-plugin": "link:src/plugins/saved_search", "@kbn/screenshot-mode-example-plugin": "link:examples/screenshot_mode_example", - "@kbn/screenshot-mode-plugin": "link:src/plugins/screenshot_mode", + "@kbn/screenshot-mode-plugin": "link:src/platform/plugins/shared/screenshot_mode", "@kbn/screenshotting-example-plugin": "link:x-pack/examples/screenshotting_example", "@kbn/screenshotting-plugin": "link:x-pack/platform/plugins/shared/screenshotting", "@kbn/screenshotting-server": "link:packages/kbn-screenshotting-server", diff --git a/src/plugins/screenshot_mode/README.md b/src/platform/plugins/shared/screenshot_mode/README.md similarity index 100% rename from src/plugins/screenshot_mode/README.md rename to src/platform/plugins/shared/screenshot_mode/README.md diff --git a/src/plugins/screenshot_mode/common/constants.ts b/src/platform/plugins/shared/screenshot_mode/common/constants.ts similarity index 100% rename from src/plugins/screenshot_mode/common/constants.ts rename to src/platform/plugins/shared/screenshot_mode/common/constants.ts diff --git a/src/plugins/screenshot_mode/common/context.test.ts b/src/platform/plugins/shared/screenshot_mode/common/context.test.ts similarity index 100% rename from src/plugins/screenshot_mode/common/context.test.ts rename to src/platform/plugins/shared/screenshot_mode/common/context.test.ts diff --git a/src/plugins/screenshot_mode/common/context.ts b/src/platform/plugins/shared/screenshot_mode/common/context.ts similarity index 100% rename from src/plugins/screenshot_mode/common/context.ts rename to src/platform/plugins/shared/screenshot_mode/common/context.ts diff --git a/src/plugins/screenshot_mode/common/index.ts b/src/platform/plugins/shared/screenshot_mode/common/index.ts similarity index 100% rename from src/plugins/screenshot_mode/common/index.ts rename to src/platform/plugins/shared/screenshot_mode/common/index.ts diff --git a/src/plugins/screenshot_mode/common/mode.ts b/src/platform/plugins/shared/screenshot_mode/common/mode.ts similarity index 100% rename from src/plugins/screenshot_mode/common/mode.ts rename to src/platform/plugins/shared/screenshot_mode/common/mode.ts diff --git a/src/plugins/screenshot_mode/jest.config.js b/src/platform/plugins/shared/screenshot_mode/jest.config.js similarity index 73% rename from src/plugins/screenshot_mode/jest.config.js rename to src/platform/plugins/shared/screenshot_mode/jest.config.js index 4622c36213b93..0f9bdfca7ae4b 100644 --- a/src/plugins/screenshot_mode/jest.config.js +++ b/src/platform/plugins/shared/screenshot_mode/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/screenshot_mode'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/screenshot_mode', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/screenshot_mode'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/screenshot_mode', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/screenshot_mode/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/screenshot_mode/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/screenshot_mode/kibana.jsonc b/src/platform/plugins/shared/screenshot_mode/kibana.jsonc similarity index 100% rename from src/plugins/screenshot_mode/kibana.jsonc rename to src/platform/plugins/shared/screenshot_mode/kibana.jsonc diff --git a/src/plugins/screenshot_mode/public/index.ts b/src/platform/plugins/shared/screenshot_mode/public/index.ts similarity index 100% rename from src/plugins/screenshot_mode/public/index.ts rename to src/platform/plugins/shared/screenshot_mode/public/index.ts diff --git a/src/plugins/screenshot_mode/public/mocks.ts b/src/platform/plugins/shared/screenshot_mode/public/mocks.ts similarity index 100% rename from src/plugins/screenshot_mode/public/mocks.ts rename to src/platform/plugins/shared/screenshot_mode/public/mocks.ts diff --git a/src/plugins/screenshot_mode/public/plugin.test.ts b/src/platform/plugins/shared/screenshot_mode/public/plugin.test.ts similarity index 100% rename from src/plugins/screenshot_mode/public/plugin.test.ts rename to src/platform/plugins/shared/screenshot_mode/public/plugin.test.ts diff --git a/src/plugins/screenshot_mode/public/plugin.ts b/src/platform/plugins/shared/screenshot_mode/public/plugin.ts similarity index 100% rename from src/plugins/screenshot_mode/public/plugin.ts rename to src/platform/plugins/shared/screenshot_mode/public/plugin.ts diff --git a/src/plugins/screenshot_mode/public/types.ts b/src/platform/plugins/shared/screenshot_mode/public/types.ts similarity index 100% rename from src/plugins/screenshot_mode/public/types.ts rename to src/platform/plugins/shared/screenshot_mode/public/types.ts diff --git a/src/plugins/screenshot_mode/server/index.ts b/src/platform/plugins/shared/screenshot_mode/server/index.ts similarity index 100% rename from src/plugins/screenshot_mode/server/index.ts rename to src/platform/plugins/shared/screenshot_mode/server/index.ts diff --git a/src/plugins/screenshot_mode/server/is_screenshot_mode.test.ts b/src/platform/plugins/shared/screenshot_mode/server/is_screenshot_mode.test.ts similarity index 100% rename from src/plugins/screenshot_mode/server/is_screenshot_mode.test.ts rename to src/platform/plugins/shared/screenshot_mode/server/is_screenshot_mode.test.ts diff --git a/src/plugins/screenshot_mode/server/is_screenshot_mode.ts b/src/platform/plugins/shared/screenshot_mode/server/is_screenshot_mode.ts similarity index 100% rename from src/plugins/screenshot_mode/server/is_screenshot_mode.ts rename to src/platform/plugins/shared/screenshot_mode/server/is_screenshot_mode.ts diff --git a/src/plugins/screenshot_mode/server/plugin.ts b/src/platform/plugins/shared/screenshot_mode/server/plugin.ts similarity index 100% rename from src/plugins/screenshot_mode/server/plugin.ts rename to src/platform/plugins/shared/screenshot_mode/server/plugin.ts diff --git a/src/plugins/screenshot_mode/server/types.ts b/src/platform/plugins/shared/screenshot_mode/server/types.ts similarity index 100% rename from src/plugins/screenshot_mode/server/types.ts rename to src/platform/plugins/shared/screenshot_mode/server/types.ts diff --git a/src/plugins/screenshot_mode/tsconfig.json b/src/platform/plugins/shared/screenshot_mode/tsconfig.json similarity index 83% rename from src/plugins/screenshot_mode/tsconfig.json rename to src/platform/plugins/shared/screenshot_mode/tsconfig.json index 24dfeef9ca2e5..b6e46ba16b485 100644 --- a/src/plugins/screenshot_mode/tsconfig.json +++ b/src/platform/plugins/shared/screenshot_mode/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 322f8f2b814f5..ba19272bc5e6a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1564,8 +1564,8 @@ "@kbn/scout-reporting/*": ["packages/kbn-scout-reporting/*"], "@kbn/screenshot-mode-example-plugin": ["examples/screenshot_mode_example"], "@kbn/screenshot-mode-example-plugin/*": ["examples/screenshot_mode_example/*"], - "@kbn/screenshot-mode-plugin": ["src/plugins/screenshot_mode"], - "@kbn/screenshot-mode-plugin/*": ["src/plugins/screenshot_mode/*"], + "@kbn/screenshot-mode-plugin": ["src/platform/plugins/shared/screenshot_mode"], + "@kbn/screenshot-mode-plugin/*": ["src/platform/plugins/shared/screenshot_mode/*"], "@kbn/screenshotting-example-plugin": ["x-pack/examples/screenshotting_example"], "@kbn/screenshotting-example-plugin/*": ["x-pack/examples/screenshotting_example/*"], "@kbn/screenshotting-plugin": ["x-pack/platform/plugins/shared/screenshotting"], diff --git a/yarn.lock b/yarn.lock index db3916e76af9c..08a7007e2a8a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6945,7 +6945,7 @@ version "0.0.0" uid "" -"@kbn/screenshot-mode-plugin@link:src/plugins/screenshot_mode": +"@kbn/screenshot-mode-plugin@link:src/platform/plugins/shared/screenshot_mode": version "0.0.0" uid "" From 5e421489490ec30104aa2305295b1d321878e20d Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:25:40 +0100 Subject: [PATCH 22/43] Relocating module `@kbn/serverless` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../plugins/shared}/serverless/README.mdx | 0 .../plugins/shared}/serverless/assets/diagram.png | Bin .../plugins/shared}/serverless/common/index.ts | 0 .../plugins/shared}/serverless/jest.config.js | 8 ++++---- .../plugins/shared}/serverless/kibana.jsonc | 0 .../plugins/shared}/serverless/package.json | 4 ++-- .../plugins/shared}/serverless/public/config.ts | 0 .../plugins/shared}/serverless/public/index.ts | 0 .../plugins/shared}/serverless/public/mocks.ts | 0 .../shared}/serverless/public/navigation/index.tsx | 0 .../serverless/public/navigation/nav_cards.ts | 0 .../serverless/public/navigation/navigation.tsx | 0 .../plugins/shared}/serverless/public/plugin.tsx | 0 .../plugins/shared}/serverless/public/types.ts | 0 .../plugins/shared}/serverless/server/config.ts | 0 .../plugins/shared}/serverless/server/index.ts | 0 .../plugins/shared}/serverless/server/mocks.ts | 0 .../shared}/serverless/server/plugin.test.ts | 0 .../plugins/shared}/serverless/server/plugin.ts | 0 .../plugins/shared}/serverless/server/types.ts | 0 .../plugins/shared}/serverless/tsconfig.json | 2 +- yarn.lock | 2 +- 27 files changed, 14 insertions(+), 14 deletions(-) rename x-pack/{plugins => platform/plugins/shared}/serverless/README.mdx (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/assets/diagram.png (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/jest.config.js (61%) rename x-pack/{plugins => platform/plugins/shared}/serverless/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/package.json (61%) rename x-pack/{plugins => platform/plugins/shared}/serverless/public/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/public/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/public/navigation/index.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/public/navigation/nav_cards.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/public/navigation/navigation.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/serverless/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ed72e6e4e1195..de3aa8103b61b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -873,6 +873,7 @@ x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant x-pack/platform/plugins/shared/osquery @elastic/security-defend-workflows x-pack/platform/plugins/shared/screenshotting @elastic/kibana-reporting-services x-pack/platform/plugins/shared/searchprofiler @elastic/kibana-management +x-pack/platform/plugins/shared/serverless @elastic/appex-sharedux x-pack/plugins/actions @elastic/response-ops x-pack/plugins/alerting @elastic/response-ops x-pack/plugins/banners @elastic/appex-sharedux @@ -930,7 +931,6 @@ x-pack/plugins/search_notebooks @elastic/search-kibana x-pack/plugins/search_playground @elastic/search-kibana x-pack/plugins/search_solution/search_navigation @elastic/search-kibana x-pack/plugins/security @elastic/kibana-security -x-pack/plugins/serverless @elastic/appex-sharedux x-pack/plugins/serverless_search @elastic/search-kibana x-pack/plugins/spaces @elastic/kibana-security x-pack/plugins/stack_alerts @elastic/response-ops diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 7a137770a7591..a98b7dd930f96 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -879,7 +879,7 @@ This plugin is only enabled when the application is built for stateful deploymen This plugin is only enabled when the application is built for serverless project, keeping the main security_solution plugin clean and agnostic of the offering model. -|{kib-repo}blob/{branch}/x-pack/plugins/serverless/README.mdx[serverless] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/serverless/README.mdx[serverless] | diff --git a/package.json b/package.json index 3127233794cf8..b6def107fde43 100644 --- a/package.json +++ b/package.json @@ -863,7 +863,7 @@ "@kbn/server-route-repository": "link:src/platform/packages/shared/kbn-server-route-repository", "@kbn/server-route-repository-client": "link:src/platform/packages/shared/kbn-server-route-repository-client", "@kbn/server-route-repository-utils": "link:src/platform/packages/shared/kbn-server-route-repository-utils", - "@kbn/serverless": "link:x-pack/plugins/serverless", + "@kbn/serverless": "link:x-pack/platform/plugins/shared/serverless", "@kbn/serverless-common-settings": "link:packages/serverless/settings/common", "@kbn/serverless-observability": "link:x-pack/solutions/observability/plugins/serverless_observability", "@kbn/serverless-observability-settings": "link:packages/serverless/settings/observability_project", diff --git a/tsconfig.base.json b/tsconfig.base.json index ba19272bc5e6a..22b46cbfe5d2d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1704,8 +1704,8 @@ "@kbn/server-route-repository-client/*": ["src/platform/packages/shared/kbn-server-route-repository-client/*"], "@kbn/server-route-repository-utils": ["src/platform/packages/shared/kbn-server-route-repository-utils"], "@kbn/server-route-repository-utils/*": ["src/platform/packages/shared/kbn-server-route-repository-utils/*"], - "@kbn/serverless": ["x-pack/plugins/serverless"], - "@kbn/serverless/*": ["x-pack/plugins/serverless/*"], + "@kbn/serverless": ["x-pack/platform/plugins/shared/serverless"], + "@kbn/serverless/*": ["x-pack/platform/plugins/shared/serverless/*"], "@kbn/serverless-common-settings": ["packages/serverless/settings/common"], "@kbn/serverless-common-settings/*": ["packages/serverless/settings/common/*"], "@kbn/serverless-observability": ["x-pack/solutions/observability/plugins/serverless_observability"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 9977bef027876..d4c131b558de6 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -143,7 +143,7 @@ "packages/security" ], "xpack.server": "legacy/server", - "xpack.serverless": "plugins/serverless", + "xpack.serverless": "platform/plugins/shared/serverless", "xpack.serverlessSearch": "plugins/serverless_search", "xpack.serverlessObservability": "solutions/observability/plugins/serverless_observability", "xpack.securitySolution": "solutions/security/plugins/security_solution", diff --git a/x-pack/plugins/serverless/README.mdx b/x-pack/platform/plugins/shared/serverless/README.mdx similarity index 100% rename from x-pack/plugins/serverless/README.mdx rename to x-pack/platform/plugins/shared/serverless/README.mdx diff --git a/x-pack/plugins/serverless/assets/diagram.png b/x-pack/platform/plugins/shared/serverless/assets/diagram.png similarity index 100% rename from x-pack/plugins/serverless/assets/diagram.png rename to x-pack/platform/plugins/shared/serverless/assets/diagram.png diff --git a/x-pack/plugins/serverless/common/index.ts b/x-pack/platform/plugins/shared/serverless/common/index.ts similarity index 100% rename from x-pack/plugins/serverless/common/index.ts rename to x-pack/platform/plugins/shared/serverless/common/index.ts diff --git a/x-pack/plugins/serverless/jest.config.js b/x-pack/platform/plugins/shared/serverless/jest.config.js similarity index 61% rename from x-pack/plugins/serverless/jest.config.js rename to x-pack/platform/plugins/shared/serverless/jest.config.js index 1b7860b8f3d78..f36a163021a3c 100644 --- a/x-pack/plugins/serverless/jest.config.js +++ b/x-pack/platform/plugins/shared/serverless/jest.config.js @@ -7,9 +7,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/serverless'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/serverless', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/serverless'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/serverless', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/serverless/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/x-pack/platform/plugins/shared/serverless/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/x-pack/plugins/serverless/kibana.jsonc b/x-pack/platform/plugins/shared/serverless/kibana.jsonc similarity index 100% rename from x-pack/plugins/serverless/kibana.jsonc rename to x-pack/platform/plugins/shared/serverless/kibana.jsonc diff --git a/x-pack/plugins/serverless/package.json b/x-pack/platform/plugins/shared/serverless/package.json similarity index 61% rename from x-pack/plugins/serverless/package.json rename to x-pack/platform/plugins/shared/serverless/package.json index ec457f89fbcaa..296ce7dc2e90e 100644 --- a/x-pack/plugins/serverless/package.json +++ b/x-pack/platform/plugins/shared/serverless/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "build": "yarn plugin-helpers build", - "plugin-helpers": "node ../../scripts/plugin_helpers", - "kbn": "node ../../scripts/kbn" + "plugin-helpers": "node ../../../../scripts/plugin_helpers", + "kbn": "node ../../../../scripts/kbn" } } \ No newline at end of file diff --git a/x-pack/plugins/serverless/public/config.ts b/x-pack/platform/plugins/shared/serverless/public/config.ts similarity index 100% rename from x-pack/plugins/serverless/public/config.ts rename to x-pack/platform/plugins/shared/serverless/public/config.ts diff --git a/x-pack/plugins/serverless/public/index.ts b/x-pack/platform/plugins/shared/serverless/public/index.ts similarity index 100% rename from x-pack/plugins/serverless/public/index.ts rename to x-pack/platform/plugins/shared/serverless/public/index.ts diff --git a/x-pack/plugins/serverless/public/mocks.ts b/x-pack/platform/plugins/shared/serverless/public/mocks.ts similarity index 100% rename from x-pack/plugins/serverless/public/mocks.ts rename to x-pack/platform/plugins/shared/serverless/public/mocks.ts diff --git a/x-pack/plugins/serverless/public/navigation/index.tsx b/x-pack/platform/plugins/shared/serverless/public/navigation/index.tsx similarity index 100% rename from x-pack/plugins/serverless/public/navigation/index.tsx rename to x-pack/platform/plugins/shared/serverless/public/navigation/index.tsx diff --git a/x-pack/plugins/serverless/public/navigation/nav_cards.ts b/x-pack/platform/plugins/shared/serverless/public/navigation/nav_cards.ts similarity index 100% rename from x-pack/plugins/serverless/public/navigation/nav_cards.ts rename to x-pack/platform/plugins/shared/serverless/public/navigation/nav_cards.ts diff --git a/x-pack/plugins/serverless/public/navigation/navigation.tsx b/x-pack/platform/plugins/shared/serverless/public/navigation/navigation.tsx similarity index 100% rename from x-pack/plugins/serverless/public/navigation/navigation.tsx rename to x-pack/platform/plugins/shared/serverless/public/navigation/navigation.tsx diff --git a/x-pack/plugins/serverless/public/plugin.tsx b/x-pack/platform/plugins/shared/serverless/public/plugin.tsx similarity index 100% rename from x-pack/plugins/serverless/public/plugin.tsx rename to x-pack/platform/plugins/shared/serverless/public/plugin.tsx diff --git a/x-pack/plugins/serverless/public/types.ts b/x-pack/platform/plugins/shared/serverless/public/types.ts similarity index 100% rename from x-pack/plugins/serverless/public/types.ts rename to x-pack/platform/plugins/shared/serverless/public/types.ts diff --git a/x-pack/plugins/serverless/server/config.ts b/x-pack/platform/plugins/shared/serverless/server/config.ts similarity index 100% rename from x-pack/plugins/serverless/server/config.ts rename to x-pack/platform/plugins/shared/serverless/server/config.ts diff --git a/x-pack/plugins/serverless/server/index.ts b/x-pack/platform/plugins/shared/serverless/server/index.ts similarity index 100% rename from x-pack/plugins/serverless/server/index.ts rename to x-pack/platform/plugins/shared/serverless/server/index.ts diff --git a/x-pack/plugins/serverless/server/mocks.ts b/x-pack/platform/plugins/shared/serverless/server/mocks.ts similarity index 100% rename from x-pack/plugins/serverless/server/mocks.ts rename to x-pack/platform/plugins/shared/serverless/server/mocks.ts diff --git a/x-pack/plugins/serverless/server/plugin.test.ts b/x-pack/platform/plugins/shared/serverless/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/serverless/server/plugin.test.ts rename to x-pack/platform/plugins/shared/serverless/server/plugin.test.ts diff --git a/x-pack/plugins/serverless/server/plugin.ts b/x-pack/platform/plugins/shared/serverless/server/plugin.ts similarity index 100% rename from x-pack/plugins/serverless/server/plugin.ts rename to x-pack/platform/plugins/shared/serverless/server/plugin.ts diff --git a/x-pack/plugins/serverless/server/types.ts b/x-pack/platform/plugins/shared/serverless/server/types.ts similarity index 100% rename from x-pack/plugins/serverless/server/types.ts rename to x-pack/platform/plugins/shared/serverless/server/types.ts diff --git a/x-pack/plugins/serverless/tsconfig.json b/x-pack/platform/plugins/shared/serverless/tsconfig.json similarity index 93% rename from x-pack/plugins/serverless/tsconfig.json rename to x-pack/platform/plugins/shared/serverless/tsconfig.json index ce60d39bef0f0..988e3f7a693aa 100644 --- a/x-pack/plugins/serverless/tsconfig.json +++ b/x-pack/platform/plugins/shared/serverless/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/yarn.lock b/yarn.lock index 08a7007e2a8a3..eee165246d8b6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7261,7 +7261,7 @@ version "0.0.0" uid "" -"@kbn/serverless@link:x-pack/plugins/serverless": +"@kbn/serverless@link:x-pack/platform/plugins/shared/serverless": version "0.0.0" uid "" From bd9a8ff670b48446a8eb1b486801b4317f591f19 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:27:11 +0100 Subject: [PATCH 23/43] Relocating module `@kbn/share-plugin` --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 10 +++++----- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/best-practices/navigation.asciidoc | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/share/README.mdx | 0 .../share/common/anonymous_access/index.mock.ts | 0 .../shared}/share/common/anonymous_access/index.ts | 0 .../shared}/share/common/anonymous_access/types.ts | 0 .../plugins/shared}/share/common/constants.ts | 0 .../plugins/shared}/share/common/index.ts | 0 .../plugins/shared}/share/common/mocks.ts | 0 .../plugins/shared}/share/common/short_url_routes.ts | 0 .../common/url_service/__tests__/locators.test.ts | 0 .../share/common/url_service/__tests__/setup.ts | 0 .../plugins/shared}/share/common/url_service/index.ts | 0 .../share/common/url_service/locators/README.md | 0 .../shared}/share/common/url_service/locators/index.ts | 0 .../url_service/locators/legacy_short_url_locator.ts | 0 .../share/common/url_service/locators/locator.test.ts | 0 .../share/common/url_service/locators/locator.ts | 0 .../common/url_service/locators/locator_client.ts | 0 .../locators/redirect/format_search_params.test.ts | 0 .../locators/redirect/format_search_params.ts | 0 .../common/url_service/locators/redirect/index.ts | 0 .../locators/redirect/parse_search_params.test.ts | 0 .../locators/redirect/parse_search_params.ts | 0 .../locators/redirect/space_url_parser.test.ts | 0 .../url_service/locators/redirect/space_url_parser.ts | 0 .../common/url_service/locators/redirect/types.ts | 0 .../locators/short_url_assert_valid.test.ts | 0 .../url_service/locators/short_url_assert_valid.ts | 0 .../url_service/locators/short_url_redirect_locator.ts | 0 .../shared}/share/common/url_service/locators/types.ts | 0 .../common/url_service/locators/use_locator_url.ts | 0 .../plugins/shared}/share/common/url_service/mocks.ts | 0 .../share/common/url_service/short_urls/index.ts | 0 .../share/common/url_service/short_urls/types.ts | 0 .../shared}/share/common/url_service/url_service.ts | 0 .../plugins/shared}/share/jest.config.js | 8 ++++---- .../plugins/shared}/share/kibana.jsonc | 0 .../__snapshots__/share_context_menu.test.tsx.snap | 0 .../shared}/share/public/components/_index.scss | 0 .../share/public/components/_share_context_menu.scss | 0 .../share/public/components/context/index.test.tsx | 0 .../shared}/share/public/components/context/index.tsx | 0 .../public/components/share_context_menu.test.tsx | 0 .../share/public/components/share_context_menu.tsx | 0 .../share/public/components/share_tabs.test.tsx | 0 .../shared}/share/public/components/share_tabs.tsx | 0 .../components/tabs/embed/embed_content.test.tsx | 0 .../public/components/tabs/embed/embed_content.tsx | 0 .../share/public/components/tabs/embed/index.tsx | 0 .../public/components/tabs/export/export_content.tsx | 0 .../share/public/components/tabs/export/index.tsx | 0 .../shared}/share/public/components/tabs/index.ts | 0 .../share/public/components/tabs/link/index.tsx | 0 .../public/components/tabs/link/link_content.test.tsx | 0 .../share/public/components/tabs/link/link_content.tsx | 0 .../share/public/components/url_panel_content.tsx | 0 .../plugins/shared}/share/public/index.scss | 0 .../plugins/shared}/share/public/index.ts | 0 .../plugins/shared}/share/public/kibana_url.ts | 0 .../plugins/shared}/share/public/lib/download_as.ts | 0 .../plugins/shared}/share/public/lib/get_home_href.ts | 0 .../plugins/shared}/share/public/lib/registrations.ts | 0 .../plugins/shared}/share/public/mocks.ts | 0 .../plugins/shared}/share/public/plugin.test.mocks.ts | 0 .../plugins/shared}/share/public/plugin.test.ts | 0 .../plugins/shared}/share/public/plugin.ts | 0 .../plugins/shared}/share/public/services/index.ts | 0 .../share/public/services/share_menu_manager.mock.ts | 0 .../share/public/services/share_menu_manager.tsx | 0 .../share/public/services/share_menu_registry.mock.ts | 0 .../share/public/services/share_menu_registry.test.ts | 0 .../share/public/services/share_menu_registry.ts | 0 .../plugins/shared}/share/public/types.ts | 0 .../plugins/shared}/share/public/url_service/index.ts | 0 .../share/public/url_service/redirect/README.md | 0 .../url_service/redirect/components/empty_prompt.tsx | 0 .../public/url_service/redirect/components/page.tsx | 0 .../public/url_service/redirect/components/spinner.tsx | 0 .../shared}/share/public/url_service/redirect/index.ts | 0 .../url_service/redirect/redirect_manager.test.ts | 0 .../public/url_service/redirect/redirect_manager.ts | 0 .../share/public/url_service/redirect/render.ts | 0 .../url_service/short_urls/short_url_client.test.ts | 0 .../public/url_service/short_urls/short_url_client.ts | 0 .../url_service/short_urls/short_url_client_factory.ts | 0 .../plugins/shared}/share/server/config.ts | 0 .../plugins/shared}/share/server/index.ts | 0 .../plugins/shared}/share/server/plugin.ts | 0 .../plugins/shared}/share/server/url_service/error.ts | 0 .../url_service/http/register_url_service_routes.ts | 0 .../http/short_urls/register_create_route.ts | 0 .../http/short_urls/register_delete_route.ts | 0 .../url_service/http/short_urls/register_get_route.ts | 0 .../url_service/http/short_urls/register_goto_route.ts | 0 .../http/short_urls/register_resolve_route.ts | 0 .../plugins/shared}/share/server/url_service/index.ts | 0 .../register_url_service_saved_object_type.test.ts | 0 .../register_url_service_saved_object_type.ts | 0 .../share/server/url_service/short_urls/index.ts | 0 .../url_service/short_urls/short_url_client.test.ts | 0 .../server/url_service/short_urls/short_url_client.ts | 0 .../url_service/short_urls/short_url_client_factory.ts | 0 .../storage/memory_short_url_storage.test.ts | 0 .../short_urls/storage/memory_short_url_storage.ts | 0 .../storage/saved_object_short_url_storage.ts | 0 .../share/server/url_service/short_urls/types.ts | 0 .../share/server/url_service/short_urls/util.test.ts | 0 .../share/server/url_service/short_urls/util.ts | 0 .../plugins/shared}/share/server/url_service/types.ts | 0 .../plugins/shared}/share/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 117 files changed, 18 insertions(+), 18 deletions(-) rename src/{plugins => platform/plugins/shared}/share/README.mdx (100%) rename src/{plugins => platform/plugins/shared}/share/common/anonymous_access/index.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/anonymous_access/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/anonymous_access/types.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/short_url_routes.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/__tests__/locators.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/__tests__/setup.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/README.md (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/legacy_short_url_locator.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/locator.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/locator.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/locator_client.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/redirect/format_search_params.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/redirect/format_search_params.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/redirect/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/redirect/parse_search_params.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/redirect/parse_search_params.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/redirect/space_url_parser.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/redirect/space_url_parser.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/redirect/types.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/short_url_assert_valid.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/short_url_assert_valid.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/short_url_redirect_locator.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/types.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/locators/use_locator_url.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/short_urls/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/short_urls/types.ts (100%) rename src/{plugins => platform/plugins/shared}/share/common/url_service/url_service.ts (100%) rename src/{plugins => platform/plugins/shared}/share/jest.config.js (73%) rename src/{plugins => platform/plugins/shared}/share/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/__snapshots__/share_context_menu.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/_index.scss (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/_share_context_menu.scss (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/context/index.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/context/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/share_context_menu.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/share_context_menu.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/share_tabs.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/share_tabs.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/tabs/embed/embed_content.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/tabs/embed/embed_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/tabs/embed/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/tabs/export/export_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/tabs/export/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/tabs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/tabs/link/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/tabs/link/link_content.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/tabs/link/link_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/components/url_panel_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/index.scss (100%) rename src/{plugins => platform/plugins/shared}/share/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/kibana_url.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/lib/download_as.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/lib/get_home_href.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/lib/registrations.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/plugin.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/services/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/services/share_menu_manager.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/services/share_menu_manager.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/services/share_menu_registry.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/services/share_menu_registry.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/services/share_menu_registry.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/redirect/README.md (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/redirect/components/empty_prompt.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/redirect/components/page.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/redirect/components/spinner.tsx (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/redirect/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/redirect/redirect_manager.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/redirect/redirect_manager.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/redirect/render.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/short_urls/short_url_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/short_urls/short_url_client.ts (100%) rename src/{plugins => platform/plugins/shared}/share/public/url_service/short_urls/short_url_client_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/config.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/error.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/http/register_url_service_routes.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/http/short_urls/register_create_route.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/http/short_urls/register_delete_route.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/http/short_urls/register_get_route.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/http/short_urls/register_goto_route.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/http/short_urls/register_resolve_route.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/saved_objects/register_url_service_saved_object_type.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/saved_objects/register_url_service_saved_object_type.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/index.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/short_url_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/short_url_client.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/short_url_client_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/storage/memory_short_url_storage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/storage/memory_short_url_storage.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/storage/saved_object_short_url_storage.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/types.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/util.test.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/short_urls/util.ts (100%) rename src/{plugins => platform/plugins/shared}/share/server/url_service/types.ts (100%) rename src/{plugins => platform/plugins/shared}/share/tsconfig.json (94%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 901013b924428..ad6729758deed 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -164,8 +164,8 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ /^x-pack\/platform\/packages\/shared\/ai-infra/, - /^x-pack\/platform\/plugins\/shared\/ai_infra/, - /^x-pack\/platform\/plugins\/shared\/inference/, + /^x-pack\/platform\/platform\/plugins\/shared\/shared\/ai_infra/, + /^x-pack\/platform\/platform\/plugins\/shared\/shared\/inference/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/bedrock/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/gemini/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/openai/, @@ -323,8 +323,8 @@ const getPipeline = (filename: string, removeSteps = true) => { /^src\/plugins\/discover/, /^src\/plugins\/field_formats/, /^src\/plugins\/inspector/, - /^src\/platform\/plugins\/shared\/kibana_react/, - /^src\/platform\/plugins\/shared\/kibana_utils/, + /^src\/platform\/platform\/plugins\/shared\/shared\/kibana_react/, + /^src\/platform\/platform\/plugins\/shared\/shared\/kibana_utils/, /^src\/plugins\/saved_search/, /^src\/plugins\/ui_actions/, /^src\/plugins\/unified_histogram/, @@ -358,7 +358,7 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( ((await doAnyChangesMatch([ - /^x-pack\/platform\/plugins\/shared\/osquery/, + /^x-pack\/platform\/platform\/plugins\/shared\/shared\/osquery/, /^x-pack\/test\/osquery_cypress/, /^x-pack\/solutions\/security\/plugins\/security_solution/, ])) || diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index de3aa8103b61b..c37749c72e2ae 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -631,6 +631,7 @@ src/platform/plugins/shared/navigation @elastic/appex-sharedux src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux +src/platform/plugins/shared/share @elastic/appex-sharedux src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux src/plugins/chart_expressions/common @elastic/kibana-visualizations @@ -676,7 +677,6 @@ src/plugins/presentation_util @elastic/kibana-presentation src/plugins/saved_objects_finder @elastic/kibana-data-discovery src/plugins/saved_objects_management @elastic/kibana-core src/plugins/saved_search @elastic/kibana-data-discovery -src/plugins/share @elastic/appex-sharedux src/plugins/telemetry @elastic/kibana-core src/plugins/telemetry_collection_manager @elastic/kibana-core src/plugins/telemetry_management_section @elastic/kibana-core diff --git a/.i18nrc.json b/.i18nrc.json index 4db6387439e00..abf126716489b 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -112,7 +112,7 @@ "searchConnectors": "packages/kbn-search-connectors", "searchConnectorsPlugin": "x-pack/plugins/search_connectors", "server": "src/legacy/server", - "share": ["src/plugins/share", "packages/kbn-reporting-share"], + "share": ["src/platform/plugins/shared/share", "packages/kbn-reporting-share"], "sharedUXPackages": "packages/shared-ux", "searchApiKeysComponents": "packages/kbn-search-api-keys-components", "searchApiPanels": "packages/kbn-search-api-panels/", diff --git a/docs/developer/best-practices/navigation.asciidoc b/docs/developer/best-practices/navigation.asciidoc index 5982ee27e53e4..df5e9e73729bd 100644 --- a/docs/developer/best-practices/navigation.asciidoc +++ b/docs/developer/best-practices/navigation.asciidoc @@ -47,7 +47,7 @@ console.log(discoverUrl); // http://localhost:5601/bpr/s/space/app/discover const discoverUrlWithSomeState = core.http.basePath.prepend(`/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2020-09-10T11:39:50.203Z',to:'2020-09-10T11:40:20.249Z'))&_a=(columns:!(_source),filters:!(),index:'90943e30-9a47-11e8-b64d-95841ca0b247',interval:auto,query:(language:kuery,query:''),sort:!())`); ---- -Instead, each app should expose {kib-repo}tree/{branch}/src/plugins/share/common/url_service/locators/README.md[a locator]. +Instead, each app should expose {kib-repo}tree/{branch}/src/platform/plugins/shared/share/common/url_service/locators/README.md[a locator]. Other apps should use those locators for navigation or URL creation. [source,typescript jsx] diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index a98b7dd930f96..f0d4a198e66c5 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -316,7 +316,7 @@ This object is created when a user saves their current session in the Discover a |The service exposed by this plugin informs consumers whether they should optimize for non-interactivity. In this way plugins can avoid loading unnecessary code, data or other services. -|{kib-repo}blob/{branch}/src/plugins/share/README.mdx[share] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/share/README.mdx[share] |The share plugin contains various utilities for displaying sharing context menu, generating deep links to other apps using locators, and creating short URLs. diff --git a/package.json b/package.json index b6def107fde43..40aff308a0673 100644 --- a/package.json +++ b/package.json @@ -876,7 +876,7 @@ "@kbn/session-view-plugin": "link:x-pack/solutions/security/plugins/session_view", "@kbn/set-map": "link:packages/kbn-set-map", "@kbn/share-examples-plugin": "link:examples/share_examples", - "@kbn/share-plugin": "link:src/plugins/share", + "@kbn/share-plugin": "link:src/platform/plugins/shared/share", "@kbn/shared-svg": "link:packages/kbn-shared-svg", "@kbn/shared-ux-avatar-solution": "link:packages/shared-ux/avatar/solution", "@kbn/shared-ux-button-exit-full-screen": "link:packages/shared-ux/button/exit_full_screen", diff --git a/src/plugins/share/README.mdx b/src/platform/plugins/shared/share/README.mdx similarity index 100% rename from src/plugins/share/README.mdx rename to src/platform/plugins/shared/share/README.mdx diff --git a/src/plugins/share/common/anonymous_access/index.mock.ts b/src/platform/plugins/shared/share/common/anonymous_access/index.mock.ts similarity index 100% rename from src/plugins/share/common/anonymous_access/index.mock.ts rename to src/platform/plugins/shared/share/common/anonymous_access/index.mock.ts diff --git a/src/plugins/share/common/anonymous_access/index.ts b/src/platform/plugins/shared/share/common/anonymous_access/index.ts similarity index 100% rename from src/plugins/share/common/anonymous_access/index.ts rename to src/platform/plugins/shared/share/common/anonymous_access/index.ts diff --git a/src/plugins/share/common/anonymous_access/types.ts b/src/platform/plugins/shared/share/common/anonymous_access/types.ts similarity index 100% rename from src/plugins/share/common/anonymous_access/types.ts rename to src/platform/plugins/shared/share/common/anonymous_access/types.ts diff --git a/src/plugins/share/common/constants.ts b/src/platform/plugins/shared/share/common/constants.ts similarity index 100% rename from src/plugins/share/common/constants.ts rename to src/platform/plugins/shared/share/common/constants.ts diff --git a/src/plugins/share/common/index.ts b/src/platform/plugins/shared/share/common/index.ts similarity index 100% rename from src/plugins/share/common/index.ts rename to src/platform/plugins/shared/share/common/index.ts diff --git a/src/plugins/share/common/mocks.ts b/src/platform/plugins/shared/share/common/mocks.ts similarity index 100% rename from src/plugins/share/common/mocks.ts rename to src/platform/plugins/shared/share/common/mocks.ts diff --git a/src/plugins/share/common/short_url_routes.ts b/src/platform/plugins/shared/share/common/short_url_routes.ts similarity index 100% rename from src/plugins/share/common/short_url_routes.ts rename to src/platform/plugins/shared/share/common/short_url_routes.ts diff --git a/src/plugins/share/common/url_service/__tests__/locators.test.ts b/src/platform/plugins/shared/share/common/url_service/__tests__/locators.test.ts similarity index 100% rename from src/plugins/share/common/url_service/__tests__/locators.test.ts rename to src/platform/plugins/shared/share/common/url_service/__tests__/locators.test.ts diff --git a/src/plugins/share/common/url_service/__tests__/setup.ts b/src/platform/plugins/shared/share/common/url_service/__tests__/setup.ts similarity index 100% rename from src/plugins/share/common/url_service/__tests__/setup.ts rename to src/platform/plugins/shared/share/common/url_service/__tests__/setup.ts diff --git a/src/plugins/share/common/url_service/index.ts b/src/platform/plugins/shared/share/common/url_service/index.ts similarity index 100% rename from src/plugins/share/common/url_service/index.ts rename to src/platform/plugins/shared/share/common/url_service/index.ts diff --git a/src/plugins/share/common/url_service/locators/README.md b/src/platform/plugins/shared/share/common/url_service/locators/README.md similarity index 100% rename from src/plugins/share/common/url_service/locators/README.md rename to src/platform/plugins/shared/share/common/url_service/locators/README.md diff --git a/src/plugins/share/common/url_service/locators/index.ts b/src/platform/plugins/shared/share/common/url_service/locators/index.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/index.ts rename to src/platform/plugins/shared/share/common/url_service/locators/index.ts diff --git a/src/plugins/share/common/url_service/locators/legacy_short_url_locator.ts b/src/platform/plugins/shared/share/common/url_service/locators/legacy_short_url_locator.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/legacy_short_url_locator.ts rename to src/platform/plugins/shared/share/common/url_service/locators/legacy_short_url_locator.ts diff --git a/src/plugins/share/common/url_service/locators/locator.test.ts b/src/platform/plugins/shared/share/common/url_service/locators/locator.test.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/locator.test.ts rename to src/platform/plugins/shared/share/common/url_service/locators/locator.test.ts diff --git a/src/plugins/share/common/url_service/locators/locator.ts b/src/platform/plugins/shared/share/common/url_service/locators/locator.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/locator.ts rename to src/platform/plugins/shared/share/common/url_service/locators/locator.ts diff --git a/src/plugins/share/common/url_service/locators/locator_client.ts b/src/platform/plugins/shared/share/common/url_service/locators/locator_client.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/locator_client.ts rename to src/platform/plugins/shared/share/common/url_service/locators/locator_client.ts diff --git a/src/plugins/share/common/url_service/locators/redirect/format_search_params.test.ts b/src/platform/plugins/shared/share/common/url_service/locators/redirect/format_search_params.test.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/redirect/format_search_params.test.ts rename to src/platform/plugins/shared/share/common/url_service/locators/redirect/format_search_params.test.ts diff --git a/src/plugins/share/common/url_service/locators/redirect/format_search_params.ts b/src/platform/plugins/shared/share/common/url_service/locators/redirect/format_search_params.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/redirect/format_search_params.ts rename to src/platform/plugins/shared/share/common/url_service/locators/redirect/format_search_params.ts diff --git a/src/plugins/share/common/url_service/locators/redirect/index.ts b/src/platform/plugins/shared/share/common/url_service/locators/redirect/index.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/redirect/index.ts rename to src/platform/plugins/shared/share/common/url_service/locators/redirect/index.ts diff --git a/src/plugins/share/common/url_service/locators/redirect/parse_search_params.test.ts b/src/platform/plugins/shared/share/common/url_service/locators/redirect/parse_search_params.test.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/redirect/parse_search_params.test.ts rename to src/platform/plugins/shared/share/common/url_service/locators/redirect/parse_search_params.test.ts diff --git a/src/plugins/share/common/url_service/locators/redirect/parse_search_params.ts b/src/platform/plugins/shared/share/common/url_service/locators/redirect/parse_search_params.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/redirect/parse_search_params.ts rename to src/platform/plugins/shared/share/common/url_service/locators/redirect/parse_search_params.ts diff --git a/src/plugins/share/common/url_service/locators/redirect/space_url_parser.test.ts b/src/platform/plugins/shared/share/common/url_service/locators/redirect/space_url_parser.test.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/redirect/space_url_parser.test.ts rename to src/platform/plugins/shared/share/common/url_service/locators/redirect/space_url_parser.test.ts diff --git a/src/plugins/share/common/url_service/locators/redirect/space_url_parser.ts b/src/platform/plugins/shared/share/common/url_service/locators/redirect/space_url_parser.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/redirect/space_url_parser.ts rename to src/platform/plugins/shared/share/common/url_service/locators/redirect/space_url_parser.ts diff --git a/src/plugins/share/common/url_service/locators/redirect/types.ts b/src/platform/plugins/shared/share/common/url_service/locators/redirect/types.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/redirect/types.ts rename to src/platform/plugins/shared/share/common/url_service/locators/redirect/types.ts diff --git a/src/plugins/share/common/url_service/locators/short_url_assert_valid.test.ts b/src/platform/plugins/shared/share/common/url_service/locators/short_url_assert_valid.test.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/short_url_assert_valid.test.ts rename to src/platform/plugins/shared/share/common/url_service/locators/short_url_assert_valid.test.ts diff --git a/src/plugins/share/common/url_service/locators/short_url_assert_valid.ts b/src/platform/plugins/shared/share/common/url_service/locators/short_url_assert_valid.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/short_url_assert_valid.ts rename to src/platform/plugins/shared/share/common/url_service/locators/short_url_assert_valid.ts diff --git a/src/plugins/share/common/url_service/locators/short_url_redirect_locator.ts b/src/platform/plugins/shared/share/common/url_service/locators/short_url_redirect_locator.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/short_url_redirect_locator.ts rename to src/platform/plugins/shared/share/common/url_service/locators/short_url_redirect_locator.ts diff --git a/src/plugins/share/common/url_service/locators/types.ts b/src/platform/plugins/shared/share/common/url_service/locators/types.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/types.ts rename to src/platform/plugins/shared/share/common/url_service/locators/types.ts diff --git a/src/plugins/share/common/url_service/locators/use_locator_url.ts b/src/platform/plugins/shared/share/common/url_service/locators/use_locator_url.ts similarity index 100% rename from src/plugins/share/common/url_service/locators/use_locator_url.ts rename to src/platform/plugins/shared/share/common/url_service/locators/use_locator_url.ts diff --git a/src/plugins/share/common/url_service/mocks.ts b/src/platform/plugins/shared/share/common/url_service/mocks.ts similarity index 100% rename from src/plugins/share/common/url_service/mocks.ts rename to src/platform/plugins/shared/share/common/url_service/mocks.ts diff --git a/src/plugins/share/common/url_service/short_urls/index.ts b/src/platform/plugins/shared/share/common/url_service/short_urls/index.ts similarity index 100% rename from src/plugins/share/common/url_service/short_urls/index.ts rename to src/platform/plugins/shared/share/common/url_service/short_urls/index.ts diff --git a/src/plugins/share/common/url_service/short_urls/types.ts b/src/platform/plugins/shared/share/common/url_service/short_urls/types.ts similarity index 100% rename from src/plugins/share/common/url_service/short_urls/types.ts rename to src/platform/plugins/shared/share/common/url_service/short_urls/types.ts diff --git a/src/plugins/share/common/url_service/url_service.ts b/src/platform/plugins/shared/share/common/url_service/url_service.ts similarity index 100% rename from src/plugins/share/common/url_service/url_service.ts rename to src/platform/plugins/shared/share/common/url_service/url_service.ts diff --git a/src/plugins/share/jest.config.js b/src/platform/plugins/shared/share/jest.config.js similarity index 73% rename from src/plugins/share/jest.config.js rename to src/platform/plugins/shared/share/jest.config.js index 9e2e3664051c7..257e45c3a7a5c 100644 --- a/src/plugins/share/jest.config.js +++ b/src/platform/plugins/shared/share/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/share'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/share', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/share'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/share', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/share/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/share/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/src/plugins/share/kibana.jsonc b/src/platform/plugins/shared/share/kibana.jsonc similarity index 100% rename from src/plugins/share/kibana.jsonc rename to src/platform/plugins/shared/share/kibana.jsonc diff --git a/src/plugins/share/public/components/__snapshots__/share_context_menu.test.tsx.snap b/src/platform/plugins/shared/share/public/components/__snapshots__/share_context_menu.test.tsx.snap similarity index 100% rename from src/plugins/share/public/components/__snapshots__/share_context_menu.test.tsx.snap rename to src/platform/plugins/shared/share/public/components/__snapshots__/share_context_menu.test.tsx.snap diff --git a/src/plugins/share/public/components/_index.scss b/src/platform/plugins/shared/share/public/components/_index.scss similarity index 100% rename from src/plugins/share/public/components/_index.scss rename to src/platform/plugins/shared/share/public/components/_index.scss diff --git a/src/plugins/share/public/components/_share_context_menu.scss b/src/platform/plugins/shared/share/public/components/_share_context_menu.scss similarity index 100% rename from src/plugins/share/public/components/_share_context_menu.scss rename to src/platform/plugins/shared/share/public/components/_share_context_menu.scss diff --git a/src/plugins/share/public/components/context/index.test.tsx b/src/platform/plugins/shared/share/public/components/context/index.test.tsx similarity index 100% rename from src/plugins/share/public/components/context/index.test.tsx rename to src/platform/plugins/shared/share/public/components/context/index.test.tsx diff --git a/src/plugins/share/public/components/context/index.tsx b/src/platform/plugins/shared/share/public/components/context/index.tsx similarity index 100% rename from src/plugins/share/public/components/context/index.tsx rename to src/platform/plugins/shared/share/public/components/context/index.tsx diff --git a/src/plugins/share/public/components/share_context_menu.test.tsx b/src/platform/plugins/shared/share/public/components/share_context_menu.test.tsx similarity index 100% rename from src/plugins/share/public/components/share_context_menu.test.tsx rename to src/platform/plugins/shared/share/public/components/share_context_menu.test.tsx diff --git a/src/plugins/share/public/components/share_context_menu.tsx b/src/platform/plugins/shared/share/public/components/share_context_menu.tsx similarity index 100% rename from src/plugins/share/public/components/share_context_menu.tsx rename to src/platform/plugins/shared/share/public/components/share_context_menu.tsx diff --git a/src/plugins/share/public/components/share_tabs.test.tsx b/src/platform/plugins/shared/share/public/components/share_tabs.test.tsx similarity index 100% rename from src/plugins/share/public/components/share_tabs.test.tsx rename to src/platform/plugins/shared/share/public/components/share_tabs.test.tsx diff --git a/src/plugins/share/public/components/share_tabs.tsx b/src/platform/plugins/shared/share/public/components/share_tabs.tsx similarity index 100% rename from src/plugins/share/public/components/share_tabs.tsx rename to src/platform/plugins/shared/share/public/components/share_tabs.tsx diff --git a/src/plugins/share/public/components/tabs/embed/embed_content.test.tsx b/src/platform/plugins/shared/share/public/components/tabs/embed/embed_content.test.tsx similarity index 100% rename from src/plugins/share/public/components/tabs/embed/embed_content.test.tsx rename to src/platform/plugins/shared/share/public/components/tabs/embed/embed_content.test.tsx diff --git a/src/plugins/share/public/components/tabs/embed/embed_content.tsx b/src/platform/plugins/shared/share/public/components/tabs/embed/embed_content.tsx similarity index 100% rename from src/plugins/share/public/components/tabs/embed/embed_content.tsx rename to src/platform/plugins/shared/share/public/components/tabs/embed/embed_content.tsx diff --git a/src/plugins/share/public/components/tabs/embed/index.tsx b/src/platform/plugins/shared/share/public/components/tabs/embed/index.tsx similarity index 100% rename from src/plugins/share/public/components/tabs/embed/index.tsx rename to src/platform/plugins/shared/share/public/components/tabs/embed/index.tsx diff --git a/src/plugins/share/public/components/tabs/export/export_content.tsx b/src/platform/plugins/shared/share/public/components/tabs/export/export_content.tsx similarity index 100% rename from src/plugins/share/public/components/tabs/export/export_content.tsx rename to src/platform/plugins/shared/share/public/components/tabs/export/export_content.tsx diff --git a/src/plugins/share/public/components/tabs/export/index.tsx b/src/platform/plugins/shared/share/public/components/tabs/export/index.tsx similarity index 100% rename from src/plugins/share/public/components/tabs/export/index.tsx rename to src/platform/plugins/shared/share/public/components/tabs/export/index.tsx diff --git a/src/plugins/share/public/components/tabs/index.ts b/src/platform/plugins/shared/share/public/components/tabs/index.ts similarity index 100% rename from src/plugins/share/public/components/tabs/index.ts rename to src/platform/plugins/shared/share/public/components/tabs/index.ts diff --git a/src/plugins/share/public/components/tabs/link/index.tsx b/src/platform/plugins/shared/share/public/components/tabs/link/index.tsx similarity index 100% rename from src/plugins/share/public/components/tabs/link/index.tsx rename to src/platform/plugins/shared/share/public/components/tabs/link/index.tsx diff --git a/src/plugins/share/public/components/tabs/link/link_content.test.tsx b/src/platform/plugins/shared/share/public/components/tabs/link/link_content.test.tsx similarity index 100% rename from src/plugins/share/public/components/tabs/link/link_content.test.tsx rename to src/platform/plugins/shared/share/public/components/tabs/link/link_content.test.tsx diff --git a/src/plugins/share/public/components/tabs/link/link_content.tsx b/src/platform/plugins/shared/share/public/components/tabs/link/link_content.tsx similarity index 100% rename from src/plugins/share/public/components/tabs/link/link_content.tsx rename to src/platform/plugins/shared/share/public/components/tabs/link/link_content.tsx diff --git a/src/plugins/share/public/components/url_panel_content.tsx b/src/platform/plugins/shared/share/public/components/url_panel_content.tsx similarity index 100% rename from src/plugins/share/public/components/url_panel_content.tsx rename to src/platform/plugins/shared/share/public/components/url_panel_content.tsx diff --git a/src/plugins/share/public/index.scss b/src/platform/plugins/shared/share/public/index.scss similarity index 100% rename from src/plugins/share/public/index.scss rename to src/platform/plugins/shared/share/public/index.scss diff --git a/src/plugins/share/public/index.ts b/src/platform/plugins/shared/share/public/index.ts similarity index 100% rename from src/plugins/share/public/index.ts rename to src/platform/plugins/shared/share/public/index.ts diff --git a/src/plugins/share/public/kibana_url.ts b/src/platform/plugins/shared/share/public/kibana_url.ts similarity index 100% rename from src/plugins/share/public/kibana_url.ts rename to src/platform/plugins/shared/share/public/kibana_url.ts diff --git a/src/plugins/share/public/lib/download_as.ts b/src/platform/plugins/shared/share/public/lib/download_as.ts similarity index 100% rename from src/plugins/share/public/lib/download_as.ts rename to src/platform/plugins/shared/share/public/lib/download_as.ts diff --git a/src/plugins/share/public/lib/get_home_href.ts b/src/platform/plugins/shared/share/public/lib/get_home_href.ts similarity index 100% rename from src/plugins/share/public/lib/get_home_href.ts rename to src/platform/plugins/shared/share/public/lib/get_home_href.ts diff --git a/src/plugins/share/public/lib/registrations.ts b/src/platform/plugins/shared/share/public/lib/registrations.ts similarity index 100% rename from src/plugins/share/public/lib/registrations.ts rename to src/platform/plugins/shared/share/public/lib/registrations.ts diff --git a/src/plugins/share/public/mocks.ts b/src/platform/plugins/shared/share/public/mocks.ts similarity index 100% rename from src/plugins/share/public/mocks.ts rename to src/platform/plugins/shared/share/public/mocks.ts diff --git a/src/plugins/share/public/plugin.test.mocks.ts b/src/platform/plugins/shared/share/public/plugin.test.mocks.ts similarity index 100% rename from src/plugins/share/public/plugin.test.mocks.ts rename to src/platform/plugins/shared/share/public/plugin.test.mocks.ts diff --git a/src/plugins/share/public/plugin.test.ts b/src/platform/plugins/shared/share/public/plugin.test.ts similarity index 100% rename from src/plugins/share/public/plugin.test.ts rename to src/platform/plugins/shared/share/public/plugin.test.ts diff --git a/src/plugins/share/public/plugin.ts b/src/platform/plugins/shared/share/public/plugin.ts similarity index 100% rename from src/plugins/share/public/plugin.ts rename to src/platform/plugins/shared/share/public/plugin.ts diff --git a/src/plugins/share/public/services/index.ts b/src/platform/plugins/shared/share/public/services/index.ts similarity index 100% rename from src/plugins/share/public/services/index.ts rename to src/platform/plugins/shared/share/public/services/index.ts diff --git a/src/plugins/share/public/services/share_menu_manager.mock.ts b/src/platform/plugins/shared/share/public/services/share_menu_manager.mock.ts similarity index 100% rename from src/plugins/share/public/services/share_menu_manager.mock.ts rename to src/platform/plugins/shared/share/public/services/share_menu_manager.mock.ts diff --git a/src/plugins/share/public/services/share_menu_manager.tsx b/src/platform/plugins/shared/share/public/services/share_menu_manager.tsx similarity index 100% rename from src/plugins/share/public/services/share_menu_manager.tsx rename to src/platform/plugins/shared/share/public/services/share_menu_manager.tsx diff --git a/src/plugins/share/public/services/share_menu_registry.mock.ts b/src/platform/plugins/shared/share/public/services/share_menu_registry.mock.ts similarity index 100% rename from src/plugins/share/public/services/share_menu_registry.mock.ts rename to src/platform/plugins/shared/share/public/services/share_menu_registry.mock.ts diff --git a/src/plugins/share/public/services/share_menu_registry.test.ts b/src/platform/plugins/shared/share/public/services/share_menu_registry.test.ts similarity index 100% rename from src/plugins/share/public/services/share_menu_registry.test.ts rename to src/platform/plugins/shared/share/public/services/share_menu_registry.test.ts diff --git a/src/plugins/share/public/services/share_menu_registry.ts b/src/platform/plugins/shared/share/public/services/share_menu_registry.ts similarity index 100% rename from src/plugins/share/public/services/share_menu_registry.ts rename to src/platform/plugins/shared/share/public/services/share_menu_registry.ts diff --git a/src/plugins/share/public/types.ts b/src/platform/plugins/shared/share/public/types.ts similarity index 100% rename from src/plugins/share/public/types.ts rename to src/platform/plugins/shared/share/public/types.ts diff --git a/src/plugins/share/public/url_service/index.ts b/src/platform/plugins/shared/share/public/url_service/index.ts similarity index 100% rename from src/plugins/share/public/url_service/index.ts rename to src/platform/plugins/shared/share/public/url_service/index.ts diff --git a/src/plugins/share/public/url_service/redirect/README.md b/src/platform/plugins/shared/share/public/url_service/redirect/README.md similarity index 100% rename from src/plugins/share/public/url_service/redirect/README.md rename to src/platform/plugins/shared/share/public/url_service/redirect/README.md diff --git a/src/plugins/share/public/url_service/redirect/components/empty_prompt.tsx b/src/platform/plugins/shared/share/public/url_service/redirect/components/empty_prompt.tsx similarity index 100% rename from src/plugins/share/public/url_service/redirect/components/empty_prompt.tsx rename to src/platform/plugins/shared/share/public/url_service/redirect/components/empty_prompt.tsx diff --git a/src/plugins/share/public/url_service/redirect/components/page.tsx b/src/platform/plugins/shared/share/public/url_service/redirect/components/page.tsx similarity index 100% rename from src/plugins/share/public/url_service/redirect/components/page.tsx rename to src/platform/plugins/shared/share/public/url_service/redirect/components/page.tsx diff --git a/src/plugins/share/public/url_service/redirect/components/spinner.tsx b/src/platform/plugins/shared/share/public/url_service/redirect/components/spinner.tsx similarity index 100% rename from src/plugins/share/public/url_service/redirect/components/spinner.tsx rename to src/platform/plugins/shared/share/public/url_service/redirect/components/spinner.tsx diff --git a/src/plugins/share/public/url_service/redirect/index.ts b/src/platform/plugins/shared/share/public/url_service/redirect/index.ts similarity index 100% rename from src/plugins/share/public/url_service/redirect/index.ts rename to src/platform/plugins/shared/share/public/url_service/redirect/index.ts diff --git a/src/plugins/share/public/url_service/redirect/redirect_manager.test.ts b/src/platform/plugins/shared/share/public/url_service/redirect/redirect_manager.test.ts similarity index 100% rename from src/plugins/share/public/url_service/redirect/redirect_manager.test.ts rename to src/platform/plugins/shared/share/public/url_service/redirect/redirect_manager.test.ts diff --git a/src/plugins/share/public/url_service/redirect/redirect_manager.ts b/src/platform/plugins/shared/share/public/url_service/redirect/redirect_manager.ts similarity index 100% rename from src/plugins/share/public/url_service/redirect/redirect_manager.ts rename to src/platform/plugins/shared/share/public/url_service/redirect/redirect_manager.ts diff --git a/src/plugins/share/public/url_service/redirect/render.ts b/src/platform/plugins/shared/share/public/url_service/redirect/render.ts similarity index 100% rename from src/plugins/share/public/url_service/redirect/render.ts rename to src/platform/plugins/shared/share/public/url_service/redirect/render.ts diff --git a/src/plugins/share/public/url_service/short_urls/short_url_client.test.ts b/src/platform/plugins/shared/share/public/url_service/short_urls/short_url_client.test.ts similarity index 100% rename from src/plugins/share/public/url_service/short_urls/short_url_client.test.ts rename to src/platform/plugins/shared/share/public/url_service/short_urls/short_url_client.test.ts diff --git a/src/plugins/share/public/url_service/short_urls/short_url_client.ts b/src/platform/plugins/shared/share/public/url_service/short_urls/short_url_client.ts similarity index 100% rename from src/plugins/share/public/url_service/short_urls/short_url_client.ts rename to src/platform/plugins/shared/share/public/url_service/short_urls/short_url_client.ts diff --git a/src/plugins/share/public/url_service/short_urls/short_url_client_factory.ts b/src/platform/plugins/shared/share/public/url_service/short_urls/short_url_client_factory.ts similarity index 100% rename from src/plugins/share/public/url_service/short_urls/short_url_client_factory.ts rename to src/platform/plugins/shared/share/public/url_service/short_urls/short_url_client_factory.ts diff --git a/src/plugins/share/server/config.ts b/src/platform/plugins/shared/share/server/config.ts similarity index 100% rename from src/plugins/share/server/config.ts rename to src/platform/plugins/shared/share/server/config.ts diff --git a/src/plugins/share/server/index.ts b/src/platform/plugins/shared/share/server/index.ts similarity index 100% rename from src/plugins/share/server/index.ts rename to src/platform/plugins/shared/share/server/index.ts diff --git a/src/plugins/share/server/plugin.ts b/src/platform/plugins/shared/share/server/plugin.ts similarity index 100% rename from src/plugins/share/server/plugin.ts rename to src/platform/plugins/shared/share/server/plugin.ts diff --git a/src/plugins/share/server/url_service/error.ts b/src/platform/plugins/shared/share/server/url_service/error.ts similarity index 100% rename from src/plugins/share/server/url_service/error.ts rename to src/platform/plugins/shared/share/server/url_service/error.ts diff --git a/src/plugins/share/server/url_service/http/register_url_service_routes.ts b/src/platform/plugins/shared/share/server/url_service/http/register_url_service_routes.ts similarity index 100% rename from src/plugins/share/server/url_service/http/register_url_service_routes.ts rename to src/platform/plugins/shared/share/server/url_service/http/register_url_service_routes.ts diff --git a/src/plugins/share/server/url_service/http/short_urls/register_create_route.ts b/src/platform/plugins/shared/share/server/url_service/http/short_urls/register_create_route.ts similarity index 100% rename from src/plugins/share/server/url_service/http/short_urls/register_create_route.ts rename to src/platform/plugins/shared/share/server/url_service/http/short_urls/register_create_route.ts diff --git a/src/plugins/share/server/url_service/http/short_urls/register_delete_route.ts b/src/platform/plugins/shared/share/server/url_service/http/short_urls/register_delete_route.ts similarity index 100% rename from src/plugins/share/server/url_service/http/short_urls/register_delete_route.ts rename to src/platform/plugins/shared/share/server/url_service/http/short_urls/register_delete_route.ts diff --git a/src/plugins/share/server/url_service/http/short_urls/register_get_route.ts b/src/platform/plugins/shared/share/server/url_service/http/short_urls/register_get_route.ts similarity index 100% rename from src/plugins/share/server/url_service/http/short_urls/register_get_route.ts rename to src/platform/plugins/shared/share/server/url_service/http/short_urls/register_get_route.ts diff --git a/src/plugins/share/server/url_service/http/short_urls/register_goto_route.ts b/src/platform/plugins/shared/share/server/url_service/http/short_urls/register_goto_route.ts similarity index 100% rename from src/plugins/share/server/url_service/http/short_urls/register_goto_route.ts rename to src/platform/plugins/shared/share/server/url_service/http/short_urls/register_goto_route.ts diff --git a/src/plugins/share/server/url_service/http/short_urls/register_resolve_route.ts b/src/platform/plugins/shared/share/server/url_service/http/short_urls/register_resolve_route.ts similarity index 100% rename from src/plugins/share/server/url_service/http/short_urls/register_resolve_route.ts rename to src/platform/plugins/shared/share/server/url_service/http/short_urls/register_resolve_route.ts diff --git a/src/plugins/share/server/url_service/index.ts b/src/platform/plugins/shared/share/server/url_service/index.ts similarity index 100% rename from src/plugins/share/server/url_service/index.ts rename to src/platform/plugins/shared/share/server/url_service/index.ts diff --git a/src/plugins/share/server/url_service/saved_objects/register_url_service_saved_object_type.test.ts b/src/platform/plugins/shared/share/server/url_service/saved_objects/register_url_service_saved_object_type.test.ts similarity index 100% rename from src/plugins/share/server/url_service/saved_objects/register_url_service_saved_object_type.test.ts rename to src/platform/plugins/shared/share/server/url_service/saved_objects/register_url_service_saved_object_type.test.ts diff --git a/src/plugins/share/server/url_service/saved_objects/register_url_service_saved_object_type.ts b/src/platform/plugins/shared/share/server/url_service/saved_objects/register_url_service_saved_object_type.ts similarity index 100% rename from src/plugins/share/server/url_service/saved_objects/register_url_service_saved_object_type.ts rename to src/platform/plugins/shared/share/server/url_service/saved_objects/register_url_service_saved_object_type.ts diff --git a/src/plugins/share/server/url_service/short_urls/index.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/index.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/index.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/index.ts diff --git a/src/plugins/share/server/url_service/short_urls/short_url_client.test.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/short_url_client.test.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/short_url_client.test.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/short_url_client.test.ts diff --git a/src/plugins/share/server/url_service/short_urls/short_url_client.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/short_url_client.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/short_url_client.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/short_url_client.ts diff --git a/src/plugins/share/server/url_service/short_urls/short_url_client_factory.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/short_url_client_factory.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/short_url_client_factory.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/short_url_client_factory.ts diff --git a/src/plugins/share/server/url_service/short_urls/storage/memory_short_url_storage.test.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/storage/memory_short_url_storage.test.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/storage/memory_short_url_storage.test.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/storage/memory_short_url_storage.test.ts diff --git a/src/plugins/share/server/url_service/short_urls/storage/memory_short_url_storage.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/storage/memory_short_url_storage.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/storage/memory_short_url_storage.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/storage/memory_short_url_storage.ts diff --git a/src/plugins/share/server/url_service/short_urls/storage/saved_object_short_url_storage.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/storage/saved_object_short_url_storage.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/storage/saved_object_short_url_storage.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/storage/saved_object_short_url_storage.ts diff --git a/src/plugins/share/server/url_service/short_urls/types.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/types.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/types.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/types.ts diff --git a/src/plugins/share/server/url_service/short_urls/util.test.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/util.test.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/util.test.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/util.test.ts diff --git a/src/plugins/share/server/url_service/short_urls/util.ts b/src/platform/plugins/shared/share/server/url_service/short_urls/util.ts similarity index 100% rename from src/plugins/share/server/url_service/short_urls/util.ts rename to src/platform/plugins/shared/share/server/url_service/short_urls/util.ts diff --git a/src/plugins/share/server/url_service/types.ts b/src/platform/plugins/shared/share/server/url_service/types.ts similarity index 100% rename from src/plugins/share/server/url_service/types.ts rename to src/platform/plugins/shared/share/server/url_service/types.ts diff --git a/src/plugins/share/tsconfig.json b/src/platform/plugins/shared/share/tsconfig.json similarity index 94% rename from src/plugins/share/tsconfig.json rename to src/platform/plugins/shared/share/tsconfig.json index acd84ebc97a83..409549640ef7c 100644 --- a/src/plugins/share/tsconfig.json +++ b/src/platform/plugins/shared/share/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 22b46cbfe5d2d..311ecf46fcb0c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1732,8 +1732,8 @@ "@kbn/set-map/*": ["packages/kbn-set-map/*"], "@kbn/share-examples-plugin": ["examples/share_examples"], "@kbn/share-examples-plugin/*": ["examples/share_examples/*"], - "@kbn/share-plugin": ["src/plugins/share"], - "@kbn/share-plugin/*": ["src/plugins/share/*"], + "@kbn/share-plugin": ["src/platform/plugins/shared/share"], + "@kbn/share-plugin/*": ["src/platform/plugins/shared/share/*"], "@kbn/shared-svg": ["packages/kbn-shared-svg"], "@kbn/shared-svg/*": ["packages/kbn-shared-svg/*"], "@kbn/shared-ux-avatar-solution": ["packages/shared-ux/avatar/solution"], diff --git a/yarn.lock b/yarn.lock index eee165246d8b6..d1bd804b241b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7281,7 +7281,7 @@ version "0.0.0" uid "" -"@kbn/share-plugin@link:src/plugins/share": +"@kbn/share-plugin@link:src/platform/plugins/shared/share": version "0.0.0" uid "" From cbc98ce3533cf1fb2a93f0e53e7c92449a5ef6f2 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:28:34 +0100 Subject: [PATCH 24/43] Relocating module `@kbn/ui-actions-enhanced-plugin` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- src/dev/storybook/aliases.ts | 2 +- .../shared}/ui_actions_enhanced/.storybook/main.js | 0 .../plugins/shared}/ui_actions_enhanced/README.md | 0 .../plugins/shared}/ui_actions_enhanced/common/index.ts | 0 .../plugins/shared}/ui_actions_enhanced/common/types.ts | 0 .../plugins/shared}/ui_actions_enhanced/jest.config.js | 8 ++++---- .../plugins/shared}/ui_actions_enhanced/kibana.jsonc | 0 .../action_factory_picker/action_factory_picker.tsx | 0 .../public/components/action_factory_picker/index.ts | 0 .../public/components/action_wizard/action_wizard.scss | 0 .../components/action_wizard/action_wizard.stories.tsx | 0 .../components/action_wizard/action_wizard.test.tsx | 0 .../public/components/action_wizard/action_wizard.tsx | 0 .../public/components/action_wizard/i18n.ts | 0 .../public/components/action_wizard/index.ts | 0 .../public/components/action_wizard/test_data.tsx | 0 .../ui_actions_enhanced/public/components/index.ts | 0 .../public/components/presentable_picker/i18n.ts | 0 .../public/components/presentable_picker/index.ts | 0 .../presentable_picker/presentable_picker.stories.tsx | 0 .../components/presentable_picker/presentable_picker.tsx | 0 .../presentable_picker/presentable_picker_item.tsx | 0 .../public/components/presentable_picker/styles.scss | 0 .../public/drilldowns/drilldown_definition.ts | 0 .../public/drilldowns/drilldown_manager/README.md | 0 .../components/action_factory/action_factory.tsx | 0 .../drilldown_manager/components/action_factory/index.ts | 0 .../components/button_submit/button_submit.tsx | 0 .../drilldown_manager/components/button_submit/index.ts | 0 .../components/drilldown_form/drilldown_form.stories.tsx | 0 .../components/drilldown_form/drilldown_form.tsx | 0 .../drilldown_manager/components/drilldown_form/index.tsx | 0 .../drilldown_hello_bar/drilldown_hello_bar.stories.tsx | 0 .../drilldown_hello_bar/drilldown_hello_bar.tsx | 0 .../components/drilldown_hello_bar/i18n.ts | 0 .../components/drilldown_hello_bar/index.tsx | 0 .../drilldown_table/drilldown_table.stories.tsx | 0 .../components/drilldown_table/drilldown_table.test.tsx | 0 .../components/drilldown_table/drilldown_table.tsx | 0 .../drilldown_manager/components/drilldown_table/i18n.ts | 0 .../components/drilldown_table/index.tsx | 0 .../drilldown_template_table/drilldown_template_table.tsx | 0 .../components/drilldown_template_table/i18n.ts | 0 .../components/drilldown_template_table/index.tsx | 0 .../components/flyout_frame/flyout_frame.stories.tsx | 0 .../components/flyout_frame/flyout_frame.test.tsx | 0 .../components/flyout_frame/flyout_frame.tsx | 0 .../drilldown_manager/components/flyout_frame/i18n.ts | 0 .../drilldown_manager/components/flyout_frame/index.tsx | 0 .../drilldown_manager/components/text_with_icon/index.tsx | 0 .../components/text_with_icon/text_with_icon.tsx | 0 .../components/trigger_line_item/index.tsx | 0 .../components/trigger_line_item/trigger_line_item.tsx | 0 .../drilldown_manager/components/trigger_picker/index.ts | 0 .../components/trigger_picker/trigger_picker.stories.tsx | 0 .../components/trigger_picker/trigger_picker.tsx | 0 .../components/trigger_picker/trigger_picker_item.tsx | 0 .../drilldowns/drilldown_manager/components/types.ts | 0 .../action_factory_picker/action_factory_picker.tsx | 0 .../containers/action_factory_picker/index.ts | 0 .../action_factory_view/action_factory_view.tsx | 0 .../containers/action_factory_view/index.ts | 0 .../drilldown_manager/containers/context/context.tsx | 0 .../drilldown_manager/containers/context/index.ts | 0 .../create_drilldown_form/create_drilldown_form.tsx | 0 .../containers/create_drilldown_form/index.ts | 0 .../containers/drilldown_list/cloning_notification.tsx | 0 .../containers/drilldown_list/drilldown_list.tsx | 0 .../drilldown_manager/containers/drilldown_list/index.ts | 0 .../drilldown_manager/create_public_drilldown_manager.tsx | 0 .../containers/drilldown_manager/drilldown_manager.tsx | 0 .../drilldown_manager/drilldown_manager_content.tsx | 0 .../drilldown_manager/drilldown_manager_with_provider.tsx | 0 .../containers/drilldown_manager/index.ts | 0 .../drilldown_manager_footer/drilldown_manager_footer.tsx | 0 .../containers/drilldown_manager_footer/index.ts | 0 .../drilldown_manager_title/drilldown_manager_title.tsx | 0 .../containers/drilldown_manager_title/index.ts | 0 .../drilldown_state_form/drilldown_state_form.tsx | 0 .../containers/drilldown_state_form/index.ts | 0 .../edit_drilldown_form/edit_drilldown_form.tsx | 0 .../containers/edit_drilldown_form/index.ts | 0 .../form_drilldown_wizard/create_drilldown_form.tsx | 0 .../form_drilldown_wizard/edit_drilldown_form.tsx | 0 .../form_drilldown_wizard/form_drilldown_wizard.tsx | 0 .../containers/form_drilldown_wizard/i18n.ts | 0 .../containers/form_drilldown_wizard/index.ts | 0 .../drilldown_manager/containers/hello_bar/hello_bar.tsx | 0 .../drilldown_manager/containers/hello_bar/index.ts | 0 .../drilldowns/drilldown_manager/containers/index.ts | 0 .../drilldowns/drilldown_manager/containers/tabs/index.ts | 0 .../drilldowns/drilldown_manager/containers/tabs/tabs.tsx | 0 .../drilldown_manager/containers/template_picker/i18n.ts | 0 .../drilldown_manager/containers/template_picker/index.ts | 0 .../containers/template_picker/template_list.tsx | 0 .../containers/template_picker/template_picker.tsx | 0 .../drilldown_manager/hooks/use_sync_observable.ts | 0 .../public/drilldowns/drilldown_manager/index.ts | 0 .../state/drilldown_manager_state.test.tsx | 0 .../drilldown_manager/state/drilldown_manager_state.ts | 0 .../drilldowns/drilldown_manager/state/drilldown_state.ts | 0 .../public/drilldowns/drilldown_manager/state/i18n.ts | 0 .../public/drilldowns/drilldown_manager/state/index.ts | 0 .../public/drilldowns/drilldown_manager/types.ts | 0 .../ui_actions_enhanced/public/drilldowns/index.ts | 0 .../public/drilldowns/url_drilldown/README.md | 0 .../public/drilldowns/url_drilldown/components/index.ts | 0 .../components/url_drilldown_collect_config/i18n.ts | 0 .../components/url_drilldown_collect_config/index.scss | 0 .../components/url_drilldown_collect_config/index.ts | 0 .../components/url_drilldown_collect_config/lazy.tsx | 0 .../url_drilldown_collect_config/test_samples/demo.tsx | 0 .../url_drilldown_collect_config.story.tsx | 0 .../url_drilldown_collect_config.tsx | 0 .../url_drilldown_options.tsx | 0 .../url_drilldown/components/variable_popover/i18n.ts | 0 .../url_drilldown/components/variable_popover/index.tsx | 0 .../public/drilldowns/url_drilldown/constants.ts | 0 .../public/drilldowns/url_drilldown/handlebars.ts | 0 .../public/drilldowns/url_drilldown/index.ts | 0 .../public/drilldowns/url_drilldown/types.ts | 0 .../url_drilldown/url_drilldown_global_scope.ts | 0 .../public/drilldowns/url_drilldown/url_template.test.ts | 0 .../public/drilldowns/url_drilldown/url_template.ts | 0 .../drilldowns/url_drilldown/url_validation.test.ts | 0 .../public/drilldowns/url_drilldown/url_validation.ts | 0 .../public/dynamic_actions/action_factory.test.ts | 0 .../public/dynamic_actions/action_factory.ts | 0 .../public/dynamic_actions/action_factory_definition.ts | 0 .../public/dynamic_actions/dynamic_action_enhancement.ts | 0 .../public/dynamic_actions/dynamic_action_grouping.ts | 0 .../public/dynamic_actions/dynamic_action_manager.test.ts | 0 .../public/dynamic_actions/dynamic_action_manager.ts | 0 .../dynamic_actions/dynamic_action_manager_state.ts | 0 .../public/dynamic_actions/dynamic_action_storage.ts | 0 .../ui_actions_enhanced/public/dynamic_actions/index.ts | 0 .../ui_actions_enhanced/public/dynamic_actions/types.ts | 0 .../plugins/shared}/ui_actions_enhanced/public/index.ts | 0 .../plugins/shared}/ui_actions_enhanced/public/mocks.ts | 0 .../plugins/shared}/ui_actions_enhanced/public/plugin.ts | 0 .../shared}/ui_actions_enhanced/public/services/index.ts | 0 .../services/ui_actions_service_enhancements.test.ts | 0 .../public/services/ui_actions_service_enhancements.ts | 0 .../plugins/shared}/ui_actions_enhanced/public/types.ts | 0 .../server/dynamic_action_enhancement.ts | 0 .../plugins/shared}/ui_actions_enhanced/server/index.ts | 0 .../plugins/shared}/ui_actions_enhanced/server/plugin.ts | 0 .../telemetry/dynamic_action_factories_collector.test.ts | 0 .../telemetry/dynamic_action_factories_collector.ts | 0 .../server/telemetry/dynamic_actions_collector.test.ts | 0 .../server/telemetry/dynamic_actions_collector.ts | 0 .../server/telemetry/get_metric_key.ts | 0 .../plugins/shared}/ui_actions_enhanced/server/types.ts | 0 .../plugins/shared}/ui_actions_enhanced/tsconfig.json | 4 ++-- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 160 files changed, 14 insertions(+), 14 deletions(-) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/.storybook/main.js (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/README.md (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/common/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/jest.config.js (72%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/action_factory_picker/action_factory_picker.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/action_factory_picker/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/action_wizard/action_wizard.scss (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/action_wizard/action_wizard.stories.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/action_wizard/action_wizard.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/action_wizard/action_wizard.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/action_wizard/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/action_wizard/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/action_wizard/test_data.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/presentable_picker/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/presentable_picker/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.stories.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/presentable_picker/presentable_picker_item.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/components/presentable_picker/styles.scss (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_definition.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/README.md (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/action_factory.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/button_submit.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.stories.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.stories.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.stories.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/drilldown_template_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.stories.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/text_with_icon.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/trigger_line_item.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.stories.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker_item.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/action_factory_picker.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/action_factory_view.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/context.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/create_drilldown_form.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/cloning_notification.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/drilldown_list.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/create_public_drilldown_manager.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_content.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_with_provider.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/drilldown_manager_footer.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/drilldown_manager_title.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/drilldown_state_form.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/edit_drilldown_form.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/create_drilldown_form.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/edit_drilldown_form.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/form_drilldown_wizard.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/hello_bar.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/tabs.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_list.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_picker.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/hooks/use_sync_observable.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_state.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/drilldown_manager/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/README.md (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.scss (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/lazy.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/test_samples/demo.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.story.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_options.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/i18n.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/index.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/handlebars.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/url_drilldown_global_scope.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/action_factory.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/action_factory.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/action_factory_definition.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/dynamic_action_enhancement.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/dynamic_action_grouping.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager_state.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/dynamic_action_storage.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/dynamic_actions/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/services/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/services/ui_actions_service_enhancements.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/services/ui_actions_service_enhancements.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/server/dynamic_action_enhancement.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/server/telemetry/get_metric_key.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions_enhanced/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c37749c72e2ae..6226028410733 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -632,6 +632,7 @@ src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux src/platform/plugins/shared/share @elastic/appex-sharedux +src/platform/plugins/shared/ui_actions_enhanced @elastic/appex-sharedux src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux src/plugins/chart_expressions/common @elastic/kibana-visualizations @@ -681,7 +682,6 @@ src/plugins/telemetry @elastic/kibana-core 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 diff --git a/.i18nrc.json b/.i18nrc.json index abf126716489b..a58d29dbc35a0 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -141,7 +141,7 @@ "timelion": ["src/plugins/vis_types/timelion"], "tryInConsole": "packages/kbn-try-in-console/", "uiActions": ["src/plugins/ui_actions", "packages/kbn-ui-actions-browser"], - "uiActionsEnhanced": "src/plugins/ui_actions_enhanced", + "uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced", "uiActionsExamples": "examples/ui_action_examples", "usageCollection": "src/plugins/usage_collection", "userProfileComponents": "packages/kbn-user-profile-components", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index f0d4a198e66c5..d5465a38bc24f 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -357,7 +357,7 @@ In general this plugin provides: - Exposing a context menu for the user to choose the appropriate action when there are multiple actions attached to a single trigger. -|{kib-repo}blob/{branch}/src/plugins/ui_actions_enhanced/README.md[uiActionsEnhanced] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/ui_actions_enhanced/README.md[uiActionsEnhanced] |Registers commercially licensed generic actions like per panel time range and contains some code that supports drilldown work. diff --git a/package.json b/package.json index 40aff308a0673..5a178f131ca04 100644 --- a/package.json +++ b/package.json @@ -975,7 +975,7 @@ "@kbn/typed-react-router-config": "link:src/platform/packages/shared/kbn-typed-react-router-config", "@kbn/ui-actions-browser": "link:packages/kbn-ui-actions-browser", "@kbn/ui-actions-enhanced-examples-plugin": "link:x-pack/examples/ui_actions_enhanced_examples", - "@kbn/ui-actions-enhanced-plugin": "link:src/plugins/ui_actions_enhanced", + "@kbn/ui-actions-enhanced-plugin": "link:src/platform/plugins/shared/ui_actions_enhanced", "@kbn/ui-actions-examples-plugin": "link:examples/ui_action_examples", "@kbn/ui-actions-explorer-plugin": "link:examples/ui_actions_explorer", "@kbn/ui-actions-plugin": "link:src/plugins/ui_actions", diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index 5e7dc6496f7c5..d628da68a6ba1 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -71,7 +71,7 @@ export const storybookAliases = { slo: 'x-pack/solutions/observability/plugins/slo/.storybook', threat_intelligence: 'x-pack/solutions/security/plugins/threat_intelligence/.storybook', triggers_actions_ui: 'x-pack/plugins/triggers_actions_ui/.storybook', - ui_actions_enhanced: 'src/plugins/ui_actions_enhanced/.storybook', + ui_actions_enhanced: 'src/platform/plugins/shared/ui_actions_enhanced/.storybook', unified_search: 'src/plugins/unified_search/.storybook', profiling: 'x-pack/plugins/observability_solution/profiling/.storybook', }; diff --git a/src/plugins/ui_actions_enhanced/.storybook/main.js b/src/platform/plugins/shared/ui_actions_enhanced/.storybook/main.js similarity index 100% rename from src/plugins/ui_actions_enhanced/.storybook/main.js rename to src/platform/plugins/shared/ui_actions_enhanced/.storybook/main.js diff --git a/src/plugins/ui_actions_enhanced/README.md b/src/platform/plugins/shared/ui_actions_enhanced/README.md similarity index 100% rename from src/plugins/ui_actions_enhanced/README.md rename to src/platform/plugins/shared/ui_actions_enhanced/README.md diff --git a/src/plugins/ui_actions_enhanced/common/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/common/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/common/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/common/index.ts diff --git a/src/plugins/ui_actions_enhanced/common/types.ts b/src/platform/plugins/shared/ui_actions_enhanced/common/types.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/common/types.ts rename to src/platform/plugins/shared/ui_actions_enhanced/common/types.ts diff --git a/src/plugins/ui_actions_enhanced/jest.config.js b/src/platform/plugins/shared/ui_actions_enhanced/jest.config.js similarity index 72% rename from src/plugins/ui_actions_enhanced/jest.config.js rename to src/platform/plugins/shared/ui_actions_enhanced/jest.config.js index 7797f7e4d7b0f..d16049475f145 100644 --- a/src/plugins/ui_actions_enhanced/jest.config.js +++ b/src/platform/plugins/shared/ui_actions_enhanced/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/ui_actions_enhanced'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/ui_actions_enhanced', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/ui_actions_enhanced'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/ui_actions_enhanced', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/ui_actions_enhanced/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/ui_actions_enhanced/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/ui_actions_enhanced/kibana.jsonc b/src/platform/plugins/shared/ui_actions_enhanced/kibana.jsonc similarity index 100% rename from src/plugins/ui_actions_enhanced/kibana.jsonc rename to src/platform/plugins/shared/ui_actions_enhanced/kibana.jsonc diff --git a/src/plugins/ui_actions_enhanced/public/components/action_factory_picker/action_factory_picker.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/components/action_factory_picker/action_factory_picker.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/action_factory_picker/action_factory_picker.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/action_factory_picker/action_factory_picker.tsx diff --git a/src/plugins/ui_actions_enhanced/public/components/action_factory_picker/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/components/action_factory_picker/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/action_factory_picker/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/action_factory_picker/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/components/action_wizard/action_wizard.scss b/src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/action_wizard.scss similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/action_wizard/action_wizard.scss rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/action_wizard.scss diff --git a/src/plugins/ui_actions_enhanced/public/components/action_wizard/action_wizard.stories.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/action_wizard.stories.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/action_wizard/action_wizard.stories.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/action_wizard.stories.tsx diff --git a/src/plugins/ui_actions_enhanced/public/components/action_wizard/action_wizard.test.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/action_wizard.test.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/action_wizard/action_wizard.test.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/action_wizard.test.tsx diff --git a/src/plugins/ui_actions_enhanced/public/components/action_wizard/action_wizard.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/action_wizard.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/action_wizard/action_wizard.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/action_wizard.tsx diff --git a/src/plugins/ui_actions_enhanced/public/components/action_wizard/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/action_wizard/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/components/action_wizard/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/action_wizard/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/components/action_wizard/test_data.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/test_data.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/action_wizard/test_data.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/action_wizard/test_data.tsx diff --git a/src/plugins/ui_actions_enhanced/public/components/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/components/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/components/presentable_picker/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/presentable_picker/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/components/presentable_picker/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/presentable_picker/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.stories.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.stories.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.stories.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.stories.tsx diff --git a/src/plugins/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/presentable_picker.tsx diff --git a/src/plugins/ui_actions_enhanced/public/components/presentable_picker/presentable_picker_item.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/presentable_picker_item.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/presentable_picker/presentable_picker_item.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/presentable_picker_item.tsx diff --git a/src/plugins/ui_actions_enhanced/public/components/presentable_picker/styles.scss b/src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/styles.scss similarity index 100% rename from src/plugins/ui_actions_enhanced/public/components/presentable_picker/styles.scss rename to src/platform/plugins/shared/ui_actions_enhanced/public/components/presentable_picker/styles.scss diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_definition.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_definition.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_definition.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_definition.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/README.md b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/README.md similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/README.md rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/README.md diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/action_factory.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/action_factory.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/action_factory.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/action_factory.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/action_factory/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/button_submit.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/button_submit.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/button_submit.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/button_submit.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/button_submit/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.stories.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.stories.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.stories.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.stories.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/drilldown_form.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/index.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/index.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/index.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_form/index.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.stories.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.stories.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.stories.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.stories.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/drilldown_hello_bar.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/index.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/index.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/index.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_hello_bar/index.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.stories.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.stories.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.stories.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.stories.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.test.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.test.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.test.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.test.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/drilldown_table.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/index.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/index.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/index.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_table/index.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/drilldown_template_table.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/drilldown_template_table.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/drilldown_template_table.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/drilldown_template_table.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/index.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/index.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/index.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/drilldown_template_table/index.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.stories.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.stories.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.stories.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.stories.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.test.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.test.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.test.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.test.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/flyout_frame.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/index.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/index.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/index.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/flyout_frame/index.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/index.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/index.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/index.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/index.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/text_with_icon.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/text_with_icon.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/text_with_icon.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/text_with_icon/text_with_icon.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/index.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/index.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/index.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/index.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/trigger_line_item.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/trigger_line_item.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/trigger_line_item.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_line_item/trigger_line_item.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.stories.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.stories.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.stories.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.stories.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker_item.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker_item.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker_item.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/trigger_picker/trigger_picker_item.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/types.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/types.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/types.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/components/types.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/action_factory_picker.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/action_factory_picker.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/action_factory_picker.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/action_factory_picker.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_picker/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/action_factory_view.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/action_factory_view.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/action_factory_view.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/action_factory_view.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/action_factory_view/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/context.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/context.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/context.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/context.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/context/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/create_drilldown_form.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/create_drilldown_form.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/create_drilldown_form.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/create_drilldown_form.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/create_drilldown_form/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/cloning_notification.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/cloning_notification.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/cloning_notification.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/cloning_notification.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/drilldown_list.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/drilldown_list.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/drilldown_list.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/drilldown_list.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_list/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/create_public_drilldown_manager.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/create_public_drilldown_manager.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/create_public_drilldown_manager.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/create_public_drilldown_manager.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_content.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_content.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_content.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_content.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_with_provider.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_with_provider.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_with_provider.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/drilldown_manager_with_provider.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/drilldown_manager_footer.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/drilldown_manager_footer.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/drilldown_manager_footer.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/drilldown_manager_footer.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_footer/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/drilldown_manager_title.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/drilldown_manager_title.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/drilldown_manager_title.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/drilldown_manager_title.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_manager_title/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/drilldown_state_form.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/drilldown_state_form.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/drilldown_state_form.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/drilldown_state_form.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/drilldown_state_form/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/edit_drilldown_form.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/edit_drilldown_form.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/edit_drilldown_form.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/edit_drilldown_form.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/edit_drilldown_form/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/create_drilldown_form.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/create_drilldown_form.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/create_drilldown_form.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/create_drilldown_form.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/edit_drilldown_form.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/edit_drilldown_form.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/edit_drilldown_form.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/edit_drilldown_form.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/form_drilldown_wizard.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/form_drilldown_wizard.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/form_drilldown_wizard.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/form_drilldown_wizard.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/form_drilldown_wizard/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/hello_bar.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/hello_bar.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/hello_bar.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/hello_bar.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/hello_bar/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/tabs.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/tabs.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/tabs.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/tabs/tabs.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_list.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_list.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_list.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_list.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_picker.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_picker.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_picker.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/containers/template_picker/template_picker.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/hooks/use_sync_observable.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/hooks/use_sync_observable.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/hooks/use_sync_observable.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/hooks/use_sync_observable.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.test.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.test.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.test.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.test.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_manager_state.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_state.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_state.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_state.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/drilldown_state.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/state/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/types.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/types.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/drilldown_manager/types.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/drilldown_manager/types.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/README.md b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/README.md similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/README.md rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/README.md diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.scss b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.scss similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.scss rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.scss diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/lazy.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/lazy.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/lazy.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/lazy.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/test_samples/demo.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/test_samples/demo.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/test_samples/demo.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/test_samples/demo.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.story.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.story.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.story.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.story.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_collect_config.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_options.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_options.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_options.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/url_drilldown_collect_config/url_drilldown_options.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/i18n.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/i18n.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/i18n.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/i18n.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/index.tsx b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/index.tsx similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/index.tsx rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/components/variable_popover/index.tsx diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/constants.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/constants.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/constants.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/constants.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/handlebars.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/handlebars.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/handlebars.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/handlebars.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/types.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/types.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/types.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/types.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_drilldown_global_scope.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_drilldown_global_scope.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_drilldown_global_scope.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_drilldown_global_scope.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.test.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.test.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.test.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.test.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_template.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.test.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.test.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.test.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.test.ts diff --git a/src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/drilldowns/url_drilldown/url_validation.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory.test.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/action_factory.test.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory.test.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/action_factory.test.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/action_factory.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/action_factory.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory_definition.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/action_factory_definition.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory_definition.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/action_factory_definition.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_enhancement.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_enhancement.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_enhancement.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_enhancement.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_grouping.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_grouping.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_grouping.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_grouping.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.test.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.test.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.test.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.test.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager_state.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager_state.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager_state.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_manager_state.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_storage.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_storage.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/dynamic_action_storage.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/dynamic_action_storage.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/dynamic_actions/types.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/types.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/dynamic_actions/types.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/dynamic_actions/types.ts diff --git a/src/plugins/ui_actions_enhanced/public/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/mocks.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/mocks.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/mocks.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/mocks.ts diff --git a/src/plugins/ui_actions_enhanced/public/plugin.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/plugin.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/plugin.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/plugin.ts diff --git a/src/plugins/ui_actions_enhanced/public/services/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/services/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/services/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/services/index.ts diff --git a/src/plugins/ui_actions_enhanced/public/services/ui_actions_service_enhancements.test.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/services/ui_actions_service_enhancements.test.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/services/ui_actions_service_enhancements.test.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/services/ui_actions_service_enhancements.test.ts diff --git a/src/plugins/ui_actions_enhanced/public/services/ui_actions_service_enhancements.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/services/ui_actions_service_enhancements.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/services/ui_actions_service_enhancements.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/services/ui_actions_service_enhancements.ts diff --git a/src/plugins/ui_actions_enhanced/public/types.ts b/src/platform/plugins/shared/ui_actions_enhanced/public/types.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/public/types.ts rename to src/platform/plugins/shared/ui_actions_enhanced/public/types.ts diff --git a/src/plugins/ui_actions_enhanced/server/dynamic_action_enhancement.ts b/src/platform/plugins/shared/ui_actions_enhanced/server/dynamic_action_enhancement.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/server/dynamic_action_enhancement.ts rename to src/platform/plugins/shared/ui_actions_enhanced/server/dynamic_action_enhancement.ts diff --git a/src/plugins/ui_actions_enhanced/server/index.ts b/src/platform/plugins/shared/ui_actions_enhanced/server/index.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/server/index.ts rename to src/platform/plugins/shared/ui_actions_enhanced/server/index.ts diff --git a/src/plugins/ui_actions_enhanced/server/plugin.ts b/src/platform/plugins/shared/ui_actions_enhanced/server/plugin.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/server/plugin.ts rename to src/platform/plugins/shared/ui_actions_enhanced/server/plugin.ts diff --git a/src/plugins/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.test.ts b/src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.test.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.test.ts rename to src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.test.ts diff --git a/src/plugins/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.ts b/src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.ts rename to src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/dynamic_action_factories_collector.ts diff --git a/src/plugins/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.test.ts b/src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.test.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.test.ts rename to src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.test.ts diff --git a/src/plugins/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.ts b/src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.ts rename to src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/dynamic_actions_collector.ts diff --git a/src/plugins/ui_actions_enhanced/server/telemetry/get_metric_key.ts b/src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/get_metric_key.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/server/telemetry/get_metric_key.ts rename to src/platform/plugins/shared/ui_actions_enhanced/server/telemetry/get_metric_key.ts diff --git a/src/plugins/ui_actions_enhanced/server/types.ts b/src/platform/plugins/shared/ui_actions_enhanced/server/types.ts similarity index 100% rename from src/plugins/ui_actions_enhanced/server/types.ts rename to src/platform/plugins/shared/ui_actions_enhanced/server/types.ts diff --git a/src/plugins/ui_actions_enhanced/tsconfig.json b/src/platform/plugins/shared/ui_actions_enhanced/tsconfig.json similarity index 87% rename from src/plugins/ui_actions_enhanced/tsconfig.json rename to src/platform/plugins/shared/ui_actions_enhanced/tsconfig.json index 9355eb5e1d65c..35a65c08a0cd7 100644 --- a/src/plugins/ui_actions_enhanced/tsconfig.json +++ b/src/platform/plugins/shared/ui_actions_enhanced/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -7,7 +7,7 @@ "public/**/*", "server/**/*", "common/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/tsconfig.base.json b/tsconfig.base.json index 311ecf46fcb0c..8ee2a3112ff99 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1964,8 +1964,8 @@ "@kbn/ui-actions-browser/*": ["packages/kbn-ui-actions-browser/*"], "@kbn/ui-actions-enhanced-examples-plugin": ["x-pack/examples/ui_actions_enhanced_examples"], "@kbn/ui-actions-enhanced-examples-plugin/*": ["x-pack/examples/ui_actions_enhanced_examples/*"], - "@kbn/ui-actions-enhanced-plugin": ["src/plugins/ui_actions_enhanced"], - "@kbn/ui-actions-enhanced-plugin/*": ["src/plugins/ui_actions_enhanced/*"], + "@kbn/ui-actions-enhanced-plugin": ["src/platform/plugins/shared/ui_actions_enhanced"], + "@kbn/ui-actions-enhanced-plugin/*": ["src/platform/plugins/shared/ui_actions_enhanced/*"], "@kbn/ui-actions-examples-plugin": ["examples/ui_action_examples"], "@kbn/ui-actions-examples-plugin/*": ["examples/ui_action_examples/*"], "@kbn/ui-actions-explorer-plugin": ["examples/ui_actions_explorer"], diff --git a/yarn.lock b/yarn.lock index d1bd804b241b5..c09f24f46f2d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7745,7 +7745,7 @@ version "0.0.0" uid "" -"@kbn/ui-actions-enhanced-plugin@link:src/plugins/ui_actions_enhanced": +"@kbn/ui-actions-enhanced-plugin@link:src/platform/plugins/shared/ui_actions_enhanced": version "0.0.0" uid "" From 6620fe572269de5ccaa578e9a96d9083bea33979 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 15:29:59 +0100 Subject: [PATCH 25/43] Relocating module `@kbn/ui-actions-plugin` --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 2 +- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/best-practices/index.asciidoc | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/ui_actions/README.asciidoc | 0 .../plugins/shared}/ui_actions/jest.config.js | 8 ++++---- .../plugins/shared}/ui_actions/kibana.jsonc | 0 .../shared}/ui_actions/public/actions/action.test.ts | 0 .../plugins/shared}/ui_actions/public/actions/action.ts | 0 .../ui_actions/public/actions/action_internal.test.ts | 0 .../shared}/ui_actions/public/actions/action_internal.ts | 0 .../shared}/ui_actions/public/actions/create_action.ts | 0 .../public/actions/incompatible_action_error.ts | 0 .../plugins/shared}/ui_actions/public/actions/index.ts | 0 .../context_menu/build_eui_context_menu_panels.test.ts | 0 .../public/context_menu/build_eui_context_menu_panels.tsx | 0 .../shared}/ui_actions/public/context_menu/index.ts | 0 .../public/context_menu/open_context_menu.test.ts | 0 .../ui_actions/public/context_menu/open_context_menu.tsx | 0 .../plugins/shared}/ui_actions/public/index.ts | 0 .../plugins/shared}/ui_actions/public/mocks.ts | 0 .../plugins/shared}/ui_actions/public/plugin.ts | 0 .../plugins/shared}/ui_actions/public/service/index.ts | 0 .../public/service/ui_actions_execution_service.ts | 0 .../ui_actions/public/service/ui_actions_service.test.ts | 0 .../ui_actions/public/service/ui_actions_service.ts | 0 .../plugins/shared}/ui_actions/public/services.ts | 0 .../plugins/shared}/ui_actions/public/tests/README.md | 0 .../public/tests/execute_trigger_actions.test.ts | 0 .../ui_actions/public/tests/get_trigger_actions.test.ts | 0 .../public/tests/get_trigger_compatible_actions.test.ts | 0 .../plugins/shared}/ui_actions/public/tests/index.ts | 0 .../public/tests/test_samples/hello_world_action.tsx | 0 .../shared}/ui_actions/public/tests/test_samples/index.ts | 0 .../plugins/shared}/ui_actions/public/triggers/index.ts | 0 .../ui_actions/public/triggers/trigger_contract.ts | 0 .../ui_actions/public/triggers/trigger_internal.ts | 0 .../plugins/shared}/ui_actions/public/types.ts | 0 .../plugins/shared}/ui_actions/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 43 files changed, 14 insertions(+), 14 deletions(-) rename src/{plugins => platform/plugins/shared}/ui_actions/README.asciidoc (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/jest.config.js (73%) rename src/{plugins => platform/plugins/shared}/ui_actions/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/actions/action.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/actions/action.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/actions/action_internal.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/actions/action_internal.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/actions/create_action.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/actions/incompatible_action_error.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/actions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/context_menu/build_eui_context_menu_panels.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/context_menu/build_eui_context_menu_panels.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/context_menu/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/context_menu/open_context_menu.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/context_menu/open_context_menu.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/service/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/service/ui_actions_execution_service.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/service/ui_actions_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/service/ui_actions_service.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/services.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/tests/README.md (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/tests/execute_trigger_actions.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/tests/get_trigger_actions.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/tests/get_trigger_compatible_actions.test.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/tests/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/tests/test_samples/hello_world_action.tsx (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/tests/test_samples/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/triggers/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/triggers/trigger_contract.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/triggers/trigger_internal.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ui_actions/tsconfig.json (89%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index ad6729758deed..b39a859e01732 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -326,7 +326,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^src\/platform\/platform\/plugins\/shared\/shared\/kibana_react/, /^src\/platform\/platform\/plugins\/shared\/shared\/kibana_utils/, /^src\/plugins\/saved_search/, - /^src\/plugins\/ui_actions/, + /^src\/platform\/plugins\/shared\/ui_actions/, /^src\/plugins\/unified_histogram/, /^src\/plugins\/unified_search/, /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/, diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6226028410733..444e5f5497b06 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -632,6 +632,7 @@ src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux src/platform/plugins/shared/share @elastic/appex-sharedux +src/platform/plugins/shared/ui_actions @elastic/appex-sharedux src/platform/plugins/shared/ui_actions_enhanced @elastic/appex-sharedux src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/bfetch @elastic/appex-sharedux @@ -681,7 +682,6 @@ src/plugins/saved_search @elastic/kibana-data-discovery src/plugins/telemetry @elastic/kibana-core 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/unified_doc_viewer @elastic/kibana-data-discovery src/plugins/unified_histogram @elastic/kibana-data-discovery src/plugins/unified_search @elastic/kibana-visualizations diff --git a/.i18nrc.json b/.i18nrc.json index a58d29dbc35a0..1bbde02214c10 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -140,7 +140,7 @@ "telemetry": ["src/plugins/telemetry", "src/plugins/telemetry_management_section"], "timelion": ["src/plugins/vis_types/timelion"], "tryInConsole": "packages/kbn-try-in-console/", - "uiActions": ["src/plugins/ui_actions", "packages/kbn-ui-actions-browser"], + "uiActions": ["src/platform/plugins/shared/ui_actions", "packages/kbn-ui-actions-browser"], "uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced", "uiActionsExamples": "examples/ui_action_examples", "usageCollection": "src/plugins/usage_collection", diff --git a/docs/developer/best-practices/index.asciidoc b/docs/developer/best-practices/index.asciidoc index a2386799b49e5..856c3a753e8cb 100644 --- a/docs/developer/best-practices/index.asciidoc +++ b/docs/developer/best-practices/index.asciidoc @@ -82,7 +82,7 @@ right advanced settings like whether to include frozen indices or not. ** Rendering maps, visualizations, dashboards in your application ** Register new widgets that will can be added to a dashboard or Canvas workpad, or rendered in another plugin. -* {kib-repo}tree/{branch}/src/plugins/ui_actions/README.asciidoc[UiActions] +* {kib-repo}tree/{branch}/src/platform/plugins/shared/ui_actions/README.asciidoc[UiActions] ** Let other plugins inject functionality into your application ** Inject custom functionality into other plugins * Stateless helper utilities diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index d5465a38bc24f..7a72cb39ace14 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -986,7 +986,7 @@ in their infrastructure. include::{kibana-root}/src/plugins/dashboard/README.asciidoc[leveloffset=+1] include::{kibana-root}/src/plugins/expressions/README.asciidoc[leveloffset=+1] -include::{kibana-root}/src/plugins/ui_actions/README.asciidoc[leveloffset=+1] +include::{kibana-root}/src/platform/plugins/shared/ui_actions/README.asciidoc[leveloffset=+1] include::{kibana-root}/x-pack/plugins/dashboard_enhanced/README.asciidoc[leveloffset=+1] include::{kibana-root}/x-pack/plugins/embeddable_enhanced/README.asciidoc[leveloffset=+1] include::{kibana-root}/x-pack/platform/plugins/private/translations/README.asciidoc[leveloffset=+1] diff --git a/package.json b/package.json index 5a178f131ca04..ab46f6840e94c 100644 --- a/package.json +++ b/package.json @@ -978,7 +978,7 @@ "@kbn/ui-actions-enhanced-plugin": "link:src/platform/plugins/shared/ui_actions_enhanced", "@kbn/ui-actions-examples-plugin": "link:examples/ui_action_examples", "@kbn/ui-actions-explorer-plugin": "link:examples/ui_actions_explorer", - "@kbn/ui-actions-plugin": "link:src/plugins/ui_actions", + "@kbn/ui-actions-plugin": "link:src/platform/plugins/shared/ui_actions", "@kbn/ui-settings-plugin": "link:test/plugin_functional/plugins/ui_settings_plugin", "@kbn/ui-shared-deps-npm": "link:packages/kbn-ui-shared-deps-npm", "@kbn/ui-shared-deps-src": "link:packages/kbn-ui-shared-deps-src", diff --git a/src/plugins/ui_actions/README.asciidoc b/src/platform/plugins/shared/ui_actions/README.asciidoc similarity index 100% rename from src/plugins/ui_actions/README.asciidoc rename to src/platform/plugins/shared/ui_actions/README.asciidoc diff --git a/src/plugins/ui_actions/jest.config.js b/src/platform/plugins/shared/ui_actions/jest.config.js similarity index 73% rename from src/plugins/ui_actions/jest.config.js rename to src/platform/plugins/shared/ui_actions/jest.config.js index db8ed6f87871d..accead5bed120 100644 --- a/src/plugins/ui_actions/jest.config.js +++ b/src/platform/plugins/shared/ui_actions/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/ui_actions'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/ui_actions', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/ui_actions'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/ui_actions', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/ui_actions/public/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/ui_actions/public/**/*.{ts,tsx}'], }; diff --git a/src/plugins/ui_actions/kibana.jsonc b/src/platform/plugins/shared/ui_actions/kibana.jsonc similarity index 100% rename from src/plugins/ui_actions/kibana.jsonc rename to src/platform/plugins/shared/ui_actions/kibana.jsonc diff --git a/src/plugins/ui_actions/public/actions/action.test.ts b/src/platform/plugins/shared/ui_actions/public/actions/action.test.ts similarity index 100% rename from src/plugins/ui_actions/public/actions/action.test.ts rename to src/platform/plugins/shared/ui_actions/public/actions/action.test.ts diff --git a/src/plugins/ui_actions/public/actions/action.ts b/src/platform/plugins/shared/ui_actions/public/actions/action.ts similarity index 100% rename from src/plugins/ui_actions/public/actions/action.ts rename to src/platform/plugins/shared/ui_actions/public/actions/action.ts diff --git a/src/plugins/ui_actions/public/actions/action_internal.test.ts b/src/platform/plugins/shared/ui_actions/public/actions/action_internal.test.ts similarity index 100% rename from src/plugins/ui_actions/public/actions/action_internal.test.ts rename to src/platform/plugins/shared/ui_actions/public/actions/action_internal.test.ts diff --git a/src/plugins/ui_actions/public/actions/action_internal.ts b/src/platform/plugins/shared/ui_actions/public/actions/action_internal.ts similarity index 100% rename from src/plugins/ui_actions/public/actions/action_internal.ts rename to src/platform/plugins/shared/ui_actions/public/actions/action_internal.ts diff --git a/src/plugins/ui_actions/public/actions/create_action.ts b/src/platform/plugins/shared/ui_actions/public/actions/create_action.ts similarity index 100% rename from src/plugins/ui_actions/public/actions/create_action.ts rename to src/platform/plugins/shared/ui_actions/public/actions/create_action.ts diff --git a/src/plugins/ui_actions/public/actions/incompatible_action_error.ts b/src/platform/plugins/shared/ui_actions/public/actions/incompatible_action_error.ts similarity index 100% rename from src/plugins/ui_actions/public/actions/incompatible_action_error.ts rename to src/platform/plugins/shared/ui_actions/public/actions/incompatible_action_error.ts diff --git a/src/plugins/ui_actions/public/actions/index.ts b/src/platform/plugins/shared/ui_actions/public/actions/index.ts similarity index 100% rename from src/plugins/ui_actions/public/actions/index.ts rename to src/platform/plugins/shared/ui_actions/public/actions/index.ts diff --git a/src/plugins/ui_actions/public/context_menu/build_eui_context_menu_panels.test.ts b/src/platform/plugins/shared/ui_actions/public/context_menu/build_eui_context_menu_panels.test.ts similarity index 100% rename from src/plugins/ui_actions/public/context_menu/build_eui_context_menu_panels.test.ts rename to src/platform/plugins/shared/ui_actions/public/context_menu/build_eui_context_menu_panels.test.ts diff --git a/src/plugins/ui_actions/public/context_menu/build_eui_context_menu_panels.tsx b/src/platform/plugins/shared/ui_actions/public/context_menu/build_eui_context_menu_panels.tsx similarity index 100% rename from src/plugins/ui_actions/public/context_menu/build_eui_context_menu_panels.tsx rename to src/platform/plugins/shared/ui_actions/public/context_menu/build_eui_context_menu_panels.tsx diff --git a/src/plugins/ui_actions/public/context_menu/index.ts b/src/platform/plugins/shared/ui_actions/public/context_menu/index.ts similarity index 100% rename from src/plugins/ui_actions/public/context_menu/index.ts rename to src/platform/plugins/shared/ui_actions/public/context_menu/index.ts diff --git a/src/plugins/ui_actions/public/context_menu/open_context_menu.test.ts b/src/platform/plugins/shared/ui_actions/public/context_menu/open_context_menu.test.ts similarity index 100% rename from src/plugins/ui_actions/public/context_menu/open_context_menu.test.ts rename to src/platform/plugins/shared/ui_actions/public/context_menu/open_context_menu.test.ts diff --git a/src/plugins/ui_actions/public/context_menu/open_context_menu.tsx b/src/platform/plugins/shared/ui_actions/public/context_menu/open_context_menu.tsx similarity index 100% rename from src/plugins/ui_actions/public/context_menu/open_context_menu.tsx rename to src/platform/plugins/shared/ui_actions/public/context_menu/open_context_menu.tsx diff --git a/src/plugins/ui_actions/public/index.ts b/src/platform/plugins/shared/ui_actions/public/index.ts similarity index 100% rename from src/plugins/ui_actions/public/index.ts rename to src/platform/plugins/shared/ui_actions/public/index.ts diff --git a/src/plugins/ui_actions/public/mocks.ts b/src/platform/plugins/shared/ui_actions/public/mocks.ts similarity index 100% rename from src/plugins/ui_actions/public/mocks.ts rename to src/platform/plugins/shared/ui_actions/public/mocks.ts diff --git a/src/plugins/ui_actions/public/plugin.ts b/src/platform/plugins/shared/ui_actions/public/plugin.ts similarity index 100% rename from src/plugins/ui_actions/public/plugin.ts rename to src/platform/plugins/shared/ui_actions/public/plugin.ts diff --git a/src/plugins/ui_actions/public/service/index.ts b/src/platform/plugins/shared/ui_actions/public/service/index.ts similarity index 100% rename from src/plugins/ui_actions/public/service/index.ts rename to src/platform/plugins/shared/ui_actions/public/service/index.ts diff --git a/src/plugins/ui_actions/public/service/ui_actions_execution_service.ts b/src/platform/plugins/shared/ui_actions/public/service/ui_actions_execution_service.ts similarity index 100% rename from src/plugins/ui_actions/public/service/ui_actions_execution_service.ts rename to src/platform/plugins/shared/ui_actions/public/service/ui_actions_execution_service.ts diff --git a/src/plugins/ui_actions/public/service/ui_actions_service.test.ts b/src/platform/plugins/shared/ui_actions/public/service/ui_actions_service.test.ts similarity index 100% rename from src/plugins/ui_actions/public/service/ui_actions_service.test.ts rename to src/platform/plugins/shared/ui_actions/public/service/ui_actions_service.test.ts diff --git a/src/plugins/ui_actions/public/service/ui_actions_service.ts b/src/platform/plugins/shared/ui_actions/public/service/ui_actions_service.ts similarity index 100% rename from src/plugins/ui_actions/public/service/ui_actions_service.ts rename to src/platform/plugins/shared/ui_actions/public/service/ui_actions_service.ts diff --git a/src/plugins/ui_actions/public/services.ts b/src/platform/plugins/shared/ui_actions/public/services.ts similarity index 100% rename from src/plugins/ui_actions/public/services.ts rename to src/platform/plugins/shared/ui_actions/public/services.ts diff --git a/src/plugins/ui_actions/public/tests/README.md b/src/platform/plugins/shared/ui_actions/public/tests/README.md similarity index 100% rename from src/plugins/ui_actions/public/tests/README.md rename to src/platform/plugins/shared/ui_actions/public/tests/README.md diff --git a/src/plugins/ui_actions/public/tests/execute_trigger_actions.test.ts b/src/platform/plugins/shared/ui_actions/public/tests/execute_trigger_actions.test.ts similarity index 100% rename from src/plugins/ui_actions/public/tests/execute_trigger_actions.test.ts rename to src/platform/plugins/shared/ui_actions/public/tests/execute_trigger_actions.test.ts diff --git a/src/plugins/ui_actions/public/tests/get_trigger_actions.test.ts b/src/platform/plugins/shared/ui_actions/public/tests/get_trigger_actions.test.ts similarity index 100% rename from src/plugins/ui_actions/public/tests/get_trigger_actions.test.ts rename to src/platform/plugins/shared/ui_actions/public/tests/get_trigger_actions.test.ts diff --git a/src/plugins/ui_actions/public/tests/get_trigger_compatible_actions.test.ts b/src/platform/plugins/shared/ui_actions/public/tests/get_trigger_compatible_actions.test.ts similarity index 100% rename from src/plugins/ui_actions/public/tests/get_trigger_compatible_actions.test.ts rename to src/platform/plugins/shared/ui_actions/public/tests/get_trigger_compatible_actions.test.ts diff --git a/src/plugins/ui_actions/public/tests/index.ts b/src/platform/plugins/shared/ui_actions/public/tests/index.ts similarity index 100% rename from src/plugins/ui_actions/public/tests/index.ts rename to src/platform/plugins/shared/ui_actions/public/tests/index.ts diff --git a/src/plugins/ui_actions/public/tests/test_samples/hello_world_action.tsx b/src/platform/plugins/shared/ui_actions/public/tests/test_samples/hello_world_action.tsx similarity index 100% rename from src/plugins/ui_actions/public/tests/test_samples/hello_world_action.tsx rename to src/platform/plugins/shared/ui_actions/public/tests/test_samples/hello_world_action.tsx diff --git a/src/plugins/ui_actions/public/tests/test_samples/index.ts b/src/platform/plugins/shared/ui_actions/public/tests/test_samples/index.ts similarity index 100% rename from src/plugins/ui_actions/public/tests/test_samples/index.ts rename to src/platform/plugins/shared/ui_actions/public/tests/test_samples/index.ts diff --git a/src/plugins/ui_actions/public/triggers/index.ts b/src/platform/plugins/shared/ui_actions/public/triggers/index.ts similarity index 100% rename from src/plugins/ui_actions/public/triggers/index.ts rename to src/platform/plugins/shared/ui_actions/public/triggers/index.ts diff --git a/src/plugins/ui_actions/public/triggers/trigger_contract.ts b/src/platform/plugins/shared/ui_actions/public/triggers/trigger_contract.ts similarity index 100% rename from src/plugins/ui_actions/public/triggers/trigger_contract.ts rename to src/platform/plugins/shared/ui_actions/public/triggers/trigger_contract.ts diff --git a/src/plugins/ui_actions/public/triggers/trigger_internal.ts b/src/platform/plugins/shared/ui_actions/public/triggers/trigger_internal.ts similarity index 100% rename from src/plugins/ui_actions/public/triggers/trigger_internal.ts rename to src/platform/plugins/shared/ui_actions/public/triggers/trigger_internal.ts diff --git a/src/plugins/ui_actions/public/types.ts b/src/platform/plugins/shared/ui_actions/public/types.ts similarity index 100% rename from src/plugins/ui_actions/public/types.ts rename to src/platform/plugins/shared/ui_actions/public/types.ts diff --git a/src/plugins/ui_actions/tsconfig.json b/src/platform/plugins/shared/ui_actions/tsconfig.json similarity index 89% rename from src/plugins/ui_actions/tsconfig.json rename to src/platform/plugins/shared/ui_actions/tsconfig.json index 4601d4b2732e1..0363fbbeb0d7b 100644 --- a/src/plugins/ui_actions/tsconfig.json +++ b/src/platform/plugins/shared/ui_actions/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 8ee2a3112ff99..ed54e0bc98e24 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1970,8 +1970,8 @@ "@kbn/ui-actions-examples-plugin/*": ["examples/ui_action_examples/*"], "@kbn/ui-actions-explorer-plugin": ["examples/ui_actions_explorer"], "@kbn/ui-actions-explorer-plugin/*": ["examples/ui_actions_explorer/*"], - "@kbn/ui-actions-plugin": ["src/plugins/ui_actions"], - "@kbn/ui-actions-plugin/*": ["src/plugins/ui_actions/*"], + "@kbn/ui-actions-plugin": ["src/platform/plugins/shared/ui_actions"], + "@kbn/ui-actions-plugin/*": ["src/platform/plugins/shared/ui_actions/*"], "@kbn/ui-settings-plugin": ["test/plugin_functional/plugins/ui_settings_plugin"], "@kbn/ui-settings-plugin/*": ["test/plugin_functional/plugins/ui_settings_plugin/*"], "@kbn/ui-shared-deps-npm": ["packages/kbn-ui-shared-deps-npm"], diff --git a/yarn.lock b/yarn.lock index c09f24f46f2d4..9723b2ad3b662 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7757,7 +7757,7 @@ version "0.0.0" uid "" -"@kbn/ui-actions-plugin@link:src/plugins/ui_actions": +"@kbn/ui-actions-plugin@link:src/platform/plugins/shared/ui_actions": version "0.0.0" uid "" From d762d8210462a002121bb8d70b98c8d643daa5a3 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:00:13 +0000 Subject: [PATCH 26/43] [CI] Auto-commit changed files from 'node scripts/telemetry_check' --- .../telemetry/schema/oss_platform.json | 108 +++++++++++++++++- src/plugins/telemetry/schema/oss_plugins.json | 105 ----------------- .../schema/xpack_platform.json | 104 +++++++++++++++++ .../schema/xpack_plugins.json | 104 ----------------- 4 files changed, 211 insertions(+), 210 deletions(-) diff --git a/src/plugins/telemetry/schema/oss_platform.json b/src/plugins/telemetry/schema/oss_platform.json index d5b0514b64918..ef5256fb96558 100644 --- a/src/plugins/telemetry/schema/oss_platform.json +++ b/src/plugins/telemetry/schema/oss_platform.json @@ -1,3 +1,109 @@ { - "properties": {} + "properties": { + "files": { + "properties": { + "countByExtension": { + "type": "array", + "items": { + "properties": { + "extension": { + "type": "keyword" + }, + "count": { + "type": "long" + } + } + } + }, + "countByStatus": { + "properties": { + "AWAITING_UPLOAD": { + "type": "long", + "_meta": { + "description": "Number of files awaiting upload" + } + }, + "DELETED": { + "type": "long", + "_meta": { + "description": "Number of files that are marked as deleted" + } + }, + "READY": { + "type": "long", + "_meta": { + "description": "Number of files that are ready for download" + } + }, + "UPLOADING": { + "type": "long", + "_meta": { + "description": "Number of files that are currently uploading" + } + }, + "UPLOAD_ERROR": { + "type": "long", + "_meta": { + "description": "Number of files that failed to upload" + } + } + } + }, + "storage": { + "properties": { + "esFixedSizeIndex": { + "properties": { + "capacity": { + "type": "long", + "_meta": { + "description": "Capacity of the fixed size index" + } + }, + "available": { + "type": "long", + "_meta": { + "description": "Available storage in bytes" + } + }, + "used": { + "type": "long", + "_meta": { + "description": "Used storage in bytes" + } + } + } + } + } + } + } + }, + "sample-data": { + "properties": { + "installed": { + "type": "array", + "items": { + "type": "keyword" + } + }, + "last_install_date": { + "type": "date" + }, + "last_install_set": { + "type": "keyword" + }, + "last_uninstall_date": { + "type": "date" + }, + "last_uninstall_set": { + "type": "keyword" + }, + "uninstalled": { + "type": "array", + "items": { + "type": "keyword" + } + } + } + } + } } diff --git a/src/plugins/telemetry/schema/oss_plugins.json b/src/plugins/telemetry/schema/oss_plugins.json index 2fb6314a348b9..daae396c84a90 100644 --- a/src/plugins/telemetry/schema/oss_plugins.json +++ b/src/plugins/telemetry/schema/oss_plugins.json @@ -9927,83 +9927,6 @@ } } }, - "files": { - "properties": { - "countByExtension": { - "type": "array", - "items": { - "properties": { - "extension": { - "type": "keyword" - }, - "count": { - "type": "long" - } - } - } - }, - "countByStatus": { - "properties": { - "AWAITING_UPLOAD": { - "type": "long", - "_meta": { - "description": "Number of files awaiting upload" - } - }, - "DELETED": { - "type": "long", - "_meta": { - "description": "Number of files that are marked as deleted" - } - }, - "READY": { - "type": "long", - "_meta": { - "description": "Number of files that are ready for download" - } - }, - "UPLOADING": { - "type": "long", - "_meta": { - "description": "Number of files that are currently uploading" - } - }, - "UPLOAD_ERROR": { - "type": "long", - "_meta": { - "description": "Number of files that failed to upload" - } - } - } - }, - "storage": { - "properties": { - "esFixedSizeIndex": { - "properties": { - "capacity": { - "type": "long", - "_meta": { - "description": "Capacity of the fixed size index" - } - }, - "available": { - "type": "long", - "_meta": { - "description": "Available storage in bytes" - } - }, - "used": { - "type": "long", - "_meta": { - "description": "Used storage in bytes" - } - } - } - } - } - } - } - }, "index-patterns": { "properties": { "indexPatternsCount": { @@ -10178,34 +10101,6 @@ } } }, - "sample-data": { - "properties": { - "installed": { - "type": "array", - "items": { - "type": "keyword" - } - }, - "last_install_date": { - "type": "date" - }, - "last_install_set": { - "type": "keyword" - }, - "last_uninstall_date": { - "type": "date" - }, - "last_uninstall_set": { - "type": "keyword" - }, - "uninstalled": { - "type": "array", - "items": { - "type": "keyword" - } - } - } - }, "saved_objects_counts": { "properties": { "total": { 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 c5371a8815aef..d84fe1e00d97c 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json +++ b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json @@ -66,6 +66,16 @@ } } }, + "reporting": { + "properties": { + "available": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + } + } + }, "rollups": { "properties": { "index_patterns": { @@ -122,6 +132,100 @@ } } }, + "saved_objects_tagging": { + "properties": { + "usedTags": { + "type": "integer" + }, + "taggedObjects": { + "type": "integer" + }, + "types": { + "properties": { + "dashboard": { + "properties": { + "usedTags": { + "type": "integer" + }, + "taggedObjects": { + "type": "integer" + } + } + }, + "lens": { + "properties": { + "usedTags": { + "type": "integer" + }, + "taggedObjects": { + "type": "integer" + } + } + }, + "visualization": { + "properties": { + "usedTags": { + "type": "integer" + }, + "taggedObjects": { + "type": "integer" + } + } + }, + "map": { + "properties": { + "usedTags": { + "type": "integer" + }, + "taggedObjects": { + "type": "integer" + } + } + }, + "search": { + "properties": { + "usedTags": { + "type": "integer" + }, + "taggedObjects": { + "type": "integer" + } + } + }, + "osquery-pack": { + "properties": { + "usedTags": { + "type": "integer" + }, + "taggedObjects": { + "type": "integer" + } + } + }, + "osquery-pack-asset": { + "properties": { + "usedTags": { + "type": "integer" + }, + "taggedObjects": { + "type": "integer" + } + } + }, + "osquery-saved-query": { + "properties": { + "usedTags": { + "type": "integer" + }, + "taggedObjects": { + "type": "integer" + } + } + } + } + } + } + }, "transform": { "properties": { "alertRules": { 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 b2870f3ef4809..d5a45b025bea0 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json +++ b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @@ -14119,110 +14119,6 @@ } } }, - "reporting": { - "properties": { - "available": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - } - } - }, - "saved_objects_tagging": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - }, - "types": { - "properties": { - "dashboard": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "lens": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "visualization": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "map": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "search": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "osquery-pack": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "osquery-pack-asset": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "osquery-saved-query": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - } - } - } - } - }, "security": { "properties": { "auditLoggingEnabled": { From fd501dbd981ec9c2a1aec72b4bfa7eaf041af6a2 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 16:23:46 +0100 Subject: [PATCH 27/43] post merge --- .../public/components/overview/overview.scss | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/src/platform/plugins/private/kibana_overview/public/components/overview/overview.scss b/src/platform/plugins/private/kibana_overview/public/components/overview/overview.scss index e69de29bb2d1d..10b4b5a099dab 100644 --- a/src/platform/plugins/private/kibana_overview/public/components/overview/overview.scss +++ b/src/platform/plugins/private/kibana_overview/public/components/overview/overview.scss @@ -0,0 +1,84 @@ +.kbnOverviewApps__item { + .kbnOverviewApps__group--primary & { + @include euiBreakpoint('m', 'l', 'xl') { + max-width: calc(50% - #{$euiSizeM * 2}); + } + } + + .kbnOverviewApps__group--secondary & { + @include euiBreakpoint('m', 'l', 'xl') { + max-width: calc(25% - #{$euiSizeM * 2}); + } + } +} + +.kbnOverviewNews__content article { + & + article { + margin-top: $euiSizeL; + } + + &, + header { + & > * + * { + margin-top: $euiSizeXS; + } + } + + h3 { + font-weight: inherit; + } +} + +.kbnOverviewMore__item { + @include euiBreakpoint('m', 'l', 'xl') { + max-width: calc(33.333333333333333% - #{$euiSizeM * 2}); + } +} + +.kbnOverviewSolution { + &.enterpriseSearch { + .euiCard__image { + background-color: $euiColorWarning; + } + } + &.observability { + .euiCard__image { + background-color: $euiColorAccent; + } + } + &.securitySolution { + .euiCard__image { + background-color: $euiColorAccentSecondary; + } + } +} + +.kbnOverviewSupplements--noNews .kbnOverviewMore { + h2 { + @include euiBreakpoint('m', 'l', 'xl') { + text-align: center; + } + } + + .kbnOverviewMore__content { + @include euiBreakpoint('m', 'l', 'xl') { + justify-content: center; + } + } +} + +.kbnOverviewData--expanded { + flex-direction: column; + + &, + & > * { + margin-bottom: 0 !important; + margin-top: 0 !important; + } +} + +.kbnOverviewDataManage__item:not(:only-child) { + @include euiBreakpoint('m', 'l', 'xl') { + flex: 0 0 calc(50% - #{$euiSizeM * 2}); + } +} From bde8945d2c502634917cbed20094248dc517240c Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 19 Dec 2024 17:15:39 +0100 Subject: [PATCH 28/43] lint --- .../ingest_coverage/__tests__/transforms.test.js | 3 ++- .../plugins/private/image_embeddable/jest.config.js | 3 ++- .../plugins/private/kibana_overview/jest.config.js | 7 +++++-- src/platform/plugins/private/no_data_page/jest.config.js | 7 +++++-- .../plugins/shared/content_management/jest.config.js | 3 ++- src/platform/plugins/shared/files/jest.config.js | 4 +++- .../plugins/shared/guided_onboarding/jest.config.js | 3 ++- src/platform/plugins/shared/home/.storybook/main.ts | 5 ++++- src/platform/plugins/shared/home/jest.config.js | 4 +++- .../services/sample_data/data_sets/logs_tsdb/index.ts | 3 ++- .../plugins/shared/kibana_react/.storybook/manager.ts | 3 ++- src/platform/plugins/shared/kibana_react/jest.config.js | 7 +++++-- src/platform/plugins/shared/kibana_utils/jest.config.js | 3 ++- src/platform/plugins/shared/saved_objects/jest.config.js | 7 +++++-- .../shared/saved_objects_tagging_oss/jest.config.js | 3 ++- src/platform/plugins/shared/screenshot_mode/jest.config.js | 3 ++- src/platform/plugins/shared/share/jest.config.js | 4 +++- .../plugins/shared/ui_actions_enhanced/jest.config.js | 3 ++- .../public/legacy/embeddable/visualize_embeddable.tsx | 6 +----- .../plugins/private/global_search_bar/jest.config.js | 7 +++++-- .../plugins/private/global_search_providers/jest.config.js | 3 ++- x-pack/platform/plugins/private/reporting/jest.config.js | 3 ++- .../plugins/private/saved_objects_tagging/jest.config.js | 3 ++- .../platform/plugins/shared/global_search/jest.config.js | 3 ++- .../platform/plugins/shared/notifications/jest.config.js | 7 +++++-- x-pack/platform/plugins/shared/serverless/jest.config.js | 7 +++++-- 26 files changed, 77 insertions(+), 37 deletions(-) diff --git a/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js b/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js index 3bf836c883068..4838717b1c5b1 100644 --- a/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js +++ b/src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js @@ -83,7 +83,8 @@ describe(`Transform fns`, () => { describe(`teamAssignment`, () => { const teamAssignmentsPathMOCK = 'src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt'; - const coveredFilePath = 'x-pack/platform/plugins/private/reporting/server/browsers/extract/unzip.ts'; + const coveredFilePath = + 'x-pack/platform/plugins/private/reporting/server/browsers/extract/unzip.ts'; const obj = { coveredFilePath }; const log = new ToolingLog({ level: 'info', diff --git a/src/platform/plugins/private/image_embeddable/jest.config.js b/src/platform/plugins/private/image_embeddable/jest.config.js index d829930e98019..1cf85166b27b7 100644 --- a/src/platform/plugins/private/image_embeddable/jest.config.js +++ b/src/platform/plugins/private/image_embeddable/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/image_embeddable'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/image_embeddable', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/image_embeddable', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/image_embeddable/{__packages_do_not_import__,common,public,server,static}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/private/kibana_overview/jest.config.js b/src/platform/plugins/private/kibana_overview/jest.config.js index 853f861780721..ce45e6134eecc 100644 --- a/src/platform/plugins/private/kibana_overview/jest.config.js +++ b/src/platform/plugins/private/kibana_overview/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/kibana_overview'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/kibana_overview', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/kibana_overview', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/kibana_overview/{common,public}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/kibana_overview/{common,public}/**/*.{js,ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/no_data_page/jest.config.js b/src/platform/plugins/private/no_data_page/jest.config.js index af20a2afa1e33..01fcc03c29276 100644 --- a/src/platform/plugins/private/no_data_page/jest.config.js +++ b/src/platform/plugins/private/no_data_page/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/no_data_page'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/no_data_page', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/no_data_page', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/no_data_page/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/no_data_page/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/content_management/jest.config.js b/src/platform/plugins/shared/content_management/jest.config.js index 300a0450c4bfd..6e2d77aea5bef 100644 --- a/src/platform/plugins/shared/content_management/jest.config.js +++ b/src/platform/plugins/shared/content_management/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/content_management'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/content_management', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/content_management', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/content_management/{common,public,server}/**/*.{js,ts,tsx}', diff --git a/src/platform/plugins/shared/files/jest.config.js b/src/platform/plugins/shared/files/jest.config.js index c9c62707c498f..c6fc47eddfe5e 100644 --- a/src/platform/plugins/shared/files/jest.config.js +++ b/src/platform/plugins/shared/files/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/shared/files'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/files', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/files/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/files/{common,public,server}/**/*.{js,ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/guided_onboarding/jest.config.js b/src/platform/plugins/shared/guided_onboarding/jest.config.js index d09dca92f008a..4a255b510e03e 100644 --- a/src/platform/plugins/shared/guided_onboarding/jest.config.js +++ b/src/platform/plugins/shared/guided_onboarding/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/guided_onboarding'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/guided_onboarding', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/guided_onboarding', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/guided_onboarding/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/home/.storybook/main.ts b/src/platform/plugins/shared/home/.storybook/main.ts index 81a40a55685bd..dcf2d844567bd 100644 --- a/src/platform/plugins/shared/home/.storybook/main.ts +++ b/src/platform/plugins/shared/home/.storybook/main.ts @@ -11,7 +11,10 @@ import { defaultConfig } from '@kbn/storybook'; module.exports = { ...defaultConfig, - stories: ['../../../../../../packages/home/**/*.stories.+(tsx|mdx)', '../**/*.stories.+(tsx|mdx)'], + stories: [ + '../../../../../../packages/home/**/*.stories.+(tsx|mdx)', + '../**/*.stories.+(tsx|mdx)', + ], reactOptions: { strictMode: true, }, diff --git a/src/platform/plugins/shared/home/jest.config.js b/src/platform/plugins/shared/home/jest.config.js index 2ae90c477d305..f4882f3e194d7 100644 --- a/src/platform/plugins/shared/home/jest.config.js +++ b/src/platform/plugins/shared/home/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/shared/home'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/home', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/home/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/home/{common,public,server}/**/*.{js,ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/index.ts index 8a43f31a37b78..2c5ba6c2b3cb8 100644 --- a/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/index.ts +++ b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs_tsdb/index.ts @@ -20,7 +20,8 @@ const logsDescription = i18n.translate('home.sampleData.logsTsdbSpecDescription' defaultMessage: 'Sample data, visualizations, and dashboards for monitoring web logs.', }); -export const GLOBE_ICON_PATH = '/platform/plugins/shared/home/assets/sample_data_resources/logs/icon.svg'; +export const GLOBE_ICON_PATH = + '/platform/plugins/shared/home/assets/sample_data_resources/logs/icon.svg'; export const logsTSDBSpecProvider: SampleDatasetProvider = ({ staticAssets }) => { const startDate = new Date(); const endDate = new Date(); diff --git a/src/platform/plugins/shared/kibana_react/.storybook/manager.ts b/src/platform/plugins/shared/kibana_react/.storybook/manager.ts index fd3c2c6b73c28..7c27b5829189c 100644 --- a/src/platform/plugins/shared/kibana_react/.storybook/manager.ts +++ b/src/platform/plugins/shared/kibana_react/.storybook/manager.ts @@ -15,7 +15,8 @@ addons.setConfig({ theme: create({ base: 'light', brandTitle: 'Kibana React Storybook', - brandUrl: 'https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_react', + brandUrl: + 'https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/kibana_react', }), showPanel: true.valueOf, selectedPanel: PANEL_ID, diff --git a/src/platform/plugins/shared/kibana_react/jest.config.js b/src/platform/plugins/shared/kibana_react/jest.config.js index 84ba6e298236e..9a486c935643c 100644 --- a/src/platform/plugins/shared/kibana_react/jest.config.js +++ b/src/platform/plugins/shared/kibana_react/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/kibana_react'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/kibana_react', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/kibana_react', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/kibana_react/{common,public}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/kibana_react/{common,public}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/kibana_utils/jest.config.js b/src/platform/plugins/shared/kibana_utils/jest.config.js index 9c91821ef6a93..89042a06758c7 100644 --- a/src/platform/plugins/shared/kibana_utils/jest.config.js +++ b/src/platform/plugins/shared/kibana_utils/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/kibana_utils'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/kibana_utils', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/kibana_utils', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/kibana_utils/{common,demos,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/saved_objects/jest.config.js b/src/platform/plugins/shared/saved_objects/jest.config.js index 1ad32bb49a9eb..5ba3aff7e4e58 100644 --- a/src/platform/plugins/shared/saved_objects/jest.config.js +++ b/src/platform/plugins/shared/saved_objects/jest.config.js @@ -11,7 +11,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/saved_objects'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/saved_objects/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/saved_objects/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/saved_objects_tagging_oss/jest.config.js b/src/platform/plugins/shared/saved_objects_tagging_oss/jest.config.js index db60e36e56158..3f5e638b7f9ad 100644 --- a/src/platform/plugins/shared/saved_objects_tagging_oss/jest.config.js +++ b/src/platform/plugins/shared/saved_objects_tagging_oss/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/saved_objects_tagging_oss'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects_tagging_oss', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects_tagging_oss', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/saved_objects_tagging_oss/{common,public}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/screenshot_mode/jest.config.js b/src/platform/plugins/shared/screenshot_mode/jest.config.js index 0f9bdfca7ae4b..ce3f8efb23429 100644 --- a/src/platform/plugins/shared/screenshot_mode/jest.config.js +++ b/src/platform/plugins/shared/screenshot_mode/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/screenshot_mode'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/screenshot_mode', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/screenshot_mode', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/screenshot_mode/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/share/jest.config.js b/src/platform/plugins/shared/share/jest.config.js index 257e45c3a7a5c..5d13a6d1bba63 100644 --- a/src/platform/plugins/shared/share/jest.config.js +++ b/src/platform/plugins/shared/share/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/shared/share'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/share', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/share/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/share/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/ui_actions_enhanced/jest.config.js b/src/platform/plugins/shared/ui_actions_enhanced/jest.config.js index d16049475f145..d7ead1ade8afb 100644 --- a/src/platform/plugins/shared/ui_actions_enhanced/jest.config.js +++ b/src/platform/plugins/shared/ui_actions_enhanced/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/ui_actions_enhanced'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/ui_actions_enhanced', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/ui_actions_enhanced', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/ui_actions_enhanced/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx b/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx index e343fd535a85e..1f631f30f8eb5 100644 --- a/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx +++ b/src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx @@ -22,11 +22,7 @@ import type { DataView } from '@kbn/data-views-plugin/public'; import { Warnings } from '@kbn/charts-plugin/public'; import { hasUnsupportedDownsampledAggregationFailure } from '@kbn/search-response-warnings'; import { Adapters } from '@kbn/inspector-plugin/public'; -import { - Embeddable, - EmbeddableInput, - EmbeddableOutput, -} from '@kbn/embeddable-plugin/public'; +import { Embeddable, EmbeddableInput, EmbeddableOutput } from '@kbn/embeddable-plugin/public'; import { SavedObjectEmbeddableInput } from '@kbn/embeddable-plugin/common'; import { ExpressionAstExpression, diff --git a/x-pack/platform/plugins/private/global_search_bar/jest.config.js b/x-pack/platform/plugins/private/global_search_bar/jest.config.js index 971b25e6a5c30..a3cc6fe2092ac 100644 --- a/x-pack/platform/plugins/private/global_search_bar/jest.config.js +++ b/x-pack/platform/plugins/private/global_search_bar/jest.config.js @@ -9,7 +9,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/private/global_search_bar'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/global_search_bar', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/global_search_bar', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/private/global_search_bar/public/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/private/global_search_bar/public/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/platform/plugins/private/global_search_providers/jest.config.js b/x-pack/platform/plugins/private/global_search_providers/jest.config.js index 6a34afbd4820c..4420e0f426c22 100644 --- a/x-pack/platform/plugins/private/global_search_providers/jest.config.js +++ b/x-pack/platform/plugins/private/global_search_providers/jest.config.js @@ -9,7 +9,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/private/global_search_providers'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/global_search_providers', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/global_search_providers', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/x-pack/platform/plugins/private/global_search_providers/{public,server}/**/*.{ts,tsx}', diff --git a/x-pack/platform/plugins/private/reporting/jest.config.js b/x-pack/platform/plugins/private/reporting/jest.config.js index 45eb58745fc36..790fa6c90c155 100644 --- a/x-pack/platform/plugins/private/reporting/jest.config.js +++ b/x-pack/platform/plugins/private/reporting/jest.config.js @@ -9,7 +9,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/private/reporting'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/reporting', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/reporting', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/x-pack/platform/plugins/private/reporting/{common,public,server}/**/*.{js,ts,tsx}', diff --git a/x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js b/x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js index 5436844bcfd05..c2e776e813317 100644 --- a/x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js +++ b/x-pack/platform/plugins/private/saved_objects_tagging/jest.config.js @@ -9,7 +9,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/private/saved_objects_tagging'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/saved_objects_tagging', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/saved_objects_tagging', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/x-pack/platform/plugins/private/saved_objects_tagging/{common,public,server}/**/*.{ts,tsx}', diff --git a/x-pack/platform/plugins/shared/global_search/jest.config.js b/x-pack/platform/plugins/shared/global_search/jest.config.js index 6bebb174d3ebb..139414e1da85a 100644 --- a/x-pack/platform/plugins/shared/global_search/jest.config.js +++ b/x-pack/platform/plugins/shared/global_search/jest.config.js @@ -9,7 +9,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/shared/global_search'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/global_search', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/global_search', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/x-pack/platform/plugins/shared/global_search/{common,public,server}/**/*.{ts,tsx}', diff --git a/x-pack/platform/plugins/shared/notifications/jest.config.js b/x-pack/platform/plugins/shared/notifications/jest.config.js index f0e6e54f95bca..f6b49b598beba 100644 --- a/x-pack/platform/plugins/shared/notifications/jest.config.js +++ b/x-pack/platform/plugins/shared/notifications/jest.config.js @@ -9,7 +9,10 @@ module.exports = { preset: '@kbn/test/jest_node', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/shared/notifications'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/notifications', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/notifications', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/shared/notifications/{common,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/notifications/{common,server}/**/*.{js,ts,tsx}', + ], }; diff --git a/x-pack/platform/plugins/shared/serverless/jest.config.js b/x-pack/platform/plugins/shared/serverless/jest.config.js index f36a163021a3c..a7a61917fed25 100644 --- a/x-pack/platform/plugins/shared/serverless/jest.config.js +++ b/x-pack/platform/plugins/shared/serverless/jest.config.js @@ -9,7 +9,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/shared/serverless'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/serverless', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/serverless', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/shared/serverless/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/serverless/{common,public,server}/**/*.{ts,tsx}', + ], }; From 2d61407297a0860b5e8d269e7e570630067c1953 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Fri, 20 Dec 2024 12:34:22 +0100 Subject: [PATCH 29/43] fix lint --- .../home/server/services/sample_data/data_sets/logs/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/index.ts b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/index.ts index 37fa0cf959105..844ce888f77ff 100644 --- a/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/index.ts +++ b/src/platform/plugins/shared/home/server/services/sample_data/data_sets/logs/index.ts @@ -20,7 +20,8 @@ const logsDescription = i18n.translate('home.sampleData.logsSpecDescription', { defaultMessage: 'Sample data, visualizations, and dashboards for monitoring web logs.', }); -export const GLOBE_ICON_PATH = '/platform/plugins/shared/home/assets/sample_data_resources/logs/icon.svg'; +export const GLOBE_ICON_PATH = + '/platform/plugins/shared/home/assets/sample_data_resources/logs/icon.svg'; export const logsSpecProvider: SampleDatasetProvider = ({ staticAssets }) => { return { id: 'logs', From b53c74352328048d66d866c2ba25da6403ababcc Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:43:57 +0000 Subject: [PATCH 30/43] [CI] Auto-commit changed files from 'node scripts/generate codeowners' --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5d03559fa475c..1679af554e9e3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -863,8 +863,8 @@ x-pack/platform/plugins/shared/data_quality @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/dataset_quality @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/platform/plugins/shared/fields_metadata @elastic/obs-ux-logs-team -x-pack/platform/plugins/shared/index_management @elastic/kibana-management x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux +x-pack/platform/plugins/shared/index_management @elastic/kibana-management x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management x-pack/platform/plugins/shared/integration_assistant @elastic/security-scalability From a33985674df9776d1b2ca942cfd17f72a9f0b7ca Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Mon, 23 Dec 2024 12:48:18 +0100 Subject: [PATCH 31/43] fix pipeline.ts --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index b39a859e01732..581b887a36258 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -164,8 +164,8 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ /^x-pack\/platform\/packages\/shared\/ai-infra/, - /^x-pack\/platform\/platform\/plugins\/shared\/shared\/ai_infra/, - /^x-pack\/platform\/platform\/plugins\/shared\/shared\/inference/, + /^x-pack\/platform\/plugins\/shared\/shared\/ai_infra/, + /^x-pack\/platform\/plugins\/shared\/shared\/inference/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/bedrock/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/gemini/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/openai/, From d3fe46a764f909436d6c1c89343631bbf828a24f Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Mon, 23 Dec 2024 12:52:16 +0100 Subject: [PATCH 32/43] fix pipeline.ts --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 581b887a36258..cee2584bb9e7a 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -164,8 +164,8 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ /^x-pack\/platform\/packages\/shared\/ai-infra/, - /^x-pack\/platform\/plugins\/shared\/shared\/ai_infra/, - /^x-pack\/platform\/plugins\/shared\/shared\/inference/, + /^x-pack\/platform\/plugins\/shared\/ai_infra/, + /^x-pack\/platform\/plugins\/shared\/inference/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/bedrock/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/gemini/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/openai/, From 1251c5f448ba41f50b40d5c2c139cd3d7fa67895 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Mon, 23 Dec 2024 12:53:51 +0100 Subject: [PATCH 33/43] fix pipeline.ts --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index cee2584bb9e7a..da4181193908c 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -323,8 +323,8 @@ const getPipeline = (filename: string, removeSteps = true) => { /^src\/plugins\/discover/, /^src\/plugins\/field_formats/, /^src\/plugins\/inspector/, - /^src\/platform\/platform\/plugins\/shared\/shared\/kibana_react/, - /^src\/platform\/platform\/plugins\/shared\/shared\/kibana_utils/, + /^src\/platform\/plugins\/shared\/kibana_react/, + /^src\/platform\/plugins\/shared\/kibana_utils/, /^src\/plugins\/saved_search/, /^src\/platform\/plugins\/shared\/ui_actions/, /^src\/plugins\/unified_histogram/, @@ -358,7 +358,7 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( ((await doAnyChangesMatch([ - /^x-pack\/platform\/platform\/plugins\/shared\/shared\/osquery/, + /^x-pack\/platform\/plugins\/shared\/osquery/, /^x-pack\/test\/osquery_cypress/, /^x-pack\/solutions\/security\/plugins\/security_solution/, ])) || From 17c895cc2166af8fae1f1d7aeedbd12f8361513b Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Mon, 23 Dec 2024 12:59:35 +0100 Subject: [PATCH 34/43] fix i18nrc.json --- .i18nrc.json | 1 - 1 file changed, 1 deletion(-) diff --git a/.i18nrc.json b/.i18nrc.json index cd3d9bfac3af4..8a166e26b9bcb 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -81,7 +81,6 @@ "kbn-esql-validation-autocomplete": "src/platform/packages/shared/kbn-esql-validation-autocomplete/src", "kbnConfig": "packages/kbn-config/src", "kbnDocViews": "src/legacy/core_plugins/kbn_doc_views", - "kibana_react": "src/legacy/core_platform/plugins/shared/kibana_react", "kibana_utils": "src/platform/plugins/shared/kibana_utils", "kibana-react": "src/platform/plugins/shared/kibana_react", "kibanaOverview": "src/platform/plugins/private/kibana_overview", From cac022e29af71b39726ac08df42723cf5bab385d Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Fri, 27 Dec 2024 12:49:35 +0100 Subject: [PATCH 35/43] fix codeowners --- .github/CODEOWNERS | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1083765aba9d6..b1042b64b32c9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -894,9 +894,6 @@ x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops x-pack/platform/plugins/shared/serverless @elastic/appex-sharedux -x-pack/plugins/actions @elastic/response-ops -x-pack/plugins/alerting @elastic/response-ops -x-pack/plugins/banners @elastic/appex-sharedux x-pack/plugins/cloud @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_chat @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_experiments @elastic/kibana-core From c5098df102245b13b80e0b953f992420b8507f6b Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 27 Dec 2024 11:58:08 +0000 Subject: [PATCH 36/43] [CI] Auto-commit changed files from 'node scripts/generate codeowners' --- .github/CODEOWNERS | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b1042b64b32c9..d0400b2579ad9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -608,41 +608,41 @@ src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-ma src/platform/packages/shared/presentation/presentation_containers @elastic/kibana-presentation src/platform/packages/shared/presentation/presentation_publishing @elastic/kibana-presentation src/platform/packages/shared/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management +src/platform/plugins/private/files_management @elastic/appex-sharedux +src/platform/plugins/private/image_embeddable @elastic/appex-sharedux src/platform/plugins/private/input_control_vis @elastic/kibana-presentation +src/platform/plugins/private/kibana_overview @elastic/appex-sharedux src/platform/plugins/private/links @elastic/kibana-presentation src/platform/plugins/private/maps_ems @elastic/kibana-presentation +src/platform/plugins/private/no_data_page @elastic/appex-sharedux src/platform/plugins/private/presentation_panel @elastic/kibana-presentation src/platform/plugins/private/vis_type_markdown @elastic/kibana-presentation -src/platform/plugins/private/files_management @elastic/appex-sharedux -src/platform/plugins/private/image_embeddable @elastic/appex-sharedux -src/platform/plugins/private/kibana_overview @elastic/appex-sharedux -src/platform/plugins/private/no_data_page @elastic/appex-sharedux src/platform/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant src/platform/plugins/shared/console @elastic/kibana-management +src/platform/plugins/shared/content_management @elastic/appex-sharedux 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/content_management @elastic/appex-sharedux src/platform/plugins/shared/dev_tools @elastic/kibana-management 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 src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql -src/platform/plugins/shared/files @elastic/appex-sharedux -src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux -src/platform/plugins/shared/home @elastic/appex-sharedux -src/platform/plugins/shared/kibana_react @elastic/appex-sharedux -src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux src/platform/plugins/shared/expression_error @elastic/kibana-presentation src/platform/plugins/shared/expression_image @elastic/kibana-presentation 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/files @elastic/appex-sharedux +src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux +src/platform/plugins/shared/home @elastic/appex-sharedux src/platform/plugins/shared/inspector @elastic/kibana-presentation +src/platform/plugins/shared/kibana_react @elastic/appex-sharedux +src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management -src/platform/plugins/shared/presentation_util @elastic/kibana-presentation src/platform/plugins/shared/navigation @elastic/appex-sharedux +src/platform/plugins/shared/presentation_util @elastic/kibana-presentation src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux @@ -840,9 +840,9 @@ x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-manage x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux 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/file_upload @elastic/kibana-presentation @elastic/ml-ui x-pack/platform/plugins/private/global_search_bar @elastic/appex-sharedux x-pack/platform/plugins/private/global_search_providers @elastic/appex-sharedux -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 x-pack/platform/plugins/private/license_api_guard @elastic/kibana-management @@ -872,8 +872,8 @@ x-pack/platform/plugins/shared/embeddable_enhanced @elastic/kibana-presentation x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/platform/plugins/shared/event_log @elastic/response-ops x-pack/platform/plugins/shared/fields_metadata @elastic/obs-ux-logs-team -x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux x-pack/platform/plugins/shared/fleet @elastic/fleet +x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux x-pack/platform/plugins/shared/index_management @elastic/kibana-management x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management @@ -889,11 +889,12 @@ x-pack/platform/plugins/shared/osquery @elastic/security-defend-workflows x-pack/platform/plugins/shared/rule_registry @elastic/response-ops @elastic/obs-ux-management-team x-pack/platform/plugins/shared/screenshotting @elastic/kibana-reporting-services x-pack/platform/plugins/shared/searchprofiler @elastic/kibana-management +x-pack/platform/plugins/shared/serverless @elastic/appex-sharedux x-pack/platform/plugins/shared/stack_alerts @elastic/response-ops x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops -x-pack/platform/plugins/shared/serverless @elastic/appex-sharedux +x-pack/plugins/banners @elastic/appex-sharedux x-pack/plugins/cloud @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_chat @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_experiments @elastic/kibana-core From b1244380aaf563682a1f4f3f84367a4d3963224d Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 27 Dec 2024 12:14:03 +0000 Subject: [PATCH 37/43] [CI] Auto-commit changed files from 'node scripts/telemetry_check' --- .../telemetry/schema/oss_platform.json | 182 +++++++++--------- .../schema/xpack_platform.json | 92 ++++----- 2 files changed, 137 insertions(+), 137 deletions(-) diff --git a/src/plugins/telemetry/schema/oss_platform.json b/src/plugins/telemetry/schema/oss_platform.json index 11d3d70c10183..9b59cf4c93805 100644 --- a/src/plugins/telemetry/schema/oss_platform.json +++ b/src/plugins/telemetry/schema/oss_platform.json @@ -113,109 +113,109 @@ } } } - } - }, - "files": { - "properties": { - "countByExtension": { - "type": "array", - "items": { - "properties": { - "extension": { - "type": "keyword" - }, - "count": { - "type": "long" + }, + "files": { + "properties": { + "countByExtension": { + "type": "array", + "items": { + "properties": { + "extension": { + "type": "keyword" + }, + "count": { + "type": "long" + } } } - } - }, - "countByStatus": { - "properties": { - "AWAITING_UPLOAD": { - "type": "long", - "_meta": { - "description": "Number of files awaiting upload" - } - }, - "DELETED": { - "type": "long", - "_meta": { - "description": "Number of files that are marked as deleted" - } - }, - "READY": { - "type": "long", - "_meta": { - "description": "Number of files that are ready for download" - } - }, - "UPLOADING": { - "type": "long", - "_meta": { - "description": "Number of files that are currently uploading" - } - }, - "UPLOAD_ERROR": { - "type": "long", - "_meta": { - "description": "Number of files that failed to upload" + }, + "countByStatus": { + "properties": { + "AWAITING_UPLOAD": { + "type": "long", + "_meta": { + "description": "Number of files awaiting upload" + } + }, + "DELETED": { + "type": "long", + "_meta": { + "description": "Number of files that are marked as deleted" + } + }, + "READY": { + "type": "long", + "_meta": { + "description": "Number of files that are ready for download" + } + }, + "UPLOADING": { + "type": "long", + "_meta": { + "description": "Number of files that are currently uploading" + } + }, + "UPLOAD_ERROR": { + "type": "long", + "_meta": { + "description": "Number of files that failed to upload" + } } } - } - }, - "storage": { - "properties": { - "esFixedSizeIndex": { - "properties": { - "capacity": { - "type": "long", - "_meta": { - "description": "Capacity of the fixed size index" - } - }, - "available": { - "type": "long", - "_meta": { - "description": "Available storage in bytes" - } - }, - "used": { - "type": "long", - "_meta": { - "description": "Used storage in bytes" + }, + "storage": { + "properties": { + "esFixedSizeIndex": { + "properties": { + "capacity": { + "type": "long", + "_meta": { + "description": "Capacity of the fixed size index" + } + }, + "available": { + "type": "long", + "_meta": { + "description": "Available storage in bytes" + } + }, + "used": { + "type": "long", + "_meta": { + "description": "Used storage in bytes" + } } } } } } } - } - }, - "sample-data": { - "properties": { - "installed": { - "type": "array", - "items": { + }, + "sample-data": { + "properties": { + "installed": { + "type": "array", + "items": { + "type": "keyword" + } + }, + "last_install_date": { + "type": "date" + }, + "last_install_set": { "type": "keyword" - } - }, - "last_install_date": { - "type": "date" - }, - "last_install_set": { - "type": "keyword" - }, - "last_uninstall_date": { - "type": "date" - }, - "last_uninstall_set": { - "type": "keyword" - }, - "uninstalled": { - "type": "array", - "items": { + }, + "last_uninstall_date": { + "type": "date" + }, + "last_uninstall_set": { "type": "keyword" + }, + "uninstalled": { + "type": "array", + "items": { + "type": "keyword" + } } } } 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 23fb0bb17c503..7ca01a3dca8f1 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json +++ b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json @@ -5060,16 +5060,6 @@ } } }, - "reporting": { - "properties": { - "available": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - } - } - }, "monitoring": { "properties": { "hasMonitoringData": { @@ -5407,6 +5397,16 @@ } } }, + "reporting": { + "properties": { + "available": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + } + } + }, "rollups": { "properties": { "index_patterns": { @@ -5463,42 +5463,6 @@ } } }, - "task_manager": { - "properties": { - "task_type_exclusion": { - "type": "array", - "items": { - "type": "keyword" - } - }, - "failed_tasks": { - "type": "long" - }, - "recurring_tasks": { - "properties": { - "actual_service_time": { - "type": "long" - }, - "adjusted_service_time": { - "type": "long" - } - } - }, - "adhoc_tasks": { - "properties": { - "actual_service_time": { - "type": "long" - }, - "adjusted_service_time": { - "type": "long" - } - } - }, - "capacity": { - "type": "long" - } - } - }, "saved_objects_tagging": { "properties": { "usedTags": { @@ -5593,6 +5557,42 @@ } } }, + "task_manager": { + "properties": { + "task_type_exclusion": { + "type": "array", + "items": { + "type": "keyword" + } + }, + "failed_tasks": { + "type": "long" + }, + "recurring_tasks": { + "properties": { + "actual_service_time": { + "type": "long" + }, + "adjusted_service_time": { + "type": "long" + } + } + }, + "adhoc_tasks": { + "properties": { + "actual_service_time": { + "type": "long" + }, + "adjusted_service_time": { + "type": "long" + } + } + }, + "capacity": { + "type": "long" + } + } + }, "transform": { "properties": { "alertRules": { From 2d170913f5e1f47bf2efff4cf826577a1811d364 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Mon, 30 Dec 2024 10:37:20 +0100 Subject: [PATCH 38/43] post merge fix --- .../schema/xpack_plugins.json | 104 ------------------ 1 file changed, 104 deletions(-) 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..638b29247f255 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json +++ b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @@ -90,110 +90,6 @@ } } }, - "reporting": { - "properties": { - "available": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - } - } - }, - "saved_objects_tagging": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - }, - "types": { - "properties": { - "dashboard": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "lens": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "visualization": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "map": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "search": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "osquery-pack": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "osquery-pack-asset": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "osquery-saved-query": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - } - } - } - } - }, "security": { "properties": { "auditLoggingEnabled": { From 5c8e1a56c94a7799608451835c2bc6152e358529 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Tue, 31 Dec 2024 13:05:49 +0100 Subject: [PATCH 39/43] post merge --- .../telemetry/schema/oss_platform.json | 105 ++++++++++++++++++ src/plugins/telemetry/schema/oss_plugins.json | 105 ------------------ .../schema/xpack_plugins.json | 104 ----------------- 3 files changed, 105 insertions(+), 209 deletions(-) diff --git a/src/plugins/telemetry/schema/oss_platform.json b/src/plugins/telemetry/schema/oss_platform.json index d5f6d4427e0a0..9b5246d49d059 100644 --- a/src/plugins/telemetry/schema/oss_platform.json +++ b/src/plugins/telemetry/schema/oss_platform.json @@ -114,6 +114,83 @@ } } }, + "files": { + "properties": { + "countByExtension": { + "type": "array", + "items": { + "properties": { + "extension": { + "type": "keyword" + }, + "count": { + "type": "long" + } + } + } + }, + "countByStatus": { + "properties": { + "AWAITING_UPLOAD": { + "type": "long", + "_meta": { + "description": "Number of files awaiting upload" + } + }, + "DELETED": { + "type": "long", + "_meta": { + "description": "Number of files that are marked as deleted" + } + }, + "READY": { + "type": "long", + "_meta": { + "description": "Number of files that are ready for download" + } + }, + "UPLOADING": { + "type": "long", + "_meta": { + "description": "Number of files that are currently uploading" + } + }, + "UPLOAD_ERROR": { + "type": "long", + "_meta": { + "description": "Number of files that failed to upload" + } + } + } + }, + "storage": { + "properties": { + "esFixedSizeIndex": { + "properties": { + "capacity": { + "type": "long", + "_meta": { + "description": "Capacity of the fixed size index" + } + }, + "available": { + "type": "long", + "_meta": { + "description": "Available storage in bytes" + } + }, + "used": { + "type": "long", + "_meta": { + "description": "Used storage in bytes" + } + } + } + } + } + } + } + }, "index-patterns": { "properties": { "indexPatternsCount": { @@ -188,6 +265,34 @@ } } } + }, + "sample-data": { + "properties": { + "installed": { + "type": "array", + "items": { + "type": "keyword" + } + }, + "last_install_date": { + "type": "date" + }, + "last_install_set": { + "type": "keyword" + }, + "last_uninstall_date": { + "type": "date" + }, + "last_uninstall_set": { + "type": "keyword" + }, + "uninstalled": { + "type": "array", + "items": { + "type": "keyword" + } + } + } } } } diff --git a/src/plugins/telemetry/schema/oss_plugins.json b/src/plugins/telemetry/schema/oss_plugins.json index 0e324ad0b4343..7afb86749a293 100644 --- a/src/plugins/telemetry/schema/oss_plugins.json +++ b/src/plugins/telemetry/schema/oss_plugins.json @@ -9813,83 +9813,6 @@ } } }, - "files": { - "properties": { - "countByExtension": { - "type": "array", - "items": { - "properties": { - "extension": { - "type": "keyword" - }, - "count": { - "type": "long" - } - } - } - }, - "countByStatus": { - "properties": { - "AWAITING_UPLOAD": { - "type": "long", - "_meta": { - "description": "Number of files awaiting upload" - } - }, - "DELETED": { - "type": "long", - "_meta": { - "description": "Number of files that are marked as deleted" - } - }, - "READY": { - "type": "long", - "_meta": { - "description": "Number of files that are ready for download" - } - }, - "UPLOADING": { - "type": "long", - "_meta": { - "description": "Number of files that are currently uploading" - } - }, - "UPLOAD_ERROR": { - "type": "long", - "_meta": { - "description": "Number of files that failed to upload" - } - } - } - }, - "storage": { - "properties": { - "esFixedSizeIndex": { - "properties": { - "capacity": { - "type": "long", - "_meta": { - "description": "Capacity of the fixed size index" - } - }, - "available": { - "type": "long", - "_meta": { - "description": "Available storage in bytes" - } - }, - "used": { - "type": "long", - "_meta": { - "description": "Used storage in bytes" - } - } - } - } - } - } - } - }, "kibana": { "properties": { "index": { @@ -9989,34 +9912,6 @@ } } }, - "sample-data": { - "properties": { - "installed": { - "type": "array", - "items": { - "type": "keyword" - } - }, - "last_install_date": { - "type": "date" - }, - "last_install_set": { - "type": "keyword" - }, - "last_uninstall_date": { - "type": "date" - }, - "last_uninstall_set": { - "type": "keyword" - }, - "uninstalled": { - "type": "array", - "items": { - "type": "keyword" - } - } - } - }, "saved_objects_counts": { "properties": { "total": { 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 8fc4524b00f73..63c7bfcf3f33a 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json +++ b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @@ -83,110 +83,6 @@ } } }, - "reporting": { - "properties": { - "available": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - } - } - }, - "saved_objects_tagging": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - }, - "types": { - "properties": { - "dashboard": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "lens": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "visualization": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "map": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "search": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "osquery-pack": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "osquery-pack-asset": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - }, - "osquery-saved-query": { - "properties": { - "usedTags": { - "type": "integer" - }, - "taggedObjects": { - "type": "integer" - } - } - } - } - } - } - }, "security": { "properties": { "auditLoggingEnabled": { From 368a6bbe87d944ada7cef230e24d7a813b8039ab Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 2 Jan 2025 12:15:00 +0100 Subject: [PATCH 40/43] Relocating module `@kbn/advanced-settings-plugin` --- .github/CODEOWNERS | 70 +++++++++---------- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../private}/advanced_settings/README.md | 0 .../private}/advanced_settings/kibana.jsonc | 0 .../advanced_settings/public/index.ts | 0 .../advanced_settings/public/plugin.tsx | 0 .../advanced_settings/public/types.ts | 0 .../server/capabilities_provider.ts | 0 .../advanced_settings/server/config.ts | 0 .../advanced_settings/server/index.ts | 0 .../advanced_settings/server/plugin.ts | 0 .../private}/advanced_settings/tsconfig.json | 2 +- tsconfig.base.json | 4 +- yarn.lock | 2 +- 16 files changed, 42 insertions(+), 42 deletions(-) rename src/{plugins => platform/plugins/private}/advanced_settings/README.md (100%) rename src/{plugins => platform/plugins/private}/advanced_settings/kibana.jsonc (100%) rename src/{plugins => platform/plugins/private}/advanced_settings/public/index.ts (100%) rename src/{plugins => platform/plugins/private}/advanced_settings/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/private}/advanced_settings/public/types.ts (100%) rename src/{plugins => platform/plugins/private}/advanced_settings/server/capabilities_provider.ts (100%) rename src/{plugins => platform/plugins/private}/advanced_settings/server/config.ts (100%) rename src/{plugins => platform/plugins/private}/advanced_settings/server/index.ts (100%) rename src/{plugins => platform/plugins/private}/advanced_settings/server/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/advanced_settings/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a732170bc6bbd..a91a563dc0678 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -269,7 +269,6 @@ packages/kbn-bazel-runner @elastic/kibana-operations packages/kbn-calculate-auto @elastic/obs-ux-management-team packages/kbn-calculate-width-from-char-count @elastic/kibana-visualizations packages/kbn-capture-oas-snapshot-cli @elastic/kibana-core -packages/kbn-cbor @elastic/kibana-operations packages/kbn-chart-icons @elastic/kibana-visualizations packages/kbn-charts-theme @elastic/kibana-visualizations packages/kbn-check-mappings-update-cli @elastic/kibana-core @@ -370,9 +369,7 @@ packages/kbn-react-mute-legacy-root-warning @elastic/appex-sharedux packages/kbn-recently-accessed @elastic/appex-sharedux packages/kbn-relocate @elastic/kibana-core packages/kbn-repo-file-maps @elastic/kibana-operations -packages/kbn-repo-info @elastic/kibana-operations packages/kbn-repo-linter @elastic/kibana-operations -packages/kbn-repo-packages @elastic/kibana-operations packages/kbn-repo-path @elastic/kibana-operations packages/kbn-repo-source-classifier @elastic/kibana-operations packages/kbn-repo-source-classifier-cli @elastic/kibana-operations @@ -387,7 +384,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-rison @elastic/kibana-operations packages/kbn-router-to-openapispec @elastic/kibana-core packages/kbn-safer-lodash-set @elastic/kibana-security packages/kbn-saved-objects-settings @elastic/appex-sharedux @@ -418,14 +414,9 @@ packages/kbn-transpose-utils @elastic/kibana-visualizations packages/kbn-ts-projects @elastic/kibana-operations packages/kbn-ts-type-check-cli @elastic/kibana-operations 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-use-tracked-promise @elastic/obs-ux-logs-team packages/kbn-user-profile-components @elastic/kibana-security packages/kbn-utility-types @elastic/kibana-core -packages/kbn-utility-types-jest @elastic/kibana-operations -packages/kbn-utils @elastic/kibana-operations packages/kbn-validate-next-docs-cli @elastic/kibana-operations packages/kbn-visualization-ui-components @elastic/kibana-visualizations packages/kbn-visualization-utils @elastic/kibana-visualizations @@ -520,6 +511,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-repo-packages @elastic/kibana-operations +src/platform/packages/private/kbn-ui-shared-deps-npm @elastic/kibana-operations +src/platform/packages/private/kbn-ui-shared-deps-src @elastic/kibana-operations 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 @@ -538,6 +532,7 @@ src/platform/packages/shared/kbn-apm-data-view @elastic/obs-ux-infra_services-te 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-cbor @elastic/kibana-operations 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 @@ -568,7 +563,9 @@ src/platform/packages/shared/kbn-osquery-io-ts-types @elastic/security-asset-man 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-repo-info @elastic/kibana-operations src/platform/packages/shared/kbn-resizable-layout @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-rison @elastic/kibana-operations 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 @@ -593,28 +590,27 @@ 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-ui-theme @elastic/kibana-operations 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-utility-types-jest @elastic/kibana-operations +src/platform/packages/shared/kbn-utils @elastic/kibana-operations src/platform/packages/shared/kbn-xstate-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-management src/platform/packages/shared/presentation/presentation_containers @elastic/kibana-presentation src/platform/packages/shared/presentation/presentation_publishing @elastic/kibana-presentation src/platform/packages/shared/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management src/platform/packages/shared/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management -src/platform/plugins/private/files_management @elastic/appex-sharedux -src/platform/plugins/private/image_embeddable @elastic/appex-sharedux +src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/platform/plugins/private/input_control_vis @elastic/kibana-presentation -src/platform/plugins/private/kibana_overview @elastic/appex-sharedux src/platform/plugins/private/links @elastic/kibana-presentation src/platform/plugins/private/maps_ems @elastic/kibana-presentation -src/platform/plugins/private/no_data_page @elastic/appex-sharedux src/platform/plugins/private/presentation_panel @elastic/kibana-presentation src/platform/plugins/private/vis_type_markdown @elastic/kibana-presentation src/platform/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant src/platform/plugins/shared/console @elastic/kibana-management -src/platform/plugins/shared/content_management @elastic/appex-sharedux src/platform/plugins/shared/controls @elastic/kibana-presentation src/platform/plugins/shared/custom_integrations @elastic/fleet src/platform/plugins/shared/dashboard @elastic/kibana-presentation @@ -636,26 +632,13 @@ 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/files @elastic/appex-sharedux -src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux -src/platform/plugins/shared/home @elastic/appex-sharedux src/platform/plugins/shared/inspector @elastic/kibana-presentation -src/platform/plugins/shared/kibana_react @elastic/appex-sharedux -src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management -src/platform/plugins/shared/navigation @elastic/appex-sharedux src/platform/plugins/shared/presentation_util @elastic/kibana-presentation -src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/platform/plugins/shared/saved_objects_finder @elastic/kibana-data-discovery -src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/platform/plugins/shared/saved_search @elastic/kibana-data-discovery -src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux -src/platform/plugins/shared/share @elastic/appex-sharedux -src/platform/plugins/shared/ui_actions @elastic/appex-sharedux -src/platform/plugins/shared/ui_actions_enhanced @elastic/appex-sharedux 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 src/plugins/chart_expressions/expression_heatmap @elastic/kibana-visualizations @@ -665,18 +648,35 @@ src/plugins/chart_expressions/expression_partition_vis @elastic/kibana-visualiza src/plugins/chart_expressions/expression_tagcloud @elastic/kibana-visualizations 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/event_annotation @elastic/kibana-visualizations src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations +src/plugins/files @elastic/appex-sharedux +src/plugins/files_management @elastic/appex-sharedux src/plugins/ftr_apis @elastic/kibana-core +src/plugins/guided_onboarding @elastic/appex-sharedux +src/plugins/home @elastic/appex-sharedux +src/plugins/image_embeddable @elastic/appex-sharedux src/plugins/interactive_setup @elastic/kibana-security +src/plugins/kibana_overview @elastic/appex-sharedux +src/plugins/kibana_react @elastic/appex-sharedux src/plugins/kibana_usage_collection @elastic/kibana-core +src/plugins/kibana_utils @elastic/appex-sharedux +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_management @elastic/kibana-core +src/plugins/saved_objects_tagging_oss @elastic/appex-sharedux +src/plugins/screenshot_mode @elastic/appex-sharedux +src/plugins/share @elastic/appex-sharedux src/plugins/telemetry @elastic/kibana-core 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_search @elastic/kibana-visualizations src/plugins/url_forwarding @elastic/kibana-visualizations src/plugins/usage_collection @elastic/kibana-core @@ -831,13 +831,10 @@ x-pack/platform/packages/shared/observability/logs_overview @elastic/obs-ux-logs x-pack/platform/plugins/private/canvas @elastic/kibana-presentation x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration @elastic/kibana-management x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management -x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux 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/global_search_bar @elastic/appex-sharedux -x-pack/platform/plugins/private/global_search_providers @elastic/appex-sharedux x-pack/platform/plugins/private/grokdebugger @elastic/kibana-management x-pack/platform/plugins/private/index_lifecycle_management @elastic/kibana-management x-pack/platform/plugins/private/license_api_guard @elastic/kibana-management @@ -846,10 +843,8 @@ x-pack/platform/plugins/private/monitoring @elastic/stack-monitoring x-pack/platform/plugins/private/monitoring_collection @elastic/stack-monitoring x-pack/platform/plugins/private/painless_lab @elastic/kibana-management x-pack/platform/plugins/private/remote_clusters @elastic/kibana-management -x-pack/platform/plugins/private/reporting @elastic/appex-sharedux x-pack/platform/plugins/private/rollup @elastic/kibana-management x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management -x-pack/platform/plugins/private/saved_objects_tagging @elastic/appex-sharedux x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management x-pack/platform/plugins/private/transform @elastic/ml-ui x-pack/platform/plugins/private/translations @elastic/kibana-localization @@ -868,7 +863,6 @@ x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/platform/plugins/shared/event_log @elastic/response-ops x-pack/platform/plugins/shared/fields_metadata @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/fleet @elastic/fleet -x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux x-pack/platform/plugins/shared/index_management @elastic/kibana-management x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management @@ -878,13 +872,11 @@ x-pack/platform/plugins/shared/logs_data_access @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/logs_shared @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/maps @elastic/kibana-presentation x-pack/platform/plugins/shared/ml @elastic/ml-ui -x-pack/platform/plugins/shared/notifications @elastic/appex-sharedux x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant @elastic/obs-ai-assistant x-pack/platform/plugins/shared/osquery @elastic/security-defend-workflows x-pack/platform/plugins/shared/rule_registry @elastic/response-ops @elastic/obs-ux-management-team x-pack/platform/plugins/shared/screenshotting @elastic/kibana-reporting-services x-pack/platform/plugins/shared/searchprofiler @elastic/kibana-management -x-pack/platform/plugins/shared/serverless @elastic/appex-sharedux x-pack/platform/plugins/shared/stack_alerts @elastic/response-ops x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops @@ -895,13 +887,21 @@ x-pack/plugins/cloud_integrations/cloud_chat @elastic/kibana-core 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/drilldowns/url_drilldown @elastic/appex-sharedux x-pack/plugins/encrypted_saved_objects @elastic/kibana-security x-pack/plugins/features @elastic/kibana-core +x-pack/plugins/global_search @elastic/appex-sharedux +x-pack/plugins/global_search_bar @elastic/appex-sharedux +x-pack/plugins/global_search_providers @elastic/appex-sharedux x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/lens @elastic/kibana-visualizations x-pack/plugins/licensing @elastic/kibana-core +x-pack/plugins/notifications @elastic/appex-sharedux +x-pack/plugins/reporting @elastic/appex-sharedux +x-pack/plugins/saved_objects_tagging @elastic/appex-sharedux x-pack/plugins/security @elastic/kibana-security +x-pack/plugins/serverless @elastic/appex-sharedux x-pack/plugins/spaces @elastic/kibana-security x-pack/plugins/telemetry_collection_xpack @elastic/kibana-core x-pack/plugins/upgrade_assistant @elastic/kibana-core diff --git a/.i18nrc.json b/.i18nrc.json index f6cb3acf487d3..41e6d17b13757 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -1,6 +1,6 @@ { "paths": { - "advancedSettings": "src/plugins/advanced_settings", + "advancedSettings": "src/platform/plugins/private/advanced_settings", "aiAssistantManagementSelection": "src/platform/plugins/shared/ai_assistant_management/selection", "alerts": "packages/kbn-alerts/src", "alertsUIShared": "src/platform/packages/shared/kbn-alerts-ui-shared/src", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 4d650c3d78a1e..f116e673fe330 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -22,7 +22,7 @@ NOTE: |Description -|{kib-repo}blob/{branch}/src/plugins/advanced_settings/README.md[advancedSettings] +|{kib-repo}blob/{branch}/src/platform/plugins/private/advanced_settings/README.md[advancedSettings] |This plugin registers the management settings application allowing users to configure their advanced settings, also known as uiSettings within the code. diff --git a/package.json b/package.json index d6b4834d6803a..ff116f36cee94 100644 --- a/package.json +++ b/package.json @@ -157,7 +157,7 @@ "@kbn/actions-plugin": "link:x-pack/platform/plugins/shared/actions", "@kbn/actions-simulators-plugin": "link:x-pack/test/alerting_api_integration/common/plugins/actions_simulators", "@kbn/actions-types": "link:src/platform/packages/shared/kbn-actions-types", - "@kbn/advanced-settings-plugin": "link:src/plugins/advanced_settings", + "@kbn/advanced-settings-plugin": "link:src/platform/plugins/private/advanced_settings", "@kbn/ai-assistant": "link:x-pack/platform/packages/shared/kbn-ai-assistant", "@kbn/ai-assistant-common": "link:x-pack/platform/packages/shared/ai-assistant/common", "@kbn/ai-assistant-icon": "link:x-pack/platform/packages/shared/ai-assistant/icon", diff --git a/src/plugins/advanced_settings/README.md b/src/platform/plugins/private/advanced_settings/README.md similarity index 100% rename from src/plugins/advanced_settings/README.md rename to src/platform/plugins/private/advanced_settings/README.md diff --git a/src/plugins/advanced_settings/kibana.jsonc b/src/platform/plugins/private/advanced_settings/kibana.jsonc similarity index 100% rename from src/plugins/advanced_settings/kibana.jsonc rename to src/platform/plugins/private/advanced_settings/kibana.jsonc diff --git a/src/plugins/advanced_settings/public/index.ts b/src/platform/plugins/private/advanced_settings/public/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/index.ts rename to src/platform/plugins/private/advanced_settings/public/index.ts diff --git a/src/plugins/advanced_settings/public/plugin.tsx b/src/platform/plugins/private/advanced_settings/public/plugin.tsx similarity index 100% rename from src/plugins/advanced_settings/public/plugin.tsx rename to src/platform/plugins/private/advanced_settings/public/plugin.tsx diff --git a/src/plugins/advanced_settings/public/types.ts b/src/platform/plugins/private/advanced_settings/public/types.ts similarity index 100% rename from src/plugins/advanced_settings/public/types.ts rename to src/platform/plugins/private/advanced_settings/public/types.ts diff --git a/src/plugins/advanced_settings/server/capabilities_provider.ts b/src/platform/plugins/private/advanced_settings/server/capabilities_provider.ts similarity index 100% rename from src/plugins/advanced_settings/server/capabilities_provider.ts rename to src/platform/plugins/private/advanced_settings/server/capabilities_provider.ts diff --git a/src/plugins/advanced_settings/server/config.ts b/src/platform/plugins/private/advanced_settings/server/config.ts similarity index 100% rename from src/plugins/advanced_settings/server/config.ts rename to src/platform/plugins/private/advanced_settings/server/config.ts diff --git a/src/plugins/advanced_settings/server/index.ts b/src/platform/plugins/private/advanced_settings/server/index.ts similarity index 100% rename from src/plugins/advanced_settings/server/index.ts rename to src/platform/plugins/private/advanced_settings/server/index.ts diff --git a/src/plugins/advanced_settings/server/plugin.ts b/src/platform/plugins/private/advanced_settings/server/plugin.ts similarity index 100% rename from src/plugins/advanced_settings/server/plugin.ts rename to src/platform/plugins/private/advanced_settings/server/plugin.ts diff --git a/src/plugins/advanced_settings/tsconfig.json b/src/platform/plugins/private/advanced_settings/tsconfig.json similarity index 91% rename from src/plugins/advanced_settings/tsconfig.json rename to src/platform/plugins/private/advanced_settings/tsconfig.json index 547e82d64c73c..514bb73f8d384 100644 --- a/src/plugins/advanced_settings/tsconfig.json +++ b/src/platform/plugins/private/advanced_settings/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 7f5dcbfd455bf..6d2438d78d82e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -12,8 +12,8 @@ "@kbn/actions-simulators-plugin/*": ["x-pack/test/alerting_api_integration/common/plugins/actions_simulators/*"], "@kbn/actions-types": ["src/platform/packages/shared/kbn-actions-types"], "@kbn/actions-types/*": ["src/platform/packages/shared/kbn-actions-types/*"], - "@kbn/advanced-settings-plugin": ["src/plugins/advanced_settings"], - "@kbn/advanced-settings-plugin/*": ["src/plugins/advanced_settings/*"], + "@kbn/advanced-settings-plugin": ["src/platform/plugins/private/advanced_settings"], + "@kbn/advanced-settings-plugin/*": ["src/platform/plugins/private/advanced_settings/*"], "@kbn/ai-assistant": ["x-pack/platform/packages/shared/kbn-ai-assistant"], "@kbn/ai-assistant/*": ["x-pack/platform/packages/shared/kbn-ai-assistant/*"], "@kbn/ai-assistant-common": ["x-pack/platform/packages/shared/ai-assistant/common"], diff --git a/yarn.lock b/yarn.lock index 5f962d911ca48..1da0bca91ae63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3841,7 +3841,7 @@ version "0.0.0" uid "" -"@kbn/advanced-settings-plugin@link:src/plugins/advanced_settings": +"@kbn/advanced-settings-plugin@link:src/platform/plugins/private/advanced_settings": version "0.0.0" uid "" From 27e56ba2e7785f338282ddd7fb593404b08b823e Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 2 Jan 2025 12:16:40 +0100 Subject: [PATCH 41/43] Relocating module `@kbn/banners-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../plugins/private}/banners/README.md | 0 .../plugins/private}/banners/common/index.ts | 0 .../plugins/private}/banners/common/types.ts | 0 .../plugins/private}/banners/jest.config.js | 8 ++++---- .../plugins/private}/banners/kibana.jsonc | 0 .../private}/banners/public/components/banner.scss | 0 .../plugins/private}/banners/public/components/banner.tsx | 0 .../plugins/private}/banners/public/components/index.ts | 0 .../private}/banners/public/get_banner_info.test.ts | 0 .../plugins/private}/banners/public/get_banner_info.ts | 0 .../plugins/private}/banners/public/index.ts | 0 .../plugins/private}/banners/public/plugin.test.mocks.ts | 0 .../plugins/private}/banners/public/plugin.test.tsx | 0 .../plugins/private}/banners/public/plugin.tsx | 0 .../plugins/private}/banners/public/types.ts | 0 .../plugins/private}/banners/server/config.ts | 0 .../plugins/private}/banners/server/index.ts | 0 .../plugins/private}/banners/server/plugin.test.mocks.ts | 0 .../plugins/private}/banners/server/plugin.test.ts | 0 .../plugins/private}/banners/server/plugin.ts | 0 .../plugins/private}/banners/server/routes/index.ts | 0 .../plugins/private}/banners/server/routes/info.ts | 0 .../plugins/private}/banners/server/types.ts | 0 .../plugins/private}/banners/server/ui_settings.test.ts | 0 .../plugins/private}/banners/server/ui_settings.ts | 0 .../plugins/private}/banners/server/utils.test.ts | 0 .../plugins/private}/banners/server/utils.ts | 0 .../plugins/private}/banners/tsconfig.json | 4 ++-- yarn.lock | 2 +- 34 files changed, 13 insertions(+), 13 deletions(-) rename x-pack/{plugins => platform/plugins/private}/banners/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/banners/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/jest.config.js (62%) rename x-pack/{plugins => platform/plugins/private}/banners/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/components/banner.scss (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/components/banner.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/get_banner_info.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/get_banner_info.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/plugin.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/plugin.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/banners/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/plugin.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/routes/info.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/ui_settings.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/ui_settings.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/server/utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/banners/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a91a563dc0678..8a6afc24fb9a6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -828,6 +828,7 @@ x-pack/platform/packages/shared/ml/runtime_field_utils @elastic/ml-ui x-pack/platform/packages/shared/ml/trained_models_utils @elastic/ml-ui x-pack/platform/packages/shared/observability/alerting_rule_utils @elastic/obs-ux-management-team x-pack/platform/packages/shared/observability/logs_overview @elastic/obs-ux-logs-team +x-pack/platform/plugins/private/banners @elastic/appex-sharedux x-pack/platform/plugins/private/canvas @elastic/kibana-presentation x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration @elastic/kibana-management x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management @@ -881,7 +882,6 @@ x-pack/platform/plugins/shared/stack_alerts @elastic/response-ops x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops -x-pack/plugins/banners @elastic/appex-sharedux x-pack/plugins/cloud @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_chat @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_experiments @elastic/kibana-core diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index f116e673fe330..970685211fb08 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -471,7 +471,7 @@ The plugin exposes the static DefaultEditorController class to consume. |Centralized asset inventory experience within the Elastic Security solution. A central place for users to view and manage all their assets from different environments. -|{kib-repo}blob/{branch}/x-pack/plugins/banners/README.md[banners] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/banners/README.md[banners] |Allow to add a header banner that will be displayed on every page of the Kibana application diff --git a/package.json b/package.json index ff116f36cee94..d335d2c79cfca 100644 --- a/package.json +++ b/package.json @@ -195,7 +195,7 @@ "@kbn/asset-inventory-plugin": "link:x-pack/solutions/security/plugins/asset_inventory", "@kbn/audit-log-plugin": "link:x-pack/test/security_api_integration/plugins/audit_log", "@kbn/avc-banner": "link:src/platform/packages/shared/kbn-avc-banner", - "@kbn/banners-plugin": "link:x-pack/plugins/banners", + "@kbn/banners-plugin": "link:x-pack/platform/plugins/private/banners", "@kbn/calculate-auto": "link:packages/kbn-calculate-auto", "@kbn/calculate-width-from-char-count": "link:packages/kbn-calculate-width-from-char-count", "@kbn/canvas-plugin": "link:x-pack/platform/plugins/private/canvas", diff --git a/tsconfig.base.json b/tsconfig.base.json index 6d2438d78d82e..867400bc81ed7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -112,8 +112,8 @@ "@kbn/babel-register/*": ["packages/kbn-babel-register/*"], "@kbn/babel-transform": ["packages/kbn-babel-transform"], "@kbn/babel-transform/*": ["packages/kbn-babel-transform/*"], - "@kbn/banners-plugin": ["x-pack/plugins/banners"], - "@kbn/banners-plugin/*": ["x-pack/plugins/banners/*"], + "@kbn/banners-plugin": ["x-pack/platform/plugins/private/banners"], + "@kbn/banners-plugin/*": ["x-pack/platform/plugins/private/banners/*"], "@kbn/bazel-runner": ["packages/kbn-bazel-runner"], "@kbn/bazel-runner/*": ["packages/kbn-bazel-runner/*"], "@kbn/calculate-auto": ["packages/kbn-calculate-auto"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index aefba8829a02c..53bfbc1202257 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -16,7 +16,7 @@ "xpack.stackConnectors": "platform/plugins/shared/stack_connectors", "xpack.apm": "solutions/observability/plugins/apm", "xpack.apmDataAccess": "solutions/observability/plugins/apm_data_access", - "xpack.banners": "plugins/banners", + "xpack.banners": "platform/plugins/private/banners", "xpack.canvas": "platform/plugins/private/canvas", "xpack.cases": "platform/plugins/shared/cases", "xpack.cloud": "plugins/cloud", diff --git a/x-pack/plugins/banners/README.md b/x-pack/platform/plugins/private/banners/README.md similarity index 100% rename from x-pack/plugins/banners/README.md rename to x-pack/platform/plugins/private/banners/README.md diff --git a/x-pack/plugins/banners/common/index.ts b/x-pack/platform/plugins/private/banners/common/index.ts similarity index 100% rename from x-pack/plugins/banners/common/index.ts rename to x-pack/platform/plugins/private/banners/common/index.ts diff --git a/x-pack/plugins/banners/common/types.ts b/x-pack/platform/plugins/private/banners/common/types.ts similarity index 100% rename from x-pack/plugins/banners/common/types.ts rename to x-pack/platform/plugins/private/banners/common/types.ts diff --git a/x-pack/plugins/banners/jest.config.js b/x-pack/platform/plugins/private/banners/jest.config.js similarity index 62% rename from x-pack/plugins/banners/jest.config.js rename to x-pack/platform/plugins/private/banners/jest.config.js index 291bdb3436295..e4da6843c1326 100644 --- a/x-pack/plugins/banners/jest.config.js +++ b/x-pack/platform/plugins/private/banners/jest.config.js @@ -7,9 +7,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/banners'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/banners', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/banners'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/banners', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/banners/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/x-pack/platform/plugins/private/banners/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/x-pack/plugins/banners/kibana.jsonc b/x-pack/platform/plugins/private/banners/kibana.jsonc similarity index 100% rename from x-pack/plugins/banners/kibana.jsonc rename to x-pack/platform/plugins/private/banners/kibana.jsonc diff --git a/x-pack/plugins/banners/public/components/banner.scss b/x-pack/platform/plugins/private/banners/public/components/banner.scss similarity index 100% rename from x-pack/plugins/banners/public/components/banner.scss rename to x-pack/platform/plugins/private/banners/public/components/banner.scss diff --git a/x-pack/plugins/banners/public/components/banner.tsx b/x-pack/platform/plugins/private/banners/public/components/banner.tsx similarity index 100% rename from x-pack/plugins/banners/public/components/banner.tsx rename to x-pack/platform/plugins/private/banners/public/components/banner.tsx diff --git a/x-pack/plugins/banners/public/components/index.ts b/x-pack/platform/plugins/private/banners/public/components/index.ts similarity index 100% rename from x-pack/plugins/banners/public/components/index.ts rename to x-pack/platform/plugins/private/banners/public/components/index.ts diff --git a/x-pack/plugins/banners/public/get_banner_info.test.ts b/x-pack/platform/plugins/private/banners/public/get_banner_info.test.ts similarity index 100% rename from x-pack/plugins/banners/public/get_banner_info.test.ts rename to x-pack/platform/plugins/private/banners/public/get_banner_info.test.ts diff --git a/x-pack/plugins/banners/public/get_banner_info.ts b/x-pack/platform/plugins/private/banners/public/get_banner_info.ts similarity index 100% rename from x-pack/plugins/banners/public/get_banner_info.ts rename to x-pack/platform/plugins/private/banners/public/get_banner_info.ts diff --git a/x-pack/plugins/banners/public/index.ts b/x-pack/platform/plugins/private/banners/public/index.ts similarity index 100% rename from x-pack/plugins/banners/public/index.ts rename to x-pack/platform/plugins/private/banners/public/index.ts diff --git a/x-pack/plugins/banners/public/plugin.test.mocks.ts b/x-pack/platform/plugins/private/banners/public/plugin.test.mocks.ts similarity index 100% rename from x-pack/plugins/banners/public/plugin.test.mocks.ts rename to x-pack/platform/plugins/private/banners/public/plugin.test.mocks.ts diff --git a/x-pack/plugins/banners/public/plugin.test.tsx b/x-pack/platform/plugins/private/banners/public/plugin.test.tsx similarity index 100% rename from x-pack/plugins/banners/public/plugin.test.tsx rename to x-pack/platform/plugins/private/banners/public/plugin.test.tsx diff --git a/x-pack/plugins/banners/public/plugin.tsx b/x-pack/platform/plugins/private/banners/public/plugin.tsx similarity index 100% rename from x-pack/plugins/banners/public/plugin.tsx rename to x-pack/platform/plugins/private/banners/public/plugin.tsx diff --git a/x-pack/plugins/banners/public/types.ts b/x-pack/platform/plugins/private/banners/public/types.ts similarity index 100% rename from x-pack/plugins/banners/public/types.ts rename to x-pack/platform/plugins/private/banners/public/types.ts diff --git a/x-pack/plugins/banners/server/config.ts b/x-pack/platform/plugins/private/banners/server/config.ts similarity index 100% rename from x-pack/plugins/banners/server/config.ts rename to x-pack/platform/plugins/private/banners/server/config.ts diff --git a/x-pack/plugins/banners/server/index.ts b/x-pack/platform/plugins/private/banners/server/index.ts similarity index 100% rename from x-pack/plugins/banners/server/index.ts rename to x-pack/platform/plugins/private/banners/server/index.ts diff --git a/x-pack/plugins/banners/server/plugin.test.mocks.ts b/x-pack/platform/plugins/private/banners/server/plugin.test.mocks.ts similarity index 100% rename from x-pack/plugins/banners/server/plugin.test.mocks.ts rename to x-pack/platform/plugins/private/banners/server/plugin.test.mocks.ts diff --git a/x-pack/plugins/banners/server/plugin.test.ts b/x-pack/platform/plugins/private/banners/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/banners/server/plugin.test.ts rename to x-pack/platform/plugins/private/banners/server/plugin.test.ts diff --git a/x-pack/plugins/banners/server/plugin.ts b/x-pack/platform/plugins/private/banners/server/plugin.ts similarity index 100% rename from x-pack/plugins/banners/server/plugin.ts rename to x-pack/platform/plugins/private/banners/server/plugin.ts diff --git a/x-pack/plugins/banners/server/routes/index.ts b/x-pack/platform/plugins/private/banners/server/routes/index.ts similarity index 100% rename from x-pack/plugins/banners/server/routes/index.ts rename to x-pack/platform/plugins/private/banners/server/routes/index.ts diff --git a/x-pack/plugins/banners/server/routes/info.ts b/x-pack/platform/plugins/private/banners/server/routes/info.ts similarity index 100% rename from x-pack/plugins/banners/server/routes/info.ts rename to x-pack/platform/plugins/private/banners/server/routes/info.ts diff --git a/x-pack/plugins/banners/server/types.ts b/x-pack/platform/plugins/private/banners/server/types.ts similarity index 100% rename from x-pack/plugins/banners/server/types.ts rename to x-pack/platform/plugins/private/banners/server/types.ts diff --git a/x-pack/plugins/banners/server/ui_settings.test.ts b/x-pack/platform/plugins/private/banners/server/ui_settings.test.ts similarity index 100% rename from x-pack/plugins/banners/server/ui_settings.test.ts rename to x-pack/platform/plugins/private/banners/server/ui_settings.test.ts diff --git a/x-pack/plugins/banners/server/ui_settings.ts b/x-pack/platform/plugins/private/banners/server/ui_settings.ts similarity index 100% rename from x-pack/plugins/banners/server/ui_settings.ts rename to x-pack/platform/plugins/private/banners/server/ui_settings.ts diff --git a/x-pack/plugins/banners/server/utils.test.ts b/x-pack/platform/plugins/private/banners/server/utils.test.ts similarity index 100% rename from x-pack/plugins/banners/server/utils.test.ts rename to x-pack/platform/plugins/private/banners/server/utils.test.ts diff --git a/x-pack/plugins/banners/server/utils.ts b/x-pack/platform/plugins/private/banners/server/utils.ts similarity index 100% rename from x-pack/plugins/banners/server/utils.ts rename to x-pack/platform/plugins/private/banners/server/utils.ts diff --git a/x-pack/plugins/banners/tsconfig.json b/x-pack/platform/plugins/private/banners/tsconfig.json similarity index 83% rename from x-pack/plugins/banners/tsconfig.json rename to x-pack/platform/plugins/private/banners/tsconfig.json index 978c977d0fe2c..758c323379482 100644 --- a/x-pack/plugins/banners/tsconfig.json +++ b/x-pack/platform/plugins/private/banners/tsconfig.json @@ -1,9 +1,9 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, - "include": ["public/**/*", "server/**/*", "common/**/*", "../../../typings/**/*"], + "include": ["public/**/*", "server/**/*", "common/**/*", "../../../../../typings/**/*"], "kbn_references": [ "@kbn/core", "@kbn/screenshot-mode-plugin", diff --git a/yarn.lock b/yarn.lock index 1da0bca91ae63..961c08cec4782 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4041,7 +4041,7 @@ version "0.0.0" uid "" -"@kbn/banners-plugin@link:x-pack/plugins/banners": +"@kbn/banners-plugin@link:x-pack/platform/plugins/private/banners": version "0.0.0" uid "" From f4e9570ba534c105045d5927a897aa7f1883e6a6 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 2 Jan 2025 12:34:47 +0100 Subject: [PATCH 42/43] codeowners --- .github/CODEOWNERS | 50 +++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8a6afc24fb9a6..1799189014944 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -604,13 +604,18 @@ src/platform/packages/shared/presentation/presentation_publishing @elastic/kiban src/platform/packages/shared/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management src/platform/packages/shared/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management +src/platform/plugins/private/files_management @elastic/appex-sharedux +src/platform/plugins/private/image_embeddable @elastic/appex-sharedux src/platform/plugins/private/input_control_vis @elastic/kibana-presentation +src/platform/plugins/private/kibana_overview @elastic/appex-sharedux src/platform/plugins/private/links @elastic/kibana-presentation src/platform/plugins/private/maps_ems @elastic/kibana-presentation +src/platform/plugins/private/no_data_page @elastic/appex-sharedux src/platform/plugins/private/presentation_panel @elastic/kibana-presentation src/platform/plugins/private/vis_type_markdown @elastic/kibana-presentation src/platform/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant src/platform/plugins/shared/console @elastic/kibana-management +src/platform/plugins/shared/content_management @elastic/appex-sharedux src/platform/plugins/shared/controls @elastic/kibana-presentation src/platform/plugins/shared/custom_integrations @elastic/fleet src/platform/plugins/shared/dashboard @elastic/kibana-presentation @@ -632,11 +637,23 @@ 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/files @elastic/appex-sharedux +src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux +src/platform/plugins/shared/home @elastic/appex-sharedux src/platform/plugins/shared/inspector @elastic/kibana-presentation +src/platform/plugins/shared/kibana_react @elastic/appex-sharedux +src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management +src/platform/plugins/shared/navigation @elastic/appex-sharedux src/platform/plugins/shared/presentation_util @elastic/kibana-presentation +src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/platform/plugins/shared/saved_objects_finder @elastic/kibana-data-discovery +src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/platform/plugins/shared/saved_search @elastic/kibana-data-discovery +src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux +src/platform/plugins/shared/share @elastic/appex-sharedux +src/platform/plugins/shared/ui_actions @elastic/appex-sharedux +src/platform/plugins/shared/ui_actions_enhanced @elastic/appex-sharedux src/platform/plugins/shared/unified_doc_viewer @elastic/kibana-data-discovery src/platform/plugins/shared/unified_histogram @elastic/kibana-data-discovery src/plugins/chart_expressions/common @elastic/kibana-visualizations @@ -648,35 +665,18 @@ src/plugins/chart_expressions/expression_partition_vis @elastic/kibana-visualiza src/plugins/chart_expressions/expression_tagcloud @elastic/kibana-visualizations 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/event_annotation @elastic/kibana-visualizations src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations -src/plugins/files @elastic/appex-sharedux -src/plugins/files_management @elastic/appex-sharedux src/plugins/ftr_apis @elastic/kibana-core -src/plugins/guided_onboarding @elastic/appex-sharedux -src/plugins/home @elastic/appex-sharedux -src/plugins/image_embeddable @elastic/appex-sharedux src/plugins/interactive_setup @elastic/kibana-security -src/plugins/kibana_overview @elastic/appex-sharedux -src/plugins/kibana_react @elastic/appex-sharedux src/plugins/kibana_usage_collection @elastic/kibana-core -src/plugins/kibana_utils @elastic/appex-sharedux -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_management @elastic/kibana-core -src/plugins/saved_objects_tagging_oss @elastic/appex-sharedux -src/plugins/screenshot_mode @elastic/appex-sharedux -src/plugins/share @elastic/appex-sharedux src/plugins/telemetry @elastic/kibana-core 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_search @elastic/kibana-visualizations src/plugins/url_forwarding @elastic/kibana-visualizations src/plugins/usage_collection @elastic/kibana-core @@ -832,10 +832,13 @@ x-pack/platform/plugins/private/banners @elastic/appex-sharedux x-pack/platform/plugins/private/canvas @elastic/kibana-presentation x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration @elastic/kibana-management x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management +x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux 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/global_search_bar @elastic/appex-sharedux +x-pack/platform/plugins/private/global_search_providers @elastic/appex-sharedux x-pack/platform/plugins/private/grokdebugger @elastic/kibana-management x-pack/platform/plugins/private/index_lifecycle_management @elastic/kibana-management x-pack/platform/plugins/private/license_api_guard @elastic/kibana-management @@ -844,8 +847,10 @@ x-pack/platform/plugins/private/monitoring @elastic/stack-monitoring x-pack/platform/plugins/private/monitoring_collection @elastic/stack-monitoring x-pack/platform/plugins/private/painless_lab @elastic/kibana-management x-pack/platform/plugins/private/remote_clusters @elastic/kibana-management +x-pack/platform/plugins/private/reporting @elastic/appex-sharedux x-pack/platform/plugins/private/rollup @elastic/kibana-management x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management +x-pack/platform/plugins/private/saved_objects_tagging @elastic/appex-sharedux x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management x-pack/platform/plugins/private/transform @elastic/ml-ui x-pack/platform/plugins/private/translations @elastic/kibana-localization @@ -864,6 +869,7 @@ x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/platform/plugins/shared/event_log @elastic/response-ops x-pack/platform/plugins/shared/fields_metadata @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/fleet @elastic/fleet +x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux x-pack/platform/plugins/shared/index_management @elastic/kibana-management x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management @@ -873,11 +879,13 @@ x-pack/platform/plugins/shared/logs_data_access @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/logs_shared @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/maps @elastic/kibana-presentation x-pack/platform/plugins/shared/ml @elastic/ml-ui +x-pack/platform/plugins/shared/notifications @elastic/appex-sharedux x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant @elastic/obs-ai-assistant x-pack/platform/plugins/shared/osquery @elastic/security-defend-workflows x-pack/platform/plugins/shared/rule_registry @elastic/response-ops @elastic/obs-ux-management-team x-pack/platform/plugins/shared/screenshotting @elastic/kibana-reporting-services x-pack/platform/plugins/shared/searchprofiler @elastic/kibana-management +x-pack/platform/plugins/shared/serverless @elastic/appex-sharedux x-pack/platform/plugins/shared/stack_alerts @elastic/response-ops x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops @@ -887,21 +895,13 @@ x-pack/plugins/cloud_integrations/cloud_chat @elastic/kibana-core 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/drilldowns/url_drilldown @elastic/appex-sharedux x-pack/plugins/encrypted_saved_objects @elastic/kibana-security x-pack/plugins/features @elastic/kibana-core -x-pack/plugins/global_search @elastic/appex-sharedux -x-pack/plugins/global_search_bar @elastic/appex-sharedux -x-pack/plugins/global_search_providers @elastic/appex-sharedux x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/lens @elastic/kibana-visualizations x-pack/plugins/licensing @elastic/kibana-core -x-pack/plugins/notifications @elastic/appex-sharedux -x-pack/plugins/reporting @elastic/appex-sharedux -x-pack/plugins/saved_objects_tagging @elastic/appex-sharedux x-pack/plugins/security @elastic/kibana-security -x-pack/plugins/serverless @elastic/appex-sharedux x-pack/plugins/spaces @elastic/kibana-security x-pack/plugins/telemetry_collection_xpack @elastic/kibana-core x-pack/plugins/upgrade_assistant @elastic/kibana-core From 1d8aead5587cf95685513f7444a44c0119a03360 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 2 Jan 2025 13:48:27 +0100 Subject: [PATCH 43/43] fix prettier --- x-pack/platform/plugins/private/banners/jest.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/x-pack/platform/plugins/private/banners/jest.config.js b/x-pack/platform/plugins/private/banners/jest.config.js index e4da6843c1326..1932d23e374ca 100644 --- a/x-pack/platform/plugins/private/banners/jest.config.js +++ b/x-pack/platform/plugins/private/banners/jest.config.js @@ -9,7 +9,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/private/banners'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/banners', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/banners', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/private/banners/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/private/banners/{common,public,server}/**/*.{ts,tsx}', + ], };