@spotify/backstage-plugin-rbac 0.7.0 → 0.7.2

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,25 @@
1
1
  # @spotify/backstage-plugin-rbac
2
2
 
3
+ ## 0.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Update to Backstage v1.32.0
8
+ - Updated dependencies
9
+ - @spotify/backstage-plugin-core@0.8.2
10
+ - @spotify/backstage-plugin-rbac-common@0.6.2
11
+
12
+ ## 0.7.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Minor fixes and improvements
17
+ - Update to Backstage v1.31.1
18
+ - Added the `authorizedUsers` property to the config definition file
19
+ - Updated dependencies
20
+ - @spotify/backstage-plugin-core@0.8.1
21
+ - @spotify/backstage-plugin-rbac-common@0.6.1
22
+
3
23
  ## 0.7.0
4
24
 
5
25
  ### Minor Changes
@@ -40,12 +60,6 @@
40
60
 
41
61
  - Aligned dependencies with Backstage package architecture expectations.
42
62
  - Updated backstage dependencies to `v1.26.0`
43
- - Updated dependencies
44
- - Updated dependencies
45
- - Updated dependencies
46
- - Updated dependencies
47
- - Updated dependencies
48
- - Updated dependencies
49
63
  - Updated dependencies
50
64
  - @spotify/backstage-plugin-core@0.7.1
51
65
  - @spotify/backstage-plugin-rbac-common@0.5.13
@@ -80,8 +94,6 @@
80
94
  - Upgraded Backstage to v1.22.0
81
95
  - Minor UI fixes and improvements.
82
96
  - Updated dependency `@types/node` to `^20.0.0`.
83
- - Updated dependencies
84
- - Updated dependencies
85
97
  - Updated dependencies
86
98
  - @spotify/backstage-plugin-rbac-common@0.5.10
87
99
  - @spotify/backstage-plugin-core@0.5.9
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spotify/backstage-plugin-rbac__alpha",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
package/config.d.ts CHANGED
@@ -11,6 +11,11 @@ export interface Config {
11
11
  permissionedPlugins?: string[];
12
12
 
13
13
  rbac?: {
14
+ /**
15
+ * A list of users and groups who are authorized to access the RBAC UI.
16
+ * @visibility backend
17
+ */
18
+ authorizedUsers: string[];
14
19
  /**
15
20
  * A list of features that are enabled in the RBAC UI.
16
21
  * @visibility frontend
@@ -1,2 +1,2 @@
1
- import{createApiExtension as i,createApiFactory as p,fetchApiRef as r,discoveryApiRef as c}from"@backstage/frontend-plugin-api";import{rbacApiRef as o,RBACApi as t}from"../api.esm.js";const A=i({factory:p({api:o,deps:{fetchApi:r,discoveryApi:c},factory:e=>new t(e)})});export{A as rbacApi};
1
+ import{ApiBlueprint as i,createApiFactory as r,fetchApiRef as e,discoveryApiRef as c}from"@backstage/frontend-plugin-api";import{rbacApiRef as o,RBACApi as t}from"../api.esm.js";const a=i.make({params:{factory:r({api:o,deps:{fetchApi:e,discoveryApi:c},factory:p=>new t(p)})}});export{a as rbacApi};
2
2
  //# sourceMappingURL=apis.esm.js.map
@@ -1,2 +1,2 @@
1
- import{convertLegacyRouteRef as e,compatWrapper as t}from"@backstage/core-compat-api";import{createPageExtension as r}from"@backstage/frontend-plugin-api";import a from"react";import{rootRouteRef as m}from"../routes.esm.js";const p=r({routeRef:e(m),defaultPath:"/rbac",loader:()=>import("../components/Root.esm.js").then(o=>t(a.createElement(o.RBACRoot,null)))});export{p as rbacPage};
1
+ import{convertLegacyRouteRef as e,compatWrapper as r}from"@backstage/core-compat-api";import{PageBlueprint as t}from"@backstage/frontend-plugin-api";import a from"react";import{rootRouteRef as m}from"../routes.esm.js";const p=t.make({params:{routeRef:e(m),defaultPath:"/rbac",loader:()=>import("../components/Root.esm.js").then(o=>r(a.createElement(o.RBACRoot,null)))}});export{p as rbacPage};
2
2
  //# sourceMappingURL=pages.esm.js.map
@@ -1,2 +1,2 @@
1
- import{createPlugin as r}from"@backstage/frontend-plugin-api";import{rbacApi as a}from"./apis.esm.js";import{rbacPage as i}from"./pages.esm.js";var o=r({id:"rbac",extensions:[i,a]});export{o as default};
1
+ import{createFrontendPlugin as r}from"@backstage/frontend-plugin-api";import{rbacApi as o}from"./apis.esm.js";import{rbacPage as a}from"./pages.esm.js";var e=r({id:"rbac",extensions:[a,o]});export{e as default};
2
2
  //# sourceMappingURL=plugin.esm.js.map
package/dist/alpha.d.ts CHANGED
@@ -1,8 +1,42 @@
1
+ /// <reference types="react" />
2
+ import * as React from 'react';
1
3
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
4
+ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
2
5
 
3
6
  /**
4
7
  * @public
5
8
  */
6
- declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{}, {}, {}>;
9
+ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{}, {}, {
10
+ "api:rbac": _backstage_frontend_plugin_api.ExtensionDefinition<{
11
+ kind: "api";
12
+ name: undefined;
13
+ config: {};
14
+ configInput: {};
15
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
16
+ inputs: {};
17
+ params: {
18
+ factory: _backstage_core_plugin_api.AnyApiFactory;
19
+ };
20
+ }>;
21
+ "page:rbac": _backstage_frontend_plugin_api.ExtensionDefinition<{
22
+ kind: "page";
23
+ name: undefined;
24
+ config: {
25
+ path: string | undefined;
26
+ };
27
+ configInput: {
28
+ path?: string | undefined;
29
+ };
30
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
31
+ optional: true;
32
+ }>;
33
+ inputs: {};
34
+ params: {
35
+ defaultPath: string;
36
+ loader: () => Promise<JSX.Element>;
37
+ routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
38
+ };
39
+ }>;
40
+ }>;
7
41
 
8
42
  export { _default as default };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
3
3
  import { SidebarItem } from '@backstage/core-components';
4
- import React from 'react';
4
+ import React__default from 'react';
5
5
 
6
6
  /**
7
7
  * @public
8
8
  */
9
- type PropsFor<T> = T extends React.ComponentType<infer P> ? P : never;
9
+ type PropsFor<T> = T extends React__default.ComponentType<infer P> ? P : never;
10
10
  /**
11
11
  * @public
12
12
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotify/backstage-plugin-rbac",
3
3
  "description": "Control access to actions and data in Backstage with ease.",
4
- "version": "0.7.0",
4
+ "version": "0.7.2",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://backstage.spotify.com",
7
7
  "main": "./dist/index.esm.js",
@@ -25,6 +25,7 @@
25
25
  "default": "./dist/index.esm.js"
26
26
  },
27
27
  "./alpha": {
28
+ "backstage": "@backstage/FrontendPlugin",
28
29
  "import": "./dist/alpha.esm.js",
29
30
  "types": "./dist/alpha.d.ts",
30
31
  "default": "./dist/alpha.esm.js"
@@ -42,22 +43,22 @@
42
43
  "a11y": "yarn dlx @lhci/cli@0.13.x --config ./.lighthouserc.js autorun"
43
44
  },
44
45
  "dependencies": {
45
- "@backstage/catalog-model": "^1.6.0",
46
- "@backstage/core-compat-api": "^0.2.8",
47
- "@backstage/core-components": "^0.14.10",
48
- "@backstage/core-plugin-api": "^1.9.3",
46
+ "@backstage/catalog-model": "^1.7.0",
47
+ "@backstage/core-compat-api": "^0.3.1",
48
+ "@backstage/core-components": "^0.15.1",
49
+ "@backstage/core-plugin-api": "^1.10.0",
49
50
  "@backstage/errors": "^1.2.4",
50
- "@backstage/frontend-plugin-api": "^0.7.0",
51
- "@backstage/plugin-catalog-react": "^1.12.3",
51
+ "@backstage/frontend-plugin-api": "^0.9.0",
52
+ "@backstage/plugin-catalog-react": "^1.14.0",
52
53
  "@backstage/plugin-permission-common": "^0.8.1",
53
- "@backstage/plugin-permission-react": "^0.4.25",
54
- "@backstage/theme": "^0.5.6",
54
+ "@backstage/plugin-permission-react": "^0.4.27",
55
+ "@backstage/theme": "^0.6.0",
55
56
  "@backstage/types": "^1.1.1",
56
57
  "@material-ui/core": "^4.12.2",
57
58
  "@material-ui/icons": "^4.9.1",
58
59
  "@material-ui/lab": "4.0.0-alpha.61",
59
- "@spotify/backstage-plugin-core": "^0.8.0",
60
- "@spotify/backstage-plugin-rbac-common": "^0.6.0",
60
+ "@spotify/backstage-plugin-core": "^0.8.2",
61
+ "@spotify/backstage-plugin-rbac-common": "^0.6.2",
61
62
  "ajv": "^8.11.2",
62
63
  "file-saver": "^2.0.5",
63
64
  "js-yaml": "^4.1.0",
@@ -76,14 +77,14 @@
76
77
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
77
78
  },
78
79
  "devDependencies": {
79
- "@backstage/cli": "^0.27.0",
80
- "@backstage/core-app-api": "^1.14.2",
81
- "@backstage/dev-utils": "^1.0.37",
80
+ "@backstage/cli": "^0.28.0",
81
+ "@backstage/core-app-api": "^1.15.1",
82
+ "@backstage/dev-utils": "^1.1.2",
82
83
  "@backstage/e2e-test-utils": "^0.1.1",
83
- "@backstage/frontend-test-utils": "^0.1.12",
84
- "@backstage/test-utils": "^1.5.10",
84
+ "@backstage/frontend-test-utils": "^0.2.1",
85
+ "@backstage/test-utils": "^1.7.0",
85
86
  "@playwright/test": "^1.32.3",
86
- "@sp4b-dev/test-utils": "^0.0.6",
87
+ "@sp4b-dev/test-utils": "^0.0.8",
87
88
  "@testing-library/jest-dom": "^6.0.0",
88
89
  "@testing-library/react": "^14.0.0",
89
90
  "@testing-library/user-event": "^14.0.0",