chore: moved implementations to app pliugin

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-08-06 09:38:32 +02:00
parent 3cbba41ad4
commit 9c7ec669cf
12 changed files with 81 additions and 32 deletions
@@ -54,7 +54,7 @@ describe('AdaptableComponentBlueprint', () => {
params: define =>
define({
// todo(blam): there's a bug that this path cannot be `/`?
defaultPath: '/test',
path: '/test',
loader: async () => <TestComponent hello="test!" />,
}),
}),
@@ -75,7 +75,7 @@ describe('AdaptableComponentBlueprint', () => {
PageBlueprint.make({
params: define =>
define({
defaultPath: '/test',
path: '/test',
loader: async () => <TestComponent />,
}),
}),
@@ -101,7 +101,7 @@ describe('AdaptableComponentBlueprint', () => {
params: define =>
define({
// todo(blam): there's a bug that this path cannot be `/`?
defaultPath: '/test',
path: '/test',
loader: async () => <TestComponent hello="test!" />,
}),
}),
@@ -132,7 +132,7 @@ describe('AdaptableComponentBlueprint', () => {
PageBlueprint.make({
params: define =>
define({
defaultPath: '/test',
path: '/test',
loader: async () => <TestComponent hello="test!" />,
}),
}),
@@ -0,0 +1,28 @@
/*
* Copyright 2025 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createAdaptableComponent } from '@backstage/frontend-plugin-api';
export const Progress = createAdaptableComponent({
id: 'core.components.progress',
});
export const NotFoundErrorPage = createAdaptableComponent({
id: 'core.components.notFoundErrorPage',
});
export const ErrorBoundary = createAdaptableComponent({
id: 'core.components.errorBoundary',
});
@@ -23,3 +23,4 @@ export {
type ComponentRef,
} from './createAdaptableComponent';
export { useAppNode } from './AppNodeProvider';
export * from './DefaultAdaptableComponents';