@backstage-community/plugin-rbac 1.33.2 → 1.33.3

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
  ### Dependencies
2
2
 
3
+ ## 1.33.3
4
+
5
+ ### Patch Changes
6
+
7
+ - aa02f04: Updated dependency `@playwright/test` to `1.49.0`.
8
+ - 4b3653a: Clean up api report warnings and remove unnecessary files
9
+ - Updated dependencies [4b3653a]
10
+ - @backstage-community/plugin-rbac-common@1.12.3
11
+
3
12
  ## 1.33.2
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -4,14 +4,23 @@ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
4
4
  export { default as AdminPanelSettingsOutlinedIcon } from '@mui/icons-material/AdminPanelSettingsOutlined';
5
5
  export { default as RbacIcon } from '@mui/icons-material/VpnKeyOutlined';
6
6
 
7
+ /**
8
+ * @public
9
+ */
7
10
  declare const rbacPlugin: _backstage_core_plugin_api.BackstagePlugin<{
8
11
  root: _backstage_core_plugin_api.RouteRef<undefined>;
9
12
  role: _backstage_core_plugin_api.SubRouteRef<_backstage_core_plugin_api.PathParams<"/roles/:roleKind/:roleNamespace/:roleName">>;
10
13
  createRole: _backstage_core_plugin_api.SubRouteRef<undefined>;
11
14
  }, {}, {}>;
15
+ /**
16
+ * @public
17
+ */
12
18
  declare const RbacPage: ({ useHeader }: {
13
19
  useHeader?: boolean | undefined;
14
20
  }) => react.JSX.Element;
21
+ /**
22
+ * @public
23
+ */
15
24
  declare const Administration: () => react.JSX.Element | null;
16
25
 
17
26
  export { Administration, RbacPage, rbacPlugin };
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n configApiRef,\n createApiFactory,\n createComponentExtension,\n createPlugin,\n createRoutableExtension,\n identityApiRef,\n} from '@backstage/core-plugin-api';\n\nimport {\n LicensedUsersAPIClient,\n licensedUsersApiRef,\n} from './api/LicensedUsersClient';\nimport { rbacApiRef, RBACBackendClient } from './api/RBACBackendClient';\nimport { createRoleRouteRef, roleRouteRef, rootRouteRef } from './routes';\n\nexport const rbacPlugin = createPlugin({\n id: 'rbac',\n routes: {\n root: rootRouteRef,\n role: roleRouteRef,\n createRole: createRoleRouteRef,\n },\n apis: [\n createApiFactory({\n api: rbacApiRef,\n deps: {\n configApi: configApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ configApi, identityApi }) =>\n new RBACBackendClient({ configApi, identityApi }),\n }),\n createApiFactory({\n api: licensedUsersApiRef,\n deps: {\n configApi: configApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ configApi, identityApi }) =>\n new LicensedUsersAPIClient({ configApi, identityApi }),\n }),\n ],\n});\n\nexport const RbacPage = rbacPlugin.provide(\n createRoutableExtension({\n name: 'RbacPage',\n component: () => import('./components').then(m => m.Router),\n mountPoint: rootRouteRef,\n }),\n);\n\nexport const Administration = rbacPlugin.provide(\n createComponentExtension({\n name: 'Administration',\n component: {\n lazy: () => import('./components').then(m => m.Administration),\n },\n }),\n);\n"],"names":[],"mappings":";;;;;AA+BO,MAAM,aAAa,YAAa,CAAA;AAAA,EACrC,EAAI,EAAA,MAAA;AAAA,EACJ,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,IACN,UAAY,EAAA;AAAA,GACd;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,UAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,SAAW,EAAA,YAAA;AAAA,QACX,WAAa,EAAA;AAAA,OACf;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,SAAW,EAAA,WAAA,EACrB,KAAA,IAAI,iBAAkB,CAAA,EAAE,SAAW,EAAA,WAAA,EAAa;AAAA,KACnD,CAAA;AAAA,IACD,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,mBAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,SAAW,EAAA,YAAA;AAAA,QACX,WAAa,EAAA;AAAA,OACf;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,SAAW,EAAA,WAAA,EACrB,KAAA,IAAI,sBAAuB,CAAA,EAAE,SAAW,EAAA,WAAA,EAAa;AAAA,KACxD;AAAA;AAEL,CAAC;AAEM,MAAM,WAAW,UAAW,CAAA,OAAA;AAAA,EACjC,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,UAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,2BAAc,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,MAAM,CAAA;AAAA,IAC1D,UAAY,EAAA;AAAA,GACb;AACH;AAEO,MAAM,iBAAiB,UAAW,CAAA,OAAA;AAAA,EACvC,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,gBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAA,EAAM,MAAM,OAAO,2BAAc,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,cAAc;AAAA;AAC/D,GACD;AACH;;;;"}
1
+ {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n configApiRef,\n createApiFactory,\n createComponentExtension,\n createPlugin,\n createRoutableExtension,\n identityApiRef,\n} from '@backstage/core-plugin-api';\n\nimport {\n LicensedUsersAPIClient,\n licensedUsersApiRef,\n} from './api/LicensedUsersClient';\nimport { rbacApiRef, RBACBackendClient } from './api/RBACBackendClient';\nimport { createRoleRouteRef, roleRouteRef, rootRouteRef } from './routes';\n\n/**\n * @public\n */\nexport const rbacPlugin = createPlugin({\n id: 'rbac',\n routes: {\n root: rootRouteRef,\n role: roleRouteRef,\n createRole: createRoleRouteRef,\n },\n apis: [\n createApiFactory({\n api: rbacApiRef,\n deps: {\n configApi: configApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ configApi, identityApi }) =>\n new RBACBackendClient({ configApi, identityApi }),\n }),\n createApiFactory({\n api: licensedUsersApiRef,\n deps: {\n configApi: configApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ configApi, identityApi }) =>\n new LicensedUsersAPIClient({ configApi, identityApi }),\n }),\n ],\n});\n\n/**\n * @public\n */\nexport const RbacPage = rbacPlugin.provide(\n createRoutableExtension({\n name: 'RbacPage',\n component: () => import('./components').then(m => m.Router),\n mountPoint: rootRouteRef,\n }),\n);\n\n/**\n * @public\n */\nexport const Administration = rbacPlugin.provide(\n createComponentExtension({\n name: 'Administration',\n component: {\n lazy: () => import('./components').then(m => m.Administration),\n },\n }),\n);\n"],"names":[],"mappings":";;;;;AAkCO,MAAM,aAAa,YAAa,CAAA;AAAA,EACrC,EAAI,EAAA,MAAA;AAAA,EACJ,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,IACN,UAAY,EAAA;AAAA,GACd;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,UAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,SAAW,EAAA,YAAA;AAAA,QACX,WAAa,EAAA;AAAA,OACf;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,SAAW,EAAA,WAAA,EACrB,KAAA,IAAI,iBAAkB,CAAA,EAAE,SAAW,EAAA,WAAA,EAAa;AAAA,KACnD,CAAA;AAAA,IACD,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,mBAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,SAAW,EAAA,YAAA;AAAA,QACX,WAAa,EAAA;AAAA,OACf;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,SAAW,EAAA,WAAA,EACrB,KAAA,IAAI,sBAAuB,CAAA,EAAE,SAAW,EAAA,WAAA,EAAa;AAAA,KACxD;AAAA;AAEL,CAAC;AAKM,MAAM,WAAW,UAAW,CAAA,OAAA;AAAA,EACjC,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,UAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,2BAAc,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,MAAM,CAAA;AAAA,IAC1D,UAAY,EAAA;AAAA,GACb;AACH;AAKO,MAAM,iBAAiB,UAAW,CAAA,OAAA;AAAA,EACvC,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,gBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAA,EAAM,MAAM,OAAO,2BAAc,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,cAAc;AAAA;AAC/D,GACD;AACH;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-rbac",
3
- "version": "1.33.2",
3
+ "version": "1.33.3",
4
4
  "main": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  "ui-test": "start-server-and-test start localhost:3000 'playwright test'"
37
37
  },
38
38
  "dependencies": {
39
- "@backstage-community/plugin-rbac-common": "^1.12.2",
39
+ "@backstage-community/plugin-rbac-common": "^1.12.3",
40
40
  "@backstage/catalog-model": "^1.7.0",
41
41
  "@backstage/core-components": "^0.15.1",
42
42
  "@backstage/core-plugin-api": "^1.10.0",
@@ -67,7 +67,7 @@
67
67
  "@backstage/core-app-api": "1.15.1",
68
68
  "@backstage/dev-utils": "1.1.2",
69
69
  "@backstage/test-utils": "1.7.0",
70
- "@playwright/test": "1.48.2",
70
+ "@playwright/test": "1.49.0",
71
71
  "@redhat-developer/red-hat-developer-hub-theme": "0.4.0",
72
72
  "@spotify/prettier-config": "^15.0.0",
73
73
  "@testing-library/dom": "^10.0.0",
@@ -106,5 +106,15 @@
106
106
  "@PatAKnight"
107
107
  ],
108
108
  "author": "Red Hat",
109
+ "prettier": "@spotify/prettier-config",
110
+ "lint-staged": {
111
+ "*.{js,jsx,ts,tsx,mjs,cjs}": [
112
+ "eslint --fix",
113
+ "prettier --write"
114
+ ],
115
+ "*.{json,md}": [
116
+ "prettier --write"
117
+ ]
118
+ },
109
119
  "module": "./dist/index.esm.js"
110
120
  }