Skip to content

Commit

Permalink
Upgrade EUI to v62.0.3 (elastic#138351)
Browse files Browse the repository at this point in the history
* Upgrade to v62.0.3

* Update EUI i18n tokens

* Update html string snapshots

- Emotion CSS hash changed

* [EuiIcon] Update instances of `keyboardShortcut` icons to `keyboard`

* [EuiErrorBoundary] Update snapshots from Emotion conversion

* [EuiImage] Update snapshots, tests, and CSS to account for Emotion conversion

* [EuiImage][RTL] Fix test failures caused by EuiImage changes

* [EuiCommentList] Deprecate EuiCommentProps.type

* [EuiCommentList] Rename `timelineIcon` prop to `timelineAvatar`

- see elastic/eui#6071

* [EuiCommentList] Fix selectors deprecated by Emotion conversion

* [EuiPopover][EuiCommentEvent][Enzyme] Fix mounted test failures caused by Emotion conversions

- Mounting displays the Emotion wrapper with the data-test-subj on them - we need to specify the output div renders in order for text assertions to be correct

* [EuiPopover] Deprecate `initialFocus={false}` as an option

see elastic/eui#6044

* [EuiPopover] Rename `display=inlineBlock` to `inline-block`

- see elastic/eui#5977

* [EuiPopover] Update snapshots from Emotion conversion

* [EuiPopover] Replace deprecated `.euiPopover__panel-isOpen` class with new `[data-popover-open]` attribute

* [EuiPopover][RTL] Fix test failures caused by not waiting for EuiPopover animation/transition

* Skip failing a11y tests

- test w/ similar error already skipped in another test above
- requires closing the popover for next test to pass
- not sure why delete action is no longer available

* Fix failing Security Cypress tests

* Attempt to squash flaky FTR tests around Add Filter popover

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
  • Loading branch information
3 people authored and Mpdreamz committed Sep 6, 2022
1 parent 81ac63f commit 44e60ed
Show file tree
Hide file tree
Showing 162 changed files with 901 additions and 3,736 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"@elastic/datemath": "5.0.3",
"@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.3.0-canary.1",
"@elastic/ems-client": "8.3.3",
"@elastic/eui": "60.3.0",
"@elastic/eui": "62.0.3",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "1.2.1",
"@elastic/numeral": "^2.5.1",
Expand Down

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 @@ -415,9 +415,41 @@ export const getEuiContextMapping = (): EuiTokensObject => {
'euiDataGridHeaderCell.headerActions': i18n.translate(
'core.euiDataGridHeaderCell.headerActions',
{
defaultMessage: 'Header actions',
defaultMessage: 'Click to view column header actions',
}
),
'euiDataGridHeaderCell.sortedByAscendingSingle': i18n.translate(
'core.euiDataGridHeaderCell.sortedByAscendingSingle',
{
defaultMessage: 'Sorted ascending',
}
),
'euiDataGridHeaderCell.sortedByDescendingSingle': i18n.translate(
'core.euiDataGridHeaderCell.sortedByDescendingSingle',
{
defaultMessage: 'Sorted descending',
}
),
'euiDataGridHeaderCell.sortedByAscendingFirst': ({ columnId }: EuiValues) =>
i18n.translate('core.euiDataGridHeaderCell.sortedByAscendingFirst', {
defaultMessage: 'Sorted by {columnId}, ascending',
values: { columnId },
}),
'euiDataGridHeaderCell.sortedByDescendingFirst': ({ columnId }: EuiValues) =>
i18n.translate('core.euiDataGridHeaderCell.sortedByDescendingFirst', {
defaultMessage: 'Sorted by {columnId}, descending',
values: { columnId },
}),
'euiDataGridHeaderCell.sortedByAscendingMultiple': ({ columnId }: EuiValues) =>
i18n.translate('core.euiDataGridHeaderCell.sortedByAscendingMultiple', {
defaultMessage: ', then sorted by {columnId}, ascending',
values: { columnId },
}),
'euiDataGridHeaderCell.sortedByDescendingMultiple': ({ columnId }: EuiValues) =>
i18n.translate('core.euiDataGridHeaderCell.sortedByDescendingMultiple', {
defaultMessage: ', then sorted by {columnId}, descending',
values: { columnId },
}),
'euiDataGridHeaderCell.actionsPopoverScreenReaderText': i18n.translate(
'core.euiDataGridHeaderCell.actionsPopoverScreenReaderText',
{
Expand Down Expand Up @@ -612,16 +644,12 @@ export const getEuiContextMapping = (): EuiTokensObject => {
'euiHue.label': i18n.translate('core.euiHue.label', {
defaultMessage: 'Select the HSV color mode "hue" value',
}),
'euiImage.closeImage': ({ alt }: EuiValues) =>
i18n.translate('core.euiImage.closeImage', {
defaultMessage: 'Close fullscreen {alt} image',
values: { alt },
}),
'euiImage.openImage': ({ alt }: EuiValues) =>
i18n.translate('core.euiImage.openImage', {
defaultMessage: 'Open fullscreen {alt} image',
values: { alt },
}),
'euiImageButton.openFullScreen': i18n.translate('core.euiImageButton.openFullScreen', {
defaultMessage: 'Click to open this image in fullscreen mode',
}),
'euiImageButton.closeFullScreen': i18n.translate('core.euiImageButton.closeFullScreen', {
defaultMessage: 'Press Escape or click to close image fullscreen mode',
}),
'euiLink.external.ariaLabel': i18n.translate('core.euiLink.external.ariaLabel', {
defaultMessage: 'External link',
}),
Expand Down

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 @@ -77,7 +77,7 @@ describe('UserProfilesPopover', () => {
</button>
}
closePopover={[MockFunction]}
display="inlineBlock"
display="inline-block"
hasArrow={true}
isOpen={false}
ownFocus={true}
Expand Down
Loading

0 comments on commit 44e60ed

Please sign in to comment.