From bcbfd56de10bfd9d5cb0ff3a299923f8d5decaf2 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Tue, 10 Dec 2024 16:33:03 +0100 Subject: [PATCH] Relocating module `@kbn/shared-svg` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/kbn-shared-svg/README.md | 0 .../platform/packages/shared}/kbn-shared-svg/index.ts | 0 .../platform/packages/shared}/kbn-shared-svg/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-shared-svg/kibana.jsonc | 0 .../platform/packages/shared}/kbn-shared-svg/package.json | 0 .../shared}/kbn-shared-svg/src/assets/dashboards_dark.svg | 0 .../shared}/kbn-shared-svg/src/assets/dashboards_light.svg | 0 .../shared}/kbn-shared-svg/src/assets/no_results_dark.svg | 0 .../shared}/kbn-shared-svg/src/assets/no_results_light.svg | 0 .../shared}/kbn-shared-svg/src/assets/oblt_apm_light.svg | 0 .../platform/packages/shared}/kbn-shared-svg/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-shared-svg/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/src/assets/dashboards_dark.svg (100%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/src/assets/dashboards_light.svg (100%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/src/assets/no_results_dark.svg (100%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/src/assets/no_results_light.svg (100%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/src/assets/oblt_apm_light.svg (100%) rename {packages => src/platform/packages/shared}/kbn-shared-svg/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 47121f1d7eaa6..ad383cb799e58 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -493,7 +493,6 @@ packages/kbn-server-route-repository @elastic/obs-knowledge-team 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 @@ -625,6 +624,7 @@ src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-es src/platform/packages/shared/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations src/platform/packages/shared/kbn-osquery-io-ts-types @elastic/security-asset-management src/platform/packages/shared/kbn-profiling-utils @elastic/obs-ux-infra_services-team +src/platform/packages/shared/kbn-shared-svg @elastic/obs-ux-infra_services-team src/platform/plugins/shared/esql @elastic/kibana-esql src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql src/platform/plugins/shared/otel_metrics @elastic/obs-ux-infra_services-team diff --git a/package.json b/package.json index 0c46ace91bf4a..7f9ab7694dbf4 100644 --- a/package.json +++ b/package.json @@ -874,7 +874,7 @@ "@kbn/set-map": "link:packages/kbn-set-map", "@kbn/share-examples-plugin": "link:examples/share_examples", "@kbn/share-plugin": "link:src/plugins/share", - "@kbn/shared-svg": "link:packages/kbn-shared-svg", + "@kbn/shared-svg": "link:src/platform/packages/shared/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", "@kbn/shared-ux-button-toolbar": "link:packages/shared-ux/button_toolbar", diff --git a/packages/kbn-shared-svg/README.md b/src/platform/packages/shared/kbn-shared-svg/README.md similarity index 100% rename from packages/kbn-shared-svg/README.md rename to src/platform/packages/shared/kbn-shared-svg/README.md diff --git a/packages/kbn-shared-svg/index.ts b/src/platform/packages/shared/kbn-shared-svg/index.ts similarity index 100% rename from packages/kbn-shared-svg/index.ts rename to src/platform/packages/shared/kbn-shared-svg/index.ts diff --git a/packages/kbn-shared-svg/jest.config.js b/src/platform/packages/shared/kbn-shared-svg/jest.config.js similarity index 84% rename from packages/kbn-shared-svg/jest.config.js rename to src/platform/packages/shared/kbn-shared-svg/jest.config.js index 5ce0f1963dc17..5e851bcf78659 100644 --- a/packages/kbn-shared-svg/jest.config.js +++ b/src/platform/packages/shared/kbn-shared-svg/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-shared-svg'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-shared-svg'], }; diff --git a/packages/kbn-shared-svg/kibana.jsonc b/src/platform/packages/shared/kbn-shared-svg/kibana.jsonc similarity index 100% rename from packages/kbn-shared-svg/kibana.jsonc rename to src/platform/packages/shared/kbn-shared-svg/kibana.jsonc diff --git a/packages/kbn-shared-svg/package.json b/src/platform/packages/shared/kbn-shared-svg/package.json similarity index 100% rename from packages/kbn-shared-svg/package.json rename to src/platform/packages/shared/kbn-shared-svg/package.json diff --git a/packages/kbn-shared-svg/src/assets/dashboards_dark.svg b/src/platform/packages/shared/kbn-shared-svg/src/assets/dashboards_dark.svg similarity index 100% rename from packages/kbn-shared-svg/src/assets/dashboards_dark.svg rename to src/platform/packages/shared/kbn-shared-svg/src/assets/dashboards_dark.svg diff --git a/packages/kbn-shared-svg/src/assets/dashboards_light.svg b/src/platform/packages/shared/kbn-shared-svg/src/assets/dashboards_light.svg similarity index 100% rename from packages/kbn-shared-svg/src/assets/dashboards_light.svg rename to src/platform/packages/shared/kbn-shared-svg/src/assets/dashboards_light.svg diff --git a/packages/kbn-shared-svg/src/assets/no_results_dark.svg b/src/platform/packages/shared/kbn-shared-svg/src/assets/no_results_dark.svg similarity index 100% rename from packages/kbn-shared-svg/src/assets/no_results_dark.svg rename to src/platform/packages/shared/kbn-shared-svg/src/assets/no_results_dark.svg diff --git a/packages/kbn-shared-svg/src/assets/no_results_light.svg b/src/platform/packages/shared/kbn-shared-svg/src/assets/no_results_light.svg similarity index 100% rename from packages/kbn-shared-svg/src/assets/no_results_light.svg rename to src/platform/packages/shared/kbn-shared-svg/src/assets/no_results_light.svg diff --git a/packages/kbn-shared-svg/src/assets/oblt_apm_light.svg b/src/platform/packages/shared/kbn-shared-svg/src/assets/oblt_apm_light.svg similarity index 100% rename from packages/kbn-shared-svg/src/assets/oblt_apm_light.svg rename to src/platform/packages/shared/kbn-shared-svg/src/assets/oblt_apm_light.svg diff --git a/packages/kbn-shared-svg/tsconfig.json b/src/platform/packages/shared/kbn-shared-svg/tsconfig.json similarity index 83% rename from packages/kbn-shared-svg/tsconfig.json rename to src/platform/packages/shared/kbn-shared-svg/tsconfig.json index faea0b4bf0765..e94460e6d9803 100644 --- a/packages/kbn-shared-svg/tsconfig.json +++ b/src/platform/packages/shared/kbn-shared-svg/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 fbcaf7d80d72b..2fc21218cffea 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1724,8 +1724,8 @@ "@kbn/share-examples-plugin/*": ["examples/share_examples/*"], "@kbn/share-plugin": ["src/plugins/share"], "@kbn/share-plugin/*": ["src/plugins/share/*"], - "@kbn/shared-svg": ["packages/kbn-shared-svg"], - "@kbn/shared-svg/*": ["packages/kbn-shared-svg/*"], + "@kbn/shared-svg": ["src/platform/packages/shared/kbn-shared-svg"], + "@kbn/shared-svg/*": ["src/platform/packages/shared/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-button-exit-full-screen": ["packages/shared-ux/button/exit_full_screen"], diff --git a/yarn.lock b/yarn.lock index 3848bdbcef793..3c600d0b7d639 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7264,7 +7264,7 @@ version "0.0.0" uid "" -"@kbn/shared-svg@link:packages/kbn-shared-svg": +"@kbn/shared-svg@link:src/platform/packages/shared/kbn-shared-svg": version "0.0.0" uid ""