chore: deprecate the namespace option in blueprints and extensions

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-08-30 08:39:47 +02:00
parent 61e1632dda
commit b99b158dfc
11 changed files with 5 additions and 10 deletions
-1
View File
@@ -27,7 +27,6 @@ import { ApiProvider } from '../../../../packages/core-app-api/src';
import { AppThemeProvider } from '../../../../packages/core-app-api/src/app/AppThemeProvider';
export const App = createExtension({
namespace: 'app',
attachTo: { id: 'root', input: 'app' },
inputs: {
root: createExtensionInput([coreExtensionData.reactElement], {
-1
View File
@@ -23,7 +23,6 @@ import {
import { SidebarPage } from '@backstage/core-components';
export const AppLayout = createExtension({
namespace: 'app',
name: 'layout',
attachTo: { id: 'app/root', input: 'children' },
inputs: {
-1
View File
@@ -82,7 +82,6 @@ const SidebarNavItem = (
};
export const AppNav = createExtension({
namespace: 'app',
name: 'nav',
attachTo: { id: 'app/layout', input: 'nav' },
inputs: {
-1
View File
@@ -53,7 +53,6 @@ import { RouteTracker } from '../../../../packages/frontend-app-api/src/routing/
import { getBasePath } from '../../../../packages/frontend-app-api/src/routing/getBasePath';
export const AppRoot = createExtension({
namespace: 'app',
name: 'root',
attachTo: { id: 'app', input: 'root' },
inputs: {
-1
View File
@@ -25,7 +25,6 @@ import {
import { useRoutes } from 'react-router-dom';
export const AppRoutes = createExtension({
namespace: 'app',
name: 'routes',
attachTo: { id: 'app/layout', input: 'content' },
inputs: {
-2
View File
@@ -19,7 +19,6 @@ import { AppRootElementBlueprint } from '@backstage/frontend-plugin-api';
import React from 'react';
export const oauthRequestDialogAppRootElement = AppRootElementBlueprint.make({
namespace: 'app',
name: 'oauth-request-dialog',
params: {
element: <OAuthRequestDialog />,
@@ -28,7 +27,6 @@ export const oauthRequestDialogAppRootElement = AppRootElementBlueprint.make({
export const alertDisplayAppRootElement =
AppRootElementBlueprint.makeWithOverrides({
namespace: 'app',
name: 'alert-display',
config: {
schema: {