@backstage/frontend-app-api 0.4.1-next.2 → 0.6.0-next.0

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 CHANGED
@@ -1,5 +1,70 @@
1
1
  # @backstage/frontend-app-api
2
2
 
3
+ ## 0.6.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 86346c2: **BREAKING**: The `app.routes.bindings` app-config mapping has been simplified. You now only need to specify the plugin ID and route ID on both sides of the mapping.
8
+
9
+ Old form:
10
+
11
+ ```yaml
12
+ app:
13
+ routes:
14
+ bindings:
15
+ plugin.catalog.externalRoutes.viewTechDoc: plugin.techdocs.routes.docRoot
16
+ plugin.catalog.externalRoutes.createComponent: plugin.catalog-import.routes.importPage
17
+ ```
18
+
19
+ New form:
20
+
21
+ ```yaml
22
+ app:
23
+ routes:
24
+ bindings:
25
+ catalog.viewTechDoc: techdocs.docRoot
26
+ catalog.createComponent: catalog-import.importPage
27
+ ```
28
+
29
+ ### Patch Changes
30
+
31
+ - 42ebf27: Added `IconsApi` implementation and the ability to configure icons through the `icons` option for `createApp` and `createSpecializedApp`. This is not a long-term solution as icons should be installable via extensions instead. This is just a stop-gap to make sure there is feature parity with the existing frontend system.
32
+ - e0a4dd1: Improved the error message when data input/output shapes do not match
33
+ - Updated dependencies
34
+ - @backstage/frontend-plugin-api@0.5.1-next.0
35
+ - @backstage/core-components@0.13.10
36
+ - @backstage/config@1.1.1
37
+ - @backstage/core-app-api@1.11.3
38
+ - @backstage/core-plugin-api@1.8.2
39
+ - @backstage/errors@1.2.3
40
+ - @backstage/theme@0.5.0
41
+ - @backstage/types@1.1.1
42
+ - @backstage/version-bridge@1.0.7
43
+
44
+ ## 0.5.0
45
+
46
+ ### Minor Changes
47
+
48
+ - d4149bf: **BREAKING**: Renamed the `app/router` extension to `app/root`.
49
+ - 074dfe3: Attaching extensions to an input that does not exist is now a warning rather than an error.
50
+
51
+ ### Patch Changes
52
+
53
+ - 7d63b32: Accepts sub route refs on the new `createPlugin` routes map.
54
+ - 516fd3e: Updated README to reflect release status
55
+ - c97fa1c: Added `elements`, `wrappers`, and `router` inputs to `app/root`, that let you add things to the root of the React tree above the layout. You can use the `createAppRootElementExtension`, `createAppRootWrapperExtension`, and `createRouterExtension` extension creator, respectively, to conveniently create such extensions. These are all optional, and if you do not supply a router a default one will be used (`BrowserRouter` in regular runs, `MemoryRouter` in tests/CI).
56
+ - 5fe6600: add oauth dialog and alert display to the root elements
57
+ - Updated dependencies
58
+ - @backstage/frontend-plugin-api@0.5.0
59
+ - @backstage/core-components@0.13.10
60
+ - @backstage/core-plugin-api@1.8.2
61
+ - @backstage/config@1.1.1
62
+ - @backstage/core-app-api@1.11.3
63
+ - @backstage/errors@1.2.3
64
+ - @backstage/theme@0.5.0
65
+ - @backstage/types@1.1.1
66
+ - @backstage/version-bridge@1.0.7
67
+
3
68
  ## 0.4.1-next.2
4
69
 
5
70
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ExternalRouteRef, RouteRef, SubRouteRef, ExtensionDataRef, FrontendFeature } from '@backstage/frontend-plugin-api';
2
2
  import { JSX } from 'react';
3
3
  import { Config } from '@backstage/config';
4
- import { ConfigApi } from '@backstage/core-plugin-api';
4
+ import { ConfigApi, IconComponent } from '@backstage/core-plugin-api';
5
5
 
6
6
  /**
7
7
  * Extracts a union of the keys in a map whose value extends the given type
@@ -78,6 +78,9 @@ interface CreateAppFeatureLoader {
78
78
  }
79
79
  /** @public */
80
80
  declare function createApp(options?: {
81
+ icons?: {
82
+ [key in string]: IconComponent;
83
+ };
81
84
  features?: (FrontendFeature | CreateAppFeatureLoader)[];
82
85
  configLoader?: () => Promise<{
83
86
  config: ConfigApi;
@@ -95,6 +98,9 @@ declare function createApp(options?: {
95
98
  * @public
96
99
  */
97
100
  declare function createSpecializedApp(options?: {
101
+ icons?: {
102
+ [key in string]: IconComponent;
103
+ };
98
104
  features?: FrontendFeature[];
99
105
  config?: ConfigApi;
100
106
  bindRoutes?(context: {