chore(home): update api reports
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
import { ConfigurableExtensionDataRef } from '@backstage/frontend-plugin-api';
|
||||
import { ExtensionBlueprint } from '@backstage/frontend-plugin-api';
|
||||
import { ExtensionDataRef } from '@backstage/frontend-plugin-api';
|
||||
import { JSX as JSX_2 } from 'react';
|
||||
import { ReactElement } from 'react';
|
||||
import { RJSFSchema } from '@rjsf/utils';
|
||||
import { TranslationRef } from '@backstage/frontend-plugin-api';
|
||||
import { UiSchema } from '@rjsf/utils';
|
||||
@@ -43,19 +43,7 @@ export type ComponentParts = {
|
||||
export const HomepageWidgetBlueprint: ExtensionBlueprint<{
|
||||
kind: 'home-widget';
|
||||
params: HomepageWidgetBlueprintParams;
|
||||
output:
|
||||
| ExtensionDataRef<JSX_2.Element, 'core.reactElement', {}>
|
||||
| ExtensionDataRef<
|
||||
{
|
||||
name?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
layout?: CardLayout;
|
||||
settings?: CardSettings;
|
||||
},
|
||||
'home.widget.metadata',
|
||||
{}
|
||||
>;
|
||||
output: ExtensionDataRef<HomePageWidgetData, 'home.widget.data', {}>;
|
||||
inputs: {};
|
||||
config: {};
|
||||
configInput: {};
|
||||
@@ -73,6 +61,23 @@ export interface HomepageWidgetBlueprintParams {
|
||||
title?: string;
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export interface HomePageWidgetData {
|
||||
component: ReactElement;
|
||||
description?: string;
|
||||
layout?: CardLayout;
|
||||
name?: string;
|
||||
settings?: CardSettings;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export const homePageWidgetDataRef: ConfigurableExtensionDataRef<
|
||||
HomePageWidgetData,
|
||||
'home.widget.data',
|
||||
{}
|
||||
>;
|
||||
|
||||
// @alpha
|
||||
export const homeReactTranslationRef: TranslationRef<
|
||||
'home-react',
|
||||
@@ -82,17 +87,4 @@ export const homeReactTranslationRef: TranslationRef<
|
||||
readonly 'cardExtension.settingsButtonTitle': 'Settings';
|
||||
}
|
||||
>;
|
||||
|
||||
// @alpha
|
||||
export const widgetMetadataRef: ConfigurableExtensionDataRef<
|
||||
{
|
||||
name?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
layout?: CardLayout;
|
||||
settings?: CardSettings;
|
||||
},
|
||||
'home.widget.metadata',
|
||||
{}
|
||||
>;
|
||||
```
|
||||
|
||||
@@ -12,6 +12,7 @@ import { ExtensionBlueprint } from '@backstage/frontend-plugin-api';
|
||||
import { ExtensionBlueprintParams } from '@backstage/frontend-plugin-api';
|
||||
import { ExtensionDataRef } from '@backstage/frontend-plugin-api';
|
||||
import { ExtensionInput } from '@backstage/frontend-plugin-api';
|
||||
import { HomePageWidgetData } from '@backstage/plugin-home-react/alpha';
|
||||
import { IconComponent } from '@backstage/core-plugin-api';
|
||||
import { JSX as JSX_2 } from 'react';
|
||||
import { OverridableExtensionDefinition } from '@backstage/frontend-plugin-api';
|
||||
@@ -146,7 +147,7 @@ export const HomepageBlueprint: ExtensionBlueprint<{
|
||||
>;
|
||||
inputs: {
|
||||
widgets: ExtensionInput<
|
||||
ConfigurableExtensionDataRef<JSX_2.Element, 'core.reactElement', {}>,
|
||||
ConfigurableExtensionDataRef<HomePageWidgetData, 'home.widget.data', {}>,
|
||||
{
|
||||
singleton: false;
|
||||
optional: false;
|
||||
|
||||
Reference in New Issue
Block a user