mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
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:
parent
79411d97c7
commit
2ff938e0ac
16 changed files with 1 additions and 5002 deletions
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
]
|
||||
`);
|
||||
|
|
|
@ -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`,
|
||||
]),
|
||||
];
|
||||
|
|
|
@ -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.
|
2470
packages/kbn-ui-framework/dist/kui_dark.css
vendored
2470
packages/kbn-ui-framework/dist/kui_dark.css
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
2470
packages/kbn-ui-framework/dist/kui_light.css
vendored
2470
packages/kbn-ui-framework/dist/kui_light.css
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"type": "shared-common",
|
||||
"id": "@kbn/ui-framework",
|
||||
"owner": "@elastic/kibana-design"
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "@kbn/ui-framework",
|
||||
"version": "1.0.0",
|
||||
"license": "SSPL-1.0 OR Elastic License 2.0",
|
||||
"private": "true"
|
||||
}
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue