kibana/packages/kbn-securitysolution-exception-list-components
Cee Chen 96d586efc2
[8.x] Upgrade EUI to v97.3.1 (#199186) (#200052)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Upgrade EUI to v97.3.1
(#199186)](https://github.com/elastic/kibana/pull/199186)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Cee
Chen","email":"549407+cee-chen@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-11-12T01:02:34Z","message":"Upgrade
EUI to v97.3.1 (#199186)\n\n`v97.3.0``v97.3.1`\r\n\r\n_[Questions?
Please see our Kibana
upgrade\r\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_\r\n\r\n---\r\n\r\n##
[`v97.3.1`](https://github.com/elastic/eui/releases/v97.3.1)\r\n\r\n**Bug
fixes**\r\n\r\n- Fixed an `EuiComboBox` bug where Enter keypresses were
not working\r\ncorrectly on selection clear
buttons\r\n([#8105](https://github.com/elastic/eui/pull/8105))\r\n-
Fixed an `EuiSuperDatePicker` bug where inputs would overflow out
of\r\nsmaller widths instead of
truncating\r\n([#8109](https://github.com/elastic/eui/pull/8109))\r\n-
Fixed a bug with `EuiPageHeader`'s `rightSideItems`
responsiveness\r\nwhere single items could overflow past the intended
max
width\r\n([#8110](https://github.com/elastic/eui/pull/8110))","sha":"4e65ae9b1e69fc92341de99078bde179708b3394","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","v9.0.0","backport:version","v8.17.0"],"number":199186,"url":"https://github.com/elastic/kibana/pull/199186","mergeCommit":{"message":"Upgrade
EUI to v97.3.1 (#199186)\n\n`v97.3.0``v97.3.1`\r\n\r\n_[Questions?
Please see our Kibana
upgrade\r\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_\r\n\r\n---\r\n\r\n##
[`v97.3.1`](https://github.com/elastic/eui/releases/v97.3.1)\r\n\r\n**Bug
fixes**\r\n\r\n- Fixed an `EuiComboBox` bug where Enter keypresses were
not working\r\ncorrectly on selection clear
buttons\r\n([#8105](https://github.com/elastic/eui/pull/8105))\r\n-
Fixed an `EuiSuperDatePicker` bug where inputs would overflow out
of\r\nsmaller widths instead of
truncating\r\n([#8109](https://github.com/elastic/eui/pull/8109))\r\n-
Fixed a bug with `EuiPageHeader`'s `rightSideItems`
responsiveness\r\nwhere single items could overflow past the intended
max
width\r\n([#8110](https://github.com/elastic/eui/pull/8110))","sha":"4e65ae9b1e69fc92341de99078bde179708b3394"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199186","number":199186,"mergeCommit":{"message":"Upgrade
EUI to v97.3.1 (#199186)\n\n`v97.3.0``v97.3.1`\r\n\r\n_[Questions?
Please see our Kibana
upgrade\r\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_\r\n\r\n---\r\n\r\n##
[`v97.3.1`](https://github.com/elastic/eui/releases/v97.3.1)\r\n\r\n**Bug
fixes**\r\n\r\n- Fixed an `EuiComboBox` bug where Enter keypresses were
not working\r\ncorrectly on selection clear
buttons\r\n([#8105](https://github.com/elastic/eui/pull/8105))\r\n-
Fixed an `EuiSuperDatePicker` bug where inputs would overflow out
of\r\nsmaller widths instead of
truncating\r\n([#8109](https://github.com/elastic/eui/pull/8109))\r\n-
Fixed a bug with `EuiPageHeader`'s `rightSideItems`
responsiveness\r\nwhere single items could overflow past the intended
max
width\r\n([#8110](https://github.com/elastic/eui/pull/8110))","sha":"4e65ae9b1e69fc92341de99078bde179708b3394"}},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
2024-11-13 23:41:26 +01:00
..
src [8.x] Upgrade EUI to v97.3.1 (#199186) (#200052) 2024-11-13 23:41:26 +01:00
index.ts [8.x] [Security Solution][Event Filters] Warning callout for incomplete code signature entries (#193749) (#195184) 2024-10-07 05:12:26 -05:00
jest.config.js Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc [Security Solution] Clean up CODEOWNERS and other files for the Detection Engine team (#159729) 2023-06-14 10:39:50 -07:00
package.json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.md [Security Solution][Exceptions] - Create/ refactor Exception-List common's components in @kbn/securitysolution-exception-list-components (#143363) 2022-10-19 19:33:17 +02:00
setup_test.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
tsconfig.json [Security Solution][Artifacts][Trusted Apps] Wildcard warning with IS operator for trusted apps creation/editing (#175356) 2024-02-13 21:43:25 -07:00

@kbn/securitysolution-exception-list-components

Common exceptions' components

Aim

  • To have most of the Exceptions' components in one place, to be shared accross multiple pages and used for different logic.
  • This package holds the presetational part of the components only as the API or the logic part should reside under the consumer page

Pattern used

component
    index.tsx
    index.styles.ts <-- to hold styles if the component has many custom styles
    use_component.ts <-- for logic if the Presentational Component has logic
    component.test.tsx
    use_component.test.tsx
  

Testing

In order to unify our testing tools, we configured only two libraries, the React-Testing-Library to test the component UI part and the Reat-Testing-Hooks to test the component's UI interactions

Styling

In order to follow the KBN-Packages's recommendations, to define a custom CSS we can only use the @emotion/react or @emotion/css libraries

Next

  • Now the ExceptionItems, ExceptionItemCard and ExceptionItemCardMetaInfo receive securityLinkAnchorComponent, exceptionsUtilityComponent , and exceptionsUtilityComponent as props to avoid moving all the common components under the x-pack at once, later we should move all building blocks to this kbn-package