18 KiB
@backstage/plugin-search
0.5.2
Patch Changes
-
3d98955c8a: Add Optional Props to Override Icon for SidebarSearch and SidebarSearchModal Component -
49a696d720: Standardizes the component used as a search box in the search modal and in the composable home page.After these changes, all search boxes exported by the search plugin are based on the
<SearchBarBase />component, and this one is based on the<InputBase />component of the Material UI. This means that when you use SearchBarBase or one of its derived components (likeSearchBarandHomePageSearchBar) you can pass all properties accepted by InputBase that have not been replaced by the props type of those components.For example:
<SearchInputBase color="secondary" debouceTime={500} />The
colorproperty is inherited fromInputBasePropstype anddebouceTimedefined bySearchBarBaseProps. -
7a4bd2ceac: Prefer usingLinkfrom@backstage/core-componentsrather than material-UI. -
Updated dependencies
- @backstage/core-plugin-api@0.4.0
- @backstage/plugin-catalog-react@0.6.8
- @backstage/core-components@0.8.2
0.5.1
Patch Changes
cd450844f6: Moved React dependencies topeerDependenciesand allow both React v16 and v17 to be used.382e3a94b3: Export SearchApi interface from plugin- Updated dependencies
- @backstage/core-components@0.8.0
- @backstage/core-plugin-api@0.3.0
- @backstage/plugin-catalog-react@0.6.5
0.5.0
Minor Changes
-
c5b6045f36: Search Modal now relies on the Search Context to access state and state setter. If you use the SidebarSearchModal as described in the getting started documentation, make sure to update your code with the SearchContextProvider.export const Root = ({ children }: PropsWithChildren<{}>) => ( <SidebarPage> <Sidebar> <SidebarLogo /> - <SidebarSearchModal /> + <SearchContextProvider> + <SidebarSearchModal /> + </SearchContextProvider> <SidebarDivider /> ...
Patch Changes
f06ecd09a7: Add optional icon and secondaryAction properties for DefaultResultListItem componentc5941d5c30: Add a new optional clearButton property to the SearchBar component. The default value for this new property is true.- Updated dependencies
- @backstage/core-components@0.7.6
- @backstage/theme@0.2.14
- @backstage/core-plugin-api@0.2.2
0.4.18
Patch Changes
a125278b81: Refactor out the deprecated path and icon from RouteRefs704b267e1c: Smaller UX improvements to search components such as optional autoFocus prop to SearchBar components, decreased debounce value and closing modal on link click of SearchModal, terminology updates of SearchResultPager.- Updated dependencies
- @backstage/catalog-model@0.9.7
- @backstage/plugin-catalog-react@0.6.4
- @backstage/core-components@0.7.4
- @backstage/core-plugin-api@0.2.0
0.4.17
Patch Changes
-
5dcea2586c: AddedSearchModalcomponent.Now you can import
SearchModalin your apps:import { SearchModal } from '@backstage/plugin-search';You can also use the
SidebarSearchModalcomponent to integrate it into the sidebar of your sample apps:import { SidebarSearchModal } from '@backstage/plugin-search'; -
Updated dependencies
- @backstage/core-components@0.7.3
- @backstage/theme@0.2.13
- @backstage/core-plugin-api@0.1.13
- @backstage/plugin-catalog-react@0.6.3
0.4.16
Patch Changes
10615525f3: Switch to use the json and observable types from@backstage/types- Updated dependencies
- @backstage/config@0.1.11
- @backstage/theme@0.2.12
- @backstage/errors@0.1.4
- @backstage/core-components@0.7.2
- @backstage/plugin-catalog-react@0.6.2
- @backstage/catalog-model@0.9.6
- @backstage/search-common@0.2.1
- @backstage/core-plugin-api@0.1.12
0.4.15
Patch Changes
56bd537256: SearchBar component to accept optional placeholder prop- Updated dependencies
- @backstage/plugin-catalog-react@0.6.0
- @backstage/core-components@0.7.0
- @backstage/theme@0.2.11
0.4.14
Patch Changes
ca0559444c: Avoid usage of.to*Case(), preferring.toLocale*Case('en-US')instead.81a41ec249: Added anamekey to all extensions in order to improve Analytics API metadata.- Updated dependencies
- @backstage/core-components@0.6.1
- @backstage/core-plugin-api@0.1.10
- @backstage/plugin-catalog-react@0.5.2
- @backstage/catalog-model@0.9.4
0.4.13
Patch Changes
- Updated dependencies
- @backstage/core-plugin-api@0.1.9
- @backstage/core-components@0.6.0
- @backstage/plugin-catalog-react@0.5.1
0.4.12
Patch Changes
- Updated dependencies
- @backstage/core-components@0.5.0
- @backstage/plugin-catalog-react@0.5.0
- @backstage/catalog-model@0.9.3
- @backstage/config@0.1.10
0.4.11
Patch Changes
9f1362dcc1: Upgrade@material-ui/labto4.0.0-alpha.57.- Updated dependencies
- @backstage/core-components@0.4.2
- @backstage/plugin-catalog-react@0.4.6
- @backstage/core-plugin-api@0.1.8
0.4.10
Patch Changes
7f00902d9: Add Home Page Search Bar Component, to be included in composable Home Page.- Updated dependencies
- @backstage/core-components@0.4.1
- @backstage/catalog-model@0.9.2
- @backstage/errors@0.1.2
- @backstage/config@0.1.9
- @backstage/core-plugin-api@0.1.7
0.4.9
Patch Changes
-
a13f21cdc: Implement optionalpageCursorbased paging in search.To use paging in your app, add a
<SearchResultPager />to yourSearchPage.tsx. -
Updated dependencies
- @backstage/plugin-catalog-react@0.4.5
- @backstage/core-components@0.4.0
- @backstage/search-common@0.2.0
- @backstage/catalog-model@0.9.1
0.4.8
Patch Changes
16ec8381a: Fix search page to respond to searches made from sidebar search- Updated dependencies
- @backstage/plugin-catalog-react@0.4.4
- @backstage/core-components@0.3.3
- @backstage/config@0.1.8
0.4.7
Patch Changes
56c773909: Switched@types/reactdependency to request*rather than a specific version.- Updated dependencies
- @backstage/core-components@0.3.1
- @backstage/core-plugin-api@0.1.6
- @backstage/plugin-catalog-react@0.4.2
0.4.6
Patch Changes
b917365cf: Change<SearchType>design to follow Figma and be similar to existing multi selects in Backstage.- Updated dependencies
- @backstage/core-components@0.3.0
- @backstage/config@0.1.6
- @backstage/core-plugin-api@0.1.5
- @backstage/search-common@0.1.3
- @backstage/plugin-catalog-react@0.4.1
0.4.5
Patch Changes
9d40fcb1e: - Bumpingmaterial-ui/coreversion to at least4.12.2as they made some breaking changes in later versions which brokePaginationof theTable.- Switching out
material-tableto@material-table/corefor support for the later versions ofmaterial-ui/core - This causes a minor API change to
@backstage/core-componentsas the interface forTablere-exports thepropfrom the underlyingTablecomponents. onChangeRowsPerPagehas been renamed toonRowsPerPageChangeonChangePagehas been renamed toonPageChange- Migration guide is here: https://material-table-core.com/docs/breaking-changes
- Switching out
- Updated dependencies
- @backstage/core-components@0.2.0
- @backstage/plugin-catalog-react@0.4.0
- @backstage/core-plugin-api@0.1.4
- @backstage/theme@0.2.9
0.4.4
Patch Changes
9266b80ab: Adding a type filter to new search- Updated dependencies
- @backstage/core-components@0.1.6
- @backstage/plugin-catalog-react@0.3.1
0.4.3
Patch Changes
078d4973e: Handle request errors properly and display them in the results list.- Updated dependencies
- @backstage/plugin-catalog-react@0.3.0
0.4.2
Patch Changes
- Updated dependencies
- @backstage/core-components@0.1.5
- @backstage/catalog-model@0.9.0
- @backstage/plugin-catalog-react@0.2.6
0.4.1
Patch Changes
df51a5507: Fix empty state not being displayed on missing results.d5db15efb: Use theidentityApito forward authorization headers to thesearch-backend48c9fcd33: Migrated to use the new@backstage/core-*packages rather than@backstage/core.- Updated dependencies
- @backstage/core-plugin-api@0.1.3
- @backstage/catalog-model@0.8.4
- @backstage/plugin-catalog-react@0.2.4
0.4.0
Minor Changes
-
5aff84759: This release represents a move out of a pre-alpha phase of the Backstage Search plugin, into an alpha phase. With this release, you gain more control over the layout of your search page on the frontend, as well as the ability to extend search on the backend to encompass everything Backstage users may want to find.If you are updating to this version of
@backstage/plugin-searchfrom a prior release, you will need to make the following modifications to your App:In your app package, create a new
searchPagecomponent at, for example,packages/app/src/components/search/SearchPage.tsxwith contents like the following:import React from 'react'; import { makeStyles, Theme, Grid, List, Paper } from '@material-ui/core'; import { Content, Header, Lifecycle, Page } from '@backstage/core'; import { CatalogResultListItem } from '@backstage/plugin-catalog'; import { SearchBar, SearchFilter, SearchResult, DefaultResultListItem, } from '@backstage/plugin-search'; const useStyles = makeStyles((theme: Theme) => ({ bar: { padding: theme.spacing(1, 0), }, filters: { padding: theme.spacing(2), }, filter: { '& + &': { marginTop: theme.spacing(2.5), }, }, })); const SearchPage = () => { const classes = useStyles(); return ( <Page themeId="home"> <Header title="Search" subtitle={<Lifecycle alpha />} /> <Content> <Grid container direction="row"> <Grid item xs={12}> <Paper className={classes.bar}> <SearchBar debounceTime={100} /> </Paper> </Grid> <Grid item xs={3}> <Paper className={classes.filters}> <SearchFilter.Select className={classes.filter} name="kind" values={['Component', 'Template']} /> <SearchFilter.Checkbox className={classes.filter} name="lifecycle" values={['experimental', 'production']} /> </Paper> </Grid> <Grid item xs={9}> <SearchResult> {({ results }) => ( <List> {results.map(({ type, document }) => { switch (type) { case 'software-catalog': return ( <CatalogResultListItem key={document.location} result={document} /> ); default: return ( <DefaultResultListItem key={document.location} result={document} /> ); } })} </List> )} </SearchResult> </Grid> </Grid> </Content> </Page> ); }; export const searchPage = <SearchPage />;Then in
App.tsx, import this newsearchPagecomponent, and set it as a child of the existing<SearchPage />route so that it looks like this:import { searchPage } from './components/search/SearchPage'; // ... <Route path="/search" element={<SearchPage />}> {searchPage} </Route>;You will also need to update your backend. For details, check the changeset for
v0.2.0of@backstage/plugin-search-backend.
Patch Changes
-
db1c8f93b: The `<Search...Next /> set of components exported by the Search Plugin are now updated to use the Search Backend API. These will be made available as the default non-"next" versions in a follow-up release.The interfaces for decorators and collators in the Search Backend have also seen minor, breaking revisions ahead of a general release. If you happen to be building on top of these interfaces, check and update your implementations accordingly. The APIs will be considered more stable in a follow-up release.
-
Updated dependencies [
27a9b503a] -
Updated dependencies [
7028ee1ca] -
Updated dependencies [
db1c8f93b]- @backstage/catalog-model@0.8.2
- @backstage/plugin-catalog-react@0.2.2
- @backstage/search-common@0.1.2
0.3.7
Patch Changes
- Updated dependencies [
add62a455] - Updated dependencies [
cc592248b] - Updated dependencies [
17c497b81] - Updated dependencies [
704875e26]- @backstage/catalog-model@0.8.0
- @backstage/core@0.7.11
- @backstage/plugin-catalog-react@0.2.0
0.3.6
Patch Changes
062bbf90f: chore: bump@testing-library/user-eventfrom 12.8.3 to 13.1.8675a569a9: chore: bumpreact-usedependency in all packages- Updated dependencies [
062bbf90f] - Updated dependencies [
10c008a3a] - Updated dependencies [
889d89b6e] - Updated dependencies [
16be1d093] - Updated dependencies [
3f988cb63] - Updated dependencies [
675a569a9]- @backstage/core@0.7.9
- @backstage/plugin-catalog-react@0.1.6
- @backstage/catalog-model@0.7.9
0.3.5
Patch Changes
dcd54c7cd: UseRouteRefto generate path to search page.- Updated dependencies [
9afcac5af] - Updated dependencies [
e0c9ed759] - Updated dependencies [
6eaecbd81]- @backstage/core@0.7.7
0.3.4
Patch Changes
9ca0e4009: use local version of lowerCase and upperCase methods- Updated dependencies [
8686eb38c] - Updated dependencies [
9ca0e4009] - Updated dependencies [
34ff49b0f]- @backstage/core@0.7.2
- @backstage/plugin-catalog-react@0.1.2
0.3.3
Patch Changes
- Updated dependencies [
12d8f27a6] - Updated dependencies [
40c0fdbaa] - Updated dependencies [
2a271d89e] - Updated dependencies [
bece09057] - Updated dependencies [
169f48deb] - Updated dependencies [
8a1566719] - Updated dependencies [
9d455f69a] - Updated dependencies [
4c049a1a1] - Updated dependencies [
02816ecd7]- @backstage/catalog-model@0.7.3
- @backstage/core@0.7.0
- @backstage/plugin-catalog-react@0.1.1
0.3.2
Patch Changes
- Updated dependencies [
3a58084b6] - Updated dependencies [
e799e74d4] - Updated dependencies [
d0760ecdf] - Updated dependencies [
1407b34c6] - Updated dependencies [
88f1f1b60] - Updated dependencies [
bad21a085] - Updated dependencies [
9615e68fb] - Updated dependencies [
49f9b7346] - Updated dependencies [
5c2e2863f] - Updated dependencies [
3a58084b6] - Updated dependencies [
2c1f2a7c2]- @backstage/core@0.6.3
- @backstage/plugin-catalog-react@0.1.0
- @backstage/catalog-model@0.7.2
0.3.1
Patch Changes
- Updated dependencies [
fd3f2a8c0] - Updated dependencies [
d34d26125] - Updated dependencies [
0af242b6d] - Updated dependencies [
f4c2bcf54] - Updated dependencies [
10a0124e0] - Updated dependencies [
07e226872] - Updated dependencies [
f62e7abe5] - Updated dependencies [
96f378d10] - Updated dependencies [
688b73110]- @backstage/core@0.6.2
- @backstage/plugin-catalog-react@0.0.4
0.3.0
Minor Changes
b3f0c3811: Migrated to new composability API, exporting the plugin instance assearchPlugin, and page asSearchPage. Due to the old router component also being calledSearchPage, this is a breaking change. The old page component is now exported asRouter, which can be used to maintain the old behavior.
Patch Changes
- Updated dependencies [
19d354c78] - Updated dependencies [
b51ee6ece]- @backstage/plugin-catalog-react@0.0.3
- @backstage/core@0.6.1
0.2.7
Patch Changes
019fe39a0: Switch dependency from@backstage/plugin-catalogto@backstage/plugin-catalog-react.- Updated dependencies [
12ece98cd] - Updated dependencies [
d82246867] - Updated dependencies [
7fc89bae2] - Updated dependencies [
c810082ae] - Updated dependencies [
5fa3bdb55] - Updated dependencies [
6e612ce25] - Updated dependencies [
025e122c3] - Updated dependencies [
21e624ba9] - Updated dependencies [
da9f53c60] - Updated dependencies [
32c95605f] - Updated dependencies [
7881f2117] - Updated dependencies [
54c7d02f7] - Updated dependencies [
11cb5ef94]- @backstage/core@0.6.0
- @backstage/plugin-catalog-react@0.0.2
- @backstage/theme@0.2.3
- @backstage/catalog-model@0.7.1
0.2.6
Patch Changes
- Updated dependencies [
def2307f3] - Updated dependencies [
efd6ef753] - Updated dependencies [
593632f07] - Updated dependencies [
33846acfc] - Updated dependencies [
a187b8ad0] - Updated dependencies [
f04db53d7] - Updated dependencies [
a93f42213]- @backstage/catalog-model@0.7.0
- @backstage/core@0.5.0
- @backstage/plugin-catalog@0.2.12
0.2.5
Patch Changes
01707438b: Fix Material-UI warning for search filtering- Updated dependencies [
9c09a364f]- @backstage/plugin-catalog@0.2.10
0.2.4
Patch Changes
- Updated dependencies [
c911061b7] - Updated dependencies [
8ef71ed32] - Updated dependencies [
0e6298f7e] - Updated dependencies [
ac3560b42]- @backstage/catalog-model@0.6.0
- @backstage/core@0.4.1
- @backstage/plugin-catalog@0.2.7
0.2.3
Patch Changes
6a0d7a9fb: change default size for pageSize in search result view- Updated dependencies [
2527628e1] - Updated dependencies [
6011b7d3e] - Updated dependencies [
1c69d4716] - Updated dependencies [
83b6e0c1f] - Updated dependencies [
1665ae8bb] - Updated dependencies [
04f26f88d] - Updated dependencies [
ff243ce96]- @backstage/core@0.4.0
- @backstage/plugin-catalog@0.2.6
- @backstage/catalog-model@0.5.0
- @backstage/theme@0.2.2
0.2.2
Patch Changes
- Updated dependencies [
08835a61d] - Updated dependencies [
a9fd599f7] - Updated dependencies [
bcc211a08] - Updated dependencies [
ebf37bbae]- @backstage/catalog-model@0.4.0
- @backstage/plugin-catalog@0.2.5