Remove KUI Framework (#167833)

## Summary

Closes #46410

Removes the deprecated `@kbn/ui-framework`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Brad White 2023-10-04 08:55:03 -06:00 committed by GitHub
parent 79411d97c7
commit 2ff938e0ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1 additions and 5002 deletions

1
.github/CODEOWNERS vendored
View file

@ -772,7 +772,6 @@ src/plugins/ui_actions_enhanced @elastic/appex-sharedux
examples/ui_action_examples @elastic/appex-sharedux
examples/ui_actions_explorer @elastic/appex-sharedux
src/plugins/ui_actions @elastic/appex-sharedux
packages/kbn-ui-framework @elastic/kibana-design
test/plugin_functional/plugins/ui_settings_plugin @elastic/kibana-core
packages/kbn-ui-shared-deps-npm @elastic/kibana-operations
packages/kbn-ui-shared-deps-src @elastic/kibana-operations

View file

@ -90,7 +90,6 @@ yarn kbn watch
- @kbn/test
- @kbn/test-subj-selector
- @kbn/tinymath
- @kbn/ui-framework
- @kbn/ui-shared-deps-npm
- @kbn/ui-shared-deps-src
- @kbn/utility-types

View file

@ -764,7 +764,6 @@
"@kbn/ui-actions-examples-plugin": "link:examples/ui_action_examples",
"@kbn/ui-actions-explorer-plugin": "link:examples/ui_actions_explorer",
"@kbn/ui-actions-plugin": "link:src/plugins/ui_actions",
"@kbn/ui-framework": "link:packages/kbn-ui-framework",
"@kbn/ui-settings-plugin": "link:test/plugin_functional/plugins/ui_settings_plugin",
"@kbn/ui-shared-deps-npm": "link:packages/kbn-ui-shared-deps-npm",
"@kbn/ui-shared-deps-src": "link:packages/kbn-ui-shared-deps-src",

View file

@ -271,10 +271,5 @@ export class CoreAppsService {
'/ui/{path*}',
fromRoot('node_modules/@kbn/core-apps-server-internal/assets')
);
core.http.registerStaticDir(
'/node_modules/@kbn/ui-framework/dist/{path*}',
fromRoot('node_modules/@kbn/ui-framework/dist')
);
}
}

View file

@ -23,7 +23,6 @@ describe('getStylesheetPaths', () => {
Array [
"/base-path/17/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.v8.dark.css",
"/base-path/17/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.css",
"/base-path/node_modules/@kbn/ui-framework/dist/kui_dark.min.css",
"/base-path/ui/legacy_dark_theme.min.css",
]
`);
@ -44,7 +43,6 @@ describe('getStylesheetPaths', () => {
Array [
"/base-path/69/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.v8.light.css",
"/base-path/69/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.css",
"/base-path/node_modules/@kbn/ui-framework/dist/kui_light.min.css",
"/base-path/ui/legacy_light_theme.min.css",
]
`);

View file

@ -41,7 +41,6 @@ export const getStylesheetPaths = ({
themeVersion
)}`,
`${regularBundlePath}/kbn-ui-shared-deps-src/${UiSharedDepsSrc.cssDistFilename}`,
`${basePath}/node_modules/@kbn/ui-framework/dist/kui_dark.min.css`,
`${basePath}/ui/legacy_dark_theme.min.css`,
]
: [
@ -49,7 +48,6 @@ export const getStylesheetPaths = ({
themeVersion
)}`,
`${regularBundlePath}/kbn-ui-shared-deps-src/${UiSharedDepsSrc.cssDistFilename}`,
`${basePath}/node_modules/@kbn/ui-framework/dist/kui_light.min.css`,
`${basePath}/ui/legacy_light_theme.min.css`,
]),
];

View file

@ -1,27 +0,0 @@
# Deprecation notice
This package is set for deprecation and is actively being removed from Kibana.
The Kibana UI framework is a collection of React elements and Sass styles used to build legacy layouts in Kibana. It was
primarily used during the 5.x and 6.x versions and is replaced by the [Elastic UI framework](https://elastic.github.io/eui/).
Portions of Kibana still utilize this package and until it is fully removed you can still compile and view the
documentation using the instructions below.
## Compiling KUI and viewing the docs
Compile the CSS with `./node_modules/grunt/bin/grunt uiFramework:compileCss` (OS X) or
`.\node_modules\grunt\bin\grunt uiFramework:compileCss` (Windows).
You can view interactive documentation by running `yarn uiFramework:start` and then visiting
[http://localhost:8020/](http://localhost:8020/). This will also start watching the SCSS files, and will recompile the CSS
automatically for you when you make changes.
You can run `node scripts/jest --watch` to watch for changes and run the tests as you code.
You can run `node scripts/jest --coverage` to generate a code coverage report to see how
fully-tested the code is.
You can run `node scripts/jest --config path/to/plugin/jest.config.js --coverage` to generate
a code coverage report for a single plugin.
See the documentation in [`scripts/jest.js`](../scripts/jest.js) for more options.

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1,5 +0,0 @@
{
"type": "shared-common",
"id": "@kbn/ui-framework",
"owner": "@elastic/kibana-design"
}

View file

@ -1,6 +0,0 @@
{
"name": "@kbn/ui-framework",
"version": "1.0.0",
"license": "SSPL-1.0 OR Elastic License 2.0",
"private": "true"
}

View file

@ -37,8 +37,6 @@ export async function findUsedDependencies(
// Get the dependencies found searching through the server
// side code entries that were provided
const usedDeps = [
// TODO: remove this once we get rid off @kbn/ui-framework, for now it isn't detectable as "used" so we hard code it
'@kbn/ui-framework',
// find all the node modules we actually use on the server, including the peerDependencies of our used node_modules which are used within those deps
...(await findUsedNodeModules({
resolver,

View file

@ -1538,8 +1538,6 @@
"@kbn/ui-actions-explorer-plugin/*": ["examples/ui_actions_explorer/*"],
"@kbn/ui-actions-plugin": ["src/plugins/ui_actions"],
"@kbn/ui-actions-plugin/*": ["src/plugins/ui_actions/*"],
"@kbn/ui-framework": ["packages/kbn-ui-framework"],
"@kbn/ui-framework/*": ["packages/kbn-ui-framework/*"],
"@kbn/ui-settings-plugin": ["test/plugin_functional/plugins/ui_settings_plugin"],
"@kbn/ui-settings-plugin/*": ["test/plugin_functional/plugins/ui_settings_plugin/*"],
"@kbn/ui-shared-deps-npm": ["packages/kbn-ui-shared-deps-npm"],
@ -1715,5 +1713,4 @@
"@kbn/ambient-storybook-types"
]
}
}
}

View file

@ -6019,10 +6019,6 @@
version "0.0.0"
uid ""
"@kbn/ui-framework@link:packages/kbn-ui-framework":
version "0.0.0"
uid ""
"@kbn/ui-settings-plugin@link:test/plugin_functional/plugins/ui_settings_plugin":
version "0.0.0"
uid ""