@@ -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",
|
||||
|
||||
@@ -368,9 +368,9 @@ describe('createApp', () => {
|
||||
</api:app/app-theme>
|
||||
<api:app/swappable-components out=[core.api.factory]>
|
||||
components [
|
||||
<component:app/core.components.progress out=[core.component.component] />
|
||||
<component:app/core.components.notFoundErrorPage out=[core.component.component] />
|
||||
<component:app/core.components.errorBoundary out=[core.component.component] />
|
||||
<component:app/core.components.progress out=[core.swappableComponent] />
|
||||
<component:app/core.components.notFoundErrorPage out=[core.swappableComponent] />
|
||||
<component:app/core.components.errorBoundary out=[core.swappableComponent] />
|
||||
]
|
||||
</api:app/swappable-components>
|
||||
<api:app/icons out=[core.api.factory] />
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:^"
|
||||
|
||||
Reference in New Issue
Block a user