@backstage/core-plugin-api
Home > @backstage/core-plugin-api
Core API used by Backstage plugins
Functions
|
Function |
Description |
|---|---|
|
Provides components in the child react tree an Analytics Context, ensuring all analytics events captured within the context have relevant attributes. | |
|
Stores data related to a component in a global store. | |
|
Plain React component extension. | |
|
Creates a route descriptor, to be later bound to a concrete route by the app. Used to implement cross-plugin route references. | |
|
Creates Backstage Plugin from config. | |
|
Used by createComponentExtension() and createRoutableExtension(). | |
|
Extension for components that can have its own URL route (top-level pages, tabs etc.). | |
|
Create a RouteRef from a route descriptor. | |
|
Create a SubRouteRef from a route descriptor. | |
|
Retrieves data attached to a component. | |
|
Gets a pre-configured analytics tracker. | |
|
React hook providing AppContext. | |
|
useElementFilter is a utility that helps you narrow down and retrieve data from a React element tree, typically operating on the | |
|
React hook for constructing URLs to routes. | |
|
React hook for constructing URLs to routes. | |
|
React hook for retrieving dynamic params from the current URL. |
Interfaces
|
Interface |
Description |
|---|---|
|
A querying interface tailored to traversing a set of selected React elements and extracting data. |
Variables
|
Variable |
Description |
|---|---|
|
The |
Type Aliases
|
Type Alias |
Description |
|---|---|
|
The Analytics API is used to track user behavior in a Backstage instance. | |
|
Analytics context envelope. | |
|
Represents an event worth tracking in an analytics system that could inform how users of a Backstage instance are using its features. | |
|
A structure allowing other arbitrary metadata to be provided by analytics event emitters. | |
|
Represents a tracker with methods that can be called to track events in a configured analytics service. | |
|
Catch-all type for ExternalRouteRefs. | |
|
Catch-all type for route params. | |
|
Catch-all route type. | |
|
A set of replaceable core components that are part of every Backstage app. | |
|
The central context providing runtime app specific state that plugin views want to consume. | |
|
Plugin type. | |
|
Props for the | |
|
Common analytics context attributes. | |
|
Lazy or synchronous retrieving of extension components. | |
|
Props for the fallback error boundary. | |
|
Plugin extension type. | |
|
Route descriptor, to be later bound to a concrete route by the app. Used to implement cross-plugin route references. | |
|
Interface for registering feature flags hooks. | |
|
Creates a SubRouteRef type given the desired parameters and parent route parameters. The parameters types are merged together while ensuring that there is no overlap between the two. | |
|
Merges a param object type with an optional params type into a params object. | |
|
Optional route params. | |
|
Type describing the key type of a route parameter mapping. | |
|
Used in PathParams type declaration. | |
|
Used in PathParams type declaration. | |
|
This utility type helps us infer a Param object type from a string path For example, | |
|
Plugin descriptor type. | |
|
Plugin feature flag configuration. | |
|
TS magic for handling route parameters. | |
|
Absolute route reference. | |
|
Props for the | |
|
Descriptor of a route relative to an absolute RouteRef. |