@backstage/plugin-permission-react 0.4.12-next.0 → 0.4.12-next.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,14 @@
1
1
  # @backstage/plugin-permission-react
2
2
 
3
+ ## 0.4.12-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/core-plugin-api@1.5.1-next.1
9
+ - @backstage/config@1.0.7
10
+ - @backstage/plugin-permission-common@0.7.5-next.0
11
+
3
12
  ## 0.4.12-next.0
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ declare const PermissionedRoute: (props: {
29
29
  *
30
30
  * @public
31
31
  */
32
- declare type RequirePermissionProps = ({
32
+ type RequirePermissionProps = ({
33
33
  permission: Exclude<Permission, ResourcePermission>;
34
34
  resourceRef?: never;
35
35
  } | {
@@ -56,7 +56,7 @@ declare type RequirePermissionProps = ({
56
56
  declare function RequirePermission(props: RequirePermissionProps): JSX.Element | null;
57
57
 
58
58
  /** @public */
59
- declare type AsyncPermissionResult = {
59
+ type AsyncPermissionResult = {
60
60
  loading: boolean;
61
61
  allowed: boolean;
62
62
  error?: Error;
@@ -93,7 +93,7 @@ declare function usePermission(input: {
93
93
  * rather with the aforementioned utility components/hooks.
94
94
  * @public
95
95
  */
96
- declare type PermissionApi = {
96
+ type PermissionApi = {
97
97
  authorize(request: EvaluatePermissionRequest): Promise<EvaluatePermissionResponse>;
98
98
  };
99
99
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-permission-react",
3
- "version": "0.4.12-next.0",
3
+ "version": "0.4.12-next.1",
4
4
  "main": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@backstage/config": "^1.0.7",
35
- "@backstage/core-plugin-api": "^1.5.1-next.0",
35
+ "@backstage/core-plugin-api": "^1.5.1-next.1",
36
36
  "@backstage/plugin-permission-common": "^0.7.5-next.0",
37
37
  "@types/react": "^16.13.1 || ^17.0.0",
38
38
  "cross-fetch": "^3.1.5",
@@ -45,8 +45,8 @@
45
45
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@backstage/cli": "^0.22.6-next.1",
49
- "@backstage/test-utils": "^1.3.0-next.1",
48
+ "@backstage/cli": "^0.22.6-next.2",
49
+ "@backstage/test-utils": "^1.3.0-next.2",
50
50
  "@testing-library/jest-dom": "^5.10.1",
51
51
  "@testing-library/react": "^12.1.3"
52
52
  },