diff --git a/ADOPTERS.md b/ADOPTERS.md index 38bd18b0b7..ce5b2b70ef 100644 --- a/ADOPTERS.md +++ b/ADOPTERS.md @@ -109,4 +109,4 @@ _If you're using Backstage in your organization, please try to add your company | [Bonial International GmbH](https://www.bonial.com/) | [@pjungermann](https://github.com/pjungermann) | Centralized developer portal with software catalog, tech docs, templates, and more. | | [Beez Innovation Labs Pvt. Ltd](https://www.beezlabs.com/) | [Karthikeyan Venkatesan](https://github.com/karthikeyan23) | Developer portal with software catalog, scaffolding, tech docs, templates, and infra. | | [Agorapulse](https://www.agorapulse.com/) | [@jvdrean](https://github.com/jvdrean) | Developer portal with software catalog, documentation, monitoring, runbooks, tech radar and more. | -| [Wistia](https://wistia.com/) | [@qrush](https://github.com/qrush), [@okize](https://github.com/okize) | Internal Developer Portal, service catalog, tech docs and more | +| [Wistia](https://wistia.com/) | [@qrush](https://github.com/qrush), [@okize](https://github.com/okize) | Internal Developer Portal, service catalog, tech docs and more | diff --git a/packages/core-app-api/src/app/AppContext.test.tsx b/packages/core-app-api/src/app/AppContext.test.tsx index a1131969f2..bc67ee3a9e 100644 --- a/packages/core-app-api/src/app/AppContext.test.tsx +++ b/packages/core-app-api/src/app/AppContext.test.tsx @@ -22,8 +22,9 @@ import { AppContextProvider } from './AppContext'; describe('v1 consumer', () => { function useMockAppV1(): AppContextV1 { - const impl = - useVersionedContext<{ 1: AppContextV1 }>('app-context')?.atVersion(1); + const impl = useVersionedContext<{ 1: AppContextV1 }>( + 'app-context', + )?.atVersion(1); if (!impl) { throw new Error('no impl'); } diff --git a/packages/core-app-api/src/routing/RoutingProvider.tsx b/packages/core-app-api/src/routing/RoutingProvider.tsx index 2ab1686368..3d8a274922 100644 --- a/packages/core-app-api/src/routing/RoutingProvider.tsx +++ b/packages/core-app-api/src/routing/RoutingProvider.tsx @@ -27,8 +27,9 @@ import { import { RouteResolver } from './RouteResolver'; import { BackstageRouteObject } from './types'; -const RoutingContext = - createVersionedContext<{ 1: RouteResolver }>('routing-context'); +const RoutingContext = createVersionedContext<{ 1: RouteResolver }>( + 'routing-context', +); type ProviderProps = { routePaths: Map; diff --git a/packages/core-plugin-api/src/app/useApp.tsx b/packages/core-plugin-api/src/app/useApp.tsx index f2175a0969..05723ee387 100644 --- a/packages/core-plugin-api/src/app/useApp.tsx +++ b/packages/core-plugin-api/src/app/useApp.tsx @@ -23,8 +23,9 @@ import { AppContext as AppContextV1 } from './types'; * @public */ export const useApp = (): AppContextV1 => { - const versionedContext = - useVersionedContext<{ 1: AppContextV1 }>('app-context'); + const versionedContext = useVersionedContext<{ 1: AppContextV1 }>( + 'app-context', + ); if (!versionedContext) { throw new Error('App context is not available'); } diff --git a/packages/core-plugin-api/src/routing/useRouteRef.tsx b/packages/core-plugin-api/src/routing/useRouteRef.tsx index 50cfb3bdfb..563bb2035c 100644 --- a/packages/core-plugin-api/src/routing/useRouteRef.tsx +++ b/packages/core-plugin-api/src/routing/useRouteRef.tsx @@ -86,8 +86,9 @@ export function useRouteRef( | ExternalRouteRef, ): RouteFunc | undefined { const sourceLocation = useLocation(); - const versionedContext = - useVersionedContext<{ 1: RouteResolver }>('routing-context'); + const versionedContext = useVersionedContext<{ 1: RouteResolver }>( + 'routing-context', + ); if (!versionedContext) { throw new Error('Routing context is not available'); } diff --git a/plugins/catalog-react/src/hooks/useEntity.tsx b/plugins/catalog-react/src/hooks/useEntity.tsx index 6108a5717f..f654cff777 100644 --- a/plugins/catalog-react/src/hooks/useEntity.tsx +++ b/plugins/catalog-react/src/hooks/useEntity.tsx @@ -32,8 +32,9 @@ export type EntityLoadingStatus = { // This context has support for multiple concurrent versions of this package. // It is currently used in parallel with the old context in order to provide // a smooth transition, but will eventually be the only context we use. -const NewEntityContext = - createVersionedContext<{ 1: EntityLoadingStatus }>('entity-context'); +const NewEntityContext = createVersionedContext<{ 1: EntityLoadingStatus }>( + 'entity-context', +); /** * Properties for the AsyncEntityProvider component. @@ -104,8 +105,9 @@ export const EntityProvider = (props: EntityProviderProps) => ( export function useEntity(): { entity: TEntity; } { - const versionedHolder = - useVersionedContext<{ 1: EntityLoadingStatus }>('entity-context'); + const versionedHolder = useVersionedContext<{ 1: EntityLoadingStatus }>( + 'entity-context', + ); if (!versionedHolder) { throw new Error('Entity context is not available'); @@ -133,8 +135,9 @@ export function useEntity(): { export function useAsyncEntity< TEntity extends Entity = Entity, >(): EntityLoadingStatus { - const versionedHolder = - useVersionedContext<{ 1: EntityLoadingStatus }>('entity-context'); + const versionedHolder = useVersionedContext<{ 1: EntityLoadingStatus }>( + 'entity-context', + ); if (!versionedHolder) { throw new Error('Entity context is not available');