@backstage/core-app-api 1.0.5 → 1.0.6-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,14 @@
1
1
  # @backstage/core-app-api
2
2
 
3
+ ## 1.0.6-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 744fea158b: Added `getSystemIcons()` function to the `AppContext` available through `useApp` that will pull a list of all the icons that have been registered in the App.
8
+ - bf5e9030eb: Updated dependency `msw` to `^0.45.0`.
9
+ - Updated dependencies
10
+ - @backstage/core-plugin-api@1.0.6-next.0
11
+
3
12
  ## 1.0.5
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -778,6 +778,10 @@ declare type AppContext = {
778
778
  * Get a common or custom icon for this app.
779
779
  */
780
780
  getSystemIcon(key: string): IconComponent | undefined;
781
+ /**
782
+ * Get a list of common and custom icons for this app.
783
+ */
784
+ getSystemIcons(): Record<string, IconComponent>;
781
785
  /**
782
786
  * Get the components registered for various purposes in the app.
783
787
  */
package/dist/index.esm.js CHANGED
@@ -2406,6 +2406,9 @@ class AppContextImpl {
2406
2406
  getSystemIcon(key) {
2407
2407
  return this.app.getSystemIcon(key);
2408
2408
  }
2409
+ getSystemIcons() {
2410
+ return this.app.getSystemIcons();
2411
+ }
2409
2412
  getComponents() {
2410
2413
  return this.app.getComponents();
2411
2414
  }
@@ -2430,6 +2433,9 @@ class AppManager {
2430
2433
  getSystemIcon(key) {
2431
2434
  return this.icons[key];
2432
2435
  }
2436
+ getSystemIcons() {
2437
+ return this.icons;
2438
+ }
2433
2439
  getComponents() {
2434
2440
  return this.components;
2435
2441
  }