frontend-plugin-api: add explicit ApiRef plugin ownership
Add the new frontend ApiRef builder form while preserving compatibility with existing refs, and let frontend apps resolve API ownership through an explicit pluginId when provided. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -200,7 +200,9 @@ export type FormFieldExtensionData<
|
||||
};
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const formFieldsApiRef: ApiRef<ScaffolderFormFieldsApi>;
|
||||
export const formFieldsApiRef: ApiRef<ScaffolderFormFieldsApi> & {
|
||||
readonly $$type: '@backstage/ApiRef';
|
||||
};
|
||||
|
||||
// @alpha (undocumented)
|
||||
export type FormValidation = {
|
||||
|
||||
@@ -208,7 +208,9 @@ export type ReviewStepProps = {
|
||||
export type ScaffolderApi = ScaffolderApi_2;
|
||||
|
||||
// @public (undocumented)
|
||||
export const scaffolderApiRef: ApiRef<ScaffolderApi_2>;
|
||||
export const scaffolderApiRef: ApiRef<ScaffolderApi_2> & {
|
||||
readonly $$type: '@backstage/ApiRef';
|
||||
};
|
||||
|
||||
// @public @deprecated (undocumented)
|
||||
export type ScaffolderDryRunOptions = ScaffolderDryRunOptions_2;
|
||||
|
||||
Reference in New Issue
Block a user