Skip to content

Commit

Permalink
Upgrade EUI to v37.1.1 (elastic#108210)
Browse files Browse the repository at this point in the history
* eui to 37.1.0

* i18n tokens

* license checker

* disabled prop

* i18n shapshot

* date title snapshots

* date title formatting

* date title formatting

* Revert "disabled prop"

This reverts commit 68a48c4.

* date title formatting

* eui to 37.2.0

* trial: outsideClickCloses

* Revert "trial: outsideClickCloses"

This reverts commit 4da2299.

* eui to 37.1.1

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
thompsongl and kibanamachine committed Aug 16, 2021
1 parent 38b9d58 commit a1ad4cf
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"@elastic/datemath": "link:bazel-bin/packages/elastic-datemath",
"@elastic/elasticsearch": "npm:@elastic/[email protected]",
"@elastic/ems-client": "7.14.0",
"@elastic/eui": "36.1.0",
"@elastic/eui": "37.1.1",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "^9.0.1-kibana3",
"@elastic/maki": "6.3.0",
Expand Down
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.

10 changes: 10 additions & 0 deletions src/core/public/i18n/i18n_eui_mapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,16 @@ export const getEuiContextMapping = (): EuiTokensObject => {
description: 'Descending size label',
}
),
'euiDatePopoverButton.invalidTitle': ({ title }: EuiValues) =>
i18n.translate('core.euiDatePopoverButton.invalidTitle', {
defaultMessage: 'Invalid date: {title}',
values: { title },
}),
'euiDatePopoverButton.outdatedTitle': ({ title }: EuiValues) =>
i18n.translate('core.euiDatePopoverButton.outdatedTitle', {
defaultMessage: 'Update needed: {title}',
values: { title },
}),
'euiFieldPassword.showPassword': i18n.translate('core.euiFieldPassword.showPassword', {
defaultMessage:
'Show password as plain text. Note: this will visually expose your password on the screen.',
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 @@ -75,7 +75,7 @@ export const LICENSE_OVERRIDES = {
'@mapbox/[email protected]': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
'[email protected]': ['(GPL-2.0 OR MIT)'], // GPL-2.0* https://github.com/taozhi8833998/node-sql-parser
'@elastic/[email protected]': ['Elastic License 2.0'],
'@elastic/eui@36.0.0': ['SSPL-1.0 OR Elastic License 2.0'],
'@elastic/eui@37.1.1': ['SSPL-1.0 OR Elastic License 2.0'],

// TODO can be removed if the https://github.com/jindw/xmldom/issues/239 is released
'[email protected]': ['MIT'],
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 @@ -28,8 +28,8 @@ import {
import { cleanKibana } from '../../tasks/common';

const ABSOLUTE_DATE = {
endTime: '2019-08-01T20:33:29.186Z',
startTime: '2019-08-01T20:03:29.186Z',
endTime: 'Aug 1, 2019 @ 20:33:29.186',
startTime: 'Aug 1, 2019 @ 20:03:29.186',
};

const RULE_ID = '5a4a0460-d822-11eb-8962-bfd4aff0a9b3';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ import { TIMELINE } from '../../screens/create_new_case';
import { cleanKibana } from '../../tasks/common';

const ABSOLUTE_DATE = {
endTime: '2019-08-01T20:33:29.186Z',
endTime: 'Aug 1, 2019 @ 20:33:29.186',
endTimeTimeline: '2019-08-02T21:03:29.186Z',
endTimeTimelineFormatted: 'Aug 2, 2019 @ 21:03:29.186',
newEndTimeTyped: 'Aug 01, 2019 @ 15:03:29.186',
newStartTimeTyped: 'Aug 01, 2019 @ 14:33:29.186',
startTime: '2019-08-01T20:03:29.186Z',
startTime: 'Aug 1, 2019 @ 20:03:29.186',
startTimeTimeline: '2019-08-02T20:03:29.186Z',
startTimeTimelineFormatted: 'Aug 2, 2019 @ 20:03:29.186',
firefoxEndTimeTyped: '2019-08-01T15:03:29',
firefoxStartTimeTyped: '2019-08-01T14:33:29',
};
Expand Down Expand Up @@ -122,12 +124,12 @@ describe('url state', () => {
cy.get(DATE_PICKER_START_DATE_POPOVER_BUTTON_TIMELINE).should(
'have.attr',
'title',
ABSOLUTE_DATE.startTimeTimeline
ABSOLUTE_DATE.startTimeTimelineFormatted
);
cy.get(DATE_PICKER_END_DATE_POPOVER_BUTTON_TIMELINE).should(
'have.attr',
'title',
ABSOLUTE_DATE.endTimeTimeline
ABSOLUTE_DATE.endTimeTimelineFormatted
);
});

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1466,10 +1466,10 @@
resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314"
integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ==

"@elastic/eui@36.1.0":
version "36.1.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-36.1.0.tgz#99946e193bc9d1616f52cbd16e1a5bc196bd450f"
integrity sha512-j09Kv5K9YBkb9NkM3+cGparJeYfjLfwyypG27UYvSOLCpOYxS3bPycwmD7QrzPjoTqH+HHzDanHSwJMp6ttabA==
"@elastic/eui@37.1.1":
version "37.1.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-37.1.1.tgz#06bd1e1908b8b56525107a3eca42af036b950ab5"
integrity sha512-wEehwi9Ei81ydl8ExDuALbzDH6dgaHqKSlv/3Pmm+BcuW8FW4ctr8K5YPSJ7+5hdOdG0Bps5nnIpCDEinXSsLw==
dependencies:
"@types/chroma-js" "^2.0.0"
"@types/lodash" "^4.14.160"
Expand Down

0 comments on commit a1ad4cf

Please sign in to comment.