@backstage/plugin-home 0.8.14-next.1 → 0.8.14

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,22 @@
1
1
  # @backstage/plugin-home
2
2
 
3
+ ## 0.8.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 2ac5d29: Allow customization of `VisitList` by adding optional `enrichVisit`, `transformPathname`, `canSave` functions to `VisitsStorageApi`, along with `VisitDisplayProvider` for colors, labels
8
+ - Updated dependencies
9
+ - @backstage/frontend-plugin-api@0.13.0
10
+ - @backstage/core-compat-api@0.5.4
11
+ - @backstage/plugin-catalog-react@1.21.3
12
+ - @backstage/core-components@0.18.3
13
+ - @backstage/core-plugin-api@1.12.0
14
+ - @backstage/core-app-api@1.19.2
15
+ - @backstage/config@1.3.6
16
+ - @backstage/catalog-model@1.7.6
17
+ - @backstage/plugin-home-react@0.1.32
18
+ - @backstage/catalog-client@1.12.1
19
+
3
20
  ## 0.8.14-next.1
4
21
 
5
22
  ### Patch Changes
package/README.md CHANGED
@@ -358,7 +358,7 @@ In order to validate the config you can use `backstage/cli config:check`
358
358
 
359
359
  ### Customizing the VisitList
360
360
 
361
- If you want more control over the recent and top visited lists, you can write your own functions to transform the pathnames and determine which visits to save. You can also enrich each visit with other fields and customize the chip colors/labels in the visit lists.
361
+ If you want more control over the recent and top visited lists, you can write your own functions to transform the path names and determine which visits to save. You can also enrich each visit with other fields and customize the chip colors/labels in the visit lists.
362
362
 
363
363
  #### Transform Pathname Function
364
364
 
@@ -490,7 +490,7 @@ export const apis: AnyApiFactory[] = [
490
490
 
491
491
  #### Custom Chip Colors and Labels
492
492
 
493
- To provide your own chip colors and/or labels for the recent and top visited lists, wrap the components in `VisitDisplayProvider` with `getChipColor` and `getChipLabel` functions. The colors provided will be used instead of the hard coded [colorVariants](https://github.com/backstage/backstage/blob/2da352043425bcab4c4422e4d2820c26c0a83382/packages/theme/src/base/pageTheme.ts#L46) provided via `@backstage/theme`.
493
+ To provide your own chip colors and/or labels for the recent and top visited lists, wrap the components in `VisitDisplayProvider` with `getChipColor` and `getChipLabel` functions. The colors provided will be used instead of the hard coded [`colorVariants`](https://github.com/backstage/backstage/blob/2da352043425bcab4c4422e4d2820c26c0a83382/packages/theme/src/base/pageTheme.ts#L46) provided via `@backstage/theme`.
494
494
 
495
495
  ```tsx
496
496
  import {
package/dist/alpha.d.ts CHANGED
@@ -42,7 +42,7 @@ declare const titleExtensionDataRef: _backstage_frontend_plugin_api.Configurable
42
42
  declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
43
43
  root: _backstage_frontend_plugin_api.RouteRef<undefined>;
44
44
  }, {}, {
45
- "api:home/visits": _backstage_frontend_plugin_api.ExtensionDefinition<{
45
+ "api:home/visits": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
46
46
  kind: "api";
47
47
  name: "visits";
48
48
  config: {};
@@ -51,7 +51,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
51
51
  inputs: {};
52
52
  params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
53
53
  }>;
54
- "app-root-element:home/visit-listener": _backstage_frontend_plugin_api.ExtensionDefinition<{
54
+ "app-root-element:home/visit-listener": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
55
55
  kind: "app-root-element";
56
56
  name: "visit-listener";
57
57
  config: {};
@@ -62,7 +62,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
62
62
  element: JSX.Element;
63
63
  };
64
64
  }>;
65
- "page:home": _backstage_frontend_plugin_api.ExtensionDefinition<{
65
+ "page:home": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
66
66
  config: {
67
67
  path: string | undefined;
68
68
  };
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-home";
2
- var version = "0.8.14-next.1";
2
+ var version = "0.8.14";
3
3
  var description = "A Backstage plugin that helps you build a home page";
4
4
  var backstage = {
5
5
  role: "frontend-plugin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-home",
3
- "version": "0.8.14-next.1",
3
+ "version": "0.8.14",
4
4
  "description": "A Backstage plugin that helps you build a home page",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -68,17 +68,17 @@
68
68
  "test": "backstage-cli package test"
69
69
  },
70
70
  "dependencies": {
71
- "@backstage/catalog-client": "1.12.1-next.0",
72
- "@backstage/catalog-model": "1.7.6-next.0",
73
- "@backstage/config": "1.3.6-next.0",
74
- "@backstage/core-app-api": "1.19.2-next.1",
75
- "@backstage/core-compat-api": "0.5.4-next.0",
76
- "@backstage/core-components": "0.18.3-next.2",
77
- "@backstage/core-plugin-api": "1.11.2-next.1",
78
- "@backstage/frontend-plugin-api": "0.12.2-next.2",
79
- "@backstage/plugin-catalog-react": "1.21.3-next.2",
80
- "@backstage/plugin-home-react": "0.1.32-next.0",
81
- "@backstage/theme": "0.7.0",
71
+ "@backstage/catalog-client": "^1.12.1",
72
+ "@backstage/catalog-model": "^1.7.6",
73
+ "@backstage/config": "^1.3.6",
74
+ "@backstage/core-app-api": "^1.19.2",
75
+ "@backstage/core-compat-api": "^0.5.4",
76
+ "@backstage/core-components": "^0.18.3",
77
+ "@backstage/core-plugin-api": "^1.12.0",
78
+ "@backstage/frontend-plugin-api": "^0.13.0",
79
+ "@backstage/plugin-catalog-react": "^1.21.3",
80
+ "@backstage/plugin-home-react": "^0.1.32",
81
+ "@backstage/theme": "^0.7.0",
82
82
  "@material-ui/core": "^4.12.2",
83
83
  "@material-ui/icons": "^4.9.1",
84
84
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -94,9 +94,9 @@
94
94
  "zod": "^3.22.4"
95
95
  },
96
96
  "devDependencies": {
97
- "@backstage/cli": "0.34.5-next.1",
98
- "@backstage/dev-utils": "1.1.17-next.1",
99
- "@backstage/test-utils": "1.7.13-next.0",
97
+ "@backstage/cli": "^0.34.5",
98
+ "@backstage/dev-utils": "^1.1.17",
99
+ "@backstage/test-utils": "^1.7.13",
100
100
  "@testing-library/dom": "^10.0.0",
101
101
  "@testing-library/jest-dom": "^6.0.0",
102
102
  "@testing-library/react": "^16.0.0",