Skip to main content
Version: Next

@backstage/frontend-plugin-api

Home > @backstage/frontend-plugin-api

Core API used by Backstage frontend plugins.

Functions

FunctionDescription
createComponentExtension(options)
createComponentRef(options)
createExtension(options)
createExtensionBlueprint(options)A simpler replacement for wrapping up createExtension inside a kind or type. This allows for a cleaner API for creating types and instances of those types.
createExtensionDataRef(id)
createExtensionDataRef()
createExtensionInput(extensionData, config)
createExternalRouteRef(options)Creates a route descriptor, to be later bound to a concrete route by the app. Used to implement cross-plugin route references.
createFrontendModule(options)
createFrontendPlugin(options)
createRouteRef(config)Create a RouteRef from a route descriptor.
createSubRouteRef(config)Create a SubRouteRef from a route descriptor.
ExtensionBoundary(props)
useAnalytics()Gets a pre-configured analytics tracker.
useComponentRef(ref)Returns the component associated with the given ref.
useRouteRef(routeRef)React hook for constructing URLs to routes.
useRouteRefParams(_routeRef)React hook for retrieving dynamic params from the current URL.

Interfaces

InterfaceDescription
AppNodeA node in the AppTree.
AppNodeEdgesThe connections from this AppNode to other nodes.
AppNodeInstanceThe instance of this AppNode in the AppTree.
AppNodeSpecThe specification for this AppNode in the AppTree.
AppTreeThe app tree containing all AppNodes of the app.
AppTreeApiThe API for interacting with the AppTree.
ComponentsApiAPI for looking up components based on component refs.
ConfigurableExtensionDataRef
CreateFrontendModuleOptions
Extension
ExtensionBlueprint
ExtensionBoundaryProps
ExtensionInput
ExtensionOverrides
ExternalRouteRefRoute descriptor, to be later bound to a concrete route by the app. Used to implement cross-plugin route references.
FrontendModule
FrontendPlugin
IconsApiAPI for accessing app icons.
PluginOptions
RouteRefAbsolute route reference.
RouteResolutionApi
SubRouteRefDescriptor of a route relative to an absolute RouteRef.

Namespaces

NamespaceDescription
createComponentExtension
ExtensionBoundary

Variables

VariableDescription
analyticsApiRefThe API reference of AnalyticsApi.
AnalyticsContextProvides components in the child react tree an Analytics Context, ensuring all analytics events captured within the context have relevant attributes.
ApiBlueprintCreates utility API extensions.
AppRootElementBlueprintCreates extensions that render a React element at the app root, outside of the app layout. This is useful for example for shared popups and similar.
AppRootWrapperBlueprintCreates a extensions that render a React wrapper at the app root, enclosing the app layout. This is useful for example for adding global React contexts and similar.
appTreeApiRefThe ApiRef of AppTreeApi.
componentsApiRefThe ApiRef of ComponentsApi.
coreComponentRefs
coreExtensionData
IconBundleBlueprint
iconsApiRefThe ApiRef of IconsApi.
NavItemBlueprintCreates extensions that make up the items of the nav bar.
NavLogoBlueprintCreates an extension that replaces the logo in the nav bar with your own.
PageBlueprintCreatex extensions that are routable React page components.
RouterBlueprint
routeResolutionApiRefThe ApiRef of RouteResolutionApi.
SignInPageBlueprintCreates an extension that replaces the sign in page.
ThemeBlueprintCreates an extension that adds/replaces an app theme.
TranslationBlueprintCreates an extension that adds translations to your app.

Type Aliases

Type AliasDescription
AnalyticsApiThe Analytics API is used to track user behavior in a Backstage instance.
AnalyticsContextValueAnalytics context envelope.
AnalyticsEventRepresents an event worth tracking in an analytics system that could inform how users of a Backstage instance are using its features.
AnalyticsEventAttributesA structure allowing other arbitrary metadata to be provided by analytics event emitters.
AnalyticsTrackerRepresents a tracker with methods that can be called to track events in a configured analytics service.
AnyExtensionDataRef
AnyExternalRoutes
AnyRouteRefParamsCatch-all type for route params.
AnyRoutes
CommonAnalyticsContextCommon analytics context attributes.
ComponentRef
CoreErrorBoundaryFallbackProps
CoreNotFoundErrorPageProps
CoreProgressProps
CreateExtensionBlueprintOptions
CreateExtensionOptions
ExtensionBlueprintParameters
ExtensionDataContainer
ExtensionDataRef
ExtensionDataRefToValue
ExtensionDataValue
ExtensionDefinition
ExtensionDefinitionParameters
FeatureFlagConfigFeature flag configuration.
FrontendFeature
IconComponentIconComponent is the common icon type used throughout Backstage when working with and rendering generic icons, including the app system icons.
PortableSchema
ResolvedExtensionInputConvert a single extension input into a matching resolved input.
ResolvedExtensionInputsConverts an extension input map into a matching collection of resolved inputs.
ResolveInputValueOverrides
RouteFuncTS magic for handling route parameters.
RouteResolutionApiResolveOptions