@backstage/core-app-api 1.12.6-next.0 → 1.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @backstage/core-app-api
|
|
2
2
|
|
|
3
|
+
## 1.12.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 35fbe09: Added support for configuration of route bindings through static configuration, and default targets for external route refs.
|
|
8
|
+
|
|
9
|
+
In addition to configuring route bindings through code, it is now also possible to configure route bindings under the `app.routes.bindings` key, for example:
|
|
10
|
+
|
|
11
|
+
```yaml
|
|
12
|
+
app:
|
|
13
|
+
routes:
|
|
14
|
+
bindings:
|
|
15
|
+
catalog.createComponent: catalog-import.importPage
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Each key in the route binding object is of the form `<plugin-id>.<externalRouteName>`, where the route name is key used in the `externalRoutes` object passed to `createPlugin`. The value is of the same form, but with the name taken from the plugin `routes` option instead.
|
|
19
|
+
|
|
20
|
+
The equivalent of the above configuration in code is the following:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
const app = createApp({
|
|
24
|
+
// ...
|
|
25
|
+
bindRoutes({ bind }) {
|
|
26
|
+
bind(catalogPlugin.externalRoutes, {
|
|
27
|
+
createComponent: catalogImportPlugin.routes.importPage,
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
- @backstage/core-plugin-api@1.9.3
|
|
35
|
+
- @backstage/config@1.2.0
|
|
36
|
+
- @backstage/types@1.1.1
|
|
37
|
+
- @backstage/version-bridge@1.0.8
|
|
38
|
+
|
|
3
39
|
## 1.12.6-next.0
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/core-app-api",
|
|
3
3
|
"description": "Core app API used by Backstage apps",
|
|
4
|
-
"version": "1.12.6
|
|
4
|
+
"version": "1.12.6",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@backstage/config": "^1.2.0",
|
|
43
|
-
"@backstage/core-plugin-api": "^1.9.3
|
|
43
|
+
"@backstage/core-plugin-api": "^1.9.3",
|
|
44
44
|
"@backstage/types": "^1.1.1",
|
|
45
45
|
"@backstage/version-bridge": "^1.0.8",
|
|
46
46
|
"@types/prop-types": "^15.7.3",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@backstage/cli": "^0.26.7
|
|
63
|
-
"@backstage/test-utils": "^1.5.6
|
|
62
|
+
"@backstage/cli": "^0.26.7",
|
|
63
|
+
"@backstage/test-utils": "^1.5.6",
|
|
64
64
|
"@testing-library/dom": "^10.0.0",
|
|
65
65
|
"@testing-library/jest-dom": "^6.0.0",
|
|
66
66
|
"@testing-library/react": "^15.0.0",
|