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',
|
||||
{}
|
||||
>;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user