Upgrade EUI to v60.0.0 (#134919)

* Upgrade EUI to v60.0.0

* reorganize style tag injection using EuiProvider.cache options

* Convert Jest snapshots for EUI Emotion classNames to a static `emotion-` prefix instead of a dynamic hash

- The goal of this is to reduce thrashing on downstream Kibana snapshots whenever EUI CSS changes

+ Add serializer to Canvas' storyshots tests as well

+ Switch several .html() snapshots to .render() - render uses the new serializer logic, but .html() does not and will still output CSS hashes, plus is more difficult to read

* Update downstream tests for EuiStat Emotion/className changes

* Fix WithEuiTheme(EuiAccordionClass) references

* Rename mounted snapshots of EuiButtonContent to EuiButtonContentDeprecated

* add emotion/cache to kbn-ui-shared-deps

* Fix non-rendering server-side Emotion CSS

* Fix failing Security Cypress test

- the Cypress query/command being used wasn't working correctly

Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Constance 2022-06-28 11:23:59 -07:00 committed by GitHub
parent 0b0b68786a
commit de20876b30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
160 changed files with 3877 additions and 1164 deletions

View file

@ -31,6 +31,7 @@ RUNTIME_DEPS = [
"@npm//@elastic/charts",
"@npm//@elastic/eui",
"@npm//@elastic/numeral",
"@npm//@emotion/cache",
"@npm//@emotion/react",
"@npm//babel-loader",
"@npm//core-js",
@ -68,6 +69,7 @@ TYPES_DEPS = [
"@npm//@elastic/charts",
"@npm//@elastic/eui",
"@npm//@elastic/numeral",
"@npm//@emotion/cache",
"@npm//@emotion/react",
"@npm//babel-loader",
"@npm//core-js",