diff --git a/packages/frontend-app-api/package.json b/packages/frontend-app-api/package.json index ed71d61fab..ff891a4b24 100644 --- a/packages/frontend-app-api/package.json +++ b/packages/frontend-app-api/package.json @@ -45,6 +45,7 @@ }, "devDependencies": { "@backstage/cli": "workspace:^", + "@backstage/frontend-test-utils": "workspace:^", "@backstage/plugin-app": "workspace:^", "@backstage/test-utils": "workspace:^", "@testing-library/jest-dom": "^6.0.0", diff --git a/packages/frontend-defaults/src/createApp.test.tsx b/packages/frontend-defaults/src/createApp.test.tsx index a923a70f38..35a69654e9 100644 --- a/packages/frontend-defaults/src/createApp.test.tsx +++ b/packages/frontend-defaults/src/createApp.test.tsx @@ -368,9 +368,9 @@ describe('createApp', () => { components [ - - - + + + ] diff --git a/packages/frontend-plugin-api/src/blueprints/SwappableComponentBlueprint.ts b/packages/frontend-plugin-api/src/blueprints/SwappableComponentBlueprint.ts index 931d15f3ab..b72d14d87f 100644 --- a/packages/frontend-plugin-api/src/blueprints/SwappableComponentBlueprint.ts +++ b/packages/frontend-plugin-api/src/blueprints/SwappableComponentBlueprint.ts @@ -25,7 +25,7 @@ export const componentDataRef = createExtensionDataRef<{ loader: | (() => (props: {}) => JSX.Element | null) | (() => Promise<(props: {}) => JSX.Element | null>); -}>().with({ id: 'core.component.component' }); +}>().with({ id: 'core.swappableComponent' }); /** * Blueprint for creating swappable components from a SwappableComponentRef and a loader diff --git a/yarn.lock b/yarn.lock index f329407da3..b897f6e81f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4367,6 +4367,7 @@ __metadata: "@backstage/errors": "workspace:^" "@backstage/frontend-defaults": "workspace:^" "@backstage/frontend-plugin-api": "workspace:^" + "@backstage/frontend-test-utils": "workspace:^" "@backstage/plugin-app": "workspace:^" "@backstage/test-utils": "workspace:^" "@backstage/types": "workspace:^"