From 5df0811d007c9f43059a7327fc5d24d2ade9ee9e Mon Sep 17 00:00:00 2001 From: Tomasz Kajtoch Date: Sat, 13 Jul 2024 16:03:15 +0200 Subject: [PATCH] Upgrade EUI to v95.3.0 (#187342) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `v95.2.0`⏩`v95.3.0` _[Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_ --- - Updated `EuiThemeProvider`s to allow modifying/setting custom `breakpoint`s in nested usage (as opposed to only at the top `EuiProvider` level) ([#7862](https://github.com/elastic/eui/pull/7862)) **Bug fixes** - Fixed a Chrome/Edge CSS `mask-image` bug that was affecting scroll overflow shadow utilties ([#7855](https://github.com/elastic/eui/pull/7855)) **CSS-in-JS conversions** - Converted `EuiColorPicker` to Emotion; Removed `$euiColorPickerWidth` ([#7845](https://github.com/elastic/eui/pull/7845)) - Converted `EuiColorPickerSwatch` to Emotion ([#7853](https://github.com/elastic/eui/pull/7853)) - Converted `EuiColorPalettePicker` and `EuiColorPaletteDisplay` to Emotion ([#7854](https://github.com/elastic/eui/pull/7854)) - Removed `$euiColorPaletteDisplaySizes` - Removed `@mixin euiColorPaletteInnerBorder` - Removed `$euiColorPickerValueRange0`, `$euiColorPickerValueRange1`, `$euiColorPickerSaturationRange0`, `$euiColorPickerSaturationRange1`, and `$euiColorPickerIndicatorSize` ([#7859](https://github.com/elastic/eui/pull/7859)) **Accessibility** - Updated the `aria-label` attribute for the `EuiFilePicker` remove file button ([#7860](https://github.com/elastic/eui/pull/7860)) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine --- package.json | 2 +- .../src/__snapshots__/i18n_service.test.tsx.snap | 2 +- .../core-i18n-browser-internal/src/i18n_eui_mapping.tsx | 9 ++++++--- src/dev/license_checker/config.ts | 2 +- .../import_data_modal/__snapshots__/index.test.tsx.snap | 4 ++-- yarn.lock | 8 ++++---- 6 files changed, 15 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 99bcb4fec0285..d38fdf981cdc6 100644 --- a/package.json +++ b/package.json @@ -115,7 +115,7 @@ "@elastic/ecs": "^8.11.1", "@elastic/elasticsearch": "^8.14.0", "@elastic/ems-client": "8.5.3", - "@elastic/eui": "95.2.0", + "@elastic/eui": "95.3.0", "@elastic/filesaver": "1.1.2", "@elastic/node-crypto": "1.2.1", "@elastic/numeral": "^2.5.1", diff --git a/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap b/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap index 67fe5f2a46221..51caec4b95289 100644 --- a/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap +++ b/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap @@ -140,10 +140,10 @@ exports[`#start() returns \`Context\` component 1`] = ` "euiExternalLinkIcon.newTarget.screenReaderOnlyText": "(opens in a new tab or window)", "euiFieldPassword.maskPassword": "Mask password", "euiFieldPassword.showPassword": "Show password as plain text. Note: this will visually expose your password on the screen.", - "euiFilePicker.clearSelectedFiles": "Clear selected files", "euiFilePicker.filesSelected": [Function], "euiFilePicker.promptText": "Select or drag and drop a file", "euiFilePicker.removeSelected": "Remove", + "euiFilePicker.removeSelectedAriaLabel": "Remove selected files", "euiFilterButton.filterBadgeActiveAriaLabel": [Function], "euiFilterButton.filterBadgeAvailableAriaLabel": [Function], "euiFlyout.screenReaderFixedHeaders": "You can still continue tabbing through the page headers in addition to the dialog.", diff --git a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx b/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx index 151a94bd3ce22..df6071e9d14ed 100644 --- a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx +++ b/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx @@ -725,9 +725,12 @@ export const getEuiContextMapping = (): EuiTokensObject => { 'euiFieldPassword.maskPassword': i18n.translate('core.euiFieldPassword.maskPassword', { defaultMessage: 'Mask password', }), - 'euiFilePicker.clearSelectedFiles': i18n.translate('core.euiFilePicker.clearSelectedFiles', { - defaultMessage: 'Clear selected files', - }), + 'euiFilePicker.removeSelectedAriaLabel': i18n.translate( + 'core.euiFilePicker.removeSelectedAriaLabel', + { + defaultMessage: 'Remove selected files', + } + ), 'euiFilePicker.filesSelected': ({ fileCount }: EuiValues) => i18n.translate('core.euiFilePicker.filesSelected', { defaultMessage: '{fileCount} files selected', diff --git a/src/dev/license_checker/config.ts b/src/dev/license_checker/config.ts index b4b215797aa24..6bc2f6cdfff2b 100644 --- a/src/dev/license_checker/config.ts +++ b/src/dev/license_checker/config.ts @@ -86,7 +86,7 @@ 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.5.3': ['Elastic License 2.0'], - '@elastic/eui@95.2.0': ['SSPL-1.0 OR Elastic License 2.0'], + '@elastic/eui@95.3.0': ['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 'buffers@0.1.1': ['MIT'], // license in importing module https://www.npmjs.com/package/binary '@bufbuild/protobuf@1.2.1': ['Apache-2.0'], // license (Apache-2.0 AND BSD-3-Clause) diff --git a/x-pack/plugins/security_solution/public/common/components/import_data_modal/__snapshots__/index.test.tsx.snap b/x-pack/plugins/security_solution/public/common/components/import_data_modal/__snapshots__/index.test.tsx.snap index 1fe2bda944e0a..1c2e4f3cf3fdd 100644 --- a/x-pack/plugins/security_solution/public/common/components/import_data_modal/__snapshots__/index.test.tsx.snap +++ b/x-pack/plugins/security_solution/public/common/components/import_data_modal/__snapshots__/index.test.tsx.snap @@ -295,7 +295,7 @@ Object { subtitle