From a2ff06352ed3bc02748f5bdf5a23fe4d5e679fb3 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 16:33:15 +0100 Subject: [PATCH] Relocating module `@kbn/typed-react-router-config` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/shared}/kbn-typed-react-router-config/index.ts | 0 .../shared}/kbn-typed-react-router-config/jest.config.js | 4 ++-- .../shared}/kbn-typed-react-router-config/kibana.jsonc | 0 .../shared}/kbn-typed-react-router-config/package.json | 0 .../src/breadcrumbs/breadcrumb.tsx | 0 .../kbn-typed-react-router-config/src/breadcrumbs/context.tsx | 0 .../src/breadcrumbs/create_router_breadcrumb_component.tsx | 0 .../kbn-typed-react-router-config/src/breadcrumbs/index.tsx | 0 .../src/breadcrumbs/use_breadcrumbs.ts | 0 .../src/breadcrumbs/use_router_breadcrumb.ts | 0 .../kbn-typed-react-router-config/src/create_router.test.tsx | 0 .../kbn-typed-react-router-config/src/create_router.ts | 0 .../shared}/kbn-typed-react-router-config/src/outlet.tsx | 0 .../kbn-typed-react-router-config/src/route_renderer.tsx | 0 .../kbn-typed-react-router-config/src/router_provider.tsx | 0 .../shared}/kbn-typed-react-router-config/src/types/index.ts | 0 .../shared}/kbn-typed-react-router-config/src/types/utils.ts | 0 .../kbn-typed-react-router-config/src/use_current_route.tsx | 0 .../kbn-typed-react-router-config/src/use_match_routes.ts | 0 .../shared}/kbn-typed-react-router-config/src/use_params.ts | 0 .../kbn-typed-react-router-config/src/use_route_path.tsx | 0 .../shared}/kbn-typed-react-router-config/src/use_router.tsx | 0 .../shared}/kbn-typed-react-router-config/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 27 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/jest.config.js (82%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/breadcrumbs/breadcrumb.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/breadcrumbs/context.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/breadcrumbs/create_router_breadcrumb_component.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/breadcrumbs/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/breadcrumbs/use_breadcrumbs.ts (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/breadcrumbs/use_router_breadcrumb.ts (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/create_router.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/create_router.ts (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/outlet.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/route_renderer.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/router_provider.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/types/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/types/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/use_current_route.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/use_match_routes.ts (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/use_params.ts (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/use_route_path.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/src/use_router.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-typed-react-router-config/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a627fbaf109b1..87b1a482e5795 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -519,7 +519,6 @@ packages/kbn-triggers-actions-ui-types @elastic/response-ops 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 @@ -626,6 +625,7 @@ src/platform/packages/shared/kbn-server-route-repository-client @elastic/obs-kno src/platform/packages/shared/kbn-server-route-repository-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-sse-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-sse-utils-client @elastic/obs-knowledge-team +src/platform/packages/shared/kbn-typed-react-router-config @elastic/obs-knowledge-team @elastic/obs-ux-infra_services-team 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 diff --git a/package.json b/package.json index bd0d7f7a1053f..4ce5f6b3d06f7 100644 --- a/package.json +++ b/package.json @@ -969,7 +969,7 @@ "@kbn/triggers-actions-ui-plugin": "link:x-pack/plugins/triggers_actions_ui", "@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/typed-react-router-config": "link:src/platform/packages/shared/kbn-typed-react-router-config", "@kbn/ui-actions-browser": "link:packages/kbn-ui-actions-browser", "@kbn/ui-actions-enhanced-examples-plugin": "link:x-pack/examples/ui_actions_enhanced_examples", "@kbn/ui-actions-enhanced-plugin": "link:src/plugins/ui_actions_enhanced", diff --git a/packages/kbn-typed-react-router-config/index.ts b/src/platform/packages/shared/kbn-typed-react-router-config/index.ts similarity index 100% rename from packages/kbn-typed-react-router-config/index.ts rename to src/platform/packages/shared/kbn-typed-react-router-config/index.ts diff --git a/packages/kbn-typed-react-router-config/jest.config.js b/src/platform/packages/shared/kbn-typed-react-router-config/jest.config.js similarity index 82% rename from packages/kbn-typed-react-router-config/jest.config.js rename to src/platform/packages/shared/kbn-typed-react-router-config/jest.config.js index 0b2d32b78bf87..cfaf181f1f4a2 100644 --- a/packages/kbn-typed-react-router-config/jest.config.js +++ b/src/platform/packages/shared/kbn-typed-react-router-config/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-typed-react-router-config'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-typed-react-router-config'], }; diff --git a/packages/kbn-typed-react-router-config/kibana.jsonc b/src/platform/packages/shared/kbn-typed-react-router-config/kibana.jsonc similarity index 100% rename from packages/kbn-typed-react-router-config/kibana.jsonc rename to src/platform/packages/shared/kbn-typed-react-router-config/kibana.jsonc diff --git a/packages/kbn-typed-react-router-config/package.json b/src/platform/packages/shared/kbn-typed-react-router-config/package.json similarity index 100% rename from packages/kbn-typed-react-router-config/package.json rename to src/platform/packages/shared/kbn-typed-react-router-config/package.json diff --git a/packages/kbn-typed-react-router-config/src/breadcrumbs/breadcrumb.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/breadcrumb.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/breadcrumbs/breadcrumb.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/breadcrumb.tsx diff --git a/packages/kbn-typed-react-router-config/src/breadcrumbs/context.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/context.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/breadcrumbs/context.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/context.tsx diff --git a/packages/kbn-typed-react-router-config/src/breadcrumbs/create_router_breadcrumb_component.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/create_router_breadcrumb_component.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/breadcrumbs/create_router_breadcrumb_component.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/create_router_breadcrumb_component.tsx diff --git a/packages/kbn-typed-react-router-config/src/breadcrumbs/index.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/index.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/breadcrumbs/index.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/index.tsx diff --git a/packages/kbn-typed-react-router-config/src/breadcrumbs/use_breadcrumbs.ts b/src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/use_breadcrumbs.ts similarity index 100% rename from packages/kbn-typed-react-router-config/src/breadcrumbs/use_breadcrumbs.ts rename to src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/use_breadcrumbs.ts diff --git a/packages/kbn-typed-react-router-config/src/breadcrumbs/use_router_breadcrumb.ts b/src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/use_router_breadcrumb.ts similarity index 100% rename from packages/kbn-typed-react-router-config/src/breadcrumbs/use_router_breadcrumb.ts rename to src/platform/packages/shared/kbn-typed-react-router-config/src/breadcrumbs/use_router_breadcrumb.ts diff --git a/packages/kbn-typed-react-router-config/src/create_router.test.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/create_router.test.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/create_router.test.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/create_router.test.tsx diff --git a/packages/kbn-typed-react-router-config/src/create_router.ts b/src/platform/packages/shared/kbn-typed-react-router-config/src/create_router.ts similarity index 100% rename from packages/kbn-typed-react-router-config/src/create_router.ts rename to src/platform/packages/shared/kbn-typed-react-router-config/src/create_router.ts diff --git a/packages/kbn-typed-react-router-config/src/outlet.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/outlet.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/outlet.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/outlet.tsx diff --git a/packages/kbn-typed-react-router-config/src/route_renderer.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/route_renderer.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/route_renderer.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/route_renderer.tsx diff --git a/packages/kbn-typed-react-router-config/src/router_provider.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/router_provider.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/router_provider.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/router_provider.tsx diff --git a/packages/kbn-typed-react-router-config/src/types/index.ts b/src/platform/packages/shared/kbn-typed-react-router-config/src/types/index.ts similarity index 100% rename from packages/kbn-typed-react-router-config/src/types/index.ts rename to src/platform/packages/shared/kbn-typed-react-router-config/src/types/index.ts diff --git a/packages/kbn-typed-react-router-config/src/types/utils.ts b/src/platform/packages/shared/kbn-typed-react-router-config/src/types/utils.ts similarity index 100% rename from packages/kbn-typed-react-router-config/src/types/utils.ts rename to src/platform/packages/shared/kbn-typed-react-router-config/src/types/utils.ts diff --git a/packages/kbn-typed-react-router-config/src/use_current_route.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/use_current_route.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/use_current_route.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/use_current_route.tsx diff --git a/packages/kbn-typed-react-router-config/src/use_match_routes.ts b/src/platform/packages/shared/kbn-typed-react-router-config/src/use_match_routes.ts similarity index 100% rename from packages/kbn-typed-react-router-config/src/use_match_routes.ts rename to src/platform/packages/shared/kbn-typed-react-router-config/src/use_match_routes.ts diff --git a/packages/kbn-typed-react-router-config/src/use_params.ts b/src/platform/packages/shared/kbn-typed-react-router-config/src/use_params.ts similarity index 100% rename from packages/kbn-typed-react-router-config/src/use_params.ts rename to src/platform/packages/shared/kbn-typed-react-router-config/src/use_params.ts diff --git a/packages/kbn-typed-react-router-config/src/use_route_path.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/use_route_path.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/use_route_path.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/use_route_path.tsx diff --git a/packages/kbn-typed-react-router-config/src/use_router.tsx b/src/platform/packages/shared/kbn-typed-react-router-config/src/use_router.tsx similarity index 100% rename from packages/kbn-typed-react-router-config/src/use_router.tsx rename to src/platform/packages/shared/kbn-typed-react-router-config/src/use_router.tsx diff --git a/packages/kbn-typed-react-router-config/tsconfig.json b/src/platform/packages/shared/kbn-typed-react-router-config/tsconfig.json similarity index 89% rename from packages/kbn-typed-react-router-config/tsconfig.json rename to src/platform/packages/shared/kbn-typed-react-router-config/tsconfig.json index f9a133f48e8d5..0995478cae6bc 100644 --- a/packages/kbn-typed-react-router-config/tsconfig.json +++ b/src/platform/packages/shared/kbn-typed-react-router-config/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "isolatedModules": true, "outDir": "target/types", diff --git a/tsconfig.base.json b/tsconfig.base.json index 45bcec3d05d86..faba1419991a3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1948,8 +1948,8 @@ "@kbn/ts-projects/*": ["packages/kbn-ts-projects/*"], "@kbn/ts-type-check-cli": ["packages/kbn-ts-type-check-cli"], "@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/typed-react-router-config": ["src/platform/packages/shared/kbn-typed-react-router-config"], + "@kbn/typed-react-router-config/*": ["src/platform/packages/shared/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-enhanced-examples-plugin": ["x-pack/examples/ui_actions_enhanced_examples"], diff --git a/yarn.lock b/yarn.lock index 6c11fcfa62e53..94436facfdac9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7712,7 +7712,7 @@ version "0.0.0" uid "" -"@kbn/typed-react-router-config@link:packages/kbn-typed-react-router-config": +"@kbn/typed-react-router-config@link:src/platform/packages/shared/kbn-typed-react-router-config": version "0.0.0" uid ""