Merge pull request #32521 from backstage/rugvip/no-multi
frontend-plugin-api: deprecate support for multiple attachment points
This commit is contained in:
@@ -1206,6 +1206,9 @@ export type ExtensionDefinitionAttachTo<
|
||||
id?: never;
|
||||
}
|
||||
| ExtensionInput<UParentInputs>
|
||||
/**
|
||||
* @deprecated Multiple attachment points are deprecated and will be removed in a future release. Use a Utility API instead to share functionality across multiple locations. See https://backstage.io/docs/frontend-system/architecture/27-sharing-extensions for migration guidance.
|
||||
*/
|
||||
| Array<
|
||||
| {
|
||||
id: string;
|
||||
|
||||
@@ -152,7 +152,7 @@ export type VerifyExtensionAttachTo<
|
||||
* const page = ParentBlueprint.make({ ... });
|
||||
* const child = ChildBlueprint.make({ attachTo: page.inputs.children });
|
||||
*
|
||||
* // Attach to multiple parents at once
|
||||
* // Attach to multiple parents at once (deprecated - use Utility APIs instead)
|
||||
* [
|
||||
* { id: 'page/home', input: 'widgets' },
|
||||
* { relative: { kind: 'page' }, input: 'widgets' },
|
||||
@@ -167,6 +167,9 @@ export type ExtensionDefinitionAttachTo<
|
||||
| { id: string; input: string; relative?: never }
|
||||
| { relative: { kind?: string; name?: string }; input: string; id?: never }
|
||||
| ExtensionInput<UParentInputs>
|
||||
/**
|
||||
* @deprecated Multiple attachment points are deprecated and will be removed in a future release. Use a Utility API instead to share functionality across multiple locations. See https://backstage.io/docs/frontend-system/architecture/27-sharing-extensions for migration guidance.
|
||||
*/
|
||||
| Array<
|
||||
| { id: string; input: string; relative?: never }
|
||||
| {
|
||||
|
||||
Reference in New Issue
Block a user