feat(explore): migrate search result item extension
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
"@backstage/core-components": "workspace:^",
|
||||
"@backstage/core-plugin-api": "workspace:^",
|
||||
"@backstage/errors": "workspace:^",
|
||||
"@backstage/frontend-plugin-api": "workspace:^",
|
||||
"@backstage/plugin-catalog-react": "workspace:^",
|
||||
"@backstage/plugin-explore-common": "workspace:^",
|
||||
"@backstage/plugin-explore-react": "workspace:^",
|
||||
|
||||
@@ -13,3 +13,23 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { createPlugin } from '@backstage/frontend-plugin-api';
|
||||
import { createSearchResultListItemExtension } from '@backstage/plugin-search-react/alpha';
|
||||
|
||||
/** @alpha */
|
||||
export const ExploreSearchResultListItemExtension =
|
||||
createSearchResultListItemExtension({
|
||||
id: 'explore',
|
||||
predicate: result => result.type === 'tools',
|
||||
component: () =>
|
||||
import('./components/ToolSearchResultListItem').then(
|
||||
m => m.ToolSearchResultListItem,
|
||||
),
|
||||
});
|
||||
|
||||
/** @alpha */
|
||||
export default createPlugin({
|
||||
id: 'explore',
|
||||
extensions: [ExploreSearchResultListItemExtension],
|
||||
});
|
||||
|
||||
@@ -6811,6 +6811,7 @@ __metadata:
|
||||
"@backstage/core-plugin-api": "workspace:^"
|
||||
"@backstage/dev-utils": "workspace:^"
|
||||
"@backstage/errors": "workspace:^"
|
||||
"@backstage/frontend-plugin-api": "workspace:^"
|
||||
"@backstage/plugin-catalog": "workspace:^"
|
||||
"@backstage/plugin-catalog-react": "workspace:^"
|
||||
"@backstage/plugin-explore-common": "workspace:^"
|
||||
|
||||
Reference in New Issue
Block a user