mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Upgrade EUI to v86.0.0 (#163088)
`85.1.0` ➡️ `86.0.0` ⚠️ The biggest change in this PR is migrating the `react-beautiful-dnd` dependency to it's open-source forked successor, `@hello-pangea/dnd`. This new fork has better typescript support and additionally supports both React 17 and React 18. ## [`86.0.0`](https://github.com/elastic/eui/tree/v86.0.0) - Added React 18 support (StrictMode not yet supported). ([#7012](https://github.com/elastic/eui/pull/7012)) **Deprecations** - Deprecated `euiPaletteComplimentary`; Use `euiPaletteComplementary` instead. ([#6992](https://github.com/elastic/eui/pull/6992)) **Breaking changes** - Replaced the underlying drag-and-drop library from `react-beautiful-dnd` to its fork `@hello-pangea/dnd` ([#7012](https://github.com/elastic/eui/pull/7012)) ([#7012](https://github.com/elastic/eui/pull/7012)) - No code updates are needed if using only `<EuiDragDropContext>`, `<EuiDroppable>` and `<EuiDraggable>` with no direct imports from `react-beautiful-dnd`. In case you were importing things from `react-beautiful-dnd` and using them together with EUI components, you need to switch to `@hello-pangea/dnd` which has cross-compatible API. --------- Co-authored-by: Tomasz Kajtoch <tomasz.kajtoch@elastic.co> Co-authored-by: Tomasz Kajtoch <tomek@kajto.ch> Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com> Co-authored-by: Drew Tate <andrew.tate@elastic.co>
This commit is contained in:
parent
c610d03787
commit
83d9644b74
68 changed files with 991 additions and 822 deletions
|
@ -83,6 +83,7 @@ module.exports = (_, argv) => {
|
|||
'@elastic/numeral',
|
||||
'@emotion/cache',
|
||||
'@emotion/react',
|
||||
'@hello-pangea/dnd/dist/dnd.js',
|
||||
'@tanstack/react-query',
|
||||
'@tanstack/react-query-devtools',
|
||||
'classnames',
|
||||
|
@ -96,7 +97,6 @@ module.exports = (_, argv) => {
|
|||
'moment-timezone/data/packed/latest.json',
|
||||
'moment',
|
||||
'react-ace',
|
||||
'react-beautiful-dnd',
|
||||
'react-dom',
|
||||
'react-dom/server',
|
||||
'react-router-dom',
|
||||
|
@ -138,6 +138,19 @@ module.exports = (_, argv) => {
|
|||
},
|
||||
],
|
||||
},
|
||||
// @hello-pangea/dnd emits optional chaining that confuses webpack.
|
||||
// We need to transform it using babel before going further
|
||||
{
|
||||
test: /@hello-pangea\/dnd\/dist\/dnd\.js$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
plugins: [require.resolve('@babel/plugin-proposal-optional-chaining')],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: [MiniCssExtractPlugin.loader, 'css-loader'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue