From 18f60427f22c80e53133c8927edf606f2aa410bc Mon Sep 17 00:00:00 2001 From: Camila Belo Date: Mon, 29 Aug 2022 11:03:53 +0200 Subject: [PATCH] chore: add changeset files Signed-off-by: Camila Belo --- .changeset/search-feet-flash.md | 21 +++++++++++++++++++++ .changeset/search-planets-flash.md | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 .changeset/search-feet-flash.md create mode 100644 .changeset/search-planets-flash.md diff --git a/.changeset/search-feet-flash.md b/.changeset/search-feet-flash.md new file mode 100644 index 0000000000..fb4a27975d --- /dev/null +++ b/.changeset/search-feet-flash.md @@ -0,0 +1,21 @@ +--- +'@backstage/plugin-search-react': patch +--- + +Add the term autocomplete functionality to the search bar with a `SearchAutocomplete` component. Additionally, we provide a `SearchAutocompleteDefaultOption` to render options with an icon, a primary text and a secondary text. +Example: + +```jsx +// import { SearchAutocomplete, SearchAutocompleteDefaultOption} from '@backstage/plugin-search-react'; + option.title} + renderOption={option => ( + } + primaryText={option.title} + secondaryText={option.text} + /> + )} +/> +``` diff --git a/.changeset/search-planets-flash.md b/.changeset/search-planets-flash.md new file mode 100644 index 0000000000..cc81b8c209 --- /dev/null +++ b/.changeset/search-planets-flash.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-search': patch +--- + +Add `userParentContext` prop to the `SearchContextProvider`, this added property does not create a local context and consumes the parent if it already exists.