remove Search*Next components
Signed-off-by: Anders Näsman <andersn@spotify.com>
This commit is contained in:
committed by
Eric Peterson
parent
ccbabfd4bd
commit
b3389f1eee
@@ -113,14 +113,6 @@ export type SearchBarBaseProps = Omit<InputBaseProps, 'onChange'> & {
|
||||
onChange: (value: string) => void;
|
||||
};
|
||||
|
||||
// Warning: (ae-missing-release-tag) "SearchBarNext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public @deprecated (undocumented)
|
||||
export const SearchBarNext: ({
|
||||
onChange,
|
||||
...props
|
||||
}: Partial<SearchBarBaseProps>) => JSX.Element;
|
||||
|
||||
// @public @deprecated (undocumented)
|
||||
export type SearchBarProps = Partial<SearchBarBaseProps>;
|
||||
|
||||
@@ -208,18 +200,12 @@ export type SearchModalValue = {
|
||||
// @public (undocumented)
|
||||
export const SearchPage: () => JSX.Element;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "SearchPageNext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public @deprecated (undocumented)
|
||||
export const SearchPageNext: () => JSX.Element;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "searchPlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
const searchPlugin: BackstagePlugin<
|
||||
{
|
||||
root: RouteRef<undefined>;
|
||||
nextRoot: RouteRef<undefined>;
|
||||
},
|
||||
{}
|
||||
>;
|
||||
|
||||
@@ -60,9 +60,7 @@ export type { SidebarSearchModalProps } from './components/SidebarSearchModal';
|
||||
export {
|
||||
DefaultResultListItem,
|
||||
HomePageSearchBar,
|
||||
SearchBarNext,
|
||||
SearchPage,
|
||||
SearchPageNext,
|
||||
searchPlugin as plugin,
|
||||
searchPlugin,
|
||||
SearchResult,
|
||||
|
||||
@@ -30,10 +30,6 @@ export const rootRouteRef = createRouteRef({
|
||||
id: 'search',
|
||||
});
|
||||
|
||||
export const rootNextRouteRef = createRouteRef({
|
||||
id: 'search:next',
|
||||
});
|
||||
|
||||
export const searchPlugin = createPlugin({
|
||||
id: 'search',
|
||||
apis: [
|
||||
@@ -47,7 +43,6 @@ export const searchPlugin = createPlugin({
|
||||
],
|
||||
routes: {
|
||||
root: rootRouteRef,
|
||||
nextRoot: rootNextRouteRef,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -59,20 +54,6 @@ export const SearchPage = searchPlugin.provide(
|
||||
}),
|
||||
);
|
||||
|
||||
/**
|
||||
* @deprecated This component was used for rapid prototyping of the Backstage
|
||||
* Search platform. Now that the API has stabilized, you should use the
|
||||
* <SearchPage /> component instead. This component will be removed in an
|
||||
* upcoming release.
|
||||
*/
|
||||
export const SearchPageNext = searchPlugin.provide(
|
||||
createRoutableExtension({
|
||||
name: 'SearchPageNext',
|
||||
component: () => import('./components/SearchPage').then(m => m.SearchPage),
|
||||
mountPoint: rootNextRouteRef,
|
||||
}),
|
||||
);
|
||||
|
||||
export const SearchBar = searchPlugin.provide(
|
||||
createComponentExtension({
|
||||
name: 'SearchBar',
|
||||
@@ -82,21 +63,6 @@ export const SearchBar = searchPlugin.provide(
|
||||
}),
|
||||
);
|
||||
|
||||
/**
|
||||
* @deprecated This component was used for rapid prototyping of the Backstage
|
||||
* Search platform. Now that the API has stabilized, you should use the
|
||||
* <SearchBar /> component instead. This component will be removed in an
|
||||
* upcoming release.
|
||||
*/
|
||||
export const SearchBarNext = searchPlugin.provide(
|
||||
createComponentExtension({
|
||||
name: 'SearchBarNext',
|
||||
component: {
|
||||
lazy: () => import('./components/SearchBar').then(m => m.SearchBar),
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
export const SearchResult = searchPlugin.provide(
|
||||
createComponentExtension({
|
||||
name: 'SearchResult',
|
||||
@@ -106,21 +72,6 @@ export const SearchResult = searchPlugin.provide(
|
||||
}),
|
||||
);
|
||||
|
||||
/**
|
||||
* @deprecated This component was used for rapid prototyping of the Backstage
|
||||
* Search platform. Now that the API has stabilized, you should use the
|
||||
* <SearchResult /> component instead. This component will be removed in an
|
||||
* upcoming release.
|
||||
*/
|
||||
export const SearchResultNext = searchPlugin.provide(
|
||||
createComponentExtension({
|
||||
name: 'SearchResultNext',
|
||||
component: {
|
||||
lazy: () => import('./components/SearchResult').then(m => m.SearchResult),
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
export const SidebarSearchModal = searchPlugin.provide(
|
||||
createComponentExtension({
|
||||
name: 'SidebarSearchModal',
|
||||
|
||||
Reference in New Issue
Block a user