Skip to content

[Theme/Warning] Optional callback argument to setEuiDevProviderWarning#7820

Merged
cee-chen merged 5 commits intoelastic:mainfrom
tsullivan:eui-provider/set-dev-provider-warning-with-callback
Jun 18, 2024
Merged

[Theme/Warning] Optional callback argument to setEuiDevProviderWarning#7820
cee-chen merged 5 commits intoelastic:mainfrom
tsullivan:eui-provider/set-dev-provider-warning-with-callback

Conversation

@tsullivan
Copy link
Copy Markdown
Member

@tsullivan tsullivan commented Jun 7, 2024

Summary

Closes #7807

Updated setEuiDevProviderWarning function to accept a callback function type. This will allow developers to handle the warning scenarios with custom behavior. When a warning is emitted, the string message or Error object is passed to the callback function.

QA

General checklist

  • Browser QA
    • [ ] Checked in both light and dark modes
    • [ ] Checked in mobile
    • [ ] Checked in Chrome, Safari, Edge, and Firefox
    • [ ] Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately.
    • [ ] If applicable, added the breaking change issue label (and filled out the breaking change checklist)
  • Designer checklist
    • [ ] Updated the Figma library counterpart

@tsullivan tsullivan requested a review from a team as a code owner June 7, 2024 22:12
@cee-chen cee-chen enabled auto-merge (squash) June 18, 2024 00:31
@kibanamachine
Copy link
Copy Markdown

Preview staging links for this PR:

@elasticmachine
Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

@cee-chen cee-chen merged commit 4d6acaf into elastic:main Jun 18, 2024
@tsullivan
Copy link
Copy Markdown
Member Author

Thank you, @cee-chen !!

jbudz added a commit to elastic/kibana that referenced this pull request Jun 28, 2024
`v95.1.0`⏩`v95.2.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)_

---

## [`v95.2.0`](https://github.com/elastic/eui/releases/v95.2.0)

- Updated `EuiContextMenuItemIcon`'s type definition to explicitly
define support for `EuiIcon`'s `IconType`
([#7804](elastic/eui#7804))
- Updated `EuiSteps` to support a new `titleSize="xxs"` style, which
outputs the same title font size but smaller unnumbered step indicators
([#7813](elastic/eui#7813))
- Updated `EuiStepsHorizontal` to support a new `size="xs"` style, which
outputs smaller unnumbered step indicators
([#7813](elastic/eui#7813))
- Updated `EuiStepNumber` to support new `titleSize="none"` which omits
rendering step numbers, and will only render icons
([#7813](elastic/eui#7813))
- Updated `setEuiDevProviderWarning` to additionally accept a custom
callback function, which warning messages will be passed to
([#7820](elastic/eui#7820))
- Updated `EuiIcon` to feature updated `logoElasticStack` logo for
referencing Elastic Stack platform
([#7838](elastic/eui#7838))
- Updated `EuiIcon` to feature updated `casesApp` design.
([#7840](elastic/eui#7840))
- Updated `EuiComboBox` to no longer autocomplete searched text when
used within forms ([#7842](elastic/eui#7842))

**CSS-in-JS conversions**

- Converted `EuiFilePicker` to Emotion; Removed
`$euiFilePickerTallHeight`
([#7833](elastic/eui#7833))

---------

Co-authored-by: Jon <jon@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setEuiDevProviderWarning to accept an optional callback function

4 participants