From f4a06f5f4ee932df2bb10962571c8dd32538f321 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:12:04 +0100 Subject: [PATCH 001/129] Relocating module `@kbn/advanced-settings-plugin` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/private}/advanced_settings/README.md | 0 .../plugins/private}/advanced_settings/kibana.jsonc | 0 .../plugins/private}/advanced_settings/public/index.ts | 0 .../plugins/private}/advanced_settings/public/plugin.tsx | 0 .../plugins/private}/advanced_settings/public/types.ts | 0 .../advanced_settings/server/capabilities_provider.ts | 0 .../plugins/private}/advanced_settings/server/config.ts | 0 .../plugins/private}/advanced_settings/server/index.ts | 0 .../plugins/private}/advanced_settings/server/plugin.ts | 0 .../plugins/private}/advanced_settings/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 16 files changed, 8 insertions(+), 8 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 d75759814bad0..d0b5b86fbeded 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -623,9 +623,9 @@ src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql +src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/platform/plugins/shared/esql @elastic/kibana-esql src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql -src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/bfetch @elastic/appex-sharedux src/plugins/chart_expressions/common @elastic/kibana-visualizations diff --git a/.i18nrc.json b/.i18nrc.json index 12294fb37e5a2..db01aa0c34293 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/plugins/ai_assistant_management/selection", "alerts": "packages/kbn-alerts/src", "alertsUIShared": "packages/kbn-alerts-ui-shared/src", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index dc65c9df54e92..35e30c814d1da 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 6654547617b12..de7883aa0cd5b 100644 --- a/package.json +++ b/package.json @@ -157,7 +157,7 @@ "@kbn/actions-plugin": "link:x-pack/plugins/actions", "@kbn/actions-simulators-plugin": "link:x-pack/test/alerting_api_integration/common/plugins/actions_simulators", "@kbn/actions-types": "link:packages/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/packages/kbn-ai-assistant", "@kbn/ai-assistant-common": "link:x-pack/packages/kbn-ai-assistant-common", "@kbn/ai-assistant-management-plugin": "link:src/plugins/ai_assistant_management/selection", 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 2032eae1184e8..23e78339667f4 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": ["packages/kbn-actions-types"], "@kbn/actions-types/*": ["packages/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/packages/kbn-ai-assistant"], "@kbn/ai-assistant/*": ["x-pack/packages/kbn-ai-assistant/*"], "@kbn/ai-assistant-common": ["x-pack/packages/kbn-ai-assistant-common"], diff --git a/yarn.lock b/yarn.lock index 54bd760a01637..598ee2da56e0a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3840,7 +3840,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 4cc1ccc3ce9f8ac19e56da70dfa0a56f217b32b6 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:13:22 +0100 Subject: [PATCH 002/129] 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 d0b5b86fbeded..58fdfbc9765f2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -864,6 +864,7 @@ x-pack/packages/security/role_management_model @elastic/kibana-security x-pack/packages/security/ui_components @elastic/kibana-security x-pack/performance @elastic/appex-qa x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities +x-pack/platform/plugins/private/banners @elastic/appex-sharedux x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/plugins/actions @elastic/response-ops x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra @@ -871,7 +872,6 @@ x-pack/plugins/ai_infra/product_doc_base @elastic/appex-ai-infra x-pack/plugins/aiops @elastic/ml-ui x-pack/plugins/alerting @elastic/response-ops x-pack/plugins/asset_inventory @elastic/kibana-cloud-security-posture -x-pack/plugins/banners @elastic/appex-sharedux x-pack/plugins/canvas @elastic/kibana-presentation x-pack/plugins/cases @elastic/response-ops x-pack/plugins/cloud @elastic/kibana-core diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 35e30c814d1da..66c53934dd5b2 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -474,7 +474,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 de7883aa0cd5b..369d65a721dd3 100644 --- a/package.json +++ b/package.json @@ -194,7 +194,7 @@ "@kbn/asset-inventory-plugin": "link:x-pack/plugins/asset_inventory", "@kbn/audit-log-plugin": "link:x-pack/test/security_api_integration/plugins/audit_log", "@kbn/avc-banner": "link:packages/kbn-avc-banner", - "@kbn/banners-plugin": "link:x-pack/plugins/banners", + "@kbn/banners-plugin": "link:x-pack/platform/plugins/private/banners", "@kbn/bfetch-error": "link:packages/kbn-bfetch-error", "@kbn/bfetch-explorer-plugin": "link:examples/bfetch_explorer", "@kbn/bfetch-plugin": "link:src/plugins/bfetch", diff --git a/tsconfig.base.json b/tsconfig.base.json index 23e78339667f4..0a6862a72ed20 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -110,8 +110,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/bfetch-error": ["packages/kbn-bfetch-error"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 213c3f06f34aa..e1ad052d64281 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -16,7 +16,7 @@ "xpack.stackConnectors": "plugins/stack_connectors", "xpack.apm": "plugins/observability_solution/apm", "xpack.apmDataAccess": "plugins/observability_solution/apm_data_access", - "xpack.banners": "plugins/banners", + "xpack.banners": "platform/plugins/private/banners", "xpack.canvas": "plugins/canvas", "xpack.cases": "plugins/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 598ee2da56e0a..fe5d2c50c6cb4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4036,7 +4036,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 def3a63aa8cc1ff51cffc6219cfe6f9865b5616a Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:14:41 +0100 Subject: [PATCH 003/129] Relocating module `@kbn/bfetch-error` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- package.json | 2 +- packages/kbn-search-errors/BUILD.bazel | 2 +- .../platform/packages/shared}/kbn-bfetch-error/BUILD.bazel | 0 .../platform/packages/shared}/kbn-bfetch-error/README.md | 0 .../platform/packages/shared}/kbn-bfetch-error/index.ts | 0 .../platform/packages/shared}/kbn-bfetch-error/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-bfetch-error/kibana.jsonc | 0 .../platform/packages/shared}/kbn-bfetch-error/package.json | 0 .../packages/shared}/kbn-bfetch-error/src/bfetch_error.ts | 0 .../platform/packages/shared}/kbn-bfetch-error/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 10 insertions(+), 10 deletions(-) rename {packages => src/platform/packages/shared}/kbn-bfetch-error/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-bfetch-error/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-bfetch-error/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-bfetch-error/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-bfetch-error/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-bfetch-error/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-bfetch-error/src/bfetch_error.ts (100%) rename {packages => src/platform/packages/shared}/kbn-bfetch-error/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 58fdfbc9765f2..ef4d6ceb7e434 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -299,7 +299,6 @@ packages/kbn-babel-preset @elastic/kibana-operations packages/kbn-babel-register @elastic/kibana-operations packages/kbn-babel-transform @elastic/kibana-operations packages/kbn-bazel-runner @elastic/kibana-operations -packages/kbn-bfetch-error @elastic/appex-sharedux 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 @@ -619,6 +618,7 @@ packages/shared-ux/table_persist @elastic/appex-sharedux src/core @elastic/kibana-core src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql +src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql diff --git a/.i18nrc.json b/.i18nrc.json index db01aa0c34293..35966acd6a959 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -9,7 +9,7 @@ "autocomplete": "packages/kbn-securitysolution-autocomplete/src", "avcBanner": "packages/kbn-avc-banner/src", "bfetch": "src/plugins/bfetch", - "bfetchError": "packages/kbn-bfetch-error", + "bfetchError": "src/platform/packages/shared/kbn-bfetch-error", "cases": ["packages/kbn-cases-components"], "cellActions": "packages/kbn-cell-actions", "charts": "src/plugins/charts", diff --git a/package.json b/package.json index 369d65a721dd3..e78dbe259fab5 100644 --- a/package.json +++ b/package.json @@ -195,7 +195,7 @@ "@kbn/audit-log-plugin": "link:x-pack/test/security_api_integration/plugins/audit_log", "@kbn/avc-banner": "link:packages/kbn-avc-banner", "@kbn/banners-plugin": "link:x-pack/platform/plugins/private/banners", - "@kbn/bfetch-error": "link:packages/kbn-bfetch-error", + "@kbn/bfetch-error": "link:src/platform/packages/shared/kbn-bfetch-error", "@kbn/bfetch-explorer-plugin": "link:examples/bfetch_explorer", "@kbn/bfetch-plugin": "link:src/plugins/bfetch", "@kbn/calculate-auto": "link:packages/kbn-calculate-auto", diff --git a/packages/kbn-search-errors/BUILD.bazel b/packages/kbn-search-errors/BUILD.bazel index b25a9f900f214..b6ad3632bc25e 100644 --- a/packages/kbn-search-errors/BUILD.bazel +++ b/packages/kbn-search-errors/BUILD.bazel @@ -22,7 +22,7 @@ SRCS = glob( ) BUNDLER_DEPS = [ - "//packages/kbn-bfetch-error", + "//src/platform/packages/shared/kbn-bfetch-error", "//packages/kbn-i18n", "@npm//@elastic/elasticsearch", "@npm//@elastic/eui", diff --git a/packages/kbn-bfetch-error/BUILD.bazel b/src/platform/packages/shared/kbn-bfetch-error/BUILD.bazel similarity index 100% rename from packages/kbn-bfetch-error/BUILD.bazel rename to src/platform/packages/shared/kbn-bfetch-error/BUILD.bazel diff --git a/packages/kbn-bfetch-error/README.md b/src/platform/packages/shared/kbn-bfetch-error/README.md similarity index 100% rename from packages/kbn-bfetch-error/README.md rename to src/platform/packages/shared/kbn-bfetch-error/README.md diff --git a/packages/kbn-bfetch-error/index.ts b/src/platform/packages/shared/kbn-bfetch-error/index.ts similarity index 100% rename from packages/kbn-bfetch-error/index.ts rename to src/platform/packages/shared/kbn-bfetch-error/index.ts diff --git a/packages/kbn-bfetch-error/jest.config.js b/src/platform/packages/shared/kbn-bfetch-error/jest.config.js similarity index 83% rename from packages/kbn-bfetch-error/jest.config.js rename to src/platform/packages/shared/kbn-bfetch-error/jest.config.js index 88b5bf7b9adc8..4fe3c6b0410d3 100644 --- a/packages/kbn-bfetch-error/jest.config.js +++ b/src/platform/packages/shared/kbn-bfetch-error/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-bfetch-error'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-bfetch-error'], }; diff --git a/packages/kbn-bfetch-error/kibana.jsonc b/src/platform/packages/shared/kbn-bfetch-error/kibana.jsonc similarity index 100% rename from packages/kbn-bfetch-error/kibana.jsonc rename to src/platform/packages/shared/kbn-bfetch-error/kibana.jsonc diff --git a/packages/kbn-bfetch-error/package.json b/src/platform/packages/shared/kbn-bfetch-error/package.json similarity index 100% rename from packages/kbn-bfetch-error/package.json rename to src/platform/packages/shared/kbn-bfetch-error/package.json diff --git a/packages/kbn-bfetch-error/src/bfetch_error.ts b/src/platform/packages/shared/kbn-bfetch-error/src/bfetch_error.ts similarity index 100% rename from packages/kbn-bfetch-error/src/bfetch_error.ts rename to src/platform/packages/shared/kbn-bfetch-error/src/bfetch_error.ts diff --git a/packages/kbn-bfetch-error/tsconfig.json b/src/platform/packages/shared/kbn-bfetch-error/tsconfig.json similarity index 83% rename from packages/kbn-bfetch-error/tsconfig.json rename to src/platform/packages/shared/kbn-bfetch-error/tsconfig.json index c4703bc51cf6c..bc8d82db4a23d 100644 --- a/packages/kbn-bfetch-error/tsconfig.json +++ b/src/platform/packages/shared/kbn-bfetch-error/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 0a6862a72ed20..2f4ff3e24340f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -114,8 +114,8 @@ "@kbn/banners-plugin/*": ["x-pack/platform/plugins/private/banners/*"], "@kbn/bazel-runner": ["packages/kbn-bazel-runner"], "@kbn/bazel-runner/*": ["packages/kbn-bazel-runner/*"], - "@kbn/bfetch-error": ["packages/kbn-bfetch-error"], - "@kbn/bfetch-error/*": ["packages/kbn-bfetch-error/*"], + "@kbn/bfetch-error": ["src/platform/packages/shared/kbn-bfetch-error"], + "@kbn/bfetch-error/*": ["src/platform/packages/shared/kbn-bfetch-error/*"], "@kbn/bfetch-explorer-plugin": ["examples/bfetch_explorer"], "@kbn/bfetch-explorer-plugin/*": ["examples/bfetch_explorer/*"], "@kbn/bfetch-plugin": ["src/plugins/bfetch"], diff --git a/yarn.lock b/yarn.lock index fe5d2c50c6cb4..b65c8f9168aad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4044,7 +4044,7 @@ version "0.0.0" uid "" -"@kbn/bfetch-error@link:packages/kbn-bfetch-error": +"@kbn/bfetch-error@link:src/platform/packages/shared/kbn-bfetch-error": version "0.0.0" uid "" From 63f4c35fc3024d92ec352928caf7de9f921fc19b Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:16:07 +0100 Subject: [PATCH 004/129] Relocating module `@kbn/bfetch-plugin` --- .github/CODEOWNERS | 2 +- .github/paths-labeller.yml | 2 +- .i18nrc.json | 2 +- docs/developer/best-practices/index.asciidoc | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- src/{plugins => platform/plugins/shared}/bfetch/README.md | 0 .../plugins/shared}/bfetch/common/batch.ts | 0 .../bfetch/common/buffer/create_batched_function.test.ts | 0 .../bfetch/common/buffer/create_batched_function.ts | 0 .../plugins/shared}/bfetch/common/buffer/index.ts | 0 .../plugins/shared}/bfetch/common/constants.ts | 0 .../plugins/shared}/bfetch/common/index.ts | 0 .../plugins/shared}/bfetch/common/streaming/index.ts | 0 .../plugins/shared}/bfetch/common/streaming/types.ts | 0 .../plugins/shared}/bfetch/common/types.ts | 0 .../plugins/shared}/bfetch/common/util/index.ts | 0 .../plugins/shared}/bfetch/common/util/normalize_error.ts | 0 .../plugins/shared}/bfetch/common/util/query_params.ts | 0 .../shared}/bfetch/common/util/remove_leading_slash.ts | 0 .../plugins/shared}/bfetch/docs/browser/reference.md | 0 .../plugins/shared}/bfetch/docs/server/reference.md | 0 .../plugins/shared}/bfetch/jest.config.js | 8 ++++---- .../plugins/shared}/bfetch/kibana.jsonc | 0 .../batching/create_streaming_batched_function.test.ts | 0 .../public/batching/create_streaming_batched_function.ts | 0 .../plugins/shared}/bfetch/public/batching/index.ts | 0 .../plugins/shared}/bfetch/public/batching/types.ts | 0 .../plugins/shared}/bfetch/public/index.ts | 0 .../plugins/shared}/bfetch/public/mocks.ts | 0 .../plugins/shared}/bfetch/public/plugin.ts | 0 .../bfetch/public/streaming/fetch_streaming.test.ts | 0 .../shared}/bfetch/public/streaming/fetch_streaming.ts | 0 .../bfetch/public/streaming/from_streaming_xhr.test.ts | 0 .../shared}/bfetch/public/streaming/from_streaming_xhr.ts | 0 .../plugins/shared}/bfetch/public/streaming/index.ts | 0 .../shared}/bfetch/public/streaming/inflate_response.ts | 0 .../plugins/shared}/bfetch/public/streaming/split.test.ts | 0 .../plugins/shared}/bfetch/public/streaming/split.ts | 0 .../plugins/shared}/bfetch/public/test_helpers/xhr.ts | 0 .../plugins/shared}/bfetch/server/index.ts | 0 .../plugins/shared}/bfetch/server/mocks.ts | 0 .../plugins/shared}/bfetch/server/plugin.ts | 0 .../bfetch/server/streaming/create_compressed_stream.ts | 0 .../bfetch/server/streaming/create_ndjson_stream.ts | 0 .../shared}/bfetch/server/streaming/create_stream.ts | 0 .../plugins/shared}/bfetch/server/streaming/index.ts | 0 .../plugins/shared}/bfetch/server/ui_settings.ts | 0 .../plugins/shared}/bfetch/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 51 files changed, 14 insertions(+), 14 deletions(-) rename src/{plugins => platform/plugins/shared}/bfetch/README.md (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/batch.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/buffer/create_batched_function.test.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/buffer/create_batched_function.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/buffer/index.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/streaming/index.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/streaming/types.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/types.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/util/index.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/util/normalize_error.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/util/query_params.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/common/util/remove_leading_slash.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/docs/browser/reference.md (100%) rename src/{plugins => platform/plugins/shared}/bfetch/docs/server/reference.md (100%) rename src/{plugins => platform/plugins/shared}/bfetch/jest.config.js (72%) rename src/{plugins => platform/plugins/shared}/bfetch/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/batching/create_streaming_batched_function.test.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/batching/create_streaming_batched_function.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/batching/index.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/batching/types.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/streaming/fetch_streaming.test.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/streaming/fetch_streaming.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/streaming/from_streaming_xhr.test.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/streaming/from_streaming_xhr.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/streaming/index.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/streaming/inflate_response.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/streaming/split.test.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/streaming/split.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/public/test_helpers/xhr.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/server/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/server/streaming/create_compressed_stream.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/server/streaming/create_ndjson_stream.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/server/streaming/create_stream.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/server/streaming/index.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/server/ui_settings.ts (100%) rename src/{plugins => platform/plugins/shared}/bfetch/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ef4d6ceb7e434..286558b38b5e4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -624,10 +624,10 @@ src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management +src/platform/plugins/shared/bfetch @elastic/appex-sharedux src/platform/plugins/shared/esql @elastic/kibana-esql src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql src/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant -src/plugins/bfetch @elastic/appex-sharedux 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 diff --git a/.github/paths-labeller.yml b/.github/paths-labeller.yml index dbbefda24c9ac..05d6fa1a1d612 100644 --- a/.github/paths-labeller.yml +++ b/.github/paths-labeller.yml @@ -7,7 +7,7 @@ - 'x-pack/plugins/dashboard_enhanced/public/services/drilldowns/**/*.*' - 'Feature:ExpressionLanguage': - 'src/plugins/expressions/**/*.*' - - 'src/plugins/bfetch/**/*.*' + - 'src/platform/plugins/shared/bfetch/**/*.*' - 'Team:obs-ux-infra_services': - 'x-pack/plugins/observability_solution/apm/**/*.*' - 'x-pack/test/apm_api_integration/**/*.*' diff --git a/.i18nrc.json b/.i18nrc.json index 35966acd6a959..7c6a724ca3029 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -8,7 +8,7 @@ "apmOss": "src/plugins/apm_oss", "autocomplete": "packages/kbn-securitysolution-autocomplete/src", "avcBanner": "packages/kbn-avc-banner/src", - "bfetch": "src/plugins/bfetch", + "bfetch": "src/platform/plugins/shared/bfetch", "bfetchError": "src/platform/packages/shared/kbn-bfetch-error", "cases": ["packages/kbn-cases-components"], "cellActions": "packages/kbn-cell-actions", diff --git a/docs/developer/best-practices/index.asciidoc b/docs/developer/best-practices/index.asciidoc index 57a10ee06a697..777e7a35efe81 100644 --- a/docs/developer/best-practices/index.asciidoc +++ b/docs/developer/best-practices/index.asciidoc @@ -15,7 +15,7 @@ Are you planning with scalability in mind? * Are you loading a minimal amount of JS code in the browser? ** See <> for more guidance. * Do you make lots of requests to the server? -** If so, have you considered using the streaming {kib-repo}tree/{branch}/src/plugins/bfetch[bfetch service]? +** If so, have you considered using the streaming {kib-repo}tree/{branch}/src/platform/plugins/shared/bfetch[bfetch service]? [discrete] === Accessibility diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 66c53934dd5b2..24c973917c8db 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -32,7 +32,7 @@ as uiSettings within the code. |The aiAssistantManagementSelection plugin manages the Ai Assistant management section. -|{kib-repo}blob/{branch}/src/plugins/bfetch/README.md[bfetch] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/bfetch/README.md[bfetch] |bfetch allows to batch HTTP requests and streams responses back. diff --git a/package.json b/package.json index e78dbe259fab5..8ea8c81137186 100644 --- a/package.json +++ b/package.json @@ -197,7 +197,7 @@ "@kbn/banners-plugin": "link:x-pack/platform/plugins/private/banners", "@kbn/bfetch-error": "link:src/platform/packages/shared/kbn-bfetch-error", "@kbn/bfetch-explorer-plugin": "link:examples/bfetch_explorer", - "@kbn/bfetch-plugin": "link:src/plugins/bfetch", + "@kbn/bfetch-plugin": "link:src/platform/plugins/shared/bfetch", "@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/plugins/canvas", diff --git a/src/plugins/bfetch/README.md b/src/platform/plugins/shared/bfetch/README.md similarity index 100% rename from src/plugins/bfetch/README.md rename to src/platform/plugins/shared/bfetch/README.md diff --git a/src/plugins/bfetch/common/batch.ts b/src/platform/plugins/shared/bfetch/common/batch.ts similarity index 100% rename from src/plugins/bfetch/common/batch.ts rename to src/platform/plugins/shared/bfetch/common/batch.ts diff --git a/src/plugins/bfetch/common/buffer/create_batched_function.test.ts b/src/platform/plugins/shared/bfetch/common/buffer/create_batched_function.test.ts similarity index 100% rename from src/plugins/bfetch/common/buffer/create_batched_function.test.ts rename to src/platform/plugins/shared/bfetch/common/buffer/create_batched_function.test.ts diff --git a/src/plugins/bfetch/common/buffer/create_batched_function.ts b/src/platform/plugins/shared/bfetch/common/buffer/create_batched_function.ts similarity index 100% rename from src/plugins/bfetch/common/buffer/create_batched_function.ts rename to src/platform/plugins/shared/bfetch/common/buffer/create_batched_function.ts diff --git a/src/plugins/bfetch/common/buffer/index.ts b/src/platform/plugins/shared/bfetch/common/buffer/index.ts similarity index 100% rename from src/plugins/bfetch/common/buffer/index.ts rename to src/platform/plugins/shared/bfetch/common/buffer/index.ts diff --git a/src/plugins/bfetch/common/constants.ts b/src/platform/plugins/shared/bfetch/common/constants.ts similarity index 100% rename from src/plugins/bfetch/common/constants.ts rename to src/platform/plugins/shared/bfetch/common/constants.ts diff --git a/src/plugins/bfetch/common/index.ts b/src/platform/plugins/shared/bfetch/common/index.ts similarity index 100% rename from src/plugins/bfetch/common/index.ts rename to src/platform/plugins/shared/bfetch/common/index.ts diff --git a/src/plugins/bfetch/common/streaming/index.ts b/src/platform/plugins/shared/bfetch/common/streaming/index.ts similarity index 100% rename from src/plugins/bfetch/common/streaming/index.ts rename to src/platform/plugins/shared/bfetch/common/streaming/index.ts diff --git a/src/plugins/bfetch/common/streaming/types.ts b/src/platform/plugins/shared/bfetch/common/streaming/types.ts similarity index 100% rename from src/plugins/bfetch/common/streaming/types.ts rename to src/platform/plugins/shared/bfetch/common/streaming/types.ts diff --git a/src/plugins/bfetch/common/types.ts b/src/platform/plugins/shared/bfetch/common/types.ts similarity index 100% rename from src/plugins/bfetch/common/types.ts rename to src/platform/plugins/shared/bfetch/common/types.ts diff --git a/src/plugins/bfetch/common/util/index.ts b/src/platform/plugins/shared/bfetch/common/util/index.ts similarity index 100% rename from src/plugins/bfetch/common/util/index.ts rename to src/platform/plugins/shared/bfetch/common/util/index.ts diff --git a/src/plugins/bfetch/common/util/normalize_error.ts b/src/platform/plugins/shared/bfetch/common/util/normalize_error.ts similarity index 100% rename from src/plugins/bfetch/common/util/normalize_error.ts rename to src/platform/plugins/shared/bfetch/common/util/normalize_error.ts diff --git a/src/plugins/bfetch/common/util/query_params.ts b/src/platform/plugins/shared/bfetch/common/util/query_params.ts similarity index 100% rename from src/plugins/bfetch/common/util/query_params.ts rename to src/platform/plugins/shared/bfetch/common/util/query_params.ts diff --git a/src/plugins/bfetch/common/util/remove_leading_slash.ts b/src/platform/plugins/shared/bfetch/common/util/remove_leading_slash.ts similarity index 100% rename from src/plugins/bfetch/common/util/remove_leading_slash.ts rename to src/platform/plugins/shared/bfetch/common/util/remove_leading_slash.ts diff --git a/src/plugins/bfetch/docs/browser/reference.md b/src/platform/plugins/shared/bfetch/docs/browser/reference.md similarity index 100% rename from src/plugins/bfetch/docs/browser/reference.md rename to src/platform/plugins/shared/bfetch/docs/browser/reference.md diff --git a/src/plugins/bfetch/docs/server/reference.md b/src/platform/plugins/shared/bfetch/docs/server/reference.md similarity index 100% rename from src/plugins/bfetch/docs/server/reference.md rename to src/platform/plugins/shared/bfetch/docs/server/reference.md diff --git a/src/plugins/bfetch/jest.config.js b/src/platform/plugins/shared/bfetch/jest.config.js similarity index 72% rename from src/plugins/bfetch/jest.config.js rename to src/platform/plugins/shared/bfetch/jest.config.js index 1b98c6b39f043..73b05d22dbe2d 100644 --- a/src/plugins/bfetch/jest.config.js +++ b/src/platform/plugins/shared/bfetch/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/bfetch'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/bfetch', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/bfetch'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/bfetch', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/bfetch/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/bfetch/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/src/plugins/bfetch/kibana.jsonc b/src/platform/plugins/shared/bfetch/kibana.jsonc similarity index 100% rename from src/plugins/bfetch/kibana.jsonc rename to src/platform/plugins/shared/bfetch/kibana.jsonc diff --git a/src/plugins/bfetch/public/batching/create_streaming_batched_function.test.ts b/src/platform/plugins/shared/bfetch/public/batching/create_streaming_batched_function.test.ts similarity index 100% rename from src/plugins/bfetch/public/batching/create_streaming_batched_function.test.ts rename to src/platform/plugins/shared/bfetch/public/batching/create_streaming_batched_function.test.ts diff --git a/src/plugins/bfetch/public/batching/create_streaming_batched_function.ts b/src/platform/plugins/shared/bfetch/public/batching/create_streaming_batched_function.ts similarity index 100% rename from src/plugins/bfetch/public/batching/create_streaming_batched_function.ts rename to src/platform/plugins/shared/bfetch/public/batching/create_streaming_batched_function.ts diff --git a/src/plugins/bfetch/public/batching/index.ts b/src/platform/plugins/shared/bfetch/public/batching/index.ts similarity index 100% rename from src/plugins/bfetch/public/batching/index.ts rename to src/platform/plugins/shared/bfetch/public/batching/index.ts diff --git a/src/plugins/bfetch/public/batching/types.ts b/src/platform/plugins/shared/bfetch/public/batching/types.ts similarity index 100% rename from src/plugins/bfetch/public/batching/types.ts rename to src/platform/plugins/shared/bfetch/public/batching/types.ts diff --git a/src/plugins/bfetch/public/index.ts b/src/platform/plugins/shared/bfetch/public/index.ts similarity index 100% rename from src/plugins/bfetch/public/index.ts rename to src/platform/plugins/shared/bfetch/public/index.ts diff --git a/src/plugins/bfetch/public/mocks.ts b/src/platform/plugins/shared/bfetch/public/mocks.ts similarity index 100% rename from src/plugins/bfetch/public/mocks.ts rename to src/platform/plugins/shared/bfetch/public/mocks.ts diff --git a/src/plugins/bfetch/public/plugin.ts b/src/platform/plugins/shared/bfetch/public/plugin.ts similarity index 100% rename from src/plugins/bfetch/public/plugin.ts rename to src/platform/plugins/shared/bfetch/public/plugin.ts diff --git a/src/plugins/bfetch/public/streaming/fetch_streaming.test.ts b/src/platform/plugins/shared/bfetch/public/streaming/fetch_streaming.test.ts similarity index 100% rename from src/plugins/bfetch/public/streaming/fetch_streaming.test.ts rename to src/platform/plugins/shared/bfetch/public/streaming/fetch_streaming.test.ts diff --git a/src/plugins/bfetch/public/streaming/fetch_streaming.ts b/src/platform/plugins/shared/bfetch/public/streaming/fetch_streaming.ts similarity index 100% rename from src/plugins/bfetch/public/streaming/fetch_streaming.ts rename to src/platform/plugins/shared/bfetch/public/streaming/fetch_streaming.ts diff --git a/src/plugins/bfetch/public/streaming/from_streaming_xhr.test.ts b/src/platform/plugins/shared/bfetch/public/streaming/from_streaming_xhr.test.ts similarity index 100% rename from src/plugins/bfetch/public/streaming/from_streaming_xhr.test.ts rename to src/platform/plugins/shared/bfetch/public/streaming/from_streaming_xhr.test.ts diff --git a/src/plugins/bfetch/public/streaming/from_streaming_xhr.ts b/src/platform/plugins/shared/bfetch/public/streaming/from_streaming_xhr.ts similarity index 100% rename from src/plugins/bfetch/public/streaming/from_streaming_xhr.ts rename to src/platform/plugins/shared/bfetch/public/streaming/from_streaming_xhr.ts diff --git a/src/plugins/bfetch/public/streaming/index.ts b/src/platform/plugins/shared/bfetch/public/streaming/index.ts similarity index 100% rename from src/plugins/bfetch/public/streaming/index.ts rename to src/platform/plugins/shared/bfetch/public/streaming/index.ts diff --git a/src/plugins/bfetch/public/streaming/inflate_response.ts b/src/platform/plugins/shared/bfetch/public/streaming/inflate_response.ts similarity index 100% rename from src/plugins/bfetch/public/streaming/inflate_response.ts rename to src/platform/plugins/shared/bfetch/public/streaming/inflate_response.ts diff --git a/src/plugins/bfetch/public/streaming/split.test.ts b/src/platform/plugins/shared/bfetch/public/streaming/split.test.ts similarity index 100% rename from src/plugins/bfetch/public/streaming/split.test.ts rename to src/platform/plugins/shared/bfetch/public/streaming/split.test.ts diff --git a/src/plugins/bfetch/public/streaming/split.ts b/src/platform/plugins/shared/bfetch/public/streaming/split.ts similarity index 100% rename from src/plugins/bfetch/public/streaming/split.ts rename to src/platform/plugins/shared/bfetch/public/streaming/split.ts diff --git a/src/plugins/bfetch/public/test_helpers/xhr.ts b/src/platform/plugins/shared/bfetch/public/test_helpers/xhr.ts similarity index 100% rename from src/plugins/bfetch/public/test_helpers/xhr.ts rename to src/platform/plugins/shared/bfetch/public/test_helpers/xhr.ts diff --git a/src/plugins/bfetch/server/index.ts b/src/platform/plugins/shared/bfetch/server/index.ts similarity index 100% rename from src/plugins/bfetch/server/index.ts rename to src/platform/plugins/shared/bfetch/server/index.ts diff --git a/src/plugins/bfetch/server/mocks.ts b/src/platform/plugins/shared/bfetch/server/mocks.ts similarity index 100% rename from src/plugins/bfetch/server/mocks.ts rename to src/platform/plugins/shared/bfetch/server/mocks.ts diff --git a/src/plugins/bfetch/server/plugin.ts b/src/platform/plugins/shared/bfetch/server/plugin.ts similarity index 100% rename from src/plugins/bfetch/server/plugin.ts rename to src/platform/plugins/shared/bfetch/server/plugin.ts diff --git a/src/plugins/bfetch/server/streaming/create_compressed_stream.ts b/src/platform/plugins/shared/bfetch/server/streaming/create_compressed_stream.ts similarity index 100% rename from src/plugins/bfetch/server/streaming/create_compressed_stream.ts rename to src/platform/plugins/shared/bfetch/server/streaming/create_compressed_stream.ts diff --git a/src/plugins/bfetch/server/streaming/create_ndjson_stream.ts b/src/platform/plugins/shared/bfetch/server/streaming/create_ndjson_stream.ts similarity index 100% rename from src/plugins/bfetch/server/streaming/create_ndjson_stream.ts rename to src/platform/plugins/shared/bfetch/server/streaming/create_ndjson_stream.ts diff --git a/src/plugins/bfetch/server/streaming/create_stream.ts b/src/platform/plugins/shared/bfetch/server/streaming/create_stream.ts similarity index 100% rename from src/plugins/bfetch/server/streaming/create_stream.ts rename to src/platform/plugins/shared/bfetch/server/streaming/create_stream.ts diff --git a/src/plugins/bfetch/server/streaming/index.ts b/src/platform/plugins/shared/bfetch/server/streaming/index.ts similarity index 100% rename from src/plugins/bfetch/server/streaming/index.ts rename to src/platform/plugins/shared/bfetch/server/streaming/index.ts diff --git a/src/plugins/bfetch/server/ui_settings.ts b/src/platform/plugins/shared/bfetch/server/ui_settings.ts similarity index 100% rename from src/plugins/bfetch/server/ui_settings.ts rename to src/platform/plugins/shared/bfetch/server/ui_settings.ts diff --git a/src/plugins/bfetch/tsconfig.json b/src/platform/plugins/shared/bfetch/tsconfig.json similarity index 89% rename from src/plugins/bfetch/tsconfig.json rename to src/platform/plugins/shared/bfetch/tsconfig.json index d75e6085d4537..17229edee82c6 100644 --- a/src/plugins/bfetch/tsconfig.json +++ b/src/platform/plugins/shared/bfetch/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 2f4ff3e24340f..2a66a46e677a1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -118,8 +118,8 @@ "@kbn/bfetch-error/*": ["src/platform/packages/shared/kbn-bfetch-error/*"], "@kbn/bfetch-explorer-plugin": ["examples/bfetch_explorer"], "@kbn/bfetch-explorer-plugin/*": ["examples/bfetch_explorer/*"], - "@kbn/bfetch-plugin": ["src/plugins/bfetch"], - "@kbn/bfetch-plugin/*": ["src/plugins/bfetch/*"], + "@kbn/bfetch-plugin": ["src/platform/plugins/shared/bfetch"], + "@kbn/bfetch-plugin/*": ["src/platform/plugins/shared/bfetch/*"], "@kbn/calculate-auto": ["packages/kbn-calculate-auto"], "@kbn/calculate-auto/*": ["packages/kbn-calculate-auto/*"], "@kbn/calculate-width-from-char-count": ["packages/kbn-calculate-width-from-char-count"], diff --git a/yarn.lock b/yarn.lock index b65c8f9168aad..25a5e003fc082 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4052,7 +4052,7 @@ version "0.0.0" uid "" -"@kbn/bfetch-plugin@link:src/plugins/bfetch": +"@kbn/bfetch-plugin@link:src/platform/plugins/shared/bfetch": version "0.0.0" uid "" From 0354542e183c3749c946dcbc6254686b0a7f875a Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:17:37 +0100 Subject: [PATCH 005/129] Relocating module `@kbn/code-editor` --- .github/CODEOWNERS | 2 +- package.json | 2 +- packages/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../packages/shared}/shared-ux/code_editor/impl/BUILD.bazel | 0 .../packages/shared}/shared-ux/code_editor/impl/README.mdx | 0 .../code_editor/impl/__snapshots__/code_editor.test.tsx.snap | 0 .../shared-ux/code_editor/impl/code_editor.stories.tsx | 0 .../shared}/shared-ux/code_editor/impl/code_editor.test.tsx | 0 .../shared}/shared-ux/code_editor/impl/code_editor.tsx | 0 .../shared}/shared-ux/code_editor/impl/editor.styles.ts | 0 .../packages/shared}/shared-ux/code_editor/impl/index.tsx | 0 .../shared}/shared-ux/code_editor/impl/jest.config.js | 2 +- .../packages/shared}/shared-ux/code_editor/impl/kibana.jsonc | 0 .../shared}/shared-ux/code_editor/impl/languages/constants.ts | 0 .../shared-ux/code_editor/impl/languages/css/constants.ts | 0 .../shared}/shared-ux/code_editor/impl/languages/css/index.ts | 0 .../shared-ux/code_editor/impl/languages/css/language.ts | 0 .../shared-ux/code_editor/impl/languages/grok/constants.ts | 0 .../shared-ux/code_editor/impl/languages/grok/index.ts | 0 .../code_editor/impl/languages/grok/language.test.ts | 0 .../shared-ux/code_editor/impl/languages/grok/language.ts | 0 .../code_editor/impl/languages/handlebars/constants.ts | 0 .../shared-ux/code_editor/impl/languages/handlebars/index.ts | 0 .../code_editor/impl/languages/handlebars/language.ts | 0 .../shared-ux/code_editor/impl/languages/hjson/constants.ts | 0 .../shared-ux/code_editor/impl/languages/hjson/index.ts | 0 .../shared-ux/code_editor/impl/languages/hjson/language.ts | 0 .../shared}/shared-ux/code_editor/impl/languages/index.ts | 0 .../code_editor/impl/languages/markdown/constants.ts | 0 .../shared-ux/code_editor/impl/languages/markdown/index.ts | 0 .../shared-ux/code_editor/impl/languages/markdown/language.ts | 0 .../shared-ux/code_editor/impl/languages/yaml/constants.ts | 0 .../shared-ux/code_editor/impl/languages/yaml/index.ts | 0 .../shared-ux/code_editor/impl/languages/yaml/language.ts | 0 .../shared}/shared-ux/code_editor/impl/mocks/storybook.ts | 0 .../packages/shared}/shared-ux/code_editor/impl/package.json | 0 .../shared}/shared-ux/code_editor/impl/placeholder_widget.ts | 0 .../shared-ux/code_editor/impl/react_monaco_editor/README.md | 0 .../shared-ux/code_editor/impl/react_monaco_editor/editor.tsx | 0 .../shared-ux/code_editor/impl/react_monaco_editor/index.ts | 0 .../shared}/shared-ux/code_editor/impl/register_languages.ts | 0 .../shared}/shared-ux/code_editor/impl/remeasure_fonts.ts | 0 .../packages/shared}/shared-ux/code_editor/impl/tsconfig.json | 4 ++-- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 45 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/__snapshots__/code_editor.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/code_editor.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/code_editor.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/code_editor.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/editor.styles.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/jest.config.js (94%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/constants.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/css/constants.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/css/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/css/language.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/grok/constants.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/grok/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/grok/language.test.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/grok/language.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/handlebars/constants.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/handlebars/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/handlebars/language.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/hjson/constants.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/hjson/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/hjson/language.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/markdown/constants.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/markdown/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/markdown/language.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/yaml/constants.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/yaml/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/languages/yaml/language.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/mocks/storybook.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/placeholder_widget.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/react_monaco_editor/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/react_monaco_editor/editor.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/react_monaco_editor/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/register_languages.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/remeasure_fonts.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/impl/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 286558b38b5e4..1c620d07f3305 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -571,7 +571,6 @@ packages/shared-ux/card/no_data/impl @elastic/appex-sharedux packages/shared-ux/card/no_data/mocks @elastic/appex-sharedux packages/shared-ux/card/no_data/types @elastic/appex-sharedux packages/shared-ux/chrome/navigation @elastic/appex-sharedux -packages/shared-ux/code_editor/impl @elastic/appex-sharedux packages/shared-ux/code_editor/mocks @elastic/appex-sharedux packages/shared-ux/error_boundary @elastic/appex-sharedux packages/shared-ux/file/context @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql +src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/platform/plugins/shared/bfetch @elastic/appex-sharedux src/platform/plugins/shared/esql @elastic/kibana-esql diff --git a/package.json b/package.json index 8ea8c81137186..07ecbf2ed4eaf 100644 --- a/package.json +++ b/package.json @@ -222,7 +222,7 @@ "@kbn/cloud-security-posture-common": "link:x-pack/packages/kbn-cloud-security-posture/common", "@kbn/cloud-security-posture-graph": "link:x-pack/packages/kbn-cloud-security-posture/graph", "@kbn/cloud-security-posture-plugin": "link:x-pack/plugins/cloud_security_posture", - "@kbn/code-editor": "link:packages/shared-ux/code_editor/impl", + "@kbn/code-editor": "link:src/platform/packages/shared/shared-ux/code_editor/impl", "@kbn/code-editor-mock": "link:packages/shared-ux/code_editor/mocks", "@kbn/coloring": "link:packages/kbn-coloring", "@kbn/config": "link:packages/kbn-config", diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel index 80613093c093b..e9ccd954e4034 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel @@ -38,7 +38,7 @@ webpack_cli( "//packages/kbn-peggy-loader", "//packages/shared-ux/error_boundary", "//packages/kbn-rison", - "//packages/shared-ux/code_editor/impl:code_editor", + "//src/platform/packages/shared/shared-ux/code_editor/impl:code_editor", "//packages/react/kibana_context/theme", ], output_dir = True, diff --git a/packages/shared-ux/code_editor/impl/BUILD.bazel b/src/platform/packages/shared/shared-ux/code_editor/impl/BUILD.bazel similarity index 100% rename from packages/shared-ux/code_editor/impl/BUILD.bazel rename to src/platform/packages/shared/shared-ux/code_editor/impl/BUILD.bazel diff --git a/packages/shared-ux/code_editor/impl/README.mdx b/src/platform/packages/shared/shared-ux/code_editor/impl/README.mdx similarity index 100% rename from packages/shared-ux/code_editor/impl/README.mdx rename to src/platform/packages/shared/shared-ux/code_editor/impl/README.mdx diff --git a/packages/shared-ux/code_editor/impl/__snapshots__/code_editor.test.tsx.snap b/src/platform/packages/shared/shared-ux/code_editor/impl/__snapshots__/code_editor.test.tsx.snap similarity index 100% rename from packages/shared-ux/code_editor/impl/__snapshots__/code_editor.test.tsx.snap rename to src/platform/packages/shared/shared-ux/code_editor/impl/__snapshots__/code_editor.test.tsx.snap diff --git a/packages/shared-ux/code_editor/impl/code_editor.stories.tsx b/src/platform/packages/shared/shared-ux/code_editor/impl/code_editor.stories.tsx similarity index 100% rename from packages/shared-ux/code_editor/impl/code_editor.stories.tsx rename to src/platform/packages/shared/shared-ux/code_editor/impl/code_editor.stories.tsx diff --git a/packages/shared-ux/code_editor/impl/code_editor.test.tsx b/src/platform/packages/shared/shared-ux/code_editor/impl/code_editor.test.tsx similarity index 100% rename from packages/shared-ux/code_editor/impl/code_editor.test.tsx rename to src/platform/packages/shared/shared-ux/code_editor/impl/code_editor.test.tsx diff --git a/packages/shared-ux/code_editor/impl/code_editor.tsx b/src/platform/packages/shared/shared-ux/code_editor/impl/code_editor.tsx similarity index 100% rename from packages/shared-ux/code_editor/impl/code_editor.tsx rename to src/platform/packages/shared/shared-ux/code_editor/impl/code_editor.tsx diff --git a/packages/shared-ux/code_editor/impl/editor.styles.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/editor.styles.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/editor.styles.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/editor.styles.ts diff --git a/packages/shared-ux/code_editor/impl/index.tsx b/src/platform/packages/shared/shared-ux/code_editor/impl/index.tsx similarity index 100% rename from packages/shared-ux/code_editor/impl/index.tsx rename to src/platform/packages/shared/shared-ux/code_editor/impl/index.tsx diff --git a/packages/shared-ux/code_editor/impl/jest.config.js b/src/platform/packages/shared/shared-ux/code_editor/impl/jest.config.js similarity index 94% rename from packages/shared-ux/code_editor/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/code_editor/impl/jest.config.js index bb9dfd1bbafc0..833c675b49cbf 100644 --- a/packages/shared-ux/code_editor/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/code_editor/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', + rootDir: '../../../../../../..', roots: ['/packages/shared-ux/code_editor'], }; diff --git a/packages/shared-ux/code_editor/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/code_editor/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/code_editor/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/code_editor/impl/kibana.jsonc diff --git a/packages/shared-ux/code_editor/impl/languages/constants.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/constants.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/constants.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/constants.ts diff --git a/packages/shared-ux/code_editor/impl/languages/css/constants.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/css/constants.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/css/constants.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/css/constants.ts diff --git a/packages/shared-ux/code_editor/impl/languages/css/index.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/css/index.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/css/index.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/css/index.ts diff --git a/packages/shared-ux/code_editor/impl/languages/css/language.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/css/language.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/css/language.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/css/language.ts diff --git a/packages/shared-ux/code_editor/impl/languages/grok/constants.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/grok/constants.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/grok/constants.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/grok/constants.ts diff --git a/packages/shared-ux/code_editor/impl/languages/grok/index.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/grok/index.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/grok/index.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/grok/index.ts diff --git a/packages/shared-ux/code_editor/impl/languages/grok/language.test.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/grok/language.test.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/grok/language.test.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/grok/language.test.ts diff --git a/packages/shared-ux/code_editor/impl/languages/grok/language.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/grok/language.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/grok/language.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/grok/language.ts diff --git a/packages/shared-ux/code_editor/impl/languages/handlebars/constants.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/handlebars/constants.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/handlebars/constants.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/handlebars/constants.ts diff --git a/packages/shared-ux/code_editor/impl/languages/handlebars/index.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/handlebars/index.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/handlebars/index.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/handlebars/index.ts diff --git a/packages/shared-ux/code_editor/impl/languages/handlebars/language.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/handlebars/language.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/handlebars/language.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/handlebars/language.ts diff --git a/packages/shared-ux/code_editor/impl/languages/hjson/constants.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/hjson/constants.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/hjson/constants.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/hjson/constants.ts diff --git a/packages/shared-ux/code_editor/impl/languages/hjson/index.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/hjson/index.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/hjson/index.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/hjson/index.ts diff --git a/packages/shared-ux/code_editor/impl/languages/hjson/language.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/hjson/language.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/hjson/language.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/hjson/language.ts diff --git a/packages/shared-ux/code_editor/impl/languages/index.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/index.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/index.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/index.ts diff --git a/packages/shared-ux/code_editor/impl/languages/markdown/constants.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/markdown/constants.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/markdown/constants.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/markdown/constants.ts diff --git a/packages/shared-ux/code_editor/impl/languages/markdown/index.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/markdown/index.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/markdown/index.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/markdown/index.ts diff --git a/packages/shared-ux/code_editor/impl/languages/markdown/language.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/markdown/language.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/markdown/language.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/markdown/language.ts diff --git a/packages/shared-ux/code_editor/impl/languages/yaml/constants.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/yaml/constants.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/yaml/constants.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/yaml/constants.ts diff --git a/packages/shared-ux/code_editor/impl/languages/yaml/index.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/yaml/index.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/yaml/index.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/yaml/index.ts diff --git a/packages/shared-ux/code_editor/impl/languages/yaml/language.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/languages/yaml/language.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/languages/yaml/language.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/languages/yaml/language.ts diff --git a/packages/shared-ux/code_editor/impl/mocks/storybook.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/mocks/storybook.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/mocks/storybook.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/mocks/storybook.ts diff --git a/packages/shared-ux/code_editor/impl/package.json b/src/platform/packages/shared/shared-ux/code_editor/impl/package.json similarity index 100% rename from packages/shared-ux/code_editor/impl/package.json rename to src/platform/packages/shared/shared-ux/code_editor/impl/package.json diff --git a/packages/shared-ux/code_editor/impl/placeholder_widget.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/placeholder_widget.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/placeholder_widget.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/placeholder_widget.ts diff --git a/packages/shared-ux/code_editor/impl/react_monaco_editor/README.md b/src/platform/packages/shared/shared-ux/code_editor/impl/react_monaco_editor/README.md similarity index 100% rename from packages/shared-ux/code_editor/impl/react_monaco_editor/README.md rename to src/platform/packages/shared/shared-ux/code_editor/impl/react_monaco_editor/README.md diff --git a/packages/shared-ux/code_editor/impl/react_monaco_editor/editor.tsx b/src/platform/packages/shared/shared-ux/code_editor/impl/react_monaco_editor/editor.tsx similarity index 100% rename from packages/shared-ux/code_editor/impl/react_monaco_editor/editor.tsx rename to src/platform/packages/shared/shared-ux/code_editor/impl/react_monaco_editor/editor.tsx diff --git a/packages/shared-ux/code_editor/impl/react_monaco_editor/index.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/react_monaco_editor/index.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/react_monaco_editor/index.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/react_monaco_editor/index.ts diff --git a/packages/shared-ux/code_editor/impl/register_languages.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/register_languages.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/register_languages.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/register_languages.ts diff --git a/packages/shared-ux/code_editor/impl/remeasure_fonts.ts b/src/platform/packages/shared/shared-ux/code_editor/impl/remeasure_fonts.ts similarity index 100% rename from packages/shared-ux/code_editor/impl/remeasure_fonts.ts rename to src/platform/packages/shared/shared-ux/code_editor/impl/remeasure_fonts.ts diff --git a/packages/shared-ux/code_editor/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/code_editor/impl/tsconfig.json similarity index 83% rename from packages/shared-ux/code_editor/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/code_editor/impl/tsconfig.json index 8b6303336c379..d9fc09b8a78af 100644 --- a/packages/shared-ux/code_editor/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/code_editor/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ @@ -13,7 +13,7 @@ "include": [ "**/*.ts", "**/*.tsx", - "../../../../typings/**/*", + "../../../../../../../typings/**/*", ], "exclude": [ "target/**/*" diff --git a/tsconfig.base.json b/tsconfig.base.json index 2a66a46e677a1..43710550d2baa 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -184,8 +184,8 @@ "@kbn/cloud-security-posture-graph/*": ["x-pack/packages/kbn-cloud-security-posture/graph/*"], "@kbn/cloud-security-posture-plugin": ["x-pack/plugins/cloud_security_posture"], "@kbn/cloud-security-posture-plugin/*": ["x-pack/plugins/cloud_security_posture/*"], - "@kbn/code-editor": ["packages/shared-ux/code_editor/impl"], - "@kbn/code-editor/*": ["packages/shared-ux/code_editor/impl/*"], + "@kbn/code-editor": ["src/platform/packages/shared/shared-ux/code_editor/impl"], + "@kbn/code-editor/*": ["src/platform/packages/shared/shared-ux/code_editor/impl/*"], "@kbn/code-editor-mock": ["packages/shared-ux/code_editor/mocks"], "@kbn/code-editor-mock/*": ["packages/shared-ux/code_editor/mocks/*"], "@kbn/code-owners": ["packages/kbn-code-owners"], diff --git a/yarn.lock b/yarn.lock index 25a5e003fc082..3a4544c94e11b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4188,7 +4188,7 @@ version "0.0.0" uid "" -"@kbn/code-editor@link:packages/shared-ux/code_editor/impl": +"@kbn/code-editor@link:src/platform/packages/shared/shared-ux/code_editor/impl": version "0.0.0" uid "" From 2985b0728ee4db0b71155735f7842139a64feee9 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:19:05 +0100 Subject: [PATCH 006/129] Relocating module `@kbn/code-editor-mock` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/code_editor/mocks/README.md | 0 .../shared}/shared-ux/code_editor/mocks/code_editor_mock.tsx | 0 .../packages/shared}/shared-ux/code_editor/mocks/index.ts | 0 .../shared}/shared-ux/code_editor/mocks/jest_helper.ts | 0 .../packages/shared}/shared-ux/code_editor/mocks/kibana.jsonc | 0 .../shared}/shared-ux/code_editor/mocks/monaco_mock/index.tsx | 0 .../packages/shared}/shared-ux/code_editor/mocks/package.json | 0 .../shared}/shared-ux/code_editor/mocks/tsconfig.json | 4 ++-- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 7 insertions(+), 7 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/mocks/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/mocks/code_editor_mock.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/mocks/jest_helper.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/mocks/monaco_mock/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/mocks/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/code_editor/mocks/tsconfig.json (77%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1c620d07f3305..922abdc6a6596 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -571,7 +571,6 @@ packages/shared-ux/card/no_data/impl @elastic/appex-sharedux packages/shared-ux/card/no_data/mocks @elastic/appex-sharedux packages/shared-ux/card/no_data/types @elastic/appex-sharedux packages/shared-ux/chrome/navigation @elastic/appex-sharedux -packages/shared-ux/code_editor/mocks @elastic/appex-sharedux packages/shared-ux/error_boundary @elastic/appex-sharedux packages/shared-ux/file/context @elastic/appex-sharedux packages/shared-ux/file/file_picker/impl @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/platform/plugins/shared/bfetch @elastic/appex-sharedux src/platform/plugins/shared/esql @elastic/kibana-esql diff --git a/package.json b/package.json index 07ecbf2ed4eaf..a8f64725523d9 100644 --- a/package.json +++ b/package.json @@ -223,7 +223,7 @@ "@kbn/cloud-security-posture-graph": "link:x-pack/packages/kbn-cloud-security-posture/graph", "@kbn/cloud-security-posture-plugin": "link:x-pack/plugins/cloud_security_posture", "@kbn/code-editor": "link:src/platform/packages/shared/shared-ux/code_editor/impl", - "@kbn/code-editor-mock": "link:packages/shared-ux/code_editor/mocks", + "@kbn/code-editor-mock": "link:src/platform/packages/shared/shared-ux/code_editor/mocks", "@kbn/coloring": "link:packages/kbn-coloring", "@kbn/config": "link:packages/kbn-config", "@kbn/config-mocks": "link:packages/kbn-config-mocks", diff --git a/packages/shared-ux/code_editor/mocks/README.md b/src/platform/packages/shared/shared-ux/code_editor/mocks/README.md similarity index 100% rename from packages/shared-ux/code_editor/mocks/README.md rename to src/platform/packages/shared/shared-ux/code_editor/mocks/README.md diff --git a/packages/shared-ux/code_editor/mocks/code_editor_mock.tsx b/src/platform/packages/shared/shared-ux/code_editor/mocks/code_editor_mock.tsx similarity index 100% rename from packages/shared-ux/code_editor/mocks/code_editor_mock.tsx rename to src/platform/packages/shared/shared-ux/code_editor/mocks/code_editor_mock.tsx diff --git a/packages/shared-ux/code_editor/mocks/index.ts b/src/platform/packages/shared/shared-ux/code_editor/mocks/index.ts similarity index 100% rename from packages/shared-ux/code_editor/mocks/index.ts rename to src/platform/packages/shared/shared-ux/code_editor/mocks/index.ts diff --git a/packages/shared-ux/code_editor/mocks/jest_helper.ts b/src/platform/packages/shared/shared-ux/code_editor/mocks/jest_helper.ts similarity index 100% rename from packages/shared-ux/code_editor/mocks/jest_helper.ts rename to src/platform/packages/shared/shared-ux/code_editor/mocks/jest_helper.ts diff --git a/packages/shared-ux/code_editor/mocks/kibana.jsonc b/src/platform/packages/shared/shared-ux/code_editor/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/code_editor/mocks/kibana.jsonc rename to src/platform/packages/shared/shared-ux/code_editor/mocks/kibana.jsonc diff --git a/packages/shared-ux/code_editor/mocks/monaco_mock/index.tsx b/src/platform/packages/shared/shared-ux/code_editor/mocks/monaco_mock/index.tsx similarity index 100% rename from packages/shared-ux/code_editor/mocks/monaco_mock/index.tsx rename to src/platform/packages/shared/shared-ux/code_editor/mocks/monaco_mock/index.tsx diff --git a/packages/shared-ux/code_editor/mocks/package.json b/src/platform/packages/shared/shared-ux/code_editor/mocks/package.json similarity index 100% rename from packages/shared-ux/code_editor/mocks/package.json rename to src/platform/packages/shared/shared-ux/code_editor/mocks/package.json diff --git a/packages/shared-ux/code_editor/mocks/tsconfig.json b/src/platform/packages/shared/shared-ux/code_editor/mocks/tsconfig.json similarity index 77% rename from packages/shared-ux/code_editor/mocks/tsconfig.json rename to src/platform/packages/shared/shared-ux/code_editor/mocks/tsconfig.json index ac4e893255100..65b495fb6218c 100644 --- a/packages/shared-ux/code_editor/mocks/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/code_editor/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ @@ -13,7 +13,7 @@ "include": [ "**/*.ts", "**/*.tsx", - "../../../../typings/**/*", + "../../../../../../../typings/**/*", ], "exclude": [ "target/**/*", diff --git a/tsconfig.base.json b/tsconfig.base.json index 43710550d2baa..10ad43af871f0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -186,8 +186,8 @@ "@kbn/cloud-security-posture-plugin/*": ["x-pack/plugins/cloud_security_posture/*"], "@kbn/code-editor": ["src/platform/packages/shared/shared-ux/code_editor/impl"], "@kbn/code-editor/*": ["src/platform/packages/shared/shared-ux/code_editor/impl/*"], - "@kbn/code-editor-mock": ["packages/shared-ux/code_editor/mocks"], - "@kbn/code-editor-mock/*": ["packages/shared-ux/code_editor/mocks/*"], + "@kbn/code-editor-mock": ["src/platform/packages/shared/shared-ux/code_editor/mocks"], + "@kbn/code-editor-mock/*": ["src/platform/packages/shared/shared-ux/code_editor/mocks/*"], "@kbn/code-owners": ["packages/kbn-code-owners"], "@kbn/code-owners/*": ["packages/kbn-code-owners/*"], "@kbn/coloring": ["packages/kbn-coloring"], diff --git a/yarn.lock b/yarn.lock index 3a4544c94e11b..5ad3b0a8a744d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4184,7 +4184,7 @@ version "0.0.0" uid "" -"@kbn/code-editor-mock@link:packages/shared-ux/code_editor/mocks": +"@kbn/code-editor-mock@link:src/platform/packages/shared/shared-ux/code_editor/mocks": version "0.0.0" uid "" From b6d9a0316c28f6fe6609442b4eafd999ceb2deb2 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:20:37 +0100 Subject: [PATCH 007/129] Relocating module `@kbn/content-management-content-editor` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/content-management/content_editor/README.md | 0 .../shared}/content-management/content_editor/index.ts | 0 .../shared}/content-management/content_editor/jest.config.js | 4 ++-- .../shared}/content-management/content_editor/kibana.jsonc | 0 .../shared}/content-management/content_editor/package.json | 0 .../content-management/content_editor/src/__jest__/index.ts | 0 .../content_editor/src/__jest__/tests.helpers.tsx | 0 .../content_editor/src/components/editor_flyout_content.tsx | 0 .../src/components/editor_flyout_content_container.tsx | 0 .../content_editor/src/components/editor_flyout_warnings.tsx | 0 .../content_editor/src/components/editor_loader.tsx | 0 .../content-management/content_editor/src/components/index.ts | 0 .../src/components/inspector_flyout_content.test.tsx | 0 .../content_editor/src/components/metadata_form.tsx | 0 .../content_editor/src/components/use_metadata_form.ts | 0 .../shared}/content-management/content_editor/src/index.ts | 0 .../shared}/content-management/content_editor/src/mocks.tsx | 0 .../content_editor/src/open_content_editor.test.tsx | 0 .../content_editor/src/open_content_editor.tsx | 0 .../content-management/content_editor/src/services.tsx | 0 .../shared}/content-management/content_editor/src/types.ts | 0 .../shared}/content-management/content_editor/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 26 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/content-management/content_editor/README.md (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/jest.config.js (81%) rename {packages => src/platform/packages/shared}/content-management/content_editor/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/package.json (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/__jest__/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/__jest__/tests.helpers.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/components/editor_flyout_content.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/components/editor_flyout_content_container.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/components/editor_flyout_warnings.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/components/editor_loader.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/components/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/components/inspector_flyout_content.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/components/metadata_form.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/components/use_metadata_form.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/mocks.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/open_content_editor.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/open_content_editor.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/src/types.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_editor/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 922abdc6a6596..d95fbe8cc9127 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/content_editor @elastic/appex-sharedux packages/content-management/content_insights/content_insights_public @elastic/appex-sharedux packages/content-management/content_insights/content_insights_server @elastic/appex-sharedux packages/content-management/favorites/favorites_common @elastic/appex-sharedux @@ -616,6 +615,7 @@ packages/shared-ux/table_persist @elastic/appex-sharedux src/core @elastic/kibana-core src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql +src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index a8f64725523d9..cba667e0a6c8f 100644 --- a/package.json +++ b/package.json @@ -229,7 +229,7 @@ "@kbn/config-mocks": "link:packages/kbn-config-mocks", "@kbn/config-schema": "link:packages/kbn-config-schema", "@kbn/console-plugin": "link:src/plugins/console", - "@kbn/content-management-content-editor": "link:packages/content-management/content_editor", + "@kbn/content-management-content-editor": "link:src/platform/packages/shared/content-management/content_editor", "@kbn/content-management-content-insights-public": "link:packages/content-management/content_insights/content_insights_public", "@kbn/content-management-content-insights-server": "link:packages/content-management/content_insights/content_insights_server", "@kbn/content-management-examples-plugin": "link:examples/content_management_examples", diff --git a/packages/content-management/content_editor/README.md b/src/platform/packages/shared/content-management/content_editor/README.md similarity index 100% rename from packages/content-management/content_editor/README.md rename to src/platform/packages/shared/content-management/content_editor/README.md diff --git a/packages/content-management/content_editor/index.ts b/src/platform/packages/shared/content-management/content_editor/index.ts similarity index 100% rename from packages/content-management/content_editor/index.ts rename to src/platform/packages/shared/content-management/content_editor/index.ts diff --git a/packages/content-management/content_editor/jest.config.js b/src/platform/packages/shared/content-management/content_editor/jest.config.js similarity index 81% rename from packages/content-management/content_editor/jest.config.js rename to src/platform/packages/shared/content-management/content_editor/jest.config.js index f604714408bff..19820429e831f 100644 --- a/packages/content-management/content_editor/jest.config.js +++ b/src/platform/packages/shared/content-management/content_editor/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/content-management/content_editor'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/content-management/content_editor'], }; diff --git a/packages/content-management/content_editor/kibana.jsonc b/src/platform/packages/shared/content-management/content_editor/kibana.jsonc similarity index 100% rename from packages/content-management/content_editor/kibana.jsonc rename to src/platform/packages/shared/content-management/content_editor/kibana.jsonc diff --git a/packages/content-management/content_editor/package.json b/src/platform/packages/shared/content-management/content_editor/package.json similarity index 100% rename from packages/content-management/content_editor/package.json rename to src/platform/packages/shared/content-management/content_editor/package.json diff --git a/packages/content-management/content_editor/src/__jest__/index.ts b/src/platform/packages/shared/content-management/content_editor/src/__jest__/index.ts similarity index 100% rename from packages/content-management/content_editor/src/__jest__/index.ts rename to src/platform/packages/shared/content-management/content_editor/src/__jest__/index.ts diff --git a/packages/content-management/content_editor/src/__jest__/tests.helpers.tsx b/src/platform/packages/shared/content-management/content_editor/src/__jest__/tests.helpers.tsx similarity index 100% rename from packages/content-management/content_editor/src/__jest__/tests.helpers.tsx rename to src/platform/packages/shared/content-management/content_editor/src/__jest__/tests.helpers.tsx diff --git a/packages/content-management/content_editor/src/components/editor_flyout_content.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_content.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/editor_flyout_content.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_content.tsx diff --git a/packages/content-management/content_editor/src/components/editor_flyout_content_container.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_content_container.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/editor_flyout_content_container.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_content_container.tsx diff --git a/packages/content-management/content_editor/src/components/editor_flyout_warnings.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_warnings.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/editor_flyout_warnings.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/editor_flyout_warnings.tsx diff --git a/packages/content-management/content_editor/src/components/editor_loader.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/editor_loader.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/editor_loader.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/editor_loader.tsx diff --git a/packages/content-management/content_editor/src/components/index.ts b/src/platform/packages/shared/content-management/content_editor/src/components/index.ts similarity index 100% rename from packages/content-management/content_editor/src/components/index.ts rename to src/platform/packages/shared/content-management/content_editor/src/components/index.ts diff --git a/packages/content-management/content_editor/src/components/inspector_flyout_content.test.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/inspector_flyout_content.test.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/inspector_flyout_content.test.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/inspector_flyout_content.test.tsx diff --git a/packages/content-management/content_editor/src/components/metadata_form.tsx b/src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx similarity index 100% rename from packages/content-management/content_editor/src/components/metadata_form.tsx rename to src/platform/packages/shared/content-management/content_editor/src/components/metadata_form.tsx diff --git a/packages/content-management/content_editor/src/components/use_metadata_form.ts b/src/platform/packages/shared/content-management/content_editor/src/components/use_metadata_form.ts similarity index 100% rename from packages/content-management/content_editor/src/components/use_metadata_form.ts rename to src/platform/packages/shared/content-management/content_editor/src/components/use_metadata_form.ts diff --git a/packages/content-management/content_editor/src/index.ts b/src/platform/packages/shared/content-management/content_editor/src/index.ts similarity index 100% rename from packages/content-management/content_editor/src/index.ts rename to src/platform/packages/shared/content-management/content_editor/src/index.ts diff --git a/packages/content-management/content_editor/src/mocks.tsx b/src/platform/packages/shared/content-management/content_editor/src/mocks.tsx similarity index 100% rename from packages/content-management/content_editor/src/mocks.tsx rename to src/platform/packages/shared/content-management/content_editor/src/mocks.tsx diff --git a/packages/content-management/content_editor/src/open_content_editor.test.tsx b/src/platform/packages/shared/content-management/content_editor/src/open_content_editor.test.tsx similarity index 100% rename from packages/content-management/content_editor/src/open_content_editor.test.tsx rename to src/platform/packages/shared/content-management/content_editor/src/open_content_editor.test.tsx diff --git a/packages/content-management/content_editor/src/open_content_editor.tsx b/src/platform/packages/shared/content-management/content_editor/src/open_content_editor.tsx similarity index 100% rename from packages/content-management/content_editor/src/open_content_editor.tsx rename to src/platform/packages/shared/content-management/content_editor/src/open_content_editor.tsx diff --git a/packages/content-management/content_editor/src/services.tsx b/src/platform/packages/shared/content-management/content_editor/src/services.tsx similarity index 100% rename from packages/content-management/content_editor/src/services.tsx rename to src/platform/packages/shared/content-management/content_editor/src/services.tsx diff --git a/packages/content-management/content_editor/src/types.ts b/src/platform/packages/shared/content-management/content_editor/src/types.ts similarity index 100% rename from packages/content-management/content_editor/src/types.ts rename to src/platform/packages/shared/content-management/content_editor/src/types.ts diff --git a/packages/content-management/content_editor/tsconfig.json b/src/platform/packages/shared/content-management/content_editor/tsconfig.json similarity index 93% rename from packages/content-management/content_editor/tsconfig.json rename to src/platform/packages/shared/content-management/content_editor/tsconfig.json index 832da409a06fd..d767b59191161 100644 --- a/packages/content-management/content_editor/tsconfig.json +++ b/src/platform/packages/shared/content-management/content_editor/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "jsx": "react", diff --git a/tsconfig.base.json b/tsconfig.base.json index 10ad43af871f0..827fb2d55c011 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -200,8 +200,8 @@ "@kbn/config-schema/*": ["packages/kbn-config-schema/*"], "@kbn/console-plugin": ["src/plugins/console"], "@kbn/console-plugin/*": ["src/plugins/console/*"], - "@kbn/content-management-content-editor": ["packages/content-management/content_editor"], - "@kbn/content-management-content-editor/*": ["packages/content-management/content_editor/*"], + "@kbn/content-management-content-editor": ["src/platform/packages/shared/content-management/content_editor"], + "@kbn/content-management-content-editor/*": ["src/platform/packages/shared/content-management/content_editor/*"], "@kbn/content-management-content-insights-public": ["packages/content-management/content_insights/content_insights_public"], "@kbn/content-management-content-insights-public/*": ["packages/content-management/content_insights/content_insights_public/*"], "@kbn/content-management-content-insights-server": ["packages/content-management/content_insights/content_insights_server"], diff --git a/yarn.lock b/yarn.lock index 5ad3b0a8a744d..ab80da12486c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4216,7 +4216,7 @@ version "0.0.0" uid "" -"@kbn/content-management-content-editor@link:packages/content-management/content_editor": +"@kbn/content-management-content-editor@link:src/platform/packages/shared/content-management/content_editor": version "0.0.0" uid "" From 72d14a3463b6c58ad160a194f72913407a7312f4 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:22:07 +0100 Subject: [PATCH 008/129] Relocating module `@kbn/content-management-content-insights-public` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../content_insights/content_insights_public/README.md | 0 .../content_insights/content_insights_public/index.ts | 0 .../content_insights/content_insights_public/jest.config.js | 4 ++-- .../content_insights/content_insights_public/kibana.jsonc | 0 .../content_insights/content_insights_public/package.json | 0 .../content_insights/content_insights_public/src/client.ts | 0 .../src/components/activity_view.test.tsx | 0 .../content_insights_public/src/components/activity_view.tsx | 0 .../content_insights_public/src/components/index.ts | 0 .../src/components/views_stats/index.ts | 0 .../src/components/views_stats/views_chart.tsx | 0 .../src/components/views_stats/views_stats.test.tsx | 0 .../src/components/views_stats/views_stats.tsx | 0 .../src/components/views_stats/views_stats_lib.test.tsx | 0 .../content_insights/content_insights_public/src/services.tsx | 0 .../content_insights/content_insights_public/src/types.ts | 0 .../content_insights/content_insights_public/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/README.md (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/jest.config.js (77%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/package.json (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/client.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/components/activity_view.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/components/activity_view.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/components/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/components/views_stats/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/components/views_stats/views_chart.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats_lib.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/src/types.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_public/tsconfig.json (92%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d95fbe8cc9127..7e6709179f08e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/content_insights/content_insights_public @elastic/appex-sharedux packages/content-management/content_insights/content_insights_server @elastic/appex-sharedux packages/content-management/favorites/favorites_common @elastic/appex-sharedux packages/content-management/favorites/favorites_public @elastic/appex-sharedux @@ -616,6 +615,7 @@ src/core @elastic/kibana-core src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux +src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index cba667e0a6c8f..90e753dea4648 100644 --- a/package.json +++ b/package.json @@ -230,7 +230,7 @@ "@kbn/config-schema": "link:packages/kbn-config-schema", "@kbn/console-plugin": "link:src/plugins/console", "@kbn/content-management-content-editor": "link:src/platform/packages/shared/content-management/content_editor", - "@kbn/content-management-content-insights-public": "link:packages/content-management/content_insights/content_insights_public", + "@kbn/content-management-content-insights-public": "link:src/platform/packages/shared/content-management/content_insights/content_insights_public", "@kbn/content-management-content-insights-server": "link:packages/content-management/content_insights/content_insights_server", "@kbn/content-management-examples-plugin": "link:examples/content_management_examples", "@kbn/content-management-favorites-common": "link:packages/content-management/favorites/favorites_common", diff --git a/packages/content-management/content_insights/content_insights_public/README.md b/src/platform/packages/shared/content-management/content_insights/content_insights_public/README.md similarity index 100% rename from packages/content-management/content_insights/content_insights_public/README.md rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/README.md diff --git a/packages/content-management/content_insights/content_insights_public/index.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/index.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/index.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/index.ts diff --git a/packages/content-management/content_insights/content_insights_public/jest.config.js b/src/platform/packages/shared/content-management/content_insights/content_insights_public/jest.config.js similarity index 77% rename from packages/content-management/content_insights/content_insights_public/jest.config.js rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/jest.config.js index a5af1e4e29893..16fae773d4ed5 100644 --- a/packages/content-management/content_insights/content_insights_public/jest.config.js +++ b/src/platform/packages/shared/content-management/content_insights/content_insights_public/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/content-management/content_insights/content_insights_public'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/content-management/content_insights/content_insights_public'], }; diff --git a/packages/content-management/content_insights/content_insights_public/kibana.jsonc b/src/platform/packages/shared/content-management/content_insights/content_insights_public/kibana.jsonc similarity index 100% rename from packages/content-management/content_insights/content_insights_public/kibana.jsonc rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/kibana.jsonc diff --git a/packages/content-management/content_insights/content_insights_public/package.json b/src/platform/packages/shared/content-management/content_insights/content_insights_public/package.json similarity index 100% rename from packages/content-management/content_insights/content_insights_public/package.json rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/package.json diff --git a/packages/content-management/content_insights/content_insights_public/src/client.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/client.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/client.ts diff --git a/packages/content-management/content_insights/content_insights_public/src/components/activity_view.test.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.test.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/activity_view.test.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.test.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/activity_view.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/activity_view.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/activity_view.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/index.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/index.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/index.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/index.ts diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/index.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/index.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/index.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/index.ts diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_chart.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_chart.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_chart.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_chart.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.test.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.test.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.test.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.test.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats_lib.test.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats_lib.test.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats_lib.test.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/components/views_stats/views_stats_lib.test.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/services.tsx b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/services.tsx rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/services.tsx diff --git a/packages/content-management/content_insights/content_insights_public/src/types.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_public/src/types.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_public/src/types.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/src/types.ts diff --git a/packages/content-management/content_insights/content_insights_public/tsconfig.json b/src/platform/packages/shared/content-management/content_insights/content_insights_public/tsconfig.json similarity index 92% rename from packages/content-management/content_insights/content_insights_public/tsconfig.json rename to src/platform/packages/shared/content-management/content_insights/content_insights_public/tsconfig.json index 27d479a15d6c9..d3beb7a8e55fa 100644 --- a/packages/content-management/content_insights/content_insights_public/tsconfig.json +++ b/src/platform/packages/shared/content-management/content_insights/content_insights_public/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 827fb2d55c011..e0f60d602cf35 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -202,8 +202,8 @@ "@kbn/console-plugin/*": ["src/plugins/console/*"], "@kbn/content-management-content-editor": ["src/platform/packages/shared/content-management/content_editor"], "@kbn/content-management-content-editor/*": ["src/platform/packages/shared/content-management/content_editor/*"], - "@kbn/content-management-content-insights-public": ["packages/content-management/content_insights/content_insights_public"], - "@kbn/content-management-content-insights-public/*": ["packages/content-management/content_insights/content_insights_public/*"], + "@kbn/content-management-content-insights-public": ["src/platform/packages/shared/content-management/content_insights/content_insights_public"], + "@kbn/content-management-content-insights-public/*": ["src/platform/packages/shared/content-management/content_insights/content_insights_public/*"], "@kbn/content-management-content-insights-server": ["packages/content-management/content_insights/content_insights_server"], "@kbn/content-management-content-insights-server/*": ["packages/content-management/content_insights/content_insights_server/*"], "@kbn/content-management-examples-plugin": ["examples/content_management_examples"], diff --git a/yarn.lock b/yarn.lock index ab80da12486c3..c72edacbd2035 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4220,7 +4220,7 @@ version "0.0.0" uid "" -"@kbn/content-management-content-insights-public@link:packages/content-management/content_insights/content_insights_public": +"@kbn/content-management-content-insights-public@link:src/platform/packages/shared/content-management/content_insights/content_insights_public": version "0.0.0" uid "" From 1b46dadf8e6236ba31b7185339dbdfce87eb434c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:23:28 +0100 Subject: [PATCH 009/129] Relocating module `@kbn/content-management-content-insights-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../content_insights/content_insights_server/README.md | 0 .../content_insights/content_insights_server/index.ts | 0 .../content_insights/content_insights_server/jest.config.js | 4 ++-- .../content_insights/content_insights_server/kibana.jsonc | 0 .../content_insights/content_insights_server/package.json | 0 .../content_insights/content_insights_server/src/register.ts | 0 .../content_insights/content_insights_server/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_server/README.md (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_server/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_server/jest.config.js (77%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_server/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_server/package.json (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_server/src/register.ts (100%) rename {packages => src/platform/packages/shared}/content-management/content_insights/content_insights_server/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7e6709179f08e..835ba685de041 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/content_insights/content_insights_server @elastic/appex-sharedux packages/content-management/favorites/favorites_common @elastic/appex-sharedux packages/content-management/favorites/favorites_public @elastic/appex-sharedux packages/content-management/favorites/favorites_server @elastic/appex-sharedux @@ -616,6 +615,7 @@ src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux +src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index 90e753dea4648..6156280659a89 100644 --- a/package.json +++ b/package.json @@ -231,7 +231,7 @@ "@kbn/console-plugin": "link:src/plugins/console", "@kbn/content-management-content-editor": "link:src/platform/packages/shared/content-management/content_editor", "@kbn/content-management-content-insights-public": "link:src/platform/packages/shared/content-management/content_insights/content_insights_public", - "@kbn/content-management-content-insights-server": "link:packages/content-management/content_insights/content_insights_server", + "@kbn/content-management-content-insights-server": "link:src/platform/packages/shared/content-management/content_insights/content_insights_server", "@kbn/content-management-examples-plugin": "link:examples/content_management_examples", "@kbn/content-management-favorites-common": "link:packages/content-management/favorites/favorites_common", "@kbn/content-management-favorites-public": "link:packages/content-management/favorites/favorites_public", diff --git a/packages/content-management/content_insights/content_insights_server/README.md b/src/platform/packages/shared/content-management/content_insights/content_insights_server/README.md similarity index 100% rename from packages/content-management/content_insights/content_insights_server/README.md rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/README.md diff --git a/packages/content-management/content_insights/content_insights_server/index.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_server/index.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_server/index.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/index.ts diff --git a/packages/content-management/content_insights/content_insights_server/jest.config.js b/src/platform/packages/shared/content-management/content_insights/content_insights_server/jest.config.js similarity index 77% rename from packages/content-management/content_insights/content_insights_server/jest.config.js rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/jest.config.js index 15204549bfac2..ff62191b6fb15 100644 --- a/packages/content-management/content_insights/content_insights_server/jest.config.js +++ b/src/platform/packages/shared/content-management/content_insights/content_insights_server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/content-management/content_insights/content_insights_server'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/content-management/content_insights/content_insights_server'], }; diff --git a/packages/content-management/content_insights/content_insights_server/kibana.jsonc b/src/platform/packages/shared/content-management/content_insights/content_insights_server/kibana.jsonc similarity index 100% rename from packages/content-management/content_insights/content_insights_server/kibana.jsonc rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/kibana.jsonc diff --git a/packages/content-management/content_insights/content_insights_server/package.json b/src/platform/packages/shared/content-management/content_insights/content_insights_server/package.json similarity index 100% rename from packages/content-management/content_insights/content_insights_server/package.json rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/package.json diff --git a/packages/content-management/content_insights/content_insights_server/src/register.ts b/src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts similarity index 100% rename from packages/content-management/content_insights/content_insights_server/src/register.ts rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/src/register.ts diff --git a/packages/content-management/content_insights/content_insights_server/tsconfig.json b/src/platform/packages/shared/content-management/content_insights/content_insights_server/tsconfig.json similarity index 83% rename from packages/content-management/content_insights/content_insights_server/tsconfig.json rename to src/platform/packages/shared/content-management/content_insights/content_insights_server/tsconfig.json index 3e2312c0278a2..d04c5a9821fc1 100644 --- a/packages/content-management/content_insights/content_insights_server/tsconfig.json +++ b/src/platform/packages/shared/content-management/content_insights/content_insights_server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index e0f60d602cf35..00682fd666919 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -204,8 +204,8 @@ "@kbn/content-management-content-editor/*": ["src/platform/packages/shared/content-management/content_editor/*"], "@kbn/content-management-content-insights-public": ["src/platform/packages/shared/content-management/content_insights/content_insights_public"], "@kbn/content-management-content-insights-public/*": ["src/platform/packages/shared/content-management/content_insights/content_insights_public/*"], - "@kbn/content-management-content-insights-server": ["packages/content-management/content_insights/content_insights_server"], - "@kbn/content-management-content-insights-server/*": ["packages/content-management/content_insights/content_insights_server/*"], + "@kbn/content-management-content-insights-server": ["src/platform/packages/shared/content-management/content_insights/content_insights_server"], + "@kbn/content-management-content-insights-server/*": ["src/platform/packages/shared/content-management/content_insights/content_insights_server/*"], "@kbn/content-management-examples-plugin": ["examples/content_management_examples"], "@kbn/content-management-examples-plugin/*": ["examples/content_management_examples/*"], "@kbn/content-management-favorites-common": ["packages/content-management/favorites/favorites_common"], diff --git a/yarn.lock b/yarn.lock index c72edacbd2035..f83b61fe1c1eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4224,7 +4224,7 @@ version "0.0.0" uid "" -"@kbn/content-management-content-insights-server@link:packages/content-management/content_insights/content_insights_server": +"@kbn/content-management-content-insights-server@link:src/platform/packages/shared/content-management/content_insights/content_insights_server": version "0.0.0" uid "" From a6d9700e7a7e0eeee154ab954c66002a1ff9909f Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:24:50 +0100 Subject: [PATCH 010/129] Relocating module `@kbn/content-management-favorites-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../content-management/favorites/favorites_common/README.md | 0 .../content-management/favorites/favorites_common/index.ts | 0 .../favorites/favorites_common/jest.config.js | 4 ++-- .../favorites/favorites_common/kibana.jsonc | 0 .../favorites/favorites_common/package.json | 0 .../favorites/favorites_common/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/content-management/favorites/favorites_common/README.md (100%) rename {packages => src/platform/packages/private}/content-management/favorites/favorites_common/index.ts (100%) rename {packages => src/platform/packages/private}/content-management/favorites/favorites_common/jest.config.js (79%) rename {packages => src/platform/packages/private}/content-management/favorites/favorites_common/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/content-management/favorites/favorites_common/package.json (100%) rename {packages => src/platform/packages/private}/content-management/favorites/favorites_common/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 835ba685de041..cd550819f9666 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/favorites/favorites_common @elastic/appex-sharedux packages/content-management/favorites/favorites_public @elastic/appex-sharedux packages/content-management/favorites/favorites_server @elastic/appex-sharedux packages/content-management/tabbed_table_list_view @elastic/appex-sharedux @@ -611,6 +610,7 @@ packages/shared-ux/storybook/config @elastic/appex-sharedux packages/shared-ux/storybook/mock @elastic/appex-sharedux packages/shared-ux/table_persist @elastic/appex-sharedux src/core @elastic/kibana-core +src/platform/packages/private/content-management/favorites/favorites_common @elastic/appex-sharedux src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux diff --git a/package.json b/package.json index 6156280659a89..a78cdf14cd88f 100644 --- a/package.json +++ b/package.json @@ -233,7 +233,7 @@ "@kbn/content-management-content-insights-public": "link:src/platform/packages/shared/content-management/content_insights/content_insights_public", "@kbn/content-management-content-insights-server": "link:src/platform/packages/shared/content-management/content_insights/content_insights_server", "@kbn/content-management-examples-plugin": "link:examples/content_management_examples", - "@kbn/content-management-favorites-common": "link:packages/content-management/favorites/favorites_common", + "@kbn/content-management-favorites-common": "link:src/platform/packages/private/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", diff --git a/packages/content-management/favorites/favorites_common/README.md b/src/platform/packages/private/content-management/favorites/favorites_common/README.md similarity index 100% rename from packages/content-management/favorites/favorites_common/README.md rename to src/platform/packages/private/content-management/favorites/favorites_common/README.md diff --git a/packages/content-management/favorites/favorites_common/index.ts b/src/platform/packages/private/content-management/favorites/favorites_common/index.ts similarity index 100% rename from packages/content-management/favorites/favorites_common/index.ts rename to src/platform/packages/private/content-management/favorites/favorites_common/index.ts diff --git a/packages/content-management/favorites/favorites_common/jest.config.js b/src/platform/packages/private/content-management/favorites/favorites_common/jest.config.js similarity index 79% rename from packages/content-management/favorites/favorites_common/jest.config.js rename to src/platform/packages/private/content-management/favorites/favorites_common/jest.config.js index c8b618b4f4ac6..81a8ae44ff219 100644 --- a/packages/content-management/favorites/favorites_common/jest.config.js +++ b/src/platform/packages/private/content-management/favorites/favorites_common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/content-management/favorites/favorites_common'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/content-management/favorites/favorites_common'], }; diff --git a/packages/content-management/favorites/favorites_common/kibana.jsonc b/src/platform/packages/private/content-management/favorites/favorites_common/kibana.jsonc similarity index 100% rename from packages/content-management/favorites/favorites_common/kibana.jsonc rename to src/platform/packages/private/content-management/favorites/favorites_common/kibana.jsonc diff --git a/packages/content-management/favorites/favorites_common/package.json b/src/platform/packages/private/content-management/favorites/favorites_common/package.json similarity index 100% rename from packages/content-management/favorites/favorites_common/package.json rename to src/platform/packages/private/content-management/favorites/favorites_common/package.json diff --git a/packages/content-management/favorites/favorites_common/tsconfig.json b/src/platform/packages/private/content-management/favorites/favorites_common/tsconfig.json similarity index 78% rename from packages/content-management/favorites/favorites_common/tsconfig.json rename to src/platform/packages/private/content-management/favorites/favorites_common/tsconfig.json index 0d78dace105e1..d3b1bb09783b7 100644 --- a/packages/content-management/favorites/favorites_common/tsconfig.json +++ b/src/platform/packages/private/content-management/favorites/favorites_common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 00682fd666919..d4121523ec79b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -208,8 +208,8 @@ "@kbn/content-management-content-insights-server/*": ["src/platform/packages/shared/content-management/content_insights/content_insights_server/*"], "@kbn/content-management-examples-plugin": ["examples/content_management_examples"], "@kbn/content-management-examples-plugin/*": ["examples/content_management_examples/*"], - "@kbn/content-management-favorites-common": ["packages/content-management/favorites/favorites_common"], - "@kbn/content-management-favorites-common/*": ["packages/content-management/favorites/favorites_common/*"], + "@kbn/content-management-favorites-common": ["src/platform/packages/private/content-management/favorites/favorites_common"], + "@kbn/content-management-favorites-common/*": ["src/platform/packages/private/content-management/favorites/favorites_common/*"], "@kbn/content-management-favorites-public": ["packages/content-management/favorites/favorites_public"], "@kbn/content-management-favorites-public/*": ["packages/content-management/favorites/favorites_public/*"], "@kbn/content-management-favorites-server": ["packages/content-management/favorites/favorites_server"], diff --git a/yarn.lock b/yarn.lock index f83b61fe1c1eb..1f7add15a5fe9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4232,7 +4232,7 @@ version "0.0.0" uid "" -"@kbn/content-management-favorites-common@link:packages/content-management/favorites/favorites_common": +"@kbn/content-management-favorites-common@link:src/platform/packages/private/content-management/favorites/favorites_common": version "0.0.0" uid "" From 1d598b8f3374e2568acb9ef459f176ca59a9e7d8 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:26:09 +0100 Subject: [PATCH 011/129] Relocating module `@kbn/content-management-favorites-public` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../content-management/favorites/favorites_public/README.md | 0 .../content-management/favorites/favorites_public/index.ts | 0 .../favorites/favorites_public/jest.config.js | 4 ++-- .../favorites/favorites_public/kibana.jsonc | 0 .../favorites/favorites_public/package.json | 0 .../favorites_public/src/components/empty_favorites_dark.svg | 0 .../favorites_public/src/components/empty_favorites_light.svg | 0 .../favorites_public/src/components/favorite_button.tsx | 0 .../favorites_public/src/components/favorites_empty_state.tsx | 0 .../favorites/favorites_public/src/favorites_client.ts | 0 .../favorites/favorites_public/src/favorites_context.tsx | 0 .../favorites/favorites_public/src/favorites_query.tsx | 0 .../favorites/favorites_public/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 17 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/README.md (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/jest.config.js (79%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/package.json (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/src/components/empty_favorites_dark.svg (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/src/components/empty_favorites_light.svg (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/src/components/favorite_button.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/src/favorites_client.ts (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/src/favorites_context.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/src/favorites_query.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_public/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cd550819f9666..57264153df209 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/favorites/favorites_public @elastic/appex-sharedux packages/content-management/favorites/favorites_server @elastic/appex-sharedux packages/content-management/tabbed_table_list_view @elastic/appex-sharedux packages/content-management/table_list_view @elastic/appex-sharedux @@ -616,6 +615,7 @@ src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux +src/platform/packages/shared/content-management/favorites/favorites_public @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index a78cdf14cd88f..4b0c740b03c4b 100644 --- a/package.json +++ b/package.json @@ -234,7 +234,7 @@ "@kbn/content-management-content-insights-server": "link:src/platform/packages/shared/content-management/content_insights/content_insights_server", "@kbn/content-management-examples-plugin": "link:examples/content_management_examples", "@kbn/content-management-favorites-common": "link:src/platform/packages/private/content-management/favorites/favorites_common", - "@kbn/content-management-favorites-public": "link:packages/content-management/favorites/favorites_public", + "@kbn/content-management-favorites-public": "link:src/platform/packages/shared/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-tabbed-table-list-view": "link:packages/content-management/tabbed_table_list_view", diff --git a/packages/content-management/favorites/favorites_public/README.md b/src/platform/packages/shared/content-management/favorites/favorites_public/README.md similarity index 100% rename from packages/content-management/favorites/favorites_public/README.md rename to src/platform/packages/shared/content-management/favorites/favorites_public/README.md diff --git a/packages/content-management/favorites/favorites_public/index.ts b/src/platform/packages/shared/content-management/favorites/favorites_public/index.ts similarity index 100% rename from packages/content-management/favorites/favorites_public/index.ts rename to src/platform/packages/shared/content-management/favorites/favorites_public/index.ts diff --git a/packages/content-management/favorites/favorites_public/jest.config.js b/src/platform/packages/shared/content-management/favorites/favorites_public/jest.config.js similarity index 79% rename from packages/content-management/favorites/favorites_public/jest.config.js rename to src/platform/packages/shared/content-management/favorites/favorites_public/jest.config.js index 120b35e798b7b..c3a9e5d878f76 100644 --- a/packages/content-management/favorites/favorites_public/jest.config.js +++ b/src/platform/packages/shared/content-management/favorites/favorites_public/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/content-management/favorites/favorites_public'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/content-management/favorites/favorites_public'], }; diff --git a/packages/content-management/favorites/favorites_public/kibana.jsonc b/src/platform/packages/shared/content-management/favorites/favorites_public/kibana.jsonc similarity index 100% rename from packages/content-management/favorites/favorites_public/kibana.jsonc rename to src/platform/packages/shared/content-management/favorites/favorites_public/kibana.jsonc diff --git a/packages/content-management/favorites/favorites_public/package.json b/src/platform/packages/shared/content-management/favorites/favorites_public/package.json similarity index 100% rename from packages/content-management/favorites/favorites_public/package.json rename to src/platform/packages/shared/content-management/favorites/favorites_public/package.json diff --git a/packages/content-management/favorites/favorites_public/src/components/empty_favorites_dark.svg b/src/platform/packages/shared/content-management/favorites/favorites_public/src/components/empty_favorites_dark.svg similarity index 100% rename from packages/content-management/favorites/favorites_public/src/components/empty_favorites_dark.svg rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/components/empty_favorites_dark.svg diff --git a/packages/content-management/favorites/favorites_public/src/components/empty_favorites_light.svg b/src/platform/packages/shared/content-management/favorites/favorites_public/src/components/empty_favorites_light.svg similarity index 100% rename from packages/content-management/favorites/favorites_public/src/components/empty_favorites_light.svg rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/components/empty_favorites_light.svg diff --git a/packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx b/src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx similarity index 100% rename from packages/content-management/favorites/favorites_public/src/components/favorite_button.tsx rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorite_button.tsx diff --git a/packages/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx b/src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx similarity index 100% rename from packages/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/components/favorites_empty_state.tsx diff --git a/packages/content-management/favorites/favorites_public/src/favorites_client.ts b/src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts similarity index 100% rename from packages/content-management/favorites/favorites_public/src/favorites_client.ts rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_client.ts diff --git a/packages/content-management/favorites/favorites_public/src/favorites_context.tsx b/src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_context.tsx similarity index 100% rename from packages/content-management/favorites/favorites_public/src/favorites_context.tsx rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_context.tsx diff --git a/packages/content-management/favorites/favorites_public/src/favorites_query.tsx b/src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_query.tsx similarity index 100% rename from packages/content-management/favorites/favorites_public/src/favorites_query.tsx rename to src/platform/packages/shared/content-management/favorites/favorites_public/src/favorites_query.tsx diff --git a/packages/content-management/favorites/favorites_public/tsconfig.json b/src/platform/packages/shared/content-management/favorites/favorites_public/tsconfig.json similarity index 89% rename from packages/content-management/favorites/favorites_public/tsconfig.json rename to src/platform/packages/shared/content-management/favorites/favorites_public/tsconfig.json index 3057c828fc3da..1f0745a123473 100644 --- a/packages/content-management/favorites/favorites_public/tsconfig.json +++ b/src/platform/packages/shared/content-management/favorites/favorites_public/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index d4121523ec79b..05d100895a08e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -210,8 +210,8 @@ "@kbn/content-management-examples-plugin/*": ["examples/content_management_examples/*"], "@kbn/content-management-favorites-common": ["src/platform/packages/private/content-management/favorites/favorites_common"], "@kbn/content-management-favorites-common/*": ["src/platform/packages/private/content-management/favorites/favorites_common/*"], - "@kbn/content-management-favorites-public": ["packages/content-management/favorites/favorites_public"], - "@kbn/content-management-favorites-public/*": ["packages/content-management/favorites/favorites_public/*"], + "@kbn/content-management-favorites-public": ["src/platform/packages/shared/content-management/favorites/favorites_public"], + "@kbn/content-management-favorites-public/*": ["src/platform/packages/shared/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"], diff --git a/yarn.lock b/yarn.lock index 1f7add15a5fe9..21fbb69004bf9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4236,7 +4236,7 @@ version "0.0.0" uid "" -"@kbn/content-management-favorites-public@link:packages/content-management/favorites/favorites_public": +"@kbn/content-management-favorites-public@link:src/platform/packages/shared/content-management/favorites/favorites_public": version "0.0.0" uid "" From c72ca388a80c755ded5018c3a5b030f3ee2f06c5 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:27:32 +0100 Subject: [PATCH 012/129] Relocating module `@kbn/content-management-favorites-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../content-management/favorites/favorites_server/README.md | 0 .../content-management/favorites/favorites_server/index.ts | 0 .../favorites/favorites_server/jest.config.js | 4 ++-- .../favorites/favorites_server/kibana.jsonc | 0 .../favorites/favorites_server/package.json | 0 .../favorites/favorites_server/src/favorites_registry.ts | 0 .../favorites/favorites_server/src/favorites_routes.ts | 0 .../favorites/favorites_server/src/favorites_saved_object.ts | 0 .../favorites/favorites_server/src/favorites_service.ts | 0 .../favorites_server/src/favorites_usage_collection.ts | 0 .../favorites/favorites_server/src/index.ts | 0 .../favorites/favorites_server/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 16 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/README.md (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/jest.config.js (79%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/package.json (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/src/favorites_registry.ts (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/src/favorites_routes.ts (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/src/favorites_saved_object.ts (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/src/favorites_service.ts (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/src/favorites_usage_collection.ts (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/src/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/favorites/favorites_server/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 57264153df209..541a7ef63b28a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/favorites/favorites_server @elastic/appex-sharedux packages/content-management/tabbed_table_list_view @elastic/appex-sharedux packages/content-management/table_list_view @elastic/appex-sharedux packages/content-management/table_list_view_common @elastic/appex-sharedux @@ -616,6 +615,7 @@ src/platform/packages/shared/content-management/content_editor @elastic/appex-sh src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux src/platform/packages/shared/content-management/favorites/favorites_public @elastic/appex-sharedux +src/platform/packages/shared/content-management/favorites/favorites_server @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index 4b0c740b03c4b..11d80e3f495de 100644 --- a/package.json +++ b/package.json @@ -235,7 +235,7 @@ "@kbn/content-management-examples-plugin": "link:examples/content_management_examples", "@kbn/content-management-favorites-common": "link:src/platform/packages/private/content-management/favorites/favorites_common", "@kbn/content-management-favorites-public": "link:src/platform/packages/shared/content-management/favorites/favorites_public", - "@kbn/content-management-favorites-server": "link:packages/content-management/favorites/favorites_server", + "@kbn/content-management-favorites-server": "link:src/platform/packages/shared/content-management/favorites/favorites_server", "@kbn/content-management-plugin": "link:src/plugins/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", diff --git a/packages/content-management/favorites/favorites_server/README.md b/src/platform/packages/shared/content-management/favorites/favorites_server/README.md similarity index 100% rename from packages/content-management/favorites/favorites_server/README.md rename to src/platform/packages/shared/content-management/favorites/favorites_server/README.md diff --git a/packages/content-management/favorites/favorites_server/index.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/index.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/index.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/index.ts diff --git a/packages/content-management/favorites/favorites_server/jest.config.js b/src/platform/packages/shared/content-management/favorites/favorites_server/jest.config.js similarity index 79% rename from packages/content-management/favorites/favorites_server/jest.config.js rename to src/platform/packages/shared/content-management/favorites/favorites_server/jest.config.js index 03916770b5a55..ef429d8acebd4 100644 --- a/packages/content-management/favorites/favorites_server/jest.config.js +++ b/src/platform/packages/shared/content-management/favorites/favorites_server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/content-management/favorites/favorites_server'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/content-management/favorites/favorites_server'], }; diff --git a/packages/content-management/favorites/favorites_server/kibana.jsonc b/src/platform/packages/shared/content-management/favorites/favorites_server/kibana.jsonc similarity index 100% rename from packages/content-management/favorites/favorites_server/kibana.jsonc rename to src/platform/packages/shared/content-management/favorites/favorites_server/kibana.jsonc diff --git a/packages/content-management/favorites/favorites_server/package.json b/src/platform/packages/shared/content-management/favorites/favorites_server/package.json similarity index 100% rename from packages/content-management/favorites/favorites_server/package.json rename to src/platform/packages/shared/content-management/favorites/favorites_server/package.json diff --git a/packages/content-management/favorites/favorites_server/src/favorites_registry.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_registry.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_registry.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_registry.ts diff --git a/packages/content-management/favorites/favorites_server/src/favorites_routes.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_routes.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_routes.ts diff --git a/packages/content-management/favorites/favorites_server/src/favorites_saved_object.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_saved_object.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_saved_object.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_saved_object.ts diff --git a/packages/content-management/favorites/favorites_server/src/favorites_service.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_service.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_service.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_service.ts diff --git a/packages/content-management/favorites/favorites_server/src/favorites_usage_collection.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_usage_collection.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/favorites_usage_collection.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/favorites_usage_collection.ts diff --git a/packages/content-management/favorites/favorites_server/src/index.ts b/src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts similarity index 100% rename from packages/content-management/favorites/favorites_server/src/index.ts rename to src/platform/packages/shared/content-management/favorites/favorites_server/src/index.ts diff --git a/packages/content-management/favorites/favorites_server/tsconfig.json b/src/platform/packages/shared/content-management/favorites/favorites_server/tsconfig.json similarity index 88% rename from packages/content-management/favorites/favorites_server/tsconfig.json rename to src/platform/packages/shared/content-management/favorites/favorites_server/tsconfig.json index bbab19ade978b..a5496a769ab58 100644 --- a/packages/content-management/favorites/favorites_server/tsconfig.json +++ b/src/platform/packages/shared/content-management/favorites/favorites_server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 05d100895a08e..bc23e207d0b06 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -212,8 +212,8 @@ "@kbn/content-management-favorites-common/*": ["src/platform/packages/private/content-management/favorites/favorites_common/*"], "@kbn/content-management-favorites-public": ["src/platform/packages/shared/content-management/favorites/favorites_public"], "@kbn/content-management-favorites-public/*": ["src/platform/packages/shared/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-favorites-server": ["src/platform/packages/shared/content-management/favorites/favorites_server"], + "@kbn/content-management-favorites-server/*": ["src/platform/packages/shared/content-management/favorites/favorites_server/*"], "@kbn/content-management-plugin": ["src/plugins/content_management"], "@kbn/content-management-plugin/*": ["src/plugins/content_management/*"], "@kbn/content-management-tabbed-table-list-view": ["packages/content-management/tabbed_table_list_view"], diff --git a/yarn.lock b/yarn.lock index 21fbb69004bf9..9d4ff49c3a5f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4240,7 +4240,7 @@ version "0.0.0" uid "" -"@kbn/content-management-favorites-server@link:packages/content-management/favorites/favorites_server": +"@kbn/content-management-favorites-server@link:src/platform/packages/shared/content-management/favorites/favorites_server": version "0.0.0" uid "" From d2ec25b8aedbfcf6dee8ef60cbd815fba51aed15 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:28:56 +0100 Subject: [PATCH 013/129] 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 541a7ef63b28a..60969b0bec9b4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -625,6 +625,7 @@ src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/platform/plugins/shared/bfetch @elastic/appex-sharedux +src/platform/plugins/shared/content_management @elastic/appex-sharedux src/platform/plugins/shared/esql @elastic/kibana-esql src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql src/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant @@ -638,7 +639,6 @@ 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/console @elastic/kibana-management -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 24c973917c8db..1222c6dd941df 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 11d80e3f495de..9e8bac2fb2c42 100644 --- a/package.json +++ b/package.json @@ -236,7 +236,7 @@ "@kbn/content-management-favorites-common": "link:src/platform/packages/private/content-management/favorites/favorites_common", "@kbn/content-management-favorites-public": "link:src/platform/packages/shared/content-management/favorites/favorites_public", "@kbn/content-management-favorites-server": "link:src/platform/packages/shared/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 bc23e207d0b06..c1b692afa171f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -214,8 +214,8 @@ "@kbn/content-management-favorites-public/*": ["src/platform/packages/shared/content-management/favorites/favorites_public/*"], "@kbn/content-management-favorites-server": ["src/platform/packages/shared/content-management/favorites/favorites_server"], "@kbn/content-management-favorites-server/*": ["src/platform/packages/shared/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 9d4ff49c3a5f1..ce574a030fb4e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4244,7 +4244,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 d6082bdb0147e6d6f8e74d760d2b33bd8d3ba2f2 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:30:17 +0100 Subject: [PATCH 014/129] Relocating module `@kbn/content-management-tabbed-table-list-view` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../content-management/tabbed_table_list_view/README.mdx | 0 .../content-management/tabbed_table_list_view/index.ts | 0 .../content-management/tabbed_table_list_view/jest.config.js | 4 ++-- .../content-management/tabbed_table_list_view/kibana.jsonc | 0 .../content-management/tabbed_table_list_view/package.json | 0 .../content-management/tabbed_table_list_view/src/index.ts | 0 .../src/tabbed_table_list_view.test.tsx | 0 .../tabbed_table_list_view/src/tabbed_table_list_view.tsx | 0 .../content-management/tabbed_table_list_view/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/content-management/tabbed_table_list_view/README.mdx (100%) rename {packages => src/platform/packages/private}/content-management/tabbed_table_list_view/index.ts (100%) rename {packages => src/platform/packages/private}/content-management/tabbed_table_list_view/jest.config.js (80%) rename {packages => src/platform/packages/private}/content-management/tabbed_table_list_view/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/content-management/tabbed_table_list_view/package.json (100%) rename {packages => src/platform/packages/private}/content-management/tabbed_table_list_view/src/index.ts (100%) rename {packages => src/platform/packages/private}/content-management/tabbed_table_list_view/src/tabbed_table_list_view.test.tsx (100%) rename {packages => src/platform/packages/private}/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx (100%) rename {packages => src/platform/packages/private}/content-management/tabbed_table_list_view/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 60969b0bec9b4..de388cc0b85f1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/tabbed_table_list_view @elastic/appex-sharedux packages/content-management/table_list_view @elastic/appex-sharedux packages/content-management/table_list_view_common @elastic/appex-sharedux packages/content-management/table_list_view_table @elastic/appex-sharedux @@ -609,6 +608,7 @@ packages/shared-ux/storybook/mock @elastic/appex-sharedux packages/shared-ux/table_persist @elastic/appex-sharedux src/core @elastic/kibana-core src/platform/packages/private/content-management/favorites/favorites_common @elastic/appex-sharedux +src/platform/packages/private/content-management/tabbed_table_list_view @elastic/appex-sharedux src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux diff --git a/package.json b/package.json index 9e8bac2fb2c42..5a4365f57f28d 100644 --- a/package.json +++ b/package.json @@ -237,7 +237,7 @@ "@kbn/content-management-favorites-public": "link:src/platform/packages/shared/content-management/favorites/favorites_public", "@kbn/content-management-favorites-server": "link:src/platform/packages/shared/content-management/favorites/favorites_server", "@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-tabbed-table-list-view": "link:src/platform/packages/private/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", "@kbn/content-management-table-list-view-table": "link:packages/content-management/table_list_view_table", diff --git a/packages/content-management/tabbed_table_list_view/README.mdx b/src/platform/packages/private/content-management/tabbed_table_list_view/README.mdx similarity index 100% rename from packages/content-management/tabbed_table_list_view/README.mdx rename to src/platform/packages/private/content-management/tabbed_table_list_view/README.mdx diff --git a/packages/content-management/tabbed_table_list_view/index.ts b/src/platform/packages/private/content-management/tabbed_table_list_view/index.ts similarity index 100% rename from packages/content-management/tabbed_table_list_view/index.ts rename to src/platform/packages/private/content-management/tabbed_table_list_view/index.ts diff --git a/packages/content-management/tabbed_table_list_view/jest.config.js b/src/platform/packages/private/content-management/tabbed_table_list_view/jest.config.js similarity index 80% rename from packages/content-management/tabbed_table_list_view/jest.config.js rename to src/platform/packages/private/content-management/tabbed_table_list_view/jest.config.js index 589510b334285..1eb298ef656b8 100644 --- a/packages/content-management/tabbed_table_list_view/jest.config.js +++ b/src/platform/packages/private/content-management/tabbed_table_list_view/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/content-management/tabbed_table_list_view'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/private/content-management/tabbed_table_list_view'], }; diff --git a/packages/content-management/tabbed_table_list_view/kibana.jsonc b/src/platform/packages/private/content-management/tabbed_table_list_view/kibana.jsonc similarity index 100% rename from packages/content-management/tabbed_table_list_view/kibana.jsonc rename to src/platform/packages/private/content-management/tabbed_table_list_view/kibana.jsonc diff --git a/packages/content-management/tabbed_table_list_view/package.json b/src/platform/packages/private/content-management/tabbed_table_list_view/package.json similarity index 100% rename from packages/content-management/tabbed_table_list_view/package.json rename to src/platform/packages/private/content-management/tabbed_table_list_view/package.json diff --git a/packages/content-management/tabbed_table_list_view/src/index.ts b/src/platform/packages/private/content-management/tabbed_table_list_view/src/index.ts similarity index 100% rename from packages/content-management/tabbed_table_list_view/src/index.ts rename to src/platform/packages/private/content-management/tabbed_table_list_view/src/index.ts diff --git a/packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.test.tsx b/src/platform/packages/private/content-management/tabbed_table_list_view/src/tabbed_table_list_view.test.tsx similarity index 100% rename from packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.test.tsx rename to src/platform/packages/private/content-management/tabbed_table_list_view/src/tabbed_table_list_view.test.tsx diff --git a/packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx b/src/platform/packages/private/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx similarity index 100% rename from packages/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx rename to src/platform/packages/private/content-management/tabbed_table_list_view/src/tabbed_table_list_view.tsx diff --git a/packages/content-management/tabbed_table_list_view/tsconfig.json b/src/platform/packages/private/content-management/tabbed_table_list_view/tsconfig.json similarity index 91% rename from packages/content-management/tabbed_table_list_view/tsconfig.json rename to src/platform/packages/private/content-management/tabbed_table_list_view/tsconfig.json index 41c06d75bbbda..2deb84e79bdb9 100644 --- a/packages/content-management/tabbed_table_list_view/tsconfig.json +++ b/src/platform/packages/private/content-management/tabbed_table_list_view/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c1b692afa171f..2850fdfe98f75 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -216,8 +216,8 @@ "@kbn/content-management-favorites-server/*": ["src/platform/packages/shared/content-management/favorites/favorites_server/*"], "@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-tabbed-table-list-view": ["src/platform/packages/private/content-management/tabbed_table_list_view"], + "@kbn/content-management-tabbed-table-list-view/*": ["src/platform/packages/private/content-management/tabbed_table_list_view/*"], "@kbn/content-management-table-list-view": ["packages/content-management/table_list_view"], "@kbn/content-management-table-list-view/*": ["packages/content-management/table_list_view/*"], "@kbn/content-management-table-list-view-common": ["packages/content-management/table_list_view_common"], diff --git a/yarn.lock b/yarn.lock index ce574a030fb4e..f1dcaf61b48d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4248,7 +4248,7 @@ version "0.0.0" uid "" -"@kbn/content-management-tabbed-table-list-view@link:packages/content-management/tabbed_table_list_view": +"@kbn/content-management-tabbed-table-list-view@link:src/platform/packages/private/content-management/tabbed_table_list_view": version "0.0.0" uid "" From 55ac29aff7811a1e2d1835e2919fdc3337663794 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:31:38 +0100 Subject: [PATCH 015/129] Relocating module `@kbn/content-management-table-list-view` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/content-management/table_list_view/README.mdx | 0 .../shared}/content-management/table_list_view/index.ts | 0 .../shared}/content-management/table_list_view/jest.config.js | 4 ++-- .../shared}/content-management/table_list_view/kibana.jsonc | 0 .../shared}/content-management/table_list_view/package.json | 0 .../table_list_view/src/table_list_view.tsx | 0 .../shared}/content-management/table_list_view/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/content-management/table_list_view/README.mdx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view/jest.config.js (81%) rename {packages => src/platform/packages/shared}/content-management/table_list_view/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view/package.json (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view/src/table_list_view.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index de388cc0b85f1..be9c5ef1361c0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/table_list_view @elastic/appex-sharedux packages/content-management/table_list_view_common @elastic/appex-sharedux packages/content-management/table_list_view_table @elastic/appex-sharedux packages/content-management/user_profiles @elastic/appex-sharedux @@ -616,6 +615,7 @@ src/platform/packages/shared/content-management/content_insights/content_insight src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux src/platform/packages/shared/content-management/favorites/favorites_public @elastic/appex-sharedux src/platform/packages/shared/content-management/favorites/favorites_server @elastic/appex-sharedux +src/platform/packages/shared/content-management/table_list_view @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index 5a4365f57f28d..27df370bb5507 100644 --- a/package.json +++ b/package.json @@ -238,7 +238,7 @@ "@kbn/content-management-favorites-server": "link:src/platform/packages/shared/content-management/favorites/favorites_server", "@kbn/content-management-plugin": "link:src/platform/plugins/shared/content_management", "@kbn/content-management-tabbed-table-list-view": "link:src/platform/packages/private/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": "link:src/platform/packages/shared/content-management/table_list_view", "@kbn/content-management-table-list-view-common": "link:packages/content-management/table_list_view_common", "@kbn/content-management-table-list-view-table": "link:packages/content-management/table_list_view_table", "@kbn/content-management-user-profiles": "link:packages/content-management/user_profiles", diff --git a/packages/content-management/table_list_view/README.mdx b/src/platform/packages/shared/content-management/table_list_view/README.mdx similarity index 100% rename from packages/content-management/table_list_view/README.mdx rename to src/platform/packages/shared/content-management/table_list_view/README.mdx diff --git a/packages/content-management/table_list_view/index.ts b/src/platform/packages/shared/content-management/table_list_view/index.ts similarity index 100% rename from packages/content-management/table_list_view/index.ts rename to src/platform/packages/shared/content-management/table_list_view/index.ts diff --git a/packages/content-management/table_list_view/jest.config.js b/src/platform/packages/shared/content-management/table_list_view/jest.config.js similarity index 81% rename from packages/content-management/table_list_view/jest.config.js rename to src/platform/packages/shared/content-management/table_list_view/jest.config.js index fe0bc50cdb1a0..912c0c68d91e7 100644 --- a/packages/content-management/table_list_view/jest.config.js +++ b/src/platform/packages/shared/content-management/table_list_view/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/content-management/table_list_view'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/content-management/table_list_view'], }; diff --git a/packages/content-management/table_list_view/kibana.jsonc b/src/platform/packages/shared/content-management/table_list_view/kibana.jsonc similarity index 100% rename from packages/content-management/table_list_view/kibana.jsonc rename to src/platform/packages/shared/content-management/table_list_view/kibana.jsonc diff --git a/packages/content-management/table_list_view/package.json b/src/platform/packages/shared/content-management/table_list_view/package.json similarity index 100% rename from packages/content-management/table_list_view/package.json rename to src/platform/packages/shared/content-management/table_list_view/package.json diff --git a/packages/content-management/table_list_view/src/table_list_view.tsx b/src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx similarity index 100% rename from packages/content-management/table_list_view/src/table_list_view.tsx rename to src/platform/packages/shared/content-management/table_list_view/src/table_list_view.tsx diff --git a/packages/content-management/table_list_view/tsconfig.json b/src/platform/packages/shared/content-management/table_list_view/tsconfig.json similarity index 90% rename from packages/content-management/table_list_view/tsconfig.json rename to src/platform/packages/shared/content-management/table_list_view/tsconfig.json index f8a034aa61012..aa9e9216698c3 100644 --- a/packages/content-management/table_list_view/tsconfig.json +++ b/src/platform/packages/shared/content-management/table_list_view/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 2850fdfe98f75..bd05508b0b9ee 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -218,8 +218,8 @@ "@kbn/content-management-plugin/*": ["src/platform/plugins/shared/content_management/*"], "@kbn/content-management-tabbed-table-list-view": ["src/platform/packages/private/content-management/tabbed_table_list_view"], "@kbn/content-management-tabbed-table-list-view/*": ["src/platform/packages/private/content-management/tabbed_table_list_view/*"], - "@kbn/content-management-table-list-view": ["packages/content-management/table_list_view"], - "@kbn/content-management-table-list-view/*": ["packages/content-management/table_list_view/*"], + "@kbn/content-management-table-list-view": ["src/platform/packages/shared/content-management/table_list_view"], + "@kbn/content-management-table-list-view/*": ["src/platform/packages/shared/content-management/table_list_view/*"], "@kbn/content-management-table-list-view-common": ["packages/content-management/table_list_view_common"], "@kbn/content-management-table-list-view-common/*": ["packages/content-management/table_list_view_common/*"], "@kbn/content-management-table-list-view-table": ["packages/content-management/table_list_view_table"], diff --git a/yarn.lock b/yarn.lock index f1dcaf61b48d5..9fbf12663e044 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4260,7 +4260,7 @@ version "0.0.0" uid "" -"@kbn/content-management-table-list-view@link:packages/content-management/table_list_view": +"@kbn/content-management-table-list-view@link:src/platform/packages/shared/content-management/table_list_view": version "0.0.0" uid "" From 049907126e7e1a01c695f059c9be3996f0e06712 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:32:55 +0100 Subject: [PATCH 016/129] Relocating module `@kbn/content-management-table-list-view-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../content-management/table_list_view_common/README.md | 0 .../content-management/table_list_view_common/index.ts | 0 .../content-management/table_list_view_common/kibana.jsonc | 0 .../content-management/table_list_view_common/package.json | 0 .../content-management/table_list_view_common/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/content-management/table_list_view_common/README.md (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_common/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_common/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_common/package.json (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_common/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index be9c5ef1361c0..08d67c3320102 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/table_list_view_common @elastic/appex-sharedux packages/content-management/table_list_view_table @elastic/appex-sharedux packages/content-management/user_profiles @elastic/appex-sharedux packages/core/analytics/core-analytics-browser @elastic/kibana-core @@ -616,6 +615,7 @@ src/platform/packages/shared/content-management/content_insights/content_insight src/platform/packages/shared/content-management/favorites/favorites_public @elastic/appex-sharedux src/platform/packages/shared/content-management/favorites/favorites_server @elastic/appex-sharedux src/platform/packages/shared/content-management/table_list_view @elastic/appex-sharedux +src/platform/packages/shared/content-management/table_list_view_common @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index 27df370bb5507..bec2f0f59b3a0 100644 --- a/package.json +++ b/package.json @@ -239,7 +239,7 @@ "@kbn/content-management-plugin": "link:src/platform/plugins/shared/content_management", "@kbn/content-management-tabbed-table-list-view": "link:src/platform/packages/private/content-management/tabbed_table_list_view", "@kbn/content-management-table-list-view": "link:src/platform/packages/shared/content-management/table_list_view", - "@kbn/content-management-table-list-view-common": "link:packages/content-management/table_list_view_common", + "@kbn/content-management-table-list-view-common": "link:src/platform/packages/shared/content-management/table_list_view_common", "@kbn/content-management-table-list-view-table": "link:packages/content-management/table_list_view_table", "@kbn/content-management-user-profiles": "link:packages/content-management/user_profiles", "@kbn/content-management-utils": "link:packages/kbn-content-management-utils", diff --git a/packages/content-management/table_list_view_common/README.md b/src/platform/packages/shared/content-management/table_list_view_common/README.md similarity index 100% rename from packages/content-management/table_list_view_common/README.md rename to src/platform/packages/shared/content-management/table_list_view_common/README.md diff --git a/packages/content-management/table_list_view_common/index.ts b/src/platform/packages/shared/content-management/table_list_view_common/index.ts similarity index 100% rename from packages/content-management/table_list_view_common/index.ts rename to src/platform/packages/shared/content-management/table_list_view_common/index.ts diff --git a/packages/content-management/table_list_view_common/kibana.jsonc b/src/platform/packages/shared/content-management/table_list_view_common/kibana.jsonc similarity index 100% rename from packages/content-management/table_list_view_common/kibana.jsonc rename to src/platform/packages/shared/content-management/table_list_view_common/kibana.jsonc diff --git a/packages/content-management/table_list_view_common/package.json b/src/platform/packages/shared/content-management/table_list_view_common/package.json similarity index 100% rename from packages/content-management/table_list_view_common/package.json rename to src/platform/packages/shared/content-management/table_list_view_common/package.json diff --git a/packages/content-management/table_list_view_common/tsconfig.json b/src/platform/packages/shared/content-management/table_list_view_common/tsconfig.json similarity index 82% rename from packages/content-management/table_list_view_common/tsconfig.json rename to src/platform/packages/shared/content-management/table_list_view_common/tsconfig.json index 46f71bf3cc2b9..ad8d185ccf03e 100644 --- a/packages/content-management/table_list_view_common/tsconfig.json +++ b/src/platform/packages/shared/content-management/table_list_view_common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index bd05508b0b9ee..e27d5a0588c2a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -220,8 +220,8 @@ "@kbn/content-management-tabbed-table-list-view/*": ["src/platform/packages/private/content-management/tabbed_table_list_view/*"], "@kbn/content-management-table-list-view": ["src/platform/packages/shared/content-management/table_list_view"], "@kbn/content-management-table-list-view/*": ["src/platform/packages/shared/content-management/table_list_view/*"], - "@kbn/content-management-table-list-view-common": ["packages/content-management/table_list_view_common"], - "@kbn/content-management-table-list-view-common/*": ["packages/content-management/table_list_view_common/*"], + "@kbn/content-management-table-list-view-common": ["src/platform/packages/shared/content-management/table_list_view_common"], + "@kbn/content-management-table-list-view-common/*": ["src/platform/packages/shared/content-management/table_list_view_common/*"], "@kbn/content-management-table-list-view-table": ["packages/content-management/table_list_view_table"], "@kbn/content-management-table-list-view-table/*": ["packages/content-management/table_list_view_table/*"], "@kbn/content-management-user-profiles": ["packages/content-management/user_profiles"], diff --git a/yarn.lock b/yarn.lock index 9fbf12663e044..f0bb91302b164 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4252,7 +4252,7 @@ version "0.0.0" uid "" -"@kbn/content-management-table-list-view-common@link:packages/content-management/table_list_view_common": +"@kbn/content-management-table-list-view-common@link:src/platform/packages/shared/content-management/table_list_view_common": version "0.0.0" uid "" From 047734d0019db1ac97c1e3782f201e954c9be872 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:34:18 +0100 Subject: [PATCH 017/129] Relocating module `@kbn/content-management-table-list-view-table` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../content-management/table_list_view_table/README.mdx | 0 .../shared}/content-management/table_list_view_table/index.ts | 0 .../content-management/table_list_view_table/jest.config.js | 4 ++-- .../content-management/table_list_view_table/kibana.jsonc | 0 .../content-management/table_list_view_table/package.json | 0 .../src/__jest__/created_by_column.test.tsx | 0 .../src/__jest__/created_by_filter.test.tsx | 0 .../table_list_view_table/src/__jest__/index.ts | 0 .../table_list_view_table/src/__jest__/tests.helpers.tsx | 0 .../content-management/table_list_view_table/src/actions.ts | 0 .../src/components/confirm_delete_modal.tsx | 0 .../src/components/content_editor_activity_row.tsx | 0 .../table_list_view_table/src/components/index.ts | 0 .../table_list_view_table/src/components/item_details.tsx | 0 .../src/components/listing_limit_warning.tsx | 0 .../table_list_view_table/src/components/tabbed_filter.tsx | 0 .../table_list_view_table/src/components/table.tsx | 0 .../src/components/table_sort_select.test.tsx | 0 .../src/components/table_sort_select.tsx | 0 .../table_list_view_table/src/components/tag_badge.tsx | 0 .../table_list_view_table/src/components/tag_filter_panel.tsx | 0 .../table_list_view_table/src/components/updated_at_field.tsx | 0 .../src/components/use_tag_filter_panel.tsx | 0 .../src/components/user_filter_panel.tsx | 0 .../content-management/table_list_view_table/src/constants.ts | 0 .../content-management/table_list_view_table/src/index.ts | 0 .../content-management/table_list_view_table/src/mocks.tsx | 0 .../content-management/table_list_view_table/src/reducer.tsx | 0 .../content-management/table_list_view_table/src/services.tsx | 0 .../table_list_view_table/src/table_list_view.test.helpers.ts | 0 .../table_list_view_table/src/table_list_view.test.tsx | 0 .../table_list_view_table/src/table_list_view_table.tsx | 0 .../content-management/table_list_view_table/src/types.ts | 0 .../content-management/table_list_view_table/src/use_tags.ts | 0 .../table_list_view_table/src/use_url_state.ts | 0 .../content-management/table_list_view_table/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 40 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/README.mdx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/jest.config.js (80%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/package.json (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/__jest__/created_by_column.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/__jest__/created_by_filter.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/__jest__/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/__jest__/tests.helpers.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/actions.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/confirm_delete_modal.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/content_editor_activity_row.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/item_details.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/listing_limit_warning.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/tabbed_filter.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/table.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/table_sort_select.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/table_sort_select.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/tag_badge.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/tag_filter_panel.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/updated_at_field.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/use_tag_filter_panel.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/components/user_filter_panel.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/constants.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/mocks.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/reducer.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/table_list_view.test.helpers.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/table_list_view.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/table_list_view_table.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/types.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/use_tags.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/src/use_url_state.ts (100%) rename {packages => src/platform/packages/shared}/content-management/table_list_view_table/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 08d67c3320102..c2cb11823d878 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/table_list_view_table @elastic/appex-sharedux packages/content-management/user_profiles @elastic/appex-sharedux packages/core/analytics/core-analytics-browser @elastic/kibana-core packages/core/analytics/core-analytics-browser-internal @elastic/kibana-core @@ -616,6 +615,7 @@ src/platform/packages/shared/content-management/favorites/favorites_public @elas src/platform/packages/shared/content-management/favorites/favorites_server @elastic/appex-sharedux src/platform/packages/shared/content-management/table_list_view @elastic/appex-sharedux src/platform/packages/shared/content-management/table_list_view_common @elastic/appex-sharedux +src/platform/packages/shared/content-management/table_list_view_table @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index bec2f0f59b3a0..60f4ddd3b72d2 100644 --- a/package.json +++ b/package.json @@ -240,7 +240,7 @@ "@kbn/content-management-tabbed-table-list-view": "link:src/platform/packages/private/content-management/tabbed_table_list_view", "@kbn/content-management-table-list-view": "link:src/platform/packages/shared/content-management/table_list_view", "@kbn/content-management-table-list-view-common": "link:src/platform/packages/shared/content-management/table_list_view_common", - "@kbn/content-management-table-list-view-table": "link:packages/content-management/table_list_view_table", + "@kbn/content-management-table-list-view-table": "link:src/platform/packages/shared/content-management/table_list_view_table", "@kbn/content-management-user-profiles": "link:packages/content-management/user_profiles", "@kbn/content-management-utils": "link:packages/kbn-content-management-utils", "@kbn/controls-example-plugin": "link:examples/controls_example", diff --git a/packages/content-management/table_list_view_table/README.mdx b/src/platform/packages/shared/content-management/table_list_view_table/README.mdx similarity index 100% rename from packages/content-management/table_list_view_table/README.mdx rename to src/platform/packages/shared/content-management/table_list_view_table/README.mdx diff --git a/packages/content-management/table_list_view_table/index.ts b/src/platform/packages/shared/content-management/table_list_view_table/index.ts similarity index 100% rename from packages/content-management/table_list_view_table/index.ts rename to src/platform/packages/shared/content-management/table_list_view_table/index.ts diff --git a/packages/content-management/table_list_view_table/jest.config.js b/src/platform/packages/shared/content-management/table_list_view_table/jest.config.js similarity index 80% rename from packages/content-management/table_list_view_table/jest.config.js rename to src/platform/packages/shared/content-management/table_list_view_table/jest.config.js index ec23407aa0c65..590f64bae46f9 100644 --- a/packages/content-management/table_list_view_table/jest.config.js +++ b/src/platform/packages/shared/content-management/table_list_view_table/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/content-management/table_list_view_table'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/content-management/table_list_view_table'], }; diff --git a/packages/content-management/table_list_view_table/kibana.jsonc b/src/platform/packages/shared/content-management/table_list_view_table/kibana.jsonc similarity index 100% rename from packages/content-management/table_list_view_table/kibana.jsonc rename to src/platform/packages/shared/content-management/table_list_view_table/kibana.jsonc diff --git a/packages/content-management/table_list_view_table/package.json b/src/platform/packages/shared/content-management/table_list_view_table/package.json similarity index 100% rename from packages/content-management/table_list_view_table/package.json rename to src/platform/packages/shared/content-management/table_list_view_table/package.json diff --git a/packages/content-management/table_list_view_table/src/__jest__/created_by_column.test.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/created_by_column.test.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/__jest__/created_by_column.test.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/created_by_column.test.tsx diff --git a/packages/content-management/table_list_view_table/src/__jest__/created_by_filter.test.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/created_by_filter.test.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/__jest__/created_by_filter.test.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/created_by_filter.test.tsx diff --git a/packages/content-management/table_list_view_table/src/__jest__/index.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/index.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/__jest__/index.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/index.ts diff --git a/packages/content-management/table_list_view_table/src/__jest__/tests.helpers.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/tests.helpers.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/__jest__/tests.helpers.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/__jest__/tests.helpers.tsx diff --git a/packages/content-management/table_list_view_table/src/actions.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/actions.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/actions.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/actions.ts diff --git a/packages/content-management/table_list_view_table/src/components/confirm_delete_modal.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/confirm_delete_modal.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/confirm_delete_modal.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/confirm_delete_modal.tsx diff --git a/packages/content-management/table_list_view_table/src/components/content_editor_activity_row.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/content_editor_activity_row.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/content_editor_activity_row.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/content_editor_activity_row.tsx diff --git a/packages/content-management/table_list_view_table/src/components/index.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/components/index.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/components/index.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/index.ts diff --git a/packages/content-management/table_list_view_table/src/components/item_details.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/item_details.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/item_details.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/item_details.tsx diff --git a/packages/content-management/table_list_view_table/src/components/listing_limit_warning.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/listing_limit_warning.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/listing_limit_warning.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/listing_limit_warning.tsx diff --git a/packages/content-management/table_list_view_table/src/components/tabbed_filter.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/tabbed_filter.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/tabbed_filter.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/tabbed_filter.tsx diff --git a/packages/content-management/table_list_view_table/src/components/table.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/table.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/table.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/table.tsx diff --git a/packages/content-management/table_list_view_table/src/components/table_sort_select.test.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/table_sort_select.test.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/table_sort_select.test.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/table_sort_select.test.tsx diff --git a/packages/content-management/table_list_view_table/src/components/table_sort_select.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/table_sort_select.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/table_sort_select.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/table_sort_select.tsx diff --git a/packages/content-management/table_list_view_table/src/components/tag_badge.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/tag_badge.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/tag_badge.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/tag_badge.tsx diff --git a/packages/content-management/table_list_view_table/src/components/tag_filter_panel.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/tag_filter_panel.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/tag_filter_panel.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/tag_filter_panel.tsx diff --git a/packages/content-management/table_list_view_table/src/components/updated_at_field.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/updated_at_field.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/updated_at_field.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/updated_at_field.tsx diff --git a/packages/content-management/table_list_view_table/src/components/use_tag_filter_panel.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/use_tag_filter_panel.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/use_tag_filter_panel.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/use_tag_filter_panel.tsx diff --git a/packages/content-management/table_list_view_table/src/components/user_filter_panel.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/components/user_filter_panel.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/components/user_filter_panel.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/components/user_filter_panel.tsx diff --git a/packages/content-management/table_list_view_table/src/constants.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/constants.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/constants.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/constants.ts diff --git a/packages/content-management/table_list_view_table/src/index.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/index.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/index.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/index.ts diff --git a/packages/content-management/table_list_view_table/src/mocks.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/mocks.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/mocks.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/mocks.tsx diff --git a/packages/content-management/table_list_view_table/src/reducer.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/reducer.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/reducer.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/reducer.tsx diff --git a/packages/content-management/table_list_view_table/src/services.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/services.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx diff --git a/packages/content-management/table_list_view_table/src/table_list_view.test.helpers.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view.test.helpers.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/table_list_view.test.helpers.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view.test.helpers.ts diff --git a/packages/content-management/table_list_view_table/src/table_list_view.test.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view.test.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/table_list_view.test.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view.test.tsx diff --git a/packages/content-management/table_list_view_table/src/table_list_view_table.tsx b/src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx similarity index 100% rename from packages/content-management/table_list_view_table/src/table_list_view_table.tsx rename to src/platform/packages/shared/content-management/table_list_view_table/src/table_list_view_table.tsx diff --git a/packages/content-management/table_list_view_table/src/types.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/types.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/types.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/types.ts diff --git a/packages/content-management/table_list_view_table/src/use_tags.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/use_tags.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/use_tags.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/use_tags.ts diff --git a/packages/content-management/table_list_view_table/src/use_url_state.ts b/src/platform/packages/shared/content-management/table_list_view_table/src/use_url_state.ts similarity index 100% rename from packages/content-management/table_list_view_table/src/use_url_state.ts rename to src/platform/packages/shared/content-management/table_list_view_table/src/use_url_state.ts diff --git a/packages/content-management/table_list_view_table/tsconfig.json b/src/platform/packages/shared/content-management/table_list_view_table/tsconfig.json similarity index 95% rename from packages/content-management/table_list_view_table/tsconfig.json rename to src/platform/packages/shared/content-management/table_list_view_table/tsconfig.json index 90a96953570fb..5f378ba1e45ce 100644 --- a/packages/content-management/table_list_view_table/tsconfig.json +++ b/src/platform/packages/shared/content-management/table_list_view_table/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index e27d5a0588c2a..200e6cc1c8775 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -222,8 +222,8 @@ "@kbn/content-management-table-list-view/*": ["src/platform/packages/shared/content-management/table_list_view/*"], "@kbn/content-management-table-list-view-common": ["src/platform/packages/shared/content-management/table_list_view_common"], "@kbn/content-management-table-list-view-common/*": ["src/platform/packages/shared/content-management/table_list_view_common/*"], - "@kbn/content-management-table-list-view-table": ["packages/content-management/table_list_view_table"], - "@kbn/content-management-table-list-view-table/*": ["packages/content-management/table_list_view_table/*"], + "@kbn/content-management-table-list-view-table": ["src/platform/packages/shared/content-management/table_list_view_table"], + "@kbn/content-management-table-list-view-table/*": ["src/platform/packages/shared/content-management/table_list_view_table/*"], "@kbn/content-management-user-profiles": ["packages/content-management/user_profiles"], "@kbn/content-management-user-profiles/*": ["packages/content-management/user_profiles/*"], "@kbn/content-management-utils": ["packages/kbn-content-management-utils"], diff --git a/yarn.lock b/yarn.lock index f0bb91302b164..c110f43acb6d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4256,7 +4256,7 @@ version "0.0.0" uid "" -"@kbn/content-management-table-list-view-table@link:packages/content-management/table_list_view_table": +"@kbn/content-management-table-list-view-table@link:src/platform/packages/shared/content-management/table_list_view_table": version "0.0.0" uid "" From 62d24e5a19232736bd237d1ea0b9fcf73ed13628 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:35:46 +0100 Subject: [PATCH 018/129] Relocating module `@kbn/content-management-user-profiles` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/content-management/user_profiles/README.md | 0 .../shared}/content-management/user_profiles/index.ts | 0 .../shared}/content-management/user_profiles/jest.config.js | 4 ++-- .../shared}/content-management/user_profiles/kibana.jsonc | 0 .../shared}/content-management/user_profiles/package.json | 0 .../content-management/user_profiles/src/components/index.ts | 0 .../user_profiles/src/components/managed_avatar_tip.tsx | 0 .../user_profiles/src/components/user_avatar_tip.tsx | 0 .../user_profiles/src/components/user_missing_tip.tsx | 0 .../shared}/content-management/user_profiles/src/queries.ts | 0 .../shared}/content-management/user_profiles/src/services.tsx | 0 .../user_profiles/src/utils/batcher.test.tsx | 0 .../content-management/user_profiles/src/utils/batcher.ts | 0 .../shared}/content-management/user_profiles/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/content-management/user_profiles/README.md (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/jest.config.js (81%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/package.json (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/src/components/index.ts (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/src/components/managed_avatar_tip.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/src/components/user_avatar_tip.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/src/components/user_missing_tip.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/src/queries.ts (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/src/utils/batcher.test.tsx (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/src/utils/batcher.ts (100%) rename {packages => src/platform/packages/shared}/content-management/user_profiles/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c2cb11823d878..d122e4341e01c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -44,7 +44,6 @@ examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core -packages/content-management/user_profiles @elastic/appex-sharedux packages/core/analytics/core-analytics-browser @elastic/kibana-core packages/core/analytics/core-analytics-browser-internal @elastic/kibana-core packages/core/analytics/core-analytics-browser-mocks @elastic/kibana-core @@ -616,6 +615,7 @@ src/platform/packages/shared/content-management/favorites/favorites_server @elas src/platform/packages/shared/content-management/table_list_view @elastic/appex-sharedux src/platform/packages/shared/content-management/table_list_view_common @elastic/appex-sharedux src/platform/packages/shared/content-management/table_list_view_table @elastic/appex-sharedux +src/platform/packages/shared/content-management/user_profiles @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index 60f4ddd3b72d2..f9c9a44a6af19 100644 --- a/package.json +++ b/package.json @@ -241,7 +241,7 @@ "@kbn/content-management-table-list-view": "link:src/platform/packages/shared/content-management/table_list_view", "@kbn/content-management-table-list-view-common": "link:src/platform/packages/shared/content-management/table_list_view_common", "@kbn/content-management-table-list-view-table": "link:src/platform/packages/shared/content-management/table_list_view_table", - "@kbn/content-management-user-profiles": "link:packages/content-management/user_profiles", + "@kbn/content-management-user-profiles": "link:src/platform/packages/shared/content-management/user_profiles", "@kbn/content-management-utils": "link:packages/kbn-content-management-utils", "@kbn/controls-example-plugin": "link:examples/controls_example", "@kbn/controls-plugin": "link:src/plugins/controls", diff --git a/packages/content-management/user_profiles/README.md b/src/platform/packages/shared/content-management/user_profiles/README.md similarity index 100% rename from packages/content-management/user_profiles/README.md rename to src/platform/packages/shared/content-management/user_profiles/README.md diff --git a/packages/content-management/user_profiles/index.ts b/src/platform/packages/shared/content-management/user_profiles/index.ts similarity index 100% rename from packages/content-management/user_profiles/index.ts rename to src/platform/packages/shared/content-management/user_profiles/index.ts diff --git a/packages/content-management/user_profiles/jest.config.js b/src/platform/packages/shared/content-management/user_profiles/jest.config.js similarity index 81% rename from packages/content-management/user_profiles/jest.config.js rename to src/platform/packages/shared/content-management/user_profiles/jest.config.js index 0b318c66752ff..95181dc35951a 100644 --- a/packages/content-management/user_profiles/jest.config.js +++ b/src/platform/packages/shared/content-management/user_profiles/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/content-management/user_profiles'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/content-management/user_profiles'], }; diff --git a/packages/content-management/user_profiles/kibana.jsonc b/src/platform/packages/shared/content-management/user_profiles/kibana.jsonc similarity index 100% rename from packages/content-management/user_profiles/kibana.jsonc rename to src/platform/packages/shared/content-management/user_profiles/kibana.jsonc diff --git a/packages/content-management/user_profiles/package.json b/src/platform/packages/shared/content-management/user_profiles/package.json similarity index 100% rename from packages/content-management/user_profiles/package.json rename to src/platform/packages/shared/content-management/user_profiles/package.json diff --git a/packages/content-management/user_profiles/src/components/index.ts b/src/platform/packages/shared/content-management/user_profiles/src/components/index.ts similarity index 100% rename from packages/content-management/user_profiles/src/components/index.ts rename to src/platform/packages/shared/content-management/user_profiles/src/components/index.ts diff --git a/packages/content-management/user_profiles/src/components/managed_avatar_tip.tsx b/src/platform/packages/shared/content-management/user_profiles/src/components/managed_avatar_tip.tsx similarity index 100% rename from packages/content-management/user_profiles/src/components/managed_avatar_tip.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/components/managed_avatar_tip.tsx diff --git a/packages/content-management/user_profiles/src/components/user_avatar_tip.tsx b/src/platform/packages/shared/content-management/user_profiles/src/components/user_avatar_tip.tsx similarity index 100% rename from packages/content-management/user_profiles/src/components/user_avatar_tip.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/components/user_avatar_tip.tsx diff --git a/packages/content-management/user_profiles/src/components/user_missing_tip.tsx b/src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx similarity index 100% rename from packages/content-management/user_profiles/src/components/user_missing_tip.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/components/user_missing_tip.tsx diff --git a/packages/content-management/user_profiles/src/queries.ts b/src/platform/packages/shared/content-management/user_profiles/src/queries.ts similarity index 100% rename from packages/content-management/user_profiles/src/queries.ts rename to src/platform/packages/shared/content-management/user_profiles/src/queries.ts diff --git a/packages/content-management/user_profiles/src/services.tsx b/src/platform/packages/shared/content-management/user_profiles/src/services.tsx similarity index 100% rename from packages/content-management/user_profiles/src/services.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/services.tsx diff --git a/packages/content-management/user_profiles/src/utils/batcher.test.tsx b/src/platform/packages/shared/content-management/user_profiles/src/utils/batcher.test.tsx similarity index 100% rename from packages/content-management/user_profiles/src/utils/batcher.test.tsx rename to src/platform/packages/shared/content-management/user_profiles/src/utils/batcher.test.tsx diff --git a/packages/content-management/user_profiles/src/utils/batcher.ts b/src/platform/packages/shared/content-management/user_profiles/src/utils/batcher.ts similarity index 100% rename from packages/content-management/user_profiles/src/utils/batcher.ts rename to src/platform/packages/shared/content-management/user_profiles/src/utils/batcher.ts diff --git a/packages/content-management/user_profiles/tsconfig.json b/src/platform/packages/shared/content-management/user_profiles/tsconfig.json similarity index 86% rename from packages/content-management/user_profiles/tsconfig.json rename to src/platform/packages/shared/content-management/user_profiles/tsconfig.json index de0aeff18778f..f143c1d03bbec 100644 --- a/packages/content-management/user_profiles/tsconfig.json +++ b/src/platform/packages/shared/content-management/user_profiles/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 200e6cc1c8775..6dda8fb950960 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -224,8 +224,8 @@ "@kbn/content-management-table-list-view-common/*": ["src/platform/packages/shared/content-management/table_list_view_common/*"], "@kbn/content-management-table-list-view-table": ["src/platform/packages/shared/content-management/table_list_view_table"], "@kbn/content-management-table-list-view-table/*": ["src/platform/packages/shared/content-management/table_list_view_table/*"], - "@kbn/content-management-user-profiles": ["packages/content-management/user_profiles"], - "@kbn/content-management-user-profiles/*": ["packages/content-management/user_profiles/*"], + "@kbn/content-management-user-profiles": ["src/platform/packages/shared/content-management/user_profiles"], + "@kbn/content-management-user-profiles/*": ["src/platform/packages/shared/content-management/user_profiles/*"], "@kbn/content-management-utils": ["packages/kbn-content-management-utils"], "@kbn/content-management-utils/*": ["packages/kbn-content-management-utils/*"], "@kbn/controls-example-plugin": ["examples/controls_example"], diff --git a/yarn.lock b/yarn.lock index c110f43acb6d1..da9164505d5e2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4264,7 +4264,7 @@ version "0.0.0" uid "" -"@kbn/content-management-user-profiles@link:packages/content-management/user_profiles": +"@kbn/content-management-user-profiles@link:src/platform/packages/shared/content-management/user_profiles": version "0.0.0" uid "" From edd9289b9037ed75c86cf9e2741634242ed56a2c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:37:11 +0100 Subject: [PATCH 019/129] 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 d122e4341e01c..b11cb57b02281 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -865,6 +865,7 @@ x-pack/packages/security/ui_components @elastic/kibana-security x-pack/performance @elastic/appex-qa x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities x-pack/platform/plugins/private/banners @elastic/appex-sharedux +x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/plugins/actions @elastic/response-ops x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra @@ -883,7 +884,6 @@ x-pack/plugins/cloud_integrations/cloud_full_story @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_links @elastic/kibana-core x-pack/plugins/cloud_security_posture @elastic/kibana-cloud-security-posture x-pack/plugins/cross_cluster_replication @elastic/kibana-management -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/data_usage @elastic/obs-ai-assistant @elastic/security-solution diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 1222c6dd941df..7096649b45a55 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -524,7 +524,7 @@ This plugin no-longer exposes any evaluation APIs. Refer to Date: Mon, 9 Dec 2024 12:38:36 +0100 Subject: [PATCH 020/129] Relocating module `@kbn/deeplinks-shared` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/deeplinks/shared/README.md | 0 .../platform/packages/shared}/deeplinks/shared/deep_links.ts | 0 .../platform/packages/shared}/deeplinks/shared/index.ts | 0 .../platform/packages/shared}/deeplinks/shared/jest.config.js | 4 ++-- .../platform/packages/shared}/deeplinks/shared/kibana.jsonc | 0 .../platform/packages/shared}/deeplinks/shared/package.json | 0 .../platform/packages/shared}/deeplinks/shared/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/deeplinks/shared/README.md (100%) rename {packages => src/platform/packages/shared}/deeplinks/shared/deep_links.ts (100%) rename {packages => src/platform/packages/shared}/deeplinks/shared/index.ts (100%) rename {packages => src/platform/packages/shared}/deeplinks/shared/jest.config.js (83%) rename {packages => src/platform/packages/shared}/deeplinks/shared/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/deeplinks/shared/package.json (100%) rename {packages => src/platform/packages/shared}/deeplinks/shared/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b11cb57b02281..b304cff156c86 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -258,7 +258,6 @@ packages/deeplinks/ml @elastic/ml-ui packages/deeplinks/observability @elastic/obs-ux-management-team packages/deeplinks/search @elastic/search-kibana packages/deeplinks/security @elastic/security-solution -packages/deeplinks/shared @elastic/appex-sharedux packages/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations packages/default-nav/devtools @elastic/kibana-management packages/default-nav/management @elastic/kibana-management @@ -616,6 +615,7 @@ src/platform/packages/shared/content-management/table_list_view @elastic/appex-s src/platform/packages/shared/content-management/table_list_view_common @elastic/appex-sharedux src/platform/packages/shared/content-management/table_list_view_table @elastic/appex-sharedux src/platform/packages/shared/content-management/user_profiles @elastic/appex-sharedux +src/platform/packages/shared/deeplinks/shared @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index 70634105cb8d1..21e1454d4c625 100644 --- a/package.json +++ b/package.json @@ -447,7 +447,7 @@ "@kbn/deeplinks-observability": "link:packages/deeplinks/observability", "@kbn/deeplinks-search": "link:packages/deeplinks/search", "@kbn/deeplinks-security": "link:packages/deeplinks/security", - "@kbn/deeplinks-shared": "link:packages/deeplinks/shared", + "@kbn/deeplinks-shared": "link:src/platform/packages/shared/deeplinks/shared", "@kbn/default-nav-analytics": "link:packages/default-nav/analytics", "@kbn/default-nav-devtools": "link:packages/default-nav/devtools", "@kbn/default-nav-management": "link:packages/default-nav/management", diff --git a/packages/deeplinks/shared/README.md b/src/platform/packages/shared/deeplinks/shared/README.md similarity index 100% rename from packages/deeplinks/shared/README.md rename to src/platform/packages/shared/deeplinks/shared/README.md diff --git a/packages/deeplinks/shared/deep_links.ts b/src/platform/packages/shared/deeplinks/shared/deep_links.ts similarity index 100% rename from packages/deeplinks/shared/deep_links.ts rename to src/platform/packages/shared/deeplinks/shared/deep_links.ts diff --git a/packages/deeplinks/shared/index.ts b/src/platform/packages/shared/deeplinks/shared/index.ts similarity index 100% rename from packages/deeplinks/shared/index.ts rename to src/platform/packages/shared/deeplinks/shared/index.ts diff --git a/packages/deeplinks/shared/jest.config.js b/src/platform/packages/shared/deeplinks/shared/jest.config.js similarity index 83% rename from packages/deeplinks/shared/jest.config.js rename to src/platform/packages/shared/deeplinks/shared/jest.config.js index 5849db1143d72..65434efdc3715 100644 --- a/packages/deeplinks/shared/jest.config.js +++ b/src/platform/packages/shared/deeplinks/shared/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/deeplinks/shared'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/deeplinks/shared'], }; diff --git a/packages/deeplinks/shared/kibana.jsonc b/src/platform/packages/shared/deeplinks/shared/kibana.jsonc similarity index 100% rename from packages/deeplinks/shared/kibana.jsonc rename to src/platform/packages/shared/deeplinks/shared/kibana.jsonc diff --git a/packages/deeplinks/shared/package.json b/src/platform/packages/shared/deeplinks/shared/package.json similarity index 100% rename from packages/deeplinks/shared/package.json rename to src/platform/packages/shared/deeplinks/shared/package.json diff --git a/packages/deeplinks/shared/tsconfig.json b/src/platform/packages/shared/deeplinks/shared/tsconfig.json similarity index 81% rename from packages/deeplinks/shared/tsconfig.json rename to src/platform/packages/shared/deeplinks/shared/tsconfig.json index d1414086f2187..18d16ae2e8837 100644 --- a/packages/deeplinks/shared/tsconfig.json +++ b/src/platform/packages/shared/deeplinks/shared/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 1993af04a4c4f..1cf3fc2f410bf 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -748,8 +748,8 @@ "@kbn/deeplinks-search/*": ["packages/deeplinks/search/*"], "@kbn/deeplinks-security": ["packages/deeplinks/security"], "@kbn/deeplinks-security/*": ["packages/deeplinks/security/*"], - "@kbn/deeplinks-shared": ["packages/deeplinks/shared"], - "@kbn/deeplinks-shared/*": ["packages/deeplinks/shared/*"], + "@kbn/deeplinks-shared": ["src/platform/packages/shared/deeplinks/shared"], + "@kbn/deeplinks-shared/*": ["src/platform/packages/shared/deeplinks/shared/*"], "@kbn/default-nav-analytics": ["packages/default-nav/analytics"], "@kbn/default-nav-analytics/*": ["packages/default-nav/analytics/*"], "@kbn/default-nav-devtools": ["packages/default-nav/devtools"], diff --git a/yarn.lock b/yarn.lock index 387060dbe4d54..caae506bc3778 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5312,7 +5312,7 @@ version "0.0.0" uid "" -"@kbn/deeplinks-shared@link:packages/deeplinks/shared": +"@kbn/deeplinks-shared@link:src/platform/packages/shared/deeplinks/shared": version "0.0.0" uid "" From 5c283997e5084e20db14ce21c172376c5ea2d7c4 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:40:00 +0100 Subject: [PATCH 021/129] 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 b304cff156c86..08aea885fd6f4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -624,6 +624,7 @@ src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-es src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management +src/platform/plugins/private/files_management @elastic/appex-sharedux src/platform/plugins/shared/bfetch @elastic/appex-sharedux src/platform/plugins/shared/content_management @elastic/appex-sharedux src/platform/plugins/shared/esql @elastic/kibana-esql @@ -663,7 +664,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 7c6a724ca3029..6921c0ef1e432 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -57,7 +57,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 7096649b45a55..96b40d51075aa 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 21e1454d4c625..b5e01e73a8803 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 1cf3fc2f410bf..863c15d169181 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -958,8 +958,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 caae506bc3778..4ac9a82c8d3d0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5732,7 +5732,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 9fc3ef6aaaf33695d42710224e84210d0ac4d0d0 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:41:27 +0100 Subject: [PATCH 022/129] 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 08aea885fd6f4..72fea36536513 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -629,6 +629,7 @@ src/platform/plugins/shared/bfetch @elastic/appex-sharedux src/platform/plugins/shared/content_management @elastic/appex-sharedux 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/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -663,7 +664,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 6921c0ef1e432..c77930a2f84cc 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -56,7 +56,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 96b40d51075aa..aeb9dac3c7908 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 b5e01e73a8803..a23cba7eb78d3 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 863c15d169181..4b598750a4287 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -960,8 +960,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/plugins/security_solution/scripts/endpoint/common/response_actions.ts b/x-pack/plugins/security_solution/scripts/endpoint/common/response_actions.ts index 1987a019f8887..f7a61f415d9f5 100644 --- a/x-pack/plugins/security_solution/scripts/endpoint/common/response_actions.ts +++ b/x-pack/plugins/security_solution/scripts/endpoint/common/response_actions.ts @@ -230,7 +230,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 4ac9a82c8d3d0..941efd4d6f85e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5736,7 +5736,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 b7ea7ef64d687bc3777c80f228da6f2a2a5cb9dd Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:42:55 +0100 Subject: [PATCH 023/129] Relocating module `@kbn/generate-csv` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- package.json | 2 +- .../platform/packages/private}/kbn-generate-csv/README.md | 0 .../platform/packages/private}/kbn-generate-csv/constants.ts | 0 .../platform/packages/private}/kbn-generate-csv/index.ts | 0 .../packages/private}/kbn-generate-csv/jest.config.js | 4 ++-- .../platform/packages/private}/kbn-generate-csv/kibana.jsonc | 0 .../platform/packages/private}/kbn-generate-csv/package.json | 0 .../src/__snapshots__/generate_csv.test.ts.snap | 0 .../private}/kbn-generate-csv/src/generate_csv.test.ts | 0 .../packages/private}/kbn-generate-csv/src/generate_csv.ts | 0 .../private}/kbn-generate-csv/src/generate_csv_esql.test.ts | 0 .../private}/kbn-generate-csv/src/generate_csv_esql.ts | 0 .../platform/packages/private}/kbn-generate-csv/src/index.ts | 0 .../kbn-generate-csv/src/lib/get_export_settings.test.ts | 0 .../private}/kbn-generate-csv/src/lib/get_export_settings.ts | 0 .../packages/private}/kbn-generate-csv/src/lib/i18n_texts.ts | 0 .../kbn-generate-csv/src/lib/max_size_builder.test.ts | 0 .../kbn-generate-csv/src/lib/max_size_string_builder.ts | 0 .../private}/kbn-generate-csv/src/lib/search_cursor.ts | 0 .../kbn-generate-csv/src/lib/search_cursor_pit.test.ts | 0 .../private}/kbn-generate-csv/src/lib/search_cursor_pit.ts | 0 .../kbn-generate-csv/src/lib/search_cursor_scroll.test.ts | 0 .../private}/kbn-generate-csv/src/lib/search_cursor_scroll.ts | 0 .../platform/packages/private}/kbn-generate-csv/tsconfig.json | 2 +- .../platform/packages/private}/kbn-generate-csv/types.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 29 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/private}/kbn-generate-csv/README.md (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/constants.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/jest.config.js (83%) rename {packages => src/platform/packages/private}/kbn-generate-csv/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/package.json (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/__snapshots__/generate_csv.test.ts.snap (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/generate_csv.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/generate_csv.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/generate_csv_esql.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/generate_csv_esql.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/get_export_settings.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/get_export_settings.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/i18n_texts.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/max_size_builder.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/max_size_string_builder.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/search_cursor.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/search_cursor_pit.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/search_cursor_pit.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/src/lib/search_cursor_scroll.ts (100%) rename {packages => src/platform/packages/private}/kbn-generate-csv/tsconfig.json (92%) rename {packages => src/platform/packages/private}/kbn-generate-csv/types.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 72fea36536513..d05af359d4ef1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -355,7 +355,6 @@ packages/kbn-ftr-screenshot-filename @elastic/kibana-operations @elastic/appex-q packages/kbn-gen-ai-functional-testing @elastic/appex-ai-infra packages/kbn-generate @elastic/kibana-operations packages/kbn-generate-console-definitions @elastic/kibana-management -packages/kbn-generate-csv @elastic/appex-sharedux packages/kbn-get-repo-files @elastic/kibana-operations packages/kbn-grid-layout @elastic/kibana-presentation packages/kbn-grouping @elastic/response-ops @@ -605,6 +604,7 @@ src/core @elastic/kibana-core src/platform/packages/private/content-management/favorites/favorites_common @elastic/appex-sharedux src/platform/packages/private/content-management/tabbed_table_list_view @elastic/appex-sharedux src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql +src/platform/packages/private/kbn-generate-csv @elastic/appex-sharedux src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/.i18nrc.json b/.i18nrc.json index c77930a2f84cc..dc6959ec5dd6d 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -59,7 +59,7 @@ "files": "src/platform/plugins/shared/files", "filesManagement": "src/platform/plugins/private/files_management", "flot": "packages/kbn-flot-charts/lib", - "generateCsv": "packages/kbn-generate-csv", + "generateCsv": "src/platform/packages/private/kbn-generate-csv", "grouping": "packages/kbn-grouping/src", "alertsGrouping": "packages/kbn-alerts-grouping", "guidedOnboarding": "src/plugins/guided_onboarding", diff --git a/package.json b/package.json index a23cba7eb78d3..34da14ea87039 100644 --- a/package.json +++ b/package.json @@ -545,7 +545,7 @@ "@kbn/functional-with-es-ssl-cases-test-plugin": "link:x-pack/test/functional_with_es_ssl/plugins/cases", "@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/generate-csv": "link:src/platform/packages/private/kbn-generate-csv", "@kbn/global-search-bar-plugin": "link:x-pack/plugins/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", diff --git a/packages/kbn-generate-csv/README.md b/src/platform/packages/private/kbn-generate-csv/README.md similarity index 100% rename from packages/kbn-generate-csv/README.md rename to src/platform/packages/private/kbn-generate-csv/README.md diff --git a/packages/kbn-generate-csv/constants.ts b/src/platform/packages/private/kbn-generate-csv/constants.ts similarity index 100% rename from packages/kbn-generate-csv/constants.ts rename to src/platform/packages/private/kbn-generate-csv/constants.ts diff --git a/packages/kbn-generate-csv/index.ts b/src/platform/packages/private/kbn-generate-csv/index.ts similarity index 100% rename from packages/kbn-generate-csv/index.ts rename to src/platform/packages/private/kbn-generate-csv/index.ts diff --git a/packages/kbn-generate-csv/jest.config.js b/src/platform/packages/private/kbn-generate-csv/jest.config.js similarity index 83% rename from packages/kbn-generate-csv/jest.config.js rename to src/platform/packages/private/kbn-generate-csv/jest.config.js index 85d5957c9b249..f01182cbc30d8 100644 --- a/packages/kbn-generate-csv/jest.config.js +++ b/src/platform/packages/private/kbn-generate-csv/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-generate-csv/'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-generate-csv/'], }; diff --git a/packages/kbn-generate-csv/kibana.jsonc b/src/platform/packages/private/kbn-generate-csv/kibana.jsonc similarity index 100% rename from packages/kbn-generate-csv/kibana.jsonc rename to src/platform/packages/private/kbn-generate-csv/kibana.jsonc diff --git a/packages/kbn-generate-csv/package.json b/src/platform/packages/private/kbn-generate-csv/package.json similarity index 100% rename from packages/kbn-generate-csv/package.json rename to src/platform/packages/private/kbn-generate-csv/package.json diff --git a/packages/kbn-generate-csv/src/__snapshots__/generate_csv.test.ts.snap b/src/platform/packages/private/kbn-generate-csv/src/__snapshots__/generate_csv.test.ts.snap similarity index 100% rename from packages/kbn-generate-csv/src/__snapshots__/generate_csv.test.ts.snap rename to src/platform/packages/private/kbn-generate-csv/src/__snapshots__/generate_csv.test.ts.snap diff --git a/packages/kbn-generate-csv/src/generate_csv.test.ts b/src/platform/packages/private/kbn-generate-csv/src/generate_csv.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/generate_csv.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/generate_csv.test.ts diff --git a/packages/kbn-generate-csv/src/generate_csv.ts b/src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts similarity index 100% rename from packages/kbn-generate-csv/src/generate_csv.ts rename to src/platform/packages/private/kbn-generate-csv/src/generate_csv.ts diff --git a/packages/kbn-generate-csv/src/generate_csv_esql.test.ts b/src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/generate_csv_esql.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.test.ts diff --git a/packages/kbn-generate-csv/src/generate_csv_esql.ts b/src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts similarity index 100% rename from packages/kbn-generate-csv/src/generate_csv_esql.ts rename to src/platform/packages/private/kbn-generate-csv/src/generate_csv_esql.ts diff --git a/packages/kbn-generate-csv/src/index.ts b/src/platform/packages/private/kbn-generate-csv/src/index.ts similarity index 100% rename from packages/kbn-generate-csv/src/index.ts rename to src/platform/packages/private/kbn-generate-csv/src/index.ts diff --git a/packages/kbn-generate-csv/src/lib/get_export_settings.test.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/get_export_settings.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/get_export_settings.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/get_export_settings.test.ts diff --git a/packages/kbn-generate-csv/src/lib/get_export_settings.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/get_export_settings.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/get_export_settings.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/get_export_settings.ts diff --git a/packages/kbn-generate-csv/src/lib/i18n_texts.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/i18n_texts.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/i18n_texts.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/i18n_texts.ts diff --git a/packages/kbn-generate-csv/src/lib/max_size_builder.test.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/max_size_builder.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/max_size_builder.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/max_size_builder.test.ts diff --git a/packages/kbn-generate-csv/src/lib/max_size_string_builder.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/max_size_string_builder.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/max_size_string_builder.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/max_size_string_builder.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_pit.test.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_pit.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor_pit.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_pit.test.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_pit.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_pit.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor_pit.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_pit.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_scroll.ts b/src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_scroll.ts similarity index 100% rename from packages/kbn-generate-csv/src/lib/search_cursor_scroll.ts rename to src/platform/packages/private/kbn-generate-csv/src/lib/search_cursor_scroll.ts diff --git a/packages/kbn-generate-csv/tsconfig.json b/src/platform/packages/private/kbn-generate-csv/tsconfig.json similarity index 92% rename from packages/kbn-generate-csv/tsconfig.json rename to src/platform/packages/private/kbn-generate-csv/tsconfig.json index 4216438b6689a..bc06d1769db7c 100644 --- a/packages/kbn-generate-csv/tsconfig.json +++ b/src/platform/packages/private/kbn-generate-csv/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-generate-csv/types.ts b/src/platform/packages/private/kbn-generate-csv/types.ts similarity index 100% rename from packages/kbn-generate-csv/types.ts rename to src/platform/packages/private/kbn-generate-csv/types.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index 4b598750a4287..09e598685f205 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -990,8 +990,8 @@ "@kbn/generate/*": ["packages/kbn-generate/*"], "@kbn/generate-console-definitions": ["packages/kbn-generate-console-definitions"], "@kbn/generate-console-definitions/*": ["packages/kbn-generate-console-definitions/*"], - "@kbn/generate-csv": ["packages/kbn-generate-csv"], - "@kbn/generate-csv/*": ["packages/kbn-generate-csv/*"], + "@kbn/generate-csv": ["src/platform/packages/private/kbn-generate-csv"], + "@kbn/generate-csv/*": ["src/platform/packages/private/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"], diff --git a/yarn.lock b/yarn.lock index 941efd4d6f85e..77cc842bf8b9a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5792,7 +5792,7 @@ version "0.0.0" uid "" -"@kbn/generate-csv@link:packages/kbn-generate-csv": +"@kbn/generate-csv@link:src/platform/packages/private/kbn-generate-csv": version "0.0.0" uid "" From a71b6d551e5a40720d9ece59944b45b345fc7518 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:44:24 +0100 Subject: [PATCH 024/129] 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 d05af359d4ef1..a9429b02f3d0c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -866,6 +866,7 @@ x-pack/performance @elastic/appex-qa x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities x-pack/platform/plugins/private/banners @elastic/appex-sharedux x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux +x-pack/platform/plugins/private/global_search_bar @elastic/appex-sharedux x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/plugins/actions @elastic/response-ops x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra @@ -901,7 +902,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/grokdebugger @elastic/kibana-management diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index aeb9dac3c7908..212cb676279f4 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -617,7 +617,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 34da14ea87039..c3bfa429b916f 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:src/platform/packages/private/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 09e598685f205..277079548280b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -994,8 +994,8 @@ "@kbn/generate-csv/*": ["src/platform/packages/private/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 8e69dd5b41f66..7e75f40636597 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 77cc842bf8b9a..d6666e399f29f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5804,7 +5804,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 be0ac14cacabce7367baab8168adaf7d80090a75 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:45:50 +0100 Subject: [PATCH 025/129] Relocating module `@kbn/global-search-plugin` --- .eslintrc.js | 2 +- .github/CODEOWNERS | 2 +- .../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, 18 insertions(+), 18 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 3052b07745e4c..b0a00140cfbb9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1910,7 +1910,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 a9429b02f3d0c..2f7f33018b7c1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -868,6 +868,7 @@ x-pack/platform/plugins/private/banners @elastic/appex-sharedux x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux x-pack/platform/plugins/private/global_search_bar @elastic/appex-sharedux x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities +x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux x-pack/plugins/actions @elastic/response-ops x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra x-pack/plugins/ai_infra/product_doc_base @elastic/appex-ai-infra @@ -901,7 +902,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/grokdebugger @elastic/kibana-management 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 212cb676279f4..491d05c662c6a 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -612,7 +612,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 c3bfa429b916f..87c7ffb649123 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:src/platform/packages/private/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 277079548280b..f7069317a0c59 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -996,8 +996,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 7e75f40636597..99bc223a4c219 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -47,7 +47,7 @@ "xpack.exploratoryView": "plugins/observability_solution/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 d6666e399f29f..b0406698349f2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5808,7 +5808,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 52b1bb0b677d92804036826415190f3fbb905f8e Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:47:17 +0100 Subject: [PATCH 026/129] Relocating module `@kbn/global-search-providers-plugin` --- .github/CODEOWNERS | 2 +- 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, 12 insertions(+), 12 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 2f7f33018b7c1..6d69707a94590 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -867,6 +867,7 @@ x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities x-pack/platform/plugins/private/banners @elastic/appex-sharedux x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux 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/shared/entity_manager @elastic/obs-entities x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux x-pack/plugins/actions @elastic/response-ops @@ -902,7 +903,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/grokdebugger @elastic/kibana-management x-pack/plugins/index_lifecycle_management @elastic/kibana-management diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 491d05c662c6a..0689635c28501 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -621,7 +621,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 87c7ffb649123..d77fdcb5d6c9f 100644 --- a/package.json +++ b/package.json @@ -548,7 +548,7 @@ "@kbn/generate-csv": "link:src/platform/packages/private/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 f7069317a0c59..e55916684daec 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -998,8 +998,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 b0406698349f2..b45ba09f5168a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5812,7 +5812,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 8ef7dac561ff2830d6e3672f8d021d0389e8ceee Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:48:43 +0100 Subject: [PATCH 027/129] Relocating module `@kbn/guided-onboarding` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- package.json | 2 +- .../packages/shared}/kbn-guided-onboarding/README.md | 0 .../packages/shared}/kbn-guided-onboarding/classic/index.ts | 0 .../packages/shared}/kbn-guided-onboarding/guide/index.ts | 0 .../packages/shared}/kbn-guided-onboarding/index.ts | 0 .../packages/shared}/kbn-guided-onboarding/jest.config.js | 4 ++-- .../packages/shared}/kbn-guided-onboarding/kibana.jsonc | 0 .../packages/shared}/kbn-guided-onboarding/package.json | 0 .../kbn-guided-onboarding/src/common/test_guide_config.ts | 0 .../classic_version/__snapshots__/guide_cards.test.tsx.snap | 0 .../components/landing_page/classic_version/guide_card.tsx | 0 .../landing_page/classic_version/guide_cards.constants.tsx | 0 .../landing_page/classic_version/guide_cards.test.tsx | 0 .../components/landing_page/classic_version/guide_cards.tsx | 0 .../landing_page/classic_version/guide_filters.tsx | 0 .../src/components/landing_page/guide/guide_card.tsx | 0 .../components/landing_page/guide/guide_cards.constants.tsx | 0 .../src/components/landing_page/guide/guide_cards.tsx | 0 .../src/components/landing_page/guide/guide_filters.tsx | 0 .../packages/shared}/kbn-guided-onboarding/src/types.ts | 0 .../packages/shared}/kbn-guided-onboarding/tsconfig.json | 2 +- src/plugins/guided_onboarding/README.md | 6 +++--- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 26 files changed, 12 insertions(+), 12 deletions(-) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/classic/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/guide/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/common/test_guide_config.ts (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/classic_version/__snapshots__/guide_cards.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_card.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.constants.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_filters.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/guide/guide_card.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.constants.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/components/landing_page/guide/guide_filters.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-guided-onboarding/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6d69707a94590..b648ff54bef6a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -358,7 +358,6 @@ packages/kbn-generate-console-definitions @elastic/kibana-management packages/kbn-get-repo-files @elastic/kibana-operations packages/kbn-grid-layout @elastic/kibana-presentation packages/kbn-grouping @elastic/response-ops -packages/kbn-guided-onboarding @elastic/appex-sharedux packages/kbn-handlebars @elastic/kibana-security packages/kbn-hapi-mocks @elastic/kibana-core packages/kbn-health-gateway-server @elastic/kibana-core @@ -621,6 +620,7 @@ src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql +src/platform/packages/shared/kbn-guided-onboarding @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/.i18nrc.json b/.i18nrc.json index dc6959ec5dd6d..323e19f73c5b4 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -63,7 +63,7 @@ "grouping": "packages/kbn-grouping/src", "alertsGrouping": "packages/kbn-alerts-grouping", "guidedOnboarding": "src/plugins/guided_onboarding", - "guidedOnboardingPackage": "packages/kbn-guided-onboarding", + "guidedOnboardingPackage": "src/platform/packages/shared/kbn-guided-onboarding", "home": "src/plugins/home", "homePackages": "packages/home", "indexPatternEditor": "src/plugins/data_view_editor", diff --git a/package.json b/package.json index d77fdcb5d6c9f..abf9ecc87249f 100644 --- a/package.json +++ b/package.json @@ -555,7 +555,7 @@ "@kbn/grid-layout": "link:packages/kbn-grid-layout", "@kbn/grokdebugger-plugin": "link:x-pack/plugins/grokdebugger", "@kbn/grouping": "link:packages/kbn-grouping", - "@kbn/guided-onboarding": "link:packages/kbn-guided-onboarding", + "@kbn/guided-onboarding": "link:src/platform/packages/shared/kbn-guided-onboarding", "@kbn/guided-onboarding-example-plugin": "link:examples/guided_onboarding_example", "@kbn/guided-onboarding-plugin": "link:src/plugins/guided_onboarding", "@kbn/handlebars": "link:packages/kbn-handlebars", diff --git a/packages/kbn-guided-onboarding/README.md b/src/platform/packages/shared/kbn-guided-onboarding/README.md similarity index 100% rename from packages/kbn-guided-onboarding/README.md rename to src/platform/packages/shared/kbn-guided-onboarding/README.md diff --git a/packages/kbn-guided-onboarding/classic/index.ts b/src/platform/packages/shared/kbn-guided-onboarding/classic/index.ts similarity index 100% rename from packages/kbn-guided-onboarding/classic/index.ts rename to src/platform/packages/shared/kbn-guided-onboarding/classic/index.ts diff --git a/packages/kbn-guided-onboarding/guide/index.ts b/src/platform/packages/shared/kbn-guided-onboarding/guide/index.ts similarity index 100% rename from packages/kbn-guided-onboarding/guide/index.ts rename to src/platform/packages/shared/kbn-guided-onboarding/guide/index.ts diff --git a/packages/kbn-guided-onboarding/index.ts b/src/platform/packages/shared/kbn-guided-onboarding/index.ts similarity index 100% rename from packages/kbn-guided-onboarding/index.ts rename to src/platform/packages/shared/kbn-guided-onboarding/index.ts diff --git a/packages/kbn-guided-onboarding/jest.config.js b/src/platform/packages/shared/kbn-guided-onboarding/jest.config.js similarity index 83% rename from packages/kbn-guided-onboarding/jest.config.js rename to src/platform/packages/shared/kbn-guided-onboarding/jest.config.js index 19b9e73d70359..b1ca25d2a3f74 100644 --- a/packages/kbn-guided-onboarding/jest.config.js +++ b/src/platform/packages/shared/kbn-guided-onboarding/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-guided-onboarding'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-guided-onboarding'], }; diff --git a/packages/kbn-guided-onboarding/kibana.jsonc b/src/platform/packages/shared/kbn-guided-onboarding/kibana.jsonc similarity index 100% rename from packages/kbn-guided-onboarding/kibana.jsonc rename to src/platform/packages/shared/kbn-guided-onboarding/kibana.jsonc diff --git a/packages/kbn-guided-onboarding/package.json b/src/platform/packages/shared/kbn-guided-onboarding/package.json similarity index 100% rename from packages/kbn-guided-onboarding/package.json rename to src/platform/packages/shared/kbn-guided-onboarding/package.json diff --git a/packages/kbn-guided-onboarding/src/common/test_guide_config.ts b/src/platform/packages/shared/kbn-guided-onboarding/src/common/test_guide_config.ts similarity index 100% rename from packages/kbn-guided-onboarding/src/common/test_guide_config.ts rename to src/platform/packages/shared/kbn-guided-onboarding/src/common/test_guide_config.ts diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/__snapshots__/guide_cards.test.tsx.snap b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/__snapshots__/guide_cards.test.tsx.snap similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/classic_version/__snapshots__/guide_cards.test.tsx.snap rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/__snapshots__/guide_cards.test.tsx.snap diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_card.tsx b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_card.tsx similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_card.tsx rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_card.tsx diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.constants.tsx b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.constants.tsx similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.constants.tsx rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.constants.tsx diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.test.tsx b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.test.tsx similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.test.tsx rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.test.tsx diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.tsx b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.tsx similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.tsx rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.tsx diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_filters.tsx b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_filters.tsx similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_filters.tsx rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_filters.tsx diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_card.tsx b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/guide/guide_card.tsx similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_card.tsx rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/guide/guide_card.tsx diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.constants.tsx b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.constants.tsx similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.constants.tsx rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.constants.tsx diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.tsx b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.tsx similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.tsx rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.tsx diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_filters.tsx b/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/guide/guide_filters.tsx similarity index 100% rename from packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_filters.tsx rename to src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/guide/guide_filters.tsx diff --git a/packages/kbn-guided-onboarding/src/types.ts b/src/platform/packages/shared/kbn-guided-onboarding/src/types.ts similarity index 100% rename from packages/kbn-guided-onboarding/src/types.ts rename to src/platform/packages/shared/kbn-guided-onboarding/src/types.ts diff --git a/packages/kbn-guided-onboarding/tsconfig.json b/src/platform/packages/shared/kbn-guided-onboarding/tsconfig.json similarity index 87% rename from packages/kbn-guided-onboarding/tsconfig.json rename to src/platform/packages/shared/kbn-guided-onboarding/tsconfig.json index b47b2dad14429..09caf676e195f 100644 --- a/packages/kbn-guided-onboarding/tsconfig.json +++ b/src/platform/packages/shared/kbn-guided-onboarding/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/plugins/guided_onboarding/README.md b/src/plugins/guided_onboarding/README.md index a7d1447d6da8b..0a9c9fb615f46 100755 --- a/src/plugins/guided_onboarding/README.md +++ b/src/plugins/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/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. -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/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/src/platform/packages/shared/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. @@ -133,8 +133,8 @@ The guided onboarding exposes a function `registerGuideConfig(guideId: GuideId, Follow these simple steps to add a new guide to the guided onboarding framework. For more detailed information about framework functionality and architecture and about API services exposed by the plugin, please read the full readme. 1. Declare the `guidedOnboarding` plugin as an optional dependency in your plugin's `kibana.json` file. Add the guided onboarding plugin's client-side start contract to your plugin's client-side start dependencies and the guided onboarding plugin's server-side setup contract to your plugin's server-side dependencies. -2. Define the configuration for your guide. At a high level, this includes a title, description, and list of steps. See this [example config](https://github.com/elastic/kibana/blob/main/packages/kbn-guided-onboarding/src/common/test_guide_config.ts) or consult the `GuideConfig` interface. +2. Define the configuration for your guide. At a high level, this includes a title, description, and list of steps. See this [example config](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-guided-onboarding/src/common/test_guide_config.ts) or consult the `GuideConfig` interface. 3. Register your guide during your plugin's server-side setup by calling a function exposed by the guided onboarding plugin: `registerGuideConfig(guideId: GuideId, guideConfig: GuideConfig)`. For an example, see this [example plugin](https://github.com/elastic/kibana/blob/main/examples/guided_onboarding_example/server/plugin.ts). -4. Update the cards on the landing page to include your guide in the use case selection. Make sure that the card doesn't have the property `navigateTo` because that is only used for cards that redirect to Kibana pages and don't start a guide. Also add the same value to the property `guideId` as used in the guide config. Landing page cards are configured in this [kbn-guided-onboarding package](https://github.com/elastic/kibana/blob/main/packages/kbn-guided-onboarding/src/components/landing_page/guide_cards.constants.tsx). +4. Update the cards on the landing page to include your guide in the use case selection. Make sure that the card doesn't have the property `navigateTo` because that is only used for cards that redirect to Kibana pages and don't start a guide. Also add the same value to the property `guideId` as used in the guide config. Landing page cards are configured in this [kbn-guided-onboarding package](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-guided-onboarding/src/components/landing_page/guide_cards.constants.tsx). 5. Integrate the new guide into your Kibana pages by using the guided onboarding client-side API service. Make sure your Kibana pages correctly display UI elements depending on the active guide step and the UI flow is straight forward to complete the guide. See existing guides for an example and read more about the API service in this file, the section "Client-side: API service". 6. Optionally, update the example plugin's [form](https://github.com/elastic/kibana/blob/main/examples/guided_onboarding_example/public/components/main.tsx#L38) to be able to start your guide from that page and activate any step in your guide (useful to test your guide steps). diff --git a/tsconfig.base.json b/tsconfig.base.json index e55916684daec..5711c917b5f13 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1012,8 +1012,8 @@ "@kbn/grokdebugger-plugin/*": ["x-pack/plugins/grokdebugger/*"], "@kbn/grouping": ["packages/kbn-grouping"], "@kbn/grouping/*": ["packages/kbn-grouping/*"], - "@kbn/guided-onboarding": ["packages/kbn-guided-onboarding"], - "@kbn/guided-onboarding/*": ["packages/kbn-guided-onboarding/*"], + "@kbn/guided-onboarding": ["src/platform/packages/shared/kbn-guided-onboarding"], + "@kbn/guided-onboarding/*": ["src/platform/packages/shared/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"], diff --git a/yarn.lock b/yarn.lock index b45ba09f5168a..3d14e7bd1742d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5848,7 +5848,7 @@ version "0.0.0" uid "" -"@kbn/guided-onboarding@link:packages/kbn-guided-onboarding": +"@kbn/guided-onboarding@link:src/platform/packages/shared/kbn-guided-onboarding": version "0.0.0" uid "" From 537358154129390ccc089bb6fd4b03c4182e2e09 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:50:08 +0100 Subject: [PATCH 028/129] 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 b648ff54bef6a..18ca29b769467 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -630,6 +630,7 @@ src/platform/plugins/shared/content_management @elastic/appex-sharedux 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/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -665,7 +666,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 323e19f73c5b4..e45b05a44d165 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -62,7 +62,7 @@ "generateCsv": "src/platform/packages/private/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": "src/platform/packages/shared/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 0689635c28501..5b8e94a56390e 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 abf9ecc87249f..46745830d7876 100644 --- a/package.json +++ b/package.json @@ -557,7 +557,7 @@ "@kbn/grouping": "link:packages/kbn-grouping", "@kbn/guided-onboarding": "link:src/platform/packages/shared/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 0a9c9fb615f46..372472c129840 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/src/platform/packages/shared/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 5711c917b5f13..57c85afd9a101 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1016,8 +1016,8 @@ "@kbn/guided-onboarding/*": ["src/platform/packages/shared/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 3d14e7bd1742d..7ae0e2b51a24b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5844,7 +5844,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 1da96eb3ed3ed9e8bdcd1ead2c518213394a1c3b Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:51:36 +0100 Subject: [PATCH 029/129] Relocating module `@kbn/home-plugin` --- .github/CODEOWNERS | 2 +- .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 .../shared}/home/public/application/application.tsx | 0 .../components/__snapshots__/home.test.tsx.snap | 0 .../__snapshots__/recently_accessed.test.js.snap | 0 .../components/__snapshots__/synopsis.test.js.snap | 0 .../components/__snapshots__/welcome.test.tsx.snap | 0 .../public/application/components/_add_data.scss | 0 .../home/public/application/components/_index.scss | 0 .../public/application/components/_manage_data.scss | 0 .../application/components/_solutions_section.scss | 0 .../public/application/components/_welcome.scss | 0 .../add_data/__snapshots__/add_data.test.tsx.snap | 0 .../components/add_data/add_data.test.tsx | 0 .../application/components/add_data/add_data.tsx | 0 .../public/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 .../home/public/application/components/home_app.js | 0 .../__snapshots__/manage_data.test.tsx.snap | 0 .../application/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 .../application/components/move_data/move_data.tsx | 0 .../application/components/recently_accessed.js | 0 .../components/recently_accessed.test.js | 0 .../application/components/sample_data/index.tsx | 0 .../__snapshots__/solution_panel.test.tsx.snap | 0 .../__snapshots__/solutions_section.test.tsx.snap | 0 .../components/solutions_section/index.ts | 0 .../solutions_section/solution_panel.test.tsx | 0 .../components/solutions_section/solution_panel.tsx | 0 .../solutions_section/solutions_section.test.tsx | 0 .../solutions_section/solutions_section.tsx | 0 .../home/public/application/components/synopsis.js | 0 .../public/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 .../tutorial/__snapshots__/tutorial.test.js.snap | 0 .../application/components/tutorial/_tutorial.scss | 0 .../application/components/tutorial/content.js | 0 .../application/components/tutorial/content.test.js | 0 .../application/components/tutorial/footer.js | 0 .../application/components/tutorial/footer.test.js | 0 .../application/components/tutorial/instruction.js | 0 .../components/tutorial/instruction_set.js | 0 .../components/tutorial/instruction_set.test.js | 0 .../application/components/tutorial/introduction.js | 0 .../components/tutorial/introduction.test.js | 0 .../components/tutorial/number_parameter.js | 0 .../components/tutorial/parameter_form.js | 0 .../components/tutorial/replace_template_strings.js | 0 .../components/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 .../application/components/tutorial_directory.js | 0 .../application/components/welcome.test.mocks.ts | 0 .../public/application/components/welcome.test.tsx | 0 .../home/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 .../home/public/application/sample_data_client.ts | 0 .../public/assets/activemq_logs/screenshot.webp | Bin .../home/public/assets/apache_logs/screenshot.webp | Bin .../public/assets/apache_metrics/screenshot.webp | Bin .../home/public/assets/auditbeat/screenshot.webp | Bin .../home/public/assets/auditd_logs/screenshot.webp | Bin .../home/public/assets/aws_logs/screenshot.webp | Bin .../home/public/assets/aws_metrics/screenshot.webp | Bin .../home/public/assets/azure_logs/screenshot.webp | Bin .../public/assets/azure_metrics/screenshot.webp | Bin .../home/public/assets/cisco_logs/screenshot.webp | Bin .../assets/cockroachdb_metrics/screenshot.webp | Bin .../common/illustration_integrations_darkmode.png | Bin .../common/illustration_integrations_lightmode.png | Bin .../public/assets/consul_metrics/screenshot.webp | Bin .../home/public/assets/coredns_logs/screenshot.webp | Bin .../public/assets/coredns_metrics/screenshot.webp | Bin .../public/assets/couchdb_metrics/screenshot.webp | Bin .../public/assets/crowdstrike_logs/screenshot.webp | Bin .../public/assets/docker_metrics/screenshot.webp | Bin .../public/assets/envoyproxy_logs/screenshot.webp | Bin .../public/assets/googlecloud_logs/screenshot.webp | Bin .../assets/googlecloud_metrics/screenshot.webp | Bin .../home/public/assets/haproxy_logs/screenshot.webp | Bin .../home/public/assets/ibmmq_logs/screenshot.webp | Bin .../public/assets/ibmmq_metrics/screenshot.webp | Bin .../home/public/assets/icinga_logs/screenshot.webp | Bin .../home/public/assets/iis_logs/screenshot.webp | Bin .../home/public/assets/iis_metrics/screenshot.webp | Bin .../public/assets/iptables_logs/screenshot.webp | Bin .../home/public/assets/kafka_logs/screenshot.webp | Bin .../assets/kubernetes_metrics/screenshot.webp | Bin .../shared}/home/public/assets/logos/activemq.svg | 0 .../shared}/home/public/assets/logos/barracuda.svg | 0 .../shared}/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 .../shared}/home/public/assets/logos/coredns.svg | 0 .../shared}/home/public/assets/logos/couchdb.svg | 0 .../home/public/assets/logos/crowdstrike.svg | 0 .../shared}/home/public/assets/logos/cylance.svg | 0 .../shared}/home/public/assets/logos/envoyproxy.svg | 0 .../plugins/shared}/home/public/assets/logos/f5.svg | 0 .../shared}/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 .../shared}/home/public/assets/logos/infoblox.svg | 0 .../shared}/home/public/assets/logos/juniper.svg | 0 .../shared}/home/public/assets/logos/linux.svg | 0 .../shared}/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 .../shared}/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 .../shared}/home/public/assets/logos/osquery.svg | 0 .../shared}/home/public/assets/logos/paloalto.svg | 0 .../shared}/home/public/assets/logos/rabbitmq.svg | 0 .../shared}/home/public/assets/logos/radware.svg | 0 .../shared}/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 .../shared}/home/public/assets/logos/suricata.svg | 0 .../shared}/home/public/assets/logos/system.svg | 0 .../shared}/home/public/assets/logos/tomcat.svg | 0 .../shared}/home/public/assets/logos/traefik.svg | 0 .../shared}/home/public/assets/logos/ubiquiti.svg | 0 .../shared}/home/public/assets/logos/uwsgi.svg | 0 .../shared}/home/public/assets/logos/vsphere.svg | 0 .../shared}/home/public/assets/logos/zeek.svg | 0 .../shared}/home/public/assets/logos/zookeeper.svg | 0 .../shared}/home/public/assets/logos/zscaler.svg | 0 .../public/assets/logstash_logs/screenshot.webp | Bin .../public/assets/microsoft_logs/screenshot.webp | Bin .../home/public/assets/misp_logs/screenshot.webp | Bin .../home/public/assets/mongodb_logs/screenshot.webp | Bin .../public/assets/mongodb_metrics/screenshot.webp | Bin .../public/assets/mssql_metrics/screenshot.webp | Bin .../home/public/assets/mysql_logs/screenshot.webp | Bin .../public/assets/mysql_metrics/screenshot.webp | Bin .../home/public/assets/nats_logs/screenshot.webp | Bin .../home/public/assets/nats_metrics/screenshot.webp | Bin .../home/public/assets/nginx_logs/screenshot.webp | Bin .../public/assets/nginx_metrics/screenshot.webp | Bin .../home/public/assets/o365_logs/screenshot.webp | Bin .../home/public/assets/okta_logs/screenshot.webp | Bin .../home/public/assets/osquery_logs/screenshot.webp | Bin .../home/public/assets/panw_logs/screenshot.webp | Bin .../public/assets/postgresql_logs/screenshot.webp | Bin .../public/assets/rabbitmq_metrics/screenshot.webp | Bin .../home/public/assets/redis_logs/screenshot.webp | Bin .../public/assets/redis_metrics/screenshot.webp | Bin .../assets/redisenterprise_metrics/screenshot.webp | Bin .../sample_data_resources/ecommerce/dashboard.webp | Bin .../ecommerce/dashboard_dark.webp | Bin .../assets/sample_data_resources/ecommerce/icon.svg | 0 .../sample_data_resources/flights/dashboard.webp | Bin .../flights/dashboard_dark.webp | Bin .../assets/sample_data_resources/flights/icon.svg | 0 .../sample_data_resources/logs/dashboard.webp | Bin .../sample_data_resources/logs/dashboard_dark.webp | Bin .../assets/sample_data_resources/logs/icon.svg | 0 .../home/public/assets/santa_logs/screenshot.webp | Bin .../public/assets/solution_logos/kubernetes.png | Bin .../assets/solution_logos/kubernetes_dark.png | Bin .../public/assets/solution_logos/observability.png | Bin .../assets/solution_logos/observability_dark.png | Bin .../home/public/assets/solution_logos/search.png | Bin .../public/assets/solution_logos/search_dark.png | Bin .../home/public/assets/solution_logos/security.png | Bin .../public/assets/solution_logos/security_dark.png | Bin .../home/public/assets/stan_metrics/screenshot.webp | Bin .../public/assets/suricata_logs/screenshot.webp | Bin .../home/public/assets/system_logs/screenshot.webp | Bin .../public/assets/system_metrics/screenshot.webp | Bin .../home/public/assets/traefik_logs/screenshot.webp | Bin .../public/assets/uptime_monitors/screenshot.webp | Bin .../public/assets/uwsgi_metrics/screenshot.webp | Bin .../home/public/assets/welcome_graphic_dark_2x.png | Bin .../home/public/assets/welcome_graphic_light_2x.png | Bin .../home/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 .../public/services/add_data/add_data_service.ts | 0 .../shared}/home/public/services/add_data/index.ts | 0 .../public/services/environment/environment.mock.ts | 0 .../public/services/environment/environment.test.ts | 0 .../home/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/feature_catalogue_registry.ts | 0 .../home/public/services/feature_catalogue/index.ts | 0 .../plugins/shared}/home/public/services/index.ts | 0 .../shared}/home/public/services/tutorials/index.ts | 0 .../services/tutorials/tutorial_service.mock.ts | 0 .../services/tutorials/tutorial_service.test.tsx | 0 .../public/services/tutorials/tutorial_service.ts | 0 .../shared}/home/public/services/welcome/index.ts | 0 .../services/welcome/welcome_service.mocks.ts | 0 .../public/services/welcome/welcome_service.test.ts | 0 .../home/public/services/welcome/welcome_service.ts | 0 .../shared}/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 .../server/saved_objects/sample_data_telemetry.ts | 0 .../plugins/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 .../sample_data/data_sets/flights/field_mappings.ts | 0 .../sample_data/data_sets/flights/flights.json.gz | Bin .../services/sample_data/data_sets/flights/index.ts | 0 .../sample_data/data_sets/flights/saved_objects.ts | 0 .../server/services/sample_data/data_sets/index.ts | 0 .../sample_data/data_sets/logs/field_mappings.ts | 0 .../services/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 +- .../sample_data/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 .../services/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 .../services/sample_data/lib/find_sample_objects.ts | 0 .../sample_data/lib/insert_data_into_index.ts | 0 .../server/services/sample_data/lib/load_data.ts | 0 .../sample_data/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 .../services/sample_data/lib/translate_timestamp.ts | 0 .../home/server/services/sample_data/lib/utils.ts | 0 .../server/services/sample_data/routes/index.ts | 0 .../server/services/sample_data/routes/install.ts | 0 .../home/server/services/sample_data/routes/list.ts | 0 .../server/services/sample_data/routes/uninstall.ts | 0 .../server/services/sample_data/routes/utils.ts | 0 .../sample_data/sample_data_installer.test.mocks.ts | 0 .../sample_data/sample_data_installer.test.ts | 0 .../services/sample_data/sample_data_installer.ts | 0 .../sample_data/sample_data_registry.mock.ts | 0 .../sample_data/sample_data_registry.test.ts | 0 .../services/sample_data/sample_data_registry.ts | 0 .../server/services/sample_data/usage/collector.ts | 0 .../sample_data/usage/collector_fetch.test.ts | 0 .../services/sample_data/usage/collector_fetch.ts | 0 .../home/server/services/sample_data/usage/index.ts | 0 .../home/server/services/sample_data/usage/usage.ts | 0 .../shared}/home/server/services/tutorials/index.ts | 0 .../services/tutorials/lib/tutorial_schema.ts | 0 .../tutorials/lib/tutorials_registry_types.ts | 0 .../services/tutorials/tutorials_registry.mock.ts | 0 .../services/tutorials/tutorials_registry.test.ts | 0 .../server/services/tutorials/tutorials_registry.ts | 0 .../home/server/tutorials/activemq_logs/index.ts | 0 .../home/server/tutorials/activemq_metrics/index.ts | 0 .../server/tutorials/aerospike_metrics/index.ts | 0 .../home/server/tutorials/apache_logs/index.ts | 0 .../home/server/tutorials/apache_metrics/index.ts | 0 .../home/server/tutorials/auditbeat/index.ts | 0 .../home/server/tutorials/auditd_logs/index.ts | 0 .../shared}/home/server/tutorials/aws_logs/index.ts | 0 .../home/server/tutorials/aws_metrics/index.ts | 0 .../home/server/tutorials/azure_logs/index.ts | 0 .../home/server/tutorials/azure_metrics/index.ts | 0 .../home/server/tutorials/barracuda_logs/index.ts | 0 .../home/server/tutorials/bluecoat_logs/index.ts | 0 .../shared}/home/server/tutorials/cef_logs/index.ts | 0 .../home/server/tutorials/ceph_metrics/index.ts | 0 .../home/server/tutorials/checkpoint_logs/index.ts | 0 .../home/server/tutorials/cisco_logs/index.ts | 0 .../server/tutorials/cockroachdb_metrics/index.ts | 0 .../home/server/tutorials/consul_metrics/index.ts | 0 .../home/server/tutorials/coredns_logs/index.ts | 0 .../home/server/tutorials/coredns_metrics/index.ts | 0 .../server/tutorials/couchbase_metrics/index.ts | 0 .../home/server/tutorials/couchdb_metrics/index.ts | 0 .../home/server/tutorials/crowdstrike_logs/index.ts | 0 .../home/server/tutorials/cylance_logs/index.ts | 0 .../home/server/tutorials/docker_metrics/index.ts | 0 .../server/tutorials/dropwizard_metrics/index.ts | 0 .../server/tutorials/elasticsearch_logs/index.ts | 0 .../server/tutorials/elasticsearch_metrics/index.ts | 0 .../home/server/tutorials/envoyproxy_logs/index.ts | 0 .../server/tutorials/envoyproxy_metrics/index.ts | 0 .../home/server/tutorials/etcd_metrics/index.ts | 0 .../shared}/home/server/tutorials/f5_logs/index.ts | 0 .../home/server/tutorials/fortinet_logs/index.ts | 0 .../shared}/home/server/tutorials/gcp_logs/index.ts | 0 .../home/server/tutorials/gcp_metrics/index.ts | 0 .../home/server/tutorials/golang_metrics/index.ts | 0 .../home/server/tutorials/gsuite_logs/index.ts | 0 .../home/server/tutorials/haproxy_logs/index.ts | 0 .../home/server/tutorials/haproxy_metrics/index.ts | 0 .../home/server/tutorials/ibmmq_logs/index.ts | 0 .../home/server/tutorials/ibmmq_metrics/index.ts | 0 .../home/server/tutorials/icinga_logs/index.ts | 0 .../shared}/home/server/tutorials/iis_logs/index.ts | 0 .../home/server/tutorials/iis_metrics/index.ts | 0 .../home/server/tutorials/imperva_logs/index.ts | 0 .../home/server/tutorials/infoblox_logs/index.ts | 0 .../instructions/auditbeat_instructions.ts | 0 .../tutorials/instructions/cloud_instructions.ts | 0 .../tutorials/instructions/filebeat_instructions.ts | 0 .../instructions/get_space_id_for_beats_tutorial.ts | 0 .../instructions/heartbeat_instructions.ts | 0 .../tutorials/instructions/logstash_instructions.ts | 0 .../instructions/metricbeat_instructions.ts | 0 .../instructions/onprem_cloud_instructions.ts | 0 .../server/tutorials/instructions/param_types.ts | 0 .../instructions/winlogbeat_instructions.ts | 0 .../home/server/tutorials/iptables_logs/index.ts | 0 .../home/server/tutorials/juniper_logs/index.ts | 0 .../home/server/tutorials/kafka_logs/index.ts | 0 .../home/server/tutorials/kafka_metrics/index.ts | 0 .../home/server/tutorials/kibana_logs/index.ts | 0 .../home/server/tutorials/kibana_metrics/index.ts | 0 .../server/tutorials/kubernetes_metrics/index.ts | 0 .../home/server/tutorials/logstash_logs/index.ts | 0 .../home/server/tutorials/logstash_metrics/index.ts | 0 .../server/tutorials/memcached_metrics/index.ts | 0 .../home/server/tutorials/microsoft_logs/index.ts | 0 .../home/server/tutorials/misp_logs/index.ts | 0 .../home/server/tutorials/mongodb_logs/index.ts | 0 .../home/server/tutorials/mongodb_metrics/index.ts | 0 .../home/server/tutorials/mssql_logs/index.ts | 0 .../home/server/tutorials/mssql_metrics/index.ts | 0 .../home/server/tutorials/munin_metrics/index.ts | 0 .../home/server/tutorials/mysql_logs/index.ts | 0 .../home/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 .../home/server/tutorials/netscout_logs/index.ts | 0 .../home/server/tutorials/nginx_logs/index.ts | 0 .../home/server/tutorials/nginx_metrics/index.ts | 0 .../home/server/tutorials/o365_logs/index.ts | 0 .../home/server/tutorials/okta_logs/index.ts | 0 .../server/tutorials/openmetrics_metrics/index.ts | 0 .../home/server/tutorials/oracle_metrics/index.ts | 0 .../home/server/tutorials/osquery_logs/index.ts | 0 .../home/server/tutorials/panw_logs/index.ts | 0 .../home/server/tutorials/php_fpm_metrics/index.ts | 0 .../home/server/tutorials/postgresql_logs/index.ts | 0 .../server/tutorials/postgresql_metrics/index.ts | 0 .../server/tutorials/prometheus_metrics/index.ts | 0 .../home/server/tutorials/rabbitmq_logs/index.ts | 0 .../home/server/tutorials/rabbitmq_metrics/index.ts | 0 .../home/server/tutorials/radware_logs/index.ts | 0 .../home/server/tutorials/redis_logs/index.ts | 0 .../home/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 .../home/server/tutorials/sonicwall_logs/index.ts | 0 .../home/server/tutorials/sophos_logs/index.ts | 0 .../home/server/tutorials/stan_metrics/index.ts | 0 .../home/server/tutorials/statsd_metrics/index.ts | 0 .../home/server/tutorials/suricata_logs/index.ts | 0 .../home/server/tutorials/system_logs/index.ts | 0 .../home/server/tutorials/system_metrics/index.ts | 0 .../home/server/tutorials/tomcat_logs/index.ts | 0 .../home/server/tutorials/traefik_logs/index.ts | 0 .../home/server/tutorials/traefik_metrics/index.ts | 0 .../home/server/tutorials/uptime_monitors/index.ts | 0 .../home/server/tutorials/uwsgi_metrics/index.ts | 0 .../home/server/tutorials/vsphere_metrics/index.ts | 0 .../server/tutorials/windows_event_logs/index.ts | 0 .../home/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, 35 insertions(+), 35 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 18ca29b769467..1cf47c901b66b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -631,6 +631,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/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -666,7 +667,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 diff --git a/.i18nrc.json b/.i18nrc.json index e45b05a44d165..6d23aebcd6576 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -64,7 +64,7 @@ "alertsGrouping": "packages/kbn-alerts-grouping", "guidedOnboarding": "src/platform/plugins/shared/guided_onboarding", "guidedOnboardingPackage": "src/platform/packages/shared/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 5b8e94a56390e..a00927f1e265c 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 46745830d7876..28880c706c75e 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 c89df73f1b877..677479b412cc4 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -44,7 +44,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/plugins/observability_solution/investigate_app/.storybook', diff --git a/src/platform/plugins/shared/guided_onboarding/README.md b/src/platform/plugins/shared/guided_onboarding/README.md index 372472c129840..f1fef28748a8e 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/src/platform/packages/shared/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/src/platform/packages/shared/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 57c85afd9a101..136bccba48c8f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1028,8 +1028,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 7ae0e2b51a24b..9e25232a1b313 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5872,7 +5872,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 4f8de0b2fe006c5a4d24b0077a33766f9ae4cc28 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:53:07 +0100 Subject: [PATCH 030/129] Relocating module `@kbn/home-sample-data-card` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/home/sample_data_card/README.mdx | 0 .../packages/shared}/home/sample_data_card/index.ts | 0 .../shared}/home/sample_data_card/jest.config.js | 4 ++-- .../shared}/home/sample_data_card/kibana.jsonc | 0 .../shared}/home/sample_data_card/package.json | 0 .../__snapshots__/sample_data_card.test.tsx.snap | 0 .../shared}/home/sample_data_card/src/constants.ts | 0 .../__snapshots__/disabled_footer.test.tsx.snap | 0 .../__snapshots__/install_footer.test.tsx.snap | 0 .../__snapshots__/remove_footer.test.tsx.snap | 0 .../footer/__snapshots__/view_button.test.tsx.snap | 0 .../src/footer/disabled_footer.test.tsx | 0 .../sample_data_card/src/footer/disabled_footer.tsx | 0 .../sample_data_card/src/footer/footer.stories.tsx | 0 .../home/sample_data_card/src/footer/index.tsx | 0 .../src/footer/install_footer.test.tsx | 0 .../sample_data_card/src/footer/install_footer.tsx | 0 .../src/footer/remove_footer.test.tsx | 0 .../sample_data_card/src/footer/remove_footer.tsx | 0 .../src/footer/view_button.test.tsx | 0 .../sample_data_card/src/footer/view_button.tsx | 0 .../home/sample_data_card/src/hooks/index.ts | 0 .../home/sample_data_card/src/hooks/use_install.ts | 0 .../home/sample_data_card/src/hooks/use_remove.ts | 0 .../home/sample_data_card/src/mocks/dashboard.png | Bin .../sample_data_card/src/mocks/dashboard_dark.png | Bin .../home/sample_data_card/src/mocks/icon.svg | 0 .../home/sample_data_card/src/mocks/index.ts | 0 .../src/sample_data_card.component.tsx | 0 .../src/sample_data_card.stories.tsx | 0 .../sample_data_card/src/sample_data_card.test.tsx | 0 .../home/sample_data_card/src/sample_data_card.tsx | 0 .../shared}/home/sample_data_card/src/services.tsx | 0 .../shared}/home/sample_data_card/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 38 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/home/sample_data_card/README.mdx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/index.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/jest.config.js (82%) rename {packages => src/platform/packages/shared}/home/sample_data_card/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/package.json (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/__snapshots__/sample_data_card.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/constants.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/__snapshots__/disabled_footer.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/__snapshots__/install_footer.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/__snapshots__/remove_footer.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/__snapshots__/view_button.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/disabled_footer.test.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/disabled_footer.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/footer.stories.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/index.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/install_footer.test.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/install_footer.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/remove_footer.test.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/remove_footer.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/view_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/footer/view_button.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/hooks/index.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/hooks/use_install.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/hooks/use_remove.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/mocks/dashboard.png (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/mocks/dashboard_dark.png (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/mocks/icon.svg (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/sample_data_card.component.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/sample_data_card.stories.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/sample_data_card.test.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/sample_data_card.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_card/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1cf47c901b66b..a60da8e980a46 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -262,7 +262,6 @@ packages/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-pr packages/default-nav/devtools @elastic/kibana-management packages/default-nav/management @elastic/kibana-management packages/default-nav/ml @elastic/ml-ui -packages/home/sample_data_card @elastic/appex-sharedux packages/home/sample_data_tab @elastic/appex-sharedux packages/home/sample_data_types @elastic/appex-sharedux packages/kbn-actions-types @elastic/response-ops @@ -615,6 +614,7 @@ src/platform/packages/shared/content-management/table_list_view_common @elastic/ src/platform/packages/shared/content-management/table_list_view_table @elastic/appex-sharedux src/platform/packages/shared/content-management/user_profiles @elastic/appex-sharedux src/platform/packages/shared/deeplinks/shared @elastic/appex-sharedux +src/platform/packages/shared/home/sample_data_card @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index 28880c706c75e..ef4119c9fcac1 100644 --- a/package.json +++ b/package.json @@ -564,7 +564,7 @@ "@kbn/health-gateway-server": "link:packages/kbn-health-gateway-server", "@kbn/hello-world-plugin": "link:examples/hello_world", "@kbn/home-plugin": "link:src/platform/plugins/shared/home", - "@kbn/home-sample-data-card": "link:packages/home/sample_data_card", + "@kbn/home-sample-data-card": "link:src/platform/packages/shared/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", "@kbn/i18n": "link:packages/kbn-i18n", diff --git a/packages/home/sample_data_card/README.mdx b/src/platform/packages/shared/home/sample_data_card/README.mdx similarity index 100% rename from packages/home/sample_data_card/README.mdx rename to src/platform/packages/shared/home/sample_data_card/README.mdx diff --git a/packages/home/sample_data_card/index.ts b/src/platform/packages/shared/home/sample_data_card/index.ts similarity index 100% rename from packages/home/sample_data_card/index.ts rename to src/platform/packages/shared/home/sample_data_card/index.ts diff --git a/packages/home/sample_data_card/jest.config.js b/src/platform/packages/shared/home/sample_data_card/jest.config.js similarity index 82% rename from packages/home/sample_data_card/jest.config.js rename to src/platform/packages/shared/home/sample_data_card/jest.config.js index 0d1af72780e0a..0491810279eac 100644 --- a/packages/home/sample_data_card/jest.config.js +++ b/src/platform/packages/shared/home/sample_data_card/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/home/sample_data_card'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/home/sample_data_card'], }; diff --git a/packages/home/sample_data_card/kibana.jsonc b/src/platform/packages/shared/home/sample_data_card/kibana.jsonc similarity index 100% rename from packages/home/sample_data_card/kibana.jsonc rename to src/platform/packages/shared/home/sample_data_card/kibana.jsonc diff --git a/packages/home/sample_data_card/package.json b/src/platform/packages/shared/home/sample_data_card/package.json similarity index 100% rename from packages/home/sample_data_card/package.json rename to src/platform/packages/shared/home/sample_data_card/package.json diff --git a/packages/home/sample_data_card/src/__snapshots__/sample_data_card.test.tsx.snap b/src/platform/packages/shared/home/sample_data_card/src/__snapshots__/sample_data_card.test.tsx.snap similarity index 100% rename from packages/home/sample_data_card/src/__snapshots__/sample_data_card.test.tsx.snap rename to src/platform/packages/shared/home/sample_data_card/src/__snapshots__/sample_data_card.test.tsx.snap diff --git a/packages/home/sample_data_card/src/constants.ts b/src/platform/packages/shared/home/sample_data_card/src/constants.ts similarity index 100% rename from packages/home/sample_data_card/src/constants.ts rename to src/platform/packages/shared/home/sample_data_card/src/constants.ts diff --git a/packages/home/sample_data_card/src/footer/__snapshots__/disabled_footer.test.tsx.snap b/src/platform/packages/shared/home/sample_data_card/src/footer/__snapshots__/disabled_footer.test.tsx.snap similarity index 100% rename from packages/home/sample_data_card/src/footer/__snapshots__/disabled_footer.test.tsx.snap rename to src/platform/packages/shared/home/sample_data_card/src/footer/__snapshots__/disabled_footer.test.tsx.snap diff --git a/packages/home/sample_data_card/src/footer/__snapshots__/install_footer.test.tsx.snap b/src/platform/packages/shared/home/sample_data_card/src/footer/__snapshots__/install_footer.test.tsx.snap similarity index 100% rename from packages/home/sample_data_card/src/footer/__snapshots__/install_footer.test.tsx.snap rename to src/platform/packages/shared/home/sample_data_card/src/footer/__snapshots__/install_footer.test.tsx.snap diff --git a/packages/home/sample_data_card/src/footer/__snapshots__/remove_footer.test.tsx.snap b/src/platform/packages/shared/home/sample_data_card/src/footer/__snapshots__/remove_footer.test.tsx.snap similarity index 100% rename from packages/home/sample_data_card/src/footer/__snapshots__/remove_footer.test.tsx.snap rename to src/platform/packages/shared/home/sample_data_card/src/footer/__snapshots__/remove_footer.test.tsx.snap diff --git a/packages/home/sample_data_card/src/footer/__snapshots__/view_button.test.tsx.snap b/src/platform/packages/shared/home/sample_data_card/src/footer/__snapshots__/view_button.test.tsx.snap similarity index 100% rename from packages/home/sample_data_card/src/footer/__snapshots__/view_button.test.tsx.snap rename to src/platform/packages/shared/home/sample_data_card/src/footer/__snapshots__/view_button.test.tsx.snap diff --git a/packages/home/sample_data_card/src/footer/disabled_footer.test.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/disabled_footer.test.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/disabled_footer.test.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/disabled_footer.test.tsx diff --git a/packages/home/sample_data_card/src/footer/disabled_footer.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/disabled_footer.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/disabled_footer.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/disabled_footer.tsx diff --git a/packages/home/sample_data_card/src/footer/footer.stories.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/footer.stories.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/footer.stories.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/footer.stories.tsx diff --git a/packages/home/sample_data_card/src/footer/index.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/index.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/index.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/index.tsx diff --git a/packages/home/sample_data_card/src/footer/install_footer.test.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/install_footer.test.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/install_footer.test.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/install_footer.test.tsx diff --git a/packages/home/sample_data_card/src/footer/install_footer.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/install_footer.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/install_footer.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/install_footer.tsx diff --git a/packages/home/sample_data_card/src/footer/remove_footer.test.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/remove_footer.test.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/remove_footer.test.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/remove_footer.test.tsx diff --git a/packages/home/sample_data_card/src/footer/remove_footer.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/remove_footer.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/remove_footer.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/remove_footer.tsx diff --git a/packages/home/sample_data_card/src/footer/view_button.test.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/view_button.test.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/view_button.test.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/view_button.test.tsx diff --git a/packages/home/sample_data_card/src/footer/view_button.tsx b/src/platform/packages/shared/home/sample_data_card/src/footer/view_button.tsx similarity index 100% rename from packages/home/sample_data_card/src/footer/view_button.tsx rename to src/platform/packages/shared/home/sample_data_card/src/footer/view_button.tsx diff --git a/packages/home/sample_data_card/src/hooks/index.ts b/src/platform/packages/shared/home/sample_data_card/src/hooks/index.ts similarity index 100% rename from packages/home/sample_data_card/src/hooks/index.ts rename to src/platform/packages/shared/home/sample_data_card/src/hooks/index.ts diff --git a/packages/home/sample_data_card/src/hooks/use_install.ts b/src/platform/packages/shared/home/sample_data_card/src/hooks/use_install.ts similarity index 100% rename from packages/home/sample_data_card/src/hooks/use_install.ts rename to src/platform/packages/shared/home/sample_data_card/src/hooks/use_install.ts diff --git a/packages/home/sample_data_card/src/hooks/use_remove.ts b/src/platform/packages/shared/home/sample_data_card/src/hooks/use_remove.ts similarity index 100% rename from packages/home/sample_data_card/src/hooks/use_remove.ts rename to src/platform/packages/shared/home/sample_data_card/src/hooks/use_remove.ts diff --git a/packages/home/sample_data_card/src/mocks/dashboard.png b/src/platform/packages/shared/home/sample_data_card/src/mocks/dashboard.png similarity index 100% rename from packages/home/sample_data_card/src/mocks/dashboard.png rename to src/platform/packages/shared/home/sample_data_card/src/mocks/dashboard.png diff --git a/packages/home/sample_data_card/src/mocks/dashboard_dark.png b/src/platform/packages/shared/home/sample_data_card/src/mocks/dashboard_dark.png similarity index 100% rename from packages/home/sample_data_card/src/mocks/dashboard_dark.png rename to src/platform/packages/shared/home/sample_data_card/src/mocks/dashboard_dark.png diff --git a/packages/home/sample_data_card/src/mocks/icon.svg b/src/platform/packages/shared/home/sample_data_card/src/mocks/icon.svg similarity index 100% rename from packages/home/sample_data_card/src/mocks/icon.svg rename to src/platform/packages/shared/home/sample_data_card/src/mocks/icon.svg diff --git a/packages/home/sample_data_card/src/mocks/index.ts b/src/platform/packages/shared/home/sample_data_card/src/mocks/index.ts similarity index 100% rename from packages/home/sample_data_card/src/mocks/index.ts rename to src/platform/packages/shared/home/sample_data_card/src/mocks/index.ts diff --git a/packages/home/sample_data_card/src/sample_data_card.component.tsx b/src/platform/packages/shared/home/sample_data_card/src/sample_data_card.component.tsx similarity index 100% rename from packages/home/sample_data_card/src/sample_data_card.component.tsx rename to src/platform/packages/shared/home/sample_data_card/src/sample_data_card.component.tsx diff --git a/packages/home/sample_data_card/src/sample_data_card.stories.tsx b/src/platform/packages/shared/home/sample_data_card/src/sample_data_card.stories.tsx similarity index 100% rename from packages/home/sample_data_card/src/sample_data_card.stories.tsx rename to src/platform/packages/shared/home/sample_data_card/src/sample_data_card.stories.tsx diff --git a/packages/home/sample_data_card/src/sample_data_card.test.tsx b/src/platform/packages/shared/home/sample_data_card/src/sample_data_card.test.tsx similarity index 100% rename from packages/home/sample_data_card/src/sample_data_card.test.tsx rename to src/platform/packages/shared/home/sample_data_card/src/sample_data_card.test.tsx diff --git a/packages/home/sample_data_card/src/sample_data_card.tsx b/src/platform/packages/shared/home/sample_data_card/src/sample_data_card.tsx similarity index 100% rename from packages/home/sample_data_card/src/sample_data_card.tsx rename to src/platform/packages/shared/home/sample_data_card/src/sample_data_card.tsx diff --git a/packages/home/sample_data_card/src/services.tsx b/src/platform/packages/shared/home/sample_data_card/src/services.tsx similarity index 100% rename from packages/home/sample_data_card/src/services.tsx rename to src/platform/packages/shared/home/sample_data_card/src/services.tsx diff --git a/packages/home/sample_data_card/tsconfig.json b/src/platform/packages/shared/home/sample_data_card/tsconfig.json similarity index 86% rename from packages/home/sample_data_card/tsconfig.json rename to src/platform/packages/shared/home/sample_data_card/tsconfig.json index 531dd52379f12..6f2e89c5019f9 100644 --- a/packages/home/sample_data_card/tsconfig.json +++ b/src/platform/packages/shared/home/sample_data_card/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 136bccba48c8f..277c58b34a723 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1030,8 +1030,8 @@ "@kbn/hello-world-plugin/*": ["examples/hello_world/*"], "@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-card": ["src/platform/packages/shared/home/sample_data_card"], + "@kbn/home-sample-data-card/*": ["src/platform/packages/shared/home/sample_data_card/*"], "@kbn/home-sample-data-tab": ["packages/home/sample_data_tab"], "@kbn/home-sample-data-tab/*": ["packages/home/sample_data_tab/*"], "@kbn/home-sample-data-types": ["packages/home/sample_data_types"], diff --git a/yarn.lock b/yarn.lock index 9e25232a1b313..6e1a87f15f872 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5876,7 +5876,7 @@ version "0.0.0" uid "" -"@kbn/home-sample-data-card@link:packages/home/sample_data_card": +"@kbn/home-sample-data-card@link:src/platform/packages/shared/home/sample_data_card": version "0.0.0" uid "" From 7bdf8825d8e9ad88912ede0f71666d8e43bd0192 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:54:39 +0100 Subject: [PATCH 031/129] Relocating module `@kbn/home-sample-data-tab` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/home/sample_data_tab/README.mdx | 0 .../packages/shared}/home/sample_data_tab/index.ts | 0 .../shared}/home/sample_data_tab/jest.config.js | 4 ++-- .../shared}/home/sample_data_tab/kibana.jsonc | 0 .../shared}/home/sample_data_tab/package.json | 0 .../sample_data_tab/src/assets/welcome_dark.png | Bin .../sample_data_tab/src/assets/welcome_light.png | Bin .../shared}/home/sample_data_tab/src/constants.ts | 0 .../sample_data_tab/src/demo_env_panel.stories.tsx | 0 .../home/sample_data_tab/src/demo_env_panel.tsx | 0 .../shared}/home/sample_data_tab/src/hooks/index.ts | 0 .../home/sample_data_tab/src/hooks/use_list.ts | 0 .../shared}/home/sample_data_tab/src/mocks.ts | 0 .../home/sample_data_tab/src/sample_data_cards.tsx | 0 .../sample_data_tab/src/sample_data_tab.stories.tsx | 0 .../home/sample_data_tab/src/sample_data_tab.tsx | 0 .../shared}/home/sample_data_tab/src/services.tsx | 0 .../shared}/home/sample_data_tab/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 22 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/home/sample_data_tab/README.mdx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/index.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/jest.config.js (82%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/package.json (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/assets/welcome_dark.png (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/assets/welcome_light.png (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/constants.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/demo_env_panel.stories.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/demo_env_panel.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/hooks/index.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/hooks/use_list.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/mocks.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/sample_data_cards.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/sample_data_tab.stories.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/sample_data_tab.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_tab/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a60da8e980a46..b6f8940175f0b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -262,7 +262,6 @@ packages/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-pr packages/default-nav/devtools @elastic/kibana-management packages/default-nav/management @elastic/kibana-management packages/default-nav/ml @elastic/ml-ui -packages/home/sample_data_tab @elastic/appex-sharedux packages/home/sample_data_types @elastic/appex-sharedux packages/kbn-actions-types @elastic/response-ops packages/kbn-alerting-types @elastic/response-ops @@ -615,6 +614,7 @@ src/platform/packages/shared/content-management/table_list_view_table @elastic/a src/platform/packages/shared/content-management/user_profiles @elastic/appex-sharedux src/platform/packages/shared/deeplinks/shared @elastic/appex-sharedux src/platform/packages/shared/home/sample_data_card @elastic/appex-sharedux +src/platform/packages/shared/home/sample_data_tab @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index ef4119c9fcac1..179cbd27af1b2 100644 --- a/package.json +++ b/package.json @@ -565,7 +565,7 @@ "@kbn/hello-world-plugin": "link:examples/hello_world", "@kbn/home-plugin": "link:src/platform/plugins/shared/home", "@kbn/home-sample-data-card": "link:src/platform/packages/shared/home/sample_data_card", - "@kbn/home-sample-data-tab": "link:packages/home/sample_data_tab", + "@kbn/home-sample-data-tab": "link:src/platform/packages/shared/home/sample_data_tab", "@kbn/home-sample-data-types": "link:packages/home/sample_data_types", "@kbn/i18n": "link:packages/kbn-i18n", "@kbn/i18n-react": "link:packages/kbn-i18n-react", diff --git a/packages/home/sample_data_tab/README.mdx b/src/platform/packages/shared/home/sample_data_tab/README.mdx similarity index 100% rename from packages/home/sample_data_tab/README.mdx rename to src/platform/packages/shared/home/sample_data_tab/README.mdx diff --git a/packages/home/sample_data_tab/index.ts b/src/platform/packages/shared/home/sample_data_tab/index.ts similarity index 100% rename from packages/home/sample_data_tab/index.ts rename to src/platform/packages/shared/home/sample_data_tab/index.ts diff --git a/packages/home/sample_data_tab/jest.config.js b/src/platform/packages/shared/home/sample_data_tab/jest.config.js similarity index 82% rename from packages/home/sample_data_tab/jest.config.js rename to src/platform/packages/shared/home/sample_data_tab/jest.config.js index 1d081809f82b7..1372916903c7e 100644 --- a/packages/home/sample_data_tab/jest.config.js +++ b/src/platform/packages/shared/home/sample_data_tab/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/home/sample_data_tab'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/home/sample_data_tab'], }; diff --git a/packages/home/sample_data_tab/kibana.jsonc b/src/platform/packages/shared/home/sample_data_tab/kibana.jsonc similarity index 100% rename from packages/home/sample_data_tab/kibana.jsonc rename to src/platform/packages/shared/home/sample_data_tab/kibana.jsonc diff --git a/packages/home/sample_data_tab/package.json b/src/platform/packages/shared/home/sample_data_tab/package.json similarity index 100% rename from packages/home/sample_data_tab/package.json rename to src/platform/packages/shared/home/sample_data_tab/package.json diff --git a/packages/home/sample_data_tab/src/assets/welcome_dark.png b/src/platform/packages/shared/home/sample_data_tab/src/assets/welcome_dark.png similarity index 100% rename from packages/home/sample_data_tab/src/assets/welcome_dark.png rename to src/platform/packages/shared/home/sample_data_tab/src/assets/welcome_dark.png diff --git a/packages/home/sample_data_tab/src/assets/welcome_light.png b/src/platform/packages/shared/home/sample_data_tab/src/assets/welcome_light.png similarity index 100% rename from packages/home/sample_data_tab/src/assets/welcome_light.png rename to src/platform/packages/shared/home/sample_data_tab/src/assets/welcome_light.png diff --git a/packages/home/sample_data_tab/src/constants.ts b/src/platform/packages/shared/home/sample_data_tab/src/constants.ts similarity index 100% rename from packages/home/sample_data_tab/src/constants.ts rename to src/platform/packages/shared/home/sample_data_tab/src/constants.ts diff --git a/packages/home/sample_data_tab/src/demo_env_panel.stories.tsx b/src/platform/packages/shared/home/sample_data_tab/src/demo_env_panel.stories.tsx similarity index 100% rename from packages/home/sample_data_tab/src/demo_env_panel.stories.tsx rename to src/platform/packages/shared/home/sample_data_tab/src/demo_env_panel.stories.tsx diff --git a/packages/home/sample_data_tab/src/demo_env_panel.tsx b/src/platform/packages/shared/home/sample_data_tab/src/demo_env_panel.tsx similarity index 100% rename from packages/home/sample_data_tab/src/demo_env_panel.tsx rename to src/platform/packages/shared/home/sample_data_tab/src/demo_env_panel.tsx diff --git a/packages/home/sample_data_tab/src/hooks/index.ts b/src/platform/packages/shared/home/sample_data_tab/src/hooks/index.ts similarity index 100% rename from packages/home/sample_data_tab/src/hooks/index.ts rename to src/platform/packages/shared/home/sample_data_tab/src/hooks/index.ts diff --git a/packages/home/sample_data_tab/src/hooks/use_list.ts b/src/platform/packages/shared/home/sample_data_tab/src/hooks/use_list.ts similarity index 100% rename from packages/home/sample_data_tab/src/hooks/use_list.ts rename to src/platform/packages/shared/home/sample_data_tab/src/hooks/use_list.ts diff --git a/packages/home/sample_data_tab/src/mocks.ts b/src/platform/packages/shared/home/sample_data_tab/src/mocks.ts similarity index 100% rename from packages/home/sample_data_tab/src/mocks.ts rename to src/platform/packages/shared/home/sample_data_tab/src/mocks.ts diff --git a/packages/home/sample_data_tab/src/sample_data_cards.tsx b/src/platform/packages/shared/home/sample_data_tab/src/sample_data_cards.tsx similarity index 100% rename from packages/home/sample_data_tab/src/sample_data_cards.tsx rename to src/platform/packages/shared/home/sample_data_tab/src/sample_data_cards.tsx diff --git a/packages/home/sample_data_tab/src/sample_data_tab.stories.tsx b/src/platform/packages/shared/home/sample_data_tab/src/sample_data_tab.stories.tsx similarity index 100% rename from packages/home/sample_data_tab/src/sample_data_tab.stories.tsx rename to src/platform/packages/shared/home/sample_data_tab/src/sample_data_tab.stories.tsx diff --git a/packages/home/sample_data_tab/src/sample_data_tab.tsx b/src/platform/packages/shared/home/sample_data_tab/src/sample_data_tab.tsx similarity index 100% rename from packages/home/sample_data_tab/src/sample_data_tab.tsx rename to src/platform/packages/shared/home/sample_data_tab/src/sample_data_tab.tsx diff --git a/packages/home/sample_data_tab/src/services.tsx b/src/platform/packages/shared/home/sample_data_tab/src/services.tsx similarity index 100% rename from packages/home/sample_data_tab/src/services.tsx rename to src/platform/packages/shared/home/sample_data_tab/src/services.tsx diff --git a/packages/home/sample_data_tab/tsconfig.json b/src/platform/packages/shared/home/sample_data_tab/tsconfig.json similarity index 87% rename from packages/home/sample_data_tab/tsconfig.json rename to src/platform/packages/shared/home/sample_data_tab/tsconfig.json index 3cdeb5489c22a..2397a4d1e7c9b 100644 --- a/packages/home/sample_data_tab/tsconfig.json +++ b/src/platform/packages/shared/home/sample_data_tab/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 277c58b34a723..fd6dfc0bf01b9 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1032,8 +1032,8 @@ "@kbn/home-plugin/*": ["src/platform/plugins/shared/home/*"], "@kbn/home-sample-data-card": ["src/platform/packages/shared/home/sample_data_card"], "@kbn/home-sample-data-card/*": ["src/platform/packages/shared/home/sample_data_card/*"], - "@kbn/home-sample-data-tab": ["packages/home/sample_data_tab"], - "@kbn/home-sample-data-tab/*": ["packages/home/sample_data_tab/*"], + "@kbn/home-sample-data-tab": ["src/platform/packages/shared/home/sample_data_tab"], + "@kbn/home-sample-data-tab/*": ["src/platform/packages/shared/home/sample_data_tab/*"], "@kbn/home-sample-data-types": ["packages/home/sample_data_types"], "@kbn/home-sample-data-types/*": ["packages/home/sample_data_types/*"], "@kbn/i18n": ["packages/kbn-i18n"], diff --git a/yarn.lock b/yarn.lock index 6e1a87f15f872..4a3a99a2a8d8f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5880,7 +5880,7 @@ version "0.0.0" uid "" -"@kbn/home-sample-data-tab@link:packages/home/sample_data_tab": +"@kbn/home-sample-data-tab@link:src/platform/packages/shared/home/sample_data_tab": version "0.0.0" uid "" From ebe9b4559e4c976a8896455a3dfe0543bc8c2d15 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:56:11 +0100 Subject: [PATCH 032/129] Relocating module `@kbn/home-sample-data-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/home/sample_data_types/README.mdx | 0 .../packages/shared}/home/sample_data_types/index.d.ts | 0 .../packages/shared}/home/sample_data_types/jest.config.js | 4 ++-- .../packages/shared}/home/sample_data_types/kibana.jsonc | 0 .../packages/shared}/home/sample_data_types/package.json | 0 .../packages/shared}/home/sample_data_types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/home/sample_data_types/README.mdx (100%) rename {packages => src/platform/packages/shared}/home/sample_data_types/index.d.ts (100%) rename {packages => src/platform/packages/shared}/home/sample_data_types/jest.config.js (82%) rename {packages => src/platform/packages/shared}/home/sample_data_types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/home/sample_data_types/package.json (100%) rename {packages => src/platform/packages/shared}/home/sample_data_types/tsconfig.json (73%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b6f8940175f0b..cfeb4b56bae32 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -262,7 +262,6 @@ packages/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-pr packages/default-nav/devtools @elastic/kibana-management packages/default-nav/management @elastic/kibana-management packages/default-nav/ml @elastic/ml-ui -packages/home/sample_data_types @elastic/appex-sharedux packages/kbn-actions-types @elastic/response-ops packages/kbn-alerting-types @elastic/response-ops packages/kbn-alerts-as-data-utils @elastic/response-ops @@ -615,6 +614,7 @@ src/platform/packages/shared/content-management/user_profiles @elastic/appex-sha src/platform/packages/shared/deeplinks/shared @elastic/appex-sharedux src/platform/packages/shared/home/sample_data_card @elastic/appex-sharedux src/platform/packages/shared/home/sample_data_tab @elastic/appex-sharedux +src/platform/packages/shared/home/sample_data_types @elastic/appex-sharedux src/platform/packages/shared/kbn-bfetch-error @elastic/appex-sharedux src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index 179cbd27af1b2..809463c2ac1c1 100644 --- a/package.json +++ b/package.json @@ -566,7 +566,7 @@ "@kbn/home-plugin": "link:src/platform/plugins/shared/home", "@kbn/home-sample-data-card": "link:src/platform/packages/shared/home/sample_data_card", "@kbn/home-sample-data-tab": "link:src/platform/packages/shared/home/sample_data_tab", - "@kbn/home-sample-data-types": "link:packages/home/sample_data_types", + "@kbn/home-sample-data-types": "link:src/platform/packages/shared/home/sample_data_types", "@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", diff --git a/packages/home/sample_data_types/README.mdx b/src/platform/packages/shared/home/sample_data_types/README.mdx similarity index 100% rename from packages/home/sample_data_types/README.mdx rename to src/platform/packages/shared/home/sample_data_types/README.mdx diff --git a/packages/home/sample_data_types/index.d.ts b/src/platform/packages/shared/home/sample_data_types/index.d.ts similarity index 100% rename from packages/home/sample_data_types/index.d.ts rename to src/platform/packages/shared/home/sample_data_types/index.d.ts diff --git a/packages/home/sample_data_types/jest.config.js b/src/platform/packages/shared/home/sample_data_types/jest.config.js similarity index 82% rename from packages/home/sample_data_types/jest.config.js rename to src/platform/packages/shared/home/sample_data_types/jest.config.js index a1d6c3cbb0bd1..5f72cf7a026bc 100644 --- a/packages/home/sample_data_types/jest.config.js +++ b/src/platform/packages/shared/home/sample_data_types/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../..', - roots: ['/packages/home/sample_data_types'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/home/sample_data_types'], }; diff --git a/packages/home/sample_data_types/kibana.jsonc b/src/platform/packages/shared/home/sample_data_types/kibana.jsonc similarity index 100% rename from packages/home/sample_data_types/kibana.jsonc rename to src/platform/packages/shared/home/sample_data_types/kibana.jsonc diff --git a/packages/home/sample_data_types/package.json b/src/platform/packages/shared/home/sample_data_types/package.json similarity index 100% rename from packages/home/sample_data_types/package.json rename to src/platform/packages/shared/home/sample_data_types/package.json diff --git a/packages/home/sample_data_types/tsconfig.json b/src/platform/packages/shared/home/sample_data_types/tsconfig.json similarity index 73% rename from packages/home/sample_data_types/tsconfig.json rename to src/platform/packages/shared/home/sample_data_types/tsconfig.json index 493400e55a76f..48a59d313f003 100644 --- a/packages/home/sample_data_types/tsconfig.json +++ b/src/platform/packages/shared/home/sample_data_types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [] diff --git a/tsconfig.base.json b/tsconfig.base.json index fd6dfc0bf01b9..010138e04c5aa 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1034,8 +1034,8 @@ "@kbn/home-sample-data-card/*": ["src/platform/packages/shared/home/sample_data_card/*"], "@kbn/home-sample-data-tab": ["src/platform/packages/shared/home/sample_data_tab"], "@kbn/home-sample-data-tab/*": ["src/platform/packages/shared/home/sample_data_tab/*"], - "@kbn/home-sample-data-types": ["packages/home/sample_data_types"], - "@kbn/home-sample-data-types/*": ["packages/home/sample_data_types/*"], + "@kbn/home-sample-data-types": ["src/platform/packages/shared/home/sample_data_types"], + "@kbn/home-sample-data-types/*": ["src/platform/packages/shared/home/sample_data_types/*"], "@kbn/i18n": ["packages/kbn-i18n"], "@kbn/i18n/*": ["packages/kbn-i18n/*"], "@kbn/i18n-react": ["packages/kbn-i18n-react"], diff --git a/yarn.lock b/yarn.lock index 4a3a99a2a8d8f..055cfa1ccd37b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5884,7 +5884,7 @@ version "0.0.0" uid "" -"@kbn/home-sample-data-types@link:packages/home/sample_data_types": +"@kbn/home-sample-data-types@link:src/platform/packages/shared/home/sample_data_types": version "0.0.0" uid "" From f2814e3511766e8d178eb4d2cd959bfa2083ae99 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:57:42 +0100 Subject: [PATCH 033/129] 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 cfeb4b56bae32..29dd27fda6755 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -625,6 +625,7 @@ src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux 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/shared/bfetch @elastic/appex-sharedux src/platform/plugins/shared/content_management @elastic/appex-sharedux src/platform/plugins/shared/esql @elastic/kibana-esql @@ -667,7 +668,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 6d23aebcd6576..934c88fed4a4b 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -74,7 +74,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 a00927f1e265c..82430dc685d91 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 809463c2ac1c1..59ebf29310dab 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:packages/kbn-index-adapter", "@kbn/index-lifecycle-management-common-shared": "link:x-pack/packages/index-lifecycle-management/index_lifecycle_management_common_shared", "@kbn/index-lifecycle-management-plugin": "link:x-pack/plugins/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 010138e04c5aa..c8202d7d26535 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1042,8 +1042,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 055cfa1ccd37b..c53a4d2a1b7d8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5900,7 +5900,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 d1c5f86ddcd77d9a2c4012080e83bcaa56359866 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 12:59:06 +0100 Subject: [PATCH 034/129] Relocating module `@kbn/item-buffer` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/private}/kbn-item-buffer/README.md | 0 .../platform/packages/private}/kbn-item-buffer/index.ts | 0 .../platform/packages/private}/kbn-item-buffer/jest.config.js | 4 ++-- .../platform/packages/private}/kbn-item-buffer/kibana.jsonc | 0 .../platform/packages/private}/kbn-item-buffer/package.json | 0 .../kbn-item-buffer/src/__test__/run_item_buffer_tests.ts | 0 .../platform/packages/private}/kbn-item-buffer/src/index.ts | 0 .../packages/private}/kbn-item-buffer/src/item_buffer.test.ts | 0 .../packages/private}/kbn-item-buffer/src/item_buffer.ts | 0 .../private}/kbn-item-buffer/src/timed_item_buffer.test.ts | 0 .../private}/kbn-item-buffer/src/timed_item_buffer.ts | 0 .../platform/packages/private}/kbn-item-buffer/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 16 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-item-buffer/README.md (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/jest.config.js (84%) rename {packages => src/platform/packages/private}/kbn-item-buffer/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/package.json (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/src/__test__/run_item_buffer_tests.ts (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/src/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/src/item_buffer.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/src/item_buffer.ts (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/src/timed_item_buffer.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/src/timed_item_buffer.ts (100%) rename {packages => src/platform/packages/private}/kbn-item-buffer/tsconfig.json (80%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 29dd27fda6755..5ac0ec51126db 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -367,7 +367,6 @@ packages/kbn-interpreter @elastic/kibana-visualizations packages/kbn-investigation-shared @elastic/obs-ux-management-team packages/kbn-io-ts-utils @elastic/obs-knowledge-team packages/kbn-ipynb @elastic/search-kibana -packages/kbn-item-buffer @elastic/appex-sharedux packages/kbn-jest-serializers @elastic/kibana-operations packages/kbn-journeys @elastic/kibana-operations @elastic/appex-qa packages/kbn-json-ast @elastic/kibana-operations @@ -601,6 +600,7 @@ src/platform/packages/private/content-management/favorites/favorites_common @ela src/platform/packages/private/content-management/tabbed_table_list_view @elastic/appex-sharedux src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-generate-csv @elastic/appex-sharedux +src/platform/packages/private/kbn-item-buffer @elastic/appex-sharedux src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/package.json b/package.json index 59ebf29310dab..23a4e00607b37 100644 --- a/package.json +++ b/package.json @@ -595,7 +595,7 @@ "@kbn/investigation-shared": "link:packages/kbn-investigation-shared", "@kbn/io-ts-utils": "link:packages/kbn-io-ts-utils", "@kbn/ipynb": "link:packages/kbn-ipynb", - "@kbn/item-buffer": "link:packages/kbn-item-buffer", + "@kbn/item-buffer": "link:src/platform/packages/private/kbn-item-buffer", "@kbn/json-schemas": "link:x-pack/packages/ml/json_schemas", "@kbn/kbn-health-gateway-status-plugin": "link:test/health_gateway/plugins/status", "@kbn/kbn-sample-panel-action-plugin": "link:test/plugin_functional/plugins/kbn_sample_panel_action", diff --git a/packages/kbn-item-buffer/README.md b/src/platform/packages/private/kbn-item-buffer/README.md similarity index 100% rename from packages/kbn-item-buffer/README.md rename to src/platform/packages/private/kbn-item-buffer/README.md diff --git a/packages/kbn-item-buffer/index.ts b/src/platform/packages/private/kbn-item-buffer/index.ts similarity index 100% rename from packages/kbn-item-buffer/index.ts rename to src/platform/packages/private/kbn-item-buffer/index.ts diff --git a/packages/kbn-item-buffer/jest.config.js b/src/platform/packages/private/kbn-item-buffer/jest.config.js similarity index 84% rename from packages/kbn-item-buffer/jest.config.js rename to src/platform/packages/private/kbn-item-buffer/jest.config.js index f553426f800bb..2403741c95ba1 100644 --- a/packages/kbn-item-buffer/jest.config.js +++ b/src/platform/packages/private/kbn-item-buffer/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-item-buffer'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-item-buffer'], }; diff --git a/packages/kbn-item-buffer/kibana.jsonc b/src/platform/packages/private/kbn-item-buffer/kibana.jsonc similarity index 100% rename from packages/kbn-item-buffer/kibana.jsonc rename to src/platform/packages/private/kbn-item-buffer/kibana.jsonc diff --git a/packages/kbn-item-buffer/package.json b/src/platform/packages/private/kbn-item-buffer/package.json similarity index 100% rename from packages/kbn-item-buffer/package.json rename to src/platform/packages/private/kbn-item-buffer/package.json diff --git a/packages/kbn-item-buffer/src/__test__/run_item_buffer_tests.ts b/src/platform/packages/private/kbn-item-buffer/src/__test__/run_item_buffer_tests.ts similarity index 100% rename from packages/kbn-item-buffer/src/__test__/run_item_buffer_tests.ts rename to src/platform/packages/private/kbn-item-buffer/src/__test__/run_item_buffer_tests.ts diff --git a/packages/kbn-item-buffer/src/index.ts b/src/platform/packages/private/kbn-item-buffer/src/index.ts similarity index 100% rename from packages/kbn-item-buffer/src/index.ts rename to src/platform/packages/private/kbn-item-buffer/src/index.ts diff --git a/packages/kbn-item-buffer/src/item_buffer.test.ts b/src/platform/packages/private/kbn-item-buffer/src/item_buffer.test.ts similarity index 100% rename from packages/kbn-item-buffer/src/item_buffer.test.ts rename to src/platform/packages/private/kbn-item-buffer/src/item_buffer.test.ts diff --git a/packages/kbn-item-buffer/src/item_buffer.ts b/src/platform/packages/private/kbn-item-buffer/src/item_buffer.ts similarity index 100% rename from packages/kbn-item-buffer/src/item_buffer.ts rename to src/platform/packages/private/kbn-item-buffer/src/item_buffer.ts diff --git a/packages/kbn-item-buffer/src/timed_item_buffer.test.ts b/src/platform/packages/private/kbn-item-buffer/src/timed_item_buffer.test.ts similarity index 100% rename from packages/kbn-item-buffer/src/timed_item_buffer.test.ts rename to src/platform/packages/private/kbn-item-buffer/src/timed_item_buffer.test.ts diff --git a/packages/kbn-item-buffer/src/timed_item_buffer.ts b/src/platform/packages/private/kbn-item-buffer/src/timed_item_buffer.ts similarity index 100% rename from packages/kbn-item-buffer/src/timed_item_buffer.ts rename to src/platform/packages/private/kbn-item-buffer/src/timed_item_buffer.ts diff --git a/packages/kbn-item-buffer/tsconfig.json b/src/platform/packages/private/kbn-item-buffer/tsconfig.json similarity index 80% rename from packages/kbn-item-buffer/tsconfig.json rename to src/platform/packages/private/kbn-item-buffer/tsconfig.json index 2f9ddddbeea23..7aba1b1a9378a 100644 --- a/packages/kbn-item-buffer/tsconfig.json +++ b/src/platform/packages/private/kbn-item-buffer/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c8202d7d26535..b866d111ae6e6 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1098,8 +1098,8 @@ "@kbn/io-ts-utils/*": ["packages/kbn-io-ts-utils/*"], "@kbn/ipynb": ["packages/kbn-ipynb"], "@kbn/ipynb/*": ["packages/kbn-ipynb/*"], - "@kbn/item-buffer": ["packages/kbn-item-buffer"], - "@kbn/item-buffer/*": ["packages/kbn-item-buffer/*"], + "@kbn/item-buffer": ["src/platform/packages/private/kbn-item-buffer"], + "@kbn/item-buffer/*": ["src/platform/packages/private/kbn-item-buffer/*"], "@kbn/jest-serializers": ["packages/kbn-jest-serializers"], "@kbn/jest-serializers/*": ["packages/kbn-jest-serializers/*"], "@kbn/journeys": ["packages/kbn-journeys"], diff --git a/yarn.lock b/yarn.lock index c53a4d2a1b7d8..b30cd194ed5b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6012,7 +6012,7 @@ version "0.0.0" uid "" -"@kbn/item-buffer@link:packages/kbn-item-buffer": +"@kbn/item-buffer@link:src/platform/packages/private/kbn-item-buffer": version "0.0.0" uid "" From fe9ebd16c2ca48fa2b5dcc6feecc3039636d398a Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:00:32 +0100 Subject: [PATCH 035/129] 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 5ac0ec51126db..a0686ff990071 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -626,6 +626,7 @@ src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux 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/kibana_overview @elastic/appex-sharedux src/platform/plugins/shared/bfetch @elastic/appex-sharedux src/platform/plugins/shared/content_management @elastic/appex-sharedux src/platform/plugins/shared/esql @elastic/kibana-esql @@ -671,7 +672,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 934c88fed4a4b..66cce3ff195fd 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -82,7 +82,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": "packages/kbn-securitysolution-list-utils/src", "exceptionList-components": "packages/kbn-securitysolution-exception-list-components/src", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 82430dc685d91..fa1da64081de7 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 23a4e00607b37..57420d1e45940 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 b866d111ae6e6..07607b2374535 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1122,8 +1122,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 b30cd194ed5b8..1100f073a5393 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6060,7 +6060,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 902ede7d05101038bb68849d13b5504f7ea1251e Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:02:03 +0100 Subject: [PATCH 036/129] Relocating module `@kbn/kibana-react-plugin` --- .../scripts/pipelines/pull_request/pipeline.ts | 2 +- .eslintrc.js | 2 +- .github/CODEOWNERS | 2 +- .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 ++-- x-pack/plugins/runtime_fields/README.md | 2 +- .../public/mocks/mock_kibana_ui_settings_service.ts | 2 +- yarn.lock | 2 +- 116 files changed, 27 insertions(+), 27 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 e4a0617579cf5..c10268def4e49 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -315,7 +315,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 b0a00140cfbb9..c3fe025f367cf 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 a0686ff990071..de2d1db4d1ad4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -634,6 +634,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/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -672,7 +673,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 diff --git a/.i18nrc.json b/.i18nrc.json index 66cce3ff195fd..99001fc7cfb76 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -79,9 +79,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": "packages/kbn-securitysolution-list-utils/src", diff --git a/docs/developer/best-practices/index.asciidoc b/docs/developer/best-practices/index.asciidoc index 777e7a35efe81..f6d3e9f550977 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 fa1da64081de7..d53acf85f77d4 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 57420d1e45940..f85307a1e96e0 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/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 a5bb105424351..8f80d7c7cdf8c 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 677479b412cc4..3d029fe6988d0 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -48,7 +48,7 @@ export const storybookAliases = { infra: 'x-pack/plugins/observability_solution/infra/.storybook', inventory: 'x-pack/plugins/observability_solution/inventory/.storybook', investigate: 'x-pack/plugins/observability_solution/investigate_app/.storybook', - kibana_react: 'src/plugins/kibana_react/.storybook', + kibana_react: 'src/platform/plugins/shared/kibana_react/.storybook', lists: 'x-pack/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 07607b2374535..f3ed23e568380 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1124,8 +1124,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/plugins/runtime_fields/README.md b/x-pack/plugins/runtime_fields/README.md index 9c0e0e03f2fe5..36776e927574c 100644 --- a/x-pack/plugins/runtime_fields/README.md +++ b/x-pack/plugins/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/plugins/threat_intelligence/public/mocks/mock_kibana_ui_settings_service.ts b/x-pack/plugins/threat_intelligence/public/mocks/mock_kibana_ui_settings_service.ts index be6d3483ae0c0..e2c1785bd2aec 100644 --- a/x-pack/plugins/threat_intelligence/public/mocks/mock_kibana_ui_settings_service.ts +++ b/x-pack/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 1100f073a5393..5578aec720d29 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6064,7 +6064,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 a4cdf68b1d0157c99df425394314e00b36a34ff8 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:03:32 +0100 Subject: [PATCH 037/129] 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 c10268def4e49..384610f98feb3 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -316,7 +316,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 c3fe025f367cf..42fcd54b40236 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 de2d1db4d1ad4..160ac180562ed 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -635,6 +635,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/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -674,7 +675,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/management @elastic/kibana-management src/plugins/maps_ems @elastic/kibana-presentation diff --git a/.i18nrc.json b/.i18nrc.json index 99001fc7cfb76..fed9ad00ef71d 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -80,7 +80,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 f6d3e9f550977..b9e53b6bac6e3 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 d53acf85f77d4..643482dfd9326 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 f85307a1e96e0..30a66ab6e3a50 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/plugins/kubernetes_security", "@kbn/langchain": "link:x-pack/packages/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 f3ed23e568380..6efd2bd47be15 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1128,8 +1128,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/plugins/kubernetes_security"], "@kbn/kubernetes-security-plugin/*": ["x-pack/plugins/kubernetes_security/*"], "@kbn/langchain": ["x-pack/packages/kbn-langchain"], diff --git a/yarn.lock b/yarn.lock index 5578aec720d29..e1f575d64a393 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6072,7 +6072,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 37d62c6d0f1f0c9430bd5f71cddccfdedc721247 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:04:56 +0100 Subject: [PATCH 038/129] Relocating module `@kbn/management-settings-ids` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/kbn-management/settings/setting_ids/README.mdx | 0 .../shared}/kbn-management/settings/setting_ids/index.ts | 0 .../shared}/kbn-management/settings/setting_ids/kibana.jsonc | 0 .../shared}/kbn-management/settings/setting_ids/package.json | 0 .../shared}/kbn-management/settings/setting_ids/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/kbn-management/settings/setting_ids/README.mdx (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/setting_ids/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/setting_ids/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/setting_ids/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/setting_ids/tsconfig.json (79%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 160ac180562ed..0b4f517b0c071 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -388,7 +388,6 @@ packages/kbn-management/settings/components/field_row @elastic/kibana-management packages/kbn-management/settings/components/form @elastic/kibana-management packages/kbn-management/settings/field_definition @elastic/kibana-management packages/kbn-management/settings/section_registry @elastic/appex-sharedux @elastic/kibana-management -packages/kbn-management/settings/setting_ids @elastic/appex-sharedux @elastic/kibana-management packages/kbn-management/settings/types @elastic/kibana-management packages/kbn-management/settings/utilities @elastic/kibana-management packages/kbn-management/storybook/config @elastic/kibana-management @@ -621,6 +620,7 @@ src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql src/platform/packages/shared/kbn-guided-onboarding @elastic/appex-sharedux +src/platform/packages/shared/kbn-management/settings/setting_ids @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index 30a66ab6e3a50..177aedd5e063d 100644 --- a/package.json +++ b/package.json @@ -638,7 +638,7 @@ "@kbn/management-settings-components-field-row": "link:packages/kbn-management/settings/components/field_row", "@kbn/management-settings-components-form": "link:packages/kbn-management/settings/components/form", "@kbn/management-settings-field-definition": "link:packages/kbn-management/settings/field_definition", - "@kbn/management-settings-ids": "link:packages/kbn-management/settings/setting_ids", + "@kbn/management-settings-ids": "link:src/platform/packages/shared/kbn-management/settings/setting_ids", "@kbn/management-settings-section-registry": "link:packages/kbn-management/settings/section_registry", "@kbn/management-settings-types": "link:packages/kbn-management/settings/types", "@kbn/management-settings-utilities": "link:packages/kbn-management/settings/utilities", diff --git a/packages/kbn-management/settings/setting_ids/README.mdx b/src/platform/packages/shared/kbn-management/settings/setting_ids/README.mdx similarity index 100% rename from packages/kbn-management/settings/setting_ids/README.mdx rename to src/platform/packages/shared/kbn-management/settings/setting_ids/README.mdx diff --git a/packages/kbn-management/settings/setting_ids/index.ts b/src/platform/packages/shared/kbn-management/settings/setting_ids/index.ts similarity index 100% rename from packages/kbn-management/settings/setting_ids/index.ts rename to src/platform/packages/shared/kbn-management/settings/setting_ids/index.ts diff --git a/packages/kbn-management/settings/setting_ids/kibana.jsonc b/src/platform/packages/shared/kbn-management/settings/setting_ids/kibana.jsonc similarity index 100% rename from packages/kbn-management/settings/setting_ids/kibana.jsonc rename to src/platform/packages/shared/kbn-management/settings/setting_ids/kibana.jsonc diff --git a/packages/kbn-management/settings/setting_ids/package.json b/src/platform/packages/shared/kbn-management/settings/setting_ids/package.json similarity index 100% rename from packages/kbn-management/settings/setting_ids/package.json rename to src/platform/packages/shared/kbn-management/settings/setting_ids/package.json diff --git a/packages/kbn-management/settings/setting_ids/tsconfig.json b/src/platform/packages/shared/kbn-management/settings/setting_ids/tsconfig.json similarity index 79% rename from packages/kbn-management/settings/setting_ids/tsconfig.json rename to src/platform/packages/shared/kbn-management/settings/setting_ids/tsconfig.json index 53e5c76cbab87..8636a00aae12f 100644 --- a/packages/kbn-management/settings/setting_ids/tsconfig.json +++ b/src/platform/packages/shared/kbn-management/settings/setting_ids/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 6efd2bd47be15..50c541ee01e2b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1200,8 +1200,8 @@ "@kbn/management-settings-components-form/*": ["packages/kbn-management/settings/components/form/*"], "@kbn/management-settings-field-definition": ["packages/kbn-management/settings/field_definition"], "@kbn/management-settings-field-definition/*": ["packages/kbn-management/settings/field_definition/*"], - "@kbn/management-settings-ids": ["packages/kbn-management/settings/setting_ids"], - "@kbn/management-settings-ids/*": ["packages/kbn-management/settings/setting_ids/*"], + "@kbn/management-settings-ids": ["src/platform/packages/shared/kbn-management/settings/setting_ids"], + "@kbn/management-settings-ids/*": ["src/platform/packages/shared/kbn-management/settings/setting_ids/*"], "@kbn/management-settings-section-registry": ["packages/kbn-management/settings/section_registry"], "@kbn/management-settings-section-registry/*": ["packages/kbn-management/settings/section_registry/*"], "@kbn/management-settings-types": ["packages/kbn-management/settings/types"], diff --git a/yarn.lock b/yarn.lock index e1f575d64a393..7b53d88f76ab1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6216,7 +6216,7 @@ version "0.0.0" uid "" -"@kbn/management-settings-ids@link:packages/kbn-management/settings/setting_ids": +"@kbn/management-settings-ids@link:src/platform/packages/shared/kbn-management/settings/setting_ids": version "0.0.0" uid "" From 0effdc6100ac5b1ad76f15cbeaad0300127a560d Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:06:26 +0100 Subject: [PATCH 039/129] Relocating module `@kbn/management-settings-section-registry` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../kbn-management/settings/section_registry/README.mdx | 0 .../shared}/kbn-management/settings/section_registry/index.ts | 0 .../kbn-management/settings/section_registry/kibana.jsonc | 0 .../kbn-management/settings/section_registry/package.json | 0 .../settings/section_registry/section_registry.test.tsx | 0 .../settings/section_registry/section_registry.ts | 0 .../kbn-management/settings/section_registry/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/kbn-management/settings/section_registry/README.mdx (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/section_registry/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/section_registry/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/section_registry/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/section_registry/section_registry.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/section_registry/section_registry.ts (100%) rename {packages => src/platform/packages/shared}/kbn-management/settings/section_registry/tsconfig.json (84%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0b4f517b0c071..2292611943f38 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -387,7 +387,6 @@ packages/kbn-management/settings/components/field_input @elastic/kibana-manageme packages/kbn-management/settings/components/field_row @elastic/kibana-management packages/kbn-management/settings/components/form @elastic/kibana-management packages/kbn-management/settings/field_definition @elastic/kibana-management -packages/kbn-management/settings/section_registry @elastic/appex-sharedux @elastic/kibana-management packages/kbn-management/settings/types @elastic/kibana-management packages/kbn-management/settings/utilities @elastic/kibana-management packages/kbn-management/storybook/config @elastic/kibana-management @@ -620,6 +619,7 @@ src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql src/platform/packages/shared/kbn-guided-onboarding @elastic/appex-sharedux +src/platform/packages/shared/kbn-management/settings/section_registry @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/setting_ids @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux diff --git a/package.json b/package.json index 177aedd5e063d..2fa4dd144fd0b 100644 --- a/package.json +++ b/package.json @@ -639,7 +639,7 @@ "@kbn/management-settings-components-form": "link:packages/kbn-management/settings/components/form", "@kbn/management-settings-field-definition": "link:packages/kbn-management/settings/field_definition", "@kbn/management-settings-ids": "link:src/platform/packages/shared/kbn-management/settings/setting_ids", - "@kbn/management-settings-section-registry": "link:packages/kbn-management/settings/section_registry", + "@kbn/management-settings-section-registry": "link:src/platform/packages/shared/kbn-management/settings/section_registry", "@kbn/management-settings-types": "link:packages/kbn-management/settings/types", "@kbn/management-settings-utilities": "link:packages/kbn-management/settings/utilities", "@kbn/management-test-plugin": "link:test/plugin_functional/plugins/management_test_plugin", diff --git a/packages/kbn-management/settings/section_registry/README.mdx b/src/platform/packages/shared/kbn-management/settings/section_registry/README.mdx similarity index 100% rename from packages/kbn-management/settings/section_registry/README.mdx rename to src/platform/packages/shared/kbn-management/settings/section_registry/README.mdx diff --git a/packages/kbn-management/settings/section_registry/index.ts b/src/platform/packages/shared/kbn-management/settings/section_registry/index.ts similarity index 100% rename from packages/kbn-management/settings/section_registry/index.ts rename to src/platform/packages/shared/kbn-management/settings/section_registry/index.ts diff --git a/packages/kbn-management/settings/section_registry/kibana.jsonc b/src/platform/packages/shared/kbn-management/settings/section_registry/kibana.jsonc similarity index 100% rename from packages/kbn-management/settings/section_registry/kibana.jsonc rename to src/platform/packages/shared/kbn-management/settings/section_registry/kibana.jsonc diff --git a/packages/kbn-management/settings/section_registry/package.json b/src/platform/packages/shared/kbn-management/settings/section_registry/package.json similarity index 100% rename from packages/kbn-management/settings/section_registry/package.json rename to src/platform/packages/shared/kbn-management/settings/section_registry/package.json diff --git a/packages/kbn-management/settings/section_registry/section_registry.test.tsx b/src/platform/packages/shared/kbn-management/settings/section_registry/section_registry.test.tsx similarity index 100% rename from packages/kbn-management/settings/section_registry/section_registry.test.tsx rename to src/platform/packages/shared/kbn-management/settings/section_registry/section_registry.test.tsx diff --git a/packages/kbn-management/settings/section_registry/section_registry.ts b/src/platform/packages/shared/kbn-management/settings/section_registry/section_registry.ts similarity index 100% rename from packages/kbn-management/settings/section_registry/section_registry.ts rename to src/platform/packages/shared/kbn-management/settings/section_registry/section_registry.ts diff --git a/packages/kbn-management/settings/section_registry/tsconfig.json b/src/platform/packages/shared/kbn-management/settings/section_registry/tsconfig.json similarity index 84% rename from packages/kbn-management/settings/section_registry/tsconfig.json rename to src/platform/packages/shared/kbn-management/settings/section_registry/tsconfig.json index 2cf1893be5d55..a33d8c8631b73 100644 --- a/packages/kbn-management/settings/section_registry/tsconfig.json +++ b/src/platform/packages/shared/kbn-management/settings/section_registry/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 50c541ee01e2b..44cf3059368c2 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1202,8 +1202,8 @@ "@kbn/management-settings-field-definition/*": ["packages/kbn-management/settings/field_definition/*"], "@kbn/management-settings-ids": ["src/platform/packages/shared/kbn-management/settings/setting_ids"], "@kbn/management-settings-ids/*": ["src/platform/packages/shared/kbn-management/settings/setting_ids/*"], - "@kbn/management-settings-section-registry": ["packages/kbn-management/settings/section_registry"], - "@kbn/management-settings-section-registry/*": ["packages/kbn-management/settings/section_registry/*"], + "@kbn/management-settings-section-registry": ["src/platform/packages/shared/kbn-management/settings/section_registry"], + "@kbn/management-settings-section-registry/*": ["src/platform/packages/shared/kbn-management/settings/section_registry/*"], "@kbn/management-settings-types": ["packages/kbn-management/settings/types"], "@kbn/management-settings-types/*": ["packages/kbn-management/settings/types/*"], "@kbn/management-settings-utilities": ["packages/kbn-management/settings/utilities"], diff --git a/yarn.lock b/yarn.lock index 7b53d88f76ab1..0b67eb1befe54 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6220,7 +6220,7 @@ version "0.0.0" uid "" -"@kbn/management-settings-section-registry@link:packages/kbn-management/settings/section_registry": +"@kbn/management-settings-section-registry@link:src/platform/packages/shared/kbn-management/settings/section_registry": version "0.0.0" uid "" From e490c02d50905eed33637f06aa72a238ce65d61b Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:07:56 +0100 Subject: [PATCH 040/129] Relocating module `@kbn/monaco` --- .eslintignore | 2 +- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- kbn_pm/src/lib/bazel.mjs | 2 +- package.json | 2 +- packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts | 2 +- packages/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- src/dev/build/tasks/build_packages_task.ts | 2 +- src/platform/packages/private/kbn-esql-editor/README.md | 2 +- .../platform/packages/shared}/kbn-monaco/BUILD.bazel | 0 .../platform/packages/shared}/kbn-monaco/README.md | 0 .../platform/packages/shared}/kbn-monaco/index.ts | 0 .../platform/packages/shared}/kbn-monaco/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-monaco/kibana.jsonc | 0 .../platform/packages/shared}/kbn-monaco/package.json | 0 .../shared}/kbn-monaco/scripts/antlr4_tools/.gitignore | 0 .../shared}/kbn-monaco/scripts/antlr4_tools/README.md | 0 .../packages/shared}/kbn-monaco/scripts/antlr4_tools/brewfile | 0 .../platform/packages/shared}/kbn-monaco/scripts/constants.js | 0 .../shared}/kbn-monaco/scripts/esql_update_ast_script.js | 0 .../shared}/kbn-monaco/scripts/fix_generated_antlr.js | 0 .../shared}/kbn-monaco/scripts/generate_autocomplete.js | 0 .../packages/shared}/kbn-monaco/scripts/utils/clone_es.js | 0 .../scripts/utils/create_autocomplete_definitions.js | 0 .../scripts/utils/create_autocomplete_definitions.test.js | 0 .../kbn-monaco/scripts/utils/create_autocomplete_exports.js | 0 .../packages/shared}/kbn-monaco/scripts/utils/index.js | 0 .../platform/packages/shared}/kbn-monaco/server.ts | 0 .../packages/shared}/kbn-monaco/src/__jest__/jest.mocks.ts | 0 .../packages/shared}/kbn-monaco/src/__jest__/types.ts | 0 .../shared}/kbn-monaco/src/ace_migration/setup_worker.ts | 0 .../packages/shared}/kbn-monaco/src/ace_migration/types.ts | 0 .../shared}/kbn-monaco/src/ace_migration/worker_proxy.ts | 0 .../packages/shared}/kbn-monaco/src/code_editor/constants.ts | 0 .../packages/shared}/kbn-monaco/src/code_editor/index.ts | 0 .../packages/shared}/kbn-monaco/src/code_editor/theme.ts | 0 .../shared}/kbn-monaco/src/common/diagnostics_adapter.test.ts | 0 .../shared}/kbn-monaco/src/common/diagnostics_adapter.ts | 0 .../packages/shared}/kbn-monaco/src/common/error_listener.ts | 0 .../packages/shared}/kbn-monaco/src/common/lexer_rules.ts | 0 .../platform/packages/shared}/kbn-monaco/src/common/theme.ts | 0 .../packages/shared}/kbn-monaco/src/common/worker_proxy.ts | 0 .../shared}/kbn-monaco/src/console/console_errors_provider.ts | 0 .../src/console/console_parsed_requests_provider.ts | 0 .../shared}/kbn-monaco/src/console/console_worker_proxy.ts | 0 .../packages/shared}/kbn-monaco/src/console/constants.ts | 0 .../console/folding_range_provider/folding_range_provider.ts | 0 .../folding_range_provider/folding_range_utils.test.ts | 0 .../src/console/folding_range_provider/folding_range_utils.ts | 0 .../kbn-monaco/src/console/folding_range_provider/index.ts | 0 .../platform/packages/shared}/kbn-monaco/src/console/index.ts | 0 .../packages/shared}/kbn-monaco/src/console/language.ts | 0 .../kbn-monaco/src/console/lexer_rules/console_editor.ts | 0 .../kbn-monaco/src/console/lexer_rules/console_output.ts | 0 .../shared}/kbn-monaco/src/console/lexer_rules/index.ts | 0 .../kbn-monaco/src/console/lexer_rules/nested_painless.ts | 0 .../shared}/kbn-monaco/src/console/lexer_rules/nested_sql.ts | 0 .../shared}/kbn-monaco/src/console/lexer_rules/shared.ts | 0 .../packages/shared}/kbn-monaco/src/console/output_parser.js | 0 .../shared}/kbn-monaco/src/console/output_parser.test.ts | 0 .../packages/shared}/kbn-monaco/src/console/parser.js | 0 .../packages/shared}/kbn-monaco/src/console/parser.test.ts | 0 .../platform/packages/shared}/kbn-monaco/src/console/theme.ts | 0 .../platform/packages/shared}/kbn-monaco/src/console/types.ts | 0 .../shared}/kbn-monaco/src/console/worker/console.worker.ts | 0 .../shared}/kbn-monaco/src/console/worker/console_worker.ts | 0 .../packages/shared}/kbn-monaco/src/console/worker/index.ts | 0 .../platform/packages/shared}/kbn-monaco/src/esql/index.ts | 0 .../packages/shared}/kbn-monaco/src/esql/language.test.ts | 0 .../platform/packages/shared}/kbn-monaco/src/esql/language.ts | 0 .../packages/shared}/kbn-monaco/src/esql/lib/constants.ts | 0 .../shared}/kbn-monaco/src/esql/lib/converters/actions.ts | 0 .../shared}/kbn-monaco/src/esql/lib/converters/positions.ts | 0 .../shared}/kbn-monaco/src/esql/lib/converters/suggestions.ts | 0 .../shared}/kbn-monaco/src/esql/lib/esql_ast_provider.ts | 0 .../shared}/kbn-monaco/src/esql/lib/esql_line_tokens.ts | 0 .../packages/shared}/kbn-monaco/src/esql/lib/esql_state.ts | 0 .../shared}/kbn-monaco/src/esql/lib/esql_theme.test.ts | 2 +- .../packages/shared}/kbn-monaco/src/esql/lib/esql_theme.ts | 0 .../packages/shared}/kbn-monaco/src/esql/lib/esql_token.ts | 0 .../shared}/kbn-monaco/src/esql/lib/esql_token_helpers.ts | 0 .../kbn-monaco/src/esql/lib/esql_tokens_provider.test.ts | 0 .../shared}/kbn-monaco/src/esql/lib/esql_tokens_provider.ts | 0 .../shared}/kbn-monaco/src/esql/lib/hover/hover.test.ts | 0 .../packages/shared}/kbn-monaco/src/esql/lib/hover/hover.ts | 0 .../packages/shared}/kbn-monaco/src/esql/lib/index.ts | 0 .../packages/shared}/kbn-monaco/src/esql/lib/shared/utils.ts | 0 .../shared}/kbn-monaco/src/esql/lib/signature/index.ts | 0 .../packages/shared}/kbn-monaco/src/esql/lib/types.ts | 0 .../shared}/kbn-monaco/src/esql/worker/esql.worker.ts | 0 .../shared}/kbn-monaco/src/esql/worker/esql_worker.ts | 0 .../platform/packages/shared}/kbn-monaco/src/helpers.ts | 0 .../packages/shared}/kbn-monaco/src/monaco_imports.ts | 0 .../packages/shared}/kbn-monaco/src/painless/README.md | 0 .../shared}/kbn-monaco/src/painless/antlr/painless_lexer.g4 | 0 .../kbn-monaco/src/painless/antlr/painless_lexer.interp | 0 .../kbn-monaco/src/painless/antlr/painless_lexer.tokens | 0 .../shared}/kbn-monaco/src/painless/antlr/painless_lexer.ts | 0 .../shared}/kbn-monaco/src/painless/antlr/painless_parser.g4 | 0 .../kbn-monaco/src/painless/antlr/painless_parser.interp | 0 .../kbn-monaco/src/painless/antlr/painless_parser.tokens | 0 .../shared}/kbn-monaco/src/painless/antlr/painless_parser.ts | 0 .../kbn-monaco/src/painless/antlr/painless_parser_listener.ts | 0 .../boolean_script_field_script_field.json | 0 .../src/painless/autocomplete_definitions/common.json | 0 .../painless/autocomplete_definitions/date_script_field.json | 0 .../double_script_field_script_field.json | 0 .../src/painless/autocomplete_definitions/filter.json | 0 .../kbn-monaco/src/painless/autocomplete_definitions/index.ts | 0 .../ip_script_field_script_field.json | 0 .../long_script_field_script_field.json | 0 .../autocomplete_definitions/processor_conditional.json | 0 .../src/painless/autocomplete_definitions/score.json | 0 .../string_script_field_script_field.json | 0 .../shared}/kbn-monaco/src/painless/completion_adapter.ts | 0 .../packages/shared}/kbn-monaco/src/painless/constants.ts | 0 .../packages/shared}/kbn-monaco/src/painless/index.ts | 0 .../packages/shared}/kbn-monaco/src/painless/language.ts | 0 .../shared}/kbn-monaco/src/painless/lexer_rules/index.ts | 0 .../shared}/kbn-monaco/src/painless/lexer_rules/painless.ts | 0 .../shared}/kbn-monaco/src/painless/lib/editor_state.ts | 0 .../packages/shared}/kbn-monaco/src/painless/lib/index.ts | 0 .../packages/shared}/kbn-monaco/src/painless/types.ts | 0 .../packages/shared}/kbn-monaco/src/painless/worker/index.ts | 0 .../kbn-monaco/src/painless/worker/lib/autocomplete.test.ts | 0 .../kbn-monaco/src/painless/worker/lib/autocomplete.ts | 0 .../src/painless/worker/lib/autocomplete_utils.test.ts | 0 .../kbn-monaco/src/painless/worker/lib/autocomplete_utils.ts | 0 .../shared}/kbn-monaco/src/painless/worker/lib/index.ts | 0 .../shared}/kbn-monaco/src/painless/worker/lib/lexer.ts | 0 .../shared}/kbn-monaco/src/painless/worker/lib/parser.ts | 0 .../shared}/kbn-monaco/src/painless/worker/painless.worker.ts | 0 .../shared}/kbn-monaco/src/painless/worker/painless_worker.ts | 0 .../packages/shared}/kbn-monaco/src/register_globals.ts | 0 .../platform/packages/shared}/kbn-monaco/src/sql/constants.ts | 0 .../platform/packages/shared}/kbn-monaco/src/sql/index.ts | 0 .../packages/shared}/kbn-monaco/src/sql/lexer_rules/index.ts | 0 .../packages/shared}/kbn-monaco/src/sql/lexer_rules/sql.ts | 0 .../platform/packages/shared}/kbn-monaco/src/types.ts | 0 .../platform/packages/shared}/kbn-monaco/src/typings.d.ts | 0 .../platform/packages/shared}/kbn-monaco/src/xjson/README.md | 0 .../packages/shared}/kbn-monaco/src/xjson/constants.ts | 0 .../packages/shared}/kbn-monaco/src/xjson/grammar.test.ts | 0 .../platform/packages/shared}/kbn-monaco/src/xjson/grammar.ts | 0 .../platform/packages/shared}/kbn-monaco/src/xjson/index.ts | 0 .../packages/shared}/kbn-monaco/src/xjson/language.ts | 0 .../shared}/kbn-monaco/src/xjson/lexer_rules/index.ts | 0 .../shared}/kbn-monaco/src/xjson/lexer_rules/xjson.ts | 0 .../packages/shared}/kbn-monaco/src/xjson/worker/index.ts | 0 .../shared}/kbn-monaco/src/xjson/worker/xjson.worker.ts | 0 .../shared}/kbn-monaco/src/xjson/worker/xjson_worker.ts | 0 .../packages/shared}/kbn-monaco/src/yaml/constants.ts | 0 .../platform/packages/shared}/kbn-monaco/src/yaml/index.ts | 0 .../shared}/kbn-monaco/src/yaml/worker/yaml.worker.ts | 0 .../platform/packages/shared}/kbn-monaco/tsconfig.json | 2 +- .../platform/packages/shared}/kbn-monaco/webpack.config.js | 0 src/plugins/console/README.md | 2 +- test/functional/services/monaco_editor.ts | 4 ++-- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 160 files changed, 19 insertions(+), 19 deletions(-) rename {packages => src/platform/packages/shared}/kbn-monaco/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-monaco/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/antlr4_tools/.gitignore (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/antlr4_tools/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/antlr4_tools/brewfile (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/constants.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/esql_update_ast_script.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/fix_generated_antlr.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/generate_autocomplete.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/utils/clone_es.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/utils/create_autocomplete_definitions.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/utils/create_autocomplete_definitions.test.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/utils/create_autocomplete_exports.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/scripts/utils/index.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/server.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/__jest__/jest.mocks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/__jest__/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/ace_migration/setup_worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/ace_migration/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/ace_migration/worker_proxy.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/code_editor/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/code_editor/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/code_editor/theme.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/common/diagnostics_adapter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/common/diagnostics_adapter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/common/error_listener.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/common/lexer_rules.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/common/theme.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/common/worker_proxy.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/console_errors_provider.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/console_parsed_requests_provider.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/console_worker_proxy.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/folding_range_provider/folding_range_provider.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/folding_range_provider/folding_range_utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/folding_range_provider/folding_range_utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/folding_range_provider/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/language.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/lexer_rules/console_editor.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/lexer_rules/console_output.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/lexer_rules/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/lexer_rules/nested_painless.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/lexer_rules/nested_sql.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/lexer_rules/shared.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/output_parser.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/output_parser.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/parser.js (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/parser.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/theme.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/worker/console.worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/worker/console_worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/console/worker/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/language.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/language.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/converters/actions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/converters/positions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/converters/suggestions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/esql_ast_provider.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/esql_line_tokens.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/esql_state.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/esql_theme.test.ts (98%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/esql_theme.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/esql_token.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/esql_token_helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/esql_tokens_provider.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/esql_tokens_provider.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/hover/hover.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/hover/hover.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/shared/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/signature/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/lib/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/worker/esql.worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/esql/worker/esql_worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/monaco_imports.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/antlr/painless_lexer.g4 (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/antlr/painless_lexer.interp (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/antlr/painless_lexer.tokens (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/antlr/painless_lexer.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/antlr/painless_parser.g4 (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/antlr/painless_parser.interp (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/antlr/painless_parser.tokens (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/antlr/painless_parser.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/antlr/painless_parser_listener.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/boolean_script_field_script_field.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/common.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/date_script_field.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/double_script_field_script_field.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/filter.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/ip_script_field_script_field.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/long_script_field_script_field.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/processor_conditional.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/score.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/autocomplete_definitions/string_script_field_script_field.json (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/completion_adapter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/language.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/lexer_rules/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/lexer_rules/painless.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/lib/editor_state.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/lib/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/lib/autocomplete.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/lib/autocomplete.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/lib/autocomplete_utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/lib/autocomplete_utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/lib/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/lib/lexer.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/lib/parser.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/painless.worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/painless/worker/painless_worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/register_globals.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/sql/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/sql/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/sql/lexer_rules/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/sql/lexer_rules/sql.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/typings.d.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/grammar.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/grammar.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/language.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/lexer_rules/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/lexer_rules/xjson.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/worker/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/worker/xjson.worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/xjson/worker/xjson_worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/yaml/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/yaml/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/src/yaml/worker/yaml.worker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-monaco/tsconfig.json (95%) rename {packages => src/platform/packages/shared}/kbn-monaco/webpack.config.js (100%) diff --git a/.eslintignore b/.eslintignore index e2b06124e936a..83e4a017255e2 100644 --- a/.eslintignore +++ b/.eslintignore @@ -38,7 +38,7 @@ snapshots.js /packages/kbn-test/src/functional_test_runner/lib/config/__tests__/fixtures/ /packages/kbn-ui-framework/dist /packages/kbn-flot-charts/lib -/packages/kbn-monaco/src/**/antlr +/src/platform/packages/shared/kbn-monaco/src/**/antlr /src/platform/packages/shared/kbn-esql-ast/src/**/antlr # Bazel diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2292611943f38..104b1952874af 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -394,7 +394,6 @@ packages/kbn-manifest @elastic/kibana-core packages/kbn-mapbox-gl @elastic/kibana-presentation packages/kbn-mock-idp-plugin @elastic/kibana-security packages/kbn-mock-idp-utils @elastic/kibana-security -packages/kbn-monaco @elastic/appex-sharedux packages/kbn-object-versioning @elastic/appex-sharedux packages/kbn-object-versioning-utils @elastic/appex-sharedux packages/kbn-openapi-bundler @elastic/security-detection-rule-management @@ -621,6 +620,7 @@ src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-es src/platform/packages/shared/kbn-guided-onboarding @elastic/appex-sharedux src/platform/packages/shared/kbn-management/settings/section_registry @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/setting_ids @elastic/appex-sharedux @elastic/kibana-management +src/platform/packages/shared/kbn-monaco @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/.i18nrc.json b/.i18nrc.json index fed9ad00ef71d..d5eac91942df9 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -91,7 +91,7 @@ "src/plugins/management", "packages/kbn-management" ], - "monaco": "packages/kbn-monaco/src", + "monaco": "src/platform/packages/shared/kbn-monaco/src", "navigation": ["src/plugins/navigation", "packages/solution-nav"], "links": "src/plugins/links", "newsfeed": "src/plugins/newsfeed", diff --git a/kbn_pm/src/lib/bazel.mjs b/kbn_pm/src/lib/bazel.mjs index 2eb221e21526e..5a48affd32f16 100644 --- a/kbn_pm/src/lib/bazel.mjs +++ b/kbn_pm/src/lib/bazel.mjs @@ -22,7 +22,7 @@ const BAZEL_RUNNER_SRC = '../../../packages/kbn-bazel-runner/index.js'; const BAZEL_TARGETS = [ '//packages/kbn-ui-shared-deps-npm:shared_built_assets', '//packages/kbn-ui-shared-deps-src:shared_built_assets', - '//packages/kbn-monaco:target_workers', + '//src/platform/packages/shared/kbn-monaco:target_workers', ]; async function getBazelRunner() { diff --git a/package.json b/package.json index 2fa4dd144fd0b..fbd093fb0b108 100644 --- a/package.json +++ b/package.json @@ -682,7 +682,7 @@ "@kbn/ml-ui-actions": "link:x-pack/packages/ml/ui_actions", "@kbn/ml-url-state": "link:x-pack/packages/ml/url_state", "@kbn/ml-validators": "link:x-pack/packages/ml/validators", - "@kbn/monaco": "link:packages/kbn-monaco", + "@kbn/monaco": "link:src/platform/packages/shared/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", diff --git a/packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts b/packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts index 2bc7dbc28b3f7..c6a648f2b07a5 100644 --- a/packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts +++ b/packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts @@ -19,7 +19,7 @@ export async function buildBazelPackages({ log, dist }: TaskContext) { 'build', '//packages/kbn-ui-shared-deps-npm:shared_built_assets', '//packages/kbn-ui-shared-deps-src:shared_built_assets', - '//packages/kbn-monaco:target_workers', + '//src/platform/packages/shared/kbn-monaco:target_workers', '--show_result=1', ].concat(dist ? [`--define=dist=true`] : []), { diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel index e9ccd954e4034..eb9b68b80128b 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel @@ -26,7 +26,7 @@ webpack_cli( "//packages/kbn-i18n-react", "//packages/kbn-ebt-tools", "//src/platform/packages/shared/kbn-esql-ast", - "//packages/kbn-monaco", + "//src/platform/packages/shared/kbn-monaco", "//packages/kbn-datemath", "//packages/kbn-analytics", "//packages/kbn-crypto-browser", diff --git a/src/dev/build/tasks/build_packages_task.ts b/src/dev/build/tasks/build_packages_task.ts index 8677b65014588..9d20dd9b20a93 100644 --- a/src/dev/build/tasks/build_packages_task.ts +++ b/src/dev/build/tasks/build_packages_task.ts @@ -111,7 +111,7 @@ export const BuildPackages: Task = { 'build', '//packages/kbn-ui-shared-deps-npm:shared_built_assets', '//packages/kbn-ui-shared-deps-src:shared_built_assets', - '//packages/kbn-monaco:target_workers', + '//src/platform/packages/shared/kbn-monaco:target_workers', '--show_result=1', '--define=dist=true', ], diff --git a/src/platform/packages/private/kbn-esql-editor/README.md b/src/platform/packages/private/kbn-esql-editor/README.md index f36b3388160a6..2c3e64f6a7dab 100644 --- a/src/platform/packages/private/kbn-esql-editor/README.md +++ b/src/platform/packages/private/kbn-esql-editor/README.md @@ -6,7 +6,7 @@ Contains the editor for text based languages. Specifically for: --- Contains the ESQL editor with the autocomplete and the autosuggest functionality (based on atlr). -The antlr code can be found in packages/kbn-monaco/src/esql +The antlr code can be found in src/platform/packages/shared/kbn-monaco/src/esql A **monaco** based editor that is part of the unified search experience. It is rendered for all the applications that support text-based languages. In order to enable text based languages on your unified search bar add `textBasedLanguages: ['ESQL', '...']` to the dataViewPicker properties. diff --git a/packages/kbn-monaco/BUILD.bazel b/src/platform/packages/shared/kbn-monaco/BUILD.bazel similarity index 100% rename from packages/kbn-monaco/BUILD.bazel rename to src/platform/packages/shared/kbn-monaco/BUILD.bazel diff --git a/packages/kbn-monaco/README.md b/src/platform/packages/shared/kbn-monaco/README.md similarity index 100% rename from packages/kbn-monaco/README.md rename to src/platform/packages/shared/kbn-monaco/README.md diff --git a/packages/kbn-monaco/index.ts b/src/platform/packages/shared/kbn-monaco/index.ts similarity index 100% rename from packages/kbn-monaco/index.ts rename to src/platform/packages/shared/kbn-monaco/index.ts diff --git a/packages/kbn-monaco/jest.config.js b/src/platform/packages/shared/kbn-monaco/jest.config.js similarity index 84% rename from packages/kbn-monaco/jest.config.js rename to src/platform/packages/shared/kbn-monaco/jest.config.js index 8971b491714c1..1480df58c72f4 100644 --- a/packages/kbn-monaco/jest.config.js +++ b/src/platform/packages/shared/kbn-monaco/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-monaco'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-monaco'], }; diff --git a/packages/kbn-monaco/kibana.jsonc b/src/platform/packages/shared/kbn-monaco/kibana.jsonc similarity index 100% rename from packages/kbn-monaco/kibana.jsonc rename to src/platform/packages/shared/kbn-monaco/kibana.jsonc diff --git a/packages/kbn-monaco/package.json b/src/platform/packages/shared/kbn-monaco/package.json similarity index 100% rename from packages/kbn-monaco/package.json rename to src/platform/packages/shared/kbn-monaco/package.json diff --git a/packages/kbn-monaco/scripts/antlr4_tools/.gitignore b/src/platform/packages/shared/kbn-monaco/scripts/antlr4_tools/.gitignore similarity index 100% rename from packages/kbn-monaco/scripts/antlr4_tools/.gitignore rename to src/platform/packages/shared/kbn-monaco/scripts/antlr4_tools/.gitignore diff --git a/packages/kbn-monaco/scripts/antlr4_tools/README.md b/src/platform/packages/shared/kbn-monaco/scripts/antlr4_tools/README.md similarity index 100% rename from packages/kbn-monaco/scripts/antlr4_tools/README.md rename to src/platform/packages/shared/kbn-monaco/scripts/antlr4_tools/README.md diff --git a/packages/kbn-monaco/scripts/antlr4_tools/brewfile b/src/platform/packages/shared/kbn-monaco/scripts/antlr4_tools/brewfile similarity index 100% rename from packages/kbn-monaco/scripts/antlr4_tools/brewfile rename to src/platform/packages/shared/kbn-monaco/scripts/antlr4_tools/brewfile diff --git a/packages/kbn-monaco/scripts/constants.js b/src/platform/packages/shared/kbn-monaco/scripts/constants.js similarity index 100% rename from packages/kbn-monaco/scripts/constants.js rename to src/platform/packages/shared/kbn-monaco/scripts/constants.js diff --git a/packages/kbn-monaco/scripts/esql_update_ast_script.js b/src/platform/packages/shared/kbn-monaco/scripts/esql_update_ast_script.js similarity index 100% rename from packages/kbn-monaco/scripts/esql_update_ast_script.js rename to src/platform/packages/shared/kbn-monaco/scripts/esql_update_ast_script.js diff --git a/packages/kbn-monaco/scripts/fix_generated_antlr.js b/src/platform/packages/shared/kbn-monaco/scripts/fix_generated_antlr.js similarity index 100% rename from packages/kbn-monaco/scripts/fix_generated_antlr.js rename to src/platform/packages/shared/kbn-monaco/scripts/fix_generated_antlr.js diff --git a/packages/kbn-monaco/scripts/generate_autocomplete.js b/src/platform/packages/shared/kbn-monaco/scripts/generate_autocomplete.js similarity index 100% rename from packages/kbn-monaco/scripts/generate_autocomplete.js rename to src/platform/packages/shared/kbn-monaco/scripts/generate_autocomplete.js diff --git a/packages/kbn-monaco/scripts/utils/clone_es.js b/src/platform/packages/shared/kbn-monaco/scripts/utils/clone_es.js similarity index 100% rename from packages/kbn-monaco/scripts/utils/clone_es.js rename to src/platform/packages/shared/kbn-monaco/scripts/utils/clone_es.js diff --git a/packages/kbn-monaco/scripts/utils/create_autocomplete_definitions.js b/src/platform/packages/shared/kbn-monaco/scripts/utils/create_autocomplete_definitions.js similarity index 100% rename from packages/kbn-monaco/scripts/utils/create_autocomplete_definitions.js rename to src/platform/packages/shared/kbn-monaco/scripts/utils/create_autocomplete_definitions.js diff --git a/packages/kbn-monaco/scripts/utils/create_autocomplete_definitions.test.js b/src/platform/packages/shared/kbn-monaco/scripts/utils/create_autocomplete_definitions.test.js similarity index 100% rename from packages/kbn-monaco/scripts/utils/create_autocomplete_definitions.test.js rename to src/platform/packages/shared/kbn-monaco/scripts/utils/create_autocomplete_definitions.test.js diff --git a/packages/kbn-monaco/scripts/utils/create_autocomplete_exports.js b/src/platform/packages/shared/kbn-monaco/scripts/utils/create_autocomplete_exports.js similarity index 100% rename from packages/kbn-monaco/scripts/utils/create_autocomplete_exports.js rename to src/platform/packages/shared/kbn-monaco/scripts/utils/create_autocomplete_exports.js diff --git a/packages/kbn-monaco/scripts/utils/index.js b/src/platform/packages/shared/kbn-monaco/scripts/utils/index.js similarity index 100% rename from packages/kbn-monaco/scripts/utils/index.js rename to src/platform/packages/shared/kbn-monaco/scripts/utils/index.js diff --git a/packages/kbn-monaco/server.ts b/src/platform/packages/shared/kbn-monaco/server.ts similarity index 100% rename from packages/kbn-monaco/server.ts rename to src/platform/packages/shared/kbn-monaco/server.ts diff --git a/packages/kbn-monaco/src/__jest__/jest.mocks.ts b/src/platform/packages/shared/kbn-monaco/src/__jest__/jest.mocks.ts similarity index 100% rename from packages/kbn-monaco/src/__jest__/jest.mocks.ts rename to src/platform/packages/shared/kbn-monaco/src/__jest__/jest.mocks.ts diff --git a/packages/kbn-monaco/src/__jest__/types.ts b/src/platform/packages/shared/kbn-monaco/src/__jest__/types.ts similarity index 100% rename from packages/kbn-monaco/src/__jest__/types.ts rename to src/platform/packages/shared/kbn-monaco/src/__jest__/types.ts diff --git a/packages/kbn-monaco/src/ace_migration/setup_worker.ts b/src/platform/packages/shared/kbn-monaco/src/ace_migration/setup_worker.ts similarity index 100% rename from packages/kbn-monaco/src/ace_migration/setup_worker.ts rename to src/platform/packages/shared/kbn-monaco/src/ace_migration/setup_worker.ts diff --git a/packages/kbn-monaco/src/ace_migration/types.ts b/src/platform/packages/shared/kbn-monaco/src/ace_migration/types.ts similarity index 100% rename from packages/kbn-monaco/src/ace_migration/types.ts rename to src/platform/packages/shared/kbn-monaco/src/ace_migration/types.ts diff --git a/packages/kbn-monaco/src/ace_migration/worker_proxy.ts b/src/platform/packages/shared/kbn-monaco/src/ace_migration/worker_proxy.ts similarity index 100% rename from packages/kbn-monaco/src/ace_migration/worker_proxy.ts rename to src/platform/packages/shared/kbn-monaco/src/ace_migration/worker_proxy.ts diff --git a/packages/kbn-monaco/src/code_editor/constants.ts b/src/platform/packages/shared/kbn-monaco/src/code_editor/constants.ts similarity index 100% rename from packages/kbn-monaco/src/code_editor/constants.ts rename to src/platform/packages/shared/kbn-monaco/src/code_editor/constants.ts diff --git a/packages/kbn-monaco/src/code_editor/index.ts b/src/platform/packages/shared/kbn-monaco/src/code_editor/index.ts similarity index 100% rename from packages/kbn-monaco/src/code_editor/index.ts rename to src/platform/packages/shared/kbn-monaco/src/code_editor/index.ts diff --git a/packages/kbn-monaco/src/code_editor/theme.ts b/src/platform/packages/shared/kbn-monaco/src/code_editor/theme.ts similarity index 100% rename from packages/kbn-monaco/src/code_editor/theme.ts rename to src/platform/packages/shared/kbn-monaco/src/code_editor/theme.ts diff --git a/packages/kbn-monaco/src/common/diagnostics_adapter.test.ts b/src/platform/packages/shared/kbn-monaco/src/common/diagnostics_adapter.test.ts similarity index 100% rename from packages/kbn-monaco/src/common/diagnostics_adapter.test.ts rename to src/platform/packages/shared/kbn-monaco/src/common/diagnostics_adapter.test.ts diff --git a/packages/kbn-monaco/src/common/diagnostics_adapter.ts b/src/platform/packages/shared/kbn-monaco/src/common/diagnostics_adapter.ts similarity index 100% rename from packages/kbn-monaco/src/common/diagnostics_adapter.ts rename to src/platform/packages/shared/kbn-monaco/src/common/diagnostics_adapter.ts diff --git a/packages/kbn-monaco/src/common/error_listener.ts b/src/platform/packages/shared/kbn-monaco/src/common/error_listener.ts similarity index 100% rename from packages/kbn-monaco/src/common/error_listener.ts rename to src/platform/packages/shared/kbn-monaco/src/common/error_listener.ts diff --git a/packages/kbn-monaco/src/common/lexer_rules.ts b/src/platform/packages/shared/kbn-monaco/src/common/lexer_rules.ts similarity index 100% rename from packages/kbn-monaco/src/common/lexer_rules.ts rename to src/platform/packages/shared/kbn-monaco/src/common/lexer_rules.ts diff --git a/packages/kbn-monaco/src/common/theme.ts b/src/platform/packages/shared/kbn-monaco/src/common/theme.ts similarity index 100% rename from packages/kbn-monaco/src/common/theme.ts rename to src/platform/packages/shared/kbn-monaco/src/common/theme.ts diff --git a/packages/kbn-monaco/src/common/worker_proxy.ts b/src/platform/packages/shared/kbn-monaco/src/common/worker_proxy.ts similarity index 100% rename from packages/kbn-monaco/src/common/worker_proxy.ts rename to src/platform/packages/shared/kbn-monaco/src/common/worker_proxy.ts diff --git a/packages/kbn-monaco/src/console/console_errors_provider.ts b/src/platform/packages/shared/kbn-monaco/src/console/console_errors_provider.ts similarity index 100% rename from packages/kbn-monaco/src/console/console_errors_provider.ts rename to src/platform/packages/shared/kbn-monaco/src/console/console_errors_provider.ts diff --git a/packages/kbn-monaco/src/console/console_parsed_requests_provider.ts b/src/platform/packages/shared/kbn-monaco/src/console/console_parsed_requests_provider.ts similarity index 100% rename from packages/kbn-monaco/src/console/console_parsed_requests_provider.ts rename to src/platform/packages/shared/kbn-monaco/src/console/console_parsed_requests_provider.ts diff --git a/packages/kbn-monaco/src/console/console_worker_proxy.ts b/src/platform/packages/shared/kbn-monaco/src/console/console_worker_proxy.ts similarity index 100% rename from packages/kbn-monaco/src/console/console_worker_proxy.ts rename to src/platform/packages/shared/kbn-monaco/src/console/console_worker_proxy.ts diff --git a/packages/kbn-monaco/src/console/constants.ts b/src/platform/packages/shared/kbn-monaco/src/console/constants.ts similarity index 100% rename from packages/kbn-monaco/src/console/constants.ts rename to src/platform/packages/shared/kbn-monaco/src/console/constants.ts diff --git a/packages/kbn-monaco/src/console/folding_range_provider/folding_range_provider.ts b/src/platform/packages/shared/kbn-monaco/src/console/folding_range_provider/folding_range_provider.ts similarity index 100% rename from packages/kbn-monaco/src/console/folding_range_provider/folding_range_provider.ts rename to src/platform/packages/shared/kbn-monaco/src/console/folding_range_provider/folding_range_provider.ts diff --git a/packages/kbn-monaco/src/console/folding_range_provider/folding_range_utils.test.ts b/src/platform/packages/shared/kbn-monaco/src/console/folding_range_provider/folding_range_utils.test.ts similarity index 100% rename from packages/kbn-monaco/src/console/folding_range_provider/folding_range_utils.test.ts rename to src/platform/packages/shared/kbn-monaco/src/console/folding_range_provider/folding_range_utils.test.ts diff --git a/packages/kbn-monaco/src/console/folding_range_provider/folding_range_utils.ts b/src/platform/packages/shared/kbn-monaco/src/console/folding_range_provider/folding_range_utils.ts similarity index 100% rename from packages/kbn-monaco/src/console/folding_range_provider/folding_range_utils.ts rename to src/platform/packages/shared/kbn-monaco/src/console/folding_range_provider/folding_range_utils.ts diff --git a/packages/kbn-monaco/src/console/folding_range_provider/index.ts b/src/platform/packages/shared/kbn-monaco/src/console/folding_range_provider/index.ts similarity index 100% rename from packages/kbn-monaco/src/console/folding_range_provider/index.ts rename to src/platform/packages/shared/kbn-monaco/src/console/folding_range_provider/index.ts diff --git a/packages/kbn-monaco/src/console/index.ts b/src/platform/packages/shared/kbn-monaco/src/console/index.ts similarity index 100% rename from packages/kbn-monaco/src/console/index.ts rename to src/platform/packages/shared/kbn-monaco/src/console/index.ts diff --git a/packages/kbn-monaco/src/console/language.ts b/src/platform/packages/shared/kbn-monaco/src/console/language.ts similarity index 100% rename from packages/kbn-monaco/src/console/language.ts rename to src/platform/packages/shared/kbn-monaco/src/console/language.ts diff --git a/packages/kbn-monaco/src/console/lexer_rules/console_editor.ts b/src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/console_editor.ts similarity index 100% rename from packages/kbn-monaco/src/console/lexer_rules/console_editor.ts rename to src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/console_editor.ts diff --git a/packages/kbn-monaco/src/console/lexer_rules/console_output.ts b/src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/console_output.ts similarity index 100% rename from packages/kbn-monaco/src/console/lexer_rules/console_output.ts rename to src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/console_output.ts diff --git a/packages/kbn-monaco/src/console/lexer_rules/index.ts b/src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/index.ts similarity index 100% rename from packages/kbn-monaco/src/console/lexer_rules/index.ts rename to src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/index.ts diff --git a/packages/kbn-monaco/src/console/lexer_rules/nested_painless.ts b/src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/nested_painless.ts similarity index 100% rename from packages/kbn-monaco/src/console/lexer_rules/nested_painless.ts rename to src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/nested_painless.ts diff --git a/packages/kbn-monaco/src/console/lexer_rules/nested_sql.ts b/src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/nested_sql.ts similarity index 100% rename from packages/kbn-monaco/src/console/lexer_rules/nested_sql.ts rename to src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/nested_sql.ts diff --git a/packages/kbn-monaco/src/console/lexer_rules/shared.ts b/src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/shared.ts similarity index 100% rename from packages/kbn-monaco/src/console/lexer_rules/shared.ts rename to src/platform/packages/shared/kbn-monaco/src/console/lexer_rules/shared.ts diff --git a/packages/kbn-monaco/src/console/output_parser.js b/src/platform/packages/shared/kbn-monaco/src/console/output_parser.js similarity index 100% rename from packages/kbn-monaco/src/console/output_parser.js rename to src/platform/packages/shared/kbn-monaco/src/console/output_parser.js diff --git a/packages/kbn-monaco/src/console/output_parser.test.ts b/src/platform/packages/shared/kbn-monaco/src/console/output_parser.test.ts similarity index 100% rename from packages/kbn-monaco/src/console/output_parser.test.ts rename to src/platform/packages/shared/kbn-monaco/src/console/output_parser.test.ts diff --git a/packages/kbn-monaco/src/console/parser.js b/src/platform/packages/shared/kbn-monaco/src/console/parser.js similarity index 100% rename from packages/kbn-monaco/src/console/parser.js rename to src/platform/packages/shared/kbn-monaco/src/console/parser.js diff --git a/packages/kbn-monaco/src/console/parser.test.ts b/src/platform/packages/shared/kbn-monaco/src/console/parser.test.ts similarity index 100% rename from packages/kbn-monaco/src/console/parser.test.ts rename to src/platform/packages/shared/kbn-monaco/src/console/parser.test.ts diff --git a/packages/kbn-monaco/src/console/theme.ts b/src/platform/packages/shared/kbn-monaco/src/console/theme.ts similarity index 100% rename from packages/kbn-monaco/src/console/theme.ts rename to src/platform/packages/shared/kbn-monaco/src/console/theme.ts diff --git a/packages/kbn-monaco/src/console/types.ts b/src/platform/packages/shared/kbn-monaco/src/console/types.ts similarity index 100% rename from packages/kbn-monaco/src/console/types.ts rename to src/platform/packages/shared/kbn-monaco/src/console/types.ts diff --git a/packages/kbn-monaco/src/console/worker/console.worker.ts b/src/platform/packages/shared/kbn-monaco/src/console/worker/console.worker.ts similarity index 100% rename from packages/kbn-monaco/src/console/worker/console.worker.ts rename to src/platform/packages/shared/kbn-monaco/src/console/worker/console.worker.ts diff --git a/packages/kbn-monaco/src/console/worker/console_worker.ts b/src/platform/packages/shared/kbn-monaco/src/console/worker/console_worker.ts similarity index 100% rename from packages/kbn-monaco/src/console/worker/console_worker.ts rename to src/platform/packages/shared/kbn-monaco/src/console/worker/console_worker.ts diff --git a/packages/kbn-monaco/src/console/worker/index.ts b/src/platform/packages/shared/kbn-monaco/src/console/worker/index.ts similarity index 100% rename from packages/kbn-monaco/src/console/worker/index.ts rename to src/platform/packages/shared/kbn-monaco/src/console/worker/index.ts diff --git a/packages/kbn-monaco/src/esql/index.ts b/src/platform/packages/shared/kbn-monaco/src/esql/index.ts similarity index 100% rename from packages/kbn-monaco/src/esql/index.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/index.ts diff --git a/packages/kbn-monaco/src/esql/language.test.ts b/src/platform/packages/shared/kbn-monaco/src/esql/language.test.ts similarity index 100% rename from packages/kbn-monaco/src/esql/language.test.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/language.test.ts diff --git a/packages/kbn-monaco/src/esql/language.ts b/src/platform/packages/shared/kbn-monaco/src/esql/language.ts similarity index 100% rename from packages/kbn-monaco/src/esql/language.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/language.ts diff --git a/packages/kbn-monaco/src/esql/lib/constants.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/constants.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/constants.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/constants.ts diff --git a/packages/kbn-monaco/src/esql/lib/converters/actions.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/converters/actions.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/converters/actions.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/converters/actions.ts diff --git a/packages/kbn-monaco/src/esql/lib/converters/positions.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/converters/positions.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/converters/positions.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/converters/positions.ts diff --git a/packages/kbn-monaco/src/esql/lib/converters/suggestions.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/converters/suggestions.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/converters/suggestions.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/converters/suggestions.ts diff --git a/packages/kbn-monaco/src/esql/lib/esql_ast_provider.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_ast_provider.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/esql_ast_provider.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_ast_provider.ts diff --git a/packages/kbn-monaco/src/esql/lib/esql_line_tokens.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_line_tokens.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/esql_line_tokens.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_line_tokens.ts diff --git a/packages/kbn-monaco/src/esql/lib/esql_state.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_state.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/esql_state.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_state.ts diff --git a/packages/kbn-monaco/src/esql/lib/esql_theme.test.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_theme.test.ts similarity index 98% rename from packages/kbn-monaco/src/esql/lib/esql_theme.test.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_theme.test.ts index ba70ee4c2f061..4ef6c01287b45 100644 --- a/packages/kbn-monaco/src/esql/lib/esql_theme.test.ts +++ b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_theme.test.ts @@ -43,7 +43,7 @@ describe('ESQL Theme', () => { const theme = buildESQLTheme({ darkMode: false }); // These names aren't from the lexer... they are added on our side - // see packages/kbn-monaco/src/esql/lib/esql_token_helpers.ts + // see src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_token_helpers.ts const syntheticNames = ['functions', 'nulls_order', 'timespan_literal']; const rulesWithNoName: string[] = []; diff --git a/packages/kbn-monaco/src/esql/lib/esql_theme.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_theme.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/esql_theme.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_theme.ts diff --git a/packages/kbn-monaco/src/esql/lib/esql_token.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_token.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/esql_token.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_token.ts diff --git a/packages/kbn-monaco/src/esql/lib/esql_token_helpers.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_token_helpers.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/esql_token_helpers.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_token_helpers.ts diff --git a/packages/kbn-monaco/src/esql/lib/esql_tokens_provider.test.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_tokens_provider.test.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/esql_tokens_provider.test.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_tokens_provider.test.ts diff --git a/packages/kbn-monaco/src/esql/lib/esql_tokens_provider.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_tokens_provider.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/esql_tokens_provider.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_tokens_provider.ts diff --git a/packages/kbn-monaco/src/esql/lib/hover/hover.test.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/hover/hover.test.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/hover/hover.test.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/hover/hover.test.ts diff --git a/packages/kbn-monaco/src/esql/lib/hover/hover.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/hover/hover.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/hover/hover.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/hover/hover.ts diff --git a/packages/kbn-monaco/src/esql/lib/index.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/index.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/index.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/index.ts diff --git a/packages/kbn-monaco/src/esql/lib/shared/utils.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/shared/utils.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/shared/utils.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/shared/utils.ts diff --git a/packages/kbn-monaco/src/esql/lib/signature/index.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/signature/index.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/signature/index.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/signature/index.ts diff --git a/packages/kbn-monaco/src/esql/lib/types.ts b/src/platform/packages/shared/kbn-monaco/src/esql/lib/types.ts similarity index 100% rename from packages/kbn-monaco/src/esql/lib/types.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/lib/types.ts diff --git a/packages/kbn-monaco/src/esql/worker/esql.worker.ts b/src/platform/packages/shared/kbn-monaco/src/esql/worker/esql.worker.ts similarity index 100% rename from packages/kbn-monaco/src/esql/worker/esql.worker.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/worker/esql.worker.ts diff --git a/packages/kbn-monaco/src/esql/worker/esql_worker.ts b/src/platform/packages/shared/kbn-monaco/src/esql/worker/esql_worker.ts similarity index 100% rename from packages/kbn-monaco/src/esql/worker/esql_worker.ts rename to src/platform/packages/shared/kbn-monaco/src/esql/worker/esql_worker.ts diff --git a/packages/kbn-monaco/src/helpers.ts b/src/platform/packages/shared/kbn-monaco/src/helpers.ts similarity index 100% rename from packages/kbn-monaco/src/helpers.ts rename to src/platform/packages/shared/kbn-monaco/src/helpers.ts diff --git a/packages/kbn-monaco/src/monaco_imports.ts b/src/platform/packages/shared/kbn-monaco/src/monaco_imports.ts similarity index 100% rename from packages/kbn-monaco/src/monaco_imports.ts rename to src/platform/packages/shared/kbn-monaco/src/monaco_imports.ts diff --git a/packages/kbn-monaco/src/painless/README.md b/src/platform/packages/shared/kbn-monaco/src/painless/README.md similarity index 100% rename from packages/kbn-monaco/src/painless/README.md rename to src/platform/packages/shared/kbn-monaco/src/painless/README.md diff --git a/packages/kbn-monaco/src/painless/antlr/painless_lexer.g4 b/src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_lexer.g4 similarity index 100% rename from packages/kbn-monaco/src/painless/antlr/painless_lexer.g4 rename to src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_lexer.g4 diff --git a/packages/kbn-monaco/src/painless/antlr/painless_lexer.interp b/src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_lexer.interp similarity index 100% rename from packages/kbn-monaco/src/painless/antlr/painless_lexer.interp rename to src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_lexer.interp diff --git a/packages/kbn-monaco/src/painless/antlr/painless_lexer.tokens b/src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_lexer.tokens similarity index 100% rename from packages/kbn-monaco/src/painless/antlr/painless_lexer.tokens rename to src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_lexer.tokens diff --git a/packages/kbn-monaco/src/painless/antlr/painless_lexer.ts b/src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_lexer.ts similarity index 100% rename from packages/kbn-monaco/src/painless/antlr/painless_lexer.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_lexer.ts diff --git a/packages/kbn-monaco/src/painless/antlr/painless_parser.g4 b/src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser.g4 similarity index 100% rename from packages/kbn-monaco/src/painless/antlr/painless_parser.g4 rename to src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser.g4 diff --git a/packages/kbn-monaco/src/painless/antlr/painless_parser.interp b/src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser.interp similarity index 100% rename from packages/kbn-monaco/src/painless/antlr/painless_parser.interp rename to src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser.interp diff --git a/packages/kbn-monaco/src/painless/antlr/painless_parser.tokens b/src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser.tokens similarity index 100% rename from packages/kbn-monaco/src/painless/antlr/painless_parser.tokens rename to src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser.tokens diff --git a/packages/kbn-monaco/src/painless/antlr/painless_parser.ts b/src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser.ts similarity index 100% rename from packages/kbn-monaco/src/painless/antlr/painless_parser.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser.ts diff --git a/packages/kbn-monaco/src/painless/antlr/painless_parser_listener.ts b/src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser_listener.ts similarity index 100% rename from packages/kbn-monaco/src/painless/antlr/painless_parser_listener.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/antlr/painless_parser_listener.ts diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/boolean_script_field_script_field.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/boolean_script_field_script_field.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/boolean_script_field_script_field.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/boolean_script_field_script_field.json diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/common.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/common.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/common.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/common.json diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/date_script_field.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/date_script_field.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/date_script_field.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/date_script_field.json diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/double_script_field_script_field.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/double_script_field_script_field.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/double_script_field_script_field.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/double_script_field_script_field.json diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/filter.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/filter.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/filter.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/filter.json diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/index.ts b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/index.ts similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/index.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/index.ts diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/ip_script_field_script_field.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/ip_script_field_script_field.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/ip_script_field_script_field.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/ip_script_field_script_field.json diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/long_script_field_script_field.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/long_script_field_script_field.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/long_script_field_script_field.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/long_script_field_script_field.json diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/processor_conditional.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/processor_conditional.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/processor_conditional.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/processor_conditional.json diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/score.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/score.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/score.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/score.json diff --git a/packages/kbn-monaco/src/painless/autocomplete_definitions/string_script_field_script_field.json b/src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/string_script_field_script_field.json similarity index 100% rename from packages/kbn-monaco/src/painless/autocomplete_definitions/string_script_field_script_field.json rename to src/platform/packages/shared/kbn-monaco/src/painless/autocomplete_definitions/string_script_field_script_field.json diff --git a/packages/kbn-monaco/src/painless/completion_adapter.ts b/src/platform/packages/shared/kbn-monaco/src/painless/completion_adapter.ts similarity index 100% rename from packages/kbn-monaco/src/painless/completion_adapter.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/completion_adapter.ts diff --git a/packages/kbn-monaco/src/painless/constants.ts b/src/platform/packages/shared/kbn-monaco/src/painless/constants.ts similarity index 100% rename from packages/kbn-monaco/src/painless/constants.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/constants.ts diff --git a/packages/kbn-monaco/src/painless/index.ts b/src/platform/packages/shared/kbn-monaco/src/painless/index.ts similarity index 100% rename from packages/kbn-monaco/src/painless/index.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/index.ts diff --git a/packages/kbn-monaco/src/painless/language.ts b/src/platform/packages/shared/kbn-monaco/src/painless/language.ts similarity index 100% rename from packages/kbn-monaco/src/painless/language.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/language.ts diff --git a/packages/kbn-monaco/src/painless/lexer_rules/index.ts b/src/platform/packages/shared/kbn-monaco/src/painless/lexer_rules/index.ts similarity index 100% rename from packages/kbn-monaco/src/painless/lexer_rules/index.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/lexer_rules/index.ts diff --git a/packages/kbn-monaco/src/painless/lexer_rules/painless.ts b/src/platform/packages/shared/kbn-monaco/src/painless/lexer_rules/painless.ts similarity index 100% rename from packages/kbn-monaco/src/painless/lexer_rules/painless.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/lexer_rules/painless.ts diff --git a/packages/kbn-monaco/src/painless/lib/editor_state.ts b/src/platform/packages/shared/kbn-monaco/src/painless/lib/editor_state.ts similarity index 100% rename from packages/kbn-monaco/src/painless/lib/editor_state.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/lib/editor_state.ts diff --git a/packages/kbn-monaco/src/painless/lib/index.ts b/src/platform/packages/shared/kbn-monaco/src/painless/lib/index.ts similarity index 100% rename from packages/kbn-monaco/src/painless/lib/index.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/lib/index.ts diff --git a/packages/kbn-monaco/src/painless/types.ts b/src/platform/packages/shared/kbn-monaco/src/painless/types.ts similarity index 100% rename from packages/kbn-monaco/src/painless/types.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/types.ts diff --git a/packages/kbn-monaco/src/painless/worker/index.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/index.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/index.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/index.ts diff --git a/packages/kbn-monaco/src/painless/worker/lib/autocomplete.test.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/autocomplete.test.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/lib/autocomplete.test.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/autocomplete.test.ts diff --git a/packages/kbn-monaco/src/painless/worker/lib/autocomplete.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/autocomplete.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/lib/autocomplete.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/autocomplete.ts diff --git a/packages/kbn-monaco/src/painless/worker/lib/autocomplete_utils.test.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/autocomplete_utils.test.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/lib/autocomplete_utils.test.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/autocomplete_utils.test.ts diff --git a/packages/kbn-monaco/src/painless/worker/lib/autocomplete_utils.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/autocomplete_utils.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/lib/autocomplete_utils.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/autocomplete_utils.ts diff --git a/packages/kbn-monaco/src/painless/worker/lib/index.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/index.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/lib/index.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/index.ts diff --git a/packages/kbn-monaco/src/painless/worker/lib/lexer.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/lexer.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/lib/lexer.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/lexer.ts diff --git a/packages/kbn-monaco/src/painless/worker/lib/parser.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/parser.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/lib/parser.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/lib/parser.ts diff --git a/packages/kbn-monaco/src/painless/worker/painless.worker.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/painless.worker.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/painless.worker.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/painless.worker.ts diff --git a/packages/kbn-monaco/src/painless/worker/painless_worker.ts b/src/platform/packages/shared/kbn-monaco/src/painless/worker/painless_worker.ts similarity index 100% rename from packages/kbn-monaco/src/painless/worker/painless_worker.ts rename to src/platform/packages/shared/kbn-monaco/src/painless/worker/painless_worker.ts diff --git a/packages/kbn-monaco/src/register_globals.ts b/src/platform/packages/shared/kbn-monaco/src/register_globals.ts similarity index 100% rename from packages/kbn-monaco/src/register_globals.ts rename to src/platform/packages/shared/kbn-monaco/src/register_globals.ts diff --git a/packages/kbn-monaco/src/sql/constants.ts b/src/platform/packages/shared/kbn-monaco/src/sql/constants.ts similarity index 100% rename from packages/kbn-monaco/src/sql/constants.ts rename to src/platform/packages/shared/kbn-monaco/src/sql/constants.ts diff --git a/packages/kbn-monaco/src/sql/index.ts b/src/platform/packages/shared/kbn-monaco/src/sql/index.ts similarity index 100% rename from packages/kbn-monaco/src/sql/index.ts rename to src/platform/packages/shared/kbn-monaco/src/sql/index.ts diff --git a/packages/kbn-monaco/src/sql/lexer_rules/index.ts b/src/platform/packages/shared/kbn-monaco/src/sql/lexer_rules/index.ts similarity index 100% rename from packages/kbn-monaco/src/sql/lexer_rules/index.ts rename to src/platform/packages/shared/kbn-monaco/src/sql/lexer_rules/index.ts diff --git a/packages/kbn-monaco/src/sql/lexer_rules/sql.ts b/src/platform/packages/shared/kbn-monaco/src/sql/lexer_rules/sql.ts similarity index 100% rename from packages/kbn-monaco/src/sql/lexer_rules/sql.ts rename to src/platform/packages/shared/kbn-monaco/src/sql/lexer_rules/sql.ts diff --git a/packages/kbn-monaco/src/types.ts b/src/platform/packages/shared/kbn-monaco/src/types.ts similarity index 100% rename from packages/kbn-monaco/src/types.ts rename to src/platform/packages/shared/kbn-monaco/src/types.ts diff --git a/packages/kbn-monaco/src/typings.d.ts b/src/platform/packages/shared/kbn-monaco/src/typings.d.ts similarity index 100% rename from packages/kbn-monaco/src/typings.d.ts rename to src/platform/packages/shared/kbn-monaco/src/typings.d.ts diff --git a/packages/kbn-monaco/src/xjson/README.md b/src/platform/packages/shared/kbn-monaco/src/xjson/README.md similarity index 100% rename from packages/kbn-monaco/src/xjson/README.md rename to src/platform/packages/shared/kbn-monaco/src/xjson/README.md diff --git a/packages/kbn-monaco/src/xjson/constants.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/constants.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/constants.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/constants.ts diff --git a/packages/kbn-monaco/src/xjson/grammar.test.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/grammar.test.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/grammar.test.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/grammar.test.ts diff --git a/packages/kbn-monaco/src/xjson/grammar.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/grammar.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/grammar.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/grammar.ts diff --git a/packages/kbn-monaco/src/xjson/index.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/index.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/index.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/index.ts diff --git a/packages/kbn-monaco/src/xjson/language.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/language.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/language.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/language.ts diff --git a/packages/kbn-monaco/src/xjson/lexer_rules/index.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/lexer_rules/index.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/lexer_rules/index.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/lexer_rules/index.ts diff --git a/packages/kbn-monaco/src/xjson/lexer_rules/xjson.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/lexer_rules/xjson.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/lexer_rules/xjson.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/lexer_rules/xjson.ts diff --git a/packages/kbn-monaco/src/xjson/worker/index.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/worker/index.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/worker/index.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/worker/index.ts diff --git a/packages/kbn-monaco/src/xjson/worker/xjson.worker.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/worker/xjson.worker.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/worker/xjson.worker.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/worker/xjson.worker.ts diff --git a/packages/kbn-monaco/src/xjson/worker/xjson_worker.ts b/src/platform/packages/shared/kbn-monaco/src/xjson/worker/xjson_worker.ts similarity index 100% rename from packages/kbn-monaco/src/xjson/worker/xjson_worker.ts rename to src/platform/packages/shared/kbn-monaco/src/xjson/worker/xjson_worker.ts diff --git a/packages/kbn-monaco/src/yaml/constants.ts b/src/platform/packages/shared/kbn-monaco/src/yaml/constants.ts similarity index 100% rename from packages/kbn-monaco/src/yaml/constants.ts rename to src/platform/packages/shared/kbn-monaco/src/yaml/constants.ts diff --git a/packages/kbn-monaco/src/yaml/index.ts b/src/platform/packages/shared/kbn-monaco/src/yaml/index.ts similarity index 100% rename from packages/kbn-monaco/src/yaml/index.ts rename to src/platform/packages/shared/kbn-monaco/src/yaml/index.ts diff --git a/packages/kbn-monaco/src/yaml/worker/yaml.worker.ts b/src/platform/packages/shared/kbn-monaco/src/yaml/worker/yaml.worker.ts similarity index 100% rename from packages/kbn-monaco/src/yaml/worker/yaml.worker.ts rename to src/platform/packages/shared/kbn-monaco/src/yaml/worker/yaml.worker.ts diff --git a/packages/kbn-monaco/tsconfig.json b/src/platform/packages/shared/kbn-monaco/tsconfig.json similarity index 95% rename from packages/kbn-monaco/tsconfig.json rename to src/platform/packages/shared/kbn-monaco/tsconfig.json index d39ed146027a9..22ead0362dbd8 100644 --- a/packages/kbn-monaco/tsconfig.json +++ b/src/platform/packages/shared/kbn-monaco/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-monaco/webpack.config.js b/src/platform/packages/shared/kbn-monaco/webpack.config.js similarity index 100% rename from packages/kbn-monaco/webpack.config.js rename to src/platform/packages/shared/kbn-monaco/webpack.config.js diff --git a/src/plugins/console/README.md b/src/plugins/console/README.md index 35921de334380..dd74793452e9f 100644 --- a/src/plugins/console/README.md +++ b/src/plugins/console/README.md @@ -44,7 +44,7 @@ POST /_some_endpoint ``` ## Architecture -Console uses Monaco editor that is wrapped with [`kbn-monaco`](https://github.com/elastic/kibana/blob/main/packages/kbn-monaco/index.ts), so that if needed it can easily be replaced with another editor. +Console uses Monaco editor that is wrapped with [`kbn-monaco`](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-monaco/index.ts), so that if needed it can easily be replaced with another editor. The autocomplete logic is located in [`autocomplete`](https://github.com/elastic/kibana/blob/main/src/plugins/console/public/lib/autocomplete) folder. Autocomplete rules are computed by classes in `components` sub-folder. ## Autocomplete definitions diff --git a/test/functional/services/monaco_editor.ts b/test/functional/services/monaco_editor.ts index 5e942c8d7e7ad..46b0141ea5cd4 100644 --- a/test/functional/services/monaco_editor.ts +++ b/test/functional/services/monaco_editor.ts @@ -28,7 +28,7 @@ export class MonacoEditorService extends FtrService { await this.retry.try(async () => { values = await this.browser.execute( () => - // @ts-expect-error this value is provided in @kbn/monaco for this specific purpose, see {@link packages/kbn-monaco/src/register_globals.ts} + // @ts-expect-error this value is provided in @kbn/monaco for this specific purpose, see {@link src/platform/packages/shared/kbn-monaco/src/register_globals.ts} (window.MonacoEnvironment?.monaco.editor as typeof monaco.editor) .getModels() .map((model: any) => model.getValue()) as string[] @@ -48,7 +48,7 @@ export class MonacoEditorService extends FtrService { await this.retry.try(async () => { await this.browser.execute( (editorIndex, codeEditorValue) => { - // @ts-expect-error this value is provided in @kbn/monaco for this specific purpose, see {@link packages/kbn-monaco/src/register_globals.ts} + // @ts-expect-error this value is provided in @kbn/monaco for this specific purpose, see {@link src/platform/packages/shared/kbn-monaco/src/register_globals.ts} const editor = window.MonacoEnvironment?.monaco.editor as typeof monaco.editor; const textModels = editor.getModels(); diff --git a/tsconfig.base.json b/tsconfig.base.json index 44cf3059368c2..75c9de0c60168 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1296,8 +1296,8 @@ "@kbn/mock-idp-plugin/*": ["packages/kbn-mock-idp-plugin/*"], "@kbn/mock-idp-utils": ["packages/kbn-mock-idp-utils"], "@kbn/mock-idp-utils/*": ["packages/kbn-mock-idp-utils/*"], - "@kbn/monaco": ["packages/kbn-monaco"], - "@kbn/monaco/*": ["packages/kbn-monaco/*"], + "@kbn/monaco": ["src/platform/packages/shared/kbn-monaco"], + "@kbn/monaco/*": ["src/platform/packages/shared/kbn-monaco/*"], "@kbn/monitoring-collection-plugin": ["x-pack/plugins/monitoring_collection"], "@kbn/monitoring-collection-plugin/*": ["x-pack/plugins/monitoring_collection/*"], "@kbn/monitoring-plugin": ["x-pack/plugins/monitoring"], diff --git a/yarn.lock b/yarn.lock index 0b67eb1befe54..9411af2f00819 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6408,7 +6408,7 @@ version "0.0.0" uid "" -"@kbn/monaco@link:packages/kbn-monaco": +"@kbn/monaco@link:src/platform/packages/shared/kbn-monaco": version "0.0.0" uid "" From 2abc9aff968578556044acae0098011839e3456e Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:09:30 +0100 Subject: [PATCH 041/129] 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 104b1952874af..62fd05eb2ef93 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -636,6 +636,7 @@ 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/navigation @elastic/appex-sharedux src/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -678,7 +679,6 @@ src/plugins/kibana_usage_collection @elastic/kibana-core src/plugins/links @elastic/kibana-presentation src/plugins/management @elastic/kibana-management 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 d5eac91942df9..735e3ea44b90d 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -92,7 +92,7 @@ "packages/kbn-management" ], "monaco": "src/platform/packages/shared/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 643482dfd9326..7a3b57e442e12 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 fbd093fb0b108..19afaaa2d3589 100644 --- a/package.json +++ b/package.json @@ -685,7 +685,7 @@ "@kbn/monaco": "link:src/platform/packages/shared/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 00b5186670cf1..6bb08493650e4 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 75c9de0c60168..72f5e68971e05 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1302,8 +1302,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 9411af2f00819..f0eb5dc077a62 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6420,7 +6420,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 2e3212dcee0fdcbce01a220eeb6e965096e7d102 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:11:00 +0100 Subject: [PATCH 042/129] 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 62fd05eb2ef93..0bc54b4b7237e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -627,6 +627,7 @@ src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/ 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/bfetch @elastic/appex-sharedux src/platform/plugins/shared/content_management @elastic/appex-sharedux src/platform/plugins/shared/esql @elastic/kibana-esql @@ -680,7 +681,6 @@ src/plugins/links @elastic/kibana-presentation src/plugins/management @elastic/kibana-management 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 7a3b57e442e12..93a65d5ecf6bf 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 19afaaa2d3589..01b15d10aaf1d 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 72f5e68971e05..2b86af15f0479 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1308,8 +1308,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 f0eb5dc077a62..7ae17c35be0be 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6432,7 +6432,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 cc374786a5ebd4d385564acbd8a044e69b113784 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:12:33 +0100 Subject: [PATCH 043/129] 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 0bc54b4b7237e..bcd15a71937b1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -870,6 +870,7 @@ 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/shared/entity_manager @elastic/obs-entities x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux +x-pack/platform/plugins/shared/notifications @elastic/appex-sharedux x-pack/plugins/actions @elastic/response-ops x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra x-pack/plugins/ai_infra/product_doc_base @elastic/appex-ai-infra @@ -921,7 +922,6 @@ x-pack/plugins/maps @elastic/kibana-presentation x-pack/plugins/ml @elastic/ml-ui 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 93a65d5ecf6bf..ddd5f6b28bbee 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -739,7 +739,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 01b15d10aaf1d..6c332ea13eeb0 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/plugins/observability_solution/observability_ai_assistant_app", diff --git a/tsconfig.base.json b/tsconfig.base.json index 2b86af15f0479..aee317ef46dee 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1310,8 +1310,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 7ae17c35be0be..edd95824e8f6a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6436,7 +6436,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 b3c25a6a356a84a625a71c1d58a5608529aebcd6 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:14:02 +0100 Subject: [PATCH 044/129] Relocating module `@kbn/object-versioning` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/kbn-object-versioning/README.md | 0 .../platform/packages/shared}/kbn-object-versioning/index.ts | 0 .../packages/shared}/kbn-object-versioning/jest.config.js | 4 ++-- .../packages/shared}/kbn-object-versioning/kibana.jsonc | 0 .../lib/content_management_services_schemas.ts | 0 .../lib/content_management_services_versioning.test.ts | 0 .../lib/content_management_services_versioning.ts | 0 .../kbn-object-versioning/lib/content_management_types.ts | 0 .../packages/shared}/kbn-object-versioning/lib/index.ts | 0 .../kbn-object-versioning/lib/object_transform.test.ts | 0 .../shared}/kbn-object-versioning/lib/object_transform.ts | 0 .../packages/shared}/kbn-object-versioning/lib/types.ts | 0 .../packages/shared}/kbn-object-versioning/lib/utils.test.ts | 0 .../packages/shared}/kbn-object-versioning/lib/utils.ts | 0 .../packages/shared}/kbn-object-versioning/package.json | 0 .../packages/shared}/kbn-object-versioning/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 20 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-object-versioning/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/content_management_services_schemas.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/content_management_services_versioning.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/content_management_services_versioning.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/content_management_types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/object_transform.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/object_transform.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/lib/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bcd15a71937b1..31c11fa7e1797 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -394,7 +394,6 @@ packages/kbn-manifest @elastic/kibana-core packages/kbn-mapbox-gl @elastic/kibana-presentation packages/kbn-mock-idp-plugin @elastic/kibana-security packages/kbn-mock-idp-utils @elastic/kibana-security -packages/kbn-object-versioning @elastic/appex-sharedux packages/kbn-object-versioning-utils @elastic/appex-sharedux packages/kbn-openapi-bundler @elastic/security-detection-rule-management packages/kbn-openapi-common @elastic/security-detection-rule-management @@ -621,6 +620,7 @@ src/platform/packages/shared/kbn-guided-onboarding @elastic/appex-sharedux src/platform/packages/shared/kbn-management/settings/section_registry @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/setting_ids @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/kbn-monaco @elastic/appex-sharedux +src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index 6c332ea13eeb0..556ae8bcaaece 100644 --- a/package.json +++ b/package.json @@ -690,7 +690,7 @@ "@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/platform/plugins/shared/notifications", - "@kbn/object-versioning": "link:packages/kbn-object-versioning", + "@kbn/object-versioning": "link:src/platform/packages/shared/kbn-object-versioning", "@kbn/object-versioning-utils": "link:packages/kbn-object-versioning-utils", "@kbn/observability-ai-assistant-app-plugin": "link:x-pack/plugins/observability_solution/observability_ai_assistant_app", "@kbn/observability-ai-assistant-management-plugin": "link:x-pack/plugins/observability_solution/observability_ai_assistant_management", diff --git a/packages/kbn-object-versioning/README.md b/src/platform/packages/shared/kbn-object-versioning/README.md similarity index 100% rename from packages/kbn-object-versioning/README.md rename to src/platform/packages/shared/kbn-object-versioning/README.md diff --git a/packages/kbn-object-versioning/index.ts b/src/platform/packages/shared/kbn-object-versioning/index.ts similarity index 100% rename from packages/kbn-object-versioning/index.ts rename to src/platform/packages/shared/kbn-object-versioning/index.ts diff --git a/packages/kbn-object-versioning/jest.config.js b/src/platform/packages/shared/kbn-object-versioning/jest.config.js similarity index 83% rename from packages/kbn-object-versioning/jest.config.js rename to src/platform/packages/shared/kbn-object-versioning/jest.config.js index 0225ef1c7d558..8c220af8b827e 100644 --- a/packages/kbn-object-versioning/jest.config.js +++ b/src/platform/packages/shared/kbn-object-versioning/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-object-versioning'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-object-versioning'], }; diff --git a/packages/kbn-object-versioning/kibana.jsonc b/src/platform/packages/shared/kbn-object-versioning/kibana.jsonc similarity index 100% rename from packages/kbn-object-versioning/kibana.jsonc rename to src/platform/packages/shared/kbn-object-versioning/kibana.jsonc diff --git a/packages/kbn-object-versioning/lib/content_management_services_schemas.ts b/src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_schemas.ts similarity index 100% rename from packages/kbn-object-versioning/lib/content_management_services_schemas.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_schemas.ts diff --git a/packages/kbn-object-versioning/lib/content_management_services_versioning.test.ts b/src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.test.ts similarity index 100% rename from packages/kbn-object-versioning/lib/content_management_services_versioning.test.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.test.ts diff --git a/packages/kbn-object-versioning/lib/content_management_services_versioning.ts b/src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts similarity index 100% rename from packages/kbn-object-versioning/lib/content_management_services_versioning.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/content_management_services_versioning.ts diff --git a/packages/kbn-object-versioning/lib/content_management_types.ts b/src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts similarity index 100% rename from packages/kbn-object-versioning/lib/content_management_types.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/content_management_types.ts diff --git a/packages/kbn-object-versioning/lib/index.ts b/src/platform/packages/shared/kbn-object-versioning/lib/index.ts similarity index 100% rename from packages/kbn-object-versioning/lib/index.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/index.ts diff --git a/packages/kbn-object-versioning/lib/object_transform.test.ts b/src/platform/packages/shared/kbn-object-versioning/lib/object_transform.test.ts similarity index 100% rename from packages/kbn-object-versioning/lib/object_transform.test.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/object_transform.test.ts diff --git a/packages/kbn-object-versioning/lib/object_transform.ts b/src/platform/packages/shared/kbn-object-versioning/lib/object_transform.ts similarity index 100% rename from packages/kbn-object-versioning/lib/object_transform.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/object_transform.ts diff --git a/packages/kbn-object-versioning/lib/types.ts b/src/platform/packages/shared/kbn-object-versioning/lib/types.ts similarity index 100% rename from packages/kbn-object-versioning/lib/types.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/types.ts diff --git a/packages/kbn-object-versioning/lib/utils.test.ts b/src/platform/packages/shared/kbn-object-versioning/lib/utils.test.ts similarity index 100% rename from packages/kbn-object-versioning/lib/utils.test.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/utils.test.ts diff --git a/packages/kbn-object-versioning/lib/utils.ts b/src/platform/packages/shared/kbn-object-versioning/lib/utils.ts similarity index 100% rename from packages/kbn-object-versioning/lib/utils.ts rename to src/platform/packages/shared/kbn-object-versioning/lib/utils.ts diff --git a/packages/kbn-object-versioning/package.json b/src/platform/packages/shared/kbn-object-versioning/package.json similarity index 100% rename from packages/kbn-object-versioning/package.json rename to src/platform/packages/shared/kbn-object-versioning/package.json diff --git a/packages/kbn-object-versioning/tsconfig.json b/src/platform/packages/shared/kbn-object-versioning/tsconfig.json similarity index 86% rename from packages/kbn-object-versioning/tsconfig.json rename to src/platform/packages/shared/kbn-object-versioning/tsconfig.json index 42c549aef3ce6..9a1a1dc90827d 100644 --- a/packages/kbn-object-versioning/tsconfig.json +++ b/src/platform/packages/shared/kbn-object-versioning/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index aee317ef46dee..c67a59d4ab360 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1312,8 +1312,8 @@ "@kbn/no-data-page-plugin/*": ["src/platform/plugins/private/no_data_page/*"], "@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": ["src/platform/packages/shared/kbn-object-versioning"], + "@kbn/object-versioning/*": ["src/platform/packages/shared/kbn-object-versioning/*"], "@kbn/object-versioning-utils": ["packages/kbn-object-versioning-utils"], "@kbn/object-versioning-utils/*": ["packages/kbn-object-versioning-utils/*"], "@kbn/observability-ai-assistant-app-plugin": ["x-pack/plugins/observability_solution/observability_ai_assistant_app"], diff --git a/yarn.lock b/yarn.lock index edd95824e8f6a..213372b48c6af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6444,7 +6444,7 @@ version "0.0.0" uid "" -"@kbn/object-versioning@link:packages/kbn-object-versioning": +"@kbn/object-versioning@link:src/platform/packages/shared/kbn-object-versioning": version "0.0.0" uid "" From be7d9b001589a629358e4ddecbf5305961ebde3d Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:15:32 +0100 Subject: [PATCH 045/129] Relocating module `@kbn/object-versioning-utils` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/kbn-object-versioning-utils/README.md | 0 .../packages/shared}/kbn-object-versioning-utils/index.ts | 0 .../shared}/kbn-object-versioning-utils/jest.config.js | 4 ++-- .../packages/shared}/kbn-object-versioning-utils/kibana.jsonc | 0 .../kbn-object-versioning-utils/lib/validate_version.ts | 0 .../packages/shared}/kbn-object-versioning-utils/package.json | 0 .../shared}/kbn-object-versioning-utils/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-object-versioning-utils/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning-utils/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning-utils/jest.config.js (82%) rename {packages => src/platform/packages/shared}/kbn-object-versioning-utils/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning-utils/lib/validate_version.ts (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning-utils/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-object-versioning-utils/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 31c11fa7e1797..6a036d5513b47 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -394,7 +394,6 @@ packages/kbn-manifest @elastic/kibana-core packages/kbn-mapbox-gl @elastic/kibana-presentation packages/kbn-mock-idp-plugin @elastic/kibana-security packages/kbn-mock-idp-utils @elastic/kibana-security -packages/kbn-object-versioning-utils @elastic/appex-sharedux packages/kbn-openapi-bundler @elastic/security-detection-rule-management packages/kbn-openapi-common @elastic/security-detection-rule-management packages/kbn-openapi-generator @elastic/security-detection-rule-management @@ -621,6 +620,7 @@ src/platform/packages/shared/kbn-management/settings/section_registry @elastic/a src/platform/packages/shared/kbn-management/settings/setting_ids @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/kbn-monaco @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux +src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index 556ae8bcaaece..fab8209f4cb69 100644 --- a/package.json +++ b/package.json @@ -691,7 +691,7 @@ "@kbn/no-data-page-plugin": "link:src/platform/plugins/private/no_data_page", "@kbn/notifications-plugin": "link:x-pack/platform/plugins/shared/notifications", "@kbn/object-versioning": "link:src/platform/packages/shared/kbn-object-versioning", - "@kbn/object-versioning-utils": "link:packages/kbn-object-versioning-utils", + "@kbn/object-versioning-utils": "link:src/platform/packages/shared/kbn-object-versioning-utils", "@kbn/observability-ai-assistant-app-plugin": "link:x-pack/plugins/observability_solution/observability_ai_assistant_app", "@kbn/observability-ai-assistant-management-plugin": "link:x-pack/plugins/observability_solution/observability_ai_assistant_management", "@kbn/observability-ai-assistant-plugin": "link:x-pack/plugins/observability_solution/observability_ai_assistant", diff --git a/packages/kbn-object-versioning-utils/README.md b/src/platform/packages/shared/kbn-object-versioning-utils/README.md similarity index 100% rename from packages/kbn-object-versioning-utils/README.md rename to src/platform/packages/shared/kbn-object-versioning-utils/README.md diff --git a/packages/kbn-object-versioning-utils/index.ts b/src/platform/packages/shared/kbn-object-versioning-utils/index.ts similarity index 100% rename from packages/kbn-object-versioning-utils/index.ts rename to src/platform/packages/shared/kbn-object-versioning-utils/index.ts diff --git a/packages/kbn-object-versioning-utils/jest.config.js b/src/platform/packages/shared/kbn-object-versioning-utils/jest.config.js similarity index 82% rename from packages/kbn-object-versioning-utils/jest.config.js rename to src/platform/packages/shared/kbn-object-versioning-utils/jest.config.js index 023d501f8398f..71e13d72ebfc5 100644 --- a/packages/kbn-object-versioning-utils/jest.config.js +++ b/src/platform/packages/shared/kbn-object-versioning-utils/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-object-versioning-utils'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-object-versioning-utils'], }; diff --git a/packages/kbn-object-versioning-utils/kibana.jsonc b/src/platform/packages/shared/kbn-object-versioning-utils/kibana.jsonc similarity index 100% rename from packages/kbn-object-versioning-utils/kibana.jsonc rename to src/platform/packages/shared/kbn-object-versioning-utils/kibana.jsonc diff --git a/packages/kbn-object-versioning-utils/lib/validate_version.ts b/src/platform/packages/shared/kbn-object-versioning-utils/lib/validate_version.ts similarity index 100% rename from packages/kbn-object-versioning-utils/lib/validate_version.ts rename to src/platform/packages/shared/kbn-object-versioning-utils/lib/validate_version.ts diff --git a/packages/kbn-object-versioning-utils/package.json b/src/platform/packages/shared/kbn-object-versioning-utils/package.json similarity index 100% rename from packages/kbn-object-versioning-utils/package.json rename to src/platform/packages/shared/kbn-object-versioning-utils/package.json diff --git a/packages/kbn-object-versioning-utils/tsconfig.json b/src/platform/packages/shared/kbn-object-versioning-utils/tsconfig.json similarity index 82% rename from packages/kbn-object-versioning-utils/tsconfig.json rename to src/platform/packages/shared/kbn-object-versioning-utils/tsconfig.json index a9e9e3ad3baac..bb7b89b5671a0 100644 --- a/packages/kbn-object-versioning-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-object-versioning-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c67a59d4ab360..dbed212e4009f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1314,8 +1314,8 @@ "@kbn/notifications-plugin/*": ["x-pack/platform/plugins/shared/notifications/*"], "@kbn/object-versioning": ["src/platform/packages/shared/kbn-object-versioning"], "@kbn/object-versioning/*": ["src/platform/packages/shared/kbn-object-versioning/*"], - "@kbn/object-versioning-utils": ["packages/kbn-object-versioning-utils"], - "@kbn/object-versioning-utils/*": ["packages/kbn-object-versioning-utils/*"], + "@kbn/object-versioning-utils": ["src/platform/packages/shared/kbn-object-versioning-utils"], + "@kbn/object-versioning-utils/*": ["src/platform/packages/shared/kbn-object-versioning-utils/*"], "@kbn/observability-ai-assistant-app-plugin": ["x-pack/plugins/observability_solution/observability_ai_assistant_app"], "@kbn/observability-ai-assistant-app-plugin/*": ["x-pack/plugins/observability_solution/observability_ai_assistant_app/*"], "@kbn/observability-ai-assistant-management-plugin": ["x-pack/plugins/observability_solution/observability_ai_assistant_management"], diff --git a/yarn.lock b/yarn.lock index 213372b48c6af..cc9ad9ccc3ef8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6440,7 +6440,7 @@ version "0.0.0" uid "" -"@kbn/object-versioning-utils@link:packages/kbn-object-versioning-utils": +"@kbn/object-versioning-utils@link:src/platform/packages/shared/kbn-object-versioning-utils": version "0.0.0" uid "" From 40fedd5ad69af5f45b78d2c27fe38560a4b3174c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:17:01 +0100 Subject: [PATCH 046/129] Relocating module `@kbn/react-kibana-context-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- packages/react/kibana_context/theme/BUILD.bazel | 2 +- .../packages/shared}/react/kibana_context/common/BUILD.bazel | 0 .../packages/shared}/react/kibana_context/common/README.mdx | 0 .../shared}/react/kibana_context/common/color_mode.test.ts | 0 .../shared}/react/kibana_context/common/color_mode.ts | 0 .../packages/shared}/react/kibana_context/common/index.ts | 0 .../shared}/react/kibana_context/common/jest.config.js | 4 ++-- .../packages/shared}/react/kibana_context/common/kibana.jsonc | 0 .../packages/shared}/react/kibana_context/common/package.json | 0 .../packages/shared}/react/kibana_context/common/theme.ts | 0 .../shared}/react/kibana_context/common/tsconfig.json | 2 +- .../packages/shared}/react/kibana_context/common/types.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 16 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/react/kibana_context/common/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/README.mdx (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/color_mode.test.ts (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/color_mode.ts (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/index.ts (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/jest.config.js (81%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/package.json (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/theme.ts (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/tsconfig.json (78%) rename {packages => src/platform/packages/shared}/react/kibana_context/common/types.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6a036d5513b47..8bc7199aaf320 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -525,7 +525,6 @@ packages/kbn-zod @elastic/kibana-core packages/kbn-zod-helpers @elastic/security-detection-rule-management packages/presentation/presentation_containers @elastic/kibana-presentation packages/presentation/presentation_publishing @elastic/kibana-presentation -packages/react/kibana_context/common @elastic/appex-sharedux packages/react/kibana_context/render @elastic/appex-sharedux packages/react/kibana_context/root @elastic/appex-sharedux packages/react/kibana_context/styled @elastic/appex-sharedux @@ -621,6 +620,7 @@ src/platform/packages/shared/kbn-management/settings/setting_ids @elastic/appex- src/platform/packages/shared/kbn-monaco @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux +src/platform/packages/shared/react/kibana_context/common @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index fab8209f4cb69..d4716e7a73678 100644 --- a/package.json +++ b/package.json @@ -732,7 +732,7 @@ "@kbn/random-sampling": "link:x-pack/packages/kbn-random-sampling", "@kbn/react-field": "link:packages/kbn-react-field", "@kbn/react-hooks": "link:packages/kbn-react-hooks", - "@kbn/react-kibana-context-common": "link:packages/react/kibana_context/common", + "@kbn/react-kibana-context-common": "link:src/platform/packages/shared/react/kibana_context/common", "@kbn/react-kibana-context-render": "link:packages/react/kibana_context/render", "@kbn/react-kibana-context-root": "link:packages/react/kibana_context/root", "@kbn/react-kibana-context-styled": "link:packages/react/kibana_context/styled", diff --git a/packages/react/kibana_context/theme/BUILD.bazel b/packages/react/kibana_context/theme/BUILD.bazel index 504477ad7a0ed..a4b3025145520 100644 --- a/packages/react/kibana_context/theme/BUILD.bazel +++ b/packages/react/kibana_context/theme/BUILD.bazel @@ -25,7 +25,7 @@ BUNDLER_DEPS = [ "@npm//react", "@npm//tslib", "@npm//react-use", - "//packages/react/kibana_context/common", + "//src/platform/packages/shared/react/kibana_context/common", "//packages/react/kibana_context/root", ] diff --git a/packages/react/kibana_context/common/BUILD.bazel b/src/platform/packages/shared/react/kibana_context/common/BUILD.bazel similarity index 100% rename from packages/react/kibana_context/common/BUILD.bazel rename to src/platform/packages/shared/react/kibana_context/common/BUILD.bazel diff --git a/packages/react/kibana_context/common/README.mdx b/src/platform/packages/shared/react/kibana_context/common/README.mdx similarity index 100% rename from packages/react/kibana_context/common/README.mdx rename to src/platform/packages/shared/react/kibana_context/common/README.mdx diff --git a/packages/react/kibana_context/common/color_mode.test.ts b/src/platform/packages/shared/react/kibana_context/common/color_mode.test.ts similarity index 100% rename from packages/react/kibana_context/common/color_mode.test.ts rename to src/platform/packages/shared/react/kibana_context/common/color_mode.test.ts diff --git a/packages/react/kibana_context/common/color_mode.ts b/src/platform/packages/shared/react/kibana_context/common/color_mode.ts similarity index 100% rename from packages/react/kibana_context/common/color_mode.ts rename to src/platform/packages/shared/react/kibana_context/common/color_mode.ts diff --git a/packages/react/kibana_context/common/index.ts b/src/platform/packages/shared/react/kibana_context/common/index.ts similarity index 100% rename from packages/react/kibana_context/common/index.ts rename to src/platform/packages/shared/react/kibana_context/common/index.ts diff --git a/packages/react/kibana_context/common/jest.config.js b/src/platform/packages/shared/react/kibana_context/common/jest.config.js similarity index 81% rename from packages/react/kibana_context/common/jest.config.js rename to src/platform/packages/shared/react/kibana_context/common/jest.config.js index 708e43e399a34..8954155118131 100644 --- a/packages/react/kibana_context/common/jest.config.js +++ b/src/platform/packages/shared/react/kibana_context/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/react/kibana_context/common'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/react/kibana_context/common'], }; diff --git a/packages/react/kibana_context/common/kibana.jsonc b/src/platform/packages/shared/react/kibana_context/common/kibana.jsonc similarity index 100% rename from packages/react/kibana_context/common/kibana.jsonc rename to src/platform/packages/shared/react/kibana_context/common/kibana.jsonc diff --git a/packages/react/kibana_context/common/package.json b/src/platform/packages/shared/react/kibana_context/common/package.json similarity index 100% rename from packages/react/kibana_context/common/package.json rename to src/platform/packages/shared/react/kibana_context/common/package.json diff --git a/packages/react/kibana_context/common/theme.ts b/src/platform/packages/shared/react/kibana_context/common/theme.ts similarity index 100% rename from packages/react/kibana_context/common/theme.ts rename to src/platform/packages/shared/react/kibana_context/common/theme.ts diff --git a/packages/react/kibana_context/common/tsconfig.json b/src/platform/packages/shared/react/kibana_context/common/tsconfig.json similarity index 78% rename from packages/react/kibana_context/common/tsconfig.json rename to src/platform/packages/shared/react/kibana_context/common/tsconfig.json index 0d78dace105e1..d3b1bb09783b7 100644 --- a/packages/react/kibana_context/common/tsconfig.json +++ b/src/platform/packages/shared/react/kibana_context/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/react/kibana_context/common/types.ts b/src/platform/packages/shared/react/kibana_context/common/types.ts similarity index 100% rename from packages/react/kibana_context/common/types.ts rename to src/platform/packages/shared/react/kibana_context/common/types.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index dbed212e4009f..bdfd1572fefc5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1420,8 +1420,8 @@ "@kbn/react-field/*": ["packages/kbn-react-field/*"], "@kbn/react-hooks": ["packages/kbn-react-hooks"], "@kbn/react-hooks/*": ["packages/kbn-react-hooks/*"], - "@kbn/react-kibana-context-common": ["packages/react/kibana_context/common"], - "@kbn/react-kibana-context-common/*": ["packages/react/kibana_context/common/*"], + "@kbn/react-kibana-context-common": ["src/platform/packages/shared/react/kibana_context/common"], + "@kbn/react-kibana-context-common/*": ["src/platform/packages/shared/react/kibana_context/common/*"], "@kbn/react-kibana-context-render": ["packages/react/kibana_context/render"], "@kbn/react-kibana-context-render/*": ["packages/react/kibana_context/render/*"], "@kbn/react-kibana-context-root": ["packages/react/kibana_context/root"], diff --git a/yarn.lock b/yarn.lock index cc9ad9ccc3ef8..0c871d42382e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6656,7 +6656,7 @@ version "0.0.0" uid "" -"@kbn/react-kibana-context-common@link:packages/react/kibana_context/common": +"@kbn/react-kibana-context-common@link:src/platform/packages/shared/react/kibana_context/common": version "0.0.0" uid "" From 0ceebfdd176efc06e38d3c090d493d873d6b9917 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:18:29 +0100 Subject: [PATCH 047/129] Relocating module `@kbn/react-kibana-context-render` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/react/kibana_context/render/README.mdx | 0 .../packages/shared}/react/kibana_context/render/index.ts | 0 .../shared}/react/kibana_context/render/jest.config.js | 4 ++-- .../packages/shared}/react/kibana_context/render/kibana.jsonc | 0 .../packages/shared}/react/kibana_context/render/package.json | 0 .../shared}/react/kibana_context/render/render_provider.tsx | 0 .../shared}/react/kibana_context/render/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/react/kibana_context/render/README.mdx (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/render/index.ts (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/render/jest.config.js (81%) rename {packages => src/platform/packages/shared}/react/kibana_context/render/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/render/package.json (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/render/render_provider.tsx (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/render/tsconfig.json (84%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8bc7199aaf320..5fb5872d08fa1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -525,7 +525,6 @@ packages/kbn-zod @elastic/kibana-core packages/kbn-zod-helpers @elastic/security-detection-rule-management packages/presentation/presentation_containers @elastic/kibana-presentation packages/presentation/presentation_publishing @elastic/kibana-presentation -packages/react/kibana_context/render @elastic/appex-sharedux packages/react/kibana_context/root @elastic/appex-sharedux packages/react/kibana_context/styled @elastic/appex-sharedux packages/react/kibana_context/theme @elastic/appex-sharedux @@ -621,6 +620,7 @@ src/platform/packages/shared/kbn-monaco @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/common @elastic/appex-sharedux +src/platform/packages/shared/react/kibana_context/render @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index d4716e7a73678..2cdf324b90fc7 100644 --- a/package.json +++ b/package.json @@ -733,7 +733,7 @@ "@kbn/react-field": "link:packages/kbn-react-field", "@kbn/react-hooks": "link:packages/kbn-react-hooks", "@kbn/react-kibana-context-common": "link:src/platform/packages/shared/react/kibana_context/common", - "@kbn/react-kibana-context-render": "link:packages/react/kibana_context/render", + "@kbn/react-kibana-context-render": "link:src/platform/packages/shared/react/kibana_context/render", "@kbn/react-kibana-context-root": "link:packages/react/kibana_context/root", "@kbn/react-kibana-context-styled": "link:packages/react/kibana_context/styled", "@kbn/react-kibana-context-theme": "link:packages/react/kibana_context/theme", diff --git a/packages/react/kibana_context/render/README.mdx b/src/platform/packages/shared/react/kibana_context/render/README.mdx similarity index 100% rename from packages/react/kibana_context/render/README.mdx rename to src/platform/packages/shared/react/kibana_context/render/README.mdx diff --git a/packages/react/kibana_context/render/index.ts b/src/platform/packages/shared/react/kibana_context/render/index.ts similarity index 100% rename from packages/react/kibana_context/render/index.ts rename to src/platform/packages/shared/react/kibana_context/render/index.ts diff --git a/packages/react/kibana_context/render/jest.config.js b/src/platform/packages/shared/react/kibana_context/render/jest.config.js similarity index 81% rename from packages/react/kibana_context/render/jest.config.js rename to src/platform/packages/shared/react/kibana_context/render/jest.config.js index c02768dbba623..161ae1d54dda7 100644 --- a/packages/react/kibana_context/render/jest.config.js +++ b/src/platform/packages/shared/react/kibana_context/render/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/react/kibana_context/render'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/react/kibana_context/render'], }; diff --git a/packages/react/kibana_context/render/kibana.jsonc b/src/platform/packages/shared/react/kibana_context/render/kibana.jsonc similarity index 100% rename from packages/react/kibana_context/render/kibana.jsonc rename to src/platform/packages/shared/react/kibana_context/render/kibana.jsonc diff --git a/packages/react/kibana_context/render/package.json b/src/platform/packages/shared/react/kibana_context/render/package.json similarity index 100% rename from packages/react/kibana_context/render/package.json rename to src/platform/packages/shared/react/kibana_context/render/package.json diff --git a/packages/react/kibana_context/render/render_provider.tsx b/src/platform/packages/shared/react/kibana_context/render/render_provider.tsx similarity index 100% rename from packages/react/kibana_context/render/render_provider.tsx rename to src/platform/packages/shared/react/kibana_context/render/render_provider.tsx diff --git a/packages/react/kibana_context/render/tsconfig.json b/src/platform/packages/shared/react/kibana_context/render/tsconfig.json similarity index 84% rename from packages/react/kibana_context/render/tsconfig.json rename to src/platform/packages/shared/react/kibana_context/render/tsconfig.json index 479f1a0ea50b1..65684da360349 100644 --- a/packages/react/kibana_context/render/tsconfig.json +++ b/src/platform/packages/shared/react/kibana_context/render/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index bdfd1572fefc5..fe5289c12eb7d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1422,8 +1422,8 @@ "@kbn/react-hooks/*": ["packages/kbn-react-hooks/*"], "@kbn/react-kibana-context-common": ["src/platform/packages/shared/react/kibana_context/common"], "@kbn/react-kibana-context-common/*": ["src/platform/packages/shared/react/kibana_context/common/*"], - "@kbn/react-kibana-context-render": ["packages/react/kibana_context/render"], - "@kbn/react-kibana-context-render/*": ["packages/react/kibana_context/render/*"], + "@kbn/react-kibana-context-render": ["src/platform/packages/shared/react/kibana_context/render"], + "@kbn/react-kibana-context-render/*": ["src/platform/packages/shared/react/kibana_context/render/*"], "@kbn/react-kibana-context-root": ["packages/react/kibana_context/root"], "@kbn/react-kibana-context-root/*": ["packages/react/kibana_context/root/*"], "@kbn/react-kibana-context-styled": ["packages/react/kibana_context/styled"], diff --git a/yarn.lock b/yarn.lock index 0c871d42382e9..887d002f531f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6660,7 +6660,7 @@ version "0.0.0" uid "" -"@kbn/react-kibana-context-render@link:packages/react/kibana_context/render": +"@kbn/react-kibana-context-render@link:src/platform/packages/shared/react/kibana_context/render": version "0.0.0" uid "" From f1acbe225d33047f5c636ac071764c6879f34452 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:19:55 +0100 Subject: [PATCH 048/129] Relocating module `@kbn/react-kibana-context-root` --- .github/CODEOWNERS | 2 +- package.json | 2 +- packages/react/kibana_context/theme/BUILD.bazel | 2 +- .../packages/private}/react/kibana_context/root/BUILD.bazel | 0 .../packages/private}/react/kibana_context/root/README.mdx | 0 .../private}/react/kibana_context/root/eui_provider.test.tsx | 0 .../private}/react/kibana_context/root/eui_provider.tsx | 0 .../packages/private}/react/kibana_context/root/index.ts | 0 .../private}/react/kibana_context/root/jest.config.js | 4 ++-- .../packages/private}/react/kibana_context/root/kibana.jsonc | 0 .../packages/private}/react/kibana_context/root/package.json | 0 .../private}/react/kibana_context/root/root_provider.test.tsx | 0 .../private}/react/kibana_context/root/root_provider.tsx | 0 .../packages/private}/react/kibana_context/root/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 16 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/private}/react/kibana_context/root/BUILD.bazel (100%) rename {packages => src/platform/packages/private}/react/kibana_context/root/README.mdx (100%) rename {packages => src/platform/packages/private}/react/kibana_context/root/eui_provider.test.tsx (100%) rename {packages => src/platform/packages/private}/react/kibana_context/root/eui_provider.tsx (100%) rename {packages => src/platform/packages/private}/react/kibana_context/root/index.ts (100%) rename {packages => src/platform/packages/private}/react/kibana_context/root/jest.config.js (81%) rename {packages => src/platform/packages/private}/react/kibana_context/root/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/react/kibana_context/root/package.json (100%) rename {packages => src/platform/packages/private}/react/kibana_context/root/root_provider.test.tsx (100%) rename {packages => src/platform/packages/private}/react/kibana_context/root/root_provider.tsx (100%) rename {packages => src/platform/packages/private}/react/kibana_context/root/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5fb5872d08fa1..dd0d5afa9d687 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -525,7 +525,6 @@ packages/kbn-zod @elastic/kibana-core packages/kbn-zod-helpers @elastic/security-detection-rule-management packages/presentation/presentation_containers @elastic/kibana-presentation packages/presentation/presentation_publishing @elastic/kibana-presentation -packages/react/kibana_context/root @elastic/appex-sharedux packages/react/kibana_context/styled @elastic/appex-sharedux packages/react/kibana_context/theme @elastic/appex-sharedux packages/react/kibana_mount @elastic/appex-sharedux @@ -595,6 +594,7 @@ src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-generate-csv @elastic/appex-sharedux src/platform/packages/private/kbn-item-buffer @elastic/appex-sharedux src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql +src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index 2cdf324b90fc7..ab9f332ade445 100644 --- a/package.json +++ b/package.json @@ -734,7 +734,7 @@ "@kbn/react-hooks": "link:packages/kbn-react-hooks", "@kbn/react-kibana-context-common": "link:src/platform/packages/shared/react/kibana_context/common", "@kbn/react-kibana-context-render": "link:src/platform/packages/shared/react/kibana_context/render", - "@kbn/react-kibana-context-root": "link:packages/react/kibana_context/root", + "@kbn/react-kibana-context-root": "link:src/platform/packages/private/react/kibana_context/root", "@kbn/react-kibana-context-styled": "link:packages/react/kibana_context/styled", "@kbn/react-kibana-context-theme": "link:packages/react/kibana_context/theme", "@kbn/react-kibana-mount": "link:packages/react/kibana_mount", diff --git a/packages/react/kibana_context/theme/BUILD.bazel b/packages/react/kibana_context/theme/BUILD.bazel index a4b3025145520..088b0ad45b4ed 100644 --- a/packages/react/kibana_context/theme/BUILD.bazel +++ b/packages/react/kibana_context/theme/BUILD.bazel @@ -26,7 +26,7 @@ BUNDLER_DEPS = [ "@npm//tslib", "@npm//react-use", "//src/platform/packages/shared/react/kibana_context/common", - "//packages/react/kibana_context/root", + "//src/platform/packages/private/react/kibana_context/root", ] js_library( diff --git a/packages/react/kibana_context/root/BUILD.bazel b/src/platform/packages/private/react/kibana_context/root/BUILD.bazel similarity index 100% rename from packages/react/kibana_context/root/BUILD.bazel rename to src/platform/packages/private/react/kibana_context/root/BUILD.bazel diff --git a/packages/react/kibana_context/root/README.mdx b/src/platform/packages/private/react/kibana_context/root/README.mdx similarity index 100% rename from packages/react/kibana_context/root/README.mdx rename to src/platform/packages/private/react/kibana_context/root/README.mdx diff --git a/packages/react/kibana_context/root/eui_provider.test.tsx b/src/platform/packages/private/react/kibana_context/root/eui_provider.test.tsx similarity index 100% rename from packages/react/kibana_context/root/eui_provider.test.tsx rename to src/platform/packages/private/react/kibana_context/root/eui_provider.test.tsx diff --git a/packages/react/kibana_context/root/eui_provider.tsx b/src/platform/packages/private/react/kibana_context/root/eui_provider.tsx similarity index 100% rename from packages/react/kibana_context/root/eui_provider.tsx rename to src/platform/packages/private/react/kibana_context/root/eui_provider.tsx diff --git a/packages/react/kibana_context/root/index.ts b/src/platform/packages/private/react/kibana_context/root/index.ts similarity index 100% rename from packages/react/kibana_context/root/index.ts rename to src/platform/packages/private/react/kibana_context/root/index.ts diff --git a/packages/react/kibana_context/root/jest.config.js b/src/platform/packages/private/react/kibana_context/root/jest.config.js similarity index 81% rename from packages/react/kibana_context/root/jest.config.js rename to src/platform/packages/private/react/kibana_context/root/jest.config.js index b38b84714318d..f910b094004cc 100644 --- a/packages/react/kibana_context/root/jest.config.js +++ b/src/platform/packages/private/react/kibana_context/root/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/react/kibana_context/root'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/react/kibana_context/root'], }; diff --git a/packages/react/kibana_context/root/kibana.jsonc b/src/platform/packages/private/react/kibana_context/root/kibana.jsonc similarity index 100% rename from packages/react/kibana_context/root/kibana.jsonc rename to src/platform/packages/private/react/kibana_context/root/kibana.jsonc diff --git a/packages/react/kibana_context/root/package.json b/src/platform/packages/private/react/kibana_context/root/package.json similarity index 100% rename from packages/react/kibana_context/root/package.json rename to src/platform/packages/private/react/kibana_context/root/package.json diff --git a/packages/react/kibana_context/root/root_provider.test.tsx b/src/platform/packages/private/react/kibana_context/root/root_provider.test.tsx similarity index 100% rename from packages/react/kibana_context/root/root_provider.test.tsx rename to src/platform/packages/private/react/kibana_context/root/root_provider.test.tsx diff --git a/packages/react/kibana_context/root/root_provider.tsx b/src/platform/packages/private/react/kibana_context/root/root_provider.tsx similarity index 100% rename from packages/react/kibana_context/root/root_provider.tsx rename to src/platform/packages/private/react/kibana_context/root/root_provider.tsx diff --git a/packages/react/kibana_context/root/tsconfig.json b/src/platform/packages/private/react/kibana_context/root/tsconfig.json similarity index 90% rename from packages/react/kibana_context/root/tsconfig.json rename to src/platform/packages/private/react/kibana_context/root/tsconfig.json index a7606025552b8..e343ec6af830b 100644 --- a/packages/react/kibana_context/root/tsconfig.json +++ b/src/platform/packages/private/react/kibana_context/root/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index fe5289c12eb7d..50751e8553663 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1424,8 +1424,8 @@ "@kbn/react-kibana-context-common/*": ["src/platform/packages/shared/react/kibana_context/common/*"], "@kbn/react-kibana-context-render": ["src/platform/packages/shared/react/kibana_context/render"], "@kbn/react-kibana-context-render/*": ["src/platform/packages/shared/react/kibana_context/render/*"], - "@kbn/react-kibana-context-root": ["packages/react/kibana_context/root"], - "@kbn/react-kibana-context-root/*": ["packages/react/kibana_context/root/*"], + "@kbn/react-kibana-context-root": ["src/platform/packages/private/react/kibana_context/root"], + "@kbn/react-kibana-context-root/*": ["src/platform/packages/private/react/kibana_context/root/*"], "@kbn/react-kibana-context-styled": ["packages/react/kibana_context/styled"], "@kbn/react-kibana-context-styled/*": ["packages/react/kibana_context/styled/*"], "@kbn/react-kibana-context-theme": ["packages/react/kibana_context/theme"], diff --git a/yarn.lock b/yarn.lock index 887d002f531f4..c2e46315a9e09 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6664,7 +6664,7 @@ version "0.0.0" uid "" -"@kbn/react-kibana-context-root@link:packages/react/kibana_context/root": +"@kbn/react-kibana-context-root@link:src/platform/packages/private/react/kibana_context/root": version "0.0.0" uid "" From a1575f3884b8a315c967ed7b71d871661d12be6c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:21:25 +0100 Subject: [PATCH 049/129] Relocating module `@kbn/react-kibana-context-styled` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/react/kibana_context/styled/README.mdx | 0 .../packages/shared}/react/kibana_context/styled/index.ts | 0 .../shared}/react/kibana_context/styled/jest.config.js | 4 ++-- .../packages/shared}/react/kibana_context/styled/kibana.jsonc | 0 .../packages/shared}/react/kibana_context/styled/package.json | 0 .../shared}/react/kibana_context/styled/styled_provider.tsx | 0 .../shared}/react/kibana_context/styled/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/react/kibana_context/styled/README.mdx (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/styled/index.ts (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/styled/jest.config.js (81%) rename {packages => src/platform/packages/shared}/react/kibana_context/styled/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/styled/package.json (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/styled/styled_provider.tsx (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/styled/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dd0d5afa9d687..3d761de6cf125 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -525,7 +525,6 @@ packages/kbn-zod @elastic/kibana-core packages/kbn-zod-helpers @elastic/security-detection-rule-management packages/presentation/presentation_containers @elastic/kibana-presentation packages/presentation/presentation_publishing @elastic/kibana-presentation -packages/react/kibana_context/styled @elastic/appex-sharedux packages/react/kibana_context/theme @elastic/appex-sharedux packages/react/kibana_mount @elastic/appex-sharedux packages/response-ops/feature_flag_service @elastic/response-ops @@ -621,6 +620,7 @@ src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/common @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/render @elastic/appex-sharedux +src/platform/packages/shared/react/kibana_context/styled @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index ab9f332ade445..5cf7cf5c730d2 100644 --- a/package.json +++ b/package.json @@ -735,7 +735,7 @@ "@kbn/react-kibana-context-common": "link:src/platform/packages/shared/react/kibana_context/common", "@kbn/react-kibana-context-render": "link:src/platform/packages/shared/react/kibana_context/render", "@kbn/react-kibana-context-root": "link:src/platform/packages/private/react/kibana_context/root", - "@kbn/react-kibana-context-styled": "link:packages/react/kibana_context/styled", + "@kbn/react-kibana-context-styled": "link:src/platform/packages/shared/react/kibana_context/styled", "@kbn/react-kibana-context-theme": "link:packages/react/kibana_context/theme", "@kbn/react-kibana-mount": "link:packages/react/kibana_mount", "@kbn/recently-accessed": "link:packages/kbn-recently-accessed", diff --git a/packages/react/kibana_context/styled/README.mdx b/src/platform/packages/shared/react/kibana_context/styled/README.mdx similarity index 100% rename from packages/react/kibana_context/styled/README.mdx rename to src/platform/packages/shared/react/kibana_context/styled/README.mdx diff --git a/packages/react/kibana_context/styled/index.ts b/src/platform/packages/shared/react/kibana_context/styled/index.ts similarity index 100% rename from packages/react/kibana_context/styled/index.ts rename to src/platform/packages/shared/react/kibana_context/styled/index.ts diff --git a/packages/react/kibana_context/styled/jest.config.js b/src/platform/packages/shared/react/kibana_context/styled/jest.config.js similarity index 81% rename from packages/react/kibana_context/styled/jest.config.js rename to src/platform/packages/shared/react/kibana_context/styled/jest.config.js index d71954a615f5b..4939ca31ed107 100644 --- a/packages/react/kibana_context/styled/jest.config.js +++ b/src/platform/packages/shared/react/kibana_context/styled/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/react/kibana_context/styled'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/react/kibana_context/styled'], }; diff --git a/packages/react/kibana_context/styled/kibana.jsonc b/src/platform/packages/shared/react/kibana_context/styled/kibana.jsonc similarity index 100% rename from packages/react/kibana_context/styled/kibana.jsonc rename to src/platform/packages/shared/react/kibana_context/styled/kibana.jsonc diff --git a/packages/react/kibana_context/styled/package.json b/src/platform/packages/shared/react/kibana_context/styled/package.json similarity index 100% rename from packages/react/kibana_context/styled/package.json rename to src/platform/packages/shared/react/kibana_context/styled/package.json diff --git a/packages/react/kibana_context/styled/styled_provider.tsx b/src/platform/packages/shared/react/kibana_context/styled/styled_provider.tsx similarity index 100% rename from packages/react/kibana_context/styled/styled_provider.tsx rename to src/platform/packages/shared/react/kibana_context/styled/styled_provider.tsx diff --git a/packages/react/kibana_context/styled/tsconfig.json b/src/platform/packages/shared/react/kibana_context/styled/tsconfig.json similarity index 82% rename from packages/react/kibana_context/styled/tsconfig.json rename to src/platform/packages/shared/react/kibana_context/styled/tsconfig.json index fa8b369cdf3cb..6f3c23804f09d 100644 --- a/packages/react/kibana_context/styled/tsconfig.json +++ b/src/platform/packages/shared/react/kibana_context/styled/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 50751e8553663..721b580f824fd 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1426,8 +1426,8 @@ "@kbn/react-kibana-context-render/*": ["src/platform/packages/shared/react/kibana_context/render/*"], "@kbn/react-kibana-context-root": ["src/platform/packages/private/react/kibana_context/root"], "@kbn/react-kibana-context-root/*": ["src/platform/packages/private/react/kibana_context/root/*"], - "@kbn/react-kibana-context-styled": ["packages/react/kibana_context/styled"], - "@kbn/react-kibana-context-styled/*": ["packages/react/kibana_context/styled/*"], + "@kbn/react-kibana-context-styled": ["src/platform/packages/shared/react/kibana_context/styled"], + "@kbn/react-kibana-context-styled/*": ["src/platform/packages/shared/react/kibana_context/styled/*"], "@kbn/react-kibana-context-theme": ["packages/react/kibana_context/theme"], "@kbn/react-kibana-context-theme/*": ["packages/react/kibana_context/theme/*"], "@kbn/react-kibana-mount": ["packages/react/kibana_mount"], diff --git a/yarn.lock b/yarn.lock index c2e46315a9e09..37e61a4a7d1c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6668,7 +6668,7 @@ version "0.0.0" uid "" -"@kbn/react-kibana-context-styled@link:packages/react/kibana_context/styled": +"@kbn/react-kibana-context-styled@link:src/platform/packages/shared/react/kibana_context/styled": version "0.0.0" uid "" From d3f021562547a9d6fe474abc4cbbb577f2545cfb Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:22:53 +0100 Subject: [PATCH 050/129] Relocating module `@kbn/react-kibana-context-theme` --- .github/CODEOWNERS | 2 +- package.json | 2 +- packages/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../packages/shared}/react/kibana_context/theme/BUILD.bazel | 0 .../packages/shared}/react/kibana_context/theme/README.mdx | 0 .../packages/shared}/react/kibana_context/theme/index.ts | 0 .../shared}/react/kibana_context/theme/jest.config.js | 4 ++-- .../packages/shared}/react/kibana_context/theme/kibana.jsonc | 0 .../packages/shared}/react/kibana_context/theme/package.json | 0 .../react/kibana_context/theme/theme_provider.test.tsx | 0 .../shared}/react/kibana_context/theme/theme_provider.tsx | 0 .../packages/shared}/react/kibana_context/theme/tsconfig.json | 2 +- .../shared}/react/kibana_context/theme/with_theme.tsx | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/README.mdx (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/index.ts (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/jest.config.js (81%) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/package.json (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/theme_provider.test.tsx (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/theme_provider.tsx (100%) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/tsconfig.json (88%) rename {packages => src/platform/packages/shared}/react/kibana_context/theme/with_theme.tsx (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3d761de6cf125..df8f41afebee5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -525,7 +525,6 @@ packages/kbn-zod @elastic/kibana-core packages/kbn-zod-helpers @elastic/security-detection-rule-management packages/presentation/presentation_containers @elastic/kibana-presentation packages/presentation/presentation_publishing @elastic/kibana-presentation -packages/react/kibana_context/theme @elastic/appex-sharedux packages/react/kibana_mount @elastic/appex-sharedux packages/response-ops/feature_flag_service @elastic/response-ops packages/response-ops/rule_form @elastic/response-ops @@ -621,6 +620,7 @@ src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/common @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/render @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/styled @elastic/appex-sharedux +src/platform/packages/shared/react/kibana_context/theme @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index 5cf7cf5c730d2..06368f08c88d0 100644 --- a/package.json +++ b/package.json @@ -736,7 +736,7 @@ "@kbn/react-kibana-context-render": "link:src/platform/packages/shared/react/kibana_context/render", "@kbn/react-kibana-context-root": "link:src/platform/packages/private/react/kibana_context/root", "@kbn/react-kibana-context-styled": "link:src/platform/packages/shared/react/kibana_context/styled", - "@kbn/react-kibana-context-theme": "link:packages/react/kibana_context/theme", + "@kbn/react-kibana-context-theme": "link:src/platform/packages/shared/react/kibana_context/theme", "@kbn/react-kibana-mount": "link:packages/react/kibana_mount", "@kbn/recently-accessed": "link:packages/kbn-recently-accessed", "@kbn/remote-clusters-plugin": "link:x-pack/plugins/remote_clusters", diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel index eb9b68b80128b..d7aa41015a496 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel @@ -39,7 +39,7 @@ webpack_cli( "//packages/shared-ux/error_boundary", "//packages/kbn-rison", "//src/platform/packages/shared/shared-ux/code_editor/impl:code_editor", - "//packages/react/kibana_context/theme", + "//src/platform/packages/shared/react/kibana_context/theme", ], output_dir = True, args = [ diff --git a/packages/react/kibana_context/theme/BUILD.bazel b/src/platform/packages/shared/react/kibana_context/theme/BUILD.bazel similarity index 100% rename from packages/react/kibana_context/theme/BUILD.bazel rename to src/platform/packages/shared/react/kibana_context/theme/BUILD.bazel diff --git a/packages/react/kibana_context/theme/README.mdx b/src/platform/packages/shared/react/kibana_context/theme/README.mdx similarity index 100% rename from packages/react/kibana_context/theme/README.mdx rename to src/platform/packages/shared/react/kibana_context/theme/README.mdx diff --git a/packages/react/kibana_context/theme/index.ts b/src/platform/packages/shared/react/kibana_context/theme/index.ts similarity index 100% rename from packages/react/kibana_context/theme/index.ts rename to src/platform/packages/shared/react/kibana_context/theme/index.ts diff --git a/packages/react/kibana_context/theme/jest.config.js b/src/platform/packages/shared/react/kibana_context/theme/jest.config.js similarity index 81% rename from packages/react/kibana_context/theme/jest.config.js rename to src/platform/packages/shared/react/kibana_context/theme/jest.config.js index 3d6452df29f45..1963334905278 100644 --- a/packages/react/kibana_context/theme/jest.config.js +++ b/src/platform/packages/shared/react/kibana_context/theme/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/react/kibana_context/theme'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/react/kibana_context/theme'], }; diff --git a/packages/react/kibana_context/theme/kibana.jsonc b/src/platform/packages/shared/react/kibana_context/theme/kibana.jsonc similarity index 100% rename from packages/react/kibana_context/theme/kibana.jsonc rename to src/platform/packages/shared/react/kibana_context/theme/kibana.jsonc diff --git a/packages/react/kibana_context/theme/package.json b/src/platform/packages/shared/react/kibana_context/theme/package.json similarity index 100% rename from packages/react/kibana_context/theme/package.json rename to src/platform/packages/shared/react/kibana_context/theme/package.json diff --git a/packages/react/kibana_context/theme/theme_provider.test.tsx b/src/platform/packages/shared/react/kibana_context/theme/theme_provider.test.tsx similarity index 100% rename from packages/react/kibana_context/theme/theme_provider.test.tsx rename to src/platform/packages/shared/react/kibana_context/theme/theme_provider.test.tsx diff --git a/packages/react/kibana_context/theme/theme_provider.tsx b/src/platform/packages/shared/react/kibana_context/theme/theme_provider.tsx similarity index 100% rename from packages/react/kibana_context/theme/theme_provider.tsx rename to src/platform/packages/shared/react/kibana_context/theme/theme_provider.tsx diff --git a/packages/react/kibana_context/theme/tsconfig.json b/src/platform/packages/shared/react/kibana_context/theme/tsconfig.json similarity index 88% rename from packages/react/kibana_context/theme/tsconfig.json rename to src/platform/packages/shared/react/kibana_context/theme/tsconfig.json index cfc672666e4c0..720e386873d7b 100644 --- a/packages/react/kibana_context/theme/tsconfig.json +++ b/src/platform/packages/shared/react/kibana_context/theme/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/react/kibana_context/theme/with_theme.tsx b/src/platform/packages/shared/react/kibana_context/theme/with_theme.tsx similarity index 100% rename from packages/react/kibana_context/theme/with_theme.tsx rename to src/platform/packages/shared/react/kibana_context/theme/with_theme.tsx diff --git a/tsconfig.base.json b/tsconfig.base.json index 721b580f824fd..a1786945ddcaf 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1428,8 +1428,8 @@ "@kbn/react-kibana-context-root/*": ["src/platform/packages/private/react/kibana_context/root/*"], "@kbn/react-kibana-context-styled": ["src/platform/packages/shared/react/kibana_context/styled"], "@kbn/react-kibana-context-styled/*": ["src/platform/packages/shared/react/kibana_context/styled/*"], - "@kbn/react-kibana-context-theme": ["packages/react/kibana_context/theme"], - "@kbn/react-kibana-context-theme/*": ["packages/react/kibana_context/theme/*"], + "@kbn/react-kibana-context-theme": ["src/platform/packages/shared/react/kibana_context/theme"], + "@kbn/react-kibana-context-theme/*": ["src/platform/packages/shared/react/kibana_context/theme/*"], "@kbn/react-kibana-mount": ["packages/react/kibana_mount"], "@kbn/react-kibana-mount/*": ["packages/react/kibana_mount/*"], "@kbn/recently-accessed": ["packages/kbn-recently-accessed"], diff --git a/yarn.lock b/yarn.lock index 37e61a4a7d1c8..256699fdad90c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6672,7 +6672,7 @@ version "0.0.0" uid "" -"@kbn/react-kibana-context-theme@link:packages/react/kibana_context/theme": +"@kbn/react-kibana-context-theme@link:src/platform/packages/shared/react/kibana_context/theme": version "0.0.0" uid "" From 98faa32a92dba717a2eccd94a24579249d517623 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:24:21 +0100 Subject: [PATCH 051/129] Relocating module `@kbn/react-kibana-mount` --- .github/CODEOWNERS | 2 +- package.json | 2 +- packages/kbn-test/jest-preset.js | 2 +- .../platform/packages/shared}/react/kibana_mount/README.md | 0 .../platform/packages/shared}/react/kibana_mount/index.ts | 0 .../packages/shared}/react/kibana_mount/jest.config.js | 4 ++-- .../platform/packages/shared}/react/kibana_mount/kibana.jsonc | 0 .../shared}/react/kibana_mount/mount_point_portal.test.tsx | 0 .../shared}/react/kibana_mount/mount_point_portal.tsx | 0 .../platform/packages/shared}/react/kibana_mount/package.json | 0 .../react/kibana_mount/test_helpers/react_mount_serializer.ts | 0 .../shared}/react/kibana_mount/to_mount_point.test.tsx | 0 .../packages/shared}/react/kibana_mount/to_mount_point.tsx | 0 .../packages/shared}/react/kibana_mount/tsconfig.json | 2 +- .../platform/packages/shared}/react/kibana_mount/utils.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 17 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/react/kibana_mount/README.md (100%) rename {packages => src/platform/packages/shared}/react/kibana_mount/index.ts (100%) rename {packages => src/platform/packages/shared}/react/kibana_mount/jest.config.js (83%) rename {packages => src/platform/packages/shared}/react/kibana_mount/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/react/kibana_mount/mount_point_portal.test.tsx (100%) rename {packages => src/platform/packages/shared}/react/kibana_mount/mount_point_portal.tsx (100%) rename {packages => src/platform/packages/shared}/react/kibana_mount/package.json (100%) rename {packages => src/platform/packages/shared}/react/kibana_mount/test_helpers/react_mount_serializer.ts (100%) rename {packages => src/platform/packages/shared}/react/kibana_mount/to_mount_point.test.tsx (100%) rename {packages => src/platform/packages/shared}/react/kibana_mount/to_mount_point.tsx (100%) rename {packages => src/platform/packages/shared}/react/kibana_mount/tsconfig.json (89%) rename {packages => src/platform/packages/shared}/react/kibana_mount/utils.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index df8f41afebee5..48d617ab4e0a5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -525,7 +525,6 @@ packages/kbn-zod @elastic/kibana-core packages/kbn-zod-helpers @elastic/security-detection-rule-management packages/presentation/presentation_containers @elastic/kibana-presentation packages/presentation/presentation_publishing @elastic/kibana-presentation -packages/react/kibana_mount @elastic/appex-sharedux packages/response-ops/feature_flag_service @elastic/response-ops packages/response-ops/rule_form @elastic/response-ops packages/response-ops/rule_params @elastic/response-ops @@ -621,6 +620,7 @@ src/platform/packages/shared/react/kibana_context/common @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/render @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/styled @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/theme @elastic/appex-sharedux +src/platform/packages/shared/react/kibana_mount @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index 06368f08c88d0..705e0c1e61a86 100644 --- a/package.json +++ b/package.json @@ -737,7 +737,7 @@ "@kbn/react-kibana-context-root": "link:src/platform/packages/private/react/kibana_context/root", "@kbn/react-kibana-context-styled": "link:src/platform/packages/shared/react/kibana_context/styled", "@kbn/react-kibana-context-theme": "link:src/platform/packages/shared/react/kibana_context/theme", - "@kbn/react-kibana-mount": "link:packages/react/kibana_mount", + "@kbn/react-kibana-mount": "link:src/platform/packages/shared/react/kibana_mount", "@kbn/recently-accessed": "link:packages/kbn-recently-accessed", "@kbn/remote-clusters-plugin": "link:x-pack/plugins/remote_clusters", "@kbn/rendering-plugin": "link:test/plugin_functional/plugins/rendering_plugin", diff --git a/packages/kbn-test/jest-preset.js b/packages/kbn-test/jest-preset.js index 791ee4a974823..f311365360151 100644 --- a/packages/kbn-test/jest-preset.js +++ b/packages/kbn-test/jest-preset.js @@ -78,7 +78,7 @@ module.exports = { // A list of paths to snapshot serializer modules Jest should use for snapshot testing snapshotSerializers: [ - '/packages/react/kibana_mount/test_helpers/react_mount_serializer.ts', + '/src/platform/packages/shared/react/kibana_mount/test_helpers/react_mount_serializer.ts', 'enzyme-to-json/serializer', '/packages/kbn-test/src/jest/setup/emotion.js', ], diff --git a/packages/react/kibana_mount/README.md b/src/platform/packages/shared/react/kibana_mount/README.md similarity index 100% rename from packages/react/kibana_mount/README.md rename to src/platform/packages/shared/react/kibana_mount/README.md diff --git a/packages/react/kibana_mount/index.ts b/src/platform/packages/shared/react/kibana_mount/index.ts similarity index 100% rename from packages/react/kibana_mount/index.ts rename to src/platform/packages/shared/react/kibana_mount/index.ts diff --git a/packages/react/kibana_mount/jest.config.js b/src/platform/packages/shared/react/kibana_mount/jest.config.js similarity index 83% rename from packages/react/kibana_mount/jest.config.js rename to src/platform/packages/shared/react/kibana_mount/jest.config.js index bb607856d9376..c855005ddf41e 100644 --- a/packages/react/kibana_mount/jest.config.js +++ b/src/platform/packages/shared/react/kibana_mount/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/react/kibana_mount'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/react/kibana_mount'], }; diff --git a/packages/react/kibana_mount/kibana.jsonc b/src/platform/packages/shared/react/kibana_mount/kibana.jsonc similarity index 100% rename from packages/react/kibana_mount/kibana.jsonc rename to src/platform/packages/shared/react/kibana_mount/kibana.jsonc diff --git a/packages/react/kibana_mount/mount_point_portal.test.tsx b/src/platform/packages/shared/react/kibana_mount/mount_point_portal.test.tsx similarity index 100% rename from packages/react/kibana_mount/mount_point_portal.test.tsx rename to src/platform/packages/shared/react/kibana_mount/mount_point_portal.test.tsx diff --git a/packages/react/kibana_mount/mount_point_portal.tsx b/src/platform/packages/shared/react/kibana_mount/mount_point_portal.tsx similarity index 100% rename from packages/react/kibana_mount/mount_point_portal.tsx rename to src/platform/packages/shared/react/kibana_mount/mount_point_portal.tsx diff --git a/packages/react/kibana_mount/package.json b/src/platform/packages/shared/react/kibana_mount/package.json similarity index 100% rename from packages/react/kibana_mount/package.json rename to src/platform/packages/shared/react/kibana_mount/package.json diff --git a/packages/react/kibana_mount/test_helpers/react_mount_serializer.ts b/src/platform/packages/shared/react/kibana_mount/test_helpers/react_mount_serializer.ts similarity index 100% rename from packages/react/kibana_mount/test_helpers/react_mount_serializer.ts rename to src/platform/packages/shared/react/kibana_mount/test_helpers/react_mount_serializer.ts diff --git a/packages/react/kibana_mount/to_mount_point.test.tsx b/src/platform/packages/shared/react/kibana_mount/to_mount_point.test.tsx similarity index 100% rename from packages/react/kibana_mount/to_mount_point.test.tsx rename to src/platform/packages/shared/react/kibana_mount/to_mount_point.test.tsx diff --git a/packages/react/kibana_mount/to_mount_point.tsx b/src/platform/packages/shared/react/kibana_mount/to_mount_point.tsx similarity index 100% rename from packages/react/kibana_mount/to_mount_point.tsx rename to src/platform/packages/shared/react/kibana_mount/to_mount_point.tsx diff --git a/packages/react/kibana_mount/tsconfig.json b/src/platform/packages/shared/react/kibana_mount/tsconfig.json similarity index 89% rename from packages/react/kibana_mount/tsconfig.json rename to src/platform/packages/shared/react/kibana_mount/tsconfig.json index 8294fad813c28..4ea87e992fffb 100644 --- a/packages/react/kibana_mount/tsconfig.json +++ b/src/platform/packages/shared/react/kibana_mount/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/react/kibana_mount/utils.ts b/src/platform/packages/shared/react/kibana_mount/utils.ts similarity index 100% rename from packages/react/kibana_mount/utils.ts rename to src/platform/packages/shared/react/kibana_mount/utils.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index a1786945ddcaf..413214054ac89 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1430,8 +1430,8 @@ "@kbn/react-kibana-context-styled/*": ["src/platform/packages/shared/react/kibana_context/styled/*"], "@kbn/react-kibana-context-theme": ["src/platform/packages/shared/react/kibana_context/theme"], "@kbn/react-kibana-context-theme/*": ["src/platform/packages/shared/react/kibana_context/theme/*"], - "@kbn/react-kibana-mount": ["packages/react/kibana_mount"], - "@kbn/react-kibana-mount/*": ["packages/react/kibana_mount/*"], + "@kbn/react-kibana-mount": ["src/platform/packages/shared/react/kibana_mount"], + "@kbn/react-kibana-mount/*": ["src/platform/packages/shared/react/kibana_mount/*"], "@kbn/recently-accessed": ["packages/kbn-recently-accessed"], "@kbn/recently-accessed/*": ["packages/kbn-recently-accessed/*"], "@kbn/remote-clusters-plugin": ["x-pack/plugins/remote_clusters"], diff --git a/yarn.lock b/yarn.lock index 256699fdad90c..4c6358d930b6a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6676,7 +6676,7 @@ version "0.0.0" uid "" -"@kbn/react-kibana-mount@link:packages/react/kibana_mount": +"@kbn/react-kibana-mount@link:src/platform/packages/shared/react/kibana_mount": version "0.0.0" uid "" From 644ab4301246569565dffaf3f995872671ef179c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:25:50 +0100 Subject: [PATCH 052/129] Relocating module `@kbn/recently-accessed` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/kbn-recently-accessed/README.md | 0 .../platform/packages/shared}/kbn-recently-accessed/index.ts | 0 .../packages/shared}/kbn-recently-accessed/jest.config.js | 4 ++-- .../packages/shared}/kbn-recently-accessed/kibana.jsonc | 0 .../packages/shared}/kbn-recently-accessed/package.json | 0 .../shared}/kbn-recently-accessed/src/create_log_key.test.ts | 0 .../shared}/kbn-recently-accessed/src/create_log_key.ts | 0 .../packages/shared}/kbn-recently-accessed/src/index.ts | 0 .../shared}/kbn-recently-accessed/src/persisted_log.test.ts | 0 .../shared}/kbn-recently-accessed/src/persisted_log.ts | 0 .../src/recently_accessed_service.test.ts | 0 .../kbn-recently-accessed/src/recently_accessed_service.ts | 0 .../packages/shared}/kbn-recently-accessed/src/types.ts | 0 .../packages/shared}/kbn-recently-accessed/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/src/create_log_key.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/src/create_log_key.ts (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/src/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/src/persisted_log.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/src/persisted_log.ts (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/src/recently_accessed_service.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/src/recently_accessed_service.ts (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-recently-accessed/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 48d617ab4e0a5..9834de19d4747 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -411,7 +411,6 @@ packages/kbn-plugin-helpers @elastic/kibana-operations packages/kbn-profiling-utils @elastic/obs-ux-infra_services-team packages/kbn-react-field @elastic/kibana-data-discovery packages/kbn-react-hooks @elastic/obs-ux-logs-team -packages/kbn-recently-accessed @elastic/appex-sharedux packages/kbn-repo-file-maps @elastic/kibana-operations packages/kbn-repo-info @elastic/kibana-operations packages/kbn-repo-linter @elastic/kibana-operations @@ -616,6 +615,7 @@ src/platform/packages/shared/kbn-management/settings/setting_ids @elastic/appex- src/platform/packages/shared/kbn-monaco @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux +src/platform/packages/shared/kbn-recently-accessed @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/common @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/render @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/styled @elastic/appex-sharedux diff --git a/package.json b/package.json index 705e0c1e61a86..db15e3fb55855 100644 --- a/package.json +++ b/package.json @@ -738,7 +738,7 @@ "@kbn/react-kibana-context-styled": "link:src/platform/packages/shared/react/kibana_context/styled", "@kbn/react-kibana-context-theme": "link:src/platform/packages/shared/react/kibana_context/theme", "@kbn/react-kibana-mount": "link:src/platform/packages/shared/react/kibana_mount", - "@kbn/recently-accessed": "link:packages/kbn-recently-accessed", + "@kbn/recently-accessed": "link:src/platform/packages/shared/kbn-recently-accessed", "@kbn/remote-clusters-plugin": "link:x-pack/plugins/remote_clusters", "@kbn/rendering-plugin": "link:test/plugin_functional/plugins/rendering_plugin", "@kbn/repo-info": "link:packages/kbn-repo-info", diff --git a/packages/kbn-recently-accessed/README.md b/src/platform/packages/shared/kbn-recently-accessed/README.md similarity index 100% rename from packages/kbn-recently-accessed/README.md rename to src/platform/packages/shared/kbn-recently-accessed/README.md diff --git a/packages/kbn-recently-accessed/index.ts b/src/platform/packages/shared/kbn-recently-accessed/index.ts similarity index 100% rename from packages/kbn-recently-accessed/index.ts rename to src/platform/packages/shared/kbn-recently-accessed/index.ts diff --git a/packages/kbn-recently-accessed/jest.config.js b/src/platform/packages/shared/kbn-recently-accessed/jest.config.js similarity index 83% rename from packages/kbn-recently-accessed/jest.config.js rename to src/platform/packages/shared/kbn-recently-accessed/jest.config.js index c0627e470b95e..6349ac38208e8 100644 --- a/packages/kbn-recently-accessed/jest.config.js +++ b/src/platform/packages/shared/kbn-recently-accessed/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-recently-accessed'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-recently-accessed'], }; diff --git a/packages/kbn-recently-accessed/kibana.jsonc b/src/platform/packages/shared/kbn-recently-accessed/kibana.jsonc similarity index 100% rename from packages/kbn-recently-accessed/kibana.jsonc rename to src/platform/packages/shared/kbn-recently-accessed/kibana.jsonc diff --git a/packages/kbn-recently-accessed/package.json b/src/platform/packages/shared/kbn-recently-accessed/package.json similarity index 100% rename from packages/kbn-recently-accessed/package.json rename to src/platform/packages/shared/kbn-recently-accessed/package.json diff --git a/packages/kbn-recently-accessed/src/create_log_key.test.ts b/src/platform/packages/shared/kbn-recently-accessed/src/create_log_key.test.ts similarity index 100% rename from packages/kbn-recently-accessed/src/create_log_key.test.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/create_log_key.test.ts diff --git a/packages/kbn-recently-accessed/src/create_log_key.ts b/src/platform/packages/shared/kbn-recently-accessed/src/create_log_key.ts similarity index 100% rename from packages/kbn-recently-accessed/src/create_log_key.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/create_log_key.ts diff --git a/packages/kbn-recently-accessed/src/index.ts b/src/platform/packages/shared/kbn-recently-accessed/src/index.ts similarity index 100% rename from packages/kbn-recently-accessed/src/index.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/index.ts diff --git a/packages/kbn-recently-accessed/src/persisted_log.test.ts b/src/platform/packages/shared/kbn-recently-accessed/src/persisted_log.test.ts similarity index 100% rename from packages/kbn-recently-accessed/src/persisted_log.test.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/persisted_log.test.ts diff --git a/packages/kbn-recently-accessed/src/persisted_log.ts b/src/platform/packages/shared/kbn-recently-accessed/src/persisted_log.ts similarity index 100% rename from packages/kbn-recently-accessed/src/persisted_log.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/persisted_log.ts diff --git a/packages/kbn-recently-accessed/src/recently_accessed_service.test.ts b/src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.test.ts similarity index 100% rename from packages/kbn-recently-accessed/src/recently_accessed_service.test.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.test.ts diff --git a/packages/kbn-recently-accessed/src/recently_accessed_service.ts b/src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.ts similarity index 100% rename from packages/kbn-recently-accessed/src/recently_accessed_service.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/recently_accessed_service.ts diff --git a/packages/kbn-recently-accessed/src/types.ts b/src/platform/packages/shared/kbn-recently-accessed/src/types.ts similarity index 100% rename from packages/kbn-recently-accessed/src/types.ts rename to src/platform/packages/shared/kbn-recently-accessed/src/types.ts diff --git a/packages/kbn-recently-accessed/tsconfig.json b/src/platform/packages/shared/kbn-recently-accessed/tsconfig.json similarity index 85% rename from packages/kbn-recently-accessed/tsconfig.json rename to src/platform/packages/shared/kbn-recently-accessed/tsconfig.json index f6029007a4376..eed2fb275f20f 100644 --- a/packages/kbn-recently-accessed/tsconfig.json +++ b/src/platform/packages/shared/kbn-recently-accessed/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 413214054ac89..54e50928463ca 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1432,8 +1432,8 @@ "@kbn/react-kibana-context-theme/*": ["src/platform/packages/shared/react/kibana_context/theme/*"], "@kbn/react-kibana-mount": ["src/platform/packages/shared/react/kibana_mount"], "@kbn/react-kibana-mount/*": ["src/platform/packages/shared/react/kibana_mount/*"], - "@kbn/recently-accessed": ["packages/kbn-recently-accessed"], - "@kbn/recently-accessed/*": ["packages/kbn-recently-accessed/*"], + "@kbn/recently-accessed": ["src/platform/packages/shared/kbn-recently-accessed"], + "@kbn/recently-accessed/*": ["src/platform/packages/shared/kbn-recently-accessed/*"], "@kbn/remote-clusters-plugin": ["x-pack/plugins/remote_clusters"], "@kbn/remote-clusters-plugin/*": ["x-pack/plugins/remote_clusters/*"], "@kbn/rendering-plugin": ["test/plugin_functional/plugins/rendering_plugin"], diff --git a/yarn.lock b/yarn.lock index 4c6358d930b6a..40dbc6c9f9e1d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6680,7 +6680,7 @@ version "0.0.0" uid "" -"@kbn/recently-accessed@link:packages/kbn-recently-accessed": +"@kbn/recently-accessed@link:src/platform/packages/shared/kbn-recently-accessed": version "0.0.0" uid "" From a79dc8be447a09ca7119047f121cfe0f98160cc7 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:27:18 +0100 Subject: [PATCH 053/129] Relocating module `@kbn/reporting-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/private}/kbn-reporting/common/README.md | 0 .../private}/kbn-reporting/common/build_kibana_path.ts | 0 .../private}/kbn-reporting/common/cancellation_token.test.ts | 0 .../private}/kbn-reporting/common/cancellation_token.ts | 0 .../packages/private}/kbn-reporting/common/constants.ts | 0 .../packages/private}/kbn-reporting/common/errors.test.ts | 0 .../platform/packages/private}/kbn-reporting/common/errors.ts | 0 .../platform/packages/private}/kbn-reporting/common/index.ts | 0 .../packages/private}/kbn-reporting/common/jest.config.js | 4 ++-- .../packages/private}/kbn-reporting/common/kibana.jsonc | 0 .../packages/private}/kbn-reporting/common/package.json | 0 .../platform/packages/private}/kbn-reporting/common/routes.ts | 0 .../private}/kbn-reporting/common/schema_utils.test.ts | 0 .../packages/private}/kbn-reporting/common/schema_utils.ts | 0 .../packages/private}/kbn-reporting/common/tsconfig.json | 2 +- .../platform/packages/private}/kbn-reporting/common/types.ts | 2 +- .../platform/packages/private}/kbn-reporting/common/url.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/common/README.md (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/build_kibana_path.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/cancellation_token.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/cancellation_token.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/constants.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/errors.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/errors.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/jest.config.js (82%) rename {packages => src/platform/packages/private}/kbn-reporting/common/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/routes.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/schema_utils.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/schema_utils.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/common/tsconfig.json (87%) rename {packages => src/platform/packages/private}/kbn-reporting/common/types.ts (98%) rename {packages => src/platform/packages/private}/kbn-reporting/common/url.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9834de19d4747..dce382d9d1f1b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/common @elastic/appex-sharedux packages/kbn-reporting/export_types/csv @elastic/appex-sharedux packages/kbn-reporting/export_types/csv_common @elastic/appex-sharedux packages/kbn-reporting/export_types/pdf @elastic/appex-sharedux @@ -590,6 +589,7 @@ src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-generate-csv @elastic/appex-sharedux src/platform/packages/private/kbn-item-buffer @elastic/appex-sharedux src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql +src/platform/packages/private/kbn-reporting/common @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/package.json b/package.json index db15e3fb55855..5fc5b877c791f 100644 --- a/package.json +++ b/package.json @@ -743,7 +743,7 @@ "@kbn/rendering-plugin": "link:test/plugin_functional/plugins/rendering_plugin", "@kbn/repo-info": "link:packages/kbn-repo-info", "@kbn/repo-packages": "link:packages/kbn-repo-packages", - "@kbn/reporting-common": "link:packages/kbn-reporting/common", + "@kbn/reporting-common": "link:src/platform/packages/private/kbn-reporting/common", "@kbn/reporting-csv-share-panel": "link:packages/kbn-reporting/get_csv_panel_actions", "@kbn/reporting-export-types-csv": "link:packages/kbn-reporting/export_types/csv", "@kbn/reporting-export-types-csv-common": "link:packages/kbn-reporting/export_types/csv_common", diff --git a/packages/kbn-reporting/common/README.md b/src/platform/packages/private/kbn-reporting/common/README.md similarity index 100% rename from packages/kbn-reporting/common/README.md rename to src/platform/packages/private/kbn-reporting/common/README.md diff --git a/packages/kbn-reporting/common/build_kibana_path.ts b/src/platform/packages/private/kbn-reporting/common/build_kibana_path.ts similarity index 100% rename from packages/kbn-reporting/common/build_kibana_path.ts rename to src/platform/packages/private/kbn-reporting/common/build_kibana_path.ts diff --git a/packages/kbn-reporting/common/cancellation_token.test.ts b/src/platform/packages/private/kbn-reporting/common/cancellation_token.test.ts similarity index 100% rename from packages/kbn-reporting/common/cancellation_token.test.ts rename to src/platform/packages/private/kbn-reporting/common/cancellation_token.test.ts diff --git a/packages/kbn-reporting/common/cancellation_token.ts b/src/platform/packages/private/kbn-reporting/common/cancellation_token.ts similarity index 100% rename from packages/kbn-reporting/common/cancellation_token.ts rename to src/platform/packages/private/kbn-reporting/common/cancellation_token.ts diff --git a/packages/kbn-reporting/common/constants.ts b/src/platform/packages/private/kbn-reporting/common/constants.ts similarity index 100% rename from packages/kbn-reporting/common/constants.ts rename to src/platform/packages/private/kbn-reporting/common/constants.ts diff --git a/packages/kbn-reporting/common/errors.test.ts b/src/platform/packages/private/kbn-reporting/common/errors.test.ts similarity index 100% rename from packages/kbn-reporting/common/errors.test.ts rename to src/platform/packages/private/kbn-reporting/common/errors.test.ts diff --git a/packages/kbn-reporting/common/errors.ts b/src/platform/packages/private/kbn-reporting/common/errors.ts similarity index 100% rename from packages/kbn-reporting/common/errors.ts rename to src/platform/packages/private/kbn-reporting/common/errors.ts diff --git a/packages/kbn-reporting/common/index.ts b/src/platform/packages/private/kbn-reporting/common/index.ts similarity index 100% rename from packages/kbn-reporting/common/index.ts rename to src/platform/packages/private/kbn-reporting/common/index.ts diff --git a/packages/kbn-reporting/common/jest.config.js b/src/platform/packages/private/kbn-reporting/common/jest.config.js similarity index 82% rename from packages/kbn-reporting/common/jest.config.js rename to src/platform/packages/private/kbn-reporting/common/jest.config.js index 7a55082a390fc..84c9cc2064b80 100644 --- a/packages/kbn-reporting/common/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/kbn-reporting/common'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/common'], }; diff --git a/packages/kbn-reporting/common/kibana.jsonc b/src/platform/packages/private/kbn-reporting/common/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/common/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/common/kibana.jsonc diff --git a/packages/kbn-reporting/common/package.json b/src/platform/packages/private/kbn-reporting/common/package.json similarity index 100% rename from packages/kbn-reporting/common/package.json rename to src/platform/packages/private/kbn-reporting/common/package.json diff --git a/packages/kbn-reporting/common/routes.ts b/src/platform/packages/private/kbn-reporting/common/routes.ts similarity index 100% rename from packages/kbn-reporting/common/routes.ts rename to src/platform/packages/private/kbn-reporting/common/routes.ts diff --git a/packages/kbn-reporting/common/schema_utils.test.ts b/src/platform/packages/private/kbn-reporting/common/schema_utils.test.ts similarity index 100% rename from packages/kbn-reporting/common/schema_utils.test.ts rename to src/platform/packages/private/kbn-reporting/common/schema_utils.test.ts diff --git a/packages/kbn-reporting/common/schema_utils.ts b/src/platform/packages/private/kbn-reporting/common/schema_utils.ts similarity index 100% rename from packages/kbn-reporting/common/schema_utils.ts rename to src/platform/packages/private/kbn-reporting/common/schema_utils.ts diff --git a/packages/kbn-reporting/common/tsconfig.json b/src/platform/packages/private/kbn-reporting/common/tsconfig.json similarity index 87% rename from packages/kbn-reporting/common/tsconfig.json rename to src/platform/packages/private/kbn-reporting/common/tsconfig.json index 8210d93ad457c..00b1981facf18 100644 --- a/packages/kbn-reporting/common/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-reporting/common/types.ts b/src/platform/packages/private/kbn-reporting/common/types.ts similarity index 98% rename from packages/kbn-reporting/common/types.ts rename to src/platform/packages/private/kbn-reporting/common/types.ts index 18f817d2a6627..2b9aaa7b1c9f6 100644 --- a/packages/kbn-reporting/common/types.ts +++ b/src/platform/packages/private/kbn-reporting/common/types.ts @@ -57,7 +57,7 @@ export interface ReportOutput extends TaskRunResult { } /** - * @see also {@link packages/kbn-reporting/common/types.ts} + * @see also {@link src/platform/packages/private/kbn-reporting/common/types.ts} */ export type CsvPagingStrategy = 'pit' | 'scroll'; diff --git a/packages/kbn-reporting/common/url.ts b/src/platform/packages/private/kbn-reporting/common/url.ts similarity index 100% rename from packages/kbn-reporting/common/url.ts rename to src/platform/packages/private/kbn-reporting/common/url.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index 54e50928463ca..dd3b98594ba51 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1452,8 +1452,8 @@ "@kbn/repo-source-classifier/*": ["packages/kbn-repo-source-classifier/*"], "@kbn/repo-source-classifier-cli": ["packages/kbn-repo-source-classifier-cli"], "@kbn/repo-source-classifier-cli/*": ["packages/kbn-repo-source-classifier-cli/*"], - "@kbn/reporting-common": ["packages/kbn-reporting/common"], - "@kbn/reporting-common/*": ["packages/kbn-reporting/common/*"], + "@kbn/reporting-common": ["src/platform/packages/private/kbn-reporting/common"], + "@kbn/reporting-common/*": ["src/platform/packages/private/kbn-reporting/common/*"], "@kbn/reporting-csv-share-panel": ["packages/kbn-reporting/get_csv_panel_actions"], "@kbn/reporting-csv-share-panel/*": ["packages/kbn-reporting/get_csv_panel_actions/*"], "@kbn/reporting-export-types-csv": ["packages/kbn-reporting/export_types/csv"], diff --git a/yarn.lock b/yarn.lock index 40dbc6c9f9e1d..36c8160207d0a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6720,7 +6720,7 @@ version "0.0.0" uid "" -"@kbn/reporting-common@link:packages/kbn-reporting/common": +"@kbn/reporting-common@link:src/platform/packages/private/kbn-reporting/common": version "0.0.0" uid "" From b3d86e144a8d7f1d7410506513f7937e486bf1f8 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:28:48 +0100 Subject: [PATCH 054/129] Relocating module `@kbn/reporting-csv-share-panel` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/kbn-reporting/get_csv_panel_actions/index.ts | 0 .../kbn-reporting/get_csv_panel_actions/jest.config.js | 4 ++-- .../private}/kbn-reporting/get_csv_panel_actions/kibana.jsonc | 0 .../private}/kbn-reporting/get_csv_panel_actions/package.json | 0 .../panel_actions/get_csv_panel_action.test.ts | 0 .../panel_actions/get_csv_panel_action.tsx | 0 .../get_csv_panel_actions/panel_actions/strings.tsx | 0 .../kbn-reporting/get_csv_panel_actions/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/get_csv_panel_actions/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/get_csv_panel_actions/jest.config.js (80%) rename {packages => src/platform/packages/private}/kbn-reporting/get_csv_panel_actions/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/get_csv_panel_actions/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/get_csv_panel_actions/panel_actions/strings.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/get_csv_panel_actions/tsconfig.json (92%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dce382d9d1f1b..0efecc1da2300 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -424,7 +424,6 @@ packages/kbn-reporting/export_types/pdf @elastic/appex-sharedux packages/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux packages/kbn-reporting/export_types/png @elastic/appex-sharedux packages/kbn-reporting/export_types/png_common @elastic/appex-sharedux -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 @@ -590,6 +589,7 @@ src/platform/packages/private/kbn-generate-csv @elastic/appex-sharedux src/platform/packages/private/kbn-item-buffer @elastic/appex-sharedux src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/private/kbn-reporting/common @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/package.json b/package.json index 5fc5b877c791f..f32f09834e1fc 100644 --- a/package.json +++ b/package.json @@ -744,7 +744,7 @@ "@kbn/repo-info": "link:packages/kbn-repo-info", "@kbn/repo-packages": "link:packages/kbn-repo-packages", "@kbn/reporting-common": "link:src/platform/packages/private/kbn-reporting/common", - "@kbn/reporting-csv-share-panel": "link:packages/kbn-reporting/get_csv_panel_actions", + "@kbn/reporting-csv-share-panel": "link:src/platform/packages/private/kbn-reporting/get_csv_panel_actions", "@kbn/reporting-export-types-csv": "link:packages/kbn-reporting/export_types/csv", "@kbn/reporting-export-types-csv-common": "link:packages/kbn-reporting/export_types/csv_common", "@kbn/reporting-export-types-pdf": "link:packages/kbn-reporting/export_types/pdf", diff --git a/packages/kbn-reporting/get_csv_panel_actions/index.ts b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/index.ts similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/index.ts rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/index.ts diff --git a/packages/kbn-reporting/get_csv_panel_actions/jest.config.js b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/jest.config.js similarity index 80% rename from packages/kbn-reporting/get_csv_panel_actions/jest.config.js rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/jest.config.js index 9e0509cddb5a8..c989959726eda 100644 --- a/packages/kbn-reporting/get_csv_panel_actions/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/kbn-reporting/get_csv_panel_actions'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/get_csv_panel_actions'], }; diff --git a/packages/kbn-reporting/get_csv_panel_actions/kibana.jsonc b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/kibana.jsonc diff --git a/packages/kbn-reporting/get_csv_panel_actions/package.json b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/package.json similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/package.json rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/package.json diff --git a/packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.test.ts b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.test.ts similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.test.ts rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.test.ts diff --git a/packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx diff --git a/packages/kbn-reporting/get_csv_panel_actions/panel_actions/strings.tsx b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/strings.tsx similarity index 100% rename from packages/kbn-reporting/get_csv_panel_actions/panel_actions/strings.tsx rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/panel_actions/strings.tsx diff --git a/packages/kbn-reporting/get_csv_panel_actions/tsconfig.json b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/tsconfig.json similarity index 92% rename from packages/kbn-reporting/get_csv_panel_actions/tsconfig.json rename to src/platform/packages/private/kbn-reporting/get_csv_panel_actions/tsconfig.json index 954a92fe814b3..ff8968900804c 100644 --- a/packages/kbn-reporting/get_csv_panel_actions/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/get_csv_panel_actions/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index dd3b98594ba51..c6034607c5bd7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1454,8 +1454,8 @@ "@kbn/repo-source-classifier-cli/*": ["packages/kbn-repo-source-classifier-cli/*"], "@kbn/reporting-common": ["src/platform/packages/private/kbn-reporting/common"], "@kbn/reporting-common/*": ["src/platform/packages/private/kbn-reporting/common/*"], - "@kbn/reporting-csv-share-panel": ["packages/kbn-reporting/get_csv_panel_actions"], - "@kbn/reporting-csv-share-panel/*": ["packages/kbn-reporting/get_csv_panel_actions/*"], + "@kbn/reporting-csv-share-panel": ["src/platform/packages/private/kbn-reporting/get_csv_panel_actions"], + "@kbn/reporting-csv-share-panel/*": ["src/platform/packages/private/kbn-reporting/get_csv_panel_actions/*"], "@kbn/reporting-export-types-csv": ["packages/kbn-reporting/export_types/csv"], "@kbn/reporting-export-types-csv/*": ["packages/kbn-reporting/export_types/csv/*"], "@kbn/reporting-export-types-csv-common": ["packages/kbn-reporting/export_types/csv_common"], diff --git a/yarn.lock b/yarn.lock index 36c8160207d0a..361504b2f3c12 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6724,7 +6724,7 @@ version "0.0.0" uid "" -"@kbn/reporting-csv-share-panel@link:packages/kbn-reporting/get_csv_panel_actions": +"@kbn/reporting-csv-share-panel@link:src/platform/packages/private/kbn-reporting/get_csv_panel_actions": version "0.0.0" uid "" From 3e38deccb37e224c6fa57e4a77370bcc55ef889c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:30:15 +0100 Subject: [PATCH 055/129] Relocating module `@kbn/reporting-export-types-csv` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/kbn-reporting/export_types/csv/README.md | 0 .../kbn-reporting/export_types/csv/csv_searchsource.test.ts | 0 .../kbn-reporting/export_types/csv/csv_searchsource.ts | 0 .../private}/kbn-reporting/export_types/csv/csv_v2.ts | 0 .../packages/private}/kbn-reporting/export_types/csv/index.ts | 0 .../private}/kbn-reporting/export_types/csv/jest.config.js | 4 ++-- .../private}/kbn-reporting/export_types/csv/kibana.jsonc | 0 .../private}/kbn-reporting/export_types/csv/package.json | 0 .../private}/kbn-reporting/export_types/csv/tsconfig.json | 2 +- .../packages/private}/kbn-reporting/export_types/csv/types.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/README.md (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/csv_searchsource.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/csv_searchsource.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/csv_v2.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/jest.config.js (81%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/tsconfig.json (90%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv/types.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0efecc1da2300..ef343975fb035 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/export_types/csv @elastic/appex-sharedux packages/kbn-reporting/export_types/csv_common @elastic/appex-sharedux packages/kbn-reporting/export_types/pdf @elastic/appex-sharedux packages/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux @@ -589,6 +588,7 @@ src/platform/packages/private/kbn-generate-csv @elastic/appex-sharedux src/platform/packages/private/kbn-item-buffer @elastic/appex-sharedux src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/private/kbn-reporting/common @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/csv @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux diff --git a/package.json b/package.json index f32f09834e1fc..1ccdbf269a095 100644 --- a/package.json +++ b/package.json @@ -745,7 +745,7 @@ "@kbn/repo-packages": "link:packages/kbn-repo-packages", "@kbn/reporting-common": "link:src/platform/packages/private/kbn-reporting/common", "@kbn/reporting-csv-share-panel": "link:src/platform/packages/private/kbn-reporting/get_csv_panel_actions", - "@kbn/reporting-export-types-csv": "link:packages/kbn-reporting/export_types/csv", + "@kbn/reporting-export-types-csv": "link:src/platform/packages/private/kbn-reporting/export_types/csv", "@kbn/reporting-export-types-csv-common": "link:packages/kbn-reporting/export_types/csv_common", "@kbn/reporting-export-types-pdf": "link:packages/kbn-reporting/export_types/pdf", "@kbn/reporting-export-types-pdf-common": "link:packages/kbn-reporting/export_types/pdf_common", diff --git a/packages/kbn-reporting/export_types/csv/README.md b/src/platform/packages/private/kbn-reporting/export_types/csv/README.md similarity index 100% rename from packages/kbn-reporting/export_types/csv/README.md rename to src/platform/packages/private/kbn-reporting/export_types/csv/README.md diff --git a/packages/kbn-reporting/export_types/csv/csv_searchsource.test.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/csv_searchsource.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.test.ts diff --git a/packages/kbn-reporting/export_types/csv/csv_searchsource.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/csv_searchsource.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/csv_searchsource.ts diff --git a/packages/kbn-reporting/export_types/csv/csv_v2.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/csv_v2.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/csv_v2.ts diff --git a/packages/kbn-reporting/export_types/csv/index.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/index.ts diff --git a/packages/kbn-reporting/export_types/csv/jest.config.js b/src/platform/packages/private/kbn-reporting/export_types/csv/jest.config.js similarity index 81% rename from packages/kbn-reporting/export_types/csv/jest.config.js rename to src/platform/packages/private/kbn-reporting/export_types/csv/jest.config.js index ebd36ffbc50dc..8daed3e32f510 100644 --- a/packages/kbn-reporting/export_types/csv/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/export_types/csv/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/kbn-reporting/export_types/csv'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/export_types/csv'], }; diff --git a/packages/kbn-reporting/export_types/csv/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/csv/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/csv/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/csv/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/csv/package.json b/src/platform/packages/private/kbn-reporting/export_types/csv/package.json similarity index 100% rename from packages/kbn-reporting/export_types/csv/package.json rename to src/platform/packages/private/kbn-reporting/export_types/csv/package.json diff --git a/packages/kbn-reporting/export_types/csv/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/csv/tsconfig.json similarity index 90% rename from packages/kbn-reporting/export_types/csv/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/csv/tsconfig.json index a5ee79e9b52c4..ed13fa00216ee 100644 --- a/packages/kbn-reporting/export_types/csv/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/csv/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-reporting/export_types/csv/types.ts b/src/platform/packages/private/kbn-reporting/export_types/csv/types.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv/types.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv/types.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index c6034607c5bd7..83153bca1972f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1456,8 +1456,8 @@ "@kbn/reporting-common/*": ["src/platform/packages/private/kbn-reporting/common/*"], "@kbn/reporting-csv-share-panel": ["src/platform/packages/private/kbn-reporting/get_csv_panel_actions"], "@kbn/reporting-csv-share-panel/*": ["src/platform/packages/private/kbn-reporting/get_csv_panel_actions/*"], - "@kbn/reporting-export-types-csv": ["packages/kbn-reporting/export_types/csv"], - "@kbn/reporting-export-types-csv/*": ["packages/kbn-reporting/export_types/csv/*"], + "@kbn/reporting-export-types-csv": ["src/platform/packages/private/kbn-reporting/export_types/csv"], + "@kbn/reporting-export-types-csv/*": ["src/platform/packages/private/kbn-reporting/export_types/csv/*"], "@kbn/reporting-export-types-csv-common": ["packages/kbn-reporting/export_types/csv_common"], "@kbn/reporting-export-types-csv-common/*": ["packages/kbn-reporting/export_types/csv_common/*"], "@kbn/reporting-export-types-pdf": ["packages/kbn-reporting/export_types/pdf"], diff --git a/yarn.lock b/yarn.lock index 361504b2f3c12..638219850b82d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6732,7 +6732,7 @@ version "0.0.0" uid "" -"@kbn/reporting-export-types-csv@link:packages/kbn-reporting/export_types/csv": +"@kbn/reporting-export-types-csv@link:src/platform/packages/private/kbn-reporting/export_types/csv": version "0.0.0" uid "" From 1116b661eb00201e2308382182e078d675d74c49 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:31:44 +0100 Subject: [PATCH 056/129] Relocating module `@kbn/reporting-export-types-csv-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/kbn-reporting/export_types/csv_common/README.md | 0 .../kbn-reporting/export_types/csv_common/constants.ts | 0 .../private}/kbn-reporting/export_types/csv_common/index.ts | 0 .../kbn-reporting/export_types/csv_common/jest.config.js | 4 ++-- .../kbn-reporting/export_types/csv_common/kibana.jsonc | 0 .../export_types/csv_common/lib/get_query_from_job.test.ts | 0 .../export_types/csv_common/lib/get_query_from_job.ts | 0 .../kbn-reporting/export_types/csv_common/package.json | 0 .../kbn-reporting/export_types/csv_common/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv_common/README.md (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv_common/constants.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv_common/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv_common/jest.config.js (80%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv_common/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv_common/lib/get_query_from_job.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv_common/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/csv_common/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ef343975fb035..aad2fb42f8172 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/export_types/csv_common @elastic/appex-sharedux packages/kbn-reporting/export_types/pdf @elastic/appex-sharedux packages/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux packages/kbn-reporting/export_types/png @elastic/appex-sharedux @@ -589,6 +588,7 @@ src/platform/packages/private/kbn-item-buffer @elastic/appex-sharedux src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/private/kbn-reporting/common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/csv @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/csv_common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux diff --git a/package.json b/package.json index 1ccdbf269a095..d5bf25d8ac4e1 100644 --- a/package.json +++ b/package.json @@ -746,7 +746,7 @@ "@kbn/reporting-common": "link:src/platform/packages/private/kbn-reporting/common", "@kbn/reporting-csv-share-panel": "link:src/platform/packages/private/kbn-reporting/get_csv_panel_actions", "@kbn/reporting-export-types-csv": "link:src/platform/packages/private/kbn-reporting/export_types/csv", - "@kbn/reporting-export-types-csv-common": "link:packages/kbn-reporting/export_types/csv_common", + "@kbn/reporting-export-types-csv-common": "link:src/platform/packages/private/kbn-reporting/export_types/csv_common", "@kbn/reporting-export-types-pdf": "link:packages/kbn-reporting/export_types/pdf", "@kbn/reporting-export-types-pdf-common": "link:packages/kbn-reporting/export_types/pdf_common", "@kbn/reporting-export-types-png": "link:packages/kbn-reporting/export_types/png", diff --git a/packages/kbn-reporting/export_types/csv_common/README.md b/src/platform/packages/private/kbn-reporting/export_types/csv_common/README.md similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/README.md rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/README.md diff --git a/packages/kbn-reporting/export_types/csv_common/constants.ts b/src/platform/packages/private/kbn-reporting/export_types/csv_common/constants.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/constants.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/constants.ts diff --git a/packages/kbn-reporting/export_types/csv_common/index.ts b/src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/index.ts diff --git a/packages/kbn-reporting/export_types/csv_common/jest.config.js b/src/platform/packages/private/kbn-reporting/export_types/csv_common/jest.config.js similarity index 80% rename from packages/kbn-reporting/export_types/csv_common/jest.config.js rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/jest.config.js index f827fdd6c48a9..80977b5ea44f1 100644 --- a/packages/kbn-reporting/export_types/csv_common/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/export_types/csv_common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/kbn-reporting/export_types/csv_common'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/export_types/csv_common'], }; diff --git a/packages/kbn-reporting/export_types/csv_common/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/csv_common/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.test.ts b/src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.test.ts diff --git a/packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts b/src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/lib/get_query_from_job.ts diff --git a/packages/kbn-reporting/export_types/csv_common/package.json b/src/platform/packages/private/kbn-reporting/export_types/csv_common/package.json similarity index 100% rename from packages/kbn-reporting/export_types/csv_common/package.json rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/package.json diff --git a/packages/kbn-reporting/export_types/csv_common/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/csv_common/tsconfig.json similarity index 83% rename from packages/kbn-reporting/export_types/csv_common/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/csv_common/tsconfig.json index 32ffe1f902b7e..6a9b838c69205 100644 --- a/packages/kbn-reporting/export_types/csv_common/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/csv_common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 83153bca1972f..12448cc71507a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1458,8 +1458,8 @@ "@kbn/reporting-csv-share-panel/*": ["src/platform/packages/private/kbn-reporting/get_csv_panel_actions/*"], "@kbn/reporting-export-types-csv": ["src/platform/packages/private/kbn-reporting/export_types/csv"], "@kbn/reporting-export-types-csv/*": ["src/platform/packages/private/kbn-reporting/export_types/csv/*"], - "@kbn/reporting-export-types-csv-common": ["packages/kbn-reporting/export_types/csv_common"], - "@kbn/reporting-export-types-csv-common/*": ["packages/kbn-reporting/export_types/csv_common/*"], + "@kbn/reporting-export-types-csv-common": ["src/platform/packages/private/kbn-reporting/export_types/csv_common"], + "@kbn/reporting-export-types-csv-common/*": ["src/platform/packages/private/kbn-reporting/export_types/csv_common/*"], "@kbn/reporting-export-types-pdf": ["packages/kbn-reporting/export_types/pdf"], "@kbn/reporting-export-types-pdf/*": ["packages/kbn-reporting/export_types/pdf/*"], "@kbn/reporting-export-types-pdf-common": ["packages/kbn-reporting/export_types/pdf_common"], diff --git a/yarn.lock b/yarn.lock index 638219850b82d..5178e8ab0bafc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6728,7 +6728,7 @@ version "0.0.0" uid "" -"@kbn/reporting-export-types-csv-common@link:packages/kbn-reporting/export_types/csv_common": +"@kbn/reporting-export-types-csv-common@link:src/platform/packages/private/kbn-reporting/export_types/csv_common": version "0.0.0" uid "" From 7ebd6ae784e4071d8a2a123d58709b5041de70b2 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:33:15 +0100 Subject: [PATCH 057/129] Relocating module `@kbn/reporting-export-types-pdf` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../kbn-reporting/export_types/pdf/get_absolute_url.test.ts | 0 .../kbn-reporting/export_types/pdf/get_absolute_url.ts | 0 .../kbn-reporting/export_types/pdf/get_custom_logo.test.ts | 0 .../kbn-reporting/export_types/pdf/get_custom_logo.ts | 0 .../kbn-reporting/export_types/pdf/get_full_urls.test.ts | 0 .../private}/kbn-reporting/export_types/pdf/get_full_urls.ts | 0 .../packages/private}/kbn-reporting/export_types/pdf/index.ts | 0 .../private}/kbn-reporting/export_types/pdf/jest.config.js | 4 ++-- .../private}/kbn-reporting/export_types/pdf/kibana.jsonc | 0 .../private}/kbn-reporting/export_types/pdf/package.json | 0 .../private}/kbn-reporting/export_types/pdf/pdf_tracker.ts | 0 .../kbn-reporting/export_types/pdf/printable_pdf.test.ts | 0 .../private}/kbn-reporting/export_types/pdf/printable_pdf.ts | 0 .../kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts | 0 .../kbn-reporting/export_types/pdf/printable_pdf_v2.ts | 0 .../private}/kbn-reporting/export_types/pdf/tsconfig.json | 2 +- .../kbn-reporting/export_types/pdf/validate_urls.test.ts | 0 .../private}/kbn-reporting/export_types/pdf/validate_urls.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 22 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/get_absolute_url.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/get_absolute_url.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/get_custom_logo.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/get_custom_logo.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/get_full_urls.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/get_full_urls.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/jest.config.js (81%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/pdf_tracker.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/printable_pdf.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/printable_pdf.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/printable_pdf_v2.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/tsconfig.json (88%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/validate_urls.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf/validate_urls.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index aad2fb42f8172..eea0c6f848a54 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/export_types/pdf @elastic/appex-sharedux packages/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux packages/kbn-reporting/export_types/png @elastic/appex-sharedux packages/kbn-reporting/export_types/png_common @elastic/appex-sharedux @@ -589,6 +588,7 @@ src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/private/kbn-reporting/common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/csv @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/csv_common @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/pdf @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux diff --git a/package.json b/package.json index d5bf25d8ac4e1..f88b10b928361 100644 --- a/package.json +++ b/package.json @@ -747,7 +747,7 @@ "@kbn/reporting-csv-share-panel": "link:src/platform/packages/private/kbn-reporting/get_csv_panel_actions", "@kbn/reporting-export-types-csv": "link:src/platform/packages/private/kbn-reporting/export_types/csv", "@kbn/reporting-export-types-csv-common": "link:src/platform/packages/private/kbn-reporting/export_types/csv_common", - "@kbn/reporting-export-types-pdf": "link:packages/kbn-reporting/export_types/pdf", + "@kbn/reporting-export-types-pdf": "link:src/platform/packages/private/kbn-reporting/export_types/pdf", "@kbn/reporting-export-types-pdf-common": "link:packages/kbn-reporting/export_types/pdf_common", "@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", diff --git a/packages/kbn-reporting/export_types/pdf/get_absolute_url.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_absolute_url.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_absolute_url.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_absolute_url.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_absolute_url.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_absolute_url.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_absolute_url.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_absolute_url.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_custom_logo.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_custom_logo.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_custom_logo.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_custom_logo.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_custom_logo.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_custom_logo.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_custom_logo.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_custom_logo.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_full_urls.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_full_urls.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_full_urls.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_full_urls.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/get_full_urls.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/get_full_urls.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/get_full_urls.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/get_full_urls.ts diff --git a/packages/kbn-reporting/export_types/pdf/index.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/index.ts diff --git a/packages/kbn-reporting/export_types/pdf/jest.config.js b/src/platform/packages/private/kbn-reporting/export_types/pdf/jest.config.js similarity index 81% rename from packages/kbn-reporting/export_types/pdf/jest.config.js rename to src/platform/packages/private/kbn-reporting/export_types/pdf/jest.config.js index 50c6067c4b493..7cfdcbf6173df 100644 --- a/packages/kbn-reporting/export_types/pdf/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/export_types/pdf/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/kbn-reporting/export_types/pdf'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/export_types/pdf'], }; diff --git a/packages/kbn-reporting/export_types/pdf/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/pdf/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/pdf/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/pdf/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/pdf/package.json b/src/platform/packages/private/kbn-reporting/export_types/pdf/package.json similarity index 100% rename from packages/kbn-reporting/export_types/pdf/package.json rename to src/platform/packages/private/kbn-reporting/export_types/pdf/package.json diff --git a/packages/kbn-reporting/export_types/pdf/pdf_tracker.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/pdf_tracker.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/pdf_tracker.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/pdf_tracker.ts diff --git a/packages/kbn-reporting/export_types/pdf/printable_pdf.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/printable_pdf.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/printable_pdf.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/printable_pdf.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf.ts diff --git a/packages/kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/printable_pdf_v2.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/printable_pdf_v2.ts diff --git a/packages/kbn-reporting/export_types/pdf/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/pdf/tsconfig.json similarity index 88% rename from packages/kbn-reporting/export_types/pdf/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/pdf/tsconfig.json index e031db25ad1b4..178288746e031 100644 --- a/packages/kbn-reporting/export_types/pdf/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/pdf/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-reporting/export_types/pdf/validate_urls.test.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/validate_urls.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/validate_urls.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/validate_urls.test.ts diff --git a/packages/kbn-reporting/export_types/pdf/validate_urls.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf/validate_urls.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf/validate_urls.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf/validate_urls.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index 12448cc71507a..6056a79e49efa 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1460,8 +1460,8 @@ "@kbn/reporting-export-types-csv/*": ["src/platform/packages/private/kbn-reporting/export_types/csv/*"], "@kbn/reporting-export-types-csv-common": ["src/platform/packages/private/kbn-reporting/export_types/csv_common"], "@kbn/reporting-export-types-csv-common/*": ["src/platform/packages/private/kbn-reporting/export_types/csv_common/*"], - "@kbn/reporting-export-types-pdf": ["packages/kbn-reporting/export_types/pdf"], - "@kbn/reporting-export-types-pdf/*": ["packages/kbn-reporting/export_types/pdf/*"], + "@kbn/reporting-export-types-pdf": ["src/platform/packages/private/kbn-reporting/export_types/pdf"], + "@kbn/reporting-export-types-pdf/*": ["src/platform/packages/private/kbn-reporting/export_types/pdf/*"], "@kbn/reporting-export-types-pdf-common": ["packages/kbn-reporting/export_types/pdf_common"], "@kbn/reporting-export-types-pdf-common/*": ["packages/kbn-reporting/export_types/pdf_common/*"], "@kbn/reporting-export-types-png": ["packages/kbn-reporting/export_types/png"], diff --git a/yarn.lock b/yarn.lock index 5178e8ab0bafc..64725ac31e62b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6740,7 +6740,7 @@ version "0.0.0" uid "" -"@kbn/reporting-export-types-pdf@link:packages/kbn-reporting/export_types/pdf": +"@kbn/reporting-export-types-pdf@link:src/platform/packages/private/kbn-reporting/export_types/pdf": version "0.0.0" uid "" From f8c54827c4e56a7dbc739591645b04a03cfbf072 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:34:47 +0100 Subject: [PATCH 058/129] Relocating module `@kbn/reporting-export-types-pdf-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/kbn-reporting/export_types/pdf_common/README.md | 0 .../kbn-reporting/export_types/pdf_common/constants.ts | 0 .../private}/kbn-reporting/export_types/pdf_common/index.ts | 0 .../kbn-reporting/export_types/pdf_common/kibana.jsonc | 0 .../kbn-reporting/export_types/pdf_common/package.json | 0 .../kbn-reporting/export_types/pdf_common/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf_common/README.md (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf_common/constants.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf_common/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf_common/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf_common/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/pdf_common/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index eea0c6f848a54..7017d6c4b01f1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux packages/kbn-reporting/export_types/png @elastic/appex-sharedux packages/kbn-reporting/export_types/png_common @elastic/appex-sharedux packages/kbn-reporting/mocks_server @elastic/appex-sharedux @@ -589,6 +588,7 @@ src/platform/packages/private/kbn-reporting/common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/csv @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/csv_common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/pdf @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux diff --git a/package.json b/package.json index f88b10b928361..b5ea334836602 100644 --- a/package.json +++ b/package.json @@ -748,7 +748,7 @@ "@kbn/reporting-export-types-csv": "link:src/platform/packages/private/kbn-reporting/export_types/csv", "@kbn/reporting-export-types-csv-common": "link:src/platform/packages/private/kbn-reporting/export_types/csv_common", "@kbn/reporting-export-types-pdf": "link:src/platform/packages/private/kbn-reporting/export_types/pdf", - "@kbn/reporting-export-types-pdf-common": "link:packages/kbn-reporting/export_types/pdf_common", + "@kbn/reporting-export-types-pdf-common": "link:src/platform/packages/private/kbn-reporting/export_types/pdf_common", "@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", diff --git a/packages/kbn-reporting/export_types/pdf_common/README.md b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/README.md similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/README.md rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/README.md diff --git a/packages/kbn-reporting/export_types/pdf_common/constants.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/constants.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/constants.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/constants.ts diff --git a/packages/kbn-reporting/export_types/pdf_common/index.ts b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/index.ts diff --git a/packages/kbn-reporting/export_types/pdf_common/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/pdf_common/package.json b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/package.json similarity index 100% rename from packages/kbn-reporting/export_types/pdf_common/package.json rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/package.json diff --git a/packages/kbn-reporting/export_types/pdf_common/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/tsconfig.json similarity index 82% rename from packages/kbn-reporting/export_types/pdf_common/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/pdf_common/tsconfig.json index cb0a7b461eda8..24a75b78a3416 100644 --- a/packages/kbn-reporting/export_types/pdf_common/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/pdf_common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 6056a79e49efa..ebed18e3c9fba 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1462,8 +1462,8 @@ "@kbn/reporting-export-types-csv-common/*": ["src/platform/packages/private/kbn-reporting/export_types/csv_common/*"], "@kbn/reporting-export-types-pdf": ["src/platform/packages/private/kbn-reporting/export_types/pdf"], "@kbn/reporting-export-types-pdf/*": ["src/platform/packages/private/kbn-reporting/export_types/pdf/*"], - "@kbn/reporting-export-types-pdf-common": ["packages/kbn-reporting/export_types/pdf_common"], - "@kbn/reporting-export-types-pdf-common/*": ["packages/kbn-reporting/export_types/pdf_common/*"], + "@kbn/reporting-export-types-pdf-common": ["src/platform/packages/private/kbn-reporting/export_types/pdf_common"], + "@kbn/reporting-export-types-pdf-common/*": ["src/platform/packages/private/kbn-reporting/export_types/pdf_common/*"], "@kbn/reporting-export-types-png": ["packages/kbn-reporting/export_types/png"], "@kbn/reporting-export-types-png/*": ["packages/kbn-reporting/export_types/png/*"], "@kbn/reporting-export-types-png-common": ["packages/kbn-reporting/export_types/png_common"], diff --git a/yarn.lock b/yarn.lock index 64725ac31e62b..096fa84607afd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6736,7 +6736,7 @@ version "0.0.0" uid "" -"@kbn/reporting-export-types-pdf-common@link:packages/kbn-reporting/export_types/pdf_common": +"@kbn/reporting-export-types-pdf-common@link:src/platform/packages/private/kbn-reporting/export_types/pdf_common": version "0.0.0" uid "" From 0ce08ec478ca26442d065e0fb23aee8a94757a60 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:36:16 +0100 Subject: [PATCH 059/129] Relocating module `@kbn/reporting-export-types-png` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/kbn-reporting/export_types/png/index.ts | 0 .../private}/kbn-reporting/export_types/png/jest.config.js | 4 ++-- .../private}/kbn-reporting/export_types/png/kibana.jsonc | 0 .../private}/kbn-reporting/export_types/png/package.json | 0 .../private}/kbn-reporting/export_types/png/png_v2.test.ts | 0 .../private}/kbn-reporting/export_types/png/png_v2.ts | 0 .../private}/kbn-reporting/export_types/png/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png/jest.config.js (81%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png/png_v2.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png/png_v2.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7017d6c4b01f1..496de5d789bf8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/export_types/png @elastic/appex-sharedux packages/kbn-reporting/export_types/png_common @elastic/appex-sharedux packages/kbn-reporting/mocks_server @elastic/appex-sharedux packages/kbn-reporting/public @elastic/appex-sharedux @@ -589,6 +588,7 @@ src/platform/packages/private/kbn-reporting/export_types/csv @elastic/appex-shar src/platform/packages/private/kbn-reporting/export_types/csv_common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/pdf @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/png @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux diff --git a/package.json b/package.json index b5ea334836602..630f9bcdfc346 100644 --- a/package.json +++ b/package.json @@ -749,7 +749,7 @@ "@kbn/reporting-export-types-csv-common": "link:src/platform/packages/private/kbn-reporting/export_types/csv_common", "@kbn/reporting-export-types-pdf": "link:src/platform/packages/private/kbn-reporting/export_types/pdf", "@kbn/reporting-export-types-pdf-common": "link:src/platform/packages/private/kbn-reporting/export_types/pdf_common", - "@kbn/reporting-export-types-png": "link:packages/kbn-reporting/export_types/png", + "@kbn/reporting-export-types-png": "link:src/platform/packages/private/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", diff --git a/packages/kbn-reporting/export_types/png/index.ts b/src/platform/packages/private/kbn-reporting/export_types/png/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/png/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/png/index.ts diff --git a/packages/kbn-reporting/export_types/png/jest.config.js b/src/platform/packages/private/kbn-reporting/export_types/png/jest.config.js similarity index 81% rename from packages/kbn-reporting/export_types/png/jest.config.js rename to src/platform/packages/private/kbn-reporting/export_types/png/jest.config.js index 2eb1c8df3fc2b..d5fedfb9ce263 100644 --- a/packages/kbn-reporting/export_types/png/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/export_types/png/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/kbn-reporting/export_types/png'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/export_types/png'], }; diff --git a/packages/kbn-reporting/export_types/png/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/png/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/png/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/png/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/png/package.json b/src/platform/packages/private/kbn-reporting/export_types/png/package.json similarity index 100% rename from packages/kbn-reporting/export_types/png/package.json rename to src/platform/packages/private/kbn-reporting/export_types/png/package.json diff --git a/packages/kbn-reporting/export_types/png/png_v2.test.ts b/src/platform/packages/private/kbn-reporting/export_types/png/png_v2.test.ts similarity index 100% rename from packages/kbn-reporting/export_types/png/png_v2.test.ts rename to src/platform/packages/private/kbn-reporting/export_types/png/png_v2.test.ts diff --git a/packages/kbn-reporting/export_types/png/png_v2.ts b/src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts similarity index 100% rename from packages/kbn-reporting/export_types/png/png_v2.ts rename to src/platform/packages/private/kbn-reporting/export_types/png/png_v2.ts diff --git a/packages/kbn-reporting/export_types/png/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/png/tsconfig.json similarity index 89% rename from packages/kbn-reporting/export_types/png/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/png/tsconfig.json index b8a141a320dd8..d2f8c86010ca5 100644 --- a/packages/kbn-reporting/export_types/png/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/png/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ebed18e3c9fba..258ba4c575ab6 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1464,8 +1464,8 @@ "@kbn/reporting-export-types-pdf/*": ["src/platform/packages/private/kbn-reporting/export_types/pdf/*"], "@kbn/reporting-export-types-pdf-common": ["src/platform/packages/private/kbn-reporting/export_types/pdf_common"], "@kbn/reporting-export-types-pdf-common/*": ["src/platform/packages/private/kbn-reporting/export_types/pdf_common/*"], - "@kbn/reporting-export-types-png": ["packages/kbn-reporting/export_types/png"], - "@kbn/reporting-export-types-png/*": ["packages/kbn-reporting/export_types/png/*"], + "@kbn/reporting-export-types-png": ["src/platform/packages/private/kbn-reporting/export_types/png"], + "@kbn/reporting-export-types-png/*": ["src/platform/packages/private/kbn-reporting/export_types/png/*"], "@kbn/reporting-export-types-png-common": ["packages/kbn-reporting/export_types/png_common"], "@kbn/reporting-export-types-png-common/*": ["packages/kbn-reporting/export_types/png_common/*"], "@kbn/reporting-mocks-server": ["packages/kbn-reporting/mocks_server"], diff --git a/yarn.lock b/yarn.lock index 096fa84607afd..4eeed276feb0d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6748,7 +6748,7 @@ version "0.0.0" uid "" -"@kbn/reporting-export-types-png@link:packages/kbn-reporting/export_types/png": +"@kbn/reporting-export-types-png@link:src/platform/packages/private/kbn-reporting/export_types/png": version "0.0.0" uid "" From 89c65c9ddb56fb9ad5b4439f156f3532d88d4d47 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:37:43 +0100 Subject: [PATCH 060/129] Relocating module `@kbn/reporting-export-types-png-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/kbn-reporting/export_types/png_common/README.md | 0 .../kbn-reporting/export_types/png_common/constants.ts | 0 .../private}/kbn-reporting/export_types/png_common/index.ts | 0 .../kbn-reporting/export_types/png_common/kibana.jsonc | 0 .../kbn-reporting/export_types/png_common/package.json | 0 .../kbn-reporting/export_types/png_common/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png_common/README.md (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png_common/constants.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png_common/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png_common/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png_common/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/export_types/png_common/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 496de5d789bf8..d0e5f88a12d30 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/export_types/png_common @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 @@ -589,6 +588,7 @@ src/platform/packages/private/kbn-reporting/export_types/csv_common @elastic/app src/platform/packages/private/kbn-reporting/export_types/pdf @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/pdf_common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/png @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/export_types/png_common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux diff --git a/package.json b/package.json index 630f9bcdfc346..b0ef888d837fb 100644 --- a/package.json +++ b/package.json @@ -750,7 +750,7 @@ "@kbn/reporting-export-types-pdf": "link:src/platform/packages/private/kbn-reporting/export_types/pdf", "@kbn/reporting-export-types-pdf-common": "link:src/platform/packages/private/kbn-reporting/export_types/pdf_common", "@kbn/reporting-export-types-png": "link:src/platform/packages/private/kbn-reporting/export_types/png", - "@kbn/reporting-export-types-png-common": "link:packages/kbn-reporting/export_types/png_common", + "@kbn/reporting-export-types-png-common": "link:src/platform/packages/private/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-public": "link:packages/kbn-reporting/public", diff --git a/packages/kbn-reporting/export_types/png_common/README.md b/src/platform/packages/private/kbn-reporting/export_types/png_common/README.md similarity index 100% rename from packages/kbn-reporting/export_types/png_common/README.md rename to src/platform/packages/private/kbn-reporting/export_types/png_common/README.md diff --git a/packages/kbn-reporting/export_types/png_common/constants.ts b/src/platform/packages/private/kbn-reporting/export_types/png_common/constants.ts similarity index 100% rename from packages/kbn-reporting/export_types/png_common/constants.ts rename to src/platform/packages/private/kbn-reporting/export_types/png_common/constants.ts diff --git a/packages/kbn-reporting/export_types/png_common/index.ts b/src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts similarity index 100% rename from packages/kbn-reporting/export_types/png_common/index.ts rename to src/platform/packages/private/kbn-reporting/export_types/png_common/index.ts diff --git a/packages/kbn-reporting/export_types/png_common/kibana.jsonc b/src/platform/packages/private/kbn-reporting/export_types/png_common/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/export_types/png_common/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/export_types/png_common/kibana.jsonc diff --git a/packages/kbn-reporting/export_types/png_common/package.json b/src/platform/packages/private/kbn-reporting/export_types/png_common/package.json similarity index 100% rename from packages/kbn-reporting/export_types/png_common/package.json rename to src/platform/packages/private/kbn-reporting/export_types/png_common/package.json diff --git a/packages/kbn-reporting/export_types/png_common/tsconfig.json b/src/platform/packages/private/kbn-reporting/export_types/png_common/tsconfig.json similarity index 82% rename from packages/kbn-reporting/export_types/png_common/tsconfig.json rename to src/platform/packages/private/kbn-reporting/export_types/png_common/tsconfig.json index cb0a7b461eda8..24a75b78a3416 100644 --- a/packages/kbn-reporting/export_types/png_common/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/export_types/png_common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 258ba4c575ab6..75da683f3f8ac 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1466,8 +1466,8 @@ "@kbn/reporting-export-types-pdf-common/*": ["src/platform/packages/private/kbn-reporting/export_types/pdf_common/*"], "@kbn/reporting-export-types-png": ["src/platform/packages/private/kbn-reporting/export_types/png"], "@kbn/reporting-export-types-png/*": ["src/platform/packages/private/kbn-reporting/export_types/png/*"], - "@kbn/reporting-export-types-png-common": ["packages/kbn-reporting/export_types/png_common"], - "@kbn/reporting-export-types-png-common/*": ["packages/kbn-reporting/export_types/png_common/*"], + "@kbn/reporting-export-types-png-common": ["src/platform/packages/private/kbn-reporting/export_types/png_common"], + "@kbn/reporting-export-types-png-common/*": ["src/platform/packages/private/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"], diff --git a/yarn.lock b/yarn.lock index 4eeed276feb0d..fae0dd57313f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6744,7 +6744,7 @@ version "0.0.0" uid "" -"@kbn/reporting-export-types-png-common@link:packages/kbn-reporting/export_types/png_common": +"@kbn/reporting-export-types-png-common@link:src/platform/packages/private/kbn-reporting/export_types/png_common": version "0.0.0" uid "" From 3e9b05da7f00b709eef205c247b37de4d348f017 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:38:59 +0100 Subject: [PATCH 061/129] Relocating module `@kbn/reporting-mocks-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/kbn-reporting/mocks_server/README.md | 0 .../packages/private}/kbn-reporting/mocks_server/index.ts | 0 .../private}/kbn-reporting/mocks_server/jest.config.js | 4 ++-- .../packages/private}/kbn-reporting/mocks_server/kibana.jsonc | 0 .../packages/private}/kbn-reporting/mocks_server/package.json | 0 .../private}/kbn-reporting/mocks_server/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/mocks_server/README.md (100%) rename {packages => src/platform/packages/private}/kbn-reporting/mocks_server/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/mocks_server/jest.config.js (82%) rename {packages => src/platform/packages/private}/kbn-reporting/mocks_server/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/mocks_server/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/mocks_server/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d0e5f88a12d30..7157e1ec89f7b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/mocks_server @elastic/appex-sharedux packages/kbn-reporting/public @elastic/appex-sharedux packages/kbn-reporting/server @elastic/appex-sharedux packages/kbn-resizable-layout @elastic/kibana-data-discovery @@ -590,6 +589,7 @@ src/platform/packages/private/kbn-reporting/export_types/pdf_common @elastic/app src/platform/packages/private/kbn-reporting/export_types/png @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/export_types/png_common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/mocks_server @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/package.json b/package.json index b0ef888d837fb..dd69343d17693 100644 --- a/package.json +++ b/package.json @@ -751,7 +751,7 @@ "@kbn/reporting-export-types-pdf-common": "link:src/platform/packages/private/kbn-reporting/export_types/pdf_common", "@kbn/reporting-export-types-png": "link:src/platform/packages/private/kbn-reporting/export_types/png", "@kbn/reporting-export-types-png-common": "link:src/platform/packages/private/kbn-reporting/export_types/png_common", - "@kbn/reporting-mocks-server": "link:packages/kbn-reporting/mocks_server", + "@kbn/reporting-mocks-server": "link:src/platform/packages/private/kbn-reporting/mocks_server", "@kbn/reporting-plugin": "link:x-pack/plugins/reporting", "@kbn/reporting-public": "link:packages/kbn-reporting/public", "@kbn/reporting-server": "link:packages/kbn-reporting/server", diff --git a/packages/kbn-reporting/mocks_server/README.md b/src/platform/packages/private/kbn-reporting/mocks_server/README.md similarity index 100% rename from packages/kbn-reporting/mocks_server/README.md rename to src/platform/packages/private/kbn-reporting/mocks_server/README.md diff --git a/packages/kbn-reporting/mocks_server/index.ts b/src/platform/packages/private/kbn-reporting/mocks_server/index.ts similarity index 100% rename from packages/kbn-reporting/mocks_server/index.ts rename to src/platform/packages/private/kbn-reporting/mocks_server/index.ts diff --git a/packages/kbn-reporting/mocks_server/jest.config.js b/src/platform/packages/private/kbn-reporting/mocks_server/jest.config.js similarity index 82% rename from packages/kbn-reporting/mocks_server/jest.config.js rename to src/platform/packages/private/kbn-reporting/mocks_server/jest.config.js index c21808c182dd4..b117450bbfe32 100644 --- a/packages/kbn-reporting/mocks_server/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/mocks_server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../..', - roots: ['/packages/kbn-reporting/mocks_server'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/mocks_server'], }; diff --git a/packages/kbn-reporting/mocks_server/kibana.jsonc b/src/platform/packages/private/kbn-reporting/mocks_server/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/mocks_server/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/mocks_server/kibana.jsonc diff --git a/packages/kbn-reporting/mocks_server/package.json b/src/platform/packages/private/kbn-reporting/mocks_server/package.json similarity index 100% rename from packages/kbn-reporting/mocks_server/package.json rename to src/platform/packages/private/kbn-reporting/mocks_server/package.json diff --git a/packages/kbn-reporting/mocks_server/tsconfig.json b/src/platform/packages/private/kbn-reporting/mocks_server/tsconfig.json similarity index 81% rename from packages/kbn-reporting/mocks_server/tsconfig.json rename to src/platform/packages/private/kbn-reporting/mocks_server/tsconfig.json index ef36887c668e2..3f19f7cd23ff2 100644 --- a/packages/kbn-reporting/mocks_server/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/mocks_server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 75da683f3f8ac..d76b3c5199b56 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1468,8 +1468,8 @@ "@kbn/reporting-export-types-png/*": ["src/platform/packages/private/kbn-reporting/export_types/png/*"], "@kbn/reporting-export-types-png-common": ["src/platform/packages/private/kbn-reporting/export_types/png_common"], "@kbn/reporting-export-types-png-common/*": ["src/platform/packages/private/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-mocks-server": ["src/platform/packages/private/kbn-reporting/mocks_server"], + "@kbn/reporting-mocks-server/*": ["src/platform/packages/private/kbn-reporting/mocks_server/*"], "@kbn/reporting-plugin": ["x-pack/plugins/reporting"], "@kbn/reporting-plugin/*": ["x-pack/plugins/reporting/*"], "@kbn/reporting-public": ["packages/kbn-reporting/public"], diff --git a/yarn.lock b/yarn.lock index fae0dd57313f4..3754c00af9118 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6752,7 +6752,7 @@ version "0.0.0" uid "" -"@kbn/reporting-mocks-server@link:packages/kbn-reporting/mocks_server": +"@kbn/reporting-mocks-server@link:src/platform/packages/private/kbn-reporting/mocks_server": version "0.0.0" uid "" From 5b8ee135a577ce80d30e145ce11e19a11f241e69 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:40:16 +0100 Subject: [PATCH 062/129] Relocating module `@kbn/reporting-plugin` --- .eslintignore | 4 +- .github/CODEOWNERS | 2 +- 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/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 +- 165 files changed, 48 insertions(+), 48 deletions(-) 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 83e4a017255e2..a77c516a8f395 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 7157e1ec89f7b..17172129c1c9c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -868,6 +868,7 @@ x-pack/platform/plugins/private/banners @elastic/appex-sharedux x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux 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/reporting @elastic/appex-sharedux 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/notifications @elastic/appex-sharedux @@ -954,7 +955,6 @@ x-pack/plugins/observability_solution/ux @elastic/obs-ux-infra_services-team x-pack/plugins/osquery @elastic/security-defend-workflows x-pack/plugins/painless_lab @elastic/kibana-management x-pack/plugins/remote_clusters @elastic/kibana-management -x-pack/plugins/reporting @elastic/appex-sharedux x-pack/plugins/rollup @elastic/kibana-management x-pack/plugins/rule_registry @elastic/response-ops @elastic/obs-ux-management-team x-pack/plugins/runtime_fields @elastic/kibana-management diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index ddd5f6b28bbee..5ec593c4523d5 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -795,7 +795,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 dd69343d17693..03e2bdf66e913 100644 --- a/package.json +++ b/package.json @@ -752,7 +752,7 @@ "@kbn/reporting-export-types-png": "link:src/platform/packages/private/kbn-reporting/export_types/png", "@kbn/reporting-export-types-png-common": "link:src/platform/packages/private/kbn-reporting/export_types/png_common", "@kbn/reporting-mocks-server": "link:src/platform/packages/private/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 d76b3c5199b56..9e2ad8c1f53cf 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1470,8 +1470,8 @@ "@kbn/reporting-export-types-png-common/*": ["src/platform/packages/private/kbn-reporting/export_types/png_common/*"], "@kbn/reporting-mocks-server": ["src/platform/packages/private/kbn-reporting/mocks_server"], "@kbn/reporting-mocks-server/*": ["src/platform/packages/private/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 97efbef318c90..bbe276d4606a4 100644 --- a/x-pack/.gitignore +++ b/x-pack/.gitignore @@ -5,9 +5,9 @@ /test/functional/screenshots /test/functional/apps/**/reports/session /test/reporting/configs/failure_debug/ -/plugins/reporting/.chromium/ +/platform/plugins/private/reporting/.chromium/ /plugins/screenshotting/chromium/ -/plugins/reporting/.phantom/ +/platform/plugins/private/reporting/.phantom/ /.aws-config.json /.env /.kibana-plugin-helpers.dev.* diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 99bc223a4c219..8eb47b0b0b680 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -121,7 +121,7 @@ ], "xpack.remoteClusters": "plugins/remote_clusters", "xpack.reporting": [ - "plugins/reporting" + "platform/plugins/private/reporting" ], "xpack.rollupJobs": [ "packages/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/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 3754c00af9118..e0ff234fcc7a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6756,7 +6756,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 d6cdbb2d7b34d3a52303a6966ca032b7c417117f Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:41:32 +0100 Subject: [PATCH 063/129] Relocating module `@kbn/reporting-public` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/private}/kbn-reporting/public/README.md | 0 .../packages/private}/kbn-reporting/public/context.tsx | 0 .../platform/packages/private}/kbn-reporting/public/hooks.ts | 0 .../platform/packages/private}/kbn-reporting/public/index.ts | 0 .../packages/private}/kbn-reporting/public/jest.config.js | 4 ++-- .../platform/packages/private}/kbn-reporting/public/job.tsx | 0 .../kbn-reporting/public/job_completion_notifications.test.ts | 0 .../kbn-reporting/public/job_completion_notifications.ts | 0 .../packages/private}/kbn-reporting/public/kibana.jsonc | 0 .../private}/kbn-reporting/public/license_check.test.ts | 0 .../packages/private}/kbn-reporting/public/license_check.ts | 0 .../packages/private}/kbn-reporting/public/package.json | 0 .../kbn-reporting/public/reporting_api_client.test.ts | 0 .../private}/kbn-reporting/public/reporting_api_client.ts | 0 .../packages/private}/kbn-reporting/public/share/index.ts | 0 .../__snapshots__/screen_capture_panel_content.test.tsx.snap | 0 .../kbn-reporting/public/share/share_context_menu/index.ts | 0 .../public/share/share_context_menu/panel_spinner.tsx | 0 .../share/share_context_menu/register_csv_modal_reporting.tsx | 0 .../share_context_menu/register_pdf_png_modal_reporting.tsx | 0 .../components/error_unsaved_work_panel.tsx | 0 .../components/error_url_too_long_panel.tsx | 0 .../reporting_panel_content/components/index.ts | 0 .../share_context_menu/reporting_panel_content/constants.ts | 0 .../share/share_context_menu/reporting_panel_content/index.ts | 0 .../reporting_panel_content/reporting_panel_content.test.tsx | 0 .../reporting_panel_content/reporting_panel_content.tsx | 0 .../share/share_context_menu/reporting_panel_content_lazy.tsx | 0 .../share_context_menu/screen_capture_panel_content.test.tsx | 0 .../share/share_context_menu/screen_capture_panel_content.tsx | 0 .../share_context_menu/screen_capture_panel_content_lazy.tsx | 0 .../public/share/shared/get_shared_components.tsx | 0 .../private}/kbn-reporting/public/share/shared/index.ts | 0 .../packages/private}/kbn-reporting/public/tsconfig.json | 2 +- .../platform/packages/private}/kbn-reporting/public/types.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 39 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/public/README.md (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/context.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/hooks.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/jest.config.js (82%) rename {packages => src/platform/packages/private}/kbn-reporting/public/job.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/job_completion_notifications.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/job_completion_notifications.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/license_check.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/license_check.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/reporting_api_client.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/reporting_api_client.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/__snapshots__/screen_capture_panel_content.test.tsx.snap (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/panel_spinner.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_unsaved_work_panel.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_url_too_long_panel.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/reporting_panel_content/constants.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/reporting_panel_content/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/reporting_panel_content_lazy.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content_lazy.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/shared/get_shared_components.tsx (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/share/shared/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/public/tsconfig.json (93%) rename {packages => src/platform/packages/private}/kbn-reporting/public/types.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 17172129c1c9c..b259e9f2fc83d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/public @elastic/appex-sharedux packages/kbn-reporting/server @elastic/appex-sharedux packages/kbn-resizable-layout @elastic/kibana-data-discovery packages/kbn-rison @elastic/kibana-operations @@ -590,6 +589,7 @@ src/platform/packages/private/kbn-reporting/export_types/png @elastic/appex-shar src/platform/packages/private/kbn-reporting/export_types/png_common @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/mocks_server @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/public @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/package.json b/package.json index 03e2bdf66e913..49ad9c786d5dd 100644 --- a/package.json +++ b/package.json @@ -753,7 +753,7 @@ "@kbn/reporting-export-types-png-common": "link:src/platform/packages/private/kbn-reporting/export_types/png_common", "@kbn/reporting-mocks-server": "link:src/platform/packages/private/kbn-reporting/mocks_server", "@kbn/reporting-plugin": "link:x-pack/platform/plugins/private/reporting", - "@kbn/reporting-public": "link:packages/kbn-reporting/public", + "@kbn/reporting-public": "link:src/platform/packages/private/kbn-reporting/public", "@kbn/reporting-server": "link:packages/kbn-reporting/server", "@kbn/resizable-layout": "link:packages/kbn-resizable-layout", "@kbn/resizable-layout-examples-plugin": "link:examples/resizable_layout_examples", diff --git a/packages/kbn-reporting/public/README.md b/src/platform/packages/private/kbn-reporting/public/README.md similarity index 100% rename from packages/kbn-reporting/public/README.md rename to src/platform/packages/private/kbn-reporting/public/README.md diff --git a/packages/kbn-reporting/public/context.tsx b/src/platform/packages/private/kbn-reporting/public/context.tsx similarity index 100% rename from packages/kbn-reporting/public/context.tsx rename to src/platform/packages/private/kbn-reporting/public/context.tsx diff --git a/packages/kbn-reporting/public/hooks.ts b/src/platform/packages/private/kbn-reporting/public/hooks.ts similarity index 100% rename from packages/kbn-reporting/public/hooks.ts rename to src/platform/packages/private/kbn-reporting/public/hooks.ts diff --git a/packages/kbn-reporting/public/index.ts b/src/platform/packages/private/kbn-reporting/public/index.ts similarity index 100% rename from packages/kbn-reporting/public/index.ts rename to src/platform/packages/private/kbn-reporting/public/index.ts diff --git a/packages/kbn-reporting/public/jest.config.js b/src/platform/packages/private/kbn-reporting/public/jest.config.js similarity index 82% rename from packages/kbn-reporting/public/jest.config.js rename to src/platform/packages/private/kbn-reporting/public/jest.config.js index 25b8936e94561..c9c324666ee0a 100644 --- a/packages/kbn-reporting/public/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/public/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/kbn-reporting/public'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/public'], }; diff --git a/packages/kbn-reporting/public/job.tsx b/src/platform/packages/private/kbn-reporting/public/job.tsx similarity index 100% rename from packages/kbn-reporting/public/job.tsx rename to src/platform/packages/private/kbn-reporting/public/job.tsx diff --git a/packages/kbn-reporting/public/job_completion_notifications.test.ts b/src/platform/packages/private/kbn-reporting/public/job_completion_notifications.test.ts similarity index 100% rename from packages/kbn-reporting/public/job_completion_notifications.test.ts rename to src/platform/packages/private/kbn-reporting/public/job_completion_notifications.test.ts diff --git a/packages/kbn-reporting/public/job_completion_notifications.ts b/src/platform/packages/private/kbn-reporting/public/job_completion_notifications.ts similarity index 100% rename from packages/kbn-reporting/public/job_completion_notifications.ts rename to src/platform/packages/private/kbn-reporting/public/job_completion_notifications.ts diff --git a/packages/kbn-reporting/public/kibana.jsonc b/src/platform/packages/private/kbn-reporting/public/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/public/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/public/kibana.jsonc diff --git a/packages/kbn-reporting/public/license_check.test.ts b/src/platform/packages/private/kbn-reporting/public/license_check.test.ts similarity index 100% rename from packages/kbn-reporting/public/license_check.test.ts rename to src/platform/packages/private/kbn-reporting/public/license_check.test.ts diff --git a/packages/kbn-reporting/public/license_check.ts b/src/platform/packages/private/kbn-reporting/public/license_check.ts similarity index 100% rename from packages/kbn-reporting/public/license_check.ts rename to src/platform/packages/private/kbn-reporting/public/license_check.ts diff --git a/packages/kbn-reporting/public/package.json b/src/platform/packages/private/kbn-reporting/public/package.json similarity index 100% rename from packages/kbn-reporting/public/package.json rename to src/platform/packages/private/kbn-reporting/public/package.json diff --git a/packages/kbn-reporting/public/reporting_api_client.test.ts b/src/platform/packages/private/kbn-reporting/public/reporting_api_client.test.ts similarity index 100% rename from packages/kbn-reporting/public/reporting_api_client.test.ts rename to src/platform/packages/private/kbn-reporting/public/reporting_api_client.test.ts diff --git a/packages/kbn-reporting/public/reporting_api_client.ts b/src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts similarity index 100% rename from packages/kbn-reporting/public/reporting_api_client.ts rename to src/platform/packages/private/kbn-reporting/public/reporting_api_client.ts diff --git a/packages/kbn-reporting/public/share/index.ts b/src/platform/packages/private/kbn-reporting/public/share/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/index.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/__snapshots__/screen_capture_panel_content.test.tsx.snap b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/__snapshots__/screen_capture_panel_content.test.tsx.snap similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/__snapshots__/screen_capture_panel_content.test.tsx.snap rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/__snapshots__/screen_capture_panel_content.test.tsx.snap diff --git a/packages/kbn-reporting/public/share/share_context_menu/index.ts b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/index.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/panel_spinner.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/panel_spinner.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/panel_spinner.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/panel_spinner.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_unsaved_work_panel.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_unsaved_work_panel.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_unsaved_work_panel.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_unsaved_work_panel.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_url_too_long_panel.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_url_too_long_panel.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_url_too_long_panel.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/error_url_too_long_panel.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/index.ts b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/components/index.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/constants.ts b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/constants.ts similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/constants.ts rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/constants.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/index.ts b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/index.ts diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.test.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.test.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.test.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.test.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content/reporting_panel_content.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content_lazy.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content_lazy.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/reporting_panel_content_lazy.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/reporting_panel_content_lazy.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.test.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.test.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.test.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.test.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content.tsx diff --git a/packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content_lazy.tsx b/src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content_lazy.tsx similarity index 100% rename from packages/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content_lazy.tsx rename to src/platform/packages/private/kbn-reporting/public/share/share_context_menu/screen_capture_panel_content_lazy.tsx diff --git a/packages/kbn-reporting/public/share/shared/get_shared_components.tsx b/src/platform/packages/private/kbn-reporting/public/share/shared/get_shared_components.tsx similarity index 100% rename from packages/kbn-reporting/public/share/shared/get_shared_components.tsx rename to src/platform/packages/private/kbn-reporting/public/share/shared/get_shared_components.tsx diff --git a/packages/kbn-reporting/public/share/shared/index.ts b/src/platform/packages/private/kbn-reporting/public/share/shared/index.ts similarity index 100% rename from packages/kbn-reporting/public/share/shared/index.ts rename to src/platform/packages/private/kbn-reporting/public/share/shared/index.ts diff --git a/packages/kbn-reporting/public/tsconfig.json b/src/platform/packages/private/kbn-reporting/public/tsconfig.json similarity index 93% rename from packages/kbn-reporting/public/tsconfig.json rename to src/platform/packages/private/kbn-reporting/public/tsconfig.json index 9ca3c97766623..0f1d7d545cf34 100644 --- a/packages/kbn-reporting/public/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/public/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": ["jest", "node"] diff --git a/packages/kbn-reporting/public/types.ts b/src/platform/packages/private/kbn-reporting/public/types.ts similarity index 100% rename from packages/kbn-reporting/public/types.ts rename to src/platform/packages/private/kbn-reporting/public/types.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index 9e2ad8c1f53cf..043543664b4ee 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1472,8 +1472,8 @@ "@kbn/reporting-mocks-server/*": ["src/platform/packages/private/kbn-reporting/mocks_server/*"], "@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-public": ["src/platform/packages/private/kbn-reporting/public"], + "@kbn/reporting-public/*": ["src/platform/packages/private/kbn-reporting/public/*"], "@kbn/reporting-server": ["packages/kbn-reporting/server"], "@kbn/reporting-server/*": ["packages/kbn-reporting/server/*"], "@kbn/resizable-layout": ["packages/kbn-resizable-layout"], diff --git a/yarn.lock b/yarn.lock index e0ff234fcc7a0..5269ca5ae150f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6760,7 +6760,7 @@ version "0.0.0" uid "" -"@kbn/reporting-public@link:packages/kbn-reporting/public": +"@kbn/reporting-public@link:src/platform/packages/private/kbn-reporting/public": version "0.0.0" uid "" From 490c9c4c85e8954f881acbb0ecb8a437a2231f51 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:42:48 +0100 Subject: [PATCH 064/129] Relocating module `@kbn/reporting-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../server/__snapshots__/config_schema.test.ts.snap | 0 .../private}/kbn-reporting/server/check_license.test.ts | 0 .../packages/private}/kbn-reporting/server/check_license.ts | 0 .../private}/kbn-reporting/server/config_schema.test.ts | 0 .../packages/private}/kbn-reporting/server/config_schema.ts | 0 .../packages/private}/kbn-reporting/server/constants.ts | 0 .../platform/packages/private}/kbn-reporting/server/crypto.ts | 0 .../private}/kbn-reporting/server/decrypt_job_headers.test.ts | 0 .../private}/kbn-reporting/server/decrypt_job_headers.ts | 0 .../packages/private}/kbn-reporting/server/export_type.ts | 0 .../private}/kbn-reporting/server/export_types_registry.ts | 0 .../kbn-reporting/server/get_full_redirect_app_url.test.ts | 0 .../kbn-reporting/server/get_full_redirect_app_url.ts | 0 .../platform/packages/private}/kbn-reporting/server/index.ts | 0 .../packages/private}/kbn-reporting/server/jest.config.js | 4 ++-- .../packages/private}/kbn-reporting/server/kibana.jsonc | 0 .../packages/private}/kbn-reporting/server/package.json | 0 .../packages/private}/kbn-reporting/server/services.ts | 0 .../packages/private}/kbn-reporting/server/tsconfig.json | 2 +- .../platform/packages/private}/kbn-reporting/server/types.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 24 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/check_license.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/check_license.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/config_schema.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/config_schema.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/constants.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/crypto.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/decrypt_job_headers.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/decrypt_job_headers.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/export_type.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/export_types_registry.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/get_full_redirect_app_url.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/get_full_redirect_app_url.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/jest.config.js (82%) rename {packages => src/platform/packages/private}/kbn-reporting/server/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/package.json (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/services.ts (100%) rename {packages => src/platform/packages/private}/kbn-reporting/server/tsconfig.json (93%) rename {packages => src/platform/packages/private}/kbn-reporting/server/types.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b259e9f2fc83d..a2ecb503365be 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -418,7 +418,6 @@ 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 -packages/kbn-reporting/server @elastic/appex-sharedux packages/kbn-resizable-layout @elastic/kibana-data-discovery packages/kbn-rison @elastic/kibana-operations packages/kbn-router-to-openapispec @elastic/kibana-core @@ -590,6 +589,7 @@ src/platform/packages/private/kbn-reporting/export_types/png_common @elastic/app src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/mocks_server @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/public @elastic/appex-sharedux +src/platform/packages/private/kbn-reporting/server @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/package.json b/package.json index 49ad9c786d5dd..bc6d5c9a905d2 100644 --- a/package.json +++ b/package.json @@ -754,7 +754,7 @@ "@kbn/reporting-mocks-server": "link:src/platform/packages/private/kbn-reporting/mocks_server", "@kbn/reporting-plugin": "link:x-pack/platform/plugins/private/reporting", "@kbn/reporting-public": "link:src/platform/packages/private/kbn-reporting/public", - "@kbn/reporting-server": "link:packages/kbn-reporting/server", + "@kbn/reporting-server": "link:src/platform/packages/private/kbn-reporting/server", "@kbn/resizable-layout": "link:packages/kbn-resizable-layout", "@kbn/resizable-layout-examples-plugin": "link:examples/resizable_layout_examples", "@kbn/resolver-test-plugin": "link:x-pack/test/plugin_functional/plugins/resolver_test", diff --git a/packages/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap b/src/platform/packages/private/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap similarity index 100% rename from packages/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap rename to src/platform/packages/private/kbn-reporting/server/__snapshots__/config_schema.test.ts.snap diff --git a/packages/kbn-reporting/server/check_license.test.ts b/src/platform/packages/private/kbn-reporting/server/check_license.test.ts similarity index 100% rename from packages/kbn-reporting/server/check_license.test.ts rename to src/platform/packages/private/kbn-reporting/server/check_license.test.ts diff --git a/packages/kbn-reporting/server/check_license.ts b/src/platform/packages/private/kbn-reporting/server/check_license.ts similarity index 100% rename from packages/kbn-reporting/server/check_license.ts rename to src/platform/packages/private/kbn-reporting/server/check_license.ts diff --git a/packages/kbn-reporting/server/config_schema.test.ts b/src/platform/packages/private/kbn-reporting/server/config_schema.test.ts similarity index 100% rename from packages/kbn-reporting/server/config_schema.test.ts rename to src/platform/packages/private/kbn-reporting/server/config_schema.test.ts diff --git a/packages/kbn-reporting/server/config_schema.ts b/src/platform/packages/private/kbn-reporting/server/config_schema.ts similarity index 100% rename from packages/kbn-reporting/server/config_schema.ts rename to src/platform/packages/private/kbn-reporting/server/config_schema.ts diff --git a/packages/kbn-reporting/server/constants.ts b/src/platform/packages/private/kbn-reporting/server/constants.ts similarity index 100% rename from packages/kbn-reporting/server/constants.ts rename to src/platform/packages/private/kbn-reporting/server/constants.ts diff --git a/packages/kbn-reporting/server/crypto.ts b/src/platform/packages/private/kbn-reporting/server/crypto.ts similarity index 100% rename from packages/kbn-reporting/server/crypto.ts rename to src/platform/packages/private/kbn-reporting/server/crypto.ts diff --git a/packages/kbn-reporting/server/decrypt_job_headers.test.ts b/src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.test.ts similarity index 100% rename from packages/kbn-reporting/server/decrypt_job_headers.test.ts rename to src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.test.ts diff --git a/packages/kbn-reporting/server/decrypt_job_headers.ts b/src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.ts similarity index 100% rename from packages/kbn-reporting/server/decrypt_job_headers.ts rename to src/platform/packages/private/kbn-reporting/server/decrypt_job_headers.ts diff --git a/packages/kbn-reporting/server/export_type.ts b/src/platform/packages/private/kbn-reporting/server/export_type.ts similarity index 100% rename from packages/kbn-reporting/server/export_type.ts rename to src/platform/packages/private/kbn-reporting/server/export_type.ts diff --git a/packages/kbn-reporting/server/export_types_registry.ts b/src/platform/packages/private/kbn-reporting/server/export_types_registry.ts similarity index 100% rename from packages/kbn-reporting/server/export_types_registry.ts rename to src/platform/packages/private/kbn-reporting/server/export_types_registry.ts diff --git a/packages/kbn-reporting/server/get_full_redirect_app_url.test.ts b/src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.test.ts similarity index 100% rename from packages/kbn-reporting/server/get_full_redirect_app_url.test.ts rename to src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.test.ts diff --git a/packages/kbn-reporting/server/get_full_redirect_app_url.ts b/src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.ts similarity index 100% rename from packages/kbn-reporting/server/get_full_redirect_app_url.ts rename to src/platform/packages/private/kbn-reporting/server/get_full_redirect_app_url.ts diff --git a/packages/kbn-reporting/server/index.ts b/src/platform/packages/private/kbn-reporting/server/index.ts similarity index 100% rename from packages/kbn-reporting/server/index.ts rename to src/platform/packages/private/kbn-reporting/server/index.ts diff --git a/packages/kbn-reporting/server/jest.config.js b/src/platform/packages/private/kbn-reporting/server/jest.config.js similarity index 82% rename from packages/kbn-reporting/server/jest.config.js rename to src/platform/packages/private/kbn-reporting/server/jest.config.js index 18c8e9e89e4c0..1ed014b7b7df0 100644 --- a/packages/kbn-reporting/server/jest.config.js +++ b/src/platform/packages/private/kbn-reporting/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/kbn-reporting/server'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/private/kbn-reporting/server'], }; diff --git a/packages/kbn-reporting/server/kibana.jsonc b/src/platform/packages/private/kbn-reporting/server/kibana.jsonc similarity index 100% rename from packages/kbn-reporting/server/kibana.jsonc rename to src/platform/packages/private/kbn-reporting/server/kibana.jsonc diff --git a/packages/kbn-reporting/server/package.json b/src/platform/packages/private/kbn-reporting/server/package.json similarity index 100% rename from packages/kbn-reporting/server/package.json rename to src/platform/packages/private/kbn-reporting/server/package.json diff --git a/packages/kbn-reporting/server/services.ts b/src/platform/packages/private/kbn-reporting/server/services.ts similarity index 100% rename from packages/kbn-reporting/server/services.ts rename to src/platform/packages/private/kbn-reporting/server/services.ts diff --git a/packages/kbn-reporting/server/tsconfig.json b/src/platform/packages/private/kbn-reporting/server/tsconfig.json similarity index 93% rename from packages/kbn-reporting/server/tsconfig.json rename to src/platform/packages/private/kbn-reporting/server/tsconfig.json index 94b082afdc2ee..07fcdf9efb4e3 100644 --- a/packages/kbn-reporting/server/tsconfig.json +++ b/src/platform/packages/private/kbn-reporting/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-reporting/server/types.ts b/src/platform/packages/private/kbn-reporting/server/types.ts similarity index 100% rename from packages/kbn-reporting/server/types.ts rename to src/platform/packages/private/kbn-reporting/server/types.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index 043543664b4ee..8bc3774e7fed8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1474,8 +1474,8 @@ "@kbn/reporting-plugin/*": ["x-pack/platform/plugins/private/reporting/*"], "@kbn/reporting-public": ["src/platform/packages/private/kbn-reporting/public"], "@kbn/reporting-public/*": ["src/platform/packages/private/kbn-reporting/public/*"], - "@kbn/reporting-server": ["packages/kbn-reporting/server"], - "@kbn/reporting-server/*": ["packages/kbn-reporting/server/*"], + "@kbn/reporting-server": ["src/platform/packages/private/kbn-reporting/server"], + "@kbn/reporting-server/*": ["src/platform/packages/private/kbn-reporting/server/*"], "@kbn/resizable-layout": ["packages/kbn-resizable-layout"], "@kbn/resizable-layout/*": ["packages/kbn-resizable-layout/*"], "@kbn/resizable-layout-examples-plugin": ["examples/resizable_layout_examples"], diff --git a/yarn.lock b/yarn.lock index 5269ca5ae150f..99c0b3b4edc3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6764,7 +6764,7 @@ version "0.0.0" uid "" -"@kbn/reporting-server@link:packages/kbn-reporting/server": +"@kbn/reporting-server@link:src/platform/packages/private/kbn-reporting/server": version "0.0.0" uid "" From 197585a2883f77c81a7f1d1d06f316efce425bd9 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:44:07 +0100 Subject: [PATCH 065/129] Relocating module `@kbn/saved-objects-plugin` --- .github/CODEOWNERS | 2 +- .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 | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 27 files changed, 12 insertions(+), 12 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 (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a2ecb503365be..45c6759d6c054 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -638,6 +638,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/navigation @elastic/appex-sharedux +src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -683,7 +684,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 diff --git a/.i18nrc.json b/.i18nrc.json index 735e3ea44b90d..612c0e0ba9251 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -101,7 +101,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 5ec593c4523d5..a499cd20dbd49 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 bc6d5c9a905d2..114f896e9971e 100644 --- a/package.json +++ b/package.json @@ -783,7 +783,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 88% rename from src/plugins/saved_objects/tsconfig.json rename to src/platform/plugins/shared/saved_objects/tsconfig.json index 83e113a7e4e17..5d499566b51e4 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", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 8bc3774e7fed8..b004f0aea6324 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1532,8 +1532,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 99c0b3b4edc3c..b14d286eb5403 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6880,7 +6880,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 717e4ad4dcb9c889290afc00f92ee286077502be Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:45:24 +0100 Subject: [PATCH 066/129] Relocating module `@kbn/saved-objects-settings` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/kbn-saved-objects-settings/README.md | 0 .../packages/private}/kbn-saved-objects-settings/index.ts | 0 .../private}/kbn-saved-objects-settings/jest.config.js | 4 ++-- .../packages/private}/kbn-saved-objects-settings/kibana.jsonc | 0 .../packages/private}/kbn-saved-objects-settings/package.json | 0 .../private}/kbn-saved-objects-settings/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-saved-objects-settings/README.md (100%) rename {packages => src/platform/packages/private}/kbn-saved-objects-settings/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-saved-objects-settings/jest.config.js (82%) rename {packages => src/platform/packages/private}/kbn-saved-objects-settings/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-saved-objects-settings/package.json (100%) rename {packages => src/platform/packages/private}/kbn-saved-objects-settings/tsconfig.json (80%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 45c6759d6c054..7880524d40c48 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -425,7 +425,6 @@ packages/kbn-router-utils @elastic/obs-ux-logs-team packages/kbn-rrule @elastic/response-ops packages/kbn-rule-data-utils @elastic/security-detections-response @elastic/response-ops @elastic/obs-ux-management-team packages/kbn-safer-lodash-set @elastic/kibana-security -packages/kbn-saved-objects-settings @elastic/appex-sharedux packages/kbn-saved-search-component @elastic/obs-ux-logs-team packages/kbn-scout @elastic/appex-qa packages/kbn-screenshotting-server @elastic/appex-sharedux @@ -590,6 +589,7 @@ src/platform/packages/private/kbn-reporting/get_csv_panel_actions @elastic/appex src/platform/packages/private/kbn-reporting/mocks_server @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/public @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/server @elastic/appex-sharedux +src/platform/packages/private/kbn-saved-objects-settings @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/package.json b/package.json index 114f896e9971e..0bef5244331a9 100644 --- a/package.json +++ b/package.json @@ -784,7 +784,7 @@ "@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/platform/plugins/shared/saved_objects", - "@kbn/saved-objects-settings": "link:packages/kbn-saved-objects-settings", + "@kbn/saved-objects-settings": "link:src/platform/packages/private/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", "@kbn/saved-search-component": "link:packages/kbn-saved-search-component", diff --git a/packages/kbn-saved-objects-settings/README.md b/src/platform/packages/private/kbn-saved-objects-settings/README.md similarity index 100% rename from packages/kbn-saved-objects-settings/README.md rename to src/platform/packages/private/kbn-saved-objects-settings/README.md diff --git a/packages/kbn-saved-objects-settings/index.ts b/src/platform/packages/private/kbn-saved-objects-settings/index.ts similarity index 100% rename from packages/kbn-saved-objects-settings/index.ts rename to src/platform/packages/private/kbn-saved-objects-settings/index.ts diff --git a/packages/kbn-saved-objects-settings/jest.config.js b/src/platform/packages/private/kbn-saved-objects-settings/jest.config.js similarity index 82% rename from packages/kbn-saved-objects-settings/jest.config.js rename to src/platform/packages/private/kbn-saved-objects-settings/jest.config.js index c2d39b4e3cdbd..0e76068f71342 100644 --- a/packages/kbn-saved-objects-settings/jest.config.js +++ b/src/platform/packages/private/kbn-saved-objects-settings/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-saved-objects-settings'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-saved-objects-settings'], }; diff --git a/packages/kbn-saved-objects-settings/kibana.jsonc b/src/platform/packages/private/kbn-saved-objects-settings/kibana.jsonc similarity index 100% rename from packages/kbn-saved-objects-settings/kibana.jsonc rename to src/platform/packages/private/kbn-saved-objects-settings/kibana.jsonc diff --git a/packages/kbn-saved-objects-settings/package.json b/src/platform/packages/private/kbn-saved-objects-settings/package.json similarity index 100% rename from packages/kbn-saved-objects-settings/package.json rename to src/platform/packages/private/kbn-saved-objects-settings/package.json diff --git a/packages/kbn-saved-objects-settings/tsconfig.json b/src/platform/packages/private/kbn-saved-objects-settings/tsconfig.json similarity index 80% rename from packages/kbn-saved-objects-settings/tsconfig.json rename to src/platform/packages/private/kbn-saved-objects-settings/tsconfig.json index 2f9ddddbeea23..7aba1b1a9378a 100644 --- a/packages/kbn-saved-objects-settings/tsconfig.json +++ b/src/platform/packages/private/kbn-saved-objects-settings/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index b004f0aea6324..680e4f05786d2 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1534,8 +1534,8 @@ "@kbn/saved-objects-management-plugin/*": ["src/plugins/saved_objects_management/*"], "@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-settings": ["src/platform/packages/private/kbn-saved-objects-settings"], + "@kbn/saved-objects-settings/*": ["src/platform/packages/private/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-plugin": ["x-pack/plugins/saved_objects_tagging"], diff --git a/yarn.lock b/yarn.lock index b14d286eb5403..7363dcbd8d79e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6884,7 +6884,7 @@ version "0.0.0" uid "" -"@kbn/saved-objects-settings@link:packages/kbn-saved-objects-settings": +"@kbn/saved-objects-settings@link:src/platform/packages/private/kbn-saved-objects-settings": version "0.0.0" uid "" From 934fe6d5e5a1dac8242ecdd39def3cca0095fa79 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:46:42 +0100 Subject: [PATCH 067/129] 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 7880524d40c48..20ff1c4806eda 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -639,6 +639,7 @@ src/platform/plugins/shared/kibana_react @elastic/appex-sharedux src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux 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/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -686,7 +687,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 a499cd20dbd49..b34afe1d6ba2e 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 0bef5244331a9..869b3742d8538 100644 --- a/package.json +++ b/package.json @@ -785,7 +785,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:src/platform/packages/private/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 680e4f05786d2..c03a519407f6c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1536,8 +1536,8 @@ "@kbn/saved-objects-plugin/*": ["src/platform/plugins/shared/saved_objects/*"], "@kbn/saved-objects-settings": ["src/platform/packages/private/kbn-saved-objects-settings"], "@kbn/saved-objects-settings/*": ["src/platform/packages/private/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 7363dcbd8d79e..6499eaed85c23 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6888,7 +6888,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 eab60fd3e6a93fcf1467ff04d25e646e4c5a1b0c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:47:59 +0100 Subject: [PATCH 068/129] 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 20ff1c4806eda..27110274e4b78 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -869,6 +869,7 @@ x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux 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/reporting @elastic/appex-sharedux +x-pack/platform/plugins/private/saved_objects_tagging @elastic/appex-sharedux 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/notifications @elastic/appex-sharedux @@ -958,7 +959,6 @@ x-pack/plugins/remote_clusters @elastic/kibana-management x-pack/plugins/rollup @elastic/kibana-management x-pack/plugins/rule_registry @elastic/response-ops @elastic/obs-ux-management-team x-pack/plugins/runtime_fields @elastic/kibana-management -x-pack/plugins/saved_objects_tagging @elastic/appex-sharedux x-pack/plugins/screenshotting @elastic/kibana-reporting-services x-pack/plugins/search_assistant @elastic/search-kibana x-pack/plugins/search_connectors @elastic/search-kibana diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index b34afe1d6ba2e..62b1b8bbd0943 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -811,7 +811,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 869b3742d8538..3d79701243098 100644 --- a/package.json +++ b/package.json @@ -786,7 +786,7 @@ "@kbn/saved-objects-plugin": "link:src/platform/plugins/shared/saved_objects", "@kbn/saved-objects-settings": "link:src/platform/packages/private/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 c03a519407f6c..eceb689b7363b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1538,8 +1538,8 @@ "@kbn/saved-objects-settings/*": ["src/platform/packages/private/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 8eb47b0b0b680..cff164d469740 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -157,7 +157,7 @@ "xpack.snapshotRestore": "plugins/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": "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 b5202917aa4ef..dc3610caf93b7 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 6499eaed85c23..ca5a10d933edb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6892,7 +6892,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 facca3470553f63582f531183d72ac0799c3c1e5 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:49:20 +0100 Subject: [PATCH 069/129] 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 27110274e4b78..dd9fbfedfcb45 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -640,6 +640,7 @@ src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux 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/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -688,7 +689,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 62b1b8bbd0943..db6a2a005cb1e 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -311,7 +311,7 @@ oss plugins. |Contains the saved search saved object definition and helpers. -|{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 3d79701243098..a7bfb2a85eedb 100644 --- a/package.json +++ b/package.json @@ -790,7 +790,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/plugins/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 eceb689b7363b..269f3ce995f62 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1548,8 +1548,8 @@ "@kbn/scout/*": ["packages/kbn-scout/*"], "@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/plugins/screenshotting"], diff --git a/yarn.lock b/yarn.lock index ca5a10d933edb..6d1f0706e71d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6912,7 +6912,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 8f451567a8af87bae2712f004613c8eadc0f6502 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:50:40 +0100 Subject: [PATCH 070/129] Relocating module `@kbn/screenshotting-example-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 4 ++++ package.json | 2 +- tsconfig.base.json | 4 ++-- .../x-pack}/examples/screenshotting_example/README.md | 0 .../x-pack}/examples/screenshotting_example/common/index.ts | 0 .../x-pack}/examples/screenshotting_example/kibana.jsonc | 0 .../examples/screenshotting_example/public/app/app.tsx | 0 .../screenshotting_example/public/app/http_context.ts | 0 .../examples/screenshotting_example/public/app/index.ts | 0 .../x-pack}/examples/screenshotting_example/public/index.ts | 0 .../x-pack}/examples/screenshotting_example/public/plugin.tsx | 0 .../x-pack}/examples/screenshotting_example/server/index.ts | 0 .../x-pack}/examples/screenshotting_example/server/plugin.ts | 0 .../x-pack}/examples/screenshotting_example/tsconfig.json | 4 ++-- yarn.lock | 2 +- 16 files changed, 11 insertions(+), 7 deletions(-) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/README.md (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/common/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/kibana.jsonc (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/public/app/app.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/public/app/http_context.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/public/app/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/public/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/public/plugin.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/server/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/server/plugin.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/screenshotting_example/tsconfig.json (73%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dd9fbfedfcb45..a33f32645fbcd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -766,7 +766,6 @@ x-pack/examples/exploratory_view_example @elastic/obs-ux-infra_services-team x-pack/examples/gen_ai_streaming_response_example @elastic/response-ops x-pack/examples/lens_config_builder_example @elastic/kibana-visualizations x-pack/examples/lens_embeddable_inline_editing_example @elastic/kibana-visualizations -x-pack/examples/screenshotting_example @elastic/appex-sharedux x-pack/examples/testing_embedded_lens @elastic/kibana-visualizations x-pack/examples/third_party_lens_navigation_prompt @elastic/kibana-visualizations x-pack/examples/third_party_maps_source_example @elastic/kibana-presentation @@ -870,6 +869,7 @@ 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/reporting @elastic/appex-sharedux x-pack/platform/plugins/private/saved_objects_tagging @elastic/appex-sharedux +x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example @elastic/appex-sharedux 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/notifications @elastic/appex-sharedux diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index db6a2a005cb1e..7e0cfa40b12ee 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -820,6 +820,10 @@ Elastic. It uses Chromium and Puppeteer underneath to run the browser in headless mode. +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/README.md[screenshottingExample] +|Screenshotting integration example plugin. + + |{kib-repo}blob/{branch}/x-pack/plugins/search_assistant/README.md[searchAssistant] |This holds the Search AI Assistant which targets Search users and Serverless Elasticsearch. diff --git a/package.json b/package.json index a7bfb2a85eedb..9a6a5b6f39f3c 100644 --- a/package.json +++ b/package.json @@ -791,7 +791,7 @@ "@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/platform/plugins/shared/screenshot_mode", - "@kbn/screenshotting-example-plugin": "link:x-pack/examples/screenshotting_example", + "@kbn/screenshotting-example-plugin": "link:x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example", "@kbn/screenshotting-plugin": "link:x-pack/plugins/screenshotting", "@kbn/screenshotting-server": "link:packages/kbn-screenshotting-server", "@kbn/search-api-keys-components": "link:packages/kbn-search-api-keys-components", diff --git a/tsconfig.base.json b/tsconfig.base.json index 269f3ce995f62..08c1341bbff31 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1550,8 +1550,8 @@ "@kbn/screenshot-mode-example-plugin/*": ["examples/screenshot_mode_example/*"], "@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-example-plugin": ["x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example"], + "@kbn/screenshotting-example-plugin/*": ["x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/*"], "@kbn/screenshotting-plugin": ["x-pack/plugins/screenshotting"], "@kbn/screenshotting-plugin/*": ["x-pack/plugins/screenshotting/*"], "@kbn/screenshotting-server": ["packages/kbn-screenshotting-server"], diff --git a/x-pack/examples/screenshotting_example/README.md b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/README.md similarity index 100% rename from x-pack/examples/screenshotting_example/README.md rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/README.md diff --git a/x-pack/examples/screenshotting_example/common/index.ts b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/common/index.ts similarity index 100% rename from x-pack/examples/screenshotting_example/common/index.ts rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/common/index.ts diff --git a/x-pack/examples/screenshotting_example/kibana.jsonc b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/kibana.jsonc similarity index 100% rename from x-pack/examples/screenshotting_example/kibana.jsonc rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/kibana.jsonc diff --git a/x-pack/examples/screenshotting_example/public/app/app.tsx b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/app/app.tsx similarity index 100% rename from x-pack/examples/screenshotting_example/public/app/app.tsx rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/app/app.tsx diff --git a/x-pack/examples/screenshotting_example/public/app/http_context.ts b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/app/http_context.ts similarity index 100% rename from x-pack/examples/screenshotting_example/public/app/http_context.ts rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/app/http_context.ts diff --git a/x-pack/examples/screenshotting_example/public/app/index.ts b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/app/index.ts similarity index 100% rename from x-pack/examples/screenshotting_example/public/app/index.ts rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/app/index.ts diff --git a/x-pack/examples/screenshotting_example/public/index.ts b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/index.ts similarity index 100% rename from x-pack/examples/screenshotting_example/public/index.ts rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/index.ts diff --git a/x-pack/examples/screenshotting_example/public/plugin.tsx b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/plugin.tsx similarity index 100% rename from x-pack/examples/screenshotting_example/public/plugin.tsx rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/public/plugin.tsx diff --git a/x-pack/examples/screenshotting_example/server/index.ts b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/server/index.ts similarity index 100% rename from x-pack/examples/screenshotting_example/server/index.ts rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/server/index.ts diff --git a/x-pack/examples/screenshotting_example/server/plugin.ts b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/server/plugin.ts similarity index 100% rename from x-pack/examples/screenshotting_example/server/plugin.ts rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/server/plugin.ts diff --git a/x-pack/examples/screenshotting_example/tsconfig.json b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/tsconfig.json similarity index 73% rename from x-pack/examples/screenshotting_example/tsconfig.json rename to x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/tsconfig.json index 6187b2b5ceea0..3ade1c602360c 100644 --- a/x-pack/examples/screenshotting_example/tsconfig.json +++ b/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../../../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, @@ -9,7 +9,7 @@ "public/**/*.tsx", "server/**/*.ts", "common/**/*.ts", - "../../../typings/**/*" + "../../../../../../../../../../../../../../../typings/**/*" ], "exclude": [ "target/**/*", diff --git a/yarn.lock b/yarn.lock index 6d1f0706e71d9..a4912be7de2c2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6916,7 +6916,7 @@ version "0.0.0" uid "" -"@kbn/screenshotting-example-plugin@link:x-pack/examples/screenshotting_example": +"@kbn/screenshotting-example-plugin@link:x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example": version "0.0.0" uid "" From 46331e930e3cf412619b63277f51f5669e7d5ab3 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:51:56 +0100 Subject: [PATCH 071/129] Relocating module `@kbn/screenshotting-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/kbn-screenshotting-server/README.md | 0 .../packages/private}/kbn-screenshotting-server/index.ts | 0 .../private}/kbn-screenshotting-server/jest.config.js | 4 ++-- .../packages/private}/kbn-screenshotting-server/kibana.jsonc | 0 .../packages/private}/kbn-screenshotting-server/package.json | 0 .../private}/kbn-screenshotting-server/src/args.test.ts | 0 .../packages/private}/kbn-screenshotting-server/src/args.ts | 0 .../src/config/create_config.test.ts | 0 .../kbn-screenshotting-server/src/config/create_config.ts | 0 .../src/config/default_chromium_sandbox_disabled.test.ts | 0 .../src/config/default_chromium_sandbox_disabled.ts | 0 .../private}/kbn-screenshotting-server/src/config/index.ts | 0 .../private}/kbn-screenshotting-server/src/config/schema.ts | 0 .../kbn-screenshotting-server/src/get_chromium_package.ts | 0 .../private}/kbn-screenshotting-server/src/paths.test.ts | 0 .../packages/private}/kbn-screenshotting-server/src/paths.ts | 2 +- .../packages/private}/kbn-screenshotting-server/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/README.md (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/jest.config.js (82%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/package.json (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/args.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/args.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/config/create_config.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/config/create_config.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/config/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/config/schema.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/get_chromium_package.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/paths.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/src/paths.ts (99%) rename {packages => src/platform/packages/private}/kbn-screenshotting-server/tsconfig.json (84%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a33f32645fbcd..1c18287caa3bd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -427,7 +427,6 @@ packages/kbn-rule-data-utils @elastic/security-detections-response @elastic/resp packages/kbn-safer-lodash-set @elastic/kibana-security packages/kbn-saved-search-component @elastic/obs-ux-logs-team packages/kbn-scout @elastic/appex-qa -packages/kbn-screenshotting-server @elastic/appex-sharedux packages/kbn-search-api-keys-components @elastic/search-kibana packages/kbn-search-api-keys-server @elastic/search-kibana packages/kbn-search-api-panels @elastic/search-kibana @@ -590,6 +589,7 @@ src/platform/packages/private/kbn-reporting/mocks_server @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/public @elastic/appex-sharedux src/platform/packages/private/kbn-reporting/server @elastic/appex-sharedux src/platform/packages/private/kbn-saved-objects-settings @elastic/appex-sharedux +src/platform/packages/private/kbn-screenshotting-server @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/package.json b/package.json index 9a6a5b6f39f3c..b3a8e684850e7 100644 --- a/package.json +++ b/package.json @@ -793,7 +793,7 @@ "@kbn/screenshot-mode-plugin": "link:src/platform/plugins/shared/screenshot_mode", "@kbn/screenshotting-example-plugin": "link:x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example", "@kbn/screenshotting-plugin": "link:x-pack/plugins/screenshotting", - "@kbn/screenshotting-server": "link:packages/kbn-screenshotting-server", + "@kbn/screenshotting-server": "link:src/platform/packages/private/kbn-screenshotting-server", "@kbn/search-api-keys-components": "link:packages/kbn-search-api-keys-components", "@kbn/search-api-keys-server": "link:packages/kbn-search-api-keys-server", "@kbn/search-api-panels": "link:packages/kbn-search-api-panels", diff --git a/packages/kbn-screenshotting-server/README.md b/src/platform/packages/private/kbn-screenshotting-server/README.md similarity index 100% rename from packages/kbn-screenshotting-server/README.md rename to src/platform/packages/private/kbn-screenshotting-server/README.md diff --git a/packages/kbn-screenshotting-server/index.ts b/src/platform/packages/private/kbn-screenshotting-server/index.ts similarity index 100% rename from packages/kbn-screenshotting-server/index.ts rename to src/platform/packages/private/kbn-screenshotting-server/index.ts diff --git a/packages/kbn-screenshotting-server/jest.config.js b/src/platform/packages/private/kbn-screenshotting-server/jest.config.js similarity index 82% rename from packages/kbn-screenshotting-server/jest.config.js rename to src/platform/packages/private/kbn-screenshotting-server/jest.config.js index d1ef8a4351f20..59ae5deea5d8b 100644 --- a/packages/kbn-screenshotting-server/jest.config.js +++ b/src/platform/packages/private/kbn-screenshotting-server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-screenshotting-server'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-screenshotting-server'], }; diff --git a/packages/kbn-screenshotting-server/kibana.jsonc b/src/platform/packages/private/kbn-screenshotting-server/kibana.jsonc similarity index 100% rename from packages/kbn-screenshotting-server/kibana.jsonc rename to src/platform/packages/private/kbn-screenshotting-server/kibana.jsonc diff --git a/packages/kbn-screenshotting-server/package.json b/src/platform/packages/private/kbn-screenshotting-server/package.json similarity index 100% rename from packages/kbn-screenshotting-server/package.json rename to src/platform/packages/private/kbn-screenshotting-server/package.json diff --git a/packages/kbn-screenshotting-server/src/args.test.ts b/src/platform/packages/private/kbn-screenshotting-server/src/args.test.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/args.test.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/args.test.ts diff --git a/packages/kbn-screenshotting-server/src/args.ts b/src/platform/packages/private/kbn-screenshotting-server/src/args.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/args.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/args.ts diff --git a/packages/kbn-screenshotting-server/src/config/create_config.test.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.test.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/create_config.test.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.test.ts diff --git a/packages/kbn-screenshotting-server/src/config/create_config.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/create_config.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/create_config.ts diff --git a/packages/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.test.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.test.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.test.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.test.ts diff --git a/packages/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/default_chromium_sandbox_disabled.ts diff --git a/packages/kbn-screenshotting-server/src/config/index.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/index.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/index.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/index.ts diff --git a/packages/kbn-screenshotting-server/src/config/schema.ts b/src/platform/packages/private/kbn-screenshotting-server/src/config/schema.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/config/schema.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/config/schema.ts diff --git a/packages/kbn-screenshotting-server/src/get_chromium_package.ts b/src/platform/packages/private/kbn-screenshotting-server/src/get_chromium_package.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/get_chromium_package.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/get_chromium_package.ts diff --git a/packages/kbn-screenshotting-server/src/paths.test.ts b/src/platform/packages/private/kbn-screenshotting-server/src/paths.test.ts similarity index 100% rename from packages/kbn-screenshotting-server/src/paths.test.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/paths.test.ts diff --git a/packages/kbn-screenshotting-server/src/paths.ts b/src/platform/packages/private/kbn-screenshotting-server/src/paths.ts similarity index 99% rename from packages/kbn-screenshotting-server/src/paths.ts rename to src/platform/packages/private/kbn-screenshotting-server/src/paths.ts index e4c5a89d77627..6528981207ba3 100644 --- a/packages/kbn-screenshotting-server/src/paths.ts +++ b/src/platform/packages/private/kbn-screenshotting-server/src/paths.ts @@ -103,7 +103,7 @@ export class ChromiumArchivePaths { ]; // zip files get downloaded to a .chromium directory in the kibana root - public readonly archivesPath = path.resolve(__dirname, '../../../.chromium'); + public readonly archivesPath = path.resolve(__dirname, '../../../../../../.chromium'); public find(platform: string, architecture: string, packages: PackageInfo[] = this.packages) { return packages.find((p) => p.platform === platform && p.architecture === architecture); diff --git a/packages/kbn-screenshotting-server/tsconfig.json b/src/platform/packages/private/kbn-screenshotting-server/tsconfig.json similarity index 84% rename from packages/kbn-screenshotting-server/tsconfig.json rename to src/platform/packages/private/kbn-screenshotting-server/tsconfig.json index 1ca4b9da2b0f6..1661cfb5925e5 100644 --- a/packages/kbn-screenshotting-server/tsconfig.json +++ b/src/platform/packages/private/kbn-screenshotting-server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 08c1341bbff31..0fe9758aa6367 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1554,8 +1554,8 @@ "@kbn/screenshotting-example-plugin/*": ["x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example/*"], "@kbn/screenshotting-plugin": ["x-pack/plugins/screenshotting"], "@kbn/screenshotting-plugin/*": ["x-pack/plugins/screenshotting/*"], - "@kbn/screenshotting-server": ["packages/kbn-screenshotting-server"], - "@kbn/screenshotting-server/*": ["packages/kbn-screenshotting-server/*"], + "@kbn/screenshotting-server": ["src/platform/packages/private/kbn-screenshotting-server"], + "@kbn/screenshotting-server/*": ["src/platform/packages/private/kbn-screenshotting-server/*"], "@kbn/search-api-keys-components": ["packages/kbn-search-api-keys-components"], "@kbn/search-api-keys-components/*": ["packages/kbn-search-api-keys-components/*"], "@kbn/search-api-keys-server": ["packages/kbn-search-api-keys-server"], diff --git a/yarn.lock b/yarn.lock index a4912be7de2c2..43c551c8713eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6924,7 +6924,7 @@ version "0.0.0" uid "" -"@kbn/screenshotting-server@link:packages/kbn-screenshotting-server": +"@kbn/screenshotting-server@link:src/platform/packages/private/kbn-screenshotting-server": version "0.0.0" uid "" From 02f9a25758d3b651dcd463111268d97405340b39 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:53:14 +0100 Subject: [PATCH 072/129] 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 1c18287caa3bd..777347be5b9b3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -873,6 +873,7 @@ x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsol 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/notifications @elastic/appex-sharedux +x-pack/platform/plugins/shared/serverless @elastic/appex-sharedux x-pack/plugins/actions @elastic/response-ops x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra x-pack/plugins/ai_infra/product_doc_base @elastic/appex-ai-infra @@ -973,7 +974,6 @@ x-pack/plugins/security @elastic/kibana-security x-pack/plugins/security_solution @elastic/security-solution x-pack/plugins/security_solution_ess @elastic/security-solution x-pack/plugins/security_solution_serverless @elastic/security-solution -x-pack/plugins/serverless @elastic/appex-sharedux x-pack/plugins/serverless_observability @elastic/obs-ux-management-team x-pack/plugins/serverless_search @elastic/search-kibana x-pack/plugins/session_view @elastic/kibana-cloud-security-posture diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 7e0cfa40b12ee..c438f5e653e5e 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -882,7 +882,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 b3a8e684850e7..8d35a8547c2c4 100644 --- a/package.json +++ b/package.json @@ -859,7 +859,7 @@ "@kbn/server-route-repository": "link:packages/kbn-server-route-repository", "@kbn/server-route-repository-client": "link:packages/kbn-server-route-repository-client", "@kbn/server-route-repository-utils": "link:packages/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/plugins/serverless_observability", "@kbn/serverless-observability-settings": "link:packages/serverless/settings/observability_project", diff --git a/tsconfig.base.json b/tsconfig.base.json index 0fe9758aa6367..0f6d61b52047e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1688,8 +1688,8 @@ "@kbn/server-route-repository-client/*": ["packages/kbn-server-route-repository-client/*"], "@kbn/server-route-repository-utils": ["packages/kbn-server-route-repository-utils"], "@kbn/server-route-repository-utils/*": ["packages/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/plugins/serverless_observability"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index cff164d469740..95104ad88256a 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": "plugins/serverless_observability", "xpack.securitySolution": "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 35cc5e554ceb3..ec1aa65f05fb5 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 43c551c8713eb..138e11517dc6f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7228,7 +7228,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 474e0dd30f1e79a511162712a14a961fdda68f31 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:54:30 +0100 Subject: [PATCH 073/129] Relocating module `@kbn/serverless-common-settings` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/serverless/settings/common/README.mdx | 0 .../packages/private}/serverless/settings/common/index.ts | 0 .../packages/private}/serverless/settings/common/kibana.jsonc | 0 .../packages/private}/serverless/settings/common/package.json | 0 .../private}/serverless/settings/common/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- .../api_integration/test_suites/common/core/ui_settings.ts | 2 +- yarn.lock | 2 +- 10 files changed, 7 insertions(+), 7 deletions(-) rename {packages => src/platform/packages/private}/serverless/settings/common/README.mdx (100%) rename {packages => src/platform/packages/private}/serverless/settings/common/index.ts (100%) rename {packages => src/platform/packages/private}/serverless/settings/common/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/serverless/settings/common/package.json (100%) rename {packages => src/platform/packages/private}/serverless/settings/common/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 777347be5b9b3..e1af11a78003f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -515,7 +515,6 @@ packages/response-ops/feature_flag_service @elastic/response-ops packages/response-ops/rule_form @elastic/response-ops packages/response-ops/rule_params @elastic/response-ops packages/serverless/project_switcher @elastic/appex-sharedux -packages/serverless/settings/common @elastic/appex-sharedux @elastic/kibana-management packages/serverless/settings/observability_project @elastic/appex-sharedux @elastic/kibana-management @elastic/obs-ux-management-team packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management @@ -591,6 +590,7 @@ src/platform/packages/private/kbn-reporting/server @elastic/appex-sharedux src/platform/packages/private/kbn-saved-objects-settings @elastic/appex-sharedux src/platform/packages/private/kbn-screenshotting-server @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux +src/platform/packages/private/serverless/settings/common @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index 8d35a8547c2c4..ed3c79f9bb336 100644 --- a/package.json +++ b/package.json @@ -860,7 +860,7 @@ "@kbn/server-route-repository-client": "link:packages/kbn-server-route-repository-client", "@kbn/server-route-repository-utils": "link:packages/kbn-server-route-repository-utils", "@kbn/serverless": "link:x-pack/platform/plugins/shared/serverless", - "@kbn/serverless-common-settings": "link:packages/serverless/settings/common", + "@kbn/serverless-common-settings": "link:src/platform/packages/private/serverless/settings/common", "@kbn/serverless-observability": "link:x-pack/plugins/serverless_observability", "@kbn/serverless-observability-settings": "link:packages/serverless/settings/observability_project", "@kbn/serverless-project-switcher": "link:packages/serverless/project_switcher", diff --git a/packages/serverless/settings/common/README.mdx b/src/platform/packages/private/serverless/settings/common/README.mdx similarity index 100% rename from packages/serverless/settings/common/README.mdx rename to src/platform/packages/private/serverless/settings/common/README.mdx diff --git a/packages/serverless/settings/common/index.ts b/src/platform/packages/private/serverless/settings/common/index.ts similarity index 100% rename from packages/serverless/settings/common/index.ts rename to src/platform/packages/private/serverless/settings/common/index.ts diff --git a/packages/serverless/settings/common/kibana.jsonc b/src/platform/packages/private/serverless/settings/common/kibana.jsonc similarity index 100% rename from packages/serverless/settings/common/kibana.jsonc rename to src/platform/packages/private/serverless/settings/common/kibana.jsonc diff --git a/packages/serverless/settings/common/package.json b/src/platform/packages/private/serverless/settings/common/package.json similarity index 100% rename from packages/serverless/settings/common/package.json rename to src/platform/packages/private/serverless/settings/common/package.json diff --git a/packages/serverless/settings/common/tsconfig.json b/src/platform/packages/private/serverless/settings/common/tsconfig.json similarity index 81% rename from packages/serverless/settings/common/tsconfig.json rename to src/platform/packages/private/serverless/settings/common/tsconfig.json index 16d6022e3d9bc..16a9ba9ba4b5d 100644 --- a/packages/serverless/settings/common/tsconfig.json +++ b/src/platform/packages/private/serverless/settings/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 0f6d61b52047e..e65b2c15f78db 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1690,8 +1690,8 @@ "@kbn/server-route-repository-utils/*": ["packages/kbn-server-route-repository-utils/*"], "@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-common-settings": ["src/platform/packages/private/serverless/settings/common"], + "@kbn/serverless-common-settings/*": ["src/platform/packages/private/serverless/settings/common/*"], "@kbn/serverless-observability": ["x-pack/plugins/serverless_observability"], "@kbn/serverless-observability/*": ["x-pack/plugins/serverless_observability/*"], "@kbn/serverless-observability-settings": ["packages/serverless/settings/observability_project"], diff --git a/x-pack/test_serverless/api_integration/test_suites/common/core/ui_settings.ts b/x-pack/test_serverless/api_integration/test_suites/common/core/ui_settings.ts index 228ba1f3ad28f..a359c0de62db4 100644 --- a/x-pack/test_serverless/api_integration/test_suites/common/core/ui_settings.ts +++ b/x-pack/test_serverless/api_integration/test_suites/common/core/ui_settings.ts @@ -10,7 +10,7 @@ import { SupertestWithRoleScopeType } from '@kbn/test-suites-xpack/api_integrati import { FtrProviderContext } from '../../../ftr_provider_context'; // To test setting validations we are using the existing 'defaultColumns' setting that is available in all serverless projects -// (See list of common serverless settings in /packages/serverless/settings/common/index.ts) +// (See list of common serverless settings in /src/platform/packages/private/serverless/settings/common/index.ts) // The 'defaultColumns' setting is of type array of strings const DEFAULT_COLUMNS_SETTING = 'defaultColumns'; diff --git a/yarn.lock b/yarn.lock index 138e11517dc6f..f1382c83393c1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7192,7 +7192,7 @@ version "0.0.0" uid "" -"@kbn/serverless-common-settings@link:packages/serverless/settings/common": +"@kbn/serverless-common-settings@link:src/platform/packages/private/serverless/settings/common": version "0.0.0" uid "" From 5c1dfa5daccc96ced3ebc462a686dd4b065fdc58 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:55:46 +0100 Subject: [PATCH 074/129] Relocating module `@kbn/serverless-observability-settings` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../serverless/settings/observability_project/README.mdx | 0 .../serverless/settings/observability_project/index.ts | 0 .../serverless/settings/observability_project/kibana.jsonc | 0 .../serverless/settings/observability_project/package.json | 0 .../serverless/settings/observability_project/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/serverless/settings/observability_project/README.mdx (100%) rename {packages => src/platform/packages/shared}/serverless/settings/observability_project/index.ts (100%) rename {packages => src/platform/packages/shared}/serverless/settings/observability_project/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/serverless/settings/observability_project/package.json (100%) rename {packages => src/platform/packages/shared}/serverless/settings/observability_project/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e1af11a78003f..4e5f8876678fb 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -515,7 +515,6 @@ packages/response-ops/feature_flag_service @elastic/response-ops packages/response-ops/rule_form @elastic/response-ops packages/response-ops/rule_params @elastic/response-ops packages/serverless/project_switcher @elastic/appex-sharedux -packages/serverless/settings/observability_project @elastic/appex-sharedux @elastic/kibana-management @elastic/obs-ux-management-team packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux @@ -621,6 +620,7 @@ src/platform/packages/shared/react/kibana_context/render @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/styled @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/theme @elastic/appex-sharedux src/platform/packages/shared/react/kibana_mount @elastic/appex-sharedux +src/platform/packages/shared/serverless/settings/observability_project @elastic/appex-sharedux @elastic/kibana-management @elastic/obs-ux-management-team src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index ed3c79f9bb336..5c240ab1c00eb 100644 --- a/package.json +++ b/package.json @@ -862,7 +862,7 @@ "@kbn/serverless": "link:x-pack/platform/plugins/shared/serverless", "@kbn/serverless-common-settings": "link:src/platform/packages/private/serverless/settings/common", "@kbn/serverless-observability": "link:x-pack/plugins/serverless_observability", - "@kbn/serverless-observability-settings": "link:packages/serverless/settings/observability_project", + "@kbn/serverless-observability-settings": "link:src/platform/packages/shared/serverless/settings/observability_project", "@kbn/serverless-project-switcher": "link:packages/serverless/project_switcher", "@kbn/serverless-search": "link:x-pack/plugins/serverless_search", "@kbn/serverless-search-settings": "link:packages/serverless/settings/search_project", diff --git a/packages/serverless/settings/observability_project/README.mdx b/src/platform/packages/shared/serverless/settings/observability_project/README.mdx similarity index 100% rename from packages/serverless/settings/observability_project/README.mdx rename to src/platform/packages/shared/serverless/settings/observability_project/README.mdx diff --git a/packages/serverless/settings/observability_project/index.ts b/src/platform/packages/shared/serverless/settings/observability_project/index.ts similarity index 100% rename from packages/serverless/settings/observability_project/index.ts rename to src/platform/packages/shared/serverless/settings/observability_project/index.ts diff --git a/packages/serverless/settings/observability_project/kibana.jsonc b/src/platform/packages/shared/serverless/settings/observability_project/kibana.jsonc similarity index 100% rename from packages/serverless/settings/observability_project/kibana.jsonc rename to src/platform/packages/shared/serverless/settings/observability_project/kibana.jsonc diff --git a/packages/serverless/settings/observability_project/package.json b/src/platform/packages/shared/serverless/settings/observability_project/package.json similarity index 100% rename from packages/serverless/settings/observability_project/package.json rename to src/platform/packages/shared/serverless/settings/observability_project/package.json diff --git a/packages/serverless/settings/observability_project/tsconfig.json b/src/platform/packages/shared/serverless/settings/observability_project/tsconfig.json similarity index 81% rename from packages/serverless/settings/observability_project/tsconfig.json rename to src/platform/packages/shared/serverless/settings/observability_project/tsconfig.json index 16d6022e3d9bc..16a9ba9ba4b5d 100644 --- a/packages/serverless/settings/observability_project/tsconfig.json +++ b/src/platform/packages/shared/serverless/settings/observability_project/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index e65b2c15f78db..936e70880c22d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1694,8 +1694,8 @@ "@kbn/serverless-common-settings/*": ["src/platform/packages/private/serverless/settings/common/*"], "@kbn/serverless-observability": ["x-pack/plugins/serverless_observability"], "@kbn/serverless-observability/*": ["x-pack/plugins/serverless_observability/*"], - "@kbn/serverless-observability-settings": ["packages/serverless/settings/observability_project"], - "@kbn/serverless-observability-settings/*": ["packages/serverless/settings/observability_project/*"], + "@kbn/serverless-observability-settings": ["src/platform/packages/shared/serverless/settings/observability_project"], + "@kbn/serverless-observability-settings/*": ["src/platform/packages/shared/serverless/settings/observability_project/*"], "@kbn/serverless-project-switcher": ["packages/serverless/project_switcher"], "@kbn/serverless-project-switcher/*": ["packages/serverless/project_switcher/*"], "@kbn/serverless-search": ["x-pack/plugins/serverless_search"], diff --git a/yarn.lock b/yarn.lock index f1382c83393c1..0f24dd6045b28 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7196,7 +7196,7 @@ version "0.0.0" uid "" -"@kbn/serverless-observability-settings@link:packages/serverless/settings/observability_project": +"@kbn/serverless-observability-settings@link:src/platform/packages/shared/serverless/settings/observability_project": version "0.0.0" uid "" From f34df1d08a64d05504254c171bcac3e008aa1d26 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:57:04 +0100 Subject: [PATCH 075/129] Relocating module `@kbn/serverless-project-switcher` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/serverless/project_switcher/README.mdx | 0 .../packages/private}/serverless/project_switcher/index.ts | 0 .../private}/serverless/project_switcher/jest.config.js | 4 ++-- .../private}/serverless/project_switcher/kibana.jsonc | 0 .../private}/serverless/project_switcher/mocks/jest.mock.ts | 0 .../serverless/project_switcher/mocks/storybook.mock.ts | 0 .../private}/serverless/project_switcher/package.json | 0 .../private}/serverless/project_switcher/src/constants.ts | 0 .../serverless/project_switcher/src/header_button.tsx | 0 .../private}/serverless/project_switcher/src/index.ts | 0 .../private}/serverless/project_switcher/src/item.tsx | 0 .../private}/serverless/project_switcher/src/loader.tsx | 0 .../private}/serverless/project_switcher/src/logo.tsx | 0 .../private}/serverless/project_switcher/src/services.tsx | 0 .../serverless/project_switcher/src/switcher.component.tsx | 0 .../serverless/project_switcher/src/switcher.stories.tsx | 0 .../serverless/project_switcher/src/switcher.test.tsx | 0 .../private}/serverless/project_switcher/src/switcher.tsx | 0 .../private}/serverless/project_switcher/src/types.ts | 0 .../private}/serverless/project_switcher/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 24 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/serverless/project_switcher/README.mdx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/index.ts (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/jest.config.js (81%) rename {packages => src/platform/packages/private}/serverless/project_switcher/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/mocks/jest.mock.ts (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/mocks/storybook.mock.ts (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/package.json (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/constants.ts (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/header_button.tsx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/index.ts (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/item.tsx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/loader.tsx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/logo.tsx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/services.tsx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/switcher.component.tsx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/switcher.stories.tsx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/switcher.test.tsx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/switcher.tsx (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/src/types.ts (100%) rename {packages => src/platform/packages/private}/serverless/project_switcher/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4e5f8876678fb..5dc2c87a9f9cc 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -514,7 +514,6 @@ packages/presentation/presentation_publishing @elastic/kibana-presentation packages/response-ops/feature_flag_service @elastic/response-ops packages/response-ops/rule_form @elastic/response-ops packages/response-ops/rule_params @elastic/response-ops -packages/serverless/project_switcher @elastic/appex-sharedux packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux @@ -589,6 +588,7 @@ src/platform/packages/private/kbn-reporting/server @elastic/appex-sharedux src/platform/packages/private/kbn-saved-objects-settings @elastic/appex-sharedux src/platform/packages/private/kbn-screenshotting-server @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux +src/platform/packages/private/serverless/project_switcher @elastic/appex-sharedux src/platform/packages/private/serverless/settings/common @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux diff --git a/package.json b/package.json index 5c240ab1c00eb..9a9e3a0ce6c11 100644 --- a/package.json +++ b/package.json @@ -863,7 +863,7 @@ "@kbn/serverless-common-settings": "link:src/platform/packages/private/serverless/settings/common", "@kbn/serverless-observability": "link:x-pack/plugins/serverless_observability", "@kbn/serverless-observability-settings": "link:src/platform/packages/shared/serverless/settings/observability_project", - "@kbn/serverless-project-switcher": "link:packages/serverless/project_switcher", + "@kbn/serverless-project-switcher": "link:src/platform/packages/private/serverless/project_switcher", "@kbn/serverless-search": "link:x-pack/plugins/serverless_search", "@kbn/serverless-search-settings": "link:packages/serverless/settings/search_project", "@kbn/serverless-security-settings": "link:packages/serverless/settings/security_project", diff --git a/packages/serverless/project_switcher/README.mdx b/src/platform/packages/private/serverless/project_switcher/README.mdx similarity index 100% rename from packages/serverless/project_switcher/README.mdx rename to src/platform/packages/private/serverless/project_switcher/README.mdx diff --git a/packages/serverless/project_switcher/index.ts b/src/platform/packages/private/serverless/project_switcher/index.ts similarity index 100% rename from packages/serverless/project_switcher/index.ts rename to src/platform/packages/private/serverless/project_switcher/index.ts diff --git a/packages/serverless/project_switcher/jest.config.js b/src/platform/packages/private/serverless/project_switcher/jest.config.js similarity index 81% rename from packages/serverless/project_switcher/jest.config.js rename to src/platform/packages/private/serverless/project_switcher/jest.config.js index 9f223dca5b719..17c8a482cb94b 100644 --- a/packages/serverless/project_switcher/jest.config.js +++ b/src/platform/packages/private/serverless/project_switcher/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/serverless/project_switcher'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/private/serverless/project_switcher'], }; diff --git a/packages/serverless/project_switcher/kibana.jsonc b/src/platform/packages/private/serverless/project_switcher/kibana.jsonc similarity index 100% rename from packages/serverless/project_switcher/kibana.jsonc rename to src/platform/packages/private/serverless/project_switcher/kibana.jsonc diff --git a/packages/serverless/project_switcher/mocks/jest.mock.ts b/src/platform/packages/private/serverless/project_switcher/mocks/jest.mock.ts similarity index 100% rename from packages/serverless/project_switcher/mocks/jest.mock.ts rename to src/platform/packages/private/serverless/project_switcher/mocks/jest.mock.ts diff --git a/packages/serverless/project_switcher/mocks/storybook.mock.ts b/src/platform/packages/private/serverless/project_switcher/mocks/storybook.mock.ts similarity index 100% rename from packages/serverless/project_switcher/mocks/storybook.mock.ts rename to src/platform/packages/private/serverless/project_switcher/mocks/storybook.mock.ts diff --git a/packages/serverless/project_switcher/package.json b/src/platform/packages/private/serverless/project_switcher/package.json similarity index 100% rename from packages/serverless/project_switcher/package.json rename to src/platform/packages/private/serverless/project_switcher/package.json diff --git a/packages/serverless/project_switcher/src/constants.ts b/src/platform/packages/private/serverless/project_switcher/src/constants.ts similarity index 100% rename from packages/serverless/project_switcher/src/constants.ts rename to src/platform/packages/private/serverless/project_switcher/src/constants.ts diff --git a/packages/serverless/project_switcher/src/header_button.tsx b/src/platform/packages/private/serverless/project_switcher/src/header_button.tsx similarity index 100% rename from packages/serverless/project_switcher/src/header_button.tsx rename to src/platform/packages/private/serverless/project_switcher/src/header_button.tsx diff --git a/packages/serverless/project_switcher/src/index.ts b/src/platform/packages/private/serverless/project_switcher/src/index.ts similarity index 100% rename from packages/serverless/project_switcher/src/index.ts rename to src/platform/packages/private/serverless/project_switcher/src/index.ts diff --git a/packages/serverless/project_switcher/src/item.tsx b/src/platform/packages/private/serverless/project_switcher/src/item.tsx similarity index 100% rename from packages/serverless/project_switcher/src/item.tsx rename to src/platform/packages/private/serverless/project_switcher/src/item.tsx diff --git a/packages/serverless/project_switcher/src/loader.tsx b/src/platform/packages/private/serverless/project_switcher/src/loader.tsx similarity index 100% rename from packages/serverless/project_switcher/src/loader.tsx rename to src/platform/packages/private/serverless/project_switcher/src/loader.tsx diff --git a/packages/serverless/project_switcher/src/logo.tsx b/src/platform/packages/private/serverless/project_switcher/src/logo.tsx similarity index 100% rename from packages/serverless/project_switcher/src/logo.tsx rename to src/platform/packages/private/serverless/project_switcher/src/logo.tsx diff --git a/packages/serverless/project_switcher/src/services.tsx b/src/platform/packages/private/serverless/project_switcher/src/services.tsx similarity index 100% rename from packages/serverless/project_switcher/src/services.tsx rename to src/platform/packages/private/serverless/project_switcher/src/services.tsx diff --git a/packages/serverless/project_switcher/src/switcher.component.tsx b/src/platform/packages/private/serverless/project_switcher/src/switcher.component.tsx similarity index 100% rename from packages/serverless/project_switcher/src/switcher.component.tsx rename to src/platform/packages/private/serverless/project_switcher/src/switcher.component.tsx diff --git a/packages/serverless/project_switcher/src/switcher.stories.tsx b/src/platform/packages/private/serverless/project_switcher/src/switcher.stories.tsx similarity index 100% rename from packages/serverless/project_switcher/src/switcher.stories.tsx rename to src/platform/packages/private/serverless/project_switcher/src/switcher.stories.tsx diff --git a/packages/serverless/project_switcher/src/switcher.test.tsx b/src/platform/packages/private/serverless/project_switcher/src/switcher.test.tsx similarity index 100% rename from packages/serverless/project_switcher/src/switcher.test.tsx rename to src/platform/packages/private/serverless/project_switcher/src/switcher.test.tsx diff --git a/packages/serverless/project_switcher/src/switcher.tsx b/src/platform/packages/private/serverless/project_switcher/src/switcher.tsx similarity index 100% rename from packages/serverless/project_switcher/src/switcher.tsx rename to src/platform/packages/private/serverless/project_switcher/src/switcher.tsx diff --git a/packages/serverless/project_switcher/src/types.ts b/src/platform/packages/private/serverless/project_switcher/src/types.ts similarity index 100% rename from packages/serverless/project_switcher/src/types.ts rename to src/platform/packages/private/serverless/project_switcher/src/types.ts diff --git a/packages/serverless/project_switcher/tsconfig.json b/src/platform/packages/private/serverless/project_switcher/tsconfig.json similarity index 86% rename from packages/serverless/project_switcher/tsconfig.json rename to src/platform/packages/private/serverless/project_switcher/tsconfig.json index 8fd6b54236754..d477303d65059 100644 --- a/packages/serverless/project_switcher/tsconfig.json +++ b/src/platform/packages/private/serverless/project_switcher/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 936e70880c22d..0a654d64ae805 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1696,8 +1696,8 @@ "@kbn/serverless-observability/*": ["x-pack/plugins/serverless_observability/*"], "@kbn/serverless-observability-settings": ["src/platform/packages/shared/serverless/settings/observability_project"], "@kbn/serverless-observability-settings/*": ["src/platform/packages/shared/serverless/settings/observability_project/*"], - "@kbn/serverless-project-switcher": ["packages/serverless/project_switcher"], - "@kbn/serverless-project-switcher/*": ["packages/serverless/project_switcher/*"], + "@kbn/serverless-project-switcher": ["src/platform/packages/private/serverless/project_switcher"], + "@kbn/serverless-project-switcher/*": ["src/platform/packages/private/serverless/project_switcher/*"], "@kbn/serverless-search": ["x-pack/plugins/serverless_search"], "@kbn/serverless-search/*": ["x-pack/plugins/serverless_search/*"], "@kbn/serverless-search-settings": ["packages/serverless/settings/search_project"], diff --git a/yarn.lock b/yarn.lock index 0f24dd6045b28..3f217ea8c4553 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7204,7 +7204,7 @@ version "0.0.0" uid "" -"@kbn/serverless-project-switcher@link:packages/serverless/project_switcher": +"@kbn/serverless-project-switcher@link:src/platform/packages/private/serverless/project_switcher": version "0.0.0" uid "" From 5e4206e5d7cb794eda1ef5b0bf4315990fbf2d78 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:58:20 +0100 Subject: [PATCH 076/129] Relocating module `@kbn/serverless-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/private}/serverless/types/README.mdx | 0 .../platform/packages/private}/serverless/types/index.d.ts | 0 .../platform/packages/private}/serverless/types/kibana.jsonc | 0 .../platform/packages/private}/serverless/types/package.json | 0 .../platform/packages/private}/serverless/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/private}/serverless/types/README.mdx (100%) rename {packages => src/platform/packages/private}/serverless/types/index.d.ts (100%) rename {packages => src/platform/packages/private}/serverless/types/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/serverless/types/package.json (100%) rename {packages => src/platform/packages/private}/serverless/types/tsconfig.json (79%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5dc2c87a9f9cc..9f4d803be175e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/serverless/types @elastic/appex-sharedux packages/shared-ux/avatar/solution @elastic/appex-sharedux packages/shared-ux/button_toolbar @elastic/appex-sharedux packages/shared-ux/button/exit_full_screen @elastic/appex-sharedux @@ -590,6 +589,7 @@ src/platform/packages/private/kbn-screenshotting-server @elastic/appex-sharedux src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/private/serverless/project_switcher @elastic/appex-sharedux src/platform/packages/private/serverless/settings/common @elastic/appex-sharedux @elastic/kibana-management +src/platform/packages/private/serverless/types @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index 9a9e3a0ce6c11..34727e1fcdb2c 100644 --- a/package.json +++ b/package.json @@ -867,7 +867,7 @@ "@kbn/serverless-search": "link:x-pack/plugins/serverless_search", "@kbn/serverless-search-settings": "link:packages/serverless/settings/search_project", "@kbn/serverless-security-settings": "link:packages/serverless/settings/security_project", - "@kbn/serverless-types": "link:packages/serverless/types", + "@kbn/serverless-types": "link:src/platform/packages/private/serverless/types", "@kbn/session-notifications-plugin": "link:test/plugin_functional/plugins/session_notifications", "@kbn/session-view-plugin": "link:x-pack/plugins/session_view", "@kbn/set-map": "link:packages/kbn-set-map", diff --git a/packages/serverless/types/README.mdx b/src/platform/packages/private/serverless/types/README.mdx similarity index 100% rename from packages/serverless/types/README.mdx rename to src/platform/packages/private/serverless/types/README.mdx diff --git a/packages/serverless/types/index.d.ts b/src/platform/packages/private/serverless/types/index.d.ts similarity index 100% rename from packages/serverless/types/index.d.ts rename to src/platform/packages/private/serverless/types/index.d.ts diff --git a/packages/serverless/types/kibana.jsonc b/src/platform/packages/private/serverless/types/kibana.jsonc similarity index 100% rename from packages/serverless/types/kibana.jsonc rename to src/platform/packages/private/serverless/types/kibana.jsonc diff --git a/packages/serverless/types/package.json b/src/platform/packages/private/serverless/types/package.json similarity index 100% rename from packages/serverless/types/package.json rename to src/platform/packages/private/serverless/types/package.json diff --git a/packages/serverless/types/tsconfig.json b/src/platform/packages/private/serverless/types/tsconfig.json similarity index 79% rename from packages/serverless/types/tsconfig.json rename to src/platform/packages/private/serverless/types/tsconfig.json index 6d27b06d5f8ba..63f0b5ff33faa 100644 --- a/packages/serverless/types/tsconfig.json +++ b/src/platform/packages/private/serverless/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 0a654d64ae805..3beb13cd91d62 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1706,8 +1706,8 @@ "@kbn/serverless-security-settings/*": ["packages/serverless/settings/security_project/*"], "@kbn/serverless-storybook-config": ["packages/serverless/storybook/config"], "@kbn/serverless-storybook-config/*": ["packages/serverless/storybook/config/*"], - "@kbn/serverless-types": ["packages/serverless/types"], - "@kbn/serverless-types/*": ["packages/serverless/types/*"], + "@kbn/serverless-types": ["src/platform/packages/private/serverless/types"], + "@kbn/serverless-types/*": ["src/platform/packages/private/serverless/types/*"], "@kbn/session-notifications-plugin": ["test/plugin_functional/plugins/session_notifications"], "@kbn/session-notifications-plugin/*": ["test/plugin_functional/plugins/session_notifications/*"], "@kbn/session-view-plugin": ["x-pack/plugins/session_view"], diff --git a/yarn.lock b/yarn.lock index 3f217ea8c4553..2794c969686c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7224,7 +7224,7 @@ version "0.0.0" uid "" -"@kbn/serverless-types@link:packages/serverless/types": +"@kbn/serverless-types@link:src/platform/packages/private/serverless/types": version "0.0.0" uid "" From 248e2da30935d8f4acdf3f9e50d0e0124be4979f Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 13:59:43 +0100 Subject: [PATCH 077/129] Relocating module `@kbn/share-plugin` --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 4 ++-- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/best-practices/navigation.asciidoc | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- src/{plugins => platform/plugins/shared}/share/README.mdx | 0 .../shared}/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 .../share/common/url_service/__tests__/locators.test.ts | 0 .../shared}/share/common/url_service/__tests__/setup.ts | 0 .../plugins/shared}/share/common/url_service/index.ts | 0 .../shared}/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 .../shared}/share/common/url_service/locators/locator.ts | 0 .../share/common/url_service/locators/locator_client.ts | 0 .../locators/redirect/format_search_params.test.ts | 0 .../url_service/locators/redirect/format_search_params.ts | 0 .../share/common/url_service/locators/redirect/index.ts | 0 .../locators/redirect/parse_search_params.test.ts | 0 .../url_service/locators/redirect/parse_search_params.ts | 0 .../share/common/url_service/locators/redirect/types.ts | 0 .../url_service/locators/short_url_assert_valid.test.ts | 0 .../common/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 .../share/common/url_service/locators/use_locator_url.ts | 0 .../plugins/shared}/share/common/url_service/mocks.ts | 0 .../shared}/share/common/url_service/short_urls/index.ts | 0 .../shared}/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 .../plugins/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 .../share/public/components/share_context_menu.test.tsx | 0 .../share/public/components/share_context_menu.tsx | 0 .../shared}/share/public/components/share_tabs.test.tsx | 0 .../shared}/share/public/components/share_tabs.tsx | 0 .../public/components/tabs/embed/embed_content.test.tsx | 0 .../share/public/components/tabs/embed/embed_content.tsx | 0 .../shared}/share/public/components/tabs/embed/index.tsx | 0 .../public/components/tabs/export/export_content.tsx | 0 .../shared}/share/public/components/tabs/export/index.tsx | 0 .../plugins/shared}/share/public/components/tabs/index.ts | 0 .../shared}/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 .../shared}/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 .../shared}/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 .../shared}/share/public/services/share_menu_registry.ts | 0 .../plugins/shared}/share/public/types.ts | 0 .../plugins/shared}/share/public/url_service/index.ts | 0 .../shared}/share/public/url_service/redirect/README.md | 0 .../url_service/redirect/components/empty_prompt.tsx | 0 .../share/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 .../public/url_service/redirect/redirect_manager.test.ts | 0 .../share/public/url_service/redirect/redirect_manager.ts | 0 .../shared}/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 .../url_service/http/short_urls/register_create_route.ts | 0 .../url_service/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 .../url_service/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 .../shared}/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 .../short_urls/storage/memory_short_url_storage.test.ts | 0 .../short_urls/storage/memory_short_url_storage.ts | 0 .../short_urls/storage/saved_object_short_url_storage.ts | 0 .../shared}/share/server/url_service/short_urls/types.ts | 0 .../share/server/url_service/short_urls/util.test.ts | 0 .../shared}/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 +- 115 files changed, 15 insertions(+), 15 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/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 384610f98feb3..337ecd29917c8 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -315,8 +315,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/, diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9f4d803be175e..6b3aa175c1474 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -641,6 +641,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/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations @@ -689,7 +690,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 612c0e0ba9251..666c4c34a270d 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -107,7 +107,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 c438f5e653e5e..5d4ae8e6a42f0 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -315,7 +315,7 @@ oss plugins. |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 34727e1fcdb2c..bf058df6ec442 100644 --- a/package.json +++ b/package.json @@ -872,7 +872,7 @@ "@kbn/session-view-plugin": "link:x-pack/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/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 3beb13cd91d62..00fe137765e4c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1716,8 +1716,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 2794c969686c9..032b6b11fa671 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7248,7 +7248,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 d5baef7735bea15fee183abf87fead53c6ce7a8a Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:01:02 +0100 Subject: [PATCH 078/129] Relocating module `@kbn/shared-ux-avatar-solution` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/avatar/solution/README.mdx | 0 .../packages/shared}/shared-ux/avatar/solution/index.tsx | 0 .../packages/shared}/shared-ux/avatar/solution/jest.config.js | 4 ++-- .../packages/shared}/shared-ux/avatar/solution/kibana.jsonc | 0 .../packages/shared}/shared-ux/avatar/solution/package.json | 0 .../solution/src/__snapshots__/solution_avatar.test.tsx.snap | 0 .../shared}/shared-ux/avatar/solution/src/assets/texture.svg | 0 .../shared-ux/avatar/solution/src/solution_avatar.scss | 0 .../shared-ux/avatar/solution/src/solution_avatar.stories.tsx | 0 .../shared-ux/avatar/solution/src/solution_avatar.test.tsx | 0 .../shared}/shared-ux/avatar/solution/src/solution_avatar.tsx | 0 .../packages/shared}/shared-ux/avatar/solution/src/types.ts | 0 .../packages/shared}/shared-ux/avatar/solution/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 17 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/jest.config.js (81%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/src/__snapshots__/solution_avatar.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/src/assets/texture.svg (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/src/solution_avatar.scss (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/src/solution_avatar.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/src/solution_avatar.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/src/solution_avatar.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/src/types.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/avatar/solution/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6b3aa175c1474..6e2693a620cc7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/avatar/solution @elastic/appex-sharedux packages/shared-ux/button_toolbar @elastic/appex-sharedux packages/shared-ux/button/exit_full_screen @elastic/appex-sharedux packages/shared-ux/card/no_data/impl @elastic/appex-sharedux @@ -621,6 +620,7 @@ src/platform/packages/shared/react/kibana_context/styled @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/theme @elastic/appex-sharedux src/platform/packages/shared/react/kibana_mount @elastic/appex-sharedux src/platform/packages/shared/serverless/settings/observability_project @elastic/appex-sharedux @elastic/kibana-management @elastic/obs-ux-management-team +src/platform/packages/shared/shared-ux/avatar/solution @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index bf058df6ec442..df88e0d029052 100644 --- a/package.json +++ b/package.json @@ -874,7 +874,7 @@ "@kbn/share-examples-plugin": "link:examples/share_examples", "@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-avatar-solution": "link:src/platform/packages/shared/shared-ux/avatar/solution", "@kbn/shared-ux-button-exit-full-screen": "link:packages/shared-ux/button/exit_full_screen", "@kbn/shared-ux-button-toolbar": "link:packages/shared-ux/button_toolbar", "@kbn/shared-ux-card-no-data": "link:packages/shared-ux/card/no_data/impl", diff --git a/packages/shared-ux/avatar/solution/README.mdx b/src/platform/packages/shared/shared-ux/avatar/solution/README.mdx similarity index 100% rename from packages/shared-ux/avatar/solution/README.mdx rename to src/platform/packages/shared/shared-ux/avatar/solution/README.mdx diff --git a/packages/shared-ux/avatar/solution/index.tsx b/src/platform/packages/shared/shared-ux/avatar/solution/index.tsx similarity index 100% rename from packages/shared-ux/avatar/solution/index.tsx rename to src/platform/packages/shared/shared-ux/avatar/solution/index.tsx diff --git a/packages/shared-ux/avatar/solution/jest.config.js b/src/platform/packages/shared/shared-ux/avatar/solution/jest.config.js similarity index 81% rename from packages/shared-ux/avatar/solution/jest.config.js rename to src/platform/packages/shared/shared-ux/avatar/solution/jest.config.js index e8f11ad738a74..8bea7f4e1d4fb 100644 --- a/packages/shared-ux/avatar/solution/jest.config.js +++ b/src/platform/packages/shared/shared-ux/avatar/solution/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/shared-ux/avatar/solution'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/avatar/solution'], }; diff --git a/packages/shared-ux/avatar/solution/kibana.jsonc b/src/platform/packages/shared/shared-ux/avatar/solution/kibana.jsonc similarity index 100% rename from packages/shared-ux/avatar/solution/kibana.jsonc rename to src/platform/packages/shared/shared-ux/avatar/solution/kibana.jsonc diff --git a/packages/shared-ux/avatar/solution/package.json b/src/platform/packages/shared/shared-ux/avatar/solution/package.json similarity index 100% rename from packages/shared-ux/avatar/solution/package.json rename to src/platform/packages/shared/shared-ux/avatar/solution/package.json diff --git a/packages/shared-ux/avatar/solution/src/__snapshots__/solution_avatar.test.tsx.snap b/src/platform/packages/shared/shared-ux/avatar/solution/src/__snapshots__/solution_avatar.test.tsx.snap similarity index 100% rename from packages/shared-ux/avatar/solution/src/__snapshots__/solution_avatar.test.tsx.snap rename to src/platform/packages/shared/shared-ux/avatar/solution/src/__snapshots__/solution_avatar.test.tsx.snap diff --git a/packages/shared-ux/avatar/solution/src/assets/texture.svg b/src/platform/packages/shared/shared-ux/avatar/solution/src/assets/texture.svg similarity index 100% rename from packages/shared-ux/avatar/solution/src/assets/texture.svg rename to src/platform/packages/shared/shared-ux/avatar/solution/src/assets/texture.svg diff --git a/packages/shared-ux/avatar/solution/src/solution_avatar.scss b/src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.scss similarity index 100% rename from packages/shared-ux/avatar/solution/src/solution_avatar.scss rename to src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.scss diff --git a/packages/shared-ux/avatar/solution/src/solution_avatar.stories.tsx b/src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.stories.tsx similarity index 100% rename from packages/shared-ux/avatar/solution/src/solution_avatar.stories.tsx rename to src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.stories.tsx diff --git a/packages/shared-ux/avatar/solution/src/solution_avatar.test.tsx b/src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.test.tsx similarity index 100% rename from packages/shared-ux/avatar/solution/src/solution_avatar.test.tsx rename to src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.test.tsx diff --git a/packages/shared-ux/avatar/solution/src/solution_avatar.tsx b/src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.tsx similarity index 100% rename from packages/shared-ux/avatar/solution/src/solution_avatar.tsx rename to src/platform/packages/shared/shared-ux/avatar/solution/src/solution_avatar.tsx diff --git a/packages/shared-ux/avatar/solution/src/types.ts b/src/platform/packages/shared/shared-ux/avatar/solution/src/types.ts similarity index 100% rename from packages/shared-ux/avatar/solution/src/types.ts rename to src/platform/packages/shared/shared-ux/avatar/solution/src/types.ts diff --git a/packages/shared-ux/avatar/solution/tsconfig.json b/src/platform/packages/shared/shared-ux/avatar/solution/tsconfig.json similarity index 82% rename from packages/shared-ux/avatar/solution/tsconfig.json rename to src/platform/packages/shared/shared-ux/avatar/solution/tsconfig.json index eecf3ed8f5afc..6a84ce65c2567 100644 --- a/packages/shared-ux/avatar/solution/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/avatar/solution/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 00fe137765e4c..ec7adde3e4b61 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1720,8 +1720,8 @@ "@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"], - "@kbn/shared-ux-avatar-solution/*": ["packages/shared-ux/avatar/solution/*"], + "@kbn/shared-ux-avatar-solution": ["src/platform/packages/shared/shared-ux/avatar/solution"], + "@kbn/shared-ux-avatar-solution/*": ["src/platform/packages/shared/shared-ux/avatar/solution/*"], "@kbn/shared-ux-button-exit-full-screen": ["packages/shared-ux/button/exit_full_screen"], "@kbn/shared-ux-button-exit-full-screen/*": ["packages/shared-ux/button/exit_full_screen/*"], "@kbn/shared-ux-button-toolbar": ["packages/shared-ux/button_toolbar"], diff --git a/yarn.lock b/yarn.lock index 032b6b11fa671..d64d2b4c72977 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7256,7 +7256,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-avatar-solution@link:packages/shared-ux/avatar/solution": +"@kbn/shared-ux-avatar-solution@link:src/platform/packages/shared/shared-ux/avatar/solution": version "0.0.0" uid "" From dd7b72b168f81b17e5e6e173be668ba937ab3ee8 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:02:19 +0100 Subject: [PATCH 079/129] Relocating module `@kbn/shared-ux-button-exit-full-screen` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/shared-ux/button/exit_full_screen/README.mdx | 0 .../private}/shared-ux/button/exit_full_screen/index.tsx | 0 .../private}/shared-ux/button/exit_full_screen/jest.config.js | 4 ++-- .../private}/shared-ux/button/exit_full_screen/kibana.jsonc | 0 .../private}/shared-ux/button/exit_full_screen/mocks/index.ts | 0 .../private}/shared-ux/button/exit_full_screen/mocks/jest.ts | 0 .../shared-ux/button/exit_full_screen/mocks/storybook.ts | 0 .../private}/shared-ux/button/exit_full_screen/package.json | 0 .../src/__snapshots__/exit_full_screen_button.test.tsx.snap | 0 .../src/exit_full_screen_button.component.tsx | 0 .../exit_full_screen/src/exit_full_screen_button.stories.tsx | 0 .../exit_full_screen/src/exit_full_screen_button.test.tsx | 0 .../button/exit_full_screen/src/exit_full_screen_button.tsx | 0 .../shared-ux/button/exit_full_screen/src/services.tsx | 0 .../private}/shared-ux/button/exit_full_screen/tsconfig.json | 2 +- .../private}/shared-ux/button/exit_full_screen/types.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 20 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/README.mdx (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/index.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/jest.config.js (80%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/mocks/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/mocks/jest.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/mocks/storybook.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/src/__snapshots__/exit_full_screen_button.test.tsx.snap (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/src/exit_full_screen_button.component.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/src/exit_full_screen_button.stories.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/src/exit_full_screen_button.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/src/exit_full_screen_button.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/src/services.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/tsconfig.json (87%) rename {packages => src/platform/packages/private}/shared-ux/button/exit_full_screen/types.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6e2693a620cc7..0f780876f7f98 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/button_toolbar @elastic/appex-sharedux -packages/shared-ux/button/exit_full_screen @elastic/appex-sharedux packages/shared-ux/card/no_data/impl @elastic/appex-sharedux packages/shared-ux/card/no_data/mocks @elastic/appex-sharedux packages/shared-ux/card/no_data/types @elastic/appex-sharedux @@ -589,6 +588,7 @@ src/platform/packages/private/react/kibana_context/root @elastic/appex-sharedux src/platform/packages/private/serverless/project_switcher @elastic/appex-sharedux src/platform/packages/private/serverless/settings/common @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/private/serverless/types @elastic/appex-sharedux +src/platform/packages/private/shared-ux/button/exit_full_screen @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index df88e0d029052..b5f5d5da5544c 100644 --- a/package.json +++ b/package.json @@ -875,7 +875,7 @@ "@kbn/share-plugin": "link:src/platform/plugins/shared/share", "@kbn/shared-svg": "link:packages/kbn-shared-svg", "@kbn/shared-ux-avatar-solution": "link:src/platform/packages/shared/shared-ux/avatar/solution", - "@kbn/shared-ux-button-exit-full-screen": "link:packages/shared-ux/button/exit_full_screen", + "@kbn/shared-ux-button-exit-full-screen": "link:src/platform/packages/private/shared-ux/button/exit_full_screen", "@kbn/shared-ux-button-toolbar": "link:packages/shared-ux/button_toolbar", "@kbn/shared-ux-card-no-data": "link:packages/shared-ux/card/no_data/impl", "@kbn/shared-ux-card-no-data-mocks": "link:packages/shared-ux/card/no_data/mocks", diff --git a/packages/shared-ux/button/exit_full_screen/README.mdx b/src/platform/packages/private/shared-ux/button/exit_full_screen/README.mdx similarity index 100% rename from packages/shared-ux/button/exit_full_screen/README.mdx rename to src/platform/packages/private/shared-ux/button/exit_full_screen/README.mdx diff --git a/packages/shared-ux/button/exit_full_screen/index.tsx b/src/platform/packages/private/shared-ux/button/exit_full_screen/index.tsx similarity index 100% rename from packages/shared-ux/button/exit_full_screen/index.tsx rename to src/platform/packages/private/shared-ux/button/exit_full_screen/index.tsx diff --git a/packages/shared-ux/button/exit_full_screen/jest.config.js b/src/platform/packages/private/shared-ux/button/exit_full_screen/jest.config.js similarity index 80% rename from packages/shared-ux/button/exit_full_screen/jest.config.js rename to src/platform/packages/private/shared-ux/button/exit_full_screen/jest.config.js index 6614b642a2d11..fa242a81c79bd 100644 --- a/packages/shared-ux/button/exit_full_screen/jest.config.js +++ b/src/platform/packages/private/shared-ux/button/exit_full_screen/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/shared-ux/button/exit_full_screen'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/shared-ux/button/exit_full_screen'], }; diff --git a/packages/shared-ux/button/exit_full_screen/kibana.jsonc b/src/platform/packages/private/shared-ux/button/exit_full_screen/kibana.jsonc similarity index 100% rename from packages/shared-ux/button/exit_full_screen/kibana.jsonc rename to src/platform/packages/private/shared-ux/button/exit_full_screen/kibana.jsonc diff --git a/packages/shared-ux/button/exit_full_screen/mocks/index.ts b/src/platform/packages/private/shared-ux/button/exit_full_screen/mocks/index.ts similarity index 100% rename from packages/shared-ux/button/exit_full_screen/mocks/index.ts rename to src/platform/packages/private/shared-ux/button/exit_full_screen/mocks/index.ts diff --git a/packages/shared-ux/button/exit_full_screen/mocks/jest.ts b/src/platform/packages/private/shared-ux/button/exit_full_screen/mocks/jest.ts similarity index 100% rename from packages/shared-ux/button/exit_full_screen/mocks/jest.ts rename to src/platform/packages/private/shared-ux/button/exit_full_screen/mocks/jest.ts diff --git a/packages/shared-ux/button/exit_full_screen/mocks/storybook.ts b/src/platform/packages/private/shared-ux/button/exit_full_screen/mocks/storybook.ts similarity index 100% rename from packages/shared-ux/button/exit_full_screen/mocks/storybook.ts rename to src/platform/packages/private/shared-ux/button/exit_full_screen/mocks/storybook.ts diff --git a/packages/shared-ux/button/exit_full_screen/package.json b/src/platform/packages/private/shared-ux/button/exit_full_screen/package.json similarity index 100% rename from packages/shared-ux/button/exit_full_screen/package.json rename to src/platform/packages/private/shared-ux/button/exit_full_screen/package.json diff --git a/packages/shared-ux/button/exit_full_screen/src/__snapshots__/exit_full_screen_button.test.tsx.snap b/src/platform/packages/private/shared-ux/button/exit_full_screen/src/__snapshots__/exit_full_screen_button.test.tsx.snap similarity index 100% rename from packages/shared-ux/button/exit_full_screen/src/__snapshots__/exit_full_screen_button.test.tsx.snap rename to src/platform/packages/private/shared-ux/button/exit_full_screen/src/__snapshots__/exit_full_screen_button.test.tsx.snap diff --git a/packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.component.tsx b/src/platform/packages/private/shared-ux/button/exit_full_screen/src/exit_full_screen_button.component.tsx similarity index 100% rename from packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.component.tsx rename to src/platform/packages/private/shared-ux/button/exit_full_screen/src/exit_full_screen_button.component.tsx diff --git a/packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.stories.tsx b/src/platform/packages/private/shared-ux/button/exit_full_screen/src/exit_full_screen_button.stories.tsx similarity index 100% rename from packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.stories.tsx rename to src/platform/packages/private/shared-ux/button/exit_full_screen/src/exit_full_screen_button.stories.tsx diff --git a/packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.test.tsx b/src/platform/packages/private/shared-ux/button/exit_full_screen/src/exit_full_screen_button.test.tsx similarity index 100% rename from packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.test.tsx rename to src/platform/packages/private/shared-ux/button/exit_full_screen/src/exit_full_screen_button.test.tsx diff --git a/packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.tsx b/src/platform/packages/private/shared-ux/button/exit_full_screen/src/exit_full_screen_button.tsx similarity index 100% rename from packages/shared-ux/button/exit_full_screen/src/exit_full_screen_button.tsx rename to src/platform/packages/private/shared-ux/button/exit_full_screen/src/exit_full_screen_button.tsx diff --git a/packages/shared-ux/button/exit_full_screen/src/services.tsx b/src/platform/packages/private/shared-ux/button/exit_full_screen/src/services.tsx similarity index 100% rename from packages/shared-ux/button/exit_full_screen/src/services.tsx rename to src/platform/packages/private/shared-ux/button/exit_full_screen/src/services.tsx diff --git a/packages/shared-ux/button/exit_full_screen/tsconfig.json b/src/platform/packages/private/shared-ux/button/exit_full_screen/tsconfig.json similarity index 87% rename from packages/shared-ux/button/exit_full_screen/tsconfig.json rename to src/platform/packages/private/shared-ux/button/exit_full_screen/tsconfig.json index 0590172c5b3f1..ac3a271fc0e51 100644 --- a/packages/shared-ux/button/exit_full_screen/tsconfig.json +++ b/src/platform/packages/private/shared-ux/button/exit_full_screen/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/shared-ux/button/exit_full_screen/types.ts b/src/platform/packages/private/shared-ux/button/exit_full_screen/types.ts similarity index 100% rename from packages/shared-ux/button/exit_full_screen/types.ts rename to src/platform/packages/private/shared-ux/button/exit_full_screen/types.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index ec7adde3e4b61..c042c4178ac10 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1722,8 +1722,8 @@ "@kbn/shared-svg/*": ["packages/kbn-shared-svg/*"], "@kbn/shared-ux-avatar-solution": ["src/platform/packages/shared/shared-ux/avatar/solution"], "@kbn/shared-ux-avatar-solution/*": ["src/platform/packages/shared/shared-ux/avatar/solution/*"], - "@kbn/shared-ux-button-exit-full-screen": ["packages/shared-ux/button/exit_full_screen"], - "@kbn/shared-ux-button-exit-full-screen/*": ["packages/shared-ux/button/exit_full_screen/*"], + "@kbn/shared-ux-button-exit-full-screen": ["src/platform/packages/private/shared-ux/button/exit_full_screen"], + "@kbn/shared-ux-button-exit-full-screen/*": ["src/platform/packages/private/shared-ux/button/exit_full_screen/*"], "@kbn/shared-ux-button-toolbar": ["packages/shared-ux/button_toolbar"], "@kbn/shared-ux-button-toolbar/*": ["packages/shared-ux/button_toolbar/*"], "@kbn/shared-ux-card-no-data": ["packages/shared-ux/card/no_data/impl"], diff --git a/yarn.lock b/yarn.lock index d64d2b4c72977..cacf63e857c00 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7260,7 +7260,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-button-exit-full-screen@link:packages/shared-ux/button/exit_full_screen": +"@kbn/shared-ux-button-exit-full-screen@link:src/platform/packages/private/shared-ux/button/exit_full_screen": version "0.0.0" uid "" From 5d16cfaa7c90ee1de26339f3c4fdbe6f9f8be361 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:03:36 +0100 Subject: [PATCH 080/129] Relocating module `@kbn/shared-ux-button-toolbar` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/button_toolbar/README.mdx | 0 .../packages/shared}/shared-ux/button_toolbar/index.ts | 0 .../packages/shared}/shared-ux/button_toolbar/jest.config.js | 4 ++-- .../packages/shared}/shared-ux/button_toolbar/kibana.jsonc | 0 .../packages/shared}/shared-ux/button_toolbar/package.json | 0 .../__snapshots__/add_from_library.test.tsx.snap | 0 .../src/buttons/add_from_library/add_from_library.stories.tsx | 0 .../src/buttons/add_from_library/add_from_library.test.tsx | 0 .../src/buttons/add_from_library/add_from_library.tsx | 0 .../button_toolbar/src/buttons/add_from_library/index.ts | 0 .../__snapshots__/icon_button_group.test.tsx.snap | 0 .../buttons/icon_button_group/icon_button_group.stories.tsx | 0 .../src/buttons/icon_button_group/icon_button_group.styles.ts | 0 .../src/buttons/icon_button_group/icon_button_group.test.tsx | 0 .../src/buttons/icon_button_group/icon_button_group.tsx | 0 .../button_toolbar/src/buttons/icon_button_group/index.ts | 0 .../shared}/shared-ux/button_toolbar/src/buttons/index.ts | 0 .../toolbar_button/__snapshots__/toolbar_button.test.tsx.snap | 0 .../button_toolbar/src/buttons/toolbar_button/index.ts | 0 .../src/buttons/toolbar_button/toolbar_button.stories.tsx | 0 .../src/buttons/toolbar_button/toolbar_button.styles.ts | 0 .../src/buttons/toolbar_button/toolbar_button.test.tsx | 0 .../src/buttons/toolbar_button/toolbar_button.tsx | 0 .../src/popover/__snapshots__/popover.test.tsx.snap | 0 .../shared}/shared-ux/button_toolbar/src/popover/index.ts | 0 .../shared}/shared-ux/button_toolbar/src/popover/popover.mdx | 0 .../shared-ux/button_toolbar/src/popover/popover.stories.tsx | 0 .../shared-ux/button_toolbar/src/popover/popover.test.tsx | 0 .../shared}/shared-ux/button_toolbar/src/popover/popover.tsx | 0 .../src/toolbar/__snapshots__/toolbar.test.tsx.snap | 0 .../shared}/shared-ux/button_toolbar/src/toolbar/index.ts | 0 .../shared-ux/button_toolbar/src/toolbar/toolbar.stories.tsx | 0 .../shared-ux/button_toolbar/src/toolbar/toolbar.test.tsx | 0 .../shared}/shared-ux/button_toolbar/src/toolbar/toolbar.tsx | 0 .../packages/shared}/shared-ux/button_toolbar/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 39 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/jest.config.js (82%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/add_from_library/__snapshots__/add_from_library.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/add_from_library/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/icon_button_group/__snapshots__/icon_button_group.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.styles.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/icon_button_group/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/toolbar_button/__snapshots__/toolbar_button.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/toolbar_button/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.styles.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/popover/__snapshots__/popover.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/popover/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/popover/popover.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/popover/popover.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/popover/popover.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/popover/popover.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/toolbar/__snapshots__/toolbar.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/toolbar/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/toolbar/toolbar.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/toolbar/toolbar.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/src/toolbar/toolbar.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/button_toolbar/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0f780876f7f98..f28d2b4de53a2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/button_toolbar @elastic/appex-sharedux packages/shared-ux/card/no_data/impl @elastic/appex-sharedux packages/shared-ux/card/no_data/mocks @elastic/appex-sharedux packages/shared-ux/card/no_data/types @elastic/appex-sharedux @@ -621,6 +620,7 @@ src/platform/packages/shared/react/kibana_context/theme @elastic/appex-sharedux src/platform/packages/shared/react/kibana_mount @elastic/appex-sharedux src/platform/packages/shared/serverless/settings/observability_project @elastic/appex-sharedux @elastic/kibana-management @elastic/obs-ux-management-team src/platform/packages/shared/shared-ux/avatar/solution @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/button_toolbar @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index b5f5d5da5544c..5d909b2d6716d 100644 --- a/package.json +++ b/package.json @@ -876,7 +876,7 @@ "@kbn/shared-svg": "link:packages/kbn-shared-svg", "@kbn/shared-ux-avatar-solution": "link:src/platform/packages/shared/shared-ux/avatar/solution", "@kbn/shared-ux-button-exit-full-screen": "link:src/platform/packages/private/shared-ux/button/exit_full_screen", - "@kbn/shared-ux-button-toolbar": "link:packages/shared-ux/button_toolbar", + "@kbn/shared-ux-button-toolbar": "link:src/platform/packages/shared/shared-ux/button_toolbar", "@kbn/shared-ux-card-no-data": "link:packages/shared-ux/card/no_data/impl", "@kbn/shared-ux-card-no-data-mocks": "link:packages/shared-ux/card/no_data/mocks", "@kbn/shared-ux-card-no-data-types": "link:packages/shared-ux/card/no_data/types", diff --git a/packages/shared-ux/button_toolbar/README.mdx b/src/platform/packages/shared/shared-ux/button_toolbar/README.mdx similarity index 100% rename from packages/shared-ux/button_toolbar/README.mdx rename to src/platform/packages/shared/shared-ux/button_toolbar/README.mdx diff --git a/packages/shared-ux/button_toolbar/index.ts b/src/platform/packages/shared/shared-ux/button_toolbar/index.ts similarity index 100% rename from packages/shared-ux/button_toolbar/index.ts rename to src/platform/packages/shared/shared-ux/button_toolbar/index.ts diff --git a/packages/shared-ux/button_toolbar/jest.config.js b/src/platform/packages/shared/shared-ux/button_toolbar/jest.config.js similarity index 82% rename from packages/shared-ux/button_toolbar/jest.config.js rename to src/platform/packages/shared/shared-ux/button_toolbar/jest.config.js index 3a3c40d16294a..d0f0f82fab86e 100644 --- a/packages/shared-ux/button_toolbar/jest.config.js +++ b/src/platform/packages/shared/shared-ux/button_toolbar/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/shared-ux/button_toolbar'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/button_toolbar'], }; diff --git a/packages/shared-ux/button_toolbar/kibana.jsonc b/src/platform/packages/shared/shared-ux/button_toolbar/kibana.jsonc similarity index 100% rename from packages/shared-ux/button_toolbar/kibana.jsonc rename to src/platform/packages/shared/shared-ux/button_toolbar/kibana.jsonc diff --git a/packages/shared-ux/button_toolbar/package.json b/src/platform/packages/shared/shared-ux/button_toolbar/package.json similarity index 100% rename from packages/shared-ux/button_toolbar/package.json rename to src/platform/packages/shared/shared-ux/button_toolbar/package.json diff --git a/packages/shared-ux/button_toolbar/src/buttons/add_from_library/__snapshots__/add_from_library.test.tsx.snap b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/__snapshots__/add_from_library.test.tsx.snap similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/add_from_library/__snapshots__/add_from_library.test.tsx.snap rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/__snapshots__/add_from_library.test.tsx.snap diff --git a/packages/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.stories.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.stories.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.stories.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.stories.tsx diff --git a/packages/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.test.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.test.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.test.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.test.tsx diff --git a/packages/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx diff --git a/packages/shared-ux/button_toolbar/src/buttons/add_from_library/index.ts b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/index.ts similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/add_from_library/index.ts rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/index.ts diff --git a/packages/shared-ux/button_toolbar/src/buttons/icon_button_group/__snapshots__/icon_button_group.test.tsx.snap b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/__snapshots__/icon_button_group.test.tsx.snap similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/icon_button_group/__snapshots__/icon_button_group.test.tsx.snap rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/__snapshots__/icon_button_group.test.tsx.snap diff --git a/packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.stories.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.stories.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.stories.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.stories.tsx diff --git a/packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.styles.ts b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.styles.ts similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.styles.ts rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.styles.ts diff --git a/packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.test.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.test.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.test.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.test.tsx diff --git a/packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx diff --git a/packages/shared-ux/button_toolbar/src/buttons/icon_button_group/index.ts b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/index.ts similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/icon_button_group/index.ts rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/index.ts diff --git a/packages/shared-ux/button_toolbar/src/buttons/index.ts b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/index.ts similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/index.ts rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/index.ts diff --git a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/__snapshots__/toolbar_button.test.tsx.snap b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/__snapshots__/toolbar_button.test.tsx.snap similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/toolbar_button/__snapshots__/toolbar_button.test.tsx.snap rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/__snapshots__/toolbar_button.test.tsx.snap diff --git a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/index.ts b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/index.ts similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/toolbar_button/index.ts rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/index.ts diff --git a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.stories.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.stories.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.stories.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.stories.tsx diff --git a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.styles.ts b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.styles.ts similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.styles.ts rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.styles.ts diff --git a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.test.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.test.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.test.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.test.tsx diff --git a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx diff --git a/packages/shared-ux/button_toolbar/src/popover/__snapshots__/popover.test.tsx.snap b/src/platform/packages/shared/shared-ux/button_toolbar/src/popover/__snapshots__/popover.test.tsx.snap similarity index 100% rename from packages/shared-ux/button_toolbar/src/popover/__snapshots__/popover.test.tsx.snap rename to src/platform/packages/shared/shared-ux/button_toolbar/src/popover/__snapshots__/popover.test.tsx.snap diff --git a/packages/shared-ux/button_toolbar/src/popover/index.ts b/src/platform/packages/shared/shared-ux/button_toolbar/src/popover/index.ts similarity index 100% rename from packages/shared-ux/button_toolbar/src/popover/index.ts rename to src/platform/packages/shared/shared-ux/button_toolbar/src/popover/index.ts diff --git a/packages/shared-ux/button_toolbar/src/popover/popover.mdx b/src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.mdx similarity index 100% rename from packages/shared-ux/button_toolbar/src/popover/popover.mdx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.mdx diff --git a/packages/shared-ux/button_toolbar/src/popover/popover.stories.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.stories.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/popover/popover.stories.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.stories.tsx diff --git a/packages/shared-ux/button_toolbar/src/popover/popover.test.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.test.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/popover/popover.test.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.test.tsx diff --git a/packages/shared-ux/button_toolbar/src/popover/popover.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/popover/popover.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.tsx diff --git a/packages/shared-ux/button_toolbar/src/toolbar/__snapshots__/toolbar.test.tsx.snap b/src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/__snapshots__/toolbar.test.tsx.snap similarity index 100% rename from packages/shared-ux/button_toolbar/src/toolbar/__snapshots__/toolbar.test.tsx.snap rename to src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/__snapshots__/toolbar.test.tsx.snap diff --git a/packages/shared-ux/button_toolbar/src/toolbar/index.ts b/src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/index.ts similarity index 100% rename from packages/shared-ux/button_toolbar/src/toolbar/index.ts rename to src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/index.ts diff --git a/packages/shared-ux/button_toolbar/src/toolbar/toolbar.stories.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.stories.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/toolbar/toolbar.stories.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.stories.tsx diff --git a/packages/shared-ux/button_toolbar/src/toolbar/toolbar.test.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.test.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/toolbar/toolbar.test.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.test.tsx diff --git a/packages/shared-ux/button_toolbar/src/toolbar/toolbar.tsx b/src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx similarity index 100% rename from packages/shared-ux/button_toolbar/src/toolbar/toolbar.tsx rename to src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx diff --git a/packages/shared-ux/button_toolbar/tsconfig.json b/src/platform/packages/shared/shared-ux/button_toolbar/tsconfig.json similarity index 85% rename from packages/shared-ux/button_toolbar/tsconfig.json rename to src/platform/packages/shared/shared-ux/button_toolbar/tsconfig.json index 49ed962217ce3..2e25cbc2b680e 100644 --- a/packages/shared-ux/button_toolbar/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/button_toolbar/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c042c4178ac10..ae2044584f2dc 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1724,8 +1724,8 @@ "@kbn/shared-ux-avatar-solution/*": ["src/platform/packages/shared/shared-ux/avatar/solution/*"], "@kbn/shared-ux-button-exit-full-screen": ["src/platform/packages/private/shared-ux/button/exit_full_screen"], "@kbn/shared-ux-button-exit-full-screen/*": ["src/platform/packages/private/shared-ux/button/exit_full_screen/*"], - "@kbn/shared-ux-button-toolbar": ["packages/shared-ux/button_toolbar"], - "@kbn/shared-ux-button-toolbar/*": ["packages/shared-ux/button_toolbar/*"], + "@kbn/shared-ux-button-toolbar": ["src/platform/packages/shared/shared-ux/button_toolbar"], + "@kbn/shared-ux-button-toolbar/*": ["src/platform/packages/shared/shared-ux/button_toolbar/*"], "@kbn/shared-ux-card-no-data": ["packages/shared-ux/card/no_data/impl"], "@kbn/shared-ux-card-no-data/*": ["packages/shared-ux/card/no_data/impl/*"], "@kbn/shared-ux-card-no-data-mocks": ["packages/shared-ux/card/no_data/mocks"], diff --git a/yarn.lock b/yarn.lock index cacf63e857c00..80d805d91e12e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7264,7 +7264,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-button-toolbar@link:packages/shared-ux/button_toolbar": +"@kbn/shared-ux-button-toolbar@link:src/platform/packages/shared/shared-ux/button_toolbar": version "0.0.0" uid "" From 3c7a0fcd511ff0ee0daa24cf05a7fc60c06187cc Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:04:53 +0100 Subject: [PATCH 081/129] Relocating module `@kbn/shared-ux-card-no-data` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/card/no_data/impl/README.mdx | 0 .../packages/shared}/shared-ux/card/no_data/impl/index.ts | 0 .../shared}/shared-ux/card/no_data/impl/jest.config.js | 2 +- .../packages/shared}/shared-ux/card/no_data/impl/kibana.jsonc | 0 .../packages/shared}/shared-ux/card/no_data/impl/package.json | 0 .../src/__snapshots__/no_data_card.component.test.tsx.snap | 0 .../no_data/impl/src/__snapshots__/no_data_card.test.tsx.snap | 0 .../card/no_data/impl/src/assets/elastic_agent_card.svg | 0 .../card/no_data/impl/src/no_data_card.component.test.tsx | 0 .../card/no_data/impl/src/no_data_card.component.tsx | 0 .../shared-ux/card/no_data/impl/src/no_data_card.stories.tsx | 0 .../shared-ux/card/no_data/impl/src/no_data_card.styles.ts | 0 .../shared-ux/card/no_data/impl/src/no_data_card.test.tsx | 0 .../shared}/shared-ux/card/no_data/impl/src/no_data_card.tsx | 0 .../shared}/shared-ux/card/no_data/impl/src/services.tsx | 0 .../shared}/shared-ux/card/no_data/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 20 files changed, 7 insertions(+), 7 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/jest.config.js (93%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.component.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/assets/elastic_agent_card.svg (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/no_data_card.component.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/no_data_card.component.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/no_data_card.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/no_data_card.styles.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/no_data_card.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/no_data_card.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/impl/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f28d2b4de53a2..12c445037ac10 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/card/no_data/impl @elastic/appex-sharedux packages/shared-ux/card/no_data/mocks @elastic/appex-sharedux packages/shared-ux/card/no_data/types @elastic/appex-sharedux packages/shared-ux/chrome/navigation @elastic/appex-sharedux @@ -621,6 +620,7 @@ src/platform/packages/shared/react/kibana_mount @elastic/appex-sharedux src/platform/packages/shared/serverless/settings/observability_project @elastic/appex-sharedux @elastic/kibana-management @elastic/obs-ux-management-team src/platform/packages/shared/shared-ux/avatar/solution @elastic/appex-sharedux src/platform/packages/shared/shared-ux/button_toolbar @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/card/no_data/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index 5d909b2d6716d..b784d43809ea1 100644 --- a/package.json +++ b/package.json @@ -877,7 +877,7 @@ "@kbn/shared-ux-avatar-solution": "link:src/platform/packages/shared/shared-ux/avatar/solution", "@kbn/shared-ux-button-exit-full-screen": "link:src/platform/packages/private/shared-ux/button/exit_full_screen", "@kbn/shared-ux-button-toolbar": "link:src/platform/packages/shared/shared-ux/button_toolbar", - "@kbn/shared-ux-card-no-data": "link:packages/shared-ux/card/no_data/impl", + "@kbn/shared-ux-card-no-data": "link:src/platform/packages/shared/shared-ux/card/no_data/impl", "@kbn/shared-ux-card-no-data-mocks": "link:packages/shared-ux/card/no_data/mocks", "@kbn/shared-ux-card-no-data-types": "link:packages/shared-ux/card/no_data/types", "@kbn/shared-ux-chrome-navigation": "link:packages/shared-ux/chrome/navigation", diff --git a/packages/shared-ux/card/no_data/impl/README.mdx b/src/platform/packages/shared/shared-ux/card/no_data/impl/README.mdx similarity index 100% rename from packages/shared-ux/card/no_data/impl/README.mdx rename to src/platform/packages/shared/shared-ux/card/no_data/impl/README.mdx diff --git a/packages/shared-ux/card/no_data/impl/index.ts b/src/platform/packages/shared/shared-ux/card/no_data/impl/index.ts similarity index 100% rename from packages/shared-ux/card/no_data/impl/index.ts rename to src/platform/packages/shared/shared-ux/card/no_data/impl/index.ts diff --git a/packages/shared-ux/card/no_data/impl/jest.config.js b/src/platform/packages/shared/shared-ux/card/no_data/impl/jest.config.js similarity index 93% rename from packages/shared-ux/card/no_data/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/card/no_data/impl/jest.config.js index 29400c16c5cc2..6681d8fa82677 100644 --- a/packages/shared-ux/card/no_data/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/card/no_data/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', + rootDir: '../../../../../../../..', roots: ['/packages/shared-ux/card/no_data'], }; diff --git a/packages/shared-ux/card/no_data/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/card/no_data/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/card/no_data/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/card/no_data/impl/kibana.jsonc diff --git a/packages/shared-ux/card/no_data/impl/package.json b/src/platform/packages/shared/shared-ux/card/no_data/impl/package.json similarity index 100% rename from packages/shared-ux/card/no_data/impl/package.json rename to src/platform/packages/shared/shared-ux/card/no_data/impl/package.json diff --git a/packages/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.component.test.tsx.snap b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.component.test.tsx.snap similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.component.test.tsx.snap rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.component.test.tsx.snap diff --git a/packages/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.test.tsx.snap b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.test.tsx.snap similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.test.tsx.snap rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/__snapshots__/no_data_card.test.tsx.snap diff --git a/packages/shared-ux/card/no_data/impl/src/assets/elastic_agent_card.svg b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/assets/elastic_agent_card.svg similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/assets/elastic_agent_card.svg rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/assets/elastic_agent_card.svg diff --git a/packages/shared-ux/card/no_data/impl/src/no_data_card.component.test.tsx b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.component.test.tsx similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/no_data_card.component.test.tsx rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.component.test.tsx diff --git a/packages/shared-ux/card/no_data/impl/src/no_data_card.component.tsx b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.component.tsx similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/no_data_card.component.tsx rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.component.tsx diff --git a/packages/shared-ux/card/no_data/impl/src/no_data_card.stories.tsx b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.stories.tsx similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/no_data_card.stories.tsx rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.stories.tsx diff --git a/packages/shared-ux/card/no_data/impl/src/no_data_card.styles.ts b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.styles.ts similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/no_data_card.styles.ts rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.styles.ts diff --git a/packages/shared-ux/card/no_data/impl/src/no_data_card.test.tsx b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.test.tsx similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/no_data_card.test.tsx rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.test.tsx diff --git a/packages/shared-ux/card/no_data/impl/src/no_data_card.tsx b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.tsx similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/no_data_card.tsx rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/no_data_card.tsx diff --git a/packages/shared-ux/card/no_data/impl/src/services.tsx b/src/platform/packages/shared/shared-ux/card/no_data/impl/src/services.tsx similarity index 100% rename from packages/shared-ux/card/no_data/impl/src/services.tsx rename to src/platform/packages/shared/shared-ux/card/no_data/impl/src/services.tsx diff --git a/packages/shared-ux/card/no_data/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/card/no_data/impl/tsconfig.json similarity index 88% rename from packages/shared-ux/card/no_data/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/card/no_data/impl/tsconfig.json index cd9e401f45b02..13e89d6938d5d 100644 --- a/packages/shared-ux/card/no_data/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/card/no_data/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ae2044584f2dc..68d405d06bfdc 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1726,8 +1726,8 @@ "@kbn/shared-ux-button-exit-full-screen/*": ["src/platform/packages/private/shared-ux/button/exit_full_screen/*"], "@kbn/shared-ux-button-toolbar": ["src/platform/packages/shared/shared-ux/button_toolbar"], "@kbn/shared-ux-button-toolbar/*": ["src/platform/packages/shared/shared-ux/button_toolbar/*"], - "@kbn/shared-ux-card-no-data": ["packages/shared-ux/card/no_data/impl"], - "@kbn/shared-ux-card-no-data/*": ["packages/shared-ux/card/no_data/impl/*"], + "@kbn/shared-ux-card-no-data": ["src/platform/packages/shared/shared-ux/card/no_data/impl"], + "@kbn/shared-ux-card-no-data/*": ["src/platform/packages/shared/shared-ux/card/no_data/impl/*"], "@kbn/shared-ux-card-no-data-mocks": ["packages/shared-ux/card/no_data/mocks"], "@kbn/shared-ux-card-no-data-mocks/*": ["packages/shared-ux/card/no_data/mocks/*"], "@kbn/shared-ux-card-no-data-types": ["packages/shared-ux/card/no_data/types"], diff --git a/yarn.lock b/yarn.lock index 80d805d91e12e..a46acf0f83c98 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7276,7 +7276,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-card-no-data@link:packages/shared-ux/card/no_data/impl": +"@kbn/shared-ux-card-no-data@link:src/platform/packages/shared/shared-ux/card/no_data/impl": version "0.0.0" uid "" From daf47c8eeaf091ce69e91a3ce1c6a8573568f2cc Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:06:10 +0100 Subject: [PATCH 082/129] Relocating module `@kbn/shared-ux-card-no-data-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/card/no_data/mocks/README.md | 0 .../packages/shared}/shared-ux/card/no_data/mocks/index.ts | 0 .../shared}/shared-ux/card/no_data/mocks/kibana.jsonc | 0 .../shared}/shared-ux/card/no_data/mocks/package.json | 0 .../packages/shared}/shared-ux/card/no_data/mocks/src/jest.ts | 0 .../shared}/shared-ux/card/no_data/mocks/src/storybook.ts | 0 .../shared}/shared-ux/card/no_data/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/mocks/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/mocks/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/mocks/src/jest.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/mocks/src/storybook.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/mocks/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 12c445037ac10..70af328e30131 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/card/no_data/mocks @elastic/appex-sharedux packages/shared-ux/card/no_data/types @elastic/appex-sharedux packages/shared-ux/chrome/navigation @elastic/appex-sharedux packages/shared-ux/error_boundary @elastic/appex-sharedux @@ -621,6 +620,7 @@ src/platform/packages/shared/serverless/settings/observability_project @elastic/ src/platform/packages/shared/shared-ux/avatar/solution @elastic/appex-sharedux src/platform/packages/shared/shared-ux/button_toolbar @elastic/appex-sharedux src/platform/packages/shared/shared-ux/card/no_data/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/card/no_data/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index b784d43809ea1..dc2512f8a8592 100644 --- a/package.json +++ b/package.json @@ -878,7 +878,7 @@ "@kbn/shared-ux-button-exit-full-screen": "link:src/platform/packages/private/shared-ux/button/exit_full_screen", "@kbn/shared-ux-button-toolbar": "link:src/platform/packages/shared/shared-ux/button_toolbar", "@kbn/shared-ux-card-no-data": "link:src/platform/packages/shared/shared-ux/card/no_data/impl", - "@kbn/shared-ux-card-no-data-mocks": "link:packages/shared-ux/card/no_data/mocks", + "@kbn/shared-ux-card-no-data-mocks": "link:src/platform/packages/shared/shared-ux/card/no_data/mocks", "@kbn/shared-ux-card-no-data-types": "link:packages/shared-ux/card/no_data/types", "@kbn/shared-ux-chrome-navigation": "link:packages/shared-ux/chrome/navigation", "@kbn/shared-ux-error-boundary": "link:packages/shared-ux/error_boundary", diff --git a/packages/shared-ux/card/no_data/mocks/README.md b/src/platform/packages/shared/shared-ux/card/no_data/mocks/README.md similarity index 100% rename from packages/shared-ux/card/no_data/mocks/README.md rename to src/platform/packages/shared/shared-ux/card/no_data/mocks/README.md diff --git a/packages/shared-ux/card/no_data/mocks/index.ts b/src/platform/packages/shared/shared-ux/card/no_data/mocks/index.ts similarity index 100% rename from packages/shared-ux/card/no_data/mocks/index.ts rename to src/platform/packages/shared/shared-ux/card/no_data/mocks/index.ts diff --git a/packages/shared-ux/card/no_data/mocks/kibana.jsonc b/src/platform/packages/shared/shared-ux/card/no_data/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/card/no_data/mocks/kibana.jsonc rename to src/platform/packages/shared/shared-ux/card/no_data/mocks/kibana.jsonc diff --git a/packages/shared-ux/card/no_data/mocks/package.json b/src/platform/packages/shared/shared-ux/card/no_data/mocks/package.json similarity index 100% rename from packages/shared-ux/card/no_data/mocks/package.json rename to src/platform/packages/shared/shared-ux/card/no_data/mocks/package.json diff --git a/packages/shared-ux/card/no_data/mocks/src/jest.ts b/src/platform/packages/shared/shared-ux/card/no_data/mocks/src/jest.ts similarity index 100% rename from packages/shared-ux/card/no_data/mocks/src/jest.ts rename to src/platform/packages/shared/shared-ux/card/no_data/mocks/src/jest.ts diff --git a/packages/shared-ux/card/no_data/mocks/src/storybook.ts b/src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts similarity index 100% rename from packages/shared-ux/card/no_data/mocks/src/storybook.ts rename to src/platform/packages/shared/shared-ux/card/no_data/mocks/src/storybook.ts diff --git a/packages/shared-ux/card/no_data/mocks/tsconfig.json b/src/platform/packages/shared/shared-ux/card/no_data/mocks/tsconfig.json similarity index 85% rename from packages/shared-ux/card/no_data/mocks/tsconfig.json rename to src/platform/packages/shared/shared-ux/card/no_data/mocks/tsconfig.json index 605636c685b22..c77f0782e6e10 100644 --- a/packages/shared-ux/card/no_data/mocks/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/card/no_data/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 68d405d06bfdc..a124cd0a3eed1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1728,8 +1728,8 @@ "@kbn/shared-ux-button-toolbar/*": ["src/platform/packages/shared/shared-ux/button_toolbar/*"], "@kbn/shared-ux-card-no-data": ["src/platform/packages/shared/shared-ux/card/no_data/impl"], "@kbn/shared-ux-card-no-data/*": ["src/platform/packages/shared/shared-ux/card/no_data/impl/*"], - "@kbn/shared-ux-card-no-data-mocks": ["packages/shared-ux/card/no_data/mocks"], - "@kbn/shared-ux-card-no-data-mocks/*": ["packages/shared-ux/card/no_data/mocks/*"], + "@kbn/shared-ux-card-no-data-mocks": ["src/platform/packages/shared/shared-ux/card/no_data/mocks"], + "@kbn/shared-ux-card-no-data-mocks/*": ["src/platform/packages/shared/shared-ux/card/no_data/mocks/*"], "@kbn/shared-ux-card-no-data-types": ["packages/shared-ux/card/no_data/types"], "@kbn/shared-ux-card-no-data-types/*": ["packages/shared-ux/card/no_data/types/*"], "@kbn/shared-ux-chrome-navigation": ["packages/shared-ux/chrome/navigation"], diff --git a/yarn.lock b/yarn.lock index a46acf0f83c98..6ecaee81daa4c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7268,7 +7268,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-card-no-data-mocks@link:packages/shared-ux/card/no_data/mocks": +"@kbn/shared-ux-card-no-data-mocks@link:src/platform/packages/shared/shared-ux/card/no_data/mocks": version "0.0.0" uid "" From 8d1fac805a5046d641f4a1405b1f3a5b16341ddb Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:07:28 +0100 Subject: [PATCH 083/129] Relocating module `@kbn/shared-ux-card-no-data-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/card/no_data/types/README.md | 0 .../packages/shared}/shared-ux/card/no_data/types/index.d.ts | 0 .../shared}/shared-ux/card/no_data/types/kibana.jsonc | 0 .../shared}/shared-ux/card/no_data/types/package.json | 0 .../shared}/shared-ux/card/no_data/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/types/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/types/index.d.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/types/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/card/no_data/types/tsconfig.json (79%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 70af328e30131..a39587ea383d8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/card/no_data/types @elastic/appex-sharedux packages/shared-ux/chrome/navigation @elastic/appex-sharedux packages/shared-ux/error_boundary @elastic/appex-sharedux packages/shared-ux/file/context @elastic/appex-sharedux @@ -621,6 +620,7 @@ src/platform/packages/shared/shared-ux/avatar/solution @elastic/appex-sharedux src/platform/packages/shared/shared-ux/button_toolbar @elastic/appex-sharedux src/platform/packages/shared/shared-ux/card/no_data/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/card/no_data/mocks @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/card/no_data/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index dc2512f8a8592..8cae8c278a7d1 100644 --- a/package.json +++ b/package.json @@ -879,7 +879,7 @@ "@kbn/shared-ux-button-toolbar": "link:src/platform/packages/shared/shared-ux/button_toolbar", "@kbn/shared-ux-card-no-data": "link:src/platform/packages/shared/shared-ux/card/no_data/impl", "@kbn/shared-ux-card-no-data-mocks": "link:src/platform/packages/shared/shared-ux/card/no_data/mocks", - "@kbn/shared-ux-card-no-data-types": "link:packages/shared-ux/card/no_data/types", + "@kbn/shared-ux-card-no-data-types": "link:src/platform/packages/shared/shared-ux/card/no_data/types", "@kbn/shared-ux-chrome-navigation": "link:packages/shared-ux/chrome/navigation", "@kbn/shared-ux-error-boundary": "link:packages/shared-ux/error_boundary", "@kbn/shared-ux-file-context": "link:packages/shared-ux/file/context", diff --git a/packages/shared-ux/card/no_data/types/README.md b/src/platform/packages/shared/shared-ux/card/no_data/types/README.md similarity index 100% rename from packages/shared-ux/card/no_data/types/README.md rename to src/platform/packages/shared/shared-ux/card/no_data/types/README.md diff --git a/packages/shared-ux/card/no_data/types/index.d.ts b/src/platform/packages/shared/shared-ux/card/no_data/types/index.d.ts similarity index 100% rename from packages/shared-ux/card/no_data/types/index.d.ts rename to src/platform/packages/shared/shared-ux/card/no_data/types/index.d.ts diff --git a/packages/shared-ux/card/no_data/types/kibana.jsonc b/src/platform/packages/shared/shared-ux/card/no_data/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/card/no_data/types/kibana.jsonc rename to src/platform/packages/shared/shared-ux/card/no_data/types/kibana.jsonc diff --git a/packages/shared-ux/card/no_data/types/package.json b/src/platform/packages/shared/shared-ux/card/no_data/types/package.json similarity index 100% rename from packages/shared-ux/card/no_data/types/package.json rename to src/platform/packages/shared/shared-ux/card/no_data/types/package.json diff --git a/packages/shared-ux/card/no_data/types/tsconfig.json b/src/platform/packages/shared/shared-ux/card/no_data/types/tsconfig.json similarity index 79% rename from packages/shared-ux/card/no_data/types/tsconfig.json rename to src/platform/packages/shared/shared-ux/card/no_data/types/tsconfig.json index 73edcc63080a5..fea147629e8db 100644 --- a/packages/shared-ux/card/no_data/types/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/card/no_data/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [] diff --git a/tsconfig.base.json b/tsconfig.base.json index a124cd0a3eed1..2ff87f2855202 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1730,8 +1730,8 @@ "@kbn/shared-ux-card-no-data/*": ["src/platform/packages/shared/shared-ux/card/no_data/impl/*"], "@kbn/shared-ux-card-no-data-mocks": ["src/platform/packages/shared/shared-ux/card/no_data/mocks"], "@kbn/shared-ux-card-no-data-mocks/*": ["src/platform/packages/shared/shared-ux/card/no_data/mocks/*"], - "@kbn/shared-ux-card-no-data-types": ["packages/shared-ux/card/no_data/types"], - "@kbn/shared-ux-card-no-data-types/*": ["packages/shared-ux/card/no_data/types/*"], + "@kbn/shared-ux-card-no-data-types": ["src/platform/packages/shared/shared-ux/card/no_data/types"], + "@kbn/shared-ux-card-no-data-types/*": ["src/platform/packages/shared/shared-ux/card/no_data/types/*"], "@kbn/shared-ux-chrome-navigation": ["packages/shared-ux/chrome/navigation"], "@kbn/shared-ux-chrome-navigation/*": ["packages/shared-ux/chrome/navigation/*"], "@kbn/shared-ux-error-boundary": ["packages/shared-ux/error_boundary"], diff --git a/yarn.lock b/yarn.lock index 6ecaee81daa4c..902360880ea95 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7272,7 +7272,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-card-no-data-types@link:packages/shared-ux/card/no_data/types": +"@kbn/shared-ux-card-no-data-types@link:src/platform/packages/shared/shared-ux/card/no_data/types": version "0.0.0" uid "" From 5f88355282f82554c9493bb66512939682fadef0 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:08:46 +0100 Subject: [PATCH 084/129] Relocating module `@kbn/shared-ux-chrome-navigation` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/chrome/navigation/README.mdx | 0 .../shared-ux/chrome/navigation/__jest__/active_node.test.tsx | 0 .../chrome/navigation/__jest__/build_nav_tree.test.tsx | 0 .../shared-ux/chrome/navigation/__jest__/panel.test.tsx | 0 .../shared-ux/chrome/navigation/__jest__/setup_jest_mocks.ts | 0 .../shared}/shared-ux/chrome/navigation/__jest__/utils.tsx | 0 .../packages/shared}/shared-ux/chrome/navigation/index.ts | 0 .../shared}/shared-ux/chrome/navigation/jest.config.js | 4 ++-- .../packages/shared}/shared-ux/chrome/navigation/kibana.jsonc | 0 .../shared}/shared-ux/chrome/navigation/mocks/index.ts | 0 .../shared}/shared-ux/chrome/navigation/mocks/storybook.ts | 0 .../packages/shared}/shared-ux/chrome/navigation/package.json | 0 .../chrome/navigation/src/analytics/event_tracker.ts | 0 .../shared-ux/chrome/navigation/src/analytics/index.ts | 0 .../shared}/shared-ux/chrome/navigation/src/services.tsx | 0 .../packages/shared}/shared-ux/chrome/navigation/src/types.ts | 0 .../chrome/navigation/src/ui/components/feedback_btn.tsx | 0 .../shared-ux/chrome/navigation/src/ui/components/index.ts | 0 .../src/ui/components/navigation_item_open_panel.tsx | 0 .../navigation/src/ui/components/navigation_section_ui.tsx | 0 .../chrome/navigation/src/ui/components/panel/context.tsx | 0 .../navigation/src/ui/components/panel/default_content.tsx | 0 .../chrome/navigation/src/ui/components/panel/index.ts | 0 .../chrome/navigation/src/ui/components/panel/label_badge.tsx | 0 .../navigation/src/ui/components/panel/navigation_panel.tsx | 0 .../chrome/navigation/src/ui/components/panel/panel_group.tsx | 0 .../navigation/src/ui/components/panel/panel_nav_item.tsx | 0 .../src/ui/components/panel/panel_nav_item_label.tsx | 0 .../chrome/navigation/src/ui/components/panel/styles.ts | 0 .../chrome/navigation/src/ui/components/panel/types.ts | 0 .../chrome/navigation/src/ui/components/recently_accessed.tsx | 0 .../shared}/shared-ux/chrome/navigation/src/ui/constants.ts | 0 .../shared-ux/chrome/navigation/src/ui/elastic_mark.tsx | 0 .../shared}/shared-ux/chrome/navigation/src/ui/hooks/index.ts | 0 .../chrome/navigation/src/ui/hooks/use_accordion_state.ts | 0 .../shared-ux/chrome/navigation/src/ui/i18n_strings.ts | 0 .../shared}/shared-ux/chrome/navigation/src/ui/index.ts | 0 .../shared-ux/chrome/navigation/src/ui/navigation.stories.tsx | 0 .../shared}/shared-ux/chrome/navigation/src/ui/navigation.tsx | 0 .../shared}/shared-ux/chrome/navigation/src/ui/types.ts | 0 .../shared}/shared-ux/chrome/navigation/src/utils.test.ts | 0 .../packages/shared}/shared-ux/chrome/navigation/src/utils.ts | 0 .../shared}/shared-ux/chrome/navigation/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 47 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/__jest__/active_node.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/__jest__/build_nav_tree.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/__jest__/panel.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/__jest__/setup_jest_mocks.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/__jest__/utils.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/jest.config.js (81%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/mocks/storybook.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/analytics/event_tracker.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/analytics/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/types.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/feedback_btn.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/navigation_item_open_panel.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/navigation_section_ui.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/context.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/default_content.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/label_badge.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/navigation_panel.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/panel_group.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item_label.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/styles.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/panel/types.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/components/recently_accessed.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/constants.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/elastic_mark.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/hooks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/hooks/use_accordion_state.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/i18n_strings.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/navigation.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/navigation.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/ui/types.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/utils.test.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/src/utils.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/chrome/navigation/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a39587ea383d8..10ace92b67a91 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/chrome/navigation @elastic/appex-sharedux packages/shared-ux/error_boundary @elastic/appex-sharedux packages/shared-ux/file/context @elastic/appex-sharedux packages/shared-ux/file/file_picker/impl @elastic/appex-sharedux @@ -621,6 +620,7 @@ src/platform/packages/shared/shared-ux/button_toolbar @elastic/appex-sharedux src/platform/packages/shared/shared-ux/card/no_data/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/card/no_data/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/card/no_data/types @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/chrome/navigation @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management diff --git a/package.json b/package.json index 8cae8c278a7d1..f75c69aed8567 100644 --- a/package.json +++ b/package.json @@ -880,7 +880,7 @@ "@kbn/shared-ux-card-no-data": "link:src/platform/packages/shared/shared-ux/card/no_data/impl", "@kbn/shared-ux-card-no-data-mocks": "link:src/platform/packages/shared/shared-ux/card/no_data/mocks", "@kbn/shared-ux-card-no-data-types": "link:src/platform/packages/shared/shared-ux/card/no_data/types", - "@kbn/shared-ux-chrome-navigation": "link:packages/shared-ux/chrome/navigation", + "@kbn/shared-ux-chrome-navigation": "link:src/platform/packages/shared/shared-ux/chrome/navigation", "@kbn/shared-ux-error-boundary": "link:packages/shared-ux/error_boundary", "@kbn/shared-ux-file-context": "link:packages/shared-ux/file/context", "@kbn/shared-ux-file-image": "link:packages/shared-ux/file/image/impl", diff --git a/packages/shared-ux/chrome/navigation/README.mdx b/src/platform/packages/shared/shared-ux/chrome/navigation/README.mdx similarity index 100% rename from packages/shared-ux/chrome/navigation/README.mdx rename to src/platform/packages/shared/shared-ux/chrome/navigation/README.mdx diff --git a/packages/shared-ux/chrome/navigation/__jest__/active_node.test.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/active_node.test.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/__jest__/active_node.test.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/active_node.test.tsx diff --git a/packages/shared-ux/chrome/navigation/__jest__/build_nav_tree.test.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/build_nav_tree.test.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/__jest__/build_nav_tree.test.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/build_nav_tree.test.tsx diff --git a/packages/shared-ux/chrome/navigation/__jest__/panel.test.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/panel.test.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/__jest__/panel.test.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/panel.test.tsx diff --git a/packages/shared-ux/chrome/navigation/__jest__/setup_jest_mocks.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/setup_jest_mocks.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/__jest__/setup_jest_mocks.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/setup_jest_mocks.ts diff --git a/packages/shared-ux/chrome/navigation/__jest__/utils.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/utils.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/__jest__/utils.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/__jest__/utils.tsx diff --git a/packages/shared-ux/chrome/navigation/index.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/index.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/index.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/index.ts diff --git a/packages/shared-ux/chrome/navigation/jest.config.js b/src/platform/packages/shared/shared-ux/chrome/navigation/jest.config.js similarity index 81% rename from packages/shared-ux/chrome/navigation/jest.config.js rename to src/platform/packages/shared/shared-ux/chrome/navigation/jest.config.js index d119e24827eff..c8ca993f9377f 100644 --- a/packages/shared-ux/chrome/navigation/jest.config.js +++ b/src/platform/packages/shared/shared-ux/chrome/navigation/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/shared-ux/chrome/navigation'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/chrome/navigation'], }; diff --git a/packages/shared-ux/chrome/navigation/kibana.jsonc b/src/platform/packages/shared/shared-ux/chrome/navigation/kibana.jsonc similarity index 100% rename from packages/shared-ux/chrome/navigation/kibana.jsonc rename to src/platform/packages/shared/shared-ux/chrome/navigation/kibana.jsonc diff --git a/packages/shared-ux/chrome/navigation/mocks/index.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/mocks/index.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/mocks/index.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/mocks/index.ts diff --git a/packages/shared-ux/chrome/navigation/mocks/storybook.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/mocks/storybook.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/mocks/storybook.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/mocks/storybook.ts diff --git a/packages/shared-ux/chrome/navigation/package.json b/src/platform/packages/shared/shared-ux/chrome/navigation/package.json similarity index 100% rename from packages/shared-ux/chrome/navigation/package.json rename to src/platform/packages/shared/shared-ux/chrome/navigation/package.json diff --git a/packages/shared-ux/chrome/navigation/src/analytics/event_tracker.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/analytics/event_tracker.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/analytics/event_tracker.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/analytics/event_tracker.ts diff --git a/packages/shared-ux/chrome/navigation/src/analytics/index.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/analytics/index.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/analytics/index.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/analytics/index.ts diff --git a/packages/shared-ux/chrome/navigation/src/services.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/services.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/services.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/services.tsx diff --git a/packages/shared-ux/chrome/navigation/src/types.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/types.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/types.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/feedback_btn.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/feedback_btn.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/feedback_btn.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/feedback_btn.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/index.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/index.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/index.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/index.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/navigation_item_open_panel.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/navigation_item_open_panel.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/navigation_item_open_panel.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/navigation_item_open_panel.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/navigation_section_ui.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/navigation_section_ui.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/navigation_section_ui.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/navigation_section_ui.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/context.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/context.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/context.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/context.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/default_content.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/default_content.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/default_content.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/default_content.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/index.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/index.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/index.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/index.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/label_badge.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/label_badge.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/label_badge.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/label_badge.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/navigation_panel.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/navigation_panel.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/navigation_panel.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/navigation_panel.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/panel_group.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/panel_group.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/panel_group.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/panel_group.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item_label.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item_label.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item_label.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/panel_nav_item_label.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/styles.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/styles.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/styles.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/styles.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/panel/types.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/panel/types.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/components/recently_accessed.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/recently_accessed.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/components/recently_accessed.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/components/recently_accessed.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/constants.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/constants.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/constants.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/constants.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/elastic_mark.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/elastic_mark.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/elastic_mark.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/elastic_mark.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/hooks/index.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/hooks/index.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/hooks/index.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/hooks/index.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/hooks/use_accordion_state.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/hooks/use_accordion_state.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/hooks/use_accordion_state.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/hooks/use_accordion_state.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/i18n_strings.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/i18n_strings.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/i18n_strings.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/i18n_strings.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/index.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/index.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/index.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/index.ts diff --git a/packages/shared-ux/chrome/navigation/src/ui/navigation.stories.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/navigation.stories.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/navigation.stories.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/navigation.stories.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/navigation.tsx b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/navigation.tsx similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/navigation.tsx rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/navigation.tsx diff --git a/packages/shared-ux/chrome/navigation/src/ui/types.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/types.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/ui/types.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/ui/types.ts diff --git a/packages/shared-ux/chrome/navigation/src/utils.test.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/utils.test.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/utils.test.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/utils.test.ts diff --git a/packages/shared-ux/chrome/navigation/src/utils.ts b/src/platform/packages/shared/shared-ux/chrome/navigation/src/utils.ts similarity index 100% rename from packages/shared-ux/chrome/navigation/src/utils.ts rename to src/platform/packages/shared/shared-ux/chrome/navigation/src/utils.ts diff --git a/packages/shared-ux/chrome/navigation/tsconfig.json b/src/platform/packages/shared/shared-ux/chrome/navigation/tsconfig.json similarity index 90% rename from packages/shared-ux/chrome/navigation/tsconfig.json rename to src/platform/packages/shared/shared-ux/chrome/navigation/tsconfig.json index 9936cc9f1b892..4fb4d92829f87 100644 --- a/packages/shared-ux/chrome/navigation/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/chrome/navigation/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 2ff87f2855202..e46004efe222c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1732,8 +1732,8 @@ "@kbn/shared-ux-card-no-data-mocks/*": ["src/platform/packages/shared/shared-ux/card/no_data/mocks/*"], "@kbn/shared-ux-card-no-data-types": ["src/platform/packages/shared/shared-ux/card/no_data/types"], "@kbn/shared-ux-card-no-data-types/*": ["src/platform/packages/shared/shared-ux/card/no_data/types/*"], - "@kbn/shared-ux-chrome-navigation": ["packages/shared-ux/chrome/navigation"], - "@kbn/shared-ux-chrome-navigation/*": ["packages/shared-ux/chrome/navigation/*"], + "@kbn/shared-ux-chrome-navigation": ["src/platform/packages/shared/shared-ux/chrome/navigation"], + "@kbn/shared-ux-chrome-navigation/*": ["src/platform/packages/shared/shared-ux/chrome/navigation/*"], "@kbn/shared-ux-error-boundary": ["packages/shared-ux/error_boundary"], "@kbn/shared-ux-error-boundary/*": ["packages/shared-ux/error_boundary/*"], "@kbn/shared-ux-file-context": ["packages/shared-ux/file/context"], diff --git a/yarn.lock b/yarn.lock index 902360880ea95..5d627b409f0d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7280,7 +7280,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-chrome-navigation@link:packages/shared-ux/chrome/navigation": +"@kbn/shared-ux-chrome-navigation@link:src/platform/packages/shared/shared-ux/chrome/navigation": version "0.0.0" uid "" From 8dc31fb7f6147c9d8727b4229b56877e39c99c5f Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:10:02 +0100 Subject: [PATCH 085/129] Relocating module `@kbn/shared-ux-error-boundary` --- .github/CODEOWNERS | 2 +- package.json | 2 +- packages/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../packages/shared}/shared-ux/error_boundary/BUILD.bazel | 0 .../packages/shared}/shared-ux/error_boundary/README.mdx | 0 .../packages/shared}/shared-ux/error_boundary/index.ts | 0 .../packages/shared}/shared-ux/error_boundary/jest.config.js | 4 ++-- .../packages/shared}/shared-ux/error_boundary/kibana.jsonc | 0 .../shared}/shared-ux/error_boundary/lib/telemetry_events.ts | 0 .../packages/shared}/shared-ux/error_boundary/mocks/index.ts | 0 .../shared-ux/error_boundary/mocks/src/bad_component.tsx | 0 .../error_boundary/mocks/src/chunk_load_error_component.tsx | 0 .../shared}/shared-ux/error_boundary/mocks/src/jest.ts | 0 .../shared}/shared-ux/error_boundary/mocks/src/storybook.ts | 0 .../shared-ux/error_boundary/mocks/src/storybook_template.tsx | 0 .../packages/shared}/shared-ux/error_boundary/package.json | 0 .../src/services/error_boundary_services.test.tsx | 0 .../error_boundary/src/services/error_boundary_services.tsx | 0 .../error_boundary/src/services/error_service.test.ts | 0 .../shared-ux/error_boundary/src/services/error_service.ts | 0 .../error_boundary/src/ui/error_boundary.fatal.stories.tsx | 0 .../src/ui/error_boundary.recoverable.stories.tsx | 0 .../shared-ux/error_boundary/src/ui/error_boundary.test.tsx | 0 .../shared-ux/error_boundary/src/ui/error_boundary.tsx | 0 .../shared-ux/error_boundary/src/ui/message_components.tsx | 0 .../shared-ux/error_boundary/src/ui/message_strings.ts | 0 .../shared}/shared-ux/error_boundary/src/ui/throw_if_error.ts | 0 .../packages/shared}/shared-ux/error_boundary/tsconfig.json | 2 +- .../packages/shared}/shared-ux/error_boundary/types.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 31 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/jest.config.js (82%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/lib/telemetry_events.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/mocks/src/bad_component.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/mocks/src/chunk_load_error_component.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/mocks/src/jest.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/mocks/src/storybook.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/mocks/src/storybook_template.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/services/error_boundary_services.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/services/error_boundary_services.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/services/error_service.test.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/services/error_service.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/ui/error_boundary.fatal.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/ui/error_boundary.recoverable.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/ui/error_boundary.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/ui/error_boundary.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/ui/message_components.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/ui/message_strings.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/src/ui/throw_if_error.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/tsconfig.json (89%) rename {packages => src/platform/packages/shared}/shared-ux/error_boundary/types.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 10ace92b67a91..771f66f97ab76 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/error_boundary @elastic/appex-sharedux packages/shared-ux/file/context @elastic/appex-sharedux packages/shared-ux/file/file_picker/impl @elastic/appex-sharedux packages/shared-ux/file/file_upload/impl @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/card/no_data/types @elastic/appex-sharedu src/platform/packages/shared/shared-ux/chrome/navigation @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/error_boundary @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index f75c69aed8567..74e24d952c922 100644 --- a/package.json +++ b/package.json @@ -881,7 +881,7 @@ "@kbn/shared-ux-card-no-data-mocks": "link:src/platform/packages/shared/shared-ux/card/no_data/mocks", "@kbn/shared-ux-card-no-data-types": "link:src/platform/packages/shared/shared-ux/card/no_data/types", "@kbn/shared-ux-chrome-navigation": "link:src/platform/packages/shared/shared-ux/chrome/navigation", - "@kbn/shared-ux-error-boundary": "link:packages/shared-ux/error_boundary", + "@kbn/shared-ux-error-boundary": "link:src/platform/packages/shared/shared-ux/error_boundary", "@kbn/shared-ux-file-context": "link:packages/shared-ux/file/context", "@kbn/shared-ux-file-image": "link:packages/shared-ux/file/image/impl", "@kbn/shared-ux-file-image-mocks": "link:packages/shared-ux/file/image/mocks", diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel index d7aa41015a496..12966ef09b143 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel @@ -36,7 +36,7 @@ webpack_cli( "//packages/kbn-safer-lodash-set", "//packages/kbn-peggy", "//packages/kbn-peggy-loader", - "//packages/shared-ux/error_boundary", + "//src/platform/packages/shared/shared-ux/error_boundary", "//packages/kbn-rison", "//src/platform/packages/shared/shared-ux/code_editor/impl:code_editor", "//src/platform/packages/shared/react/kibana_context/theme", diff --git a/packages/shared-ux/error_boundary/BUILD.bazel b/src/platform/packages/shared/shared-ux/error_boundary/BUILD.bazel similarity index 100% rename from packages/shared-ux/error_boundary/BUILD.bazel rename to src/platform/packages/shared/shared-ux/error_boundary/BUILD.bazel diff --git a/packages/shared-ux/error_boundary/README.mdx b/src/platform/packages/shared/shared-ux/error_boundary/README.mdx similarity index 100% rename from packages/shared-ux/error_boundary/README.mdx rename to src/platform/packages/shared/shared-ux/error_boundary/README.mdx diff --git a/packages/shared-ux/error_boundary/index.ts b/src/platform/packages/shared/shared-ux/error_boundary/index.ts similarity index 100% rename from packages/shared-ux/error_boundary/index.ts rename to src/platform/packages/shared/shared-ux/error_boundary/index.ts diff --git a/packages/shared-ux/error_boundary/jest.config.js b/src/platform/packages/shared/shared-ux/error_boundary/jest.config.js similarity index 82% rename from packages/shared-ux/error_boundary/jest.config.js rename to src/platform/packages/shared/shared-ux/error_boundary/jest.config.js index f016ddddbe096..fe492bcc6cad7 100644 --- a/packages/shared-ux/error_boundary/jest.config.js +++ b/src/platform/packages/shared/shared-ux/error_boundary/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/shared-ux/error_boundary'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/error_boundary'], }; diff --git a/packages/shared-ux/error_boundary/kibana.jsonc b/src/platform/packages/shared/shared-ux/error_boundary/kibana.jsonc similarity index 100% rename from packages/shared-ux/error_boundary/kibana.jsonc rename to src/platform/packages/shared/shared-ux/error_boundary/kibana.jsonc diff --git a/packages/shared-ux/error_boundary/lib/telemetry_events.ts b/src/platform/packages/shared/shared-ux/error_boundary/lib/telemetry_events.ts similarity index 100% rename from packages/shared-ux/error_boundary/lib/telemetry_events.ts rename to src/platform/packages/shared/shared-ux/error_boundary/lib/telemetry_events.ts diff --git a/packages/shared-ux/error_boundary/mocks/index.ts b/src/platform/packages/shared/shared-ux/error_boundary/mocks/index.ts similarity index 100% rename from packages/shared-ux/error_boundary/mocks/index.ts rename to src/platform/packages/shared/shared-ux/error_boundary/mocks/index.ts diff --git a/packages/shared-ux/error_boundary/mocks/src/bad_component.tsx b/src/platform/packages/shared/shared-ux/error_boundary/mocks/src/bad_component.tsx similarity index 100% rename from packages/shared-ux/error_boundary/mocks/src/bad_component.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/mocks/src/bad_component.tsx diff --git a/packages/shared-ux/error_boundary/mocks/src/chunk_load_error_component.tsx b/src/platform/packages/shared/shared-ux/error_boundary/mocks/src/chunk_load_error_component.tsx similarity index 100% rename from packages/shared-ux/error_boundary/mocks/src/chunk_load_error_component.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/mocks/src/chunk_load_error_component.tsx diff --git a/packages/shared-ux/error_boundary/mocks/src/jest.ts b/src/platform/packages/shared/shared-ux/error_boundary/mocks/src/jest.ts similarity index 100% rename from packages/shared-ux/error_boundary/mocks/src/jest.ts rename to src/platform/packages/shared/shared-ux/error_boundary/mocks/src/jest.ts diff --git a/packages/shared-ux/error_boundary/mocks/src/storybook.ts b/src/platform/packages/shared/shared-ux/error_boundary/mocks/src/storybook.ts similarity index 100% rename from packages/shared-ux/error_boundary/mocks/src/storybook.ts rename to src/platform/packages/shared/shared-ux/error_boundary/mocks/src/storybook.ts diff --git a/packages/shared-ux/error_boundary/mocks/src/storybook_template.tsx b/src/platform/packages/shared/shared-ux/error_boundary/mocks/src/storybook_template.tsx similarity index 100% rename from packages/shared-ux/error_boundary/mocks/src/storybook_template.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/mocks/src/storybook_template.tsx diff --git a/packages/shared-ux/error_boundary/package.json b/src/platform/packages/shared/shared-ux/error_boundary/package.json similarity index 100% rename from packages/shared-ux/error_boundary/package.json rename to src/platform/packages/shared/shared-ux/error_boundary/package.json diff --git a/packages/shared-ux/error_boundary/src/services/error_boundary_services.test.tsx b/src/platform/packages/shared/shared-ux/error_boundary/src/services/error_boundary_services.test.tsx similarity index 100% rename from packages/shared-ux/error_boundary/src/services/error_boundary_services.test.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/src/services/error_boundary_services.test.tsx diff --git a/packages/shared-ux/error_boundary/src/services/error_boundary_services.tsx b/src/platform/packages/shared/shared-ux/error_boundary/src/services/error_boundary_services.tsx similarity index 100% rename from packages/shared-ux/error_boundary/src/services/error_boundary_services.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/src/services/error_boundary_services.tsx diff --git a/packages/shared-ux/error_boundary/src/services/error_service.test.ts b/src/platform/packages/shared/shared-ux/error_boundary/src/services/error_service.test.ts similarity index 100% rename from packages/shared-ux/error_boundary/src/services/error_service.test.ts rename to src/platform/packages/shared/shared-ux/error_boundary/src/services/error_service.test.ts diff --git a/packages/shared-ux/error_boundary/src/services/error_service.ts b/src/platform/packages/shared/shared-ux/error_boundary/src/services/error_service.ts similarity index 100% rename from packages/shared-ux/error_boundary/src/services/error_service.ts rename to src/platform/packages/shared/shared-ux/error_boundary/src/services/error_service.ts diff --git a/packages/shared-ux/error_boundary/src/ui/error_boundary.fatal.stories.tsx b/src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.fatal.stories.tsx similarity index 100% rename from packages/shared-ux/error_boundary/src/ui/error_boundary.fatal.stories.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.fatal.stories.tsx diff --git a/packages/shared-ux/error_boundary/src/ui/error_boundary.recoverable.stories.tsx b/src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.recoverable.stories.tsx similarity index 100% rename from packages/shared-ux/error_boundary/src/ui/error_boundary.recoverable.stories.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.recoverable.stories.tsx diff --git a/packages/shared-ux/error_boundary/src/ui/error_boundary.test.tsx b/src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.test.tsx similarity index 100% rename from packages/shared-ux/error_boundary/src/ui/error_boundary.test.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.test.tsx diff --git a/packages/shared-ux/error_boundary/src/ui/error_boundary.tsx b/src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.tsx similarity index 100% rename from packages/shared-ux/error_boundary/src/ui/error_boundary.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/src/ui/error_boundary.tsx diff --git a/packages/shared-ux/error_boundary/src/ui/message_components.tsx b/src/platform/packages/shared/shared-ux/error_boundary/src/ui/message_components.tsx similarity index 100% rename from packages/shared-ux/error_boundary/src/ui/message_components.tsx rename to src/platform/packages/shared/shared-ux/error_boundary/src/ui/message_components.tsx diff --git a/packages/shared-ux/error_boundary/src/ui/message_strings.ts b/src/platform/packages/shared/shared-ux/error_boundary/src/ui/message_strings.ts similarity index 100% rename from packages/shared-ux/error_boundary/src/ui/message_strings.ts rename to src/platform/packages/shared/shared-ux/error_boundary/src/ui/message_strings.ts diff --git a/packages/shared-ux/error_boundary/src/ui/throw_if_error.ts b/src/platform/packages/shared/shared-ux/error_boundary/src/ui/throw_if_error.ts similarity index 100% rename from packages/shared-ux/error_boundary/src/ui/throw_if_error.ts rename to src/platform/packages/shared/shared-ux/error_boundary/src/ui/throw_if_error.ts diff --git a/packages/shared-ux/error_boundary/tsconfig.json b/src/platform/packages/shared/shared-ux/error_boundary/tsconfig.json similarity index 89% rename from packages/shared-ux/error_boundary/tsconfig.json rename to src/platform/packages/shared/shared-ux/error_boundary/tsconfig.json index 74d3241c147fa..dcd42c82d16c7 100644 --- a/packages/shared-ux/error_boundary/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/error_boundary/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/shared-ux/error_boundary/types.ts b/src/platform/packages/shared/shared-ux/error_boundary/types.ts similarity index 100% rename from packages/shared-ux/error_boundary/types.ts rename to src/platform/packages/shared/shared-ux/error_boundary/types.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index e46004efe222c..2326113431560 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1734,8 +1734,8 @@ "@kbn/shared-ux-card-no-data-types/*": ["src/platform/packages/shared/shared-ux/card/no_data/types/*"], "@kbn/shared-ux-chrome-navigation": ["src/platform/packages/shared/shared-ux/chrome/navigation"], "@kbn/shared-ux-chrome-navigation/*": ["src/platform/packages/shared/shared-ux/chrome/navigation/*"], - "@kbn/shared-ux-error-boundary": ["packages/shared-ux/error_boundary"], - "@kbn/shared-ux-error-boundary/*": ["packages/shared-ux/error_boundary/*"], + "@kbn/shared-ux-error-boundary": ["src/platform/packages/shared/shared-ux/error_boundary"], + "@kbn/shared-ux-error-boundary/*": ["src/platform/packages/shared/shared-ux/error_boundary/*"], "@kbn/shared-ux-file-context": ["packages/shared-ux/file/context"], "@kbn/shared-ux-file-context/*": ["packages/shared-ux/file/context/*"], "@kbn/shared-ux-file-image": ["packages/shared-ux/file/image/impl"], diff --git a/yarn.lock b/yarn.lock index 5d627b409f0d5..b3018e9a289db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7284,7 +7284,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-error-boundary@link:packages/shared-ux/error_boundary": +"@kbn/shared-ux-error-boundary@link:src/platform/packages/shared/shared-ux/error_boundary": version "0.0.0" uid "" From cdbbfca5014e3510cd8a660d13dda006ad8e21d2 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:11:18 +0100 Subject: [PATCH 086/129] Relocating module `@kbn/shared-ux-file-context` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/file/context/README.mdx | 0 .../platform/packages/shared}/shared-ux/file/context/index.ts | 0 .../packages/shared}/shared-ux/file/context/kibana.jsonc | 0 .../packages/shared}/shared-ux/file/context/package.json | 0 .../packages/shared}/shared-ux/file/context/src/index.tsx | 0 .../packages/shared}/shared-ux/file/context/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/file/context/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/context/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/context/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/context/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/context/src/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/context/tsconfig.json (80%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 771f66f97ab76..43e7b22c017ac 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/file/context @elastic/appex-sharedux packages/shared-ux/file/file_picker/impl @elastic/appex-sharedux packages/shared-ux/file/file_upload/impl @elastic/appex-sharedux packages/shared-ux/file/image/impl @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/chrome/navigation @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/error_boundary @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/file/context @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 74e24d952c922..a2ce9ca76c074 100644 --- a/package.json +++ b/package.json @@ -882,7 +882,7 @@ "@kbn/shared-ux-card-no-data-types": "link:src/platform/packages/shared/shared-ux/card/no_data/types", "@kbn/shared-ux-chrome-navigation": "link:src/platform/packages/shared/shared-ux/chrome/navigation", "@kbn/shared-ux-error-boundary": "link:src/platform/packages/shared/shared-ux/error_boundary", - "@kbn/shared-ux-file-context": "link:packages/shared-ux/file/context", + "@kbn/shared-ux-file-context": "link:src/platform/packages/shared/shared-ux/file/context", "@kbn/shared-ux-file-image": "link:packages/shared-ux/file/image/impl", "@kbn/shared-ux-file-image-mocks": "link:packages/shared-ux/file/image/mocks", "@kbn/shared-ux-file-mocks": "link:packages/shared-ux/file/mocks", diff --git a/packages/shared-ux/file/context/README.mdx b/src/platform/packages/shared/shared-ux/file/context/README.mdx similarity index 100% rename from packages/shared-ux/file/context/README.mdx rename to src/platform/packages/shared/shared-ux/file/context/README.mdx diff --git a/packages/shared-ux/file/context/index.ts b/src/platform/packages/shared/shared-ux/file/context/index.ts similarity index 100% rename from packages/shared-ux/file/context/index.ts rename to src/platform/packages/shared/shared-ux/file/context/index.ts diff --git a/packages/shared-ux/file/context/kibana.jsonc b/src/platform/packages/shared/shared-ux/file/context/kibana.jsonc similarity index 100% rename from packages/shared-ux/file/context/kibana.jsonc rename to src/platform/packages/shared/shared-ux/file/context/kibana.jsonc diff --git a/packages/shared-ux/file/context/package.json b/src/platform/packages/shared/shared-ux/file/context/package.json similarity index 100% rename from packages/shared-ux/file/context/package.json rename to src/platform/packages/shared/shared-ux/file/context/package.json diff --git a/packages/shared-ux/file/context/src/index.tsx b/src/platform/packages/shared/shared-ux/file/context/src/index.tsx similarity index 100% rename from packages/shared-ux/file/context/src/index.tsx rename to src/platform/packages/shared/shared-ux/file/context/src/index.tsx diff --git a/packages/shared-ux/file/context/tsconfig.json b/src/platform/packages/shared/shared-ux/file/context/tsconfig.json similarity index 80% rename from packages/shared-ux/file/context/tsconfig.json rename to src/platform/packages/shared/shared-ux/file/context/tsconfig.json index 3f5374f1300ff..521dfa3cc7d37 100644 --- a/packages/shared-ux/file/context/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/file/context/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ ] diff --git a/tsconfig.base.json b/tsconfig.base.json index 2326113431560..720a218529a4a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1736,8 +1736,8 @@ "@kbn/shared-ux-chrome-navigation/*": ["src/platform/packages/shared/shared-ux/chrome/navigation/*"], "@kbn/shared-ux-error-boundary": ["src/platform/packages/shared/shared-ux/error_boundary"], "@kbn/shared-ux-error-boundary/*": ["src/platform/packages/shared/shared-ux/error_boundary/*"], - "@kbn/shared-ux-file-context": ["packages/shared-ux/file/context"], - "@kbn/shared-ux-file-context/*": ["packages/shared-ux/file/context/*"], + "@kbn/shared-ux-file-context": ["src/platform/packages/shared/shared-ux/file/context"], + "@kbn/shared-ux-file-context/*": ["src/platform/packages/shared/shared-ux/file/context/*"], "@kbn/shared-ux-file-image": ["packages/shared-ux/file/image/impl"], "@kbn/shared-ux-file-image/*": ["packages/shared-ux/file/image/impl/*"], "@kbn/shared-ux-file-image-mocks": ["packages/shared-ux/file/image/mocks"], diff --git a/yarn.lock b/yarn.lock index b3018e9a289db..edbbea6726e32 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7288,7 +7288,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-file-context@link:packages/shared-ux/file/context": +"@kbn/shared-ux-file-context@link:src/platform/packages/shared/shared-ux/file/context": version "0.0.0" uid "" From fcfc4baa5349b7c9daaedda66c5c6e03f3c48798 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:12:34 +0100 Subject: [PATCH 087/129] Relocating module `@kbn/shared-ux-file-image` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/file/image/impl/README.mdx | 0 .../packages/shared}/shared-ux/file/image/impl/index.tsx | 0 .../packages/shared}/shared-ux/file/image/impl/kibana.jsonc | 0 .../packages/shared}/shared-ux/file/image/impl/package.json | 0 .../shared}/shared-ux/file/image/impl/src/image.stories.tsx | 0 .../packages/shared}/shared-ux/file/image/impl/src/image.tsx | 0 .../packages/shared}/shared-ux/file/image/impl/src/index.ts | 0 .../packages/shared}/shared-ux/file/image/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/file/image/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/impl/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/impl/src/image.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/impl/src/image.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/impl/src/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/impl/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 43e7b22c017ac..933af70f56f0b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -519,7 +519,6 @@ packages/serverless/settings/security_project @elastic/security-solution @elasti packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/file/file_picker/impl @elastic/appex-sharedux packages/shared-ux/file/file_upload/impl @elastic/appex-sharedux -packages/shared-ux/file/image/impl @elastic/appex-sharedux packages/shared-ux/file/image/mocks @elastic/appex-sharedux packages/shared-ux/file/mocks @elastic/appex-sharedux packages/shared-ux/file/types @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/error_boundary @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/context @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/file/image/impl @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index a2ce9ca76c074..ddf7a882b629a 100644 --- a/package.json +++ b/package.json @@ -883,7 +883,7 @@ "@kbn/shared-ux-chrome-navigation": "link:src/platform/packages/shared/shared-ux/chrome/navigation", "@kbn/shared-ux-error-boundary": "link:src/platform/packages/shared/shared-ux/error_boundary", "@kbn/shared-ux-file-context": "link:src/platform/packages/shared/shared-ux/file/context", - "@kbn/shared-ux-file-image": "link:packages/shared-ux/file/image/impl", + "@kbn/shared-ux-file-image": "link:src/platform/packages/shared/shared-ux/file/image/impl", "@kbn/shared-ux-file-image-mocks": "link:packages/shared-ux/file/image/mocks", "@kbn/shared-ux-file-mocks": "link:packages/shared-ux/file/mocks", "@kbn/shared-ux-file-picker": "link:packages/shared-ux/file/file_picker/impl", diff --git a/packages/shared-ux/file/image/impl/README.mdx b/src/platform/packages/shared/shared-ux/file/image/impl/README.mdx similarity index 100% rename from packages/shared-ux/file/image/impl/README.mdx rename to src/platform/packages/shared/shared-ux/file/image/impl/README.mdx diff --git a/packages/shared-ux/file/image/impl/index.tsx b/src/platform/packages/shared/shared-ux/file/image/impl/index.tsx similarity index 100% rename from packages/shared-ux/file/image/impl/index.tsx rename to src/platform/packages/shared/shared-ux/file/image/impl/index.tsx diff --git a/packages/shared-ux/file/image/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/file/image/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/file/image/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/file/image/impl/kibana.jsonc diff --git a/packages/shared-ux/file/image/impl/package.json b/src/platform/packages/shared/shared-ux/file/image/impl/package.json similarity index 100% rename from packages/shared-ux/file/image/impl/package.json rename to src/platform/packages/shared/shared-ux/file/image/impl/package.json diff --git a/packages/shared-ux/file/image/impl/src/image.stories.tsx b/src/platform/packages/shared/shared-ux/file/image/impl/src/image.stories.tsx similarity index 100% rename from packages/shared-ux/file/image/impl/src/image.stories.tsx rename to src/platform/packages/shared/shared-ux/file/image/impl/src/image.stories.tsx diff --git a/packages/shared-ux/file/image/impl/src/image.tsx b/src/platform/packages/shared/shared-ux/file/image/impl/src/image.tsx similarity index 100% rename from packages/shared-ux/file/image/impl/src/image.tsx rename to src/platform/packages/shared/shared-ux/file/image/impl/src/image.tsx diff --git a/packages/shared-ux/file/image/impl/src/index.ts b/src/platform/packages/shared/shared-ux/file/image/impl/src/index.ts similarity index 100% rename from packages/shared-ux/file/image/impl/src/index.ts rename to src/platform/packages/shared/shared-ux/file/image/impl/src/index.ts diff --git a/packages/shared-ux/file/image/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/file/image/impl/tsconfig.json similarity index 85% rename from packages/shared-ux/file/image/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/file/image/impl/tsconfig.json index 5404f62040f0d..d464fb5126079 100644 --- a/packages/shared-ux/file/image/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/file/image/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 720a218529a4a..e6aff6ddf8be7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1738,8 +1738,8 @@ "@kbn/shared-ux-error-boundary/*": ["src/platform/packages/shared/shared-ux/error_boundary/*"], "@kbn/shared-ux-file-context": ["src/platform/packages/shared/shared-ux/file/context"], "@kbn/shared-ux-file-context/*": ["src/platform/packages/shared/shared-ux/file/context/*"], - "@kbn/shared-ux-file-image": ["packages/shared-ux/file/image/impl"], - "@kbn/shared-ux-file-image/*": ["packages/shared-ux/file/image/impl/*"], + "@kbn/shared-ux-file-image": ["src/platform/packages/shared/shared-ux/file/image/impl"], + "@kbn/shared-ux-file-image/*": ["src/platform/packages/shared/shared-ux/file/image/impl/*"], "@kbn/shared-ux-file-image-mocks": ["packages/shared-ux/file/image/mocks"], "@kbn/shared-ux-file-image-mocks/*": ["packages/shared-ux/file/image/mocks/*"], "@kbn/shared-ux-file-mocks": ["packages/shared-ux/file/mocks"], diff --git a/yarn.lock b/yarn.lock index edbbea6726e32..25fa46dc0f16a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7296,7 +7296,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-file-image@link:packages/shared-ux/file/image/impl": +"@kbn/shared-ux-file-image@link:src/platform/packages/shared/shared-ux/file/image/impl": version "0.0.0" uid "" From 79b7e5fe0643bdad1c974323b60c9f839d95b5a1 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:13:51 +0100 Subject: [PATCH 088/129] Relocating module `@kbn/shared-ux-file-image-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/file/image/mocks/README.md | 0 .../packages/shared}/shared-ux/file/image/mocks/index.ts | 0 .../packages/shared}/shared-ux/file/image/mocks/kibana.jsonc | 0 .../packages/shared}/shared-ux/file/image/mocks/package.json | 0 .../packages/shared}/shared-ux/file/image/mocks/src/index.ts | 0 .../packages/shared}/shared-ux/file/image/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/file/image/mocks/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/mocks/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/mocks/src/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/image/mocks/tsconfig.json (74%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 933af70f56f0b..883861d983485 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -519,7 +519,6 @@ packages/serverless/settings/security_project @elastic/security-solution @elasti packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/file/file_picker/impl @elastic/appex-sharedux packages/shared-ux/file/file_upload/impl @elastic/appex-sharedux -packages/shared-ux/file/image/mocks @elastic/appex-sharedux packages/shared-ux/file/mocks @elastic/appex-sharedux packages/shared-ux/file/types @elastic/appex-sharedux packages/shared-ux/file/util @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/error_boundary @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/context @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/image/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/file/image/mocks @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index ddf7a882b629a..650fe821d8aaa 100644 --- a/package.json +++ b/package.json @@ -884,7 +884,7 @@ "@kbn/shared-ux-error-boundary": "link:src/platform/packages/shared/shared-ux/error_boundary", "@kbn/shared-ux-file-context": "link:src/platform/packages/shared/shared-ux/file/context", "@kbn/shared-ux-file-image": "link:src/platform/packages/shared/shared-ux/file/image/impl", - "@kbn/shared-ux-file-image-mocks": "link:packages/shared-ux/file/image/mocks", + "@kbn/shared-ux-file-image-mocks": "link:src/platform/packages/shared/shared-ux/file/image/mocks", "@kbn/shared-ux-file-mocks": "link:packages/shared-ux/file/mocks", "@kbn/shared-ux-file-picker": "link:packages/shared-ux/file/file_picker/impl", "@kbn/shared-ux-file-types": "link:packages/shared-ux/file/types", diff --git a/packages/shared-ux/file/image/mocks/README.md b/src/platform/packages/shared/shared-ux/file/image/mocks/README.md similarity index 100% rename from packages/shared-ux/file/image/mocks/README.md rename to src/platform/packages/shared/shared-ux/file/image/mocks/README.md diff --git a/packages/shared-ux/file/image/mocks/index.ts b/src/platform/packages/shared/shared-ux/file/image/mocks/index.ts similarity index 100% rename from packages/shared-ux/file/image/mocks/index.ts rename to src/platform/packages/shared/shared-ux/file/image/mocks/index.ts diff --git a/packages/shared-ux/file/image/mocks/kibana.jsonc b/src/platform/packages/shared/shared-ux/file/image/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/file/image/mocks/kibana.jsonc rename to src/platform/packages/shared/shared-ux/file/image/mocks/kibana.jsonc diff --git a/packages/shared-ux/file/image/mocks/package.json b/src/platform/packages/shared/shared-ux/file/image/mocks/package.json similarity index 100% rename from packages/shared-ux/file/image/mocks/package.json rename to src/platform/packages/shared/shared-ux/file/image/mocks/package.json diff --git a/packages/shared-ux/file/image/mocks/src/index.ts b/src/platform/packages/shared/shared-ux/file/image/mocks/src/index.ts similarity index 100% rename from packages/shared-ux/file/image/mocks/src/index.ts rename to src/platform/packages/shared/shared-ux/file/image/mocks/src/index.ts diff --git a/packages/shared-ux/file/image/mocks/tsconfig.json b/src/platform/packages/shared/shared-ux/file/image/mocks/tsconfig.json similarity index 74% rename from packages/shared-ux/file/image/mocks/tsconfig.json rename to src/platform/packages/shared/shared-ux/file/image/mocks/tsconfig.json index db7f0738c6cfe..c7095560ca583 100644 --- a/packages/shared-ux/file/image/mocks/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/file/image/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index e6aff6ddf8be7..3f810a03276b5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1740,8 +1740,8 @@ "@kbn/shared-ux-file-context/*": ["src/platform/packages/shared/shared-ux/file/context/*"], "@kbn/shared-ux-file-image": ["src/platform/packages/shared/shared-ux/file/image/impl"], "@kbn/shared-ux-file-image/*": ["src/platform/packages/shared/shared-ux/file/image/impl/*"], - "@kbn/shared-ux-file-image-mocks": ["packages/shared-ux/file/image/mocks"], - "@kbn/shared-ux-file-image-mocks/*": ["packages/shared-ux/file/image/mocks/*"], + "@kbn/shared-ux-file-image-mocks": ["src/platform/packages/shared/shared-ux/file/image/mocks"], + "@kbn/shared-ux-file-image-mocks/*": ["src/platform/packages/shared/shared-ux/file/image/mocks/*"], "@kbn/shared-ux-file-mocks": ["packages/shared-ux/file/mocks"], "@kbn/shared-ux-file-mocks/*": ["packages/shared-ux/file/mocks/*"], "@kbn/shared-ux-file-picker": ["packages/shared-ux/file/file_picker/impl"], diff --git a/yarn.lock b/yarn.lock index 25fa46dc0f16a..a0aa2476c4efd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7292,7 +7292,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-file-image-mocks@link:packages/shared-ux/file/image/mocks": +"@kbn/shared-ux-file-image-mocks@link:src/platform/packages/shared/shared-ux/file/image/mocks": version "0.0.0" uid "" From 4713764056c76ba6626076338a52bbd1dc31c39a Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:15:09 +0100 Subject: [PATCH 089/129] Relocating module `@kbn/shared-ux-file-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/shared-ux/file/mocks/README.md | 0 .../platform/packages/shared}/shared-ux/file/mocks/index.ts | 0 .../packages/shared}/shared-ux/file/mocks/kibana.jsonc | 0 .../packages/shared}/shared-ux/file/mocks/package.json | 0 .../packages/shared}/shared-ux/file/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/file/mocks/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/mocks/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/mocks/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 883861d983485..788de424557a2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -519,7 +519,6 @@ packages/serverless/settings/security_project @elastic/security-solution @elasti packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/file/file_picker/impl @elastic/appex-sharedux packages/shared-ux/file/file_upload/impl @elastic/appex-sharedux -packages/shared-ux/file/mocks @elastic/appex-sharedux packages/shared-ux/file/types @elastic/appex-sharedux packages/shared-ux/file/util @elastic/appex-sharedux packages/shared-ux/link/redirect_app/impl @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/error_boundary @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/context @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/image/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/image/mocks @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/file/mocks @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 650fe821d8aaa..a5e88456a7407 100644 --- a/package.json +++ b/package.json @@ -885,7 +885,7 @@ "@kbn/shared-ux-file-context": "link:src/platform/packages/shared/shared-ux/file/context", "@kbn/shared-ux-file-image": "link:src/platform/packages/shared/shared-ux/file/image/impl", "@kbn/shared-ux-file-image-mocks": "link:src/platform/packages/shared/shared-ux/file/image/mocks", - "@kbn/shared-ux-file-mocks": "link:packages/shared-ux/file/mocks", + "@kbn/shared-ux-file-mocks": "link:src/platform/packages/shared/shared-ux/file/mocks", "@kbn/shared-ux-file-picker": "link:packages/shared-ux/file/file_picker/impl", "@kbn/shared-ux-file-types": "link:packages/shared-ux/file/types", "@kbn/shared-ux-file-upload": "link:packages/shared-ux/file/file_upload/impl", diff --git a/packages/shared-ux/file/mocks/README.md b/src/platform/packages/shared/shared-ux/file/mocks/README.md similarity index 100% rename from packages/shared-ux/file/mocks/README.md rename to src/platform/packages/shared/shared-ux/file/mocks/README.md diff --git a/packages/shared-ux/file/mocks/index.ts b/src/platform/packages/shared/shared-ux/file/mocks/index.ts similarity index 100% rename from packages/shared-ux/file/mocks/index.ts rename to src/platform/packages/shared/shared-ux/file/mocks/index.ts diff --git a/packages/shared-ux/file/mocks/kibana.jsonc b/src/platform/packages/shared/shared-ux/file/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/file/mocks/kibana.jsonc rename to src/platform/packages/shared/shared-ux/file/mocks/kibana.jsonc diff --git a/packages/shared-ux/file/mocks/package.json b/src/platform/packages/shared/shared-ux/file/mocks/package.json similarity index 100% rename from packages/shared-ux/file/mocks/package.json rename to src/platform/packages/shared/shared-ux/file/mocks/package.json diff --git a/packages/shared-ux/file/mocks/tsconfig.json b/src/platform/packages/shared/shared-ux/file/mocks/tsconfig.json similarity index 81% rename from packages/shared-ux/file/mocks/tsconfig.json rename to src/platform/packages/shared/shared-ux/file/mocks/tsconfig.json index 677b4a7a9e2ae..0ce8d97ebb972 100644 --- a/packages/shared-ux/file/mocks/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/file/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ ] diff --git a/tsconfig.base.json b/tsconfig.base.json index 3f810a03276b5..80a2bc742323b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1742,8 +1742,8 @@ "@kbn/shared-ux-file-image/*": ["src/platform/packages/shared/shared-ux/file/image/impl/*"], "@kbn/shared-ux-file-image-mocks": ["src/platform/packages/shared/shared-ux/file/image/mocks"], "@kbn/shared-ux-file-image-mocks/*": ["src/platform/packages/shared/shared-ux/file/image/mocks/*"], - "@kbn/shared-ux-file-mocks": ["packages/shared-ux/file/mocks"], - "@kbn/shared-ux-file-mocks/*": ["packages/shared-ux/file/mocks/*"], + "@kbn/shared-ux-file-mocks": ["src/platform/packages/shared/shared-ux/file/mocks"], + "@kbn/shared-ux-file-mocks/*": ["src/platform/packages/shared/shared-ux/file/mocks/*"], "@kbn/shared-ux-file-picker": ["packages/shared-ux/file/file_picker/impl"], "@kbn/shared-ux-file-picker/*": ["packages/shared-ux/file/file_picker/impl/*"], "@kbn/shared-ux-file-types": ["packages/shared-ux/file/types"], diff --git a/yarn.lock b/yarn.lock index a0aa2476c4efd..25aba63cedf13 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7300,7 +7300,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-file-mocks@link:packages/shared-ux/file/mocks": +"@kbn/shared-ux-file-mocks@link:src/platform/packages/shared/shared-ux/file/mocks": version "0.0.0" uid "" From c612d6d3d45051ae4485b19513b015548e421827 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:16:26 +0100 Subject: [PATCH 090/129] Relocating module `@kbn/shared-ux-file-picker` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/file/file_picker/impl/README.mdx | 0 .../shared}/shared-ux/file/file_picker/impl/index.tsx | 0 .../shared}/shared-ux/file/file_picker/impl/jest.config.js | 4 ++-- .../shared}/shared-ux/file/file_picker/impl/kibana.jsonc | 0 .../shared}/shared-ux/file/file_picker/impl/package.json | 0 .../file_picker/impl/src/components/clear_filter_button.tsx | 0 .../impl/src/components/delete_prompt/delete_prompt.tsx | 0 .../file/file_picker/impl/src/components/empty_prompt.tsx | 0 .../file/file_picker/impl/src/components/error_content.tsx | 0 .../file/file_picker/impl/src/components/file_card.scss | 0 .../file/file_picker/impl/src/components/file_card.tsx | 0 .../file/file_picker/impl/src/components/file_grid.tsx | 0 .../file/file_picker/impl/src/components/modal_footer.tsx | 0 .../file/file_picker/impl/src/components/pagination.tsx | 0 .../file/file_picker/impl/src/components/search_field.tsx | 0 .../file/file_picker/impl/src/components/select_button.tsx | 0 .../shared-ux/file/file_picker/impl/src/components/title.tsx | 0 .../shared}/shared-ux/file/file_picker/impl/src/context.tsx | 0 .../file/file_picker/impl/src/file_picker.stories.tsx | 0 .../shared-ux/file/file_picker/impl/src/file_picker.test.tsx | 0 .../shared-ux/file/file_picker/impl/src/file_picker.tsx | 0 .../file/file_picker/impl/src/file_picker_state.test.ts | 0 .../shared-ux/file/file_picker/impl/src/file_picker_state.ts | 0 .../shared}/shared-ux/file/file_picker/impl/src/i18n_texts.ts | 0 .../shared}/shared-ux/file/file_picker/impl/src/index.tsx | 0 .../shared}/shared-ux/file/file_picker/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 30 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/jest.config.js (80%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/clear_filter_button.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/delete_prompt/delete_prompt.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/empty_prompt.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/error_content.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/file_card.scss (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/file_card.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/file_grid.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/modal_footer.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/pagination.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/search_field.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/select_button.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/components/title.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/context.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/file_picker.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/file_picker.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/file_picker.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/file_picker_state.test.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/file_picker_state.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/i18n_texts.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/src/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_picker/impl/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 788de424557a2..9833071543a51 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/file/file_picker/impl @elastic/appex-sharedux packages/shared-ux/file/file_upload/impl @elastic/appex-sharedux packages/shared-ux/file/types @elastic/appex-sharedux packages/shared-ux/file/util @elastic/appex-sharedux @@ -620,6 +619,7 @@ src/platform/packages/shared/shared-ux/code_editor/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/error_boundary @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/context @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/file/file_picker/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/image/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/image/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/mocks @elastic/appex-sharedux diff --git a/package.json b/package.json index a5e88456a7407..dcb3f4bf71e61 100644 --- a/package.json +++ b/package.json @@ -886,7 +886,7 @@ "@kbn/shared-ux-file-image": "link:src/platform/packages/shared/shared-ux/file/image/impl", "@kbn/shared-ux-file-image-mocks": "link:src/platform/packages/shared/shared-ux/file/image/mocks", "@kbn/shared-ux-file-mocks": "link:src/platform/packages/shared/shared-ux/file/mocks", - "@kbn/shared-ux-file-picker": "link:packages/shared-ux/file/file_picker/impl", + "@kbn/shared-ux-file-picker": "link:src/platform/packages/shared/shared-ux/file/file_picker/impl", "@kbn/shared-ux-file-types": "link:packages/shared-ux/file/types", "@kbn/shared-ux-file-upload": "link:packages/shared-ux/file/file_upload/impl", "@kbn/shared-ux-file-util": "link:packages/shared-ux/file/util", diff --git a/packages/shared-ux/file/file_picker/impl/README.mdx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/README.mdx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/README.mdx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/README.mdx diff --git a/packages/shared-ux/file/file_picker/impl/index.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/index.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/index.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/index.tsx diff --git a/packages/shared-ux/file/file_picker/impl/jest.config.js b/src/platform/packages/shared/shared-ux/file/file_picker/impl/jest.config.js similarity index 80% rename from packages/shared-ux/file/file_picker/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/jest.config.js index 84320266ff749..9ede9fa3cd9e6 100644 --- a/packages/shared-ux/file/file_picker/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/file/file_picker/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', - roots: ['/packages/shared-ux/file/file_picker/impl'], + rootDir: '../../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/file/file_picker/impl'], }; diff --git a/packages/shared-ux/file/file_picker/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/file/file_picker/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/file/file_picker/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/kibana.jsonc diff --git a/packages/shared-ux/file/file_picker/impl/package.json b/src/platform/packages/shared/shared-ux/file/file_picker/impl/package.json similarity index 100% rename from packages/shared-ux/file/file_picker/impl/package.json rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/package.json diff --git a/packages/shared-ux/file/file_picker/impl/src/components/clear_filter_button.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/clear_filter_button.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/clear_filter_button.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/clear_filter_button.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/delete_prompt/delete_prompt.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/delete_prompt/delete_prompt.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/delete_prompt/delete_prompt.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/delete_prompt/delete_prompt.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/empty_prompt.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/empty_prompt.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/empty_prompt.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/empty_prompt.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/error_content.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/error_content.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/error_content.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/error_content.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/file_card.scss b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/file_card.scss similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/file_card.scss rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/file_card.scss diff --git a/packages/shared-ux/file/file_picker/impl/src/components/file_card.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/file_card.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/file_card.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/file_card.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/file_grid.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/file_grid.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/file_grid.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/file_grid.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/modal_footer.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/modal_footer.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/modal_footer.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/modal_footer.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/pagination.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/pagination.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/pagination.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/pagination.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/search_field.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/search_field.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/search_field.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/search_field.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/select_button.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/select_button.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/select_button.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/select_button.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/components/title.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/title.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/components/title.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/components/title.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/context.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/context.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/context.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/context.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/file_picker.stories.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.stories.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/file_picker.stories.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.stories.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/file_picker.test.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.test.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/file_picker.test.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.test.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/file_picker.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/file_picker.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker.tsx diff --git a/packages/shared-ux/file/file_picker/impl/src/file_picker_state.test.ts b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker_state.test.ts similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/file_picker_state.test.ts rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker_state.test.ts diff --git a/packages/shared-ux/file/file_picker/impl/src/file_picker_state.ts b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker_state.ts similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/file_picker_state.ts rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/file_picker_state.ts diff --git a/packages/shared-ux/file/file_picker/impl/src/i18n_texts.ts b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/i18n_texts.ts similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/i18n_texts.ts rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/i18n_texts.ts diff --git a/packages/shared-ux/file/file_picker/impl/src/index.tsx b/src/platform/packages/shared/shared-ux/file/file_picker/impl/src/index.tsx similarity index 100% rename from packages/shared-ux/file/file_picker/impl/src/index.tsx rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/src/index.tsx diff --git a/packages/shared-ux/file/file_picker/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/file/file_picker/impl/tsconfig.json similarity index 90% rename from packages/shared-ux/file/file_picker/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/file/file_picker/impl/tsconfig.json index f9e92a6065f39..48f500ac09a6b 100644 --- a/packages/shared-ux/file/file_picker/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/file/file_picker/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 80a2bc742323b..46b5f2688210d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1744,8 +1744,8 @@ "@kbn/shared-ux-file-image-mocks/*": ["src/platform/packages/shared/shared-ux/file/image/mocks/*"], "@kbn/shared-ux-file-mocks": ["src/platform/packages/shared/shared-ux/file/mocks"], "@kbn/shared-ux-file-mocks/*": ["src/platform/packages/shared/shared-ux/file/mocks/*"], - "@kbn/shared-ux-file-picker": ["packages/shared-ux/file/file_picker/impl"], - "@kbn/shared-ux-file-picker/*": ["packages/shared-ux/file/file_picker/impl/*"], + "@kbn/shared-ux-file-picker": ["src/platform/packages/shared/shared-ux/file/file_picker/impl"], + "@kbn/shared-ux-file-picker/*": ["src/platform/packages/shared/shared-ux/file/file_picker/impl/*"], "@kbn/shared-ux-file-types": ["packages/shared-ux/file/types"], "@kbn/shared-ux-file-types/*": ["packages/shared-ux/file/types/*"], "@kbn/shared-ux-file-upload": ["packages/shared-ux/file/file_upload/impl"], diff --git a/yarn.lock b/yarn.lock index 25aba63cedf13..2b953989e7f5a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7304,7 +7304,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-file-picker@link:packages/shared-ux/file/file_picker/impl": +"@kbn/shared-ux-file-picker@link:src/platform/packages/shared/shared-ux/file/file_picker/impl": version "0.0.0" uid "" From f03387a9a3422f346d4afd4f16cdb96dbd956253 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:17:43 +0100 Subject: [PATCH 091/129] Relocating module `@kbn/shared-ux-file-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/shared-ux/file/types/README.md | 0 .../packages/shared}/shared-ux/file/types/base_file_client.ts | 0 .../platform/packages/shared}/shared-ux/file/types/index.ts | 0 .../packages/shared}/shared-ux/file/types/kibana.jsonc | 0 .../packages/shared}/shared-ux/file/types/package.json | 0 .../platform/packages/shared}/shared-ux/file/types/sharing.ts | 0 .../packages/shared}/shared-ux/file/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/file/types/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/types/base_file_client.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/types/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/types/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/types/sharing.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/types/tsconfig.json (74%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9833071543a51..c69325dae7e4d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/file/file_upload/impl @elastic/appex-sharedux -packages/shared-ux/file/types @elastic/appex-sharedux packages/shared-ux/file/util @elastic/appex-sharedux packages/shared-ux/link/redirect_app/impl @elastic/appex-sharedux packages/shared-ux/link/redirect_app/mocks @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/file/file_picker/impl @elastic/appex-shar src/platform/packages/shared/shared-ux/file/image/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/image/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/mocks @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/file/types @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index dcb3f4bf71e61..a8753b40409be 100644 --- a/package.json +++ b/package.json @@ -887,7 +887,7 @@ "@kbn/shared-ux-file-image-mocks": "link:src/platform/packages/shared/shared-ux/file/image/mocks", "@kbn/shared-ux-file-mocks": "link:src/platform/packages/shared/shared-ux/file/mocks", "@kbn/shared-ux-file-picker": "link:src/platform/packages/shared/shared-ux/file/file_picker/impl", - "@kbn/shared-ux-file-types": "link:packages/shared-ux/file/types", + "@kbn/shared-ux-file-types": "link:src/platform/packages/shared/shared-ux/file/types", "@kbn/shared-ux-file-upload": "link:packages/shared-ux/file/file_upload/impl", "@kbn/shared-ux-file-util": "link:packages/shared-ux/file/util", "@kbn/shared-ux-link-redirect-app": "link:packages/shared-ux/link/redirect_app/impl", diff --git a/packages/shared-ux/file/types/README.md b/src/platform/packages/shared/shared-ux/file/types/README.md similarity index 100% rename from packages/shared-ux/file/types/README.md rename to src/platform/packages/shared/shared-ux/file/types/README.md diff --git a/packages/shared-ux/file/types/base_file_client.ts b/src/platform/packages/shared/shared-ux/file/types/base_file_client.ts similarity index 100% rename from packages/shared-ux/file/types/base_file_client.ts rename to src/platform/packages/shared/shared-ux/file/types/base_file_client.ts diff --git a/packages/shared-ux/file/types/index.ts b/src/platform/packages/shared/shared-ux/file/types/index.ts similarity index 100% rename from packages/shared-ux/file/types/index.ts rename to src/platform/packages/shared/shared-ux/file/types/index.ts diff --git a/packages/shared-ux/file/types/kibana.jsonc b/src/platform/packages/shared/shared-ux/file/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/file/types/kibana.jsonc rename to src/platform/packages/shared/shared-ux/file/types/kibana.jsonc diff --git a/packages/shared-ux/file/types/package.json b/src/platform/packages/shared/shared-ux/file/types/package.json similarity index 100% rename from packages/shared-ux/file/types/package.json rename to src/platform/packages/shared/shared-ux/file/types/package.json diff --git a/packages/shared-ux/file/types/sharing.ts b/src/platform/packages/shared/shared-ux/file/types/sharing.ts similarity index 100% rename from packages/shared-ux/file/types/sharing.ts rename to src/platform/packages/shared/shared-ux/file/types/sharing.ts diff --git a/packages/shared-ux/file/types/tsconfig.json b/src/platform/packages/shared/shared-ux/file/types/tsconfig.json similarity index 74% rename from packages/shared-ux/file/types/tsconfig.json rename to src/platform/packages/shared/shared-ux/file/types/tsconfig.json index fef75d832cab6..feeb09c03c64e 100644 --- a/packages/shared-ux/file/types/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/file/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 46b5f2688210d..e847142a87acc 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1746,8 +1746,8 @@ "@kbn/shared-ux-file-mocks/*": ["src/platform/packages/shared/shared-ux/file/mocks/*"], "@kbn/shared-ux-file-picker": ["src/platform/packages/shared/shared-ux/file/file_picker/impl"], "@kbn/shared-ux-file-picker/*": ["src/platform/packages/shared/shared-ux/file/file_picker/impl/*"], - "@kbn/shared-ux-file-types": ["packages/shared-ux/file/types"], - "@kbn/shared-ux-file-types/*": ["packages/shared-ux/file/types/*"], + "@kbn/shared-ux-file-types": ["src/platform/packages/shared/shared-ux/file/types"], + "@kbn/shared-ux-file-types/*": ["src/platform/packages/shared/shared-ux/file/types/*"], "@kbn/shared-ux-file-upload": ["packages/shared-ux/file/file_upload/impl"], "@kbn/shared-ux-file-upload/*": ["packages/shared-ux/file/file_upload/impl/*"], "@kbn/shared-ux-file-util": ["packages/shared-ux/file/util"], diff --git a/yarn.lock b/yarn.lock index 2b953989e7f5a..d61724a8cd22e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7308,7 +7308,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-file-types@link:packages/shared-ux/file/types": +"@kbn/shared-ux-file-types@link:src/platform/packages/shared/shared-ux/file/types": version "0.0.0" uid "" From 0493b5a80c1304cb121f2d80c36b591b886fc2b7 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:19:02 +0100 Subject: [PATCH 092/129] Relocating module `@kbn/shared-ux-file-upload` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/file/file_upload/impl/README.mdx | 0 .../shared}/shared-ux/file/file_upload/impl/index.tsx | 0 .../shared}/shared-ux/file/file_upload/impl/jest.config.js | 4 ++-- .../shared}/shared-ux/file/file_upload/impl/kibana.jsonc | 0 .../shared}/shared-ux/file/file_upload/impl/package.json | 0 .../file/file_upload/impl/src/components/cancel_button.tsx | 0 .../file/file_upload/impl/src/components/clear_button.tsx | 0 .../file/file_upload/impl/src/components/control_button.tsx | 0 .../shared-ux/file/file_upload/impl/src/components/index.ts | 0 .../file/file_upload/impl/src/components/retry_button.tsx | 0 .../file/file_upload/impl/src/components/upload_button.tsx | 0 .../shared}/shared-ux/file/file_upload/impl/src/context.ts | 0 .../file/file_upload/impl/src/file_upload.component.tsx | 0 .../file/file_upload/impl/src/file_upload.stories.tsx | 0 .../shared-ux/file/file_upload/impl/src/file_upload.test.tsx | 0 .../shared-ux/file/file_upload/impl/src/file_upload.tsx | 0 .../shared}/shared-ux/file/file_upload/impl/src/i18n_texts.ts | 0 .../shared}/shared-ux/file/file_upload/impl/src/index.tsx | 0 .../shared-ux/file/file_upload/impl/src/upload_state.test.ts | 0 .../shared-ux/file/file_upload/impl/src/upload_state.ts | 0 .../shared}/shared-ux/file/file_upload/impl/src/util/index.ts | 0 .../file/file_upload/impl/src/util/parse_file_name.test.ts | 0 .../file/file_upload/impl/src/util/parse_file_name.ts | 0 .../file/file_upload/impl/src/util/simple_state_subject.ts | 0 .../shared}/shared-ux/file/file_upload/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 29 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/jest.config.js (80%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/components/cancel_button.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/components/clear_button.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/components/control_button.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/components/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/components/retry_button.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/components/upload_button.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/context.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/file_upload.component.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/file_upload.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/file_upload.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/file_upload.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/i18n_texts.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/upload_state.test.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/upload_state.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/util/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/util/parse_file_name.test.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/util/parse_file_name.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/src/util/simple_state_subject.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/file_upload/impl/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c69325dae7e4d..d59240be8e478 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/file/file_upload/impl @elastic/appex-sharedux packages/shared-ux/file/util @elastic/appex-sharedux packages/shared-ux/link/redirect_app/impl @elastic/appex-sharedux packages/shared-ux/link/redirect_app/mocks @elastic/appex-sharedux @@ -619,6 +618,7 @@ src/platform/packages/shared/shared-ux/code_editor/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/error_boundary @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/context @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/file_picker/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/file/file_upload/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/image/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/image/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/mocks @elastic/appex-sharedux diff --git a/package.json b/package.json index a8753b40409be..4277672e1d7d6 100644 --- a/package.json +++ b/package.json @@ -888,7 +888,7 @@ "@kbn/shared-ux-file-mocks": "link:src/platform/packages/shared/shared-ux/file/mocks", "@kbn/shared-ux-file-picker": "link:src/platform/packages/shared/shared-ux/file/file_picker/impl", "@kbn/shared-ux-file-types": "link:src/platform/packages/shared/shared-ux/file/types", - "@kbn/shared-ux-file-upload": "link:packages/shared-ux/file/file_upload/impl", + "@kbn/shared-ux-file-upload": "link:src/platform/packages/shared/shared-ux/file/file_upload/impl", "@kbn/shared-ux-file-util": "link:packages/shared-ux/file/util", "@kbn/shared-ux-link-redirect-app": "link:packages/shared-ux/link/redirect_app/impl", "@kbn/shared-ux-link-redirect-app-mocks": "link:packages/shared-ux/link/redirect_app/mocks", diff --git a/packages/shared-ux/file/file_upload/impl/README.mdx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/README.mdx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/README.mdx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/README.mdx diff --git a/packages/shared-ux/file/file_upload/impl/index.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/index.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/index.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/index.tsx diff --git a/packages/shared-ux/file/file_upload/impl/jest.config.js b/src/platform/packages/shared/shared-ux/file/file_upload/impl/jest.config.js similarity index 80% rename from packages/shared-ux/file/file_upload/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/jest.config.js index 1a5db6bfdd472..05ba3837f6e41 100644 --- a/packages/shared-ux/file/file_upload/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/file/file_upload/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', - roots: ['/packages/shared-ux/file/file_upload/impl'], + rootDir: '../../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/file/file_upload/impl'], }; diff --git a/packages/shared-ux/file/file_upload/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/file/file_upload/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/file/file_upload/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/kibana.jsonc diff --git a/packages/shared-ux/file/file_upload/impl/package.json b/src/platform/packages/shared/shared-ux/file/file_upload/impl/package.json similarity index 100% rename from packages/shared-ux/file/file_upload/impl/package.json rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/package.json diff --git a/packages/shared-ux/file/file_upload/impl/src/components/cancel_button.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/cancel_button.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/components/cancel_button.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/cancel_button.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/components/clear_button.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/clear_button.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/components/clear_button.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/clear_button.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/components/control_button.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/control_button.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/components/control_button.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/control_button.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/components/index.ts b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/index.ts similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/components/index.ts rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/index.ts diff --git a/packages/shared-ux/file/file_upload/impl/src/components/retry_button.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/retry_button.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/components/retry_button.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/retry_button.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/components/upload_button.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/upload_button.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/components/upload_button.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/components/upload_button.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/context.ts b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/context.ts similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/context.ts rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/context.ts diff --git a/packages/shared-ux/file/file_upload/impl/src/file_upload.component.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/file_upload.component.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/file_upload.component.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/file_upload.component.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/file_upload.stories.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/file_upload.stories.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/file_upload.stories.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/file_upload.stories.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/file_upload.test.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/file_upload.test.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/file_upload.test.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/file_upload.test.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/file_upload.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/file_upload.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/file_upload.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/file_upload.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/i18n_texts.ts b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/i18n_texts.ts similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/i18n_texts.ts rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/i18n_texts.ts diff --git a/packages/shared-ux/file/file_upload/impl/src/index.tsx b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/index.tsx similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/index.tsx rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/index.tsx diff --git a/packages/shared-ux/file/file_upload/impl/src/upload_state.test.ts b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/upload_state.test.ts similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/upload_state.test.ts rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/upload_state.test.ts diff --git a/packages/shared-ux/file/file_upload/impl/src/upload_state.ts b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/upload_state.ts similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/upload_state.ts rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/upload_state.ts diff --git a/packages/shared-ux/file/file_upload/impl/src/util/index.ts b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/util/index.ts similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/util/index.ts rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/util/index.ts diff --git a/packages/shared-ux/file/file_upload/impl/src/util/parse_file_name.test.ts b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/util/parse_file_name.test.ts similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/util/parse_file_name.test.ts rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/util/parse_file_name.test.ts diff --git a/packages/shared-ux/file/file_upload/impl/src/util/parse_file_name.ts b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/util/parse_file_name.ts similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/util/parse_file_name.ts rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/util/parse_file_name.ts diff --git a/packages/shared-ux/file/file_upload/impl/src/util/simple_state_subject.ts b/src/platform/packages/shared/shared-ux/file/file_upload/impl/src/util/simple_state_subject.ts similarity index 100% rename from packages/shared-ux/file/file_upload/impl/src/util/simple_state_subject.ts rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/src/util/simple_state_subject.ts diff --git a/packages/shared-ux/file/file_upload/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/file/file_upload/impl/tsconfig.json similarity index 89% rename from packages/shared-ux/file/file_upload/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/file/file_upload/impl/tsconfig.json index 81d7704f03f7b..e14ee2b1a0654 100644 --- a/packages/shared-ux/file/file_upload/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/file/file_upload/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index e847142a87acc..2dd00b8536f56 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1748,8 +1748,8 @@ "@kbn/shared-ux-file-picker/*": ["src/platform/packages/shared/shared-ux/file/file_picker/impl/*"], "@kbn/shared-ux-file-types": ["src/platform/packages/shared/shared-ux/file/types"], "@kbn/shared-ux-file-types/*": ["src/platform/packages/shared/shared-ux/file/types/*"], - "@kbn/shared-ux-file-upload": ["packages/shared-ux/file/file_upload/impl"], - "@kbn/shared-ux-file-upload/*": ["packages/shared-ux/file/file_upload/impl/*"], + "@kbn/shared-ux-file-upload": ["src/platform/packages/shared/shared-ux/file/file_upload/impl"], + "@kbn/shared-ux-file-upload/*": ["src/platform/packages/shared/shared-ux/file/file_upload/impl/*"], "@kbn/shared-ux-file-util": ["packages/shared-ux/file/util"], "@kbn/shared-ux-file-util/*": ["packages/shared-ux/file/util/*"], "@kbn/shared-ux-link-redirect-app": ["packages/shared-ux/link/redirect_app/impl"], diff --git a/yarn.lock b/yarn.lock index d61724a8cd22e..f6f0d0b7d8585 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7312,7 +7312,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-file-upload@link:packages/shared-ux/file/file_upload/impl": +"@kbn/shared-ux-file-upload@link:src/platform/packages/shared/shared-ux/file/file_upload/impl": version "0.0.0" uid "" From 41b8882956950798cb835ee54b3361df8de8b0eb Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:20:20 +0100 Subject: [PATCH 093/129] Relocating module `@kbn/shared-ux-file-util` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/shared-ux/file/util/README.mdx | 0 .../platform/packages/shared}/shared-ux/file/util/index.ts | 0 .../packages/shared}/shared-ux/file/util/jest.config.js | 4 ++-- .../packages/shared}/shared-ux/file/util/kibana.jsonc | 0 .../packages/shared}/shared-ux/file/util/package.json | 0 .../shared}/shared-ux/file/util/src/image_metadata.test.ts | 0 .../shared}/shared-ux/file/util/src/image_metadata.ts | 0 .../packages/shared}/shared-ux/file/util/src/index.ts | 0 .../shared}/shared-ux/file/util/src/use_behavior_subject.ts | 0 .../packages/shared}/shared-ux/file/util/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/file/util/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/util/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/util/jest.config.js (83%) rename {packages => src/platform/packages/shared}/shared-ux/file/util/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/util/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/util/src/image_metadata.test.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/util/src/image_metadata.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/util/src/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/util/src/use_behavior_subject.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/file/util/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d59240be8e478..c5e4f6a91446f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/file/util @elastic/appex-sharedux packages/shared-ux/link/redirect_app/impl @elastic/appex-sharedux packages/shared-ux/link/redirect_app/mocks @elastic/appex-sharedux packages/shared-ux/link/redirect_app/types @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/file/image/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/image/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/types @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/file/util @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 4277672e1d7d6..89e855c846c28 100644 --- a/package.json +++ b/package.json @@ -889,7 +889,7 @@ "@kbn/shared-ux-file-picker": "link:src/platform/packages/shared/shared-ux/file/file_picker/impl", "@kbn/shared-ux-file-types": "link:src/platform/packages/shared/shared-ux/file/types", "@kbn/shared-ux-file-upload": "link:src/platform/packages/shared/shared-ux/file/file_upload/impl", - "@kbn/shared-ux-file-util": "link:packages/shared-ux/file/util", + "@kbn/shared-ux-file-util": "link:src/platform/packages/shared/shared-ux/file/util", "@kbn/shared-ux-link-redirect-app": "link:packages/shared-ux/link/redirect_app/impl", "@kbn/shared-ux-link-redirect-app-mocks": "link:packages/shared-ux/link/redirect_app/mocks", "@kbn/shared-ux-link-redirect-app-types": "link:packages/shared-ux/link/redirect_app/types", diff --git a/packages/shared-ux/file/util/README.mdx b/src/platform/packages/shared/shared-ux/file/util/README.mdx similarity index 100% rename from packages/shared-ux/file/util/README.mdx rename to src/platform/packages/shared/shared-ux/file/util/README.mdx diff --git a/packages/shared-ux/file/util/index.ts b/src/platform/packages/shared/shared-ux/file/util/index.ts similarity index 100% rename from packages/shared-ux/file/util/index.ts rename to src/platform/packages/shared/shared-ux/file/util/index.ts diff --git a/packages/shared-ux/file/util/jest.config.js b/src/platform/packages/shared/shared-ux/file/util/jest.config.js similarity index 83% rename from packages/shared-ux/file/util/jest.config.js rename to src/platform/packages/shared/shared-ux/file/util/jest.config.js index c41058a208c07..03f2adc5da1d8 100644 --- a/packages/shared-ux/file/util/jest.config.js +++ b/src/platform/packages/shared/shared-ux/file/util/jest.config.js @@ -9,7 +9,7 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/shared-ux/file/util'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/file/util'], verbose: true, }; diff --git a/packages/shared-ux/file/util/kibana.jsonc b/src/platform/packages/shared/shared-ux/file/util/kibana.jsonc similarity index 100% rename from packages/shared-ux/file/util/kibana.jsonc rename to src/platform/packages/shared/shared-ux/file/util/kibana.jsonc diff --git a/packages/shared-ux/file/util/package.json b/src/platform/packages/shared/shared-ux/file/util/package.json similarity index 100% rename from packages/shared-ux/file/util/package.json rename to src/platform/packages/shared/shared-ux/file/util/package.json diff --git a/packages/shared-ux/file/util/src/image_metadata.test.ts b/src/platform/packages/shared/shared-ux/file/util/src/image_metadata.test.ts similarity index 100% rename from packages/shared-ux/file/util/src/image_metadata.test.ts rename to src/platform/packages/shared/shared-ux/file/util/src/image_metadata.test.ts diff --git a/packages/shared-ux/file/util/src/image_metadata.ts b/src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts similarity index 100% rename from packages/shared-ux/file/util/src/image_metadata.ts rename to src/platform/packages/shared/shared-ux/file/util/src/image_metadata.ts diff --git a/packages/shared-ux/file/util/src/index.ts b/src/platform/packages/shared/shared-ux/file/util/src/index.ts similarity index 100% rename from packages/shared-ux/file/util/src/index.ts rename to src/platform/packages/shared/shared-ux/file/util/src/index.ts diff --git a/packages/shared-ux/file/util/src/use_behavior_subject.ts b/src/platform/packages/shared/shared-ux/file/util/src/use_behavior_subject.ts similarity index 100% rename from packages/shared-ux/file/util/src/use_behavior_subject.ts rename to src/platform/packages/shared/shared-ux/file/util/src/use_behavior_subject.ts diff --git a/packages/shared-ux/file/util/tsconfig.json b/src/platform/packages/shared/shared-ux/file/util/tsconfig.json similarity index 82% rename from packages/shared-ux/file/util/tsconfig.json rename to src/platform/packages/shared/shared-ux/file/util/tsconfig.json index dd3e7075a6a89..dfc5f4bc76e03 100644 --- a/packages/shared-ux/file/util/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/file/util/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 2dd00b8536f56..40a47a4ca1a0d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1750,8 +1750,8 @@ "@kbn/shared-ux-file-types/*": ["src/platform/packages/shared/shared-ux/file/types/*"], "@kbn/shared-ux-file-upload": ["src/platform/packages/shared/shared-ux/file/file_upload/impl"], "@kbn/shared-ux-file-upload/*": ["src/platform/packages/shared/shared-ux/file/file_upload/impl/*"], - "@kbn/shared-ux-file-util": ["packages/shared-ux/file/util"], - "@kbn/shared-ux-file-util/*": ["packages/shared-ux/file/util/*"], + "@kbn/shared-ux-file-util": ["src/platform/packages/shared/shared-ux/file/util"], + "@kbn/shared-ux-file-util/*": ["src/platform/packages/shared/shared-ux/file/util/*"], "@kbn/shared-ux-link-redirect-app": ["packages/shared-ux/link/redirect_app/impl"], "@kbn/shared-ux-link-redirect-app/*": ["packages/shared-ux/link/redirect_app/impl/*"], "@kbn/shared-ux-link-redirect-app-mocks": ["packages/shared-ux/link/redirect_app/mocks"], diff --git a/yarn.lock b/yarn.lock index f6f0d0b7d8585..ba2948f32287f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7316,7 +7316,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-file-util@link:packages/shared-ux/file/util": +"@kbn/shared-ux-file-util@link:src/platform/packages/shared/shared-ux/file/util": version "0.0.0" uid "" From 77683224aea8c90099658a87cb20e954d2a70d3a Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:21:38 +0100 Subject: [PATCH 094/129] Relocating module `@kbn/shared-ux-link-redirect-app` --- .github/CODEOWNERS | 2 +- docs/developer/best-practices/navigation.asciidoc | 2 +- package.json | 2 +- .../shared}/shared-ux/link/redirect_app/impl/README.mdx | 0 .../shared}/shared-ux/link/redirect_app/impl/index.tsx | 0 .../shared}/shared-ux/link/redirect_app/impl/jest.config.js | 2 +- .../shared}/shared-ux/link/redirect_app/impl/kibana.jsonc | 0 .../shared}/shared-ux/link/redirect_app/impl/package.json | 0 .../link/redirect_app/impl/src/click_handler.test.ts | 0 .../shared-ux/link/redirect_app/impl/src/click_handler.ts | 0 .../redirect_app/impl/src/redirect_app_links.component.tsx | 0 .../redirect_app/impl/src/redirect_app_links.container.tsx | 0 .../link/redirect_app/impl/src/redirect_app_links.stories.tsx | 0 .../link/redirect_app/impl/src/redirect_app_links.styles.ts | 0 .../link/redirect_app/impl/src/redirect_app_links.test.tsx | 0 .../link/redirect_app/impl/src/redirect_app_links.tsx | 0 .../shared}/shared-ux/link/redirect_app/impl/src/services.tsx | 0 .../shared}/shared-ux/link/redirect_app/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 20 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/index.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/jest.config.js (93%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/src/click_handler.test.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/src/click_handler.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/src/redirect_app_links.component.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/src/redirect_app_links.container.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/src/redirect_app_links.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/src/redirect_app_links.styles.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/src/redirect_app_links.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/impl/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c5e4f6a91446f..6ac80f92e7231 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/link/redirect_app/impl @elastic/appex-sharedux packages/shared-ux/link/redirect_app/mocks @elastic/appex-sharedux packages/shared-ux/link/redirect_app/types @elastic/appex-sharedux packages/shared-ux/markdown/impl @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/file/image/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/util @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/link/redirect_app/impl @elastic/appex-sharedux 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 diff --git a/docs/developer/best-practices/navigation.asciidoc b/docs/developer/best-practices/navigation.asciidoc index df5e9e73729bd..1de36c3893976 100644 --- a/docs/developer/best-practices/navigation.asciidoc +++ b/docs/developer/best-practices/navigation.asciidoc @@ -120,7 +120,7 @@ const MySPALink = () => ---- As it would be too much boilerplate to do this for each {kib} link in your app, there is a handy wrapper that helps with it: -{kib-repo}tree/{branch}/packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx[RedirectAppLinks]. +{kib-repo}tree/{branch}/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx[RedirectAppLinks]. [source,typescript jsx] ---- diff --git a/package.json b/package.json index 89e855c846c28..4e1099530f92f 100644 --- a/package.json +++ b/package.json @@ -890,7 +890,7 @@ "@kbn/shared-ux-file-types": "link:src/platform/packages/shared/shared-ux/file/types", "@kbn/shared-ux-file-upload": "link:src/platform/packages/shared/shared-ux/file/file_upload/impl", "@kbn/shared-ux-file-util": "link:src/platform/packages/shared/shared-ux/file/util", - "@kbn/shared-ux-link-redirect-app": "link:packages/shared-ux/link/redirect_app/impl", + "@kbn/shared-ux-link-redirect-app": "link:src/platform/packages/shared/shared-ux/link/redirect_app/impl", "@kbn/shared-ux-link-redirect-app-mocks": "link:packages/shared-ux/link/redirect_app/mocks", "@kbn/shared-ux-link-redirect-app-types": "link:packages/shared-ux/link/redirect_app/types", "@kbn/shared-ux-markdown": "link:packages/shared-ux/markdown/impl", diff --git a/packages/shared-ux/link/redirect_app/impl/README.mdx b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/README.mdx similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/README.mdx rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/README.mdx diff --git a/packages/shared-ux/link/redirect_app/impl/index.tsx b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/index.tsx similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/index.tsx rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/index.tsx diff --git a/packages/shared-ux/link/redirect_app/impl/jest.config.js b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/jest.config.js similarity index 93% rename from packages/shared-ux/link/redirect_app/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/jest.config.js index a74c2e7a9845e..c2c59c5be2ec7 100644 --- a/packages/shared-ux/link/redirect_app/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/jest.config.js @@ -9,7 +9,7 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', + rootDir: '../../../../../../../..', roots: ['/packages/shared-ux/link/redirect_app'], verbose: true, }; diff --git a/packages/shared-ux/link/redirect_app/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/kibana.jsonc diff --git a/packages/shared-ux/link/redirect_app/impl/package.json b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/package.json similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/package.json rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/package.json diff --git a/packages/shared-ux/link/redirect_app/impl/src/click_handler.test.ts b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/click_handler.test.ts similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/src/click_handler.test.ts rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/click_handler.test.ts diff --git a/packages/shared-ux/link/redirect_app/impl/src/click_handler.ts b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/click_handler.ts similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/src/click_handler.ts rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/click_handler.ts diff --git a/packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.component.tsx b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.component.tsx similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.component.tsx rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.component.tsx diff --git a/packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.container.tsx b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.container.tsx similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.container.tsx rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.container.tsx diff --git a/packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.stories.tsx b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.stories.tsx similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.stories.tsx rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.stories.tsx diff --git a/packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.styles.ts b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.styles.ts similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.styles.ts rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.styles.ts diff --git a/packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.test.tsx b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.test.tsx similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.test.tsx rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.test.tsx diff --git a/packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx diff --git a/packages/shared-ux/link/redirect_app/impl/src/services.tsx b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/services.tsx similarity index 100% rename from packages/shared-ux/link/redirect_app/impl/src/services.tsx rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/services.tsx diff --git a/packages/shared-ux/link/redirect_app/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/tsconfig.json similarity index 88% rename from packages/shared-ux/link/redirect_app/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/link/redirect_app/impl/tsconfig.json index 0b564979c2b9e..c3d9da4d0db41 100644 --- a/packages/shared-ux/link/redirect_app/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/link/redirect_app/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 40a47a4ca1a0d..c86bc732d8cee 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1752,8 +1752,8 @@ "@kbn/shared-ux-file-upload/*": ["src/platform/packages/shared/shared-ux/file/file_upload/impl/*"], "@kbn/shared-ux-file-util": ["src/platform/packages/shared/shared-ux/file/util"], "@kbn/shared-ux-file-util/*": ["src/platform/packages/shared/shared-ux/file/util/*"], - "@kbn/shared-ux-link-redirect-app": ["packages/shared-ux/link/redirect_app/impl"], - "@kbn/shared-ux-link-redirect-app/*": ["packages/shared-ux/link/redirect_app/impl/*"], + "@kbn/shared-ux-link-redirect-app": ["src/platform/packages/shared/shared-ux/link/redirect_app/impl"], + "@kbn/shared-ux-link-redirect-app/*": ["src/platform/packages/shared/shared-ux/link/redirect_app/impl/*"], "@kbn/shared-ux-link-redirect-app-mocks": ["packages/shared-ux/link/redirect_app/mocks"], "@kbn/shared-ux-link-redirect-app-mocks/*": ["packages/shared-ux/link/redirect_app/mocks/*"], "@kbn/shared-ux-link-redirect-app-types": ["packages/shared-ux/link/redirect_app/types"], diff --git a/yarn.lock b/yarn.lock index ba2948f32287f..9ac5da7f1c6dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7328,7 +7328,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-link-redirect-app@link:packages/shared-ux/link/redirect_app/impl": +"@kbn/shared-ux-link-redirect-app@link:src/platform/packages/shared/shared-ux/link/redirect_app/impl": version "0.0.0" uid "" From 0a61ec1e58ffb6546085f909dbb5788ded1f14d2 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:23:03 +0100 Subject: [PATCH 095/129] Relocating module `@kbn/shared-ux-link-redirect-app-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/link/redirect_app/mocks/README.md | 0 .../shared}/shared-ux/link/redirect_app/mocks/index.ts | 0 .../shared}/shared-ux/link/redirect_app/mocks/kibana.jsonc | 0 .../shared}/shared-ux/link/redirect_app/mocks/package.json | 0 .../shared}/shared-ux/link/redirect_app/mocks/src/jest.ts | 0 .../shared-ux/link/redirect_app/mocks/src/storybook.ts | 0 .../shared}/shared-ux/link/redirect_app/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/mocks/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/mocks/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/mocks/src/jest.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/mocks/src/storybook.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/mocks/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6ac80f92e7231..68455df2ac462 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/link/redirect_app/mocks @elastic/appex-sharedux packages/shared-ux/link/redirect_app/types @elastic/appex-sharedux packages/shared-ux/markdown/impl @elastic/appex-sharedux packages/shared-ux/markdown/mocks @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/file/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/util @elastic/appex-sharedux src/platform/packages/shared/shared-ux/link/redirect_app/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/link/redirect_app/mocks @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 4e1099530f92f..9af1b68d9fe86 100644 --- a/package.json +++ b/package.json @@ -891,7 +891,7 @@ "@kbn/shared-ux-file-upload": "link:src/platform/packages/shared/shared-ux/file/file_upload/impl", "@kbn/shared-ux-file-util": "link:src/platform/packages/shared/shared-ux/file/util", "@kbn/shared-ux-link-redirect-app": "link:src/platform/packages/shared/shared-ux/link/redirect_app/impl", - "@kbn/shared-ux-link-redirect-app-mocks": "link:packages/shared-ux/link/redirect_app/mocks", + "@kbn/shared-ux-link-redirect-app-mocks": "link:src/platform/packages/shared/shared-ux/link/redirect_app/mocks", "@kbn/shared-ux-link-redirect-app-types": "link:packages/shared-ux/link/redirect_app/types", "@kbn/shared-ux-markdown": "link:packages/shared-ux/markdown/impl", "@kbn/shared-ux-markdown-mocks": "link:packages/shared-ux/markdown/mocks", diff --git a/packages/shared-ux/link/redirect_app/mocks/README.md b/src/platform/packages/shared/shared-ux/link/redirect_app/mocks/README.md similarity index 100% rename from packages/shared-ux/link/redirect_app/mocks/README.md rename to src/platform/packages/shared/shared-ux/link/redirect_app/mocks/README.md diff --git a/packages/shared-ux/link/redirect_app/mocks/index.ts b/src/platform/packages/shared/shared-ux/link/redirect_app/mocks/index.ts similarity index 100% rename from packages/shared-ux/link/redirect_app/mocks/index.ts rename to src/platform/packages/shared/shared-ux/link/redirect_app/mocks/index.ts diff --git a/packages/shared-ux/link/redirect_app/mocks/kibana.jsonc b/src/platform/packages/shared/shared-ux/link/redirect_app/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/link/redirect_app/mocks/kibana.jsonc rename to src/platform/packages/shared/shared-ux/link/redirect_app/mocks/kibana.jsonc diff --git a/packages/shared-ux/link/redirect_app/mocks/package.json b/src/platform/packages/shared/shared-ux/link/redirect_app/mocks/package.json similarity index 100% rename from packages/shared-ux/link/redirect_app/mocks/package.json rename to src/platform/packages/shared/shared-ux/link/redirect_app/mocks/package.json diff --git a/packages/shared-ux/link/redirect_app/mocks/src/jest.ts b/src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/jest.ts similarity index 100% rename from packages/shared-ux/link/redirect_app/mocks/src/jest.ts rename to src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/jest.ts diff --git a/packages/shared-ux/link/redirect_app/mocks/src/storybook.ts b/src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/storybook.ts similarity index 100% rename from packages/shared-ux/link/redirect_app/mocks/src/storybook.ts rename to src/platform/packages/shared/shared-ux/link/redirect_app/mocks/src/storybook.ts diff --git a/packages/shared-ux/link/redirect_app/mocks/tsconfig.json b/src/platform/packages/shared/shared-ux/link/redirect_app/mocks/tsconfig.json similarity index 83% rename from packages/shared-ux/link/redirect_app/mocks/tsconfig.json rename to src/platform/packages/shared/shared-ux/link/redirect_app/mocks/tsconfig.json index e1d633ba8896a..4b06abddaf81a 100644 --- a/packages/shared-ux/link/redirect_app/mocks/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/link/redirect_app/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c86bc732d8cee..25ae6ccaa0783 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1754,8 +1754,8 @@ "@kbn/shared-ux-file-util/*": ["src/platform/packages/shared/shared-ux/file/util/*"], "@kbn/shared-ux-link-redirect-app": ["src/platform/packages/shared/shared-ux/link/redirect_app/impl"], "@kbn/shared-ux-link-redirect-app/*": ["src/platform/packages/shared/shared-ux/link/redirect_app/impl/*"], - "@kbn/shared-ux-link-redirect-app-mocks": ["packages/shared-ux/link/redirect_app/mocks"], - "@kbn/shared-ux-link-redirect-app-mocks/*": ["packages/shared-ux/link/redirect_app/mocks/*"], + "@kbn/shared-ux-link-redirect-app-mocks": ["src/platform/packages/shared/shared-ux/link/redirect_app/mocks"], + "@kbn/shared-ux-link-redirect-app-mocks/*": ["src/platform/packages/shared/shared-ux/link/redirect_app/mocks/*"], "@kbn/shared-ux-link-redirect-app-types": ["packages/shared-ux/link/redirect_app/types"], "@kbn/shared-ux-link-redirect-app-types/*": ["packages/shared-ux/link/redirect_app/types/*"], "@kbn/shared-ux-markdown": ["packages/shared-ux/markdown/impl"], diff --git a/yarn.lock b/yarn.lock index 9ac5da7f1c6dc..ab0685ecc27c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7320,7 +7320,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-link-redirect-app-mocks@link:packages/shared-ux/link/redirect_app/mocks": +"@kbn/shared-ux-link-redirect-app-mocks@link:src/platform/packages/shared/shared-ux/link/redirect_app/mocks": version "0.0.0" uid "" From 2edd45d7b9625d7591743dc72df90e33f587c9b6 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:24:28 +0100 Subject: [PATCH 096/129] Relocating module `@kbn/shared-ux-link-redirect-app-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/link/redirect_app/types/README.md | 0 .../shared}/shared-ux/link/redirect_app/types/index.d.ts | 0 .../shared}/shared-ux/link/redirect_app/types/kibana.jsonc | 0 .../shared}/shared-ux/link/redirect_app/types/package.json | 0 .../shared}/shared-ux/link/redirect_app/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/types/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/types/index.d.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/types/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/link/redirect_app/types/tsconfig.json (76%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 68455df2ac462..a71eccd6cf5a0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/link/redirect_app/types @elastic/appex-sharedux packages/shared-ux/markdown/impl @elastic/appex-sharedux packages/shared-ux/markdown/mocks @elastic/appex-sharedux packages/shared-ux/markdown/types @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/file/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/file/util @elastic/appex-sharedux src/platform/packages/shared/shared-ux/link/redirect_app/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/link/redirect_app/mocks @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/link/redirect_app/types @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 9af1b68d9fe86..e44350724ce83 100644 --- a/package.json +++ b/package.json @@ -892,7 +892,7 @@ "@kbn/shared-ux-file-util": "link:src/platform/packages/shared/shared-ux/file/util", "@kbn/shared-ux-link-redirect-app": "link:src/platform/packages/shared/shared-ux/link/redirect_app/impl", "@kbn/shared-ux-link-redirect-app-mocks": "link:src/platform/packages/shared/shared-ux/link/redirect_app/mocks", - "@kbn/shared-ux-link-redirect-app-types": "link:packages/shared-ux/link/redirect_app/types", + "@kbn/shared-ux-link-redirect-app-types": "link:src/platform/packages/shared/shared-ux/link/redirect_app/types", "@kbn/shared-ux-markdown": "link:packages/shared-ux/markdown/impl", "@kbn/shared-ux-markdown-mocks": "link:packages/shared-ux/markdown/mocks", "@kbn/shared-ux-markdown-types": "link:packages/shared-ux/markdown/types", diff --git a/packages/shared-ux/link/redirect_app/types/README.md b/src/platform/packages/shared/shared-ux/link/redirect_app/types/README.md similarity index 100% rename from packages/shared-ux/link/redirect_app/types/README.md rename to src/platform/packages/shared/shared-ux/link/redirect_app/types/README.md diff --git a/packages/shared-ux/link/redirect_app/types/index.d.ts b/src/platform/packages/shared/shared-ux/link/redirect_app/types/index.d.ts similarity index 100% rename from packages/shared-ux/link/redirect_app/types/index.d.ts rename to src/platform/packages/shared/shared-ux/link/redirect_app/types/index.d.ts diff --git a/packages/shared-ux/link/redirect_app/types/kibana.jsonc b/src/platform/packages/shared/shared-ux/link/redirect_app/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/link/redirect_app/types/kibana.jsonc rename to src/platform/packages/shared/shared-ux/link/redirect_app/types/kibana.jsonc diff --git a/packages/shared-ux/link/redirect_app/types/package.json b/src/platform/packages/shared/shared-ux/link/redirect_app/types/package.json similarity index 100% rename from packages/shared-ux/link/redirect_app/types/package.json rename to src/platform/packages/shared/shared-ux/link/redirect_app/types/package.json diff --git a/packages/shared-ux/link/redirect_app/types/tsconfig.json b/src/platform/packages/shared/shared-ux/link/redirect_app/types/tsconfig.json similarity index 76% rename from packages/shared-ux/link/redirect_app/types/tsconfig.json rename to src/platform/packages/shared/shared-ux/link/redirect_app/types/tsconfig.json index fc981ba49dd7e..670963293a3ee 100644 --- a/packages/shared-ux/link/redirect_app/types/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/link/redirect_app/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 25ae6ccaa0783..56fddd027fef8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1756,8 +1756,8 @@ "@kbn/shared-ux-link-redirect-app/*": ["src/platform/packages/shared/shared-ux/link/redirect_app/impl/*"], "@kbn/shared-ux-link-redirect-app-mocks": ["src/platform/packages/shared/shared-ux/link/redirect_app/mocks"], "@kbn/shared-ux-link-redirect-app-mocks/*": ["src/platform/packages/shared/shared-ux/link/redirect_app/mocks/*"], - "@kbn/shared-ux-link-redirect-app-types": ["packages/shared-ux/link/redirect_app/types"], - "@kbn/shared-ux-link-redirect-app-types/*": ["packages/shared-ux/link/redirect_app/types/*"], + "@kbn/shared-ux-link-redirect-app-types": ["src/platform/packages/shared/shared-ux/link/redirect_app/types"], + "@kbn/shared-ux-link-redirect-app-types/*": ["src/platform/packages/shared/shared-ux/link/redirect_app/types/*"], "@kbn/shared-ux-markdown": ["packages/shared-ux/markdown/impl"], "@kbn/shared-ux-markdown/*": ["packages/shared-ux/markdown/impl/*"], "@kbn/shared-ux-markdown-mocks": ["packages/shared-ux/markdown/mocks"], diff --git a/yarn.lock b/yarn.lock index ab0685ecc27c7..18f3aa895e8c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7324,7 +7324,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-link-redirect-app-types@link:packages/shared-ux/link/redirect_app/types": +"@kbn/shared-ux-link-redirect-app-types@link:src/platform/packages/shared/shared-ux/link/redirect_app/types": version "0.0.0" uid "" From 5ea909b7da2a409821de7df4a8f92bc546a4cda0 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:25:56 +0100 Subject: [PATCH 097/129] Relocating module `@kbn/shared-ux-markdown` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/markdown/impl/README.mdx | 0 .../packages/shared}/shared-ux/markdown/impl/index.ts | 0 .../packages/shared}/shared-ux/markdown/impl/jest.config.js | 6 +++--- .../packages/shared}/shared-ux/markdown/impl/kibana.jsonc | 0 .../shared}/shared-ux/markdown/impl/markdown.test.tsx | 0 .../packages/shared}/shared-ux/markdown/impl/markdown.tsx | 0 .../shared-ux/markdown/impl/markdown_editor.stories.tsx | 0 .../shared-ux/markdown/impl/markdown_format.stories.tsx | 0 .../packages/shared}/shared-ux/markdown/impl/package.json | 0 .../packages/shared}/shared-ux/markdown/impl/setup_tests.ts | 0 .../packages/shared}/shared-ux/markdown/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/jest.config.js (70%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/markdown.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/markdown.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/markdown_editor.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/markdown_format.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/setup_tests.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/impl/tsconfig.json (84%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a71eccd6cf5a0..a8b646b50ccd1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/markdown/impl @elastic/appex-sharedux packages/shared-ux/markdown/mocks @elastic/appex-sharedux packages/shared-ux/markdown/types @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/file/util @elastic/appex-sharedux src/platform/packages/shared/shared-ux/link/redirect_app/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/link/redirect_app/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/link/redirect_app/types @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/markdown/impl @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index e44350724ce83..5ff3393c0764e 100644 --- a/package.json +++ b/package.json @@ -893,7 +893,7 @@ "@kbn/shared-ux-link-redirect-app": "link:src/platform/packages/shared/shared-ux/link/redirect_app/impl", "@kbn/shared-ux-link-redirect-app-mocks": "link:src/platform/packages/shared/shared-ux/link/redirect_app/mocks", "@kbn/shared-ux-link-redirect-app-types": "link:src/platform/packages/shared/shared-ux/link/redirect_app/types", - "@kbn/shared-ux-markdown": "link:packages/shared-ux/markdown/impl", + "@kbn/shared-ux-markdown": "link:src/platform/packages/shared/shared-ux/markdown/impl", "@kbn/shared-ux-markdown-mocks": "link:packages/shared-ux/markdown/mocks", "@kbn/shared-ux-markdown-types": "link:packages/shared-ux/markdown/types", "@kbn/shared-ux-page-analytics-no-data": "link:packages/shared-ux/page/analytics_no_data/impl", diff --git a/packages/shared-ux/markdown/impl/README.mdx b/src/platform/packages/shared/shared-ux/markdown/impl/README.mdx similarity index 100% rename from packages/shared-ux/markdown/impl/README.mdx rename to src/platform/packages/shared/shared-ux/markdown/impl/README.mdx diff --git a/packages/shared-ux/markdown/impl/index.ts b/src/platform/packages/shared/shared-ux/markdown/impl/index.ts similarity index 100% rename from packages/shared-ux/markdown/impl/index.ts rename to src/platform/packages/shared/shared-ux/markdown/impl/index.ts diff --git a/packages/shared-ux/markdown/impl/jest.config.js b/src/platform/packages/shared/shared-ux/markdown/impl/jest.config.js similarity index 70% rename from packages/shared-ux/markdown/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/markdown/impl/jest.config.js index cb422578fef01..11743b2a56552 100644 --- a/packages/shared-ux/markdown/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/markdown/impl/jest.config.js @@ -9,7 +9,7 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/shared-ux/markdown/impl'], - setupFilesAfterEnv: ['/packages/shared-ux/markdown/impl/setup_tests.ts'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/markdown/impl'], + setupFilesAfterEnv: ['/src/platform/packages/shared/shared-ux/markdown/impl/setup_tests.ts'], }; diff --git a/packages/shared-ux/markdown/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/markdown/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/markdown/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/markdown/impl/kibana.jsonc diff --git a/packages/shared-ux/markdown/impl/markdown.test.tsx b/src/platform/packages/shared/shared-ux/markdown/impl/markdown.test.tsx similarity index 100% rename from packages/shared-ux/markdown/impl/markdown.test.tsx rename to src/platform/packages/shared/shared-ux/markdown/impl/markdown.test.tsx diff --git a/packages/shared-ux/markdown/impl/markdown.tsx b/src/platform/packages/shared/shared-ux/markdown/impl/markdown.tsx similarity index 100% rename from packages/shared-ux/markdown/impl/markdown.tsx rename to src/platform/packages/shared/shared-ux/markdown/impl/markdown.tsx diff --git a/packages/shared-ux/markdown/impl/markdown_editor.stories.tsx b/src/platform/packages/shared/shared-ux/markdown/impl/markdown_editor.stories.tsx similarity index 100% rename from packages/shared-ux/markdown/impl/markdown_editor.stories.tsx rename to src/platform/packages/shared/shared-ux/markdown/impl/markdown_editor.stories.tsx diff --git a/packages/shared-ux/markdown/impl/markdown_format.stories.tsx b/src/platform/packages/shared/shared-ux/markdown/impl/markdown_format.stories.tsx similarity index 100% rename from packages/shared-ux/markdown/impl/markdown_format.stories.tsx rename to src/platform/packages/shared/shared-ux/markdown/impl/markdown_format.stories.tsx diff --git a/packages/shared-ux/markdown/impl/package.json b/src/platform/packages/shared/shared-ux/markdown/impl/package.json similarity index 100% rename from packages/shared-ux/markdown/impl/package.json rename to src/platform/packages/shared/shared-ux/markdown/impl/package.json diff --git a/packages/shared-ux/markdown/impl/setup_tests.ts b/src/platform/packages/shared/shared-ux/markdown/impl/setup_tests.ts similarity index 100% rename from packages/shared-ux/markdown/impl/setup_tests.ts rename to src/platform/packages/shared/shared-ux/markdown/impl/setup_tests.ts diff --git a/packages/shared-ux/markdown/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/markdown/impl/tsconfig.json similarity index 84% rename from packages/shared-ux/markdown/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/markdown/impl/tsconfig.json index a17b7a69317e1..0fc80db983460 100644 --- a/packages/shared-ux/markdown/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/markdown/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 56fddd027fef8..783143ab41614 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1758,8 +1758,8 @@ "@kbn/shared-ux-link-redirect-app-mocks/*": ["src/platform/packages/shared/shared-ux/link/redirect_app/mocks/*"], "@kbn/shared-ux-link-redirect-app-types": ["src/platform/packages/shared/shared-ux/link/redirect_app/types"], "@kbn/shared-ux-link-redirect-app-types/*": ["src/platform/packages/shared/shared-ux/link/redirect_app/types/*"], - "@kbn/shared-ux-markdown": ["packages/shared-ux/markdown/impl"], - "@kbn/shared-ux-markdown/*": ["packages/shared-ux/markdown/impl/*"], + "@kbn/shared-ux-markdown": ["src/platform/packages/shared/shared-ux/markdown/impl"], + "@kbn/shared-ux-markdown/*": ["src/platform/packages/shared/shared-ux/markdown/impl/*"], "@kbn/shared-ux-markdown-mocks": ["packages/shared-ux/markdown/mocks"], "@kbn/shared-ux-markdown-mocks/*": ["packages/shared-ux/markdown/mocks/*"], "@kbn/shared-ux-markdown-types": ["packages/shared-ux/markdown/types"], diff --git a/yarn.lock b/yarn.lock index 18f3aa895e8c4..e4ed488740d52 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7340,7 +7340,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-markdown@link:packages/shared-ux/markdown/impl": +"@kbn/shared-ux-markdown@link:src/platform/packages/shared/shared-ux/markdown/impl": version "0.0.0" uid "" From bbd44d9d332470d0ec3784a111acbe5094f9cd70 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:27:24 +0100 Subject: [PATCH 098/129] Relocating module `@kbn/shared-ux-markdown-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/markdown/mocks/README.md | 0 .../packages/shared}/shared-ux/markdown/mocks/index.ts | 0 .../packages/shared}/shared-ux/markdown/mocks/kibana.jsonc | 0 .../packages/shared}/shared-ux/markdown/mocks/package.json | 0 .../packages/shared}/shared-ux/markdown/mocks/storybook.ts | 0 .../packages/shared}/shared-ux/markdown/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/markdown/mocks/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/mocks/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/mocks/storybook.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/mocks/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a8b646b50ccd1..4fd0d9db9337a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/markdown/mocks @elastic/appex-sharedux packages/shared-ux/markdown/types @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux packages/shared-ux/page/analytics_no_data/impl @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/link/redirect_app/impl @elastic/appex-sha src/platform/packages/shared/shared-ux/link/redirect_app/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/link/redirect_app/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/markdown/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/markdown/mocks @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 5ff3393c0764e..25b3d80778178 100644 --- a/package.json +++ b/package.json @@ -894,7 +894,7 @@ "@kbn/shared-ux-link-redirect-app-mocks": "link:src/platform/packages/shared/shared-ux/link/redirect_app/mocks", "@kbn/shared-ux-link-redirect-app-types": "link:src/platform/packages/shared/shared-ux/link/redirect_app/types", "@kbn/shared-ux-markdown": "link:src/platform/packages/shared/shared-ux/markdown/impl", - "@kbn/shared-ux-markdown-mocks": "link:packages/shared-ux/markdown/mocks", + "@kbn/shared-ux-markdown-mocks": "link:src/platform/packages/shared/shared-ux/markdown/mocks", "@kbn/shared-ux-markdown-types": "link:packages/shared-ux/markdown/types", "@kbn/shared-ux-page-analytics-no-data": "link:packages/shared-ux/page/analytics_no_data/impl", "@kbn/shared-ux-page-analytics-no-data-mocks": "link:packages/shared-ux/page/analytics_no_data/mocks", diff --git a/packages/shared-ux/markdown/mocks/README.md b/src/platform/packages/shared/shared-ux/markdown/mocks/README.md similarity index 100% rename from packages/shared-ux/markdown/mocks/README.md rename to src/platform/packages/shared/shared-ux/markdown/mocks/README.md diff --git a/packages/shared-ux/markdown/mocks/index.ts b/src/platform/packages/shared/shared-ux/markdown/mocks/index.ts similarity index 100% rename from packages/shared-ux/markdown/mocks/index.ts rename to src/platform/packages/shared/shared-ux/markdown/mocks/index.ts diff --git a/packages/shared-ux/markdown/mocks/kibana.jsonc b/src/platform/packages/shared/shared-ux/markdown/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/markdown/mocks/kibana.jsonc rename to src/platform/packages/shared/shared-ux/markdown/mocks/kibana.jsonc diff --git a/packages/shared-ux/markdown/mocks/package.json b/src/platform/packages/shared/shared-ux/markdown/mocks/package.json similarity index 100% rename from packages/shared-ux/markdown/mocks/package.json rename to src/platform/packages/shared/shared-ux/markdown/mocks/package.json diff --git a/packages/shared-ux/markdown/mocks/storybook.ts b/src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts similarity index 100% rename from packages/shared-ux/markdown/mocks/storybook.ts rename to src/platform/packages/shared/shared-ux/markdown/mocks/storybook.ts diff --git a/packages/shared-ux/markdown/mocks/tsconfig.json b/src/platform/packages/shared/shared-ux/markdown/mocks/tsconfig.json similarity index 83% rename from packages/shared-ux/markdown/mocks/tsconfig.json rename to src/platform/packages/shared/shared-ux/markdown/mocks/tsconfig.json index 2fe699abba9f1..5f0286a339bd7 100644 --- a/packages/shared-ux/markdown/mocks/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/markdown/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 783143ab41614..43a8b18d50b22 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1760,8 +1760,8 @@ "@kbn/shared-ux-link-redirect-app-types/*": ["src/platform/packages/shared/shared-ux/link/redirect_app/types/*"], "@kbn/shared-ux-markdown": ["src/platform/packages/shared/shared-ux/markdown/impl"], "@kbn/shared-ux-markdown/*": ["src/platform/packages/shared/shared-ux/markdown/impl/*"], - "@kbn/shared-ux-markdown-mocks": ["packages/shared-ux/markdown/mocks"], - "@kbn/shared-ux-markdown-mocks/*": ["packages/shared-ux/markdown/mocks/*"], + "@kbn/shared-ux-markdown-mocks": ["src/platform/packages/shared/shared-ux/markdown/mocks"], + "@kbn/shared-ux-markdown-mocks/*": ["src/platform/packages/shared/shared-ux/markdown/mocks/*"], "@kbn/shared-ux-markdown-types": ["packages/shared-ux/markdown/types"], "@kbn/shared-ux-markdown-types/*": ["packages/shared-ux/markdown/types/*"], "@kbn/shared-ux-page-analytics-no-data": ["packages/shared-ux/page/analytics_no_data/impl"], diff --git a/yarn.lock b/yarn.lock index e4ed488740d52..79a9305a500cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7332,7 +7332,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-markdown-mocks@link:packages/shared-ux/markdown/mocks": +"@kbn/shared-ux-markdown-mocks@link:src/platform/packages/shared/shared-ux/markdown/mocks": version "0.0.0" uid "" From 53c39665b5aec45de97e6eaaf59fa707c59f7d0e Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:28:54 +0100 Subject: [PATCH 099/129] Relocating module `@kbn/shared-ux-markdown-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/markdown/types/README.md | 0 .../packages/shared}/shared-ux/markdown/types/index.d.ts | 0 .../packages/shared}/shared-ux/markdown/types/kibana.jsonc | 0 .../packages/shared}/shared-ux/markdown/types/package.json | 0 .../packages/shared}/shared-ux/markdown/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/markdown/types/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/types/index.d.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/types/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/markdown/types/tsconfig.json (77%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4fd0d9db9337a..6f3f8ef2752bf 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/markdown/types @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux packages/shared-ux/page/analytics_no_data/impl @elastic/appex-sharedux packages/shared-ux/page/analytics_no_data/mocks @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/link/redirect_app/mocks @elastic/appex-sh src/platform/packages/shared/shared-ux/link/redirect_app/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/markdown/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/markdown/mocks @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/markdown/types @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 25b3d80778178..72b497b0e5318 100644 --- a/package.json +++ b/package.json @@ -895,7 +895,7 @@ "@kbn/shared-ux-link-redirect-app-types": "link:src/platform/packages/shared/shared-ux/link/redirect_app/types", "@kbn/shared-ux-markdown": "link:src/platform/packages/shared/shared-ux/markdown/impl", "@kbn/shared-ux-markdown-mocks": "link:src/platform/packages/shared/shared-ux/markdown/mocks", - "@kbn/shared-ux-markdown-types": "link:packages/shared-ux/markdown/types", + "@kbn/shared-ux-markdown-types": "link:src/platform/packages/shared/shared-ux/markdown/types", "@kbn/shared-ux-page-analytics-no-data": "link:packages/shared-ux/page/analytics_no_data/impl", "@kbn/shared-ux-page-analytics-no-data-mocks": "link:packages/shared-ux/page/analytics_no_data/mocks", "@kbn/shared-ux-page-analytics-no-data-types": "link:packages/shared-ux/page/analytics_no_data/types", diff --git a/packages/shared-ux/markdown/types/README.md b/src/platform/packages/shared/shared-ux/markdown/types/README.md similarity index 100% rename from packages/shared-ux/markdown/types/README.md rename to src/platform/packages/shared/shared-ux/markdown/types/README.md diff --git a/packages/shared-ux/markdown/types/index.d.ts b/src/platform/packages/shared/shared-ux/markdown/types/index.d.ts similarity index 100% rename from packages/shared-ux/markdown/types/index.d.ts rename to src/platform/packages/shared/shared-ux/markdown/types/index.d.ts diff --git a/packages/shared-ux/markdown/types/kibana.jsonc b/src/platform/packages/shared/shared-ux/markdown/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/markdown/types/kibana.jsonc rename to src/platform/packages/shared/shared-ux/markdown/types/kibana.jsonc diff --git a/packages/shared-ux/markdown/types/package.json b/src/platform/packages/shared/shared-ux/markdown/types/package.json similarity index 100% rename from packages/shared-ux/markdown/types/package.json rename to src/platform/packages/shared/shared-ux/markdown/types/package.json diff --git a/packages/shared-ux/markdown/types/tsconfig.json b/src/platform/packages/shared/shared-ux/markdown/types/tsconfig.json similarity index 77% rename from packages/shared-ux/markdown/types/tsconfig.json rename to src/platform/packages/shared/shared-ux/markdown/types/tsconfig.json index 078865843e593..64ec4df40c82e 100644 --- a/packages/shared-ux/markdown/types/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/markdown/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 43a8b18d50b22..cb712d1971a2a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1762,8 +1762,8 @@ "@kbn/shared-ux-markdown/*": ["src/platform/packages/shared/shared-ux/markdown/impl/*"], "@kbn/shared-ux-markdown-mocks": ["src/platform/packages/shared/shared-ux/markdown/mocks"], "@kbn/shared-ux-markdown-mocks/*": ["src/platform/packages/shared/shared-ux/markdown/mocks/*"], - "@kbn/shared-ux-markdown-types": ["packages/shared-ux/markdown/types"], - "@kbn/shared-ux-markdown-types/*": ["packages/shared-ux/markdown/types/*"], + "@kbn/shared-ux-markdown-types": ["src/platform/packages/shared/shared-ux/markdown/types"], + "@kbn/shared-ux-markdown-types/*": ["src/platform/packages/shared/shared-ux/markdown/types/*"], "@kbn/shared-ux-page-analytics-no-data": ["packages/shared-ux/page/analytics_no_data/impl"], "@kbn/shared-ux-page-analytics-no-data/*": ["packages/shared-ux/page/analytics_no_data/impl/*"], "@kbn/shared-ux-page-analytics-no-data-mocks": ["packages/shared-ux/page/analytics_no_data/mocks"], diff --git a/yarn.lock b/yarn.lock index 79a9305a500cc..dd9793a80b31e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7336,7 +7336,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-markdown-types@link:packages/shared-ux/markdown/types": +"@kbn/shared-ux-markdown-types@link:src/platform/packages/shared/shared-ux/markdown/types": version "0.0.0" uid "" From c71ed07397713939b5d41d7a7277bbe3a1b11d9c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:30:22 +0100 Subject: [PATCH 100/129] Relocating module `@kbn/shared-ux-page-analytics-no-data` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/shared-ux/page/analytics_no_data/impl/README.mdx | 0 .../private}/shared-ux/page/analytics_no_data/impl/index.ts | 0 .../shared-ux/page/analytics_no_data/impl/jest.config.js | 2 +- .../shared-ux/page/analytics_no_data/impl/kibana.jsonc | 0 .../page/analytics_no_data/impl/lib/get_has_api_keys.test.ts | 0 .../page/analytics_no_data/impl/lib/get_has_api_keys.ts | 0 .../shared-ux/page/analytics_no_data/impl/package.json | 0 .../impl/src/analytics_no_data_page.component.test.tsx | 0 .../impl/src/analytics_no_data_page.component.tsx | 0 .../impl/src/analytics_no_data_page.stories.tsx | 0 .../impl/src/analytics_no_data_page.test.tsx | 0 .../analytics_no_data/impl/src/analytics_no_data_page.tsx | 0 .../shared-ux/page/analytics_no_data/impl/src/services.tsx | 0 .../shared-ux/page/analytics_no_data/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 7 insertions(+), 7 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/README.mdx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/jest.config.js (93%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.test.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.stories.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/src/services.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/impl/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6f3f8ef2752bf..3d98767312b12 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/analytics_no_data/impl @elastic/appex-sharedux packages/shared-ux/page/analytics_no_data/mocks @elastic/appex-sharedux packages/shared-ux/page/analytics_no_data/types @elastic/appex-sharedux packages/shared-ux/page/kibana_no_data/impl @elastic/appex-sharedux @@ -569,6 +568,7 @@ src/platform/packages/private/serverless/project_switcher @elastic/appex-sharedu src/platform/packages/private/serverless/settings/common @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/private/serverless/types @elastic/appex-sharedux src/platform/packages/private/shared-ux/button/exit_full_screen @elastic/appex-sharedux +src/platform/packages/private/shared-ux/page/analytics_no_data/impl @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index 72b497b0e5318..a5eab77d6fd23 100644 --- a/package.json +++ b/package.json @@ -896,7 +896,7 @@ "@kbn/shared-ux-markdown": "link:src/platform/packages/shared/shared-ux/markdown/impl", "@kbn/shared-ux-markdown-mocks": "link:src/platform/packages/shared/shared-ux/markdown/mocks", "@kbn/shared-ux-markdown-types": "link:src/platform/packages/shared/shared-ux/markdown/types", - "@kbn/shared-ux-page-analytics-no-data": "link:packages/shared-ux/page/analytics_no_data/impl", + "@kbn/shared-ux-page-analytics-no-data": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/impl", "@kbn/shared-ux-page-analytics-no-data-mocks": "link:packages/shared-ux/page/analytics_no_data/mocks", "@kbn/shared-ux-page-analytics-no-data-types": "link:packages/shared-ux/page/analytics_no_data/types", "@kbn/shared-ux-page-kibana-no-data": "link:packages/shared-ux/page/kibana_no_data/impl", diff --git a/packages/shared-ux/page/analytics_no_data/impl/README.mdx b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/README.mdx similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/README.mdx rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/README.mdx diff --git a/packages/shared-ux/page/analytics_no_data/impl/index.ts b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/index.ts similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/index.ts rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/index.ts diff --git a/packages/shared-ux/page/analytics_no_data/impl/jest.config.js b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/jest.config.js similarity index 93% rename from packages/shared-ux/page/analytics_no_data/impl/jest.config.js rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/jest.config.js index 9b3052f23672a..8ab89dccbaa06 100644 --- a/packages/shared-ux/page/analytics_no_data/impl/jest.config.js +++ b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', + rootDir: '../../../../../../../..', roots: ['/packages/shared-ux/page/analytics_no_data'], }; diff --git a/packages/shared-ux/page/analytics_no_data/impl/kibana.jsonc b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/kibana.jsonc rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/kibana.jsonc diff --git a/packages/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.test.ts b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.test.ts similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.test.ts rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.test.ts diff --git a/packages/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/lib/get_has_api_keys.ts diff --git a/packages/shared-ux/page/analytics_no_data/impl/package.json b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/package.json similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/package.json rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/package.json diff --git a/packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.test.tsx b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.test.tsx similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.test.tsx rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.test.tsx diff --git a/packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.tsx b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.tsx similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.tsx rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.component.tsx diff --git a/packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.stories.tsx b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.stories.tsx similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.stories.tsx rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.stories.tsx diff --git a/packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.test.tsx b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.test.tsx similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.test.tsx rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.test.tsx diff --git a/packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.tsx b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.tsx similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.tsx rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/analytics_no_data_page.tsx diff --git a/packages/shared-ux/page/analytics_no_data/impl/src/services.tsx b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/services.tsx similarity index 100% rename from packages/shared-ux/page/analytics_no_data/impl/src/services.tsx rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/src/services.tsx diff --git a/packages/shared-ux/page/analytics_no_data/impl/tsconfig.json b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/tsconfig.json similarity index 91% rename from packages/shared-ux/page/analytics_no_data/impl/tsconfig.json rename to src/platform/packages/private/shared-ux/page/analytics_no_data/impl/tsconfig.json index ba872e1ecd761..f2a33656d737e 100644 --- a/packages/shared-ux/page/analytics_no_data/impl/tsconfig.json +++ b/src/platform/packages/private/shared-ux/page/analytics_no_data/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index cb712d1971a2a..d79e57e6e64b2 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1764,8 +1764,8 @@ "@kbn/shared-ux-markdown-mocks/*": ["src/platform/packages/shared/shared-ux/markdown/mocks/*"], "@kbn/shared-ux-markdown-types": ["src/platform/packages/shared/shared-ux/markdown/types"], "@kbn/shared-ux-markdown-types/*": ["src/platform/packages/shared/shared-ux/markdown/types/*"], - "@kbn/shared-ux-page-analytics-no-data": ["packages/shared-ux/page/analytics_no_data/impl"], - "@kbn/shared-ux-page-analytics-no-data/*": ["packages/shared-ux/page/analytics_no_data/impl/*"], + "@kbn/shared-ux-page-analytics-no-data": ["src/platform/packages/private/shared-ux/page/analytics_no_data/impl"], + "@kbn/shared-ux-page-analytics-no-data/*": ["src/platform/packages/private/shared-ux/page/analytics_no_data/impl/*"], "@kbn/shared-ux-page-analytics-no-data-mocks": ["packages/shared-ux/page/analytics_no_data/mocks"], "@kbn/shared-ux-page-analytics-no-data-mocks/*": ["packages/shared-ux/page/analytics_no_data/mocks/*"], "@kbn/shared-ux-page-analytics-no-data-types": ["packages/shared-ux/page/analytics_no_data/types"], diff --git a/yarn.lock b/yarn.lock index dd9793a80b31e..d05585da0f532 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7352,7 +7352,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-analytics-no-data@link:packages/shared-ux/page/analytics_no_data/impl": +"@kbn/shared-ux-page-analytics-no-data@link:src/platform/packages/private/shared-ux/page/analytics_no_data/impl": version "0.0.0" uid "" From 016d40d604c95d5e051cca706a93353ebd198a3f Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:31:53 +0100 Subject: [PATCH 101/129] Relocating module `@kbn/shared-ux-page-analytics-no-data-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/shared-ux/page/analytics_no_data/mocks/README.md | 0 .../private}/shared-ux/page/analytics_no_data/mocks/index.ts | 0 .../shared-ux/page/analytics_no_data/mocks/kibana.jsonc | 0 .../shared-ux/page/analytics_no_data/mocks/package.json | 0 .../shared-ux/page/analytics_no_data/mocks/src/jest.ts | 0 .../shared-ux/page/analytics_no_data/mocks/src/storybook.ts | 0 .../shared-ux/page/analytics_no_data/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/mocks/README.md (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/mocks/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/mocks/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/mocks/src/jest.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/mocks/src/storybook.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/mocks/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3d98767312b12..e634e992d6f60 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/analytics_no_data/mocks @elastic/appex-sharedux packages/shared-ux/page/analytics_no_data/types @elastic/appex-sharedux packages/shared-ux/page/kibana_no_data/impl @elastic/appex-sharedux packages/shared-ux/page/kibana_no_data/mocks @elastic/appex-sharedux @@ -569,6 +568,7 @@ src/platform/packages/private/serverless/settings/common @elastic/appex-sharedux src/platform/packages/private/serverless/types @elastic/appex-sharedux src/platform/packages/private/shared-ux/button/exit_full_screen @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/analytics_no_data/impl @elastic/appex-sharedux +src/platform/packages/private/shared-ux/page/analytics_no_data/mocks @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index a5eab77d6fd23..2be3c89a27021 100644 --- a/package.json +++ b/package.json @@ -897,7 +897,7 @@ "@kbn/shared-ux-markdown-mocks": "link:src/platform/packages/shared/shared-ux/markdown/mocks", "@kbn/shared-ux-markdown-types": "link:src/platform/packages/shared/shared-ux/markdown/types", "@kbn/shared-ux-page-analytics-no-data": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/impl", - "@kbn/shared-ux-page-analytics-no-data-mocks": "link:packages/shared-ux/page/analytics_no_data/mocks", + "@kbn/shared-ux-page-analytics-no-data-mocks": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/mocks", "@kbn/shared-ux-page-analytics-no-data-types": "link:packages/shared-ux/page/analytics_no_data/types", "@kbn/shared-ux-page-kibana-no-data": "link:packages/shared-ux/page/kibana_no_data/impl", "@kbn/shared-ux-page-kibana-no-data-mocks": "link:packages/shared-ux/page/kibana_no_data/mocks", diff --git a/packages/shared-ux/page/analytics_no_data/mocks/README.md b/src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/README.md similarity index 100% rename from packages/shared-ux/page/analytics_no_data/mocks/README.md rename to src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/README.md diff --git a/packages/shared-ux/page/analytics_no_data/mocks/index.ts b/src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/index.ts similarity index 100% rename from packages/shared-ux/page/analytics_no_data/mocks/index.ts rename to src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/index.ts diff --git a/packages/shared-ux/page/analytics_no_data/mocks/kibana.jsonc b/src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/analytics_no_data/mocks/kibana.jsonc rename to src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/kibana.jsonc diff --git a/packages/shared-ux/page/analytics_no_data/mocks/package.json b/src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/package.json similarity index 100% rename from packages/shared-ux/page/analytics_no_data/mocks/package.json rename to src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/package.json diff --git a/packages/shared-ux/page/analytics_no_data/mocks/src/jest.ts b/src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/jest.ts similarity index 100% rename from packages/shared-ux/page/analytics_no_data/mocks/src/jest.ts rename to src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/jest.ts diff --git a/packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts b/src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts similarity index 100% rename from packages/shared-ux/page/analytics_no_data/mocks/src/storybook.ts rename to src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/src/storybook.ts diff --git a/packages/shared-ux/page/analytics_no_data/mocks/tsconfig.json b/src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/tsconfig.json similarity index 85% rename from packages/shared-ux/page/analytics_no_data/mocks/tsconfig.json rename to src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/tsconfig.json index 7b0f91bbb706c..87eab59ad2004 100644 --- a/packages/shared-ux/page/analytics_no_data/mocks/tsconfig.json +++ b/src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index d79e57e6e64b2..beb2bef36e63f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1766,8 +1766,8 @@ "@kbn/shared-ux-markdown-types/*": ["src/platform/packages/shared/shared-ux/markdown/types/*"], "@kbn/shared-ux-page-analytics-no-data": ["src/platform/packages/private/shared-ux/page/analytics_no_data/impl"], "@kbn/shared-ux-page-analytics-no-data/*": ["src/platform/packages/private/shared-ux/page/analytics_no_data/impl/*"], - "@kbn/shared-ux-page-analytics-no-data-mocks": ["packages/shared-ux/page/analytics_no_data/mocks"], - "@kbn/shared-ux-page-analytics-no-data-mocks/*": ["packages/shared-ux/page/analytics_no_data/mocks/*"], + "@kbn/shared-ux-page-analytics-no-data-mocks": ["src/platform/packages/private/shared-ux/page/analytics_no_data/mocks"], + "@kbn/shared-ux-page-analytics-no-data-mocks/*": ["src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/*"], "@kbn/shared-ux-page-analytics-no-data-types": ["packages/shared-ux/page/analytics_no_data/types"], "@kbn/shared-ux-page-analytics-no-data-types/*": ["packages/shared-ux/page/analytics_no_data/types/*"], "@kbn/shared-ux-page-kibana-no-data": ["packages/shared-ux/page/kibana_no_data/impl"], diff --git a/yarn.lock b/yarn.lock index d05585da0f532..f625b28a6177b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7344,7 +7344,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-analytics-no-data-mocks@link:packages/shared-ux/page/analytics_no_data/mocks": +"@kbn/shared-ux-page-analytics-no-data-mocks@link:src/platform/packages/private/shared-ux/page/analytics_no_data/mocks": version "0.0.0" uid "" From 6d49d5466fe9254e74abf01503872d60e99c9fe0 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:33:19 +0100 Subject: [PATCH 102/129] Relocating module `@kbn/shared-ux-page-analytics-no-data-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/shared-ux/page/analytics_no_data/types/README.md | 0 .../shared-ux/page/analytics_no_data/types/index.d.ts | 0 .../shared-ux/page/analytics_no_data/types/kibana.jsonc | 0 .../shared-ux/page/analytics_no_data/types/package.json | 0 .../shared-ux/page/analytics_no_data/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/types/README.md (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/types/index.d.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/types/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/types/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/page/analytics_no_data/types/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e634e992d6f60..e531f4d184a41 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/analytics_no_data/types @elastic/appex-sharedux packages/shared-ux/page/kibana_no_data/impl @elastic/appex-sharedux packages/shared-ux/page/kibana_no_data/mocks @elastic/appex-sharedux packages/shared-ux/page/kibana_no_data/types @elastic/appex-sharedux @@ -569,6 +568,7 @@ src/platform/packages/private/serverless/types @elastic/appex-sharedux src/platform/packages/private/shared-ux/button/exit_full_screen @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/analytics_no_data/impl @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/analytics_no_data/mocks @elastic/appex-sharedux +src/platform/packages/private/shared-ux/page/analytics_no_data/types @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index 2be3c89a27021..bb53d31eeba4b 100644 --- a/package.json +++ b/package.json @@ -898,7 +898,7 @@ "@kbn/shared-ux-markdown-types": "link:src/platform/packages/shared/shared-ux/markdown/types", "@kbn/shared-ux-page-analytics-no-data": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/impl", "@kbn/shared-ux-page-analytics-no-data-mocks": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/mocks", - "@kbn/shared-ux-page-analytics-no-data-types": "link:packages/shared-ux/page/analytics_no_data/types", + "@kbn/shared-ux-page-analytics-no-data-types": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/types", "@kbn/shared-ux-page-kibana-no-data": "link:packages/shared-ux/page/kibana_no_data/impl", "@kbn/shared-ux-page-kibana-no-data-mocks": "link:packages/shared-ux/page/kibana_no_data/mocks", "@kbn/shared-ux-page-kibana-no-data-types": "link:packages/shared-ux/page/kibana_no_data/types", diff --git a/packages/shared-ux/page/analytics_no_data/types/README.md b/src/platform/packages/private/shared-ux/page/analytics_no_data/types/README.md similarity index 100% rename from packages/shared-ux/page/analytics_no_data/types/README.md rename to src/platform/packages/private/shared-ux/page/analytics_no_data/types/README.md diff --git a/packages/shared-ux/page/analytics_no_data/types/index.d.ts b/src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts similarity index 100% rename from packages/shared-ux/page/analytics_no_data/types/index.d.ts rename to src/platform/packages/private/shared-ux/page/analytics_no_data/types/index.d.ts diff --git a/packages/shared-ux/page/analytics_no_data/types/kibana.jsonc b/src/platform/packages/private/shared-ux/page/analytics_no_data/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/analytics_no_data/types/kibana.jsonc rename to src/platform/packages/private/shared-ux/page/analytics_no_data/types/kibana.jsonc diff --git a/packages/shared-ux/page/analytics_no_data/types/package.json b/src/platform/packages/private/shared-ux/page/analytics_no_data/types/package.json similarity index 100% rename from packages/shared-ux/page/analytics_no_data/types/package.json rename to src/platform/packages/private/shared-ux/page/analytics_no_data/types/package.json diff --git a/packages/shared-ux/page/analytics_no_data/types/tsconfig.json b/src/platform/packages/private/shared-ux/page/analytics_no_data/types/tsconfig.json similarity index 81% rename from packages/shared-ux/page/analytics_no_data/types/tsconfig.json rename to src/platform/packages/private/shared-ux/page/analytics_no_data/types/tsconfig.json index e46f95f52599b..3d44092ac061f 100644 --- a/packages/shared-ux/page/analytics_no_data/types/tsconfig.json +++ b/src/platform/packages/private/shared-ux/page/analytics_no_data/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [] diff --git a/tsconfig.base.json b/tsconfig.base.json index beb2bef36e63f..ef4e708448754 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1768,8 +1768,8 @@ "@kbn/shared-ux-page-analytics-no-data/*": ["src/platform/packages/private/shared-ux/page/analytics_no_data/impl/*"], "@kbn/shared-ux-page-analytics-no-data-mocks": ["src/platform/packages/private/shared-ux/page/analytics_no_data/mocks"], "@kbn/shared-ux-page-analytics-no-data-mocks/*": ["src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/*"], - "@kbn/shared-ux-page-analytics-no-data-types": ["packages/shared-ux/page/analytics_no_data/types"], - "@kbn/shared-ux-page-analytics-no-data-types/*": ["packages/shared-ux/page/analytics_no_data/types/*"], + "@kbn/shared-ux-page-analytics-no-data-types": ["src/platform/packages/private/shared-ux/page/analytics_no_data/types"], + "@kbn/shared-ux-page-analytics-no-data-types/*": ["src/platform/packages/private/shared-ux/page/analytics_no_data/types/*"], "@kbn/shared-ux-page-kibana-no-data": ["packages/shared-ux/page/kibana_no_data/impl"], "@kbn/shared-ux-page-kibana-no-data/*": ["packages/shared-ux/page/kibana_no_data/impl/*"], "@kbn/shared-ux-page-kibana-no-data-mocks": ["packages/shared-ux/page/kibana_no_data/mocks"], diff --git a/yarn.lock b/yarn.lock index f625b28a6177b..0238adf91cbb2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7348,7 +7348,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-analytics-no-data-types@link:packages/shared-ux/page/analytics_no_data/types": +"@kbn/shared-ux-page-analytics-no-data-types@link:src/platform/packages/private/shared-ux/page/analytics_no_data/types": version "0.0.0" uid "" From 756cd3efbad363fbf98831b63f4ab8d6c1cb820a Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:34:48 +0100 Subject: [PATCH 103/129] Relocating module `@kbn/shared-ux-page-kibana-no-data` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/shared-ux/page/kibana_no_data/impl/README.mdx | 0 .../private}/shared-ux/page/kibana_no_data/impl/index.ts | 0 .../shared-ux/page/kibana_no_data/impl/jest.config.js | 2 +- .../private}/shared-ux/page/kibana_no_data/impl/kibana.jsonc | 0 .../private}/shared-ux/page/kibana_no_data/impl/package.json | 0 .../kibana_no_data/impl/src/assets/data_view_illustration.tsx | 0 .../shared-ux/page/kibana_no_data/impl/src/assets/index.ts | 0 .../kibana_no_data/impl/src/kibana_no_data_page.stories.tsx | 0 .../page/kibana_no_data/impl/src/kibana_no_data_page.test.tsx | 0 .../page/kibana_no_data/impl/src/kibana_no_data_page.tsx | 0 .../shared-ux/page/kibana_no_data/impl/src/services.tsx | 0 .../private}/shared-ux/page/kibana_no_data/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 16 files changed, 7 insertions(+), 7 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/README.mdx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/jest.config.js (93%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/src/assets/data_view_illustration.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/src/assets/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.stories.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/src/services.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/impl/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e531f4d184a41..ef7eacb597229 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/kibana_no_data/impl @elastic/appex-sharedux packages/shared-ux/page/kibana_no_data/mocks @elastic/appex-sharedux packages/shared-ux/page/kibana_no_data/types @elastic/appex-sharedux packages/shared-ux/page/kibana_template/impl @elastic/appex-sharedux @@ -569,6 +568,7 @@ src/platform/packages/private/shared-ux/button/exit_full_screen @elastic/appex-s src/platform/packages/private/shared-ux/page/analytics_no_data/impl @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/analytics_no_data/mocks @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/analytics_no_data/types @elastic/appex-sharedux +src/platform/packages/private/shared-ux/page/kibana_no_data/impl @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index bb53d31eeba4b..1814b4eb7cdc7 100644 --- a/package.json +++ b/package.json @@ -899,7 +899,7 @@ "@kbn/shared-ux-page-analytics-no-data": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/impl", "@kbn/shared-ux-page-analytics-no-data-mocks": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/mocks", "@kbn/shared-ux-page-analytics-no-data-types": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/types", - "@kbn/shared-ux-page-kibana-no-data": "link:packages/shared-ux/page/kibana_no_data/impl", + "@kbn/shared-ux-page-kibana-no-data": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/impl", "@kbn/shared-ux-page-kibana-no-data-mocks": "link:packages/shared-ux/page/kibana_no_data/mocks", "@kbn/shared-ux-page-kibana-no-data-types": "link:packages/shared-ux/page/kibana_no_data/types", "@kbn/shared-ux-page-kibana-template": "link:packages/shared-ux/page/kibana_template/impl", diff --git a/packages/shared-ux/page/kibana_no_data/impl/README.mdx b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/README.mdx similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/README.mdx rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/README.mdx diff --git a/packages/shared-ux/page/kibana_no_data/impl/index.ts b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/index.ts similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/index.ts rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/index.ts diff --git a/packages/shared-ux/page/kibana_no_data/impl/jest.config.js b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/jest.config.js similarity index 93% rename from packages/shared-ux/page/kibana_no_data/impl/jest.config.js rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/jest.config.js index 696f32a28a4e9..926f1613740da 100644 --- a/packages/shared-ux/page/kibana_no_data/impl/jest.config.js +++ b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', + rootDir: '../../../../../../../..', roots: ['/packages/shared-ux/page/kibana_no_data'], }; diff --git a/packages/shared-ux/page/kibana_no_data/impl/kibana.jsonc b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/kibana.jsonc rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/kibana.jsonc diff --git a/packages/shared-ux/page/kibana_no_data/impl/package.json b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/package.json similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/package.json rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/package.json diff --git a/packages/shared-ux/page/kibana_no_data/impl/src/assets/data_view_illustration.tsx b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/assets/data_view_illustration.tsx similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/src/assets/data_view_illustration.tsx rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/assets/data_view_illustration.tsx diff --git a/packages/shared-ux/page/kibana_no_data/impl/src/assets/index.ts b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/assets/index.ts similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/src/assets/index.ts rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/assets/index.ts diff --git a/packages/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.stories.tsx b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.stories.tsx similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.stories.tsx rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.stories.tsx diff --git a/packages/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.test.tsx b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.test.tsx similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.test.tsx rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.test.tsx diff --git a/packages/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.tsx b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.tsx similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.tsx rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/kibana_no_data_page.tsx diff --git a/packages/shared-ux/page/kibana_no_data/impl/src/services.tsx b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/services.tsx similarity index 100% rename from packages/shared-ux/page/kibana_no_data/impl/src/services.tsx rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/src/services.tsx diff --git a/packages/shared-ux/page/kibana_no_data/impl/tsconfig.json b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/tsconfig.json similarity index 90% rename from packages/shared-ux/page/kibana_no_data/impl/tsconfig.json rename to src/platform/packages/private/shared-ux/page/kibana_no_data/impl/tsconfig.json index 8de16912b9e35..7559d42c20432 100644 --- a/packages/shared-ux/page/kibana_no_data/impl/tsconfig.json +++ b/src/platform/packages/private/shared-ux/page/kibana_no_data/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ef4e708448754..132ec2106c72e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1770,8 +1770,8 @@ "@kbn/shared-ux-page-analytics-no-data-mocks/*": ["src/platform/packages/private/shared-ux/page/analytics_no_data/mocks/*"], "@kbn/shared-ux-page-analytics-no-data-types": ["src/platform/packages/private/shared-ux/page/analytics_no_data/types"], "@kbn/shared-ux-page-analytics-no-data-types/*": ["src/platform/packages/private/shared-ux/page/analytics_no_data/types/*"], - "@kbn/shared-ux-page-kibana-no-data": ["packages/shared-ux/page/kibana_no_data/impl"], - "@kbn/shared-ux-page-kibana-no-data/*": ["packages/shared-ux/page/kibana_no_data/impl/*"], + "@kbn/shared-ux-page-kibana-no-data": ["src/platform/packages/private/shared-ux/page/kibana_no_data/impl"], + "@kbn/shared-ux-page-kibana-no-data/*": ["src/platform/packages/private/shared-ux/page/kibana_no_data/impl/*"], "@kbn/shared-ux-page-kibana-no-data-mocks": ["packages/shared-ux/page/kibana_no_data/mocks"], "@kbn/shared-ux-page-kibana-no-data-mocks/*": ["packages/shared-ux/page/kibana_no_data/mocks/*"], "@kbn/shared-ux-page-kibana-no-data-types": ["packages/shared-ux/page/kibana_no_data/types"], diff --git a/yarn.lock b/yarn.lock index 0238adf91cbb2..a6032a6dcb2b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7364,7 +7364,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-kibana-no-data@link:packages/shared-ux/page/kibana_no_data/impl": +"@kbn/shared-ux-page-kibana-no-data@link:src/platform/packages/private/shared-ux/page/kibana_no_data/impl": version "0.0.0" uid "" From 238390ea8a77c4a0910f12f3c00ec76d67dd4484 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:36:19 +0100 Subject: [PATCH 104/129] Relocating module `@kbn/shared-ux-page-kibana-no-data-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/shared-ux/page/kibana_no_data/mocks/README.md | 0 .../private}/shared-ux/page/kibana_no_data/mocks/index.ts | 0 .../private}/shared-ux/page/kibana_no_data/mocks/kibana.jsonc | 0 .../private}/shared-ux/page/kibana_no_data/mocks/package.json | 0 .../private}/shared-ux/page/kibana_no_data/mocks/src/jest.ts | 0 .../shared-ux/page/kibana_no_data/mocks/src/storybook.ts | 0 .../shared-ux/page/kibana_no_data/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/mocks/README.md (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/mocks/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/mocks/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/mocks/src/jest.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/mocks/src/storybook.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/mocks/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ef7eacb597229..8b143ae4db746 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/kibana_no_data/mocks @elastic/appex-sharedux packages/shared-ux/page/kibana_no_data/types @elastic/appex-sharedux packages/shared-ux/page/kibana_template/impl @elastic/appex-sharedux packages/shared-ux/page/kibana_template/mocks @elastic/appex-sharedux @@ -569,6 +568,7 @@ src/platform/packages/private/shared-ux/page/analytics_no_data/impl @elastic/app src/platform/packages/private/shared-ux/page/analytics_no_data/mocks @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/analytics_no_data/types @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/kibana_no_data/impl @elastic/appex-sharedux +src/platform/packages/private/shared-ux/page/kibana_no_data/mocks @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index 1814b4eb7cdc7..da99a20de004c 100644 --- a/package.json +++ b/package.json @@ -900,7 +900,7 @@ "@kbn/shared-ux-page-analytics-no-data-mocks": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/mocks", "@kbn/shared-ux-page-analytics-no-data-types": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/types", "@kbn/shared-ux-page-kibana-no-data": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/impl", - "@kbn/shared-ux-page-kibana-no-data-mocks": "link:packages/shared-ux/page/kibana_no_data/mocks", + "@kbn/shared-ux-page-kibana-no-data-mocks": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/mocks", "@kbn/shared-ux-page-kibana-no-data-types": "link:packages/shared-ux/page/kibana_no_data/types", "@kbn/shared-ux-page-kibana-template": "link:packages/shared-ux/page/kibana_template/impl", "@kbn/shared-ux-page-kibana-template-mocks": "link:packages/shared-ux/page/kibana_template/mocks", diff --git a/packages/shared-ux/page/kibana_no_data/mocks/README.md b/src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/README.md similarity index 100% rename from packages/shared-ux/page/kibana_no_data/mocks/README.md rename to src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/README.md diff --git a/packages/shared-ux/page/kibana_no_data/mocks/index.ts b/src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/index.ts similarity index 100% rename from packages/shared-ux/page/kibana_no_data/mocks/index.ts rename to src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/index.ts diff --git a/packages/shared-ux/page/kibana_no_data/mocks/kibana.jsonc b/src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/kibana_no_data/mocks/kibana.jsonc rename to src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/kibana.jsonc diff --git a/packages/shared-ux/page/kibana_no_data/mocks/package.json b/src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/package.json similarity index 100% rename from packages/shared-ux/page/kibana_no_data/mocks/package.json rename to src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/package.json diff --git a/packages/shared-ux/page/kibana_no_data/mocks/src/jest.ts b/src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/jest.ts similarity index 100% rename from packages/shared-ux/page/kibana_no_data/mocks/src/jest.ts rename to src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/jest.ts diff --git a/packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts b/src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts similarity index 100% rename from packages/shared-ux/page/kibana_no_data/mocks/src/storybook.ts rename to src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/src/storybook.ts diff --git a/packages/shared-ux/page/kibana_no_data/mocks/tsconfig.json b/src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/tsconfig.json similarity index 88% rename from packages/shared-ux/page/kibana_no_data/mocks/tsconfig.json rename to src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/tsconfig.json index 012849eca8ae5..867c824f86488 100644 --- a/packages/shared-ux/page/kibana_no_data/mocks/tsconfig.json +++ b/src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 132ec2106c72e..a1c01438ff7e8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1772,8 +1772,8 @@ "@kbn/shared-ux-page-analytics-no-data-types/*": ["src/platform/packages/private/shared-ux/page/analytics_no_data/types/*"], "@kbn/shared-ux-page-kibana-no-data": ["src/platform/packages/private/shared-ux/page/kibana_no_data/impl"], "@kbn/shared-ux-page-kibana-no-data/*": ["src/platform/packages/private/shared-ux/page/kibana_no_data/impl/*"], - "@kbn/shared-ux-page-kibana-no-data-mocks": ["packages/shared-ux/page/kibana_no_data/mocks"], - "@kbn/shared-ux-page-kibana-no-data-mocks/*": ["packages/shared-ux/page/kibana_no_data/mocks/*"], + "@kbn/shared-ux-page-kibana-no-data-mocks": ["src/platform/packages/private/shared-ux/page/kibana_no_data/mocks"], + "@kbn/shared-ux-page-kibana-no-data-mocks/*": ["src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/*"], "@kbn/shared-ux-page-kibana-no-data-types": ["packages/shared-ux/page/kibana_no_data/types"], "@kbn/shared-ux-page-kibana-no-data-types/*": ["packages/shared-ux/page/kibana_no_data/types/*"], "@kbn/shared-ux-page-kibana-template": ["packages/shared-ux/page/kibana_template/impl"], diff --git a/yarn.lock b/yarn.lock index a6032a6dcb2b5..12f3d2002ddff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7356,7 +7356,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-kibana-no-data-mocks@link:packages/shared-ux/page/kibana_no_data/mocks": +"@kbn/shared-ux-page-kibana-no-data-mocks@link:src/platform/packages/private/shared-ux/page/kibana_no_data/mocks": version "0.0.0" uid "" From 048decff395eefba8d7ec085ff39d7683473f4ff Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:37:51 +0100 Subject: [PATCH 105/129] Relocating module `@kbn/shared-ux-page-kibana-no-data-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/shared-ux/page/kibana_no_data/types/README.md | 0 .../private}/shared-ux/page/kibana_no_data/types/index.d.ts | 0 .../private}/shared-ux/page/kibana_no_data/types/kibana.jsonc | 0 .../private}/shared-ux/page/kibana_no_data/types/package.json | 0 .../shared-ux/page/kibana_no_data/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/types/README.md (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/types/index.d.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/types/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/types/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/page/kibana_no_data/types/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8b143ae4db746..c577e4501f224 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/kibana_no_data/types @elastic/appex-sharedux packages/shared-ux/page/kibana_template/impl @elastic/appex-sharedux packages/shared-ux/page/kibana_template/mocks @elastic/appex-sharedux packages/shared-ux/page/kibana_template/types @elastic/appex-sharedux @@ -569,6 +568,7 @@ src/platform/packages/private/shared-ux/page/analytics_no_data/mocks @elastic/ap src/platform/packages/private/shared-ux/page/analytics_no_data/types @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/kibana_no_data/impl @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/kibana_no_data/mocks @elastic/appex-sharedux +src/platform/packages/private/shared-ux/page/kibana_no_data/types @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index da99a20de004c..da70fa147d7fa 100644 --- a/package.json +++ b/package.json @@ -901,7 +901,7 @@ "@kbn/shared-ux-page-analytics-no-data-types": "link:src/platform/packages/private/shared-ux/page/analytics_no_data/types", "@kbn/shared-ux-page-kibana-no-data": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/impl", "@kbn/shared-ux-page-kibana-no-data-mocks": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/mocks", - "@kbn/shared-ux-page-kibana-no-data-types": "link:packages/shared-ux/page/kibana_no_data/types", + "@kbn/shared-ux-page-kibana-no-data-types": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/types", "@kbn/shared-ux-page-kibana-template": "link:packages/shared-ux/page/kibana_template/impl", "@kbn/shared-ux-page-kibana-template-mocks": "link:packages/shared-ux/page/kibana_template/mocks", "@kbn/shared-ux-page-kibana-template-types": "link:packages/shared-ux/page/kibana_template/types", diff --git a/packages/shared-ux/page/kibana_no_data/types/README.md b/src/platform/packages/private/shared-ux/page/kibana_no_data/types/README.md similarity index 100% rename from packages/shared-ux/page/kibana_no_data/types/README.md rename to src/platform/packages/private/shared-ux/page/kibana_no_data/types/README.md diff --git a/packages/shared-ux/page/kibana_no_data/types/index.d.ts b/src/platform/packages/private/shared-ux/page/kibana_no_data/types/index.d.ts similarity index 100% rename from packages/shared-ux/page/kibana_no_data/types/index.d.ts rename to src/platform/packages/private/shared-ux/page/kibana_no_data/types/index.d.ts diff --git a/packages/shared-ux/page/kibana_no_data/types/kibana.jsonc b/src/platform/packages/private/shared-ux/page/kibana_no_data/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/kibana_no_data/types/kibana.jsonc rename to src/platform/packages/private/shared-ux/page/kibana_no_data/types/kibana.jsonc diff --git a/packages/shared-ux/page/kibana_no_data/types/package.json b/src/platform/packages/private/shared-ux/page/kibana_no_data/types/package.json similarity index 100% rename from packages/shared-ux/page/kibana_no_data/types/package.json rename to src/platform/packages/private/shared-ux/page/kibana_no_data/types/package.json diff --git a/packages/shared-ux/page/kibana_no_data/types/tsconfig.json b/src/platform/packages/private/shared-ux/page/kibana_no_data/types/tsconfig.json similarity index 83% rename from packages/shared-ux/page/kibana_no_data/types/tsconfig.json rename to src/platform/packages/private/shared-ux/page/kibana_no_data/types/tsconfig.json index f51e9bf3496fd..260d9bf5d2143 100644 --- a/packages/shared-ux/page/kibana_no_data/types/tsconfig.json +++ b/src/platform/packages/private/shared-ux/page/kibana_no_data/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [] diff --git a/tsconfig.base.json b/tsconfig.base.json index a1c01438ff7e8..f82dcfd42e902 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1774,8 +1774,8 @@ "@kbn/shared-ux-page-kibana-no-data/*": ["src/platform/packages/private/shared-ux/page/kibana_no_data/impl/*"], "@kbn/shared-ux-page-kibana-no-data-mocks": ["src/platform/packages/private/shared-ux/page/kibana_no_data/mocks"], "@kbn/shared-ux-page-kibana-no-data-mocks/*": ["src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/*"], - "@kbn/shared-ux-page-kibana-no-data-types": ["packages/shared-ux/page/kibana_no_data/types"], - "@kbn/shared-ux-page-kibana-no-data-types/*": ["packages/shared-ux/page/kibana_no_data/types/*"], + "@kbn/shared-ux-page-kibana-no-data-types": ["src/platform/packages/private/shared-ux/page/kibana_no_data/types"], + "@kbn/shared-ux-page-kibana-no-data-types/*": ["src/platform/packages/private/shared-ux/page/kibana_no_data/types/*"], "@kbn/shared-ux-page-kibana-template": ["packages/shared-ux/page/kibana_template/impl"], "@kbn/shared-ux-page-kibana-template/*": ["packages/shared-ux/page/kibana_template/impl/*"], "@kbn/shared-ux-page-kibana-template-mocks": ["packages/shared-ux/page/kibana_template/mocks"], diff --git a/yarn.lock b/yarn.lock index 12f3d2002ddff..5dc6dcfb67266 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7360,7 +7360,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-kibana-no-data-types@link:packages/shared-ux/page/kibana_no_data/types": +"@kbn/shared-ux-page-kibana-no-data-types@link:src/platform/packages/private/shared-ux/page/kibana_no_data/types": version "0.0.0" uid "" From 5be79b9164a04d9fa7060da25cb4655ec8aeb1a3 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:39:20 +0100 Subject: [PATCH 106/129] Relocating module `@kbn/shared-ux-page-kibana-template` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/page/kibana_template/impl/README.mdx | 0 .../shared}/shared-ux/page/kibana_template/impl/index.ts | 0 .../shared-ux/page/kibana_template/impl/jest.config.js | 4 ++-- .../shared}/shared-ux/page/kibana_template/impl/kibana.jsonc | 0 .../shared}/shared-ux/page/kibana_template/impl/package.json | 0 .../impl/src/__snapshots__/page_template.test.tsx.snap | 0 .../impl/src/__snapshots__/page_template_inner.test.tsx.snap | 0 .../page/kibana_template/impl/src/page_template.stories.tsx | 0 .../page/kibana_template/impl/src/page_template.test.tsx | 0 .../shared-ux/page/kibana_template/impl/src/page_template.tsx | 0 .../kibana_template/impl/src/page_template_inner.test.tsx | 0 .../page/kibana_template/impl/src/page_template_inner.tsx | 0 .../shared-ux/page/kibana_template/impl/src/services.tsx | 0 .../shared}/shared-ux/page/kibana_template/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/jest.config.js (80%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template_inner.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/src/page_template.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/src/page_template.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/src/page_template.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/src/page_template_inner.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/src/page_template_inner.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/impl/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c577e4501f224..0dde40348a847 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/kibana_template/impl @elastic/appex-sharedux packages/shared-ux/page/kibana_template/mocks @elastic/appex-sharedux packages/shared-ux/page/kibana_template/types @elastic/appex-sharedux packages/shared-ux/page/no_data_config/impl @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/link/redirect_app/types @elastic/appex-sh src/platform/packages/shared/shared-ux/markdown/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/markdown/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/markdown/types @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/kibana_template/impl @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index da70fa147d7fa..b13f68fce7c3d 100644 --- a/package.json +++ b/package.json @@ -902,7 +902,7 @@ "@kbn/shared-ux-page-kibana-no-data": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/impl", "@kbn/shared-ux-page-kibana-no-data-mocks": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/mocks", "@kbn/shared-ux-page-kibana-no-data-types": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/types", - "@kbn/shared-ux-page-kibana-template": "link:packages/shared-ux/page/kibana_template/impl", + "@kbn/shared-ux-page-kibana-template": "link:src/platform/packages/shared/shared-ux/page/kibana_template/impl", "@kbn/shared-ux-page-kibana-template-mocks": "link:packages/shared-ux/page/kibana_template/mocks", "@kbn/shared-ux-page-kibana-template-types": "link:packages/shared-ux/page/kibana_template/types", "@kbn/shared-ux-page-no-data": "link:packages/shared-ux/page/no_data/impl", diff --git a/packages/shared-ux/page/kibana_template/impl/README.mdx b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/README.mdx similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/README.mdx rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/README.mdx diff --git a/packages/shared-ux/page/kibana_template/impl/index.ts b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/index.ts similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/index.ts rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/index.ts diff --git a/packages/shared-ux/page/kibana_template/impl/jest.config.js b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/jest.config.js similarity index 80% rename from packages/shared-ux/page/kibana_template/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/jest.config.js index 486b3f38a39fa..e9d10068f6a15 100644 --- a/packages/shared-ux/page/kibana_template/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', - roots: ['/packages/shared-ux/page/kibana_template/impl'], + rootDir: '../../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/page/kibana_template/impl'], }; diff --git a/packages/shared-ux/page/kibana_template/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/kibana.jsonc diff --git a/packages/shared-ux/page/kibana_template/impl/package.json b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/package.json similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/package.json rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/package.json diff --git a/packages/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template.test.tsx.snap b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template.test.tsx.snap similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template.test.tsx.snap rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template.test.tsx.snap diff --git a/packages/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template_inner.test.tsx.snap b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template_inner.test.tsx.snap similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template_inner.test.tsx.snap rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template_inner.test.tsx.snap diff --git a/packages/shared-ux/page/kibana_template/impl/src/page_template.stories.tsx b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template.stories.tsx similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/src/page_template.stories.tsx rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template.stories.tsx diff --git a/packages/shared-ux/page/kibana_template/impl/src/page_template.test.tsx b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template.test.tsx similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/src/page_template.test.tsx rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template.test.tsx diff --git a/packages/shared-ux/page/kibana_template/impl/src/page_template.tsx b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template.tsx similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/src/page_template.tsx rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template.tsx diff --git a/packages/shared-ux/page/kibana_template/impl/src/page_template_inner.test.tsx b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template_inner.test.tsx similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/src/page_template_inner.test.tsx rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template_inner.test.tsx diff --git a/packages/shared-ux/page/kibana_template/impl/src/page_template_inner.tsx b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template_inner.tsx similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/src/page_template_inner.tsx rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/page_template_inner.tsx diff --git a/packages/shared-ux/page/kibana_template/impl/src/services.tsx b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/services.tsx similarity index 100% rename from packages/shared-ux/page/kibana_template/impl/src/services.tsx rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/src/services.tsx diff --git a/packages/shared-ux/page/kibana_template/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/tsconfig.json similarity index 89% rename from packages/shared-ux/page/kibana_template/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/kibana_template/impl/tsconfig.json index d4b2c3e87f593..d861c72d9b107 100644 --- a/packages/shared-ux/page/kibana_template/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/kibana_template/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index f82dcfd42e902..f56e49fd55a78 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1776,8 +1776,8 @@ "@kbn/shared-ux-page-kibana-no-data-mocks/*": ["src/platform/packages/private/shared-ux/page/kibana_no_data/mocks/*"], "@kbn/shared-ux-page-kibana-no-data-types": ["src/platform/packages/private/shared-ux/page/kibana_no_data/types"], "@kbn/shared-ux-page-kibana-no-data-types/*": ["src/platform/packages/private/shared-ux/page/kibana_no_data/types/*"], - "@kbn/shared-ux-page-kibana-template": ["packages/shared-ux/page/kibana_template/impl"], - "@kbn/shared-ux-page-kibana-template/*": ["packages/shared-ux/page/kibana_template/impl/*"], + "@kbn/shared-ux-page-kibana-template": ["src/platform/packages/shared/shared-ux/page/kibana_template/impl"], + "@kbn/shared-ux-page-kibana-template/*": ["src/platform/packages/shared/shared-ux/page/kibana_template/impl/*"], "@kbn/shared-ux-page-kibana-template-mocks": ["packages/shared-ux/page/kibana_template/mocks"], "@kbn/shared-ux-page-kibana-template-mocks/*": ["packages/shared-ux/page/kibana_template/mocks/*"], "@kbn/shared-ux-page-kibana-template-types": ["packages/shared-ux/page/kibana_template/types"], diff --git a/yarn.lock b/yarn.lock index 5dc6dcfb67266..27f62a72f69e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7376,7 +7376,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-kibana-template@link:packages/shared-ux/page/kibana_template/impl": +"@kbn/shared-ux-page-kibana-template@link:src/platform/packages/shared/shared-ux/page/kibana_template/impl": version "0.0.0" uid "" From 1fa92867f53e2ce362010365ab8dd92bdda1fc66 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:40:53 +0100 Subject: [PATCH 107/129] Relocating module `@kbn/shared-ux-page-kibana-template-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/page/kibana_template/mocks/README.mdx | 0 .../shared}/shared-ux/page/kibana_template/mocks/index.ts | 0 .../shared}/shared-ux/page/kibana_template/mocks/kibana.jsonc | 0 .../shared}/shared-ux/page/kibana_template/mocks/package.json | 0 .../shared}/shared-ux/page/kibana_template/mocks/src/jest.ts | 0 .../shared-ux/page/kibana_template/mocks/src/storybook/all.ts | 0 .../page/kibana_template/mocks/src/storybook/index.ts | 0 .../page/kibana_template/mocks/src/storybook/inner.tsx | 0 .../kibana_template/mocks/src/storybook/no_data_config.ts | 0 .../page/kibana_template/mocks/src/storybook/solution_nav.ts | 0 .../shared-ux/page/kibana_template/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/src/jest.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/src/storybook/all.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/src/storybook/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/mocks/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0dde40348a847..cd9ccb5d6290c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/kibana_template/mocks @elastic/appex-sharedux packages/shared-ux/page/kibana_template/types @elastic/appex-sharedux packages/shared-ux/page/no_data_config/impl @elastic/appex-sharedux packages/shared-ux/page/no_data_config/mocks @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/markdown/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/markdown/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/markdown/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/kibana_template/mocks @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index b13f68fce7c3d..39031ab232327 100644 --- a/package.json +++ b/package.json @@ -903,7 +903,7 @@ "@kbn/shared-ux-page-kibana-no-data-mocks": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/mocks", "@kbn/shared-ux-page-kibana-no-data-types": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/types", "@kbn/shared-ux-page-kibana-template": "link:src/platform/packages/shared/shared-ux/page/kibana_template/impl", - "@kbn/shared-ux-page-kibana-template-mocks": "link:packages/shared-ux/page/kibana_template/mocks", + "@kbn/shared-ux-page-kibana-template-mocks": "link:src/platform/packages/shared/shared-ux/page/kibana_template/mocks", "@kbn/shared-ux-page-kibana-template-types": "link:packages/shared-ux/page/kibana_template/types", "@kbn/shared-ux-page-no-data": "link:packages/shared-ux/page/no_data/impl", "@kbn/shared-ux-page-no-data-config": "link:packages/shared-ux/page/no_data_config/impl", diff --git a/packages/shared-ux/page/kibana_template/mocks/README.mdx b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/README.mdx similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/README.mdx rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/README.mdx diff --git a/packages/shared-ux/page/kibana_template/mocks/index.ts b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/index.ts similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/index.ts rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/index.ts diff --git a/packages/shared-ux/page/kibana_template/mocks/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/kibana.jsonc diff --git a/packages/shared-ux/page/kibana_template/mocks/package.json b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/package.json similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/package.json rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/package.json diff --git a/packages/shared-ux/page/kibana_template/mocks/src/jest.ts b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/jest.ts similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/src/jest.ts rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/jest.ts diff --git a/packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/src/storybook/all.ts rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/all.ts diff --git a/packages/shared-ux/page/kibana_template/mocks/src/storybook/index.ts b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/index.ts similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/src/storybook/index.ts rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/index.ts diff --git a/packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/inner.tsx diff --git a/packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/no_data_config.ts diff --git a/packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts similarity index 100% rename from packages/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/src/storybook/solution_nav.ts diff --git a/packages/shared-ux/page/kibana_template/mocks/tsconfig.json b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/tsconfig.json similarity index 87% rename from packages/shared-ux/page/kibana_template/mocks/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/kibana_template/mocks/tsconfig.json index 6a11b6ecad992..ff8275b11fe3e 100644 --- a/packages/shared-ux/page/kibana_template/mocks/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/kibana_template/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index f56e49fd55a78..788ee68360975 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1778,8 +1778,8 @@ "@kbn/shared-ux-page-kibana-no-data-types/*": ["src/platform/packages/private/shared-ux/page/kibana_no_data/types/*"], "@kbn/shared-ux-page-kibana-template": ["src/platform/packages/shared/shared-ux/page/kibana_template/impl"], "@kbn/shared-ux-page-kibana-template/*": ["src/platform/packages/shared/shared-ux/page/kibana_template/impl/*"], - "@kbn/shared-ux-page-kibana-template-mocks": ["packages/shared-ux/page/kibana_template/mocks"], - "@kbn/shared-ux-page-kibana-template-mocks/*": ["packages/shared-ux/page/kibana_template/mocks/*"], + "@kbn/shared-ux-page-kibana-template-mocks": ["src/platform/packages/shared/shared-ux/page/kibana_template/mocks"], + "@kbn/shared-ux-page-kibana-template-mocks/*": ["src/platform/packages/shared/shared-ux/page/kibana_template/mocks/*"], "@kbn/shared-ux-page-kibana-template-types": ["packages/shared-ux/page/kibana_template/types"], "@kbn/shared-ux-page-kibana-template-types/*": ["packages/shared-ux/page/kibana_template/types/*"], "@kbn/shared-ux-page-no-data": ["packages/shared-ux/page/no_data/impl"], diff --git a/yarn.lock b/yarn.lock index 27f62a72f69e9..93d9a3302eed0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7368,7 +7368,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-kibana-template-mocks@link:packages/shared-ux/page/kibana_template/mocks": +"@kbn/shared-ux-page-kibana-template-mocks@link:src/platform/packages/shared/shared-ux/page/kibana_template/mocks": version "0.0.0" uid "" From f00d6b465c0028d8307089709634f00ddbbb0003 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:42:23 +0100 Subject: [PATCH 108/129] Relocating module `@kbn/shared-ux-page-kibana-template-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/page/kibana_template/types/README.mdx | 0 .../shared}/shared-ux/page/kibana_template/types/index.d.ts | 0 .../shared}/shared-ux/page/kibana_template/types/kibana.jsonc | 0 .../shared}/shared-ux/page/kibana_template/types/package.json | 0 .../shared-ux/page/kibana_template/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/types/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/types/index.d.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/types/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/kibana_template/types/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cd9ccb5d6290c..3b2c2d8abc068 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/kibana_template/types @elastic/appex-sharedux packages/shared-ux/page/no_data_config/impl @elastic/appex-sharedux packages/shared-ux/page/no_data_config/mocks @elastic/appex-sharedux packages/shared-ux/page/no_data_config/types @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/markdown/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/markdown/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/mocks @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/kibana_template/types @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 39031ab232327..9122e2e01a571 100644 --- a/package.json +++ b/package.json @@ -904,7 +904,7 @@ "@kbn/shared-ux-page-kibana-no-data-types": "link:src/platform/packages/private/shared-ux/page/kibana_no_data/types", "@kbn/shared-ux-page-kibana-template": "link:src/platform/packages/shared/shared-ux/page/kibana_template/impl", "@kbn/shared-ux-page-kibana-template-mocks": "link:src/platform/packages/shared/shared-ux/page/kibana_template/mocks", - "@kbn/shared-ux-page-kibana-template-types": "link:packages/shared-ux/page/kibana_template/types", + "@kbn/shared-ux-page-kibana-template-types": "link:src/platform/packages/shared/shared-ux/page/kibana_template/types", "@kbn/shared-ux-page-no-data": "link:packages/shared-ux/page/no_data/impl", "@kbn/shared-ux-page-no-data-config": "link:packages/shared-ux/page/no_data_config/impl", "@kbn/shared-ux-page-no-data-config-mocks": "link:packages/shared-ux/page/no_data_config/mocks", diff --git a/packages/shared-ux/page/kibana_template/types/README.mdx b/src/platform/packages/shared/shared-ux/page/kibana_template/types/README.mdx similarity index 100% rename from packages/shared-ux/page/kibana_template/types/README.mdx rename to src/platform/packages/shared/shared-ux/page/kibana_template/types/README.mdx diff --git a/packages/shared-ux/page/kibana_template/types/index.d.ts b/src/platform/packages/shared/shared-ux/page/kibana_template/types/index.d.ts similarity index 100% rename from packages/shared-ux/page/kibana_template/types/index.d.ts rename to src/platform/packages/shared/shared-ux/page/kibana_template/types/index.d.ts diff --git a/packages/shared-ux/page/kibana_template/types/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/kibana_template/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/kibana_template/types/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/kibana_template/types/kibana.jsonc diff --git a/packages/shared-ux/page/kibana_template/types/package.json b/src/platform/packages/shared/shared-ux/page/kibana_template/types/package.json similarity index 100% rename from packages/shared-ux/page/kibana_template/types/package.json rename to src/platform/packages/shared/shared-ux/page/kibana_template/types/package.json diff --git a/packages/shared-ux/page/kibana_template/types/tsconfig.json b/src/platform/packages/shared/shared-ux/page/kibana_template/types/tsconfig.json similarity index 81% rename from packages/shared-ux/page/kibana_template/types/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/kibana_template/types/tsconfig.json index 8559d1570106c..2bcd7c9877d22 100644 --- a/packages/shared-ux/page/kibana_template/types/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/kibana_template/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [] diff --git a/tsconfig.base.json b/tsconfig.base.json index 788ee68360975..6e2b831f999f6 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1780,8 +1780,8 @@ "@kbn/shared-ux-page-kibana-template/*": ["src/platform/packages/shared/shared-ux/page/kibana_template/impl/*"], "@kbn/shared-ux-page-kibana-template-mocks": ["src/platform/packages/shared/shared-ux/page/kibana_template/mocks"], "@kbn/shared-ux-page-kibana-template-mocks/*": ["src/platform/packages/shared/shared-ux/page/kibana_template/mocks/*"], - "@kbn/shared-ux-page-kibana-template-types": ["packages/shared-ux/page/kibana_template/types"], - "@kbn/shared-ux-page-kibana-template-types/*": ["packages/shared-ux/page/kibana_template/types/*"], + "@kbn/shared-ux-page-kibana-template-types": ["src/platform/packages/shared/shared-ux/page/kibana_template/types"], + "@kbn/shared-ux-page-kibana-template-types/*": ["src/platform/packages/shared/shared-ux/page/kibana_template/types/*"], "@kbn/shared-ux-page-no-data": ["packages/shared-ux/page/no_data/impl"], "@kbn/shared-ux-page-no-data/*": ["packages/shared-ux/page/no_data/impl/*"], "@kbn/shared-ux-page-no-data-config": ["packages/shared-ux/page/no_data_config/impl"], diff --git a/yarn.lock b/yarn.lock index 93d9a3302eed0..cc6b6da0d0568 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7372,7 +7372,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-kibana-template-types@link:packages/shared-ux/page/kibana_template/types": +"@kbn/shared-ux-page-kibana-template-types@link:src/platform/packages/shared/shared-ux/page/kibana_template/types": version "0.0.0" uid "" From 16867a019ca10855480b07a06b8c76eaf4382f20 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:43:50 +0100 Subject: [PATCH 109/129] Relocating module `@kbn/shared-ux-page-no-data` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/page/no_data/impl/README.mdx | 0 .../packages/shared}/shared-ux/page/no_data/impl/index.ts | 0 .../shared}/shared-ux/page/no_data/impl/jest.config.js | 4 ++-- .../packages/shared}/shared-ux/page/no_data/impl/kibana.jsonc | 0 .../packages/shared}/shared-ux/page/no_data/impl/package.json | 0 .../shared}/shared-ux/page/no_data/impl/src/action_card.tsx | 0 .../shared-ux/page/no_data/impl/src/no_data_page.stories.tsx | 0 .../shared-ux/page/no_data/impl/src/no_data_page.test.tsx | 0 .../shared}/shared-ux/page/no_data/impl/src/no_data_page.tsx | 0 .../shared}/shared-ux/page/no_data/impl/src/services.tsx | 0 .../shared}/shared-ux/page/no_data/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/jest.config.js (81%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/src/action_card.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/src/no_data_page.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/src/no_data_page.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/src/no_data_page.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/impl/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3b2c2d8abc068..9b6a121c29f67 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -521,7 +521,6 @@ packages/shared-ux/modal/tabbed @elastic/appex-sharedux packages/shared-ux/page/no_data_config/impl @elastic/appex-sharedux packages/shared-ux/page/no_data_config/mocks @elastic/appex-sharedux packages/shared-ux/page/no_data_config/types @elastic/appex-sharedux -packages/shared-ux/page/no_data/impl @elastic/appex-sharedux packages/shared-ux/page/no_data/mocks @elastic/appex-sharedux packages/shared-ux/page/no_data/types @elastic/appex-sharedux packages/shared-ux/page/solution_nav @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/markdown/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/types @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/no_data/impl @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 9122e2e01a571..f24f71b511bec 100644 --- a/package.json +++ b/package.json @@ -905,7 +905,7 @@ "@kbn/shared-ux-page-kibana-template": "link:src/platform/packages/shared/shared-ux/page/kibana_template/impl", "@kbn/shared-ux-page-kibana-template-mocks": "link:src/platform/packages/shared/shared-ux/page/kibana_template/mocks", "@kbn/shared-ux-page-kibana-template-types": "link:src/platform/packages/shared/shared-ux/page/kibana_template/types", - "@kbn/shared-ux-page-no-data": "link:packages/shared-ux/page/no_data/impl", + "@kbn/shared-ux-page-no-data": "link:src/platform/packages/shared/shared-ux/page/no_data/impl", "@kbn/shared-ux-page-no-data-config": "link:packages/shared-ux/page/no_data_config/impl", "@kbn/shared-ux-page-no-data-config-mocks": "link:packages/shared-ux/page/no_data_config/mocks", "@kbn/shared-ux-page-no-data-config-types": "link:packages/shared-ux/page/no_data_config/types", diff --git a/packages/shared-ux/page/no_data/impl/README.mdx b/src/platform/packages/shared/shared-ux/page/no_data/impl/README.mdx similarity index 100% rename from packages/shared-ux/page/no_data/impl/README.mdx rename to src/platform/packages/shared/shared-ux/page/no_data/impl/README.mdx diff --git a/packages/shared-ux/page/no_data/impl/index.ts b/src/platform/packages/shared/shared-ux/page/no_data/impl/index.ts similarity index 100% rename from packages/shared-ux/page/no_data/impl/index.ts rename to src/platform/packages/shared/shared-ux/page/no_data/impl/index.ts diff --git a/packages/shared-ux/page/no_data/impl/jest.config.js b/src/platform/packages/shared/shared-ux/page/no_data/impl/jest.config.js similarity index 81% rename from packages/shared-ux/page/no_data/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/page/no_data/impl/jest.config.js index b395326a60e66..7c6e79f5a920a 100644 --- a/packages/shared-ux/page/no_data/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/page/no_data/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', - roots: ['/packages/shared-ux/page/no_data/impl'], + rootDir: '../../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/page/no_data/impl'], }; diff --git a/packages/shared-ux/page/no_data/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/no_data/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/no_data/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/no_data/impl/kibana.jsonc diff --git a/packages/shared-ux/page/no_data/impl/package.json b/src/platform/packages/shared/shared-ux/page/no_data/impl/package.json similarity index 100% rename from packages/shared-ux/page/no_data/impl/package.json rename to src/platform/packages/shared/shared-ux/page/no_data/impl/package.json diff --git a/packages/shared-ux/page/no_data/impl/src/action_card.tsx b/src/platform/packages/shared/shared-ux/page/no_data/impl/src/action_card.tsx similarity index 100% rename from packages/shared-ux/page/no_data/impl/src/action_card.tsx rename to src/platform/packages/shared/shared-ux/page/no_data/impl/src/action_card.tsx diff --git a/packages/shared-ux/page/no_data/impl/src/no_data_page.stories.tsx b/src/platform/packages/shared/shared-ux/page/no_data/impl/src/no_data_page.stories.tsx similarity index 100% rename from packages/shared-ux/page/no_data/impl/src/no_data_page.stories.tsx rename to src/platform/packages/shared/shared-ux/page/no_data/impl/src/no_data_page.stories.tsx diff --git a/packages/shared-ux/page/no_data/impl/src/no_data_page.test.tsx b/src/platform/packages/shared/shared-ux/page/no_data/impl/src/no_data_page.test.tsx similarity index 100% rename from packages/shared-ux/page/no_data/impl/src/no_data_page.test.tsx rename to src/platform/packages/shared/shared-ux/page/no_data/impl/src/no_data_page.test.tsx diff --git a/packages/shared-ux/page/no_data/impl/src/no_data_page.tsx b/src/platform/packages/shared/shared-ux/page/no_data/impl/src/no_data_page.tsx similarity index 100% rename from packages/shared-ux/page/no_data/impl/src/no_data_page.tsx rename to src/platform/packages/shared/shared-ux/page/no_data/impl/src/no_data_page.tsx diff --git a/packages/shared-ux/page/no_data/impl/src/services.tsx b/src/platform/packages/shared/shared-ux/page/no_data/impl/src/services.tsx similarity index 100% rename from packages/shared-ux/page/no_data/impl/src/services.tsx rename to src/platform/packages/shared/shared-ux/page/no_data/impl/src/services.tsx diff --git a/packages/shared-ux/page/no_data/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/page/no_data/impl/tsconfig.json similarity index 89% rename from packages/shared-ux/page/no_data/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/no_data/impl/tsconfig.json index d36c0c9a9ff95..e2cf4cc1ba6e2 100644 --- a/packages/shared-ux/page/no_data/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/no_data/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 6e2b831f999f6..23fb6c3671975 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1782,8 +1782,8 @@ "@kbn/shared-ux-page-kibana-template-mocks/*": ["src/platform/packages/shared/shared-ux/page/kibana_template/mocks/*"], "@kbn/shared-ux-page-kibana-template-types": ["src/platform/packages/shared/shared-ux/page/kibana_template/types"], "@kbn/shared-ux-page-kibana-template-types/*": ["src/platform/packages/shared/shared-ux/page/kibana_template/types/*"], - "@kbn/shared-ux-page-no-data": ["packages/shared-ux/page/no_data/impl"], - "@kbn/shared-ux-page-no-data/*": ["packages/shared-ux/page/no_data/impl/*"], + "@kbn/shared-ux-page-no-data": ["src/platform/packages/shared/shared-ux/page/no_data/impl"], + "@kbn/shared-ux-page-no-data/*": ["src/platform/packages/shared/shared-ux/page/no_data/impl/*"], "@kbn/shared-ux-page-no-data-config": ["packages/shared-ux/page/no_data_config/impl"], "@kbn/shared-ux-page-no-data-config/*": ["packages/shared-ux/page/no_data_config/impl/*"], "@kbn/shared-ux-page-no-data-config-mocks": ["packages/shared-ux/page/no_data_config/mocks"], diff --git a/yarn.lock b/yarn.lock index cc6b6da0d0568..740b243ccbc96 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7400,7 +7400,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-no-data@link:packages/shared-ux/page/no_data/impl": +"@kbn/shared-ux-page-no-data@link:src/platform/packages/shared/shared-ux/page/no_data/impl": version "0.0.0" uid "" From d8273211804d1b248049e87f7cff68460cf89921 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:45:21 +0100 Subject: [PATCH 110/129] Relocating module `@kbn/shared-ux-page-no-data-config` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/page/no_data_config/impl/README.mdx | 0 .../shared}/shared-ux/page/no_data_config/impl/index.ts | 0 .../shared}/shared-ux/page/no_data_config/impl/jest.config.js | 4 ++-- .../shared}/shared-ux/page/no_data_config/impl/kibana.jsonc | 0 .../shared}/shared-ux/page/no_data_config/impl/package.json | 0 .../shared-ux/page/no_data_config/impl/src/constants.ts | 0 .../no_data_config/impl/src/no_data_config_page.stories.tsx | 0 .../page/no_data_config/impl/src/no_data_config_page.test.tsx | 0 .../page/no_data_config/impl/src/no_data_config_page.tsx | 0 .../shared-ux/page/no_data_config/impl/src/services.tsx | 0 .../shared}/shared-ux/page/no_data_config/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/jest.config.js (80%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/src/constants.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/src/no_data_config_page.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/src/no_data_config_page.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/impl/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9b6a121c29f67..1abd804cb624d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/no_data_config/impl @elastic/appex-sharedux packages/shared-ux/page/no_data_config/mocks @elastic/appex-sharedux packages/shared-ux/page/no_data_config/types @elastic/appex-sharedux packages/shared-ux/page/no_data/mocks @elastic/appex-sharedux @@ -622,6 +621,7 @@ src/platform/packages/shared/shared-ux/markdown/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/types @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/no_data_config/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/impl @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/platform/plugins/private/files_management @elastic/appex-sharedux diff --git a/package.json b/package.json index f24f71b511bec..2ca64cb2622e7 100644 --- a/package.json +++ b/package.json @@ -906,7 +906,7 @@ "@kbn/shared-ux-page-kibana-template-mocks": "link:src/platform/packages/shared/shared-ux/page/kibana_template/mocks", "@kbn/shared-ux-page-kibana-template-types": "link:src/platform/packages/shared/shared-ux/page/kibana_template/types", "@kbn/shared-ux-page-no-data": "link:src/platform/packages/shared/shared-ux/page/no_data/impl", - "@kbn/shared-ux-page-no-data-config": "link:packages/shared-ux/page/no_data_config/impl", + "@kbn/shared-ux-page-no-data-config": "link:src/platform/packages/shared/shared-ux/page/no_data_config/impl", "@kbn/shared-ux-page-no-data-config-mocks": "link:packages/shared-ux/page/no_data_config/mocks", "@kbn/shared-ux-page-no-data-config-types": "link:packages/shared-ux/page/no_data_config/types", "@kbn/shared-ux-page-no-data-mocks": "link:packages/shared-ux/page/no_data/mocks", diff --git a/packages/shared-ux/page/no_data_config/impl/README.mdx b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/README.mdx similarity index 100% rename from packages/shared-ux/page/no_data_config/impl/README.mdx rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/README.mdx diff --git a/packages/shared-ux/page/no_data_config/impl/index.ts b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/index.ts similarity index 100% rename from packages/shared-ux/page/no_data_config/impl/index.ts rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/index.ts diff --git a/packages/shared-ux/page/no_data_config/impl/jest.config.js b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/jest.config.js similarity index 80% rename from packages/shared-ux/page/no_data_config/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/jest.config.js index f207186b17d4f..f01bdb06630d3 100644 --- a/packages/shared-ux/page/no_data_config/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', - roots: ['/packages/shared-ux/page/no_data_config/impl'], + rootDir: '../../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/page/no_data_config/impl'], }; diff --git a/packages/shared-ux/page/no_data_config/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/no_data_config/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/kibana.jsonc diff --git a/packages/shared-ux/page/no_data_config/impl/package.json b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/package.json similarity index 100% rename from packages/shared-ux/page/no_data_config/impl/package.json rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/package.json diff --git a/packages/shared-ux/page/no_data_config/impl/src/constants.ts b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/constants.ts similarity index 100% rename from packages/shared-ux/page/no_data_config/impl/src/constants.ts rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/constants.ts diff --git a/packages/shared-ux/page/no_data_config/impl/src/no_data_config_page.stories.tsx b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/no_data_config_page.stories.tsx similarity index 100% rename from packages/shared-ux/page/no_data_config/impl/src/no_data_config_page.stories.tsx rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/no_data_config_page.stories.tsx diff --git a/packages/shared-ux/page/no_data_config/impl/src/no_data_config_page.test.tsx b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/no_data_config_page.test.tsx similarity index 100% rename from packages/shared-ux/page/no_data_config/impl/src/no_data_config_page.test.tsx rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/no_data_config_page.test.tsx diff --git a/packages/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx similarity index 100% rename from packages/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/no_data_config_page.tsx diff --git a/packages/shared-ux/page/no_data_config/impl/src/services.tsx b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/services.tsx similarity index 100% rename from packages/shared-ux/page/no_data_config/impl/src/services.tsx rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/src/services.tsx diff --git a/packages/shared-ux/page/no_data_config/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/tsconfig.json similarity index 88% rename from packages/shared-ux/page/no_data_config/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/no_data_config/impl/tsconfig.json index f30535d1df3e0..1096d93de1a0c 100644 --- a/packages/shared-ux/page/no_data_config/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/no_data_config/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 23fb6c3671975..80b48e35845f0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1784,8 +1784,8 @@ "@kbn/shared-ux-page-kibana-template-types/*": ["src/platform/packages/shared/shared-ux/page/kibana_template/types/*"], "@kbn/shared-ux-page-no-data": ["src/platform/packages/shared/shared-ux/page/no_data/impl"], "@kbn/shared-ux-page-no-data/*": ["src/platform/packages/shared/shared-ux/page/no_data/impl/*"], - "@kbn/shared-ux-page-no-data-config": ["packages/shared-ux/page/no_data_config/impl"], - "@kbn/shared-ux-page-no-data-config/*": ["packages/shared-ux/page/no_data_config/impl/*"], + "@kbn/shared-ux-page-no-data-config": ["src/platform/packages/shared/shared-ux/page/no_data_config/impl"], + "@kbn/shared-ux-page-no-data-config/*": ["src/platform/packages/shared/shared-ux/page/no_data_config/impl/*"], "@kbn/shared-ux-page-no-data-config-mocks": ["packages/shared-ux/page/no_data_config/mocks"], "@kbn/shared-ux-page-no-data-config-mocks/*": ["packages/shared-ux/page/no_data_config/mocks/*"], "@kbn/shared-ux-page-no-data-config-types": ["packages/shared-ux/page/no_data_config/types"], diff --git a/yarn.lock b/yarn.lock index 740b243ccbc96..1f64b526a069a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7388,7 +7388,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-no-data-config@link:packages/shared-ux/page/no_data_config/impl": +"@kbn/shared-ux-page-no-data-config@link:src/platform/packages/shared/shared-ux/page/no_data_config/impl": version "0.0.0" uid "" From d602c6c3e87a71f62e2ca0cfde3a1a14181e1aa4 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:46:49 +0100 Subject: [PATCH 111/129] Relocating module `@kbn/shared-ux-page-no-data-config-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/page/no_data_config/mocks/README.md | 0 .../shared}/shared-ux/page/no_data_config/mocks/index.ts | 0 .../shared}/shared-ux/page/no_data_config/mocks/kibana.jsonc | 0 .../shared}/shared-ux/page/no_data_config/mocks/package.json | 0 .../shared}/shared-ux/page/no_data_config/mocks/src/jest.ts | 0 .../shared-ux/page/no_data_config/mocks/src/storybook.ts | 0 .../shared}/shared-ux/page/no_data_config/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/mocks/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/mocks/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/mocks/src/jest.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/mocks/src/storybook.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/mocks/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1abd804cb624d..48bbbdd6afeb6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/no_data_config/mocks @elastic/appex-sharedux packages/shared-ux/page/no_data_config/types @elastic/appex-sharedux packages/shared-ux/page/no_data/mocks @elastic/appex-sharedux packages/shared-ux/page/no_data/types @elastic/appex-sharedux @@ -622,6 +621,7 @@ src/platform/packages/shared/shared-ux/page/kibana_template/impl @elastic/appex- src/platform/packages/shared/shared-ux/page/kibana_template/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/kibana_template/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data_config/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/no_data_config/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/impl @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/platform/plugins/private/files_management @elastic/appex-sharedux diff --git a/package.json b/package.json index 2ca64cb2622e7..816e13663587b 100644 --- a/package.json +++ b/package.json @@ -907,7 +907,7 @@ "@kbn/shared-ux-page-kibana-template-types": "link:src/platform/packages/shared/shared-ux/page/kibana_template/types", "@kbn/shared-ux-page-no-data": "link:src/platform/packages/shared/shared-ux/page/no_data/impl", "@kbn/shared-ux-page-no-data-config": "link:src/platform/packages/shared/shared-ux/page/no_data_config/impl", - "@kbn/shared-ux-page-no-data-config-mocks": "link:packages/shared-ux/page/no_data_config/mocks", + "@kbn/shared-ux-page-no-data-config-mocks": "link:src/platform/packages/shared/shared-ux/page/no_data_config/mocks", "@kbn/shared-ux-page-no-data-config-types": "link:packages/shared-ux/page/no_data_config/types", "@kbn/shared-ux-page-no-data-mocks": "link:packages/shared-ux/page/no_data/mocks", "@kbn/shared-ux-page-no-data-types": "link:packages/shared-ux/page/no_data/types", diff --git a/packages/shared-ux/page/no_data_config/mocks/README.md b/src/platform/packages/shared/shared-ux/page/no_data_config/mocks/README.md similarity index 100% rename from packages/shared-ux/page/no_data_config/mocks/README.md rename to src/platform/packages/shared/shared-ux/page/no_data_config/mocks/README.md diff --git a/packages/shared-ux/page/no_data_config/mocks/index.ts b/src/platform/packages/shared/shared-ux/page/no_data_config/mocks/index.ts similarity index 100% rename from packages/shared-ux/page/no_data_config/mocks/index.ts rename to src/platform/packages/shared/shared-ux/page/no_data_config/mocks/index.ts diff --git a/packages/shared-ux/page/no_data_config/mocks/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/no_data_config/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/no_data_config/mocks/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/no_data_config/mocks/kibana.jsonc diff --git a/packages/shared-ux/page/no_data_config/mocks/package.json b/src/platform/packages/shared/shared-ux/page/no_data_config/mocks/package.json similarity index 100% rename from packages/shared-ux/page/no_data_config/mocks/package.json rename to src/platform/packages/shared/shared-ux/page/no_data_config/mocks/package.json diff --git a/packages/shared-ux/page/no_data_config/mocks/src/jest.ts b/src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/jest.ts similarity index 100% rename from packages/shared-ux/page/no_data_config/mocks/src/jest.ts rename to src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/jest.ts diff --git a/packages/shared-ux/page/no_data_config/mocks/src/storybook.ts b/src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts similarity index 100% rename from packages/shared-ux/page/no_data_config/mocks/src/storybook.ts rename to src/platform/packages/shared/shared-ux/page/no_data_config/mocks/src/storybook.ts diff --git a/packages/shared-ux/page/no_data_config/mocks/tsconfig.json b/src/platform/packages/shared/shared-ux/page/no_data_config/mocks/tsconfig.json similarity index 85% rename from packages/shared-ux/page/no_data_config/mocks/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/no_data_config/mocks/tsconfig.json index 8512e6c9fe15c..6884ffe40e8df 100644 --- a/packages/shared-ux/page/no_data_config/mocks/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/no_data_config/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 80b48e35845f0..0d48e08423457 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1786,8 +1786,8 @@ "@kbn/shared-ux-page-no-data/*": ["src/platform/packages/shared/shared-ux/page/no_data/impl/*"], "@kbn/shared-ux-page-no-data-config": ["src/platform/packages/shared/shared-ux/page/no_data_config/impl"], "@kbn/shared-ux-page-no-data-config/*": ["src/platform/packages/shared/shared-ux/page/no_data_config/impl/*"], - "@kbn/shared-ux-page-no-data-config-mocks": ["packages/shared-ux/page/no_data_config/mocks"], - "@kbn/shared-ux-page-no-data-config-mocks/*": ["packages/shared-ux/page/no_data_config/mocks/*"], + "@kbn/shared-ux-page-no-data-config-mocks": ["src/platform/packages/shared/shared-ux/page/no_data_config/mocks"], + "@kbn/shared-ux-page-no-data-config-mocks/*": ["src/platform/packages/shared/shared-ux/page/no_data_config/mocks/*"], "@kbn/shared-ux-page-no-data-config-types": ["packages/shared-ux/page/no_data_config/types"], "@kbn/shared-ux-page-no-data-config-types/*": ["packages/shared-ux/page/no_data_config/types/*"], "@kbn/shared-ux-page-no-data-mocks": ["packages/shared-ux/page/no_data/mocks"], diff --git a/yarn.lock b/yarn.lock index 1f64b526a069a..b1d333ce700db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7380,7 +7380,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-no-data-config-mocks@link:packages/shared-ux/page/no_data_config/mocks": +"@kbn/shared-ux-page-no-data-config-mocks@link:src/platform/packages/shared/shared-ux/page/no_data_config/mocks": version "0.0.0" uid "" From c88a80bd688b378555b595a7bdca1f3845122dd8 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:48:14 +0100 Subject: [PATCH 112/129] Relocating module `@kbn/shared-ux-page-no-data-config-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/page/no_data_config/types/README.md | 0 .../shared}/shared-ux/page/no_data_config/types/index.d.ts | 0 .../shared}/shared-ux/page/no_data_config/types/kibana.jsonc | 0 .../shared}/shared-ux/page/no_data_config/types/package.json | 0 .../shared}/shared-ux/page/no_data_config/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/types/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/types/index.d.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/types/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data_config/types/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 48bbbdd6afeb6..48e1fa070bfa9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/no_data_config/types @elastic/appex-sharedux packages/shared-ux/page/no_data/mocks @elastic/appex-sharedux packages/shared-ux/page/no_data/types @elastic/appex-sharedux packages/shared-ux/page/solution_nav @elastic/appex-sharedux @@ -622,6 +621,7 @@ src/platform/packages/shared/shared-ux/page/kibana_template/mocks @elastic/appex src/platform/packages/shared/shared-ux/page/kibana_template/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data_config/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data_config/mocks @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/no_data_config/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/impl @elastic/appex-sharedux src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/platform/plugins/private/files_management @elastic/appex-sharedux diff --git a/package.json b/package.json index 816e13663587b..f16d86c7a4da8 100644 --- a/package.json +++ b/package.json @@ -908,7 +908,7 @@ "@kbn/shared-ux-page-no-data": "link:src/platform/packages/shared/shared-ux/page/no_data/impl", "@kbn/shared-ux-page-no-data-config": "link:src/platform/packages/shared/shared-ux/page/no_data_config/impl", "@kbn/shared-ux-page-no-data-config-mocks": "link:src/platform/packages/shared/shared-ux/page/no_data_config/mocks", - "@kbn/shared-ux-page-no-data-config-types": "link:packages/shared-ux/page/no_data_config/types", + "@kbn/shared-ux-page-no-data-config-types": "link:src/platform/packages/shared/shared-ux/page/no_data_config/types", "@kbn/shared-ux-page-no-data-mocks": "link:packages/shared-ux/page/no_data/mocks", "@kbn/shared-ux-page-no-data-types": "link:packages/shared-ux/page/no_data/types", "@kbn/shared-ux-page-solution-nav": "link:packages/shared-ux/page/solution_nav", diff --git a/packages/shared-ux/page/no_data_config/types/README.md b/src/platform/packages/shared/shared-ux/page/no_data_config/types/README.md similarity index 100% rename from packages/shared-ux/page/no_data_config/types/README.md rename to src/platform/packages/shared/shared-ux/page/no_data_config/types/README.md diff --git a/packages/shared-ux/page/no_data_config/types/index.d.ts b/src/platform/packages/shared/shared-ux/page/no_data_config/types/index.d.ts similarity index 100% rename from packages/shared-ux/page/no_data_config/types/index.d.ts rename to src/platform/packages/shared/shared-ux/page/no_data_config/types/index.d.ts diff --git a/packages/shared-ux/page/no_data_config/types/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/no_data_config/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/no_data_config/types/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/no_data_config/types/kibana.jsonc diff --git a/packages/shared-ux/page/no_data_config/types/package.json b/src/platform/packages/shared/shared-ux/page/no_data_config/types/package.json similarity index 100% rename from packages/shared-ux/page/no_data_config/types/package.json rename to src/platform/packages/shared/shared-ux/page/no_data_config/types/package.json diff --git a/packages/shared-ux/page/no_data_config/types/tsconfig.json b/src/platform/packages/shared/shared-ux/page/no_data_config/types/tsconfig.json similarity index 78% rename from packages/shared-ux/page/no_data_config/types/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/no_data_config/types/tsconfig.json index 0a4ee6d632cc4..be3cb03df3949 100644 --- a/packages/shared-ux/page/no_data_config/types/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/no_data_config/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [] diff --git a/tsconfig.base.json b/tsconfig.base.json index 0d48e08423457..9feda51ad7cb2 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1788,8 +1788,8 @@ "@kbn/shared-ux-page-no-data-config/*": ["src/platform/packages/shared/shared-ux/page/no_data_config/impl/*"], "@kbn/shared-ux-page-no-data-config-mocks": ["src/platform/packages/shared/shared-ux/page/no_data_config/mocks"], "@kbn/shared-ux-page-no-data-config-mocks/*": ["src/platform/packages/shared/shared-ux/page/no_data_config/mocks/*"], - "@kbn/shared-ux-page-no-data-config-types": ["packages/shared-ux/page/no_data_config/types"], - "@kbn/shared-ux-page-no-data-config-types/*": ["packages/shared-ux/page/no_data_config/types/*"], + "@kbn/shared-ux-page-no-data-config-types": ["src/platform/packages/shared/shared-ux/page/no_data_config/types"], + "@kbn/shared-ux-page-no-data-config-types/*": ["src/platform/packages/shared/shared-ux/page/no_data_config/types/*"], "@kbn/shared-ux-page-no-data-mocks": ["packages/shared-ux/page/no_data/mocks"], "@kbn/shared-ux-page-no-data-mocks/*": ["packages/shared-ux/page/no_data/mocks/*"], "@kbn/shared-ux-page-no-data-types": ["packages/shared-ux/page/no_data/types"], diff --git a/yarn.lock b/yarn.lock index b1d333ce700db..fbc9dd3efd293 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7384,7 +7384,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-no-data-config-types@link:packages/shared-ux/page/no_data_config/types": +"@kbn/shared-ux-page-no-data-config-types@link:src/platform/packages/shared/shared-ux/page/no_data_config/types": version "0.0.0" uid "" From 0eb7a837e59e2ab9664228c7b458820f6961d1b1 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:49:44 +0100 Subject: [PATCH 113/129] Relocating module `@kbn/shared-ux-page-no-data-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/page/no_data/mocks/README.md | 0 .../packages/shared}/shared-ux/page/no_data/mocks/index.ts | 0 .../shared}/shared-ux/page/no_data/mocks/kibana.jsonc | 0 .../shared}/shared-ux/page/no_data/mocks/package.json | 0 .../packages/shared}/shared-ux/page/no_data/mocks/src/jest.ts | 0 .../shared}/shared-ux/page/no_data/mocks/src/storybook.ts | 0 .../shared}/shared-ux/page/no_data/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/mocks/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/mocks/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/mocks/src/jest.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/mocks/src/storybook.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/mocks/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 48e1fa070bfa9..369042fb4ffa0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/no_data/mocks @elastic/appex-sharedux packages/shared-ux/page/no_data/types @elastic/appex-sharedux packages/shared-ux/page/solution_nav @elastic/appex-sharedux packages/shared-ux/prompt/no_data_views/impl @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/page/no_data_config/impl @elastic/appex-s src/platform/packages/shared/shared-ux/page/no_data_config/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data_config/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/no_data/mocks @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index f16d86c7a4da8..3af2e1d592000 100644 --- a/package.json +++ b/package.json @@ -909,7 +909,7 @@ "@kbn/shared-ux-page-no-data-config": "link:src/platform/packages/shared/shared-ux/page/no_data_config/impl", "@kbn/shared-ux-page-no-data-config-mocks": "link:src/platform/packages/shared/shared-ux/page/no_data_config/mocks", "@kbn/shared-ux-page-no-data-config-types": "link:src/platform/packages/shared/shared-ux/page/no_data_config/types", - "@kbn/shared-ux-page-no-data-mocks": "link:packages/shared-ux/page/no_data/mocks", + "@kbn/shared-ux-page-no-data-mocks": "link:src/platform/packages/shared/shared-ux/page/no_data/mocks", "@kbn/shared-ux-page-no-data-types": "link:packages/shared-ux/page/no_data/types", "@kbn/shared-ux-page-solution-nav": "link:packages/shared-ux/page/solution_nav", "@kbn/shared-ux-prompt-no-data-views": "link:packages/shared-ux/prompt/no_data_views/impl", diff --git a/packages/shared-ux/page/no_data/mocks/README.md b/src/platform/packages/shared/shared-ux/page/no_data/mocks/README.md similarity index 100% rename from packages/shared-ux/page/no_data/mocks/README.md rename to src/platform/packages/shared/shared-ux/page/no_data/mocks/README.md diff --git a/packages/shared-ux/page/no_data/mocks/index.ts b/src/platform/packages/shared/shared-ux/page/no_data/mocks/index.ts similarity index 100% rename from packages/shared-ux/page/no_data/mocks/index.ts rename to src/platform/packages/shared/shared-ux/page/no_data/mocks/index.ts diff --git a/packages/shared-ux/page/no_data/mocks/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/no_data/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/no_data/mocks/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/no_data/mocks/kibana.jsonc diff --git a/packages/shared-ux/page/no_data/mocks/package.json b/src/platform/packages/shared/shared-ux/page/no_data/mocks/package.json similarity index 100% rename from packages/shared-ux/page/no_data/mocks/package.json rename to src/platform/packages/shared/shared-ux/page/no_data/mocks/package.json diff --git a/packages/shared-ux/page/no_data/mocks/src/jest.ts b/src/platform/packages/shared/shared-ux/page/no_data/mocks/src/jest.ts similarity index 100% rename from packages/shared-ux/page/no_data/mocks/src/jest.ts rename to src/platform/packages/shared/shared-ux/page/no_data/mocks/src/jest.ts diff --git a/packages/shared-ux/page/no_data/mocks/src/storybook.ts b/src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts similarity index 100% rename from packages/shared-ux/page/no_data/mocks/src/storybook.ts rename to src/platform/packages/shared/shared-ux/page/no_data/mocks/src/storybook.ts diff --git a/packages/shared-ux/page/no_data/mocks/tsconfig.json b/src/platform/packages/shared/shared-ux/page/no_data/mocks/tsconfig.json similarity index 85% rename from packages/shared-ux/page/no_data/mocks/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/no_data/mocks/tsconfig.json index a7ff059474ecd..69df96b6cc570 100644 --- a/packages/shared-ux/page/no_data/mocks/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/no_data/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 9feda51ad7cb2..81d13b2bdb05b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1790,8 +1790,8 @@ "@kbn/shared-ux-page-no-data-config-mocks/*": ["src/platform/packages/shared/shared-ux/page/no_data_config/mocks/*"], "@kbn/shared-ux-page-no-data-config-types": ["src/platform/packages/shared/shared-ux/page/no_data_config/types"], "@kbn/shared-ux-page-no-data-config-types/*": ["src/platform/packages/shared/shared-ux/page/no_data_config/types/*"], - "@kbn/shared-ux-page-no-data-mocks": ["packages/shared-ux/page/no_data/mocks"], - "@kbn/shared-ux-page-no-data-mocks/*": ["packages/shared-ux/page/no_data/mocks/*"], + "@kbn/shared-ux-page-no-data-mocks": ["src/platform/packages/shared/shared-ux/page/no_data/mocks"], + "@kbn/shared-ux-page-no-data-mocks/*": ["src/platform/packages/shared/shared-ux/page/no_data/mocks/*"], "@kbn/shared-ux-page-no-data-types": ["packages/shared-ux/page/no_data/types"], "@kbn/shared-ux-page-no-data-types/*": ["packages/shared-ux/page/no_data/types/*"], "@kbn/shared-ux-page-solution-nav": ["packages/shared-ux/page/solution_nav"], diff --git a/yarn.lock b/yarn.lock index fbc9dd3efd293..487a1e67fb2dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7392,7 +7392,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-no-data-mocks@link:packages/shared-ux/page/no_data/mocks": +"@kbn/shared-ux-page-no-data-mocks@link:src/platform/packages/shared/shared-ux/page/no_data/mocks": version "0.0.0" uid "" From 1879f914e9924fb99b6521b5eca1796d305d9f20 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:51:11 +0100 Subject: [PATCH 114/129] Relocating module `@kbn/shared-ux-page-no-data-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/page/no_data/types/README.mdx | 0 .../packages/shared}/shared-ux/page/no_data/types/index.d.ts | 0 .../shared}/shared-ux/page/no_data/types/kibana.jsonc | 0 .../shared}/shared-ux/page/no_data/types/package.json | 0 .../shared}/shared-ux/page/no_data/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/types/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/types/index.d.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/types/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/no_data/types/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 369042fb4ffa0..ac4f9ad829658 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/no_data/types @elastic/appex-sharedux packages/shared-ux/page/solution_nav @elastic/appex-sharedux packages/shared-ux/prompt/no_data_views/impl @elastic/appex-sharedux packages/shared-ux/prompt/no_data_views/mocks @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/page/no_data_config/mocks @elastic/appex- src/platform/packages/shared/shared-ux/page/no_data_config/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/mocks @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/no_data/types @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 3af2e1d592000..e28bebd1cd7d5 100644 --- a/package.json +++ b/package.json @@ -910,7 +910,7 @@ "@kbn/shared-ux-page-no-data-config-mocks": "link:src/platform/packages/shared/shared-ux/page/no_data_config/mocks", "@kbn/shared-ux-page-no-data-config-types": "link:src/platform/packages/shared/shared-ux/page/no_data_config/types", "@kbn/shared-ux-page-no-data-mocks": "link:src/platform/packages/shared/shared-ux/page/no_data/mocks", - "@kbn/shared-ux-page-no-data-types": "link:packages/shared-ux/page/no_data/types", + "@kbn/shared-ux-page-no-data-types": "link:src/platform/packages/shared/shared-ux/page/no_data/types", "@kbn/shared-ux-page-solution-nav": "link:packages/shared-ux/page/solution_nav", "@kbn/shared-ux-prompt-no-data-views": "link:packages/shared-ux/prompt/no_data_views/impl", "@kbn/shared-ux-prompt-no-data-views-mocks": "link:packages/shared-ux/prompt/no_data_views/mocks", diff --git a/packages/shared-ux/page/no_data/types/README.mdx b/src/platform/packages/shared/shared-ux/page/no_data/types/README.mdx similarity index 100% rename from packages/shared-ux/page/no_data/types/README.mdx rename to src/platform/packages/shared/shared-ux/page/no_data/types/README.mdx diff --git a/packages/shared-ux/page/no_data/types/index.d.ts b/src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts similarity index 100% rename from packages/shared-ux/page/no_data/types/index.d.ts rename to src/platform/packages/shared/shared-ux/page/no_data/types/index.d.ts diff --git a/packages/shared-ux/page/no_data/types/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/no_data/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/no_data/types/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/no_data/types/kibana.jsonc diff --git a/packages/shared-ux/page/no_data/types/package.json b/src/platform/packages/shared/shared-ux/page/no_data/types/package.json similarity index 100% rename from packages/shared-ux/page/no_data/types/package.json rename to src/platform/packages/shared/shared-ux/page/no_data/types/package.json diff --git a/packages/shared-ux/page/no_data/types/tsconfig.json b/src/platform/packages/shared/shared-ux/page/no_data/types/tsconfig.json similarity index 78% rename from packages/shared-ux/page/no_data/types/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/no_data/types/tsconfig.json index cb496086a1a06..6a4a6cc7d8fea 100644 --- a/packages/shared-ux/page/no_data/types/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/no_data/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [] diff --git a/tsconfig.base.json b/tsconfig.base.json index 81d13b2bdb05b..dde3285af508d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1792,8 +1792,8 @@ "@kbn/shared-ux-page-no-data-config-types/*": ["src/platform/packages/shared/shared-ux/page/no_data_config/types/*"], "@kbn/shared-ux-page-no-data-mocks": ["src/platform/packages/shared/shared-ux/page/no_data/mocks"], "@kbn/shared-ux-page-no-data-mocks/*": ["src/platform/packages/shared/shared-ux/page/no_data/mocks/*"], - "@kbn/shared-ux-page-no-data-types": ["packages/shared-ux/page/no_data/types"], - "@kbn/shared-ux-page-no-data-types/*": ["packages/shared-ux/page/no_data/types/*"], + "@kbn/shared-ux-page-no-data-types": ["src/platform/packages/shared/shared-ux/page/no_data/types"], + "@kbn/shared-ux-page-no-data-types/*": ["src/platform/packages/shared/shared-ux/page/no_data/types/*"], "@kbn/shared-ux-page-solution-nav": ["packages/shared-ux/page/solution_nav"], "@kbn/shared-ux-page-solution-nav/*": ["packages/shared-ux/page/solution_nav/*"], "@kbn/shared-ux-prompt-no-data-views": ["packages/shared-ux/prompt/no_data_views/impl"], diff --git a/yarn.lock b/yarn.lock index 487a1e67fb2dd..329b10a7e07e0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7396,7 +7396,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-no-data-types@link:packages/shared-ux/page/no_data/types": +"@kbn/shared-ux-page-no-data-types@link:src/platform/packages/shared/shared-ux/page/no_data/types": version "0.0.0" uid "" From 71b7d7f3497082cd3c3d55304033ffbb67df4469 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:52:43 +0100 Subject: [PATCH 115/129] Relocating module `@kbn/shared-ux-page-solution-nav` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/page/solution_nav/README.mdx | 0 .../packages/shared}/shared-ux/page/solution_nav/index.ts | 0 .../shared}/shared-ux/page/solution_nav/jest.config.js | 4 ++-- .../packages/shared}/shared-ux/page/solution_nav/kibana.jsonc | 0 .../packages/shared}/shared-ux/page/solution_nav/package.json | 0 .../src/__snapshots__/collapse_button.test.tsx.snap | 0 .../solution_nav/src/__snapshots__/solution_nav.test.tsx.snap | 0 .../src/__snapshots__/with_solution_nav.test.tsx.snap | 0 .../shared}/shared-ux/page/solution_nav/src/_variables.scss | 0 .../shared-ux/page/solution_nav/src/collapse_button.scss | 0 .../shared-ux/page/solution_nav/src/collapse_button.test.tsx | 0 .../shared-ux/page/solution_nav/src/collapse_button.tsx | 0 .../shared}/shared-ux/page/solution_nav/src/solution_nav.scss | 0 .../shared-ux/page/solution_nav/src/solution_nav.stories.tsx | 0 .../shared-ux/page/solution_nav/src/solution_nav.test.tsx | 0 .../shared}/shared-ux/page/solution_nav/src/solution_nav.tsx | 0 .../page/solution_nav/src/with_solution_nav.styles.ts | 0 .../page/solution_nav/src/with_solution_nav.test.tsx | 0 .../shared-ux/page/solution_nav/src/with_solution_nav.tsx | 0 .../shared}/shared-ux/page/solution_nav/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 24 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/jest.config.js (81%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/__snapshots__/collapse_button.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/__snapshots__/solution_nav.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/__snapshots__/with_solution_nav.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/_variables.scss (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/collapse_button.scss (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/collapse_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/collapse_button.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/solution_nav.scss (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/solution_nav.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/solution_nav.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/solution_nav.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/with_solution_nav.styles.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/with_solution_nav.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/src/with_solution_nav.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/page/solution_nav/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ac4f9ad829658..8003c39e5166f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/page/solution_nav @elastic/appex-sharedux packages/shared-ux/prompt/no_data_views/impl @elastic/appex-sharedux packages/shared-ux/prompt/no_data_views/mocks @elastic/appex-sharedux packages/shared-ux/prompt/no_data_views/types @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/page/no_data_config/types @elastic/appex- src/platform/packages/shared/shared-ux/page/no_data/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/types @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/page/solution_nav @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index e28bebd1cd7d5..d04bfdc513644 100644 --- a/package.json +++ b/package.json @@ -911,7 +911,7 @@ "@kbn/shared-ux-page-no-data-config-types": "link:src/platform/packages/shared/shared-ux/page/no_data_config/types", "@kbn/shared-ux-page-no-data-mocks": "link:src/platform/packages/shared/shared-ux/page/no_data/mocks", "@kbn/shared-ux-page-no-data-types": "link:src/platform/packages/shared/shared-ux/page/no_data/types", - "@kbn/shared-ux-page-solution-nav": "link:packages/shared-ux/page/solution_nav", + "@kbn/shared-ux-page-solution-nav": "link:src/platform/packages/shared/shared-ux/page/solution_nav", "@kbn/shared-ux-prompt-no-data-views": "link:packages/shared-ux/prompt/no_data_views/impl", "@kbn/shared-ux-prompt-no-data-views-mocks": "link:packages/shared-ux/prompt/no_data_views/mocks", "@kbn/shared-ux-prompt-no-data-views-types": "link:packages/shared-ux/prompt/no_data_views/types", diff --git a/packages/shared-ux/page/solution_nav/README.mdx b/src/platform/packages/shared/shared-ux/page/solution_nav/README.mdx similarity index 100% rename from packages/shared-ux/page/solution_nav/README.mdx rename to src/platform/packages/shared/shared-ux/page/solution_nav/README.mdx diff --git a/packages/shared-ux/page/solution_nav/index.ts b/src/platform/packages/shared/shared-ux/page/solution_nav/index.ts similarity index 100% rename from packages/shared-ux/page/solution_nav/index.ts rename to src/platform/packages/shared/shared-ux/page/solution_nav/index.ts diff --git a/packages/shared-ux/page/solution_nav/jest.config.js b/src/platform/packages/shared/shared-ux/page/solution_nav/jest.config.js similarity index 81% rename from packages/shared-ux/page/solution_nav/jest.config.js rename to src/platform/packages/shared/shared-ux/page/solution_nav/jest.config.js index 3344c7b72f667..3071dea06fdc1 100644 --- a/packages/shared-ux/page/solution_nav/jest.config.js +++ b/src/platform/packages/shared/shared-ux/page/solution_nav/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/shared-ux/page/solution_nav'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/page/solution_nav'], }; diff --git a/packages/shared-ux/page/solution_nav/kibana.jsonc b/src/platform/packages/shared/shared-ux/page/solution_nav/kibana.jsonc similarity index 100% rename from packages/shared-ux/page/solution_nav/kibana.jsonc rename to src/platform/packages/shared/shared-ux/page/solution_nav/kibana.jsonc diff --git a/packages/shared-ux/page/solution_nav/package.json b/src/platform/packages/shared/shared-ux/page/solution_nav/package.json similarity index 100% rename from packages/shared-ux/page/solution_nav/package.json rename to src/platform/packages/shared/shared-ux/page/solution_nav/package.json diff --git a/packages/shared-ux/page/solution_nav/src/__snapshots__/collapse_button.test.tsx.snap b/src/platform/packages/shared/shared-ux/page/solution_nav/src/__snapshots__/collapse_button.test.tsx.snap similarity index 100% rename from packages/shared-ux/page/solution_nav/src/__snapshots__/collapse_button.test.tsx.snap rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/__snapshots__/collapse_button.test.tsx.snap diff --git a/packages/shared-ux/page/solution_nav/src/__snapshots__/solution_nav.test.tsx.snap b/src/platform/packages/shared/shared-ux/page/solution_nav/src/__snapshots__/solution_nav.test.tsx.snap similarity index 100% rename from packages/shared-ux/page/solution_nav/src/__snapshots__/solution_nav.test.tsx.snap rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/__snapshots__/solution_nav.test.tsx.snap diff --git a/packages/shared-ux/page/solution_nav/src/__snapshots__/with_solution_nav.test.tsx.snap b/src/platform/packages/shared/shared-ux/page/solution_nav/src/__snapshots__/with_solution_nav.test.tsx.snap similarity index 100% rename from packages/shared-ux/page/solution_nav/src/__snapshots__/with_solution_nav.test.tsx.snap rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/__snapshots__/with_solution_nav.test.tsx.snap diff --git a/packages/shared-ux/page/solution_nav/src/_variables.scss b/src/platform/packages/shared/shared-ux/page/solution_nav/src/_variables.scss similarity index 100% rename from packages/shared-ux/page/solution_nav/src/_variables.scss rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/_variables.scss diff --git a/packages/shared-ux/page/solution_nav/src/collapse_button.scss b/src/platform/packages/shared/shared-ux/page/solution_nav/src/collapse_button.scss similarity index 100% rename from packages/shared-ux/page/solution_nav/src/collapse_button.scss rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/collapse_button.scss diff --git a/packages/shared-ux/page/solution_nav/src/collapse_button.test.tsx b/src/platform/packages/shared/shared-ux/page/solution_nav/src/collapse_button.test.tsx similarity index 100% rename from packages/shared-ux/page/solution_nav/src/collapse_button.test.tsx rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/collapse_button.test.tsx diff --git a/packages/shared-ux/page/solution_nav/src/collapse_button.tsx b/src/platform/packages/shared/shared-ux/page/solution_nav/src/collapse_button.tsx similarity index 100% rename from packages/shared-ux/page/solution_nav/src/collapse_button.tsx rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/collapse_button.tsx diff --git a/packages/shared-ux/page/solution_nav/src/solution_nav.scss b/src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.scss similarity index 100% rename from packages/shared-ux/page/solution_nav/src/solution_nav.scss rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.scss diff --git a/packages/shared-ux/page/solution_nav/src/solution_nav.stories.tsx b/src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.stories.tsx similarity index 100% rename from packages/shared-ux/page/solution_nav/src/solution_nav.stories.tsx rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.stories.tsx diff --git a/packages/shared-ux/page/solution_nav/src/solution_nav.test.tsx b/src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.test.tsx similarity index 100% rename from packages/shared-ux/page/solution_nav/src/solution_nav.test.tsx rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.test.tsx diff --git a/packages/shared-ux/page/solution_nav/src/solution_nav.tsx b/src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.tsx similarity index 100% rename from packages/shared-ux/page/solution_nav/src/solution_nav.tsx rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/solution_nav.tsx diff --git a/packages/shared-ux/page/solution_nav/src/with_solution_nav.styles.ts b/src/platform/packages/shared/shared-ux/page/solution_nav/src/with_solution_nav.styles.ts similarity index 100% rename from packages/shared-ux/page/solution_nav/src/with_solution_nav.styles.ts rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/with_solution_nav.styles.ts diff --git a/packages/shared-ux/page/solution_nav/src/with_solution_nav.test.tsx b/src/platform/packages/shared/shared-ux/page/solution_nav/src/with_solution_nav.test.tsx similarity index 100% rename from packages/shared-ux/page/solution_nav/src/with_solution_nav.test.tsx rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/with_solution_nav.test.tsx diff --git a/packages/shared-ux/page/solution_nav/src/with_solution_nav.tsx b/src/platform/packages/shared/shared-ux/page/solution_nav/src/with_solution_nav.tsx similarity index 100% rename from packages/shared-ux/page/solution_nav/src/with_solution_nav.tsx rename to src/platform/packages/shared/shared-ux/page/solution_nav/src/with_solution_nav.tsx diff --git a/packages/shared-ux/page/solution_nav/tsconfig.json b/src/platform/packages/shared/shared-ux/page/solution_nav/tsconfig.json similarity index 86% rename from packages/shared-ux/page/solution_nav/tsconfig.json rename to src/platform/packages/shared/shared-ux/page/solution_nav/tsconfig.json index dde4935440f75..37e7246b7a449 100644 --- a/packages/shared-ux/page/solution_nav/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/page/solution_nav/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index dde3285af508d..d77d76ac3a201 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1794,8 +1794,8 @@ "@kbn/shared-ux-page-no-data-mocks/*": ["src/platform/packages/shared/shared-ux/page/no_data/mocks/*"], "@kbn/shared-ux-page-no-data-types": ["src/platform/packages/shared/shared-ux/page/no_data/types"], "@kbn/shared-ux-page-no-data-types/*": ["src/platform/packages/shared/shared-ux/page/no_data/types/*"], - "@kbn/shared-ux-page-solution-nav": ["packages/shared-ux/page/solution_nav"], - "@kbn/shared-ux-page-solution-nav/*": ["packages/shared-ux/page/solution_nav/*"], + "@kbn/shared-ux-page-solution-nav": ["src/platform/packages/shared/shared-ux/page/solution_nav"], + "@kbn/shared-ux-page-solution-nav/*": ["src/platform/packages/shared/shared-ux/page/solution_nav/*"], "@kbn/shared-ux-prompt-no-data-views": ["packages/shared-ux/prompt/no_data_views/impl"], "@kbn/shared-ux-prompt-no-data-views/*": ["packages/shared-ux/prompt/no_data_views/impl/*"], "@kbn/shared-ux-prompt-no-data-views-mocks": ["packages/shared-ux/prompt/no_data_views/mocks"], diff --git a/yarn.lock b/yarn.lock index 329b10a7e07e0..16f78f444dd06 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7404,7 +7404,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-page-solution-nav@link:packages/shared-ux/page/solution_nav": +"@kbn/shared-ux-page-solution-nav@link:src/platform/packages/shared/shared-ux/page/solution_nav": version "0.0.0" uid "" From 4e3fded612cccdf1bc55ad333fa666b0cc0637ed Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:54:13 +0100 Subject: [PATCH 116/129] Relocating module `@kbn/shared-ux-prompt-no-data-views` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/shared-ux/prompt/no_data_views/impl/README.mdx | 0 .../private}/shared-ux/prompt/no_data_views/impl/index.ts | 0 .../shared-ux/prompt/no_data_views/impl/jest.config.js | 2 +- .../private}/shared-ux/prompt/no_data_views/impl/kibana.jsonc | 0 .../private}/shared-ux/prompt/no_data_views/impl/package.json | 0 .../impl/src/__snapshots__/documentation_link.test.tsx.snap | 0 .../prompt/no_data_views/impl/src/data_view_illustration.svg | 0 .../prompt/no_data_views/impl/src/data_view_illustration.tsx | 0 .../prompt/no_data_views/impl/src/documentation_link.test.tsx | 0 .../prompt/no_data_views/impl/src/documentation_link.tsx | 0 .../prompt/no_data_views/impl/src/esql_illustration.svg | 0 .../prompt/no_data_views/impl/src/esql_illustration.tsx | 0 .../shared-ux/prompt/no_data_views/impl/src/hooks/index.ts | 0 .../prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts | 0 .../no_data_views/impl/src/no_data_views.component.test.tsx | 0 .../prompt/no_data_views/impl/src/no_data_views.component.tsx | 0 .../prompt/no_data_views/impl/src/no_data_views.stories.tsx | 0 .../prompt/no_data_views/impl/src/no_data_views.test.tsx | 0 .../shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx | 0 .../shared-ux/prompt/no_data_views/impl/src/services.tsx | 0 .../shared-ux/prompt/no_data_views/impl/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 25 files changed, 7 insertions(+), 7 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/README.mdx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/jest.config.js (93%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/__snapshots__/documentation_link.test.tsx.snap (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.svg (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/documentation_link.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/documentation_link.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/esql_illustration.svg (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/esql_illustration.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/hooks/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/no_data_views.stories.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/no_data_views.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/src/services.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/impl/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8003c39e5166f..8e4c631dc2684 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/prompt/no_data_views/impl @elastic/appex-sharedux packages/shared-ux/prompt/no_data_views/mocks @elastic/appex-sharedux packages/shared-ux/prompt/no_data_views/types @elastic/appex-sharedux packages/shared-ux/prompt/not_found @elastic/appex-sharedux @@ -559,6 +558,7 @@ src/platform/packages/private/shared-ux/page/analytics_no_data/types @elastic/ap src/platform/packages/private/shared-ux/page/kibana_no_data/impl @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/kibana_no_data/mocks @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/kibana_no_data/types @elastic/appex-sharedux +src/platform/packages/private/shared-ux/prompt/no_data_views/impl @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index d04bfdc513644..c5937cc2001c7 100644 --- a/package.json +++ b/package.json @@ -912,7 +912,7 @@ "@kbn/shared-ux-page-no-data-mocks": "link:src/platform/packages/shared/shared-ux/page/no_data/mocks", "@kbn/shared-ux-page-no-data-types": "link:src/platform/packages/shared/shared-ux/page/no_data/types", "@kbn/shared-ux-page-solution-nav": "link:src/platform/packages/shared/shared-ux/page/solution_nav", - "@kbn/shared-ux-prompt-no-data-views": "link:packages/shared-ux/prompt/no_data_views/impl", + "@kbn/shared-ux-prompt-no-data-views": "link:src/platform/packages/private/shared-ux/prompt/no_data_views/impl", "@kbn/shared-ux-prompt-no-data-views-mocks": "link:packages/shared-ux/prompt/no_data_views/mocks", "@kbn/shared-ux-prompt-no-data-views-types": "link:packages/shared-ux/prompt/no_data_views/types", "@kbn/shared-ux-prompt-not-found": "link:packages/shared-ux/prompt/not_found", diff --git a/packages/shared-ux/prompt/no_data_views/impl/README.mdx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/README.mdx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/README.mdx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/README.mdx diff --git a/packages/shared-ux/prompt/no_data_views/impl/index.ts b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/index.ts similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/index.ts rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/index.ts diff --git a/packages/shared-ux/prompt/no_data_views/impl/jest.config.js b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/jest.config.js similarity index 93% rename from packages/shared-ux/prompt/no_data_views/impl/jest.config.js rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/jest.config.js index 4734ad0798904..ba4398e9cb6e6 100644 --- a/packages/shared-ux/prompt/no_data_views/impl/jest.config.js +++ b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', + rootDir: '../../../../../../../..', roots: ['/packages/shared-ux/prompt/no_data_views'], }; diff --git a/packages/shared-ux/prompt/no_data_views/impl/kibana.jsonc b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/kibana.jsonc rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/kibana.jsonc diff --git a/packages/shared-ux/prompt/no_data_views/impl/package.json b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/package.json similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/package.json rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/package.json diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/__snapshots__/documentation_link.test.tsx.snap b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/__snapshots__/documentation_link.test.tsx.snap similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/__snapshots__/documentation_link.test.tsx.snap rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/__snapshots__/documentation_link.test.tsx.snap diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.svg b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.svg similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.svg rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.svg diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/data_view_illustration.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/documentation_link.test.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/documentation_link.test.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/documentation_link.test.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/documentation_link.test.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/documentation_link.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/documentation_link.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/documentation_link.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/documentation_link.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/esql_illustration.svg b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/esql_illustration.svg similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/esql_illustration.svg rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/esql_illustration.svg diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/esql_illustration.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/esql_illustration.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/esql_illustration.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/esql_illustration.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/hooks/index.ts b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/hooks/index.ts similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/hooks/index.ts rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/hooks/index.ts diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/hooks/use_on_try_esql.ts diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.test.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.test.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.test.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.test.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.component.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.stories.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.stories.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.stories.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.stories.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.test.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.test.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.test.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.test.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/no_data_views.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/src/services.tsx b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/services.tsx similarity index 100% rename from packages/shared-ux/prompt/no_data_views/impl/src/services.tsx rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/src/services.tsx diff --git a/packages/shared-ux/prompt/no_data_views/impl/tsconfig.json b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/tsconfig.json similarity index 89% rename from packages/shared-ux/prompt/no_data_views/impl/tsconfig.json rename to src/platform/packages/private/shared-ux/prompt/no_data_views/impl/tsconfig.json index 2af357080c07c..9da3c8ba59ca7 100644 --- a/packages/shared-ux/prompt/no_data_views/impl/tsconfig.json +++ b/src/platform/packages/private/shared-ux/prompt/no_data_views/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index d77d76ac3a201..5ec93298ba74d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1796,8 +1796,8 @@ "@kbn/shared-ux-page-no-data-types/*": ["src/platform/packages/shared/shared-ux/page/no_data/types/*"], "@kbn/shared-ux-page-solution-nav": ["src/platform/packages/shared/shared-ux/page/solution_nav"], "@kbn/shared-ux-page-solution-nav/*": ["src/platform/packages/shared/shared-ux/page/solution_nav/*"], - "@kbn/shared-ux-prompt-no-data-views": ["packages/shared-ux/prompt/no_data_views/impl"], - "@kbn/shared-ux-prompt-no-data-views/*": ["packages/shared-ux/prompt/no_data_views/impl/*"], + "@kbn/shared-ux-prompt-no-data-views": ["src/platform/packages/private/shared-ux/prompt/no_data_views/impl"], + "@kbn/shared-ux-prompt-no-data-views/*": ["src/platform/packages/private/shared-ux/prompt/no_data_views/impl/*"], "@kbn/shared-ux-prompt-no-data-views-mocks": ["packages/shared-ux/prompt/no_data_views/mocks"], "@kbn/shared-ux-prompt-no-data-views-mocks/*": ["packages/shared-ux/prompt/no_data_views/mocks/*"], "@kbn/shared-ux-prompt-no-data-views-types": ["packages/shared-ux/prompt/no_data_views/types"], diff --git a/yarn.lock b/yarn.lock index 16f78f444dd06..cf2dff308d1d8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7416,7 +7416,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-prompt-no-data-views@link:packages/shared-ux/prompt/no_data_views/impl": +"@kbn/shared-ux-prompt-no-data-views@link:src/platform/packages/private/shared-ux/prompt/no_data_views/impl": version "0.0.0" uid "" From a2a03f977d9528f1b6c9054d36f6f279829bffec Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:55:44 +0100 Subject: [PATCH 117/129] Relocating module `@kbn/shared-ux-prompt-no-data-views-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../private}/shared-ux/prompt/no_data_views/mocks/README.md | 0 .../private}/shared-ux/prompt/no_data_views/mocks/index.ts | 0 .../shared-ux/prompt/no_data_views/mocks/kibana.jsonc | 0 .../shared-ux/prompt/no_data_views/mocks/package.json | 0 .../private}/shared-ux/prompt/no_data_views/mocks/src/jest.ts | 0 .../shared-ux/prompt/no_data_views/mocks/src/storybook.ts | 0 .../shared-ux/prompt/no_data_views/mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/mocks/README.md (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/mocks/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/mocks/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/mocks/src/jest.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/mocks/src/storybook.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/prompt/no_data_views/mocks/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8e4c631dc2684..f95e4b8079337 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/prompt/no_data_views/mocks @elastic/appex-sharedux packages/shared-ux/prompt/no_data_views/types @elastic/appex-sharedux packages/shared-ux/prompt/not_found @elastic/appex-sharedux packages/shared-ux/router/impl @elastic/appex-sharedux @@ -559,6 +558,7 @@ src/platform/packages/private/shared-ux/page/kibana_no_data/impl @elastic/appex- src/platform/packages/private/shared-ux/page/kibana_no_data/mocks @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/kibana_no_data/types @elastic/appex-sharedux src/platform/packages/private/shared-ux/prompt/no_data_views/impl @elastic/appex-sharedux +src/platform/packages/private/shared-ux/prompt/no_data_views/mocks @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index c5937cc2001c7..d67b845712ab0 100644 --- a/package.json +++ b/package.json @@ -913,7 +913,7 @@ "@kbn/shared-ux-page-no-data-types": "link:src/platform/packages/shared/shared-ux/page/no_data/types", "@kbn/shared-ux-page-solution-nav": "link:src/platform/packages/shared/shared-ux/page/solution_nav", "@kbn/shared-ux-prompt-no-data-views": "link:src/platform/packages/private/shared-ux/prompt/no_data_views/impl", - "@kbn/shared-ux-prompt-no-data-views-mocks": "link:packages/shared-ux/prompt/no_data_views/mocks", + "@kbn/shared-ux-prompt-no-data-views-mocks": "link:src/platform/packages/private/shared-ux/prompt/no_data_views/mocks", "@kbn/shared-ux-prompt-no-data-views-types": "link:packages/shared-ux/prompt/no_data_views/types", "@kbn/shared-ux-prompt-not-found": "link:packages/shared-ux/prompt/not_found", "@kbn/shared-ux-router": "link:packages/shared-ux/router/impl", diff --git a/packages/shared-ux/prompt/no_data_views/mocks/README.md b/src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/README.md similarity index 100% rename from packages/shared-ux/prompt/no_data_views/mocks/README.md rename to src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/README.md diff --git a/packages/shared-ux/prompt/no_data_views/mocks/index.ts b/src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/index.ts similarity index 100% rename from packages/shared-ux/prompt/no_data_views/mocks/index.ts rename to src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/index.ts diff --git a/packages/shared-ux/prompt/no_data_views/mocks/kibana.jsonc b/src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/kibana.jsonc similarity index 100% rename from packages/shared-ux/prompt/no_data_views/mocks/kibana.jsonc rename to src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/kibana.jsonc diff --git a/packages/shared-ux/prompt/no_data_views/mocks/package.json b/src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/package.json similarity index 100% rename from packages/shared-ux/prompt/no_data_views/mocks/package.json rename to src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/package.json diff --git a/packages/shared-ux/prompt/no_data_views/mocks/src/jest.ts b/src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/src/jest.ts similarity index 100% rename from packages/shared-ux/prompt/no_data_views/mocks/src/jest.ts rename to src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/src/jest.ts diff --git a/packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts b/src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/src/storybook.ts similarity index 100% rename from packages/shared-ux/prompt/no_data_views/mocks/src/storybook.ts rename to src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/src/storybook.ts diff --git a/packages/shared-ux/prompt/no_data_views/mocks/tsconfig.json b/src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/tsconfig.json similarity index 83% rename from packages/shared-ux/prompt/no_data_views/mocks/tsconfig.json rename to src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/tsconfig.json index 8445aacb692ba..36a0811ad3c8c 100644 --- a/packages/shared-ux/prompt/no_data_views/mocks/tsconfig.json +++ b/src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 5ec93298ba74d..d9695b25b4f14 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1798,8 +1798,8 @@ "@kbn/shared-ux-page-solution-nav/*": ["src/platform/packages/shared/shared-ux/page/solution_nav/*"], "@kbn/shared-ux-prompt-no-data-views": ["src/platform/packages/private/shared-ux/prompt/no_data_views/impl"], "@kbn/shared-ux-prompt-no-data-views/*": ["src/platform/packages/private/shared-ux/prompt/no_data_views/impl/*"], - "@kbn/shared-ux-prompt-no-data-views-mocks": ["packages/shared-ux/prompt/no_data_views/mocks"], - "@kbn/shared-ux-prompt-no-data-views-mocks/*": ["packages/shared-ux/prompt/no_data_views/mocks/*"], + "@kbn/shared-ux-prompt-no-data-views-mocks": ["src/platform/packages/private/shared-ux/prompt/no_data_views/mocks"], + "@kbn/shared-ux-prompt-no-data-views-mocks/*": ["src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/*"], "@kbn/shared-ux-prompt-no-data-views-types": ["packages/shared-ux/prompt/no_data_views/types"], "@kbn/shared-ux-prompt-no-data-views-types/*": ["packages/shared-ux/prompt/no_data_views/types/*"], "@kbn/shared-ux-prompt-not-found": ["packages/shared-ux/prompt/not_found"], diff --git a/yarn.lock b/yarn.lock index cf2dff308d1d8..fb54d4004e625 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7408,7 +7408,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-prompt-no-data-views-mocks@link:packages/shared-ux/prompt/no_data_views/mocks": +"@kbn/shared-ux-prompt-no-data-views-mocks@link:src/platform/packages/private/shared-ux/prompt/no_data_views/mocks": version "0.0.0" uid "" From bc90800516cda02aa4ae380e60d1579b95265575 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:57:16 +0100 Subject: [PATCH 118/129] Relocating module `@kbn/shared-ux-prompt-no-data-views-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/prompt/no_data_views/types/README.md | 0 .../shared}/shared-ux/prompt/no_data_views/types/index.d.ts | 0 .../shared}/shared-ux/prompt/no_data_views/types/kibana.jsonc | 0 .../shared}/shared-ux/prompt/no_data_views/types/package.json | 0 .../shared-ux/prompt/no_data_views/types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/prompt/no_data_views/types/README.md (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/no_data_views/types/index.d.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/no_data_views/types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/no_data_views/types/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/no_data_views/types/tsconfig.json (77%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f95e4b8079337..70b6ba70cf455 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/prompt/no_data_views/types @elastic/appex-sharedux packages/shared-ux/prompt/not_found @elastic/appex-sharedux packages/shared-ux/router/impl @elastic/appex-sharedux packages/shared-ux/router/mocks @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/page/no_data/impl @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/mocks @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/no_data/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/solution_nav @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/prompt/no_data_views/types @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index d67b845712ab0..850b88c09505d 100644 --- a/package.json +++ b/package.json @@ -914,7 +914,7 @@ "@kbn/shared-ux-page-solution-nav": "link:src/platform/packages/shared/shared-ux/page/solution_nav", "@kbn/shared-ux-prompt-no-data-views": "link:src/platform/packages/private/shared-ux/prompt/no_data_views/impl", "@kbn/shared-ux-prompt-no-data-views-mocks": "link:src/platform/packages/private/shared-ux/prompt/no_data_views/mocks", - "@kbn/shared-ux-prompt-no-data-views-types": "link:packages/shared-ux/prompt/no_data_views/types", + "@kbn/shared-ux-prompt-no-data-views-types": "link:src/platform/packages/shared/shared-ux/prompt/no_data_views/types", "@kbn/shared-ux-prompt-not-found": "link:packages/shared-ux/prompt/not_found", "@kbn/shared-ux-router": "link:packages/shared-ux/router/impl", "@kbn/shared-ux-router-mocks": "link:packages/shared-ux/router/mocks", diff --git a/packages/shared-ux/prompt/no_data_views/types/README.md b/src/platform/packages/shared/shared-ux/prompt/no_data_views/types/README.md similarity index 100% rename from packages/shared-ux/prompt/no_data_views/types/README.md rename to src/platform/packages/shared/shared-ux/prompt/no_data_views/types/README.md diff --git a/packages/shared-ux/prompt/no_data_views/types/index.d.ts b/src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts similarity index 100% rename from packages/shared-ux/prompt/no_data_views/types/index.d.ts rename to src/platform/packages/shared/shared-ux/prompt/no_data_views/types/index.d.ts diff --git a/packages/shared-ux/prompt/no_data_views/types/kibana.jsonc b/src/platform/packages/shared/shared-ux/prompt/no_data_views/types/kibana.jsonc similarity index 100% rename from packages/shared-ux/prompt/no_data_views/types/kibana.jsonc rename to src/platform/packages/shared/shared-ux/prompt/no_data_views/types/kibana.jsonc diff --git a/packages/shared-ux/prompt/no_data_views/types/package.json b/src/platform/packages/shared/shared-ux/prompt/no_data_views/types/package.json similarity index 100% rename from packages/shared-ux/prompt/no_data_views/types/package.json rename to src/platform/packages/shared/shared-ux/prompt/no_data_views/types/package.json diff --git a/packages/shared-ux/prompt/no_data_views/types/tsconfig.json b/src/platform/packages/shared/shared-ux/prompt/no_data_views/types/tsconfig.json similarity index 77% rename from packages/shared-ux/prompt/no_data_views/types/tsconfig.json rename to src/platform/packages/shared/shared-ux/prompt/no_data_views/types/tsconfig.json index b82ab394b8afc..c62dfd95e1205 100644 --- a/packages/shared-ux/prompt/no_data_views/types/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/prompt/no_data_views/types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [] diff --git a/tsconfig.base.json b/tsconfig.base.json index d9695b25b4f14..f244782b77d45 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1800,8 +1800,8 @@ "@kbn/shared-ux-prompt-no-data-views/*": ["src/platform/packages/private/shared-ux/prompt/no_data_views/impl/*"], "@kbn/shared-ux-prompt-no-data-views-mocks": ["src/platform/packages/private/shared-ux/prompt/no_data_views/mocks"], "@kbn/shared-ux-prompt-no-data-views-mocks/*": ["src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/*"], - "@kbn/shared-ux-prompt-no-data-views-types": ["packages/shared-ux/prompt/no_data_views/types"], - "@kbn/shared-ux-prompt-no-data-views-types/*": ["packages/shared-ux/prompt/no_data_views/types/*"], + "@kbn/shared-ux-prompt-no-data-views-types": ["src/platform/packages/shared/shared-ux/prompt/no_data_views/types"], + "@kbn/shared-ux-prompt-no-data-views-types/*": ["src/platform/packages/shared/shared-ux/prompt/no_data_views/types/*"], "@kbn/shared-ux-prompt-not-found": ["packages/shared-ux/prompt/not_found"], "@kbn/shared-ux-prompt-not-found/*": ["packages/shared-ux/prompt/not_found/*"], "@kbn/shared-ux-router": ["packages/shared-ux/router/impl"], diff --git a/yarn.lock b/yarn.lock index fb54d4004e625..f99b8f9c2159a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7412,7 +7412,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-prompt-no-data-views-types@link:packages/shared-ux/prompt/no_data_views/types": +"@kbn/shared-ux-prompt-no-data-views-types@link:src/platform/packages/shared/shared-ux/prompt/no_data_views/types": version "0.0.0" uid "" From c5c952dc11171d1a37d5ebd1a5350d39e3801d28 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 14:58:47 +0100 Subject: [PATCH 119/129] Relocating module `@kbn/shared-ux-prompt-not-found` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../shared}/shared-ux/prompt/not_found/README.mdx | 0 .../shared}/shared-ux/prompt/not_found/index.ts | 0 .../shared-ux/prompt/not_found/jest.config.js | 4 ++-- .../shared}/shared-ux/prompt/not_found/kibana.jsonc | 0 .../shared}/shared-ux/prompt/not_found/package.json | 0 .../not_found/src/assets/404_astronaut_dark.png | Bin .../not_found/src/assets/404_astronaut_light.png | Bin .../not_found/src/not_found_prompt.stories.tsx | 0 .../prompt/not_found/src/not_found_prompt.test.tsx | 0 .../prompt/not_found/src/not_found_prompt.tsx | 0 .../shared-ux/prompt/not_found/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/jest.config.js (81%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/src/assets/404_astronaut_dark.png (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/src/assets/404_astronaut_light.png (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/src/not_found_prompt.stories.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/src/not_found_prompt.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/src/not_found_prompt.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/prompt/not_found/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 70b6ba70cf455..a5b01202fed93 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/prompt/not_found @elastic/appex-sharedux packages/shared-ux/router/impl @elastic/appex-sharedux packages/shared-ux/router/mocks @elastic/appex-sharedux packages/shared-ux/router/types @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/page/no_data/mocks @elastic/appex-sharedu src/platform/packages/shared/shared-ux/page/no_data/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/page/solution_nav @elastic/appex-sharedux src/platform/packages/shared/shared-ux/prompt/no_data_views/types @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/prompt/not_found @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index 850b88c09505d..af9eddea0048b 100644 --- a/package.json +++ b/package.json @@ -915,7 +915,7 @@ "@kbn/shared-ux-prompt-no-data-views": "link:src/platform/packages/private/shared-ux/prompt/no_data_views/impl", "@kbn/shared-ux-prompt-no-data-views-mocks": "link:src/platform/packages/private/shared-ux/prompt/no_data_views/mocks", "@kbn/shared-ux-prompt-no-data-views-types": "link:src/platform/packages/shared/shared-ux/prompt/no_data_views/types", - "@kbn/shared-ux-prompt-not-found": "link:packages/shared-ux/prompt/not_found", + "@kbn/shared-ux-prompt-not-found": "link:src/platform/packages/shared/shared-ux/prompt/not_found", "@kbn/shared-ux-router": "link:packages/shared-ux/router/impl", "@kbn/shared-ux-router-mocks": "link:packages/shared-ux/router/mocks", "@kbn/shared-ux-router-types": "link:packages/shared-ux/router/types", diff --git a/packages/shared-ux/prompt/not_found/README.mdx b/src/platform/packages/shared/shared-ux/prompt/not_found/README.mdx similarity index 100% rename from packages/shared-ux/prompt/not_found/README.mdx rename to src/platform/packages/shared/shared-ux/prompt/not_found/README.mdx diff --git a/packages/shared-ux/prompt/not_found/index.ts b/src/platform/packages/shared/shared-ux/prompt/not_found/index.ts similarity index 100% rename from packages/shared-ux/prompt/not_found/index.ts rename to src/platform/packages/shared/shared-ux/prompt/not_found/index.ts diff --git a/packages/shared-ux/prompt/not_found/jest.config.js b/src/platform/packages/shared/shared-ux/prompt/not_found/jest.config.js similarity index 81% rename from packages/shared-ux/prompt/not_found/jest.config.js rename to src/platform/packages/shared/shared-ux/prompt/not_found/jest.config.js index 74a19c2b8c223..5448ec2ad25ab 100644 --- a/packages/shared-ux/prompt/not_found/jest.config.js +++ b/src/platform/packages/shared/shared-ux/prompt/not_found/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/shared-ux/prompt/not_found'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/prompt/not_found'], }; diff --git a/packages/shared-ux/prompt/not_found/kibana.jsonc b/src/platform/packages/shared/shared-ux/prompt/not_found/kibana.jsonc similarity index 100% rename from packages/shared-ux/prompt/not_found/kibana.jsonc rename to src/platform/packages/shared/shared-ux/prompt/not_found/kibana.jsonc diff --git a/packages/shared-ux/prompt/not_found/package.json b/src/platform/packages/shared/shared-ux/prompt/not_found/package.json similarity index 100% rename from packages/shared-ux/prompt/not_found/package.json rename to src/platform/packages/shared/shared-ux/prompt/not_found/package.json diff --git a/packages/shared-ux/prompt/not_found/src/assets/404_astronaut_dark.png b/src/platform/packages/shared/shared-ux/prompt/not_found/src/assets/404_astronaut_dark.png similarity index 100% rename from packages/shared-ux/prompt/not_found/src/assets/404_astronaut_dark.png rename to src/platform/packages/shared/shared-ux/prompt/not_found/src/assets/404_astronaut_dark.png diff --git a/packages/shared-ux/prompt/not_found/src/assets/404_astronaut_light.png b/src/platform/packages/shared/shared-ux/prompt/not_found/src/assets/404_astronaut_light.png similarity index 100% rename from packages/shared-ux/prompt/not_found/src/assets/404_astronaut_light.png rename to src/platform/packages/shared/shared-ux/prompt/not_found/src/assets/404_astronaut_light.png diff --git a/packages/shared-ux/prompt/not_found/src/not_found_prompt.stories.tsx b/src/platform/packages/shared/shared-ux/prompt/not_found/src/not_found_prompt.stories.tsx similarity index 100% rename from packages/shared-ux/prompt/not_found/src/not_found_prompt.stories.tsx rename to src/platform/packages/shared/shared-ux/prompt/not_found/src/not_found_prompt.stories.tsx diff --git a/packages/shared-ux/prompt/not_found/src/not_found_prompt.test.tsx b/src/platform/packages/shared/shared-ux/prompt/not_found/src/not_found_prompt.test.tsx similarity index 100% rename from packages/shared-ux/prompt/not_found/src/not_found_prompt.test.tsx rename to src/platform/packages/shared/shared-ux/prompt/not_found/src/not_found_prompt.test.tsx diff --git a/packages/shared-ux/prompt/not_found/src/not_found_prompt.tsx b/src/platform/packages/shared/shared-ux/prompt/not_found/src/not_found_prompt.tsx similarity index 100% rename from packages/shared-ux/prompt/not_found/src/not_found_prompt.tsx rename to src/platform/packages/shared/shared-ux/prompt/not_found/src/not_found_prompt.tsx diff --git a/packages/shared-ux/prompt/not_found/tsconfig.json b/src/platform/packages/shared/shared-ux/prompt/not_found/tsconfig.json similarity index 81% rename from packages/shared-ux/prompt/not_found/tsconfig.json rename to src/platform/packages/shared/shared-ux/prompt/not_found/tsconfig.json index 6b098efdfa673..6f0d25a86d961 100644 --- a/packages/shared-ux/prompt/not_found/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/prompt/not_found/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": ["jest", "node", "react", "@kbn/ambient-ui-types"] diff --git a/tsconfig.base.json b/tsconfig.base.json index f244782b77d45..904e84ca3e4e0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1802,8 +1802,8 @@ "@kbn/shared-ux-prompt-no-data-views-mocks/*": ["src/platform/packages/private/shared-ux/prompt/no_data_views/mocks/*"], "@kbn/shared-ux-prompt-no-data-views-types": ["src/platform/packages/shared/shared-ux/prompt/no_data_views/types"], "@kbn/shared-ux-prompt-no-data-views-types/*": ["src/platform/packages/shared/shared-ux/prompt/no_data_views/types/*"], - "@kbn/shared-ux-prompt-not-found": ["packages/shared-ux/prompt/not_found"], - "@kbn/shared-ux-prompt-not-found/*": ["packages/shared-ux/prompt/not_found/*"], + "@kbn/shared-ux-prompt-not-found": ["src/platform/packages/shared/shared-ux/prompt/not_found"], + "@kbn/shared-ux-prompt-not-found/*": ["src/platform/packages/shared/shared-ux/prompt/not_found/*"], "@kbn/shared-ux-router": ["packages/shared-ux/router/impl"], "@kbn/shared-ux-router/*": ["packages/shared-ux/router/impl/*"], "@kbn/shared-ux-router-mocks": ["packages/shared-ux/router/mocks"], diff --git a/yarn.lock b/yarn.lock index f99b8f9c2159a..b58db0585cb3b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7420,7 +7420,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-prompt-not-found@link:packages/shared-ux/prompt/not_found": +"@kbn/shared-ux-prompt-not-found@link:src/platform/packages/shared/shared-ux/prompt/not_found": version "0.0.0" uid "" From 50caa229f76ee6161bcaa798d263c0fec1a62eda Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 15:00:22 +0100 Subject: [PATCH 120/129] Relocating module `@kbn/shared-ux-router` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/router/impl/README.mdx | 0 .../shared-ux/router/impl/__snapshots__/route.test.tsx.snap | 0 .../platform/packages/shared}/shared-ux/router/impl/index.ts | 0 .../packages/shared}/shared-ux/router/impl/jest.config.js | 4 ++-- .../packages/shared}/shared-ux/router/impl/kibana.jsonc | 0 .../packages/shared}/shared-ux/router/impl/package.json | 0 .../packages/shared}/shared-ux/router/impl/route.test.tsx | 0 .../platform/packages/shared}/shared-ux/router/impl/route.tsx | 0 .../packages/shared}/shared-ux/router/impl/router.tsx | 0 .../packages/shared}/shared-ux/router/impl/routes.tsx | 0 .../packages/shared}/shared-ux/router/impl/services.ts | 0 .../packages/shared}/shared-ux/router/impl/tsconfig.json | 2 +- .../platform/packages/shared}/shared-ux/router/impl/types.ts | 0 .../shared}/shared-ux/router/impl/use_execution_context.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/__snapshots__/route.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/jest.config.js (82%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/route.test.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/route.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/router.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/routes.tsx (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/services.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/tsconfig.json (81%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/types.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/router/impl/use_execution_context.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a5b01202fed93..7dbd6d9add590 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -518,7 +518,6 @@ packages/serverless/settings/search_project @elastic/search-kibana @elastic/kiba packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/modal/tabbed @elastic/appex-sharedux -packages/shared-ux/router/impl @elastic/appex-sharedux packages/shared-ux/router/mocks @elastic/appex-sharedux packages/shared-ux/router/types @elastic/appex-sharedux packages/shared-ux/storybook/config @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/page/no_data/types @elastic/appex-sharedu src/platform/packages/shared/shared-ux/page/solution_nav @elastic/appex-sharedux src/platform/packages/shared/shared-ux/prompt/no_data_views/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/prompt/not_found @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/router/impl @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index af9eddea0048b..af54c18629bae 100644 --- a/package.json +++ b/package.json @@ -916,7 +916,7 @@ "@kbn/shared-ux-prompt-no-data-views-mocks": "link:src/platform/packages/private/shared-ux/prompt/no_data_views/mocks", "@kbn/shared-ux-prompt-no-data-views-types": "link:src/platform/packages/shared/shared-ux/prompt/no_data_views/types", "@kbn/shared-ux-prompt-not-found": "link:src/platform/packages/shared/shared-ux/prompt/not_found", - "@kbn/shared-ux-router": "link:packages/shared-ux/router/impl", + "@kbn/shared-ux-router": "link:src/platform/packages/shared/shared-ux/router/impl", "@kbn/shared-ux-router-mocks": "link:packages/shared-ux/router/mocks", "@kbn/shared-ux-router-types": "link:packages/shared-ux/router/types", "@kbn/shared-ux-storybook-config": "link:packages/shared-ux/storybook/config", diff --git a/packages/shared-ux/router/impl/README.mdx b/src/platform/packages/shared/shared-ux/router/impl/README.mdx similarity index 100% rename from packages/shared-ux/router/impl/README.mdx rename to src/platform/packages/shared/shared-ux/router/impl/README.mdx diff --git a/packages/shared-ux/router/impl/__snapshots__/route.test.tsx.snap b/src/platform/packages/shared/shared-ux/router/impl/__snapshots__/route.test.tsx.snap similarity index 100% rename from packages/shared-ux/router/impl/__snapshots__/route.test.tsx.snap rename to src/platform/packages/shared/shared-ux/router/impl/__snapshots__/route.test.tsx.snap diff --git a/packages/shared-ux/router/impl/index.ts b/src/platform/packages/shared/shared-ux/router/impl/index.ts similarity index 100% rename from packages/shared-ux/router/impl/index.ts rename to src/platform/packages/shared/shared-ux/router/impl/index.ts diff --git a/packages/shared-ux/router/impl/jest.config.js b/src/platform/packages/shared/shared-ux/router/impl/jest.config.js similarity index 82% rename from packages/shared-ux/router/impl/jest.config.js rename to src/platform/packages/shared/shared-ux/router/impl/jest.config.js index 31007b3305152..fad5f9e8d0aaa 100644 --- a/packages/shared-ux/router/impl/jest.config.js +++ b/src/platform/packages/shared/shared-ux/router/impl/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/shared-ux/router/impl'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/shared/shared-ux/router/impl'], }; diff --git a/packages/shared-ux/router/impl/kibana.jsonc b/src/platform/packages/shared/shared-ux/router/impl/kibana.jsonc similarity index 100% rename from packages/shared-ux/router/impl/kibana.jsonc rename to src/platform/packages/shared/shared-ux/router/impl/kibana.jsonc diff --git a/packages/shared-ux/router/impl/package.json b/src/platform/packages/shared/shared-ux/router/impl/package.json similarity index 100% rename from packages/shared-ux/router/impl/package.json rename to src/platform/packages/shared/shared-ux/router/impl/package.json diff --git a/packages/shared-ux/router/impl/route.test.tsx b/src/platform/packages/shared/shared-ux/router/impl/route.test.tsx similarity index 100% rename from packages/shared-ux/router/impl/route.test.tsx rename to src/platform/packages/shared/shared-ux/router/impl/route.test.tsx diff --git a/packages/shared-ux/router/impl/route.tsx b/src/platform/packages/shared/shared-ux/router/impl/route.tsx similarity index 100% rename from packages/shared-ux/router/impl/route.tsx rename to src/platform/packages/shared/shared-ux/router/impl/route.tsx diff --git a/packages/shared-ux/router/impl/router.tsx b/src/platform/packages/shared/shared-ux/router/impl/router.tsx similarity index 100% rename from packages/shared-ux/router/impl/router.tsx rename to src/platform/packages/shared/shared-ux/router/impl/router.tsx diff --git a/packages/shared-ux/router/impl/routes.tsx b/src/platform/packages/shared/shared-ux/router/impl/routes.tsx similarity index 100% rename from packages/shared-ux/router/impl/routes.tsx rename to src/platform/packages/shared/shared-ux/router/impl/routes.tsx diff --git a/packages/shared-ux/router/impl/services.ts b/src/platform/packages/shared/shared-ux/router/impl/services.ts similarity index 100% rename from packages/shared-ux/router/impl/services.ts rename to src/platform/packages/shared/shared-ux/router/impl/services.ts diff --git a/packages/shared-ux/router/impl/tsconfig.json b/src/platform/packages/shared/shared-ux/router/impl/tsconfig.json similarity index 81% rename from packages/shared-ux/router/impl/tsconfig.json rename to src/platform/packages/shared/shared-ux/router/impl/tsconfig.json index 13e290e2dea0b..c556285229b32 100644 --- a/packages/shared-ux/router/impl/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/router/impl/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/shared-ux/router/impl/types.ts b/src/platform/packages/shared/shared-ux/router/impl/types.ts similarity index 100% rename from packages/shared-ux/router/impl/types.ts rename to src/platform/packages/shared/shared-ux/router/impl/types.ts diff --git a/packages/shared-ux/router/impl/use_execution_context.ts b/src/platform/packages/shared/shared-ux/router/impl/use_execution_context.ts similarity index 100% rename from packages/shared-ux/router/impl/use_execution_context.ts rename to src/platform/packages/shared/shared-ux/router/impl/use_execution_context.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index 904e84ca3e4e0..b107a2bcd847e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1804,8 +1804,8 @@ "@kbn/shared-ux-prompt-no-data-views-types/*": ["src/platform/packages/shared/shared-ux/prompt/no_data_views/types/*"], "@kbn/shared-ux-prompt-not-found": ["src/platform/packages/shared/shared-ux/prompt/not_found"], "@kbn/shared-ux-prompt-not-found/*": ["src/platform/packages/shared/shared-ux/prompt/not_found/*"], - "@kbn/shared-ux-router": ["packages/shared-ux/router/impl"], - "@kbn/shared-ux-router/*": ["packages/shared-ux/router/impl/*"], + "@kbn/shared-ux-router": ["src/platform/packages/shared/shared-ux/router/impl"], + "@kbn/shared-ux-router/*": ["src/platform/packages/shared/shared-ux/router/impl/*"], "@kbn/shared-ux-router-mocks": ["packages/shared-ux/router/mocks"], "@kbn/shared-ux-router-mocks/*": ["packages/shared-ux/router/mocks/*"], "@kbn/shared-ux-router-types": ["packages/shared-ux/router/types"], diff --git a/yarn.lock b/yarn.lock index b58db0585cb3b..5e931ea8d7c9f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7432,7 +7432,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-router@link:packages/shared-ux/router/impl": +"@kbn/shared-ux-router@link:src/platform/packages/shared/shared-ux/router/impl": version "0.0.0" uid "" From 6950afcba534e154240b679dd14a7a0daed04eba Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 15:01:48 +0100 Subject: [PATCH 121/129] Relocating module `@kbn/shared-ux-storybook-mock` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/shared-ux/storybook/mock/README.mdx | 0 .../packages/shared}/shared-ux/storybook/mock/index.ts | 0 .../packages/shared}/shared-ux/storybook/mock/kibana.jsonc | 0 .../packages/shared}/shared-ux/storybook/mock/package.json | 0 .../packages/shared}/shared-ux/storybook/mock/src/mocks.ts | 0 .../packages/shared}/shared-ux/storybook/mock/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/shared-ux/storybook/mock/README.mdx (100%) rename {packages => src/platform/packages/shared}/shared-ux/storybook/mock/index.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/storybook/mock/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/shared-ux/storybook/mock/package.json (100%) rename {packages => src/platform/packages/shared}/shared-ux/storybook/mock/src/mocks.ts (100%) rename {packages => src/platform/packages/shared}/shared-ux/storybook/mock/tsconfig.json (77%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7dbd6d9add590..a990e231154a9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -521,7 +521,6 @@ packages/shared-ux/modal/tabbed @elastic/appex-sharedux packages/shared-ux/router/mocks @elastic/appex-sharedux packages/shared-ux/router/types @elastic/appex-sharedux packages/shared-ux/storybook/config @elastic/appex-sharedux -packages/shared-ux/storybook/mock @elastic/appex-sharedux packages/shared-ux/table_persist @elastic/appex-sharedux src/core @elastic/kibana-core src/platform/packages/private/content-management/favorites/favorites_common @elastic/appex-sharedux @@ -623,6 +622,7 @@ src/platform/packages/shared/shared-ux/page/solution_nav @elastic/appex-sharedux src/platform/packages/shared/shared-ux/prompt/no_data_views/types @elastic/appex-sharedux src/platform/packages/shared/shared-ux/prompt/not_found @elastic/appex-sharedux src/platform/packages/shared/shared-ux/router/impl @elastic/appex-sharedux +src/platform/packages/shared/shared-ux/storybook/mock @elastic/appex-sharedux 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 diff --git a/package.json b/package.json index af54c18629bae..cdb01ae410a35 100644 --- a/package.json +++ b/package.json @@ -920,7 +920,7 @@ "@kbn/shared-ux-router-mocks": "link:packages/shared-ux/router/mocks", "@kbn/shared-ux-router-types": "link:packages/shared-ux/router/types", "@kbn/shared-ux-storybook-config": "link:packages/shared-ux/storybook/config", - "@kbn/shared-ux-storybook-mock": "link:packages/shared-ux/storybook/mock", + "@kbn/shared-ux-storybook-mock": "link:src/platform/packages/shared/shared-ux/storybook/mock", "@kbn/shared-ux-tabbed-modal": "link:packages/shared-ux/modal/tabbed", "@kbn/shared-ux-table-persist": "link:packages/shared-ux/table_persist", "@kbn/shared-ux-utility": "link:packages/kbn-shared-ux-utility", diff --git a/packages/shared-ux/storybook/mock/README.mdx b/src/platform/packages/shared/shared-ux/storybook/mock/README.mdx similarity index 100% rename from packages/shared-ux/storybook/mock/README.mdx rename to src/platform/packages/shared/shared-ux/storybook/mock/README.mdx diff --git a/packages/shared-ux/storybook/mock/index.ts b/src/platform/packages/shared/shared-ux/storybook/mock/index.ts similarity index 100% rename from packages/shared-ux/storybook/mock/index.ts rename to src/platform/packages/shared/shared-ux/storybook/mock/index.ts diff --git a/packages/shared-ux/storybook/mock/kibana.jsonc b/src/platform/packages/shared/shared-ux/storybook/mock/kibana.jsonc similarity index 100% rename from packages/shared-ux/storybook/mock/kibana.jsonc rename to src/platform/packages/shared/shared-ux/storybook/mock/kibana.jsonc diff --git a/packages/shared-ux/storybook/mock/package.json b/src/platform/packages/shared/shared-ux/storybook/mock/package.json similarity index 100% rename from packages/shared-ux/storybook/mock/package.json rename to src/platform/packages/shared/shared-ux/storybook/mock/package.json diff --git a/packages/shared-ux/storybook/mock/src/mocks.ts b/src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts similarity index 100% rename from packages/shared-ux/storybook/mock/src/mocks.ts rename to src/platform/packages/shared/shared-ux/storybook/mock/src/mocks.ts diff --git a/packages/shared-ux/storybook/mock/tsconfig.json b/src/platform/packages/shared/shared-ux/storybook/mock/tsconfig.json similarity index 77% rename from packages/shared-ux/storybook/mock/tsconfig.json rename to src/platform/packages/shared/shared-ux/storybook/mock/tsconfig.json index 0f16c2b9311d8..985b163edb9b5 100644 --- a/packages/shared-ux/storybook/mock/tsconfig.json +++ b/src/platform/packages/shared/shared-ux/storybook/mock/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index b107a2bcd847e..0e93b17ff4aeb 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1812,8 +1812,8 @@ "@kbn/shared-ux-router-types/*": ["packages/shared-ux/router/types/*"], "@kbn/shared-ux-storybook-config": ["packages/shared-ux/storybook/config"], "@kbn/shared-ux-storybook-config/*": ["packages/shared-ux/storybook/config/*"], - "@kbn/shared-ux-storybook-mock": ["packages/shared-ux/storybook/mock"], - "@kbn/shared-ux-storybook-mock/*": ["packages/shared-ux/storybook/mock/*"], + "@kbn/shared-ux-storybook-mock": ["src/platform/packages/shared/shared-ux/storybook/mock"], + "@kbn/shared-ux-storybook-mock/*": ["src/platform/packages/shared/shared-ux/storybook/mock/*"], "@kbn/shared-ux-tabbed-modal": ["packages/shared-ux/modal/tabbed"], "@kbn/shared-ux-tabbed-modal/*": ["packages/shared-ux/modal/tabbed/*"], "@kbn/shared-ux-table-persist": ["packages/shared-ux/table_persist"], diff --git a/yarn.lock b/yarn.lock index 5e931ea8d7c9f..fc2ae932c589e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7440,7 +7440,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-storybook-mock@link:packages/shared-ux/storybook/mock": +"@kbn/shared-ux-storybook-mock@link:src/platform/packages/shared/shared-ux/storybook/mock": version "0.0.0" uid "" From 0c04bb4e97912ab31bbff7aeaa3ab43ba4ab8f52 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 15:03:15 +0100 Subject: [PATCH 122/129] Relocating module `@kbn/shared-ux-tabbed-modal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/shared-ux/modal/tabbed/README.mdx | 0 .../packages/private}/shared-ux/modal/tabbed/index.tsx | 0 .../packages/private}/shared-ux/modal/tabbed/jest.config.js | 4 ++-- .../packages/private}/shared-ux/modal/tabbed/kibana.jsonc | 0 .../packages/private}/shared-ux/modal/tabbed/package.json | 0 .../shared-ux/modal/tabbed/src/context/index.test.tsx | 0 .../private}/shared-ux/modal/tabbed/src/context/index.tsx | 0 .../shared-ux/modal/tabbed/src/tabbed_modal.stories.tsx | 0 .../private}/shared-ux/modal/tabbed/src/tabbed_modal.test.tsx | 0 .../private}/shared-ux/modal/tabbed/src/tabbed_modal.tsx | 0 .../private}/shared-ux/modal/tabbed/storybook/setup.ts | 0 .../packages/private}/shared-ux/modal/tabbed/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 16 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/README.mdx (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/index.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/jest.config.js (82%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/src/context/index.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/src/context/index.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/src/tabbed_modal.stories.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/src/tabbed_modal.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/src/tabbed_modal.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/storybook/setup.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/modal/tabbed/tsconfig.json (79%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a990e231154a9..2f2a1e7d1c85c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -517,7 +517,6 @@ packages/response-ops/rule_params @elastic/response-ops packages/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management packages/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management packages/serverless/storybook/config @elastic/appex-sharedux -packages/shared-ux/modal/tabbed @elastic/appex-sharedux packages/shared-ux/router/mocks @elastic/appex-sharedux packages/shared-ux/router/types @elastic/appex-sharedux packages/shared-ux/storybook/config @elastic/appex-sharedux @@ -547,6 +546,7 @@ src/platform/packages/private/serverless/project_switcher @elastic/appex-sharedu src/platform/packages/private/serverless/settings/common @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/private/serverless/types @elastic/appex-sharedux src/platform/packages/private/shared-ux/button/exit_full_screen @elastic/appex-sharedux +src/platform/packages/private/shared-ux/modal/tabbed @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/analytics_no_data/impl @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/analytics_no_data/mocks @elastic/appex-sharedux src/platform/packages/private/shared-ux/page/analytics_no_data/types @elastic/appex-sharedux diff --git a/package.json b/package.json index cdb01ae410a35..fbd62272e630f 100644 --- a/package.json +++ b/package.json @@ -921,7 +921,7 @@ "@kbn/shared-ux-router-types": "link:packages/shared-ux/router/types", "@kbn/shared-ux-storybook-config": "link:packages/shared-ux/storybook/config", "@kbn/shared-ux-storybook-mock": "link:src/platform/packages/shared/shared-ux/storybook/mock", - "@kbn/shared-ux-tabbed-modal": "link:packages/shared-ux/modal/tabbed", + "@kbn/shared-ux-tabbed-modal": "link:src/platform/packages/private/shared-ux/modal/tabbed", "@kbn/shared-ux-table-persist": "link:packages/shared-ux/table_persist", "@kbn/shared-ux-utility": "link:packages/kbn-shared-ux-utility", "@kbn/slo-plugin": "link:x-pack/plugins/observability_solution/slo", diff --git a/packages/shared-ux/modal/tabbed/README.mdx b/src/platform/packages/private/shared-ux/modal/tabbed/README.mdx similarity index 100% rename from packages/shared-ux/modal/tabbed/README.mdx rename to src/platform/packages/private/shared-ux/modal/tabbed/README.mdx diff --git a/packages/shared-ux/modal/tabbed/index.tsx b/src/platform/packages/private/shared-ux/modal/tabbed/index.tsx similarity index 100% rename from packages/shared-ux/modal/tabbed/index.tsx rename to src/platform/packages/private/shared-ux/modal/tabbed/index.tsx diff --git a/packages/shared-ux/modal/tabbed/jest.config.js b/src/platform/packages/private/shared-ux/modal/tabbed/jest.config.js similarity index 82% rename from packages/shared-ux/modal/tabbed/jest.config.js rename to src/platform/packages/private/shared-ux/modal/tabbed/jest.config.js index 5ed8a8311d328..b4be77fcc3189 100644 --- a/packages/shared-ux/modal/tabbed/jest.config.js +++ b/src/platform/packages/private/shared-ux/modal/tabbed/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/shared-ux/modal/tabbed'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/shared-ux/modal/tabbed'], }; diff --git a/packages/shared-ux/modal/tabbed/kibana.jsonc b/src/platform/packages/private/shared-ux/modal/tabbed/kibana.jsonc similarity index 100% rename from packages/shared-ux/modal/tabbed/kibana.jsonc rename to src/platform/packages/private/shared-ux/modal/tabbed/kibana.jsonc diff --git a/packages/shared-ux/modal/tabbed/package.json b/src/platform/packages/private/shared-ux/modal/tabbed/package.json similarity index 100% rename from packages/shared-ux/modal/tabbed/package.json rename to src/platform/packages/private/shared-ux/modal/tabbed/package.json diff --git a/packages/shared-ux/modal/tabbed/src/context/index.test.tsx b/src/platform/packages/private/shared-ux/modal/tabbed/src/context/index.test.tsx similarity index 100% rename from packages/shared-ux/modal/tabbed/src/context/index.test.tsx rename to src/platform/packages/private/shared-ux/modal/tabbed/src/context/index.test.tsx diff --git a/packages/shared-ux/modal/tabbed/src/context/index.tsx b/src/platform/packages/private/shared-ux/modal/tabbed/src/context/index.tsx similarity index 100% rename from packages/shared-ux/modal/tabbed/src/context/index.tsx rename to src/platform/packages/private/shared-ux/modal/tabbed/src/context/index.tsx diff --git a/packages/shared-ux/modal/tabbed/src/tabbed_modal.stories.tsx b/src/platform/packages/private/shared-ux/modal/tabbed/src/tabbed_modal.stories.tsx similarity index 100% rename from packages/shared-ux/modal/tabbed/src/tabbed_modal.stories.tsx rename to src/platform/packages/private/shared-ux/modal/tabbed/src/tabbed_modal.stories.tsx diff --git a/packages/shared-ux/modal/tabbed/src/tabbed_modal.test.tsx b/src/platform/packages/private/shared-ux/modal/tabbed/src/tabbed_modal.test.tsx similarity index 100% rename from packages/shared-ux/modal/tabbed/src/tabbed_modal.test.tsx rename to src/platform/packages/private/shared-ux/modal/tabbed/src/tabbed_modal.test.tsx diff --git a/packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx b/src/platform/packages/private/shared-ux/modal/tabbed/src/tabbed_modal.tsx similarity index 100% rename from packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx rename to src/platform/packages/private/shared-ux/modal/tabbed/src/tabbed_modal.tsx diff --git a/packages/shared-ux/modal/tabbed/storybook/setup.ts b/src/platform/packages/private/shared-ux/modal/tabbed/storybook/setup.ts similarity index 100% rename from packages/shared-ux/modal/tabbed/storybook/setup.ts rename to src/platform/packages/private/shared-ux/modal/tabbed/storybook/setup.ts diff --git a/packages/shared-ux/modal/tabbed/tsconfig.json b/src/platform/packages/private/shared-ux/modal/tabbed/tsconfig.json similarity index 79% rename from packages/shared-ux/modal/tabbed/tsconfig.json rename to src/platform/packages/private/shared-ux/modal/tabbed/tsconfig.json index ecd52b154a2b4..e20a19c2dd168 100644 --- a/packages/shared-ux/modal/tabbed/tsconfig.json +++ b/src/platform/packages/private/shared-ux/modal/tabbed/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 0e93b17ff4aeb..70453be6ef853 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1814,8 +1814,8 @@ "@kbn/shared-ux-storybook-config/*": ["packages/shared-ux/storybook/config/*"], "@kbn/shared-ux-storybook-mock": ["src/platform/packages/shared/shared-ux/storybook/mock"], "@kbn/shared-ux-storybook-mock/*": ["src/platform/packages/shared/shared-ux/storybook/mock/*"], - "@kbn/shared-ux-tabbed-modal": ["packages/shared-ux/modal/tabbed"], - "@kbn/shared-ux-tabbed-modal/*": ["packages/shared-ux/modal/tabbed/*"], + "@kbn/shared-ux-tabbed-modal": ["src/platform/packages/private/shared-ux/modal/tabbed"], + "@kbn/shared-ux-tabbed-modal/*": ["src/platform/packages/private/shared-ux/modal/tabbed/*"], "@kbn/shared-ux-table-persist": ["packages/shared-ux/table_persist"], "@kbn/shared-ux-table-persist/*": ["packages/shared-ux/table_persist/*"], "@kbn/shared-ux-utility": ["packages/kbn-shared-ux-utility"], diff --git a/yarn.lock b/yarn.lock index fc2ae932c589e..3d094594ae411 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7444,7 +7444,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-tabbed-modal@link:packages/shared-ux/modal/tabbed": +"@kbn/shared-ux-tabbed-modal@link:src/platform/packages/private/shared-ux/modal/tabbed": version "0.0.0" uid "" From c936606c323d8ec07aeaed4856182e039c415d3c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 15:04:39 +0100 Subject: [PATCH 123/129] Relocating module `@kbn/shared-ux-table-persist` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/shared-ux/table_persist/README.md | 0 .../packages/private}/shared-ux/table_persist/index.ts | 0 .../packages/private}/shared-ux/table_persist/jest.config.js | 4 ++-- .../packages/private}/shared-ux/table_persist/kibana.jsonc | 0 .../packages/private}/shared-ux/table_persist/package.json | 0 .../private}/shared-ux/table_persist/src/constants.ts | 0 .../packages/private}/shared-ux/table_persist/src/index.ts | 0 .../packages/private}/shared-ux/table_persist/src/storage.ts | 0 .../shared-ux/table_persist/src/table_persist_hoc.test.tsx | 0 .../shared-ux/table_persist/src/table_persist_hoc.tsx | 0 .../packages/private}/shared-ux/table_persist/src/types.ts | 0 .../shared-ux/table_persist/src/use_table_persist.test.ts | 0 .../private}/shared-ux/table_persist/src/use_table_persist.ts | 0 .../shared-ux/table_persist/src/validate_persist_data.ts | 0 .../shared-ux/table_persist/src/validate_persist_date.test.ts | 0 .../packages/private}/shared-ux/table_persist/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 20 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/shared-ux/table_persist/README.md (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/jest.config.js (82%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/package.json (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/constants.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/index.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/storage.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/table_persist_hoc.test.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/table_persist_hoc.tsx (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/types.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/use_table_persist.test.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/use_table_persist.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/validate_persist_data.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/src/validate_persist_date.test.ts (100%) rename {packages => src/platform/packages/private}/shared-ux/table_persist/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2f2a1e7d1c85c..2417923962830 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -520,7 +520,6 @@ packages/serverless/storybook/config @elastic/appex-sharedux packages/shared-ux/router/mocks @elastic/appex-sharedux packages/shared-ux/router/types @elastic/appex-sharedux packages/shared-ux/storybook/config @elastic/appex-sharedux -packages/shared-ux/table_persist @elastic/appex-sharedux src/core @elastic/kibana-core src/platform/packages/private/content-management/favorites/favorites_common @elastic/appex-sharedux src/platform/packages/private/content-management/tabbed_table_list_view @elastic/appex-sharedux @@ -555,6 +554,7 @@ src/platform/packages/private/shared-ux/page/kibana_no_data/mocks @elastic/appex src/platform/packages/private/shared-ux/page/kibana_no_data/types @elastic/appex-sharedux src/platform/packages/private/shared-ux/prompt/no_data_views/impl @elastic/appex-sharedux src/platform/packages/private/shared-ux/prompt/no_data_views/mocks @elastic/appex-sharedux +src/platform/packages/private/shared-ux/table_persist @elastic/appex-sharedux src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux diff --git a/package.json b/package.json index fbd62272e630f..5307a7437fbcd 100644 --- a/package.json +++ b/package.json @@ -922,7 +922,7 @@ "@kbn/shared-ux-storybook-config": "link:packages/shared-ux/storybook/config", "@kbn/shared-ux-storybook-mock": "link:src/platform/packages/shared/shared-ux/storybook/mock", "@kbn/shared-ux-tabbed-modal": "link:src/platform/packages/private/shared-ux/modal/tabbed", - "@kbn/shared-ux-table-persist": "link:packages/shared-ux/table_persist", + "@kbn/shared-ux-table-persist": "link:src/platform/packages/private/shared-ux/table_persist", "@kbn/shared-ux-utility": "link:packages/kbn-shared-ux-utility", "@kbn/slo-plugin": "link:x-pack/plugins/observability_solution/slo", "@kbn/slo-schema": "link:x-pack/packages/kbn-slo-schema", diff --git a/packages/shared-ux/table_persist/README.md b/src/platform/packages/private/shared-ux/table_persist/README.md similarity index 100% rename from packages/shared-ux/table_persist/README.md rename to src/platform/packages/private/shared-ux/table_persist/README.md diff --git a/packages/shared-ux/table_persist/index.ts b/src/platform/packages/private/shared-ux/table_persist/index.ts similarity index 100% rename from packages/shared-ux/table_persist/index.ts rename to src/platform/packages/private/shared-ux/table_persist/index.ts diff --git a/packages/shared-ux/table_persist/jest.config.js b/src/platform/packages/private/shared-ux/table_persist/jest.config.js similarity index 82% rename from packages/shared-ux/table_persist/jest.config.js rename to src/platform/packages/private/shared-ux/table_persist/jest.config.js index 0c5cf60724bac..0fb868d7419f3 100644 --- a/packages/shared-ux/table_persist/jest.config.js +++ b/src/platform/packages/private/shared-ux/table_persist/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/packages/shared-ux/table_persist'], + rootDir: '../../../../../..', + roots: ['/src/platform/packages/private/shared-ux/table_persist'], }; diff --git a/packages/shared-ux/table_persist/kibana.jsonc b/src/platform/packages/private/shared-ux/table_persist/kibana.jsonc similarity index 100% rename from packages/shared-ux/table_persist/kibana.jsonc rename to src/platform/packages/private/shared-ux/table_persist/kibana.jsonc diff --git a/packages/shared-ux/table_persist/package.json b/src/platform/packages/private/shared-ux/table_persist/package.json similarity index 100% rename from packages/shared-ux/table_persist/package.json rename to src/platform/packages/private/shared-ux/table_persist/package.json diff --git a/packages/shared-ux/table_persist/src/constants.ts b/src/platform/packages/private/shared-ux/table_persist/src/constants.ts similarity index 100% rename from packages/shared-ux/table_persist/src/constants.ts rename to src/platform/packages/private/shared-ux/table_persist/src/constants.ts diff --git a/packages/shared-ux/table_persist/src/index.ts b/src/platform/packages/private/shared-ux/table_persist/src/index.ts similarity index 100% rename from packages/shared-ux/table_persist/src/index.ts rename to src/platform/packages/private/shared-ux/table_persist/src/index.ts diff --git a/packages/shared-ux/table_persist/src/storage.ts b/src/platform/packages/private/shared-ux/table_persist/src/storage.ts similarity index 100% rename from packages/shared-ux/table_persist/src/storage.ts rename to src/platform/packages/private/shared-ux/table_persist/src/storage.ts diff --git a/packages/shared-ux/table_persist/src/table_persist_hoc.test.tsx b/src/platform/packages/private/shared-ux/table_persist/src/table_persist_hoc.test.tsx similarity index 100% rename from packages/shared-ux/table_persist/src/table_persist_hoc.test.tsx rename to src/platform/packages/private/shared-ux/table_persist/src/table_persist_hoc.test.tsx diff --git a/packages/shared-ux/table_persist/src/table_persist_hoc.tsx b/src/platform/packages/private/shared-ux/table_persist/src/table_persist_hoc.tsx similarity index 100% rename from packages/shared-ux/table_persist/src/table_persist_hoc.tsx rename to src/platform/packages/private/shared-ux/table_persist/src/table_persist_hoc.tsx diff --git a/packages/shared-ux/table_persist/src/types.ts b/src/platform/packages/private/shared-ux/table_persist/src/types.ts similarity index 100% rename from packages/shared-ux/table_persist/src/types.ts rename to src/platform/packages/private/shared-ux/table_persist/src/types.ts diff --git a/packages/shared-ux/table_persist/src/use_table_persist.test.ts b/src/platform/packages/private/shared-ux/table_persist/src/use_table_persist.test.ts similarity index 100% rename from packages/shared-ux/table_persist/src/use_table_persist.test.ts rename to src/platform/packages/private/shared-ux/table_persist/src/use_table_persist.test.ts diff --git a/packages/shared-ux/table_persist/src/use_table_persist.ts b/src/platform/packages/private/shared-ux/table_persist/src/use_table_persist.ts similarity index 100% rename from packages/shared-ux/table_persist/src/use_table_persist.ts rename to src/platform/packages/private/shared-ux/table_persist/src/use_table_persist.ts diff --git a/packages/shared-ux/table_persist/src/validate_persist_data.ts b/src/platform/packages/private/shared-ux/table_persist/src/validate_persist_data.ts similarity index 100% rename from packages/shared-ux/table_persist/src/validate_persist_data.ts rename to src/platform/packages/private/shared-ux/table_persist/src/validate_persist_data.ts diff --git a/packages/shared-ux/table_persist/src/validate_persist_date.test.ts b/src/platform/packages/private/shared-ux/table_persist/src/validate_persist_date.test.ts similarity index 100% rename from packages/shared-ux/table_persist/src/validate_persist_date.test.ts rename to src/platform/packages/private/shared-ux/table_persist/src/validate_persist_date.test.ts diff --git a/packages/shared-ux/table_persist/tsconfig.json b/src/platform/packages/private/shared-ux/table_persist/tsconfig.json similarity index 81% rename from packages/shared-ux/table_persist/tsconfig.json rename to src/platform/packages/private/shared-ux/table_persist/tsconfig.json index 60e639fea37e0..01174e136eb6a 100644 --- a/packages/shared-ux/table_persist/tsconfig.json +++ b/src/platform/packages/private/shared-ux/table_persist/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 70453be6ef853..2d0290077f847 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1816,8 +1816,8 @@ "@kbn/shared-ux-storybook-mock/*": ["src/platform/packages/shared/shared-ux/storybook/mock/*"], "@kbn/shared-ux-tabbed-modal": ["src/platform/packages/private/shared-ux/modal/tabbed"], "@kbn/shared-ux-tabbed-modal/*": ["src/platform/packages/private/shared-ux/modal/tabbed/*"], - "@kbn/shared-ux-table-persist": ["packages/shared-ux/table_persist"], - "@kbn/shared-ux-table-persist/*": ["packages/shared-ux/table_persist/*"], + "@kbn/shared-ux-table-persist": ["src/platform/packages/private/shared-ux/table_persist"], + "@kbn/shared-ux-table-persist/*": ["src/platform/packages/private/shared-ux/table_persist/*"], "@kbn/shared-ux-utility": ["packages/kbn-shared-ux-utility"], "@kbn/shared-ux-utility/*": ["packages/kbn-shared-ux-utility/*"], "@kbn/slo-plugin": ["x-pack/plugins/observability_solution/slo"], diff --git a/yarn.lock b/yarn.lock index 3d094594ae411..9ce7e926dab3e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7448,7 +7448,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-table-persist@link:packages/shared-ux/table_persist": +"@kbn/shared-ux-table-persist@link:src/platform/packages/private/shared-ux/table_persist": version "0.0.0" uid "" From 7bed568bbdf719fee5e5727086741cc8dd53658e Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 15:06:04 +0100 Subject: [PATCH 124/129] Relocating module `@kbn/shared-ux-utility` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/kbn-shared-ux-utility/README.mdx | 0 .../packages/shared}/kbn-shared-ux-utility/index.ts | 0 .../packages/shared}/kbn-shared-ux-utility/jest.config.js | 6 +++--- .../packages/shared}/kbn-shared-ux-utility/kibana.jsonc | 0 .../packages/shared}/kbn-shared-ux-utility/package.json | 0 .../packages/shared}/kbn-shared-ux-utility/setup_tests.ts | 0 .../shared}/kbn-shared-ux-utility/src/dynamic/README.md | 0 .../kbn-shared-ux-utility/src/dynamic/dynamic.test.tsx | 0 .../shared}/kbn-shared-ux-utility/src/dynamic/dynamic.tsx | 0 .../shared}/kbn-shared-ux-utility/src/dynamic/index.ts | 0 .../kbn-shared-ux-utility/src/dynamic/test_component.tsx | 0 .../packages/shared}/kbn-shared-ux-utility/src/fallback.tsx | 0 .../shared}/kbn-shared-ux-utility/src/utils.test.ts | 0 .../packages/shared}/kbn-shared-ux-utility/src/utils.ts | 0 .../shared}/kbn-shared-ux-utility/src/with_suspense.tsx | 0 .../packages/shared}/kbn-shared-ux-utility/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 20 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/README.mdx (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/jest.config.js (71%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/setup_tests.ts (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/src/dynamic/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/src/dynamic/dynamic.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/src/dynamic/dynamic.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/src/dynamic/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/src/dynamic/test_component.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/src/fallback.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/src/utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/src/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/src/with_suspense.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-shared-ux-utility/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2417923962830..c68b5e4a57803 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -461,7 +461,6 @@ packages/kbn-server-route-repository-client @elastic/obs-knowledge-team packages/kbn-server-route-repository-utils @elastic/obs-knowledge-team packages/kbn-set-map @elastic/kibana-operations packages/kbn-shared-svg @elastic/obs-ux-infra_services-team -packages/kbn-shared-ux-utility @elastic/appex-sharedux packages/kbn-some-dev-log @elastic/kibana-operations packages/kbn-sort-package-json @elastic/kibana-operations packages/kbn-sort-predicates @elastic/kibana-visualizations @@ -580,6 +579,7 @@ src/platform/packages/shared/kbn-monaco @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux src/platform/packages/shared/kbn-recently-accessed @elastic/appex-sharedux +src/platform/packages/shared/kbn-shared-ux-utility @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/common @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/render @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/styled @elastic/appex-sharedux diff --git a/package.json b/package.json index 5307a7437fbcd..fd546a25d5e8c 100644 --- a/package.json +++ b/package.json @@ -923,7 +923,7 @@ "@kbn/shared-ux-storybook-mock": "link:src/platform/packages/shared/shared-ux/storybook/mock", "@kbn/shared-ux-tabbed-modal": "link:src/platform/packages/private/shared-ux/modal/tabbed", "@kbn/shared-ux-table-persist": "link:src/platform/packages/private/shared-ux/table_persist", - "@kbn/shared-ux-utility": "link:packages/kbn-shared-ux-utility", + "@kbn/shared-ux-utility": "link:src/platform/packages/shared/kbn-shared-ux-utility", "@kbn/slo-plugin": "link:x-pack/plugins/observability_solution/slo", "@kbn/slo-schema": "link:x-pack/packages/kbn-slo-schema", "@kbn/snapshot-restore-plugin": "link:x-pack/plugins/snapshot_restore", diff --git a/packages/kbn-shared-ux-utility/README.mdx b/src/platform/packages/shared/kbn-shared-ux-utility/README.mdx similarity index 100% rename from packages/kbn-shared-ux-utility/README.mdx rename to src/platform/packages/shared/kbn-shared-ux-utility/README.mdx diff --git a/packages/kbn-shared-ux-utility/index.ts b/src/platform/packages/shared/kbn-shared-ux-utility/index.ts similarity index 100% rename from packages/kbn-shared-ux-utility/index.ts rename to src/platform/packages/shared/kbn-shared-ux-utility/index.ts diff --git a/packages/kbn-shared-ux-utility/jest.config.js b/src/platform/packages/shared/kbn-shared-ux-utility/jest.config.js similarity index 71% rename from packages/kbn-shared-ux-utility/jest.config.js rename to src/platform/packages/shared/kbn-shared-ux-utility/jest.config.js index 96e07429cae5e..983956dfdcddd 100644 --- a/packages/kbn-shared-ux-utility/jest.config.js +++ b/src/platform/packages/shared/kbn-shared-ux-utility/jest.config.js @@ -9,7 +9,7 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-shared-ux-utility'], - setupFilesAfterEnv: ['/packages/kbn-shared-ux-utility/setup_tests.ts'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-shared-ux-utility'], + setupFilesAfterEnv: ['/src/platform/packages/shared/kbn-shared-ux-utility/setup_tests.ts'], }; diff --git a/packages/kbn-shared-ux-utility/kibana.jsonc b/src/platform/packages/shared/kbn-shared-ux-utility/kibana.jsonc similarity index 100% rename from packages/kbn-shared-ux-utility/kibana.jsonc rename to src/platform/packages/shared/kbn-shared-ux-utility/kibana.jsonc diff --git a/packages/kbn-shared-ux-utility/package.json b/src/platform/packages/shared/kbn-shared-ux-utility/package.json similarity index 100% rename from packages/kbn-shared-ux-utility/package.json rename to src/platform/packages/shared/kbn-shared-ux-utility/package.json diff --git a/packages/kbn-shared-ux-utility/setup_tests.ts b/src/platform/packages/shared/kbn-shared-ux-utility/setup_tests.ts similarity index 100% rename from packages/kbn-shared-ux-utility/setup_tests.ts rename to src/platform/packages/shared/kbn-shared-ux-utility/setup_tests.ts diff --git a/packages/kbn-shared-ux-utility/src/dynamic/README.md b/src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/README.md similarity index 100% rename from packages/kbn-shared-ux-utility/src/dynamic/README.md rename to src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/README.md diff --git a/packages/kbn-shared-ux-utility/src/dynamic/dynamic.test.tsx b/src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/dynamic.test.tsx similarity index 100% rename from packages/kbn-shared-ux-utility/src/dynamic/dynamic.test.tsx rename to src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/dynamic.test.tsx diff --git a/packages/kbn-shared-ux-utility/src/dynamic/dynamic.tsx b/src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/dynamic.tsx similarity index 100% rename from packages/kbn-shared-ux-utility/src/dynamic/dynamic.tsx rename to src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/dynamic.tsx diff --git a/packages/kbn-shared-ux-utility/src/dynamic/index.ts b/src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/index.ts similarity index 100% rename from packages/kbn-shared-ux-utility/src/dynamic/index.ts rename to src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/index.ts diff --git a/packages/kbn-shared-ux-utility/src/dynamic/test_component.tsx b/src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/test_component.tsx similarity index 100% rename from packages/kbn-shared-ux-utility/src/dynamic/test_component.tsx rename to src/platform/packages/shared/kbn-shared-ux-utility/src/dynamic/test_component.tsx diff --git a/packages/kbn-shared-ux-utility/src/fallback.tsx b/src/platform/packages/shared/kbn-shared-ux-utility/src/fallback.tsx similarity index 100% rename from packages/kbn-shared-ux-utility/src/fallback.tsx rename to src/platform/packages/shared/kbn-shared-ux-utility/src/fallback.tsx diff --git a/packages/kbn-shared-ux-utility/src/utils.test.ts b/src/platform/packages/shared/kbn-shared-ux-utility/src/utils.test.ts similarity index 100% rename from packages/kbn-shared-ux-utility/src/utils.test.ts rename to src/platform/packages/shared/kbn-shared-ux-utility/src/utils.test.ts diff --git a/packages/kbn-shared-ux-utility/src/utils.ts b/src/platform/packages/shared/kbn-shared-ux-utility/src/utils.ts similarity index 100% rename from packages/kbn-shared-ux-utility/src/utils.ts rename to src/platform/packages/shared/kbn-shared-ux-utility/src/utils.ts diff --git a/packages/kbn-shared-ux-utility/src/with_suspense.tsx b/src/platform/packages/shared/kbn-shared-ux-utility/src/with_suspense.tsx similarity index 100% rename from packages/kbn-shared-ux-utility/src/with_suspense.tsx rename to src/platform/packages/shared/kbn-shared-ux-utility/src/with_suspense.tsx diff --git a/packages/kbn-shared-ux-utility/tsconfig.json b/src/platform/packages/shared/kbn-shared-ux-utility/tsconfig.json similarity index 87% rename from packages/kbn-shared-ux-utility/tsconfig.json rename to src/platform/packages/shared/kbn-shared-ux-utility/tsconfig.json index cd8716bf04d9b..deeb6e2973dc7 100644 --- a/packages/kbn-shared-ux-utility/tsconfig.json +++ b/src/platform/packages/shared/kbn-shared-ux-utility/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 2d0290077f847..0471f426c3ea8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1818,8 +1818,8 @@ "@kbn/shared-ux-tabbed-modal/*": ["src/platform/packages/private/shared-ux/modal/tabbed/*"], "@kbn/shared-ux-table-persist": ["src/platform/packages/private/shared-ux/table_persist"], "@kbn/shared-ux-table-persist/*": ["src/platform/packages/private/shared-ux/table_persist/*"], - "@kbn/shared-ux-utility": ["packages/kbn-shared-ux-utility"], - "@kbn/shared-ux-utility/*": ["packages/kbn-shared-ux-utility/*"], + "@kbn/shared-ux-utility": ["src/platform/packages/shared/kbn-shared-ux-utility"], + "@kbn/shared-ux-utility/*": ["src/platform/packages/shared/kbn-shared-ux-utility/*"], "@kbn/slo-plugin": ["x-pack/plugins/observability_solution/slo"], "@kbn/slo-plugin/*": ["x-pack/plugins/observability_solution/slo/*"], "@kbn/slo-schema": ["x-pack/packages/kbn-slo-schema"], diff --git a/yarn.lock b/yarn.lock index 9ce7e926dab3e..65fc4d381b305 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7452,7 +7452,7 @@ version "0.0.0" uid "" -"@kbn/shared-ux-utility@link:packages/kbn-shared-ux-utility": +"@kbn/shared-ux-utility@link:src/platform/packages/shared/kbn-shared-ux-utility": version "0.0.0" uid "" From ef37c07a29dcc413376362adac575c427ba719bf Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 15:07:27 +0100 Subject: [PATCH 125/129] Relocating module `@kbn/ui-actions-browser` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- package.json | 2 +- .../packages/shared}/kbn-ui-actions-browser/README.md | 0 .../platform/packages/shared}/kbn-ui-actions-browser/index.ts | 0 .../packages/shared}/kbn-ui-actions-browser/jest.config.js | 4 ++-- .../packages/shared}/kbn-ui-actions-browser/kibana.jsonc | 0 .../packages/shared}/kbn-ui-actions-browser/package.json | 0 .../packages/shared}/kbn-ui-actions-browser/src/index.ts | 0 .../src/triggers/dashboard_app_panel_trigger.ts | 0 .../kbn-ui-actions-browser/src/triggers/default_trigger.ts | 0 .../shared}/kbn-ui-actions-browser/src/triggers/index.ts | 0 .../kbn-ui-actions-browser/src/triggers/row_click_trigger.ts | 0 .../shared}/kbn-ui-actions-browser/src/triggers/trigger.ts | 0 .../src/triggers/visualize_field_trigger.ts | 0 .../src/triggers/visualize_geo_field_trigger.ts | 0 .../shared}/kbn-ui-actions-browser/src/types/index.ts | 0 .../shared}/kbn-ui-actions-browser/src/types/presentable.ts | 0 .../packages/shared}/kbn-ui-actions-browser/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/triggers/default_trigger.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/triggers/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/triggers/trigger.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/types/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/src/types/presentable.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-actions-browser/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c68b5e4a57803..f9b0c6bb95b05 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -485,7 +485,6 @@ packages/kbn-try-in-console @elastic/search-kibana packages/kbn-ts-projects @elastic/kibana-operations packages/kbn-ts-type-check-cli @elastic/kibana-operations packages/kbn-typed-react-router-config @elastic/obs-knowledge-team @elastic/obs-ux-infra_services-team -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 @@ -580,6 +579,7 @@ src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux src/platform/packages/shared/kbn-recently-accessed @elastic/appex-sharedux src/platform/packages/shared/kbn-shared-ux-utility @elastic/appex-sharedux +src/platform/packages/shared/kbn-ui-actions-browser @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/common @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/render @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/styled @elastic/appex-sharedux diff --git a/.i18nrc.json b/.i18nrc.json index 666c4c34a270d..9ce5a4fd977a8 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -126,7 +126,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/plugins/ui_actions", "src/platform/packages/shared/kbn-ui-actions-browser"], "uiActionsEnhanced": "src/plugins/ui_actions_enhanced", "uiActionsExamples": "examples/ui_action_examples", "usageCollection": "src/plugins/usage_collection", diff --git a/package.json b/package.json index fd546a25d5e8c..d34c16c5262ae 100644 --- a/package.json +++ b/package.json @@ -969,7 +969,7 @@ "@kbn/triggers-actions-ui-types": "link:packages/kbn-triggers-actions-ui-types", "@kbn/try-in-console": "link:packages/kbn-try-in-console", "@kbn/typed-react-router-config": "link:packages/kbn-typed-react-router-config", - "@kbn/ui-actions-browser": "link:packages/kbn-ui-actions-browser", + "@kbn/ui-actions-browser": "link:src/platform/packages/shared/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-examples-plugin": "link:examples/ui_action_examples", diff --git a/packages/kbn-ui-actions-browser/README.md b/src/platform/packages/shared/kbn-ui-actions-browser/README.md similarity index 100% rename from packages/kbn-ui-actions-browser/README.md rename to src/platform/packages/shared/kbn-ui-actions-browser/README.md diff --git a/packages/kbn-ui-actions-browser/index.ts b/src/platform/packages/shared/kbn-ui-actions-browser/index.ts similarity index 100% rename from packages/kbn-ui-actions-browser/index.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/index.ts diff --git a/packages/kbn-ui-actions-browser/jest.config.js b/src/platform/packages/shared/kbn-ui-actions-browser/jest.config.js similarity index 83% rename from packages/kbn-ui-actions-browser/jest.config.js rename to src/platform/packages/shared/kbn-ui-actions-browser/jest.config.js index fc4592b7f901b..fa551cd8a900e 100644 --- a/packages/kbn-ui-actions-browser/jest.config.js +++ b/src/platform/packages/shared/kbn-ui-actions-browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-ui-actions-browser'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-ui-actions-browser'], }; diff --git a/packages/kbn-ui-actions-browser/kibana.jsonc b/src/platform/packages/shared/kbn-ui-actions-browser/kibana.jsonc similarity index 100% rename from packages/kbn-ui-actions-browser/kibana.jsonc rename to src/platform/packages/shared/kbn-ui-actions-browser/kibana.jsonc diff --git a/packages/kbn-ui-actions-browser/package.json b/src/platform/packages/shared/kbn-ui-actions-browser/package.json similarity index 100% rename from packages/kbn-ui-actions-browser/package.json rename to src/platform/packages/shared/kbn-ui-actions-browser/package.json diff --git a/packages/kbn-ui-actions-browser/src/index.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/index.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/index.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/index.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/dashboard_app_panel_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/default_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/default_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/default_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/default_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/index.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/index.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/index.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/index.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/row_click_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_field_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/triggers/visualize_geo_field_trigger.ts diff --git a/packages/kbn-ui-actions-browser/src/types/index.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/types/index.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/types/index.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/types/index.ts diff --git a/packages/kbn-ui-actions-browser/src/types/presentable.ts b/src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts similarity index 100% rename from packages/kbn-ui-actions-browser/src/types/presentable.ts rename to src/platform/packages/shared/kbn-ui-actions-browser/src/types/presentable.ts diff --git a/packages/kbn-ui-actions-browser/tsconfig.json b/src/platform/packages/shared/kbn-ui-actions-browser/tsconfig.json similarity index 86% rename from packages/kbn-ui-actions-browser/tsconfig.json rename to src/platform/packages/shared/kbn-ui-actions-browser/tsconfig.json index ba72c1d931739..332c4b2fa1f5a 100644 --- a/packages/kbn-ui-actions-browser/tsconfig.json +++ b/src/platform/packages/shared/kbn-ui-actions-browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 0471f426c3ea8..8166ac8687cb1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1944,8 +1944,8 @@ "@kbn/ts-type-check-cli/*": ["packages/kbn-ts-type-check-cli/*"], "@kbn/typed-react-router-config": ["packages/kbn-typed-react-router-config"], "@kbn/typed-react-router-config/*": ["packages/kbn-typed-react-router-config/*"], - "@kbn/ui-actions-browser": ["packages/kbn-ui-actions-browser"], - "@kbn/ui-actions-browser/*": ["packages/kbn-ui-actions-browser/*"], + "@kbn/ui-actions-browser": ["src/platform/packages/shared/kbn-ui-actions-browser"], + "@kbn/ui-actions-browser/*": ["src/platform/packages/shared/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"], diff --git a/yarn.lock b/yarn.lock index 65fc4d381b305..024ea7f6345c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7704,7 +7704,7 @@ version "0.0.0" uid "" -"@kbn/ui-actions-browser@link:packages/kbn-ui-actions-browser": +"@kbn/ui-actions-browser@link:src/platform/packages/shared/kbn-ui-actions-browser": version "0.0.0" uid "" From 01eb6614d581b7f1b4978174295b57d6e602e031 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 15:08:51 +0100 Subject: [PATCH 126/129] Relocating module `@kbn/ui-actions-enhanced-examples-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 4 ++++ docs/user/dashboard/drilldowns.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- .../examples/ui_actions_enhanced_examples/.eslintrc.json | 0 .../x-pack}/examples/ui_actions_enhanced_examples/README.md | 0 .../examples/ui_actions_enhanced_examples/kibana.jsonc | 0 .../public/components/page/index.tsx | 0 .../public/components/section/index.tsx | 0 .../public/components/section/section.tsx | 0 .../public/containers/app/app.tsx | 0 .../public/containers/app/index.tsx | 0 .../containers/drilldowns_manager/drilldowns_manager.tsx | 0 .../public/containers/drilldowns_manager/index.tsx | 0 .../drilldowns_with_embeddable_example.tsx | 0 .../containers/drilldowns_with_embeddable_example/index.tsx | 0 .../drilldowns_without_embeddable_example.tsx | 0 .../drilldowns_without_embeddable_example/index.tsx | 0 .../drilldowns_without_embeddable_single_button_example.tsx | 0 .../index.tsx | 0 .../ui_actions_enhanced_examples/public/context/context.ts | 0 .../ui_actions_enhanced_examples/public/context/index.ts | 0 .../app1_hello_world_drilldown/app1_hello_world_drilldown.tsx | 0 .../public/drilldowns/app1_hello_world_drilldown/index.tsx | 0 .../app1_to_dashboard_drilldown.ts | 0 .../public/drilldowns/app1_to_dashboard_drilldown/index.tsx | 0 .../app2_to_dashboard_drilldown.ts | 0 .../public/drilldowns/app2_to_dashboard_drilldown/index.tsx | 0 .../drilldowns/dashboard_hello_world_drilldown/README.md | 0 .../drilldowns/dashboard_hello_world_drilldown/index.tsx | 0 .../README.md | 0 .../index.tsx | 0 .../collect_config_container.tsx | 0 .../discover_drilldown_config/discover_drilldown_config.tsx | 0 .../components/discover_drilldown_config/i18n.ts | 0 .../components/discover_drilldown_config/index.ts | 0 .../dashboard_to_discover_drilldown/components/index.ts | 0 .../drilldowns/dashboard_to_discover_drilldown/constants.ts | 0 .../drilldowns/dashboard_to_discover_drilldown/drilldown.tsx | 0 .../public/drilldowns/dashboard_to_discover_drilldown/i18n.ts | 0 .../drilldowns/dashboard_to_discover_drilldown/index.ts | 0 .../drilldowns/dashboard_to_discover_drilldown/types.ts | 0 .../public/embeddables/button_embeddable/button_embeddable.ts | 0 .../button_embeddable/button_embeddable_component.tsx | 0 .../public/embeddables/button_embeddable/index.ts | 0 .../examples/ui_actions_enhanced_examples/public/index.ts | 0 .../examples/ui_actions_enhanced_examples/public/mount.tsx | 0 .../examples/ui_actions_enhanced_examples/public/plugin.ts | 2 +- .../ui_actions_enhanced_examples/public/triggers/index.ts | 0 .../public/triggers/sample_app1_trigger.ts | 0 .../public/triggers/sample_app2_trigger.ts | 0 .../examples/ui_actions_enhanced_examples/tsconfig.json | 4 ++-- yarn.lock | 2 +- 54 files changed, 13 insertions(+), 9 deletions(-) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/.eslintrc.json (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/README.md (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/kibana.jsonc (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/components/page/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/components/section/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/components/section/section.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/app/app.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/app/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/drilldowns_manager/drilldowns_manager.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/drilldowns_manager/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/drilldowns_with_embeddable_example/drilldowns_with_embeddable_example.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/drilldowns_with_embeddable_example/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/drilldowns_without_embeddable_example/drilldowns_without_embeddable_example.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/drilldowns_without_embeddable_example/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/drilldowns_without_embeddable_single_button_example/drilldowns_without_embeddable_single_button_example.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/containers/drilldowns_without_embeddable_single_button_example/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/context/context.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/context/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/app1_hello_world_drilldown/app1_hello_world_drilldown.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/app1_hello_world_drilldown/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/app1_to_dashboard_drilldown/app1_to_dashboard_drilldown.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/app1_to_dashboard_drilldown/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/app2_to_dashboard_drilldown/app2_to_dashboard_drilldown.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/app2_to_dashboard_drilldown/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_drilldown/README.md (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_drilldown/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_only_range_select_drilldown/README.md (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_hello_world_only_range_select_drilldown/index.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/collect_config_container.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/components/discover_drilldown_config/discover_drilldown_config.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/components/discover_drilldown_config/i18n.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/components/discover_drilldown_config/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/components/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/constants.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/drilldown.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/i18n.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/drilldowns/dashboard_to_discover_drilldown/types.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/embeddables/button_embeddable/button_embeddable.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/embeddables/button_embeddable/button_embeddable_component.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/embeddables/button_embeddable/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/mount.tsx (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/plugin.ts (97%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/triggers/index.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/triggers/sample_app1_trigger.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/public/triggers/sample_app2_trigger.ts (100%) rename x-pack/{ => platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack}/examples/ui_actions_enhanced_examples/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f9b0c6bb95b05..9213acfe3b1e2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -771,7 +771,6 @@ x-pack/examples/third_party_lens_navigation_prompt @elastic/kibana-visualization x-pack/examples/third_party_maps_source_example @elastic/kibana-presentation x-pack/examples/third_party_vis_lens_example @elastic/kibana-visualizations x-pack/examples/triggers_actions_ui_example @elastic/response-ops -x-pack/examples/ui_actions_enhanced_examples @elastic/appex-sharedux x-pack/packages/ai-infra/inference-common @elastic/appex-ai-infra x-pack/packages/ai-infra/product-doc-artifact-builder @elastic/appex-ai-infra x-pack/packages/ai-infra/product-doc-common @elastic/appex-ai-infra @@ -870,6 +869,7 @@ x-pack/platform/plugins/private/global_search_providers @elastic/appex-sharedux x-pack/platform/plugins/private/reporting @elastic/appex-sharedux x-pack/platform/plugins/private/saved_objects_tagging @elastic/appex-sharedux x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/screenshotting_example @elastic/appex-sharedux +x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/ui_actions_enhanced_examples @elastic/appex-sharedux 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/notifications @elastic/appex-sharedux diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 5d4ae8e6a42f0..2c2c05fe785b0 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -964,6 +964,10 @@ For adding localizations and instrument a ui to support translated content, see As a developer you can reuse and extend built-in alerts and actions UI functionality: +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/ui_actions_enhanced_examples/README.md[uiActionsEnhancedExamples] +|To run this example plugin, use the command yarn start --run-examples. + + |{kib-repo}blob/{branch}/x-pack/plugins/upgrade_assistant/README.md[upgradeAssistant] |Upgrade Assistant helps users prepare their Stack for being upgraded to the next version of the Elastic stack. diff --git a/docs/user/dashboard/drilldowns.asciidoc b/docs/user/dashboard/drilldowns.asciidoc index cb568d97e69ee..52f68f1ce084c 100644 --- a/docs/user/dashboard/drilldowns.asciidoc +++ b/docs/user/dashboard/drilldowns.asciidoc @@ -12,7 +12,7 @@ There are three types of drilldowns you can add to dashboards: * *Discover* — Navigates you from a *Lens* dashboard panel to *Discover*. For example, create a drilldown for a *Lens* visualization that opens the visualization data in *Discover* for further exploration. -Third-party developers can create drilldowns. To learn how to code drilldowns, refer to {kib-repo}blob/{branch}/x-pack/examples/ui_actions_enhanced_examples[this example plugin]. +Third-party developers can create drilldowns. To learn how to code drilldowns, refer to {kib-repo}blob/{branch}/x-pack/platform/plugins/private/Users/gsoldevila/Work/kibana-tertiary/Users/gsoldevila/Work/kibana-tertiary/x-pack/examples/ui_actions_enhanced_examples[this example plugin]. ++++