@backstage/frontend-app-api 0.0.0 → 0.1.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,39 @@
1
1
  # @backstage/frontend-app-api
2
2
 
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 628ca7e458e4: Initial release
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @backstage/plugin-graphiql@0.2.54
13
+ - @backstage/frontend-plugin-api@0.1.0
14
+ - @backstage/core-components@0.13.5
15
+ - @backstage/config@1.1.0
16
+ - @backstage/core-app-api@1.10.0
17
+ - @backstage/core-plugin-api@1.6.0
18
+ - @backstage/types@1.1.1
19
+
20
+ ## 0.1.0-next.0
21
+
22
+ ### Minor Changes
23
+
24
+ - 628ca7e458e4: Initial release
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies
29
+ - @backstage/frontend-plugin-api@0.1.0-next.0
30
+ - @backstage/plugin-graphiql@0.2.54-next.3
31
+ - @backstage/config@1.1.0-next.2
32
+ - @backstage/core-app-api@1.10.0-next.3
33
+ - @backstage/core-components@0.13.5-next.3
34
+ - @backstage/core-plugin-api@1.6.0-next.3
35
+ - @backstage/types@1.1.1-next.0
36
+
3
37
  ## 0.0.1-next.1
4
38
 
5
39
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,11 +1,30 @@
1
- /// <reference types="react" />
2
- import { BackstagePlugin } from '@backstage/frontend-plugin-api';
1
+ import { JSX } from 'react';
2
+ import { Config } from '@backstage/config';
3
+ import { ExtensionDataRef, BackstagePlugin } from '@backstage/frontend-plugin-api';
4
+ import { ConfigApi } from '@backstage/core-plugin-api';
3
5
 
6
+ /** @public */
7
+ interface ExtensionTreeNode {
8
+ id: string;
9
+ getData<T>(ref: ExtensionDataRef<T>): T | undefined;
10
+ }
11
+ /** @public */
12
+ interface ExtensionTree {
13
+ getExtension(id: string): ExtensionTreeNode | undefined;
14
+ getExtensionAttachments(id: string, inputName: string): ExtensionTreeNode[];
15
+ getRootRoutes(): JSX.Element[];
16
+ getSidebarItems(): JSX.Element[];
17
+ }
18
+ /** @public */
19
+ declare function createExtensionTree(options: {
20
+ config: Config;
21
+ }): ExtensionTree;
4
22
  /** @public */
5
23
  declare function createApp(options: {
6
24
  plugins: BackstagePlugin[];
25
+ config?: ConfigApi;
7
26
  }): {
8
27
  createRoot(): JSX.Element;
9
28
  };
10
29
 
11
- export { createApp };
30
+ export { ExtensionTree, ExtensionTreeNode, createApp, createExtensionTree };