Skip to content

Commit

Permalink
Upgrade EUI to v55.0.1 (#130593)
Browse files Browse the repository at this point in the history
* eui to v55.0.0

* remove jest polyfill

* i18n tokens

* hasFocus prop

* eui to v55.0.1

* removed obsolete mixin arg

* i18n snapshots

* hasFocus snapshots

* formRow snapshots

* euiAvatar snapshots

* euiContextMenu snapshot

* update focus

* hasFocus snapshots

* [Security] wait for popover panel focus before checking for field input focus

- possible race condition failure where cypress is clicking the input too quickly and the popover is stealing focus back onto the panel

* Fix ML focus issue in Filter settings

* Fix jest tests

* [ML] Fix stale / loading EuiContextMenuPanel item

* Fix ML watched props for EuiContextMenuPanel

Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
  • Loading branch information
4 people committed Apr 27, 2022
1 parent 4ade036 commit e615007
Show file tree
Hide file tree
Showing 31 changed files with 396 additions and 403 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"@elastic/datemath": "5.0.3",
"@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.2.0-canary.2",
"@elastic/ems-client": "8.3.0",
"@elastic/eui": "54.0.0",
"@elastic/eui": "55.0.1",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "1.2.1",
"@elastic/numeral": "^2.5.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-test/src/jest/setup/polyfills.jsdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ require('whatwg-fetch');
if (!global.URL.hasOwnProperty('createObjectURL')) {
Object.defineProperty(global.URL, 'createObjectURL', { value: () => '' });
}

// Will be replaced with a better solution in EUI
// https://github.com/elastic/eui/issues/3713
global._isJest = true;
2 changes: 2 additions & 0 deletions src/core/public/i18n/__snapshots__/i18n_service.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/core/public/i18n/i18n_eui_mapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,12 @@ export const getEuiContextMapping = (): EuiTokensObject => {
defaultMessage: '(opens in a new tab or window)',
}
),
'euiMark.highlightStart': i18n.translate('core.euiMark.highlightStart', {
defaultMessage: 'highlight start',
}),
'euiMark.highlightEnd': i18n.translate('core.euiMark.highlightEnd', {
defaultMessage: 'highlight end',
}),
'euiMarkdownEditorFooter.closeButton': i18n.translate(
'core.euiMarkdownEditorFooter.closeButton',
{
Expand Down
2 changes: 1 addition & 1 deletion src/dev/license_checker/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ export const LICENSE_OVERRIDES = {
'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts
'@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
'@elastic/ems-client@8.3.0': ['Elastic License 2.0'],
'@elastic/eui@54.0.0': ['SSPL-1.0 OR Elastic License 2.0'],
'@elastic/eui@55.0.1': ['SSPL-1.0 OR Elastic License 2.0'],
'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry
};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $kbnTypeaheadTypes: (
}

.kbnTypeahead__popover--bottom {
@include euiBottomShadow($adjustBorders: true);
@include euiBottomShadow;
border-bottom-left-radius: $euiBorderRadius;
border-bottom-right-radius: $euiBorderRadius;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e615007

Please sign in to comment.