@spotify/backstage-plugin-rbac 0.7.0 → 0.7.1

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,16 @@
1
1
  # @spotify/backstage-plugin-rbac
2
2
 
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Minor fixes and improvements
8
+ - Update to Backstage v1.31.1
9
+ - Added the `authorizedUsers` property to the config definition file
10
+ - Updated dependencies
11
+ - @spotify/backstage-plugin-core@0.8.1
12
+ - @spotify/backstage-plugin-rbac-common@0.6.1
13
+
3
14
  ## 0.7.0
4
15
 
5
16
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spotify/backstage-plugin-rbac__alpha",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
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,36 @@
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
+ namespace: undefined;
13
+ name: undefined;
14
+ config: {};
15
+ configInput: {};
16
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
17
+ inputs: {};
18
+ }>;
19
+ "page:rbac": _backstage_frontend_plugin_api.ExtensionDefinition<{
20
+ kind: "page";
21
+ namespace: undefined;
22
+ name: undefined;
23
+ config: {
24
+ path: string | undefined;
25
+ };
26
+ configInput: {
27
+ path?: string | undefined;
28
+ };
29
+ 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", {
30
+ optional: true;
31
+ }>;
32
+ inputs: {};
33
+ }>;
34
+ }>;
7
35
 
8
36
  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.1",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://backstage.spotify.com",
7
7
  "main": "./dist/index.esm.js",
@@ -42,22 +42,22 @@
42
42
  "a11y": "yarn dlx @lhci/cli@0.13.x --config ./.lighthouserc.js autorun"
43
43
  },
44
44
  "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",
45
+ "@backstage/catalog-model": "^1.7.0",
46
+ "@backstage/core-compat-api": "^0.3.0",
47
+ "@backstage/core-components": "^0.15.0",
48
+ "@backstage/core-plugin-api": "^1.9.4",
49
49
  "@backstage/errors": "^1.2.4",
50
- "@backstage/frontend-plugin-api": "^0.7.0",
51
- "@backstage/plugin-catalog-react": "^1.12.3",
50
+ "@backstage/frontend-plugin-api": "^0.8.0",
51
+ "@backstage/plugin-catalog-react": "^1.13.0",
52
52
  "@backstage/plugin-permission-common": "^0.8.1",
53
- "@backstage/plugin-permission-react": "^0.4.25",
54
- "@backstage/theme": "^0.5.6",
53
+ "@backstage/plugin-permission-react": "^0.4.26",
54
+ "@backstage/theme": "^0.5.7",
55
55
  "@backstage/types": "^1.1.1",
56
56
  "@material-ui/core": "^4.12.2",
57
57
  "@material-ui/icons": "^4.9.1",
58
58
  "@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",
59
+ "@spotify/backstage-plugin-core": "^0.8.1",
60
+ "@spotify/backstage-plugin-rbac-common": "^0.6.1",
61
61
  "ajv": "^8.11.2",
62
62
  "file-saver": "^2.0.5",
63
63
  "js-yaml": "^4.1.0",
@@ -76,14 +76,14 @@
76
76
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@backstage/cli": "^0.27.0",
80
- "@backstage/core-app-api": "^1.14.2",
81
- "@backstage/dev-utils": "^1.0.37",
79
+ "@backstage/cli": "^0.27.1",
80
+ "@backstage/core-app-api": "^1.15.0",
81
+ "@backstage/dev-utils": "^1.1.0",
82
82
  "@backstage/e2e-test-utils": "^0.1.1",
83
- "@backstage/frontend-test-utils": "^0.1.12",
84
- "@backstage/test-utils": "^1.5.10",
83
+ "@backstage/frontend-test-utils": "^0.2.0",
84
+ "@backstage/test-utils": "^1.6.0",
85
85
  "@playwright/test": "^1.32.3",
86
- "@sp4b-dev/test-utils": "^0.0.6",
86
+ "@sp4b-dev/test-utils": "^0.0.7",
87
87
  "@testing-library/jest-dom": "^6.0.0",
88
88
  "@testing-library/react": "^14.0.0",
89
89
  "@testing-library/user-event": "^14.0.0",