@spotify/backstage-plugin-rbac 0.7.9 → 0.7.10

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,15 @@
1
1
  # @spotify/backstage-plugin-rbac
2
2
 
3
+ ## 0.7.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependency `backstage` to `1.42.0`.
8
+ - Updated dependencies
9
+ - Updated dependencies
10
+ - @spotify/backstage-plugin-core@0.8.10
11
+ - @spotify/backstage-plugin-rbac-common@0.6.9
12
+
3
13
  ## 0.7.9
4
14
 
5
15
  ### Patch Changes
@@ -1,2 +1,2 @@
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};
1
+ import{ApiBlueprint as e,fetchApiRef as r,discoveryApiRef as o}from"@backstage/frontend-plugin-api";import{rbacApiRef as A,RBACApi as c}from"../api.esm.js";const f=e.make({params:p=>p({api:A,deps:{fetchApi:r,discoveryApi:o},factory:i=>new c(i)})});export{f as rbacApi};
2
2
  //# sourceMappingURL=apis.esm.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import{convertLegacyRouteRef as t,compatWrapper as e}from"@backstage/core-compat-api";import{PageBlueprint as a}from"@backstage/frontend-plugin-api";import{rootRouteRef as m}from"../routes.esm.js";const p=a.make({params:{routeRef:t(m),defaultPath:"/rbac",loader:()=>import("../components/Root.esm.js").then(o=>e(r(o.RBACRoot,{})))}});export{p as rbacPage};
1
+ import{jsx as r}from"react/jsx-runtime";import{convertLegacyRouteRef as t,compatWrapper as e}from"@backstage/core-compat-api";import{PageBlueprint as a}from"@backstage/frontend-plugin-api";import{rootRouteRef as m}from"../routes.esm.js";const p=a.make({params:{routeRef:t(m),path:"/rbac",loader:()=>import("../components/Root.esm.js").then(o=>e(r(o.RBACRoot,{})))}});export{p as rbacPage};
2
2
  //# sourceMappingURL=pages.esm.js.map
@@ -1,2 +1,2 @@
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};
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({pluginId:"rbac",extensions:[a,o]});export{e as default};
2
2
  //# sourceMappingURL=plugin.esm.js.map
package/dist/alpha.d.ts CHANGED
@@ -5,19 +5,17 @@ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
5
5
  /**
6
6
  * @public
7
7
  */
8
- declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{}, {}, {
9
- [x: `api:${string}`]: _backstage_frontend_plugin_api.ExtensionDefinition<{
8
+ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{}, {}, {
9
+ "api:rbac": _backstage_frontend_plugin_api.ExtensionDefinition<{
10
10
  kind: "api";
11
11
  name: undefined;
12
12
  config: {};
13
13
  configInput: {};
14
- output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
14
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
15
15
  inputs: {};
16
- params: {
17
- factory: _backstage_core_plugin_api.AnyApiFactory;
18
- };
16
+ params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
19
17
  }>;
20
- [x: `page:${string}`]: _backstage_frontend_plugin_api.ExtensionDefinition<{
18
+ "page:rbac": _backstage_frontend_plugin_api.ExtensionDefinition<{
21
19
  kind: "page";
22
20
  name: undefined;
23
21
  config: {
@@ -26,12 +24,13 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{}, {}, {
26
24
  configInput: {
27
25
  path?: string | undefined;
28
26
  };
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", {
27
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
30
28
  optional: true;
31
29
  }>;
32
30
  inputs: {};
33
31
  params: {
34
- defaultPath: string;
32
+ defaultPath?: [Error: `Use the 'path' param instead`];
33
+ path: string;
35
34
  loader: () => Promise<JSX.Element>;
36
35
  routeRef?: _backstage_frontend_plugin_api.RouteRef;
37
36
  };
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.9",
4
+ "version": "0.7.10",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://backstage.spotify.com",
7
7
  "main": "./dist/index.esm.js",
@@ -57,21 +57,21 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@backstage/catalog-model": "^1.7.5",
60
- "@backstage/core-compat-api": "^0.4.4",
61
- "@backstage/core-components": "^0.17.4",
60
+ "@backstage/core-compat-api": "^0.5.0",
61
+ "@backstage/core-components": "^0.17.5",
62
62
  "@backstage/core-plugin-api": "^1.10.9",
63
63
  "@backstage/errors": "^1.2.7",
64
- "@backstage/frontend-plugin-api": "^0.10.4",
65
- "@backstage/plugin-catalog-react": "^1.19.1",
64
+ "@backstage/frontend-plugin-api": "^0.11.0",
65
+ "@backstage/plugin-catalog-react": "^1.20.0",
66
66
  "@backstage/plugin-permission-common": "^0.9.1",
67
67
  "@backstage/plugin-permission-react": "^0.4.36",
68
- "@backstage/theme": "^0.6.7",
68
+ "@backstage/theme": "^0.6.8",
69
69
  "@backstage/types": "^1.2.1",
70
70
  "@material-ui/core": "^4.12.2",
71
71
  "@material-ui/icons": "^4.9.1",
72
72
  "@material-ui/lab": "4.0.0-alpha.61",
73
- "@spotify/backstage-plugin-core": "^0.8.9",
74
- "@spotify/backstage-plugin-rbac-common": "^0.6.8",
73
+ "@spotify/backstage-plugin-core": "^0.8.10",
74
+ "@spotify/backstage-plugin-rbac-common": "^0.6.9",
75
75
  "ajv": "^8.11.2",
76
76
  "file-saver": "^2.0.5",
77
77
  "js-yaml": "^4.1.0",
@@ -90,12 +90,12 @@
90
90
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@backstage/cli": "^0.33.1",
93
+ "@backstage/cli": "^0.34.0",
94
94
  "@backstage/core-app-api": "^1.18.0",
95
- "@backstage/dev-utils": "^1.1.12",
95
+ "@backstage/dev-utils": "^1.1.13",
96
96
  "@backstage/e2e-test-utils": "^0.1.1",
97
- "@backstage/frontend-test-utils": "^0.3.4",
98
- "@backstage/test-utils": "^1.7.10",
97
+ "@backstage/frontend-test-utils": "^0.3.5",
98
+ "@backstage/test-utils": "^1.7.11",
99
99
  "@playwright/test": "^1.32.3",
100
100
  "@sp4b-dev/test-utils": "^0.0.13",
101
101
  "@testing-library/jest-dom": "^6.0.0",