98850ded8a
Signed-off-by: blam <ben@blam.sh>
611 B
611 B
@backstage/frontend-plugin-api, @backstage/frontend-app-api
| @backstage/frontend-plugin-api | @backstage/frontend-app-api |
|---|---|
| patch | patch |
Added support for defining replaces in createExtensionInput which will allow extensions to redirect missing attachTo points to an input of the created extension.
export const AppThemeApi = ApiBlueprint.makeWithOverrides({
name: 'app-theme',
inputs: {
themes: createExtensionInput([ThemeBlueprint.dataRefs.theme], {
// attachTo: { id: 'app', input: 'themes'} will be redirected to this input instead
replaces: [{ id: 'app', input: 'themes' }],
}),
},
factory: () {
...
}
});