@backstage/frontend-app-api 0.2.0-next.2 → 0.2.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 +34 -0
- package/config.d.ts +8 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.esm.js +728 -91
- package/dist/index.esm.js.map +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @backstage/frontend-app-api
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4461d87d5a: Removed support for the new `useRouteRef`.
|
|
8
|
+
- 9d03dfe5e3: The `createApp` config option has been replaced by a new `configLoader` option. There is now also a `pluginLoader` option that can be used to dynamically load plugins into the app.
|
|
9
|
+
- d7c5d80c57: The hidden `'root'` extension has been removed and has instead been made an input of the `'core'` extension. The checks for rejecting configuration of the `'root'` extension to rejects configuration of the `'core'` extension instead.
|
|
10
|
+
- d920b8c343: Added support for installing `ExtensionOverrides` via `createApp` options. As part of this change the `plugins` option has been renamed to `features`, and the `pluginLoader` has been renamed to `featureLoader`.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 322bbcae24: Internal update for removal of experimental plugin configuration API.
|
|
15
|
+
- f78ac58f88: Filters for discovered packages are now also applied at runtime. This makes it possible to disable packages through the `app.experimental.packages` config at runtime.
|
|
16
|
+
- 68ffb9e67d: The app will now reject any extensions that attach to nonexistent inputs.
|
|
17
|
+
- 5072824817: Implement `toString()` and `toJSON()` for extension instances.
|
|
18
|
+
- 1e60a9c3a5: Fixed an issue preventing the routing system to match subroutes
|
|
19
|
+
- 52366db5b3: Make themes configurable through extensions, and switched default themes to use extensions instead.
|
|
20
|
+
- 2ecd33618a: Added the `bindRoutes` option to `createApp`.
|
|
21
|
+
- e5a2956dd2: Register default api implementations when creating declarative integrated apps.
|
|
22
|
+
- 9a1fce352e: Updated dependency `@testing-library/jest-dom` to `^6.0.0`.
|
|
23
|
+
- 06432f900c: Updates for `at` -> `attachTo` refactor.
|
|
24
|
+
- 1718ec75b7: Added support for the existing routing system.
|
|
25
|
+
- 66d51a4827: Prevents root extension override and duplicated plugin extensions.
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- @backstage/frontend-plugin-api@0.2.0
|
|
28
|
+
- @backstage/core-app-api@1.11.0
|
|
29
|
+
- @backstage/core-plugin-api@1.7.0
|
|
30
|
+
- @backstage/core-components@0.13.6
|
|
31
|
+
- @backstage/plugin-graphiql@0.2.55
|
|
32
|
+
- @backstage/version-bridge@1.0.6
|
|
33
|
+
- @backstage/theme@0.4.3
|
|
34
|
+
- @backstage/config@1.1.1
|
|
35
|
+
- @backstage/types@1.1.1
|
|
36
|
+
|
|
3
37
|
## 0.2.0-next.2
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
package/config.d.ts
CHANGED
|
@@ -16,6 +16,14 @@
|
|
|
16
16
|
|
|
17
17
|
export interface Config {
|
|
18
18
|
app?: {
|
|
19
|
+
experimental?: {
|
|
20
|
+
/**
|
|
21
|
+
* @visibility frontend
|
|
22
|
+
* @deepVisibility frontend
|
|
23
|
+
*/
|
|
24
|
+
packages?: 'all' | { include?: string[]; exclude?: string[] };
|
|
25
|
+
};
|
|
26
|
+
|
|
19
27
|
/**
|
|
20
28
|
* @deepVisibility frontend
|
|
21
29
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { Config } from '@backstage/config';
|
|
3
|
-
import { ExtensionDataRef, BackstagePlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { ExtensionDataRef, BackstagePlugin, ExtensionOverrides } from '@backstage/frontend-plugin-api';
|
|
4
4
|
import { ConfigApi } from '@backstage/core-plugin-api';
|
|
5
|
+
import { AppRouteBinder } from '@backstage/core-app-api';
|
|
5
6
|
|
|
6
7
|
/** @public */
|
|
7
8
|
interface ExtensionTreeNode {
|
|
@@ -21,11 +22,14 @@ declare function createExtensionTree(options: {
|
|
|
21
22
|
}): ExtensionTree;
|
|
22
23
|
/** @public */
|
|
23
24
|
declare function createApp(options: {
|
|
24
|
-
|
|
25
|
+
features?: (BackstagePlugin | ExtensionOverrides)[];
|
|
25
26
|
configLoader?: () => Promise<ConfigApi>;
|
|
26
|
-
|
|
27
|
+
bindRoutes?(context: {
|
|
28
|
+
bind: AppRouteBinder;
|
|
29
|
+
}): void;
|
|
30
|
+
featureLoader?: (ctx: {
|
|
27
31
|
config: ConfigApi;
|
|
28
|
-
}) => Promise<BackstagePlugin[]>;
|
|
32
|
+
}) => Promise<(BackstagePlugin | ExtensionOverrides)[]>;
|
|
29
33
|
}): {
|
|
30
34
|
createRoot(): JSX.Element;
|
|
31
35
|
};
|