-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(masthead): customtypeahead api fix #5168
fix(masthead): customtypeahead api fix #5168
Conversation
Deploy preview created for package Built with commit: 703151bc64705c9c66cf2c93c27e0f768930ddd6 |
Deploy preview created for package Built with commit: 703151bc64705c9c66cf2c93c27e0f768930ddd6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Deploy preview created for package Built with commit: 703151bc64705c9c66cf2c93c27e0f768930ddd6 |
### Description Updates masthead search `customTypeAheadApi` to be fully on the application side. When using a custom API, it will no longer pass through `SearchTypeaheadAPI` at all. This allows users to pass a full API including any necessary query params that were not defined in `SearchTypeaheadAPI`. With this change the use of environment variables is no longer necessary. ### Changelog **Changed** - moves `customTypeAheadApi` out of `SearchTypeaheadAPI` - update jest environment variables - section titles no longer appear when there are no section items <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Description
Updates masthead search
customTypeAheadApi
to be fully on the application side. When using a custom API, it will no longer pass throughSearchTypeaheadAPI
at all. This allows users to pass a full API including any necessary query params that were not defined inSearchTypeaheadAPI
. With this change the use of environment variables is no longer necessary.Changelog
Changed
customTypeAheadApi
out ofSearchTypeaheadAPI