Search Bar Home Page Component (#7013)

feat: add search bar home page component
This commit is contained in:
Ruben Lindström
2021-09-03 14:50:14 +02:00
committed by GitHub
parent 0993a2df1a
commit 7f00902d97
17 changed files with 339 additions and 72 deletions
+13 -13
View File
@@ -84,6 +84,19 @@ export const HomepageCompositionRoot: (props: {
children?: ReactNode;
}) => JSX.Element;
// Warning: (ae-missing-release-tag) "HomePageRandomJoke" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const HomePageRandomJoke: ({
Renderer,
title: overrideTitle,
...childProps
}: ComponentRenderer & {
title?: string | undefined;
} & {
defaultCategory?: 'any' | 'programming' | undefined;
}) => JSX.Element;
// Warning: (ae-missing-release-tag) "homePlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
@@ -94,19 +107,6 @@ export const homePlugin: BackstagePlugin<
{}
>;
// Warning: (ae-missing-release-tag) "RandomJokeHomePageComponent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const RandomJokeHomePageComponent: ({
Renderer,
title: overrideTitle,
...childProps
}: ComponentRenderer & {
title?: string | undefined;
} & {
defaultCategory?: 'any' | 'programming' | undefined;
}) => JSX.Element;
// Warning: (ae-missing-release-tag) "SettingsModal" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
+1 -1
View File
@@ -17,7 +17,7 @@
export {
homePlugin,
HomepageCompositionRoot,
RandomJokeHomePageComponent,
HomePageRandomJoke,
ComponentAccordion,
ComponentTabs,
ComponentTab,
+1 -1
View File
@@ -60,7 +60,7 @@ export const ComponentTab = homePlugin.provide(
}),
);
export const RandomJokeHomePageComponent = homePlugin.provide(
export const HomePageRandomJoke = homePlugin.provide(
createCardExtension<{ defaultCategory?: 'any' | 'programming' }>({
title: 'Random Joke',
components: () => import('./homePageComponents/RandomJoke'),