@axinom/mosaic-id-link 0.5.0 → 0.5.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 +9 -0
- package/dist/components/EnsurePermission/EnsurePermission.d.ts +0 -7
- package/dist/components/EnsurePermission/EnsurePermission.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +52 -31
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +51 -31
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/EnsurePermission/EnsurePermission.spec.d.ts +0 -2
- package/dist/components/EnsurePermission/EnsurePermission.spec.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
### [0.5.1](https://dev.azure.com/axinom/CMS/_git/Navy/branchCompare?baseVersion=GT@axinom/mosaic-id-link@0.5.0&targetVersion=GT@axinom/mosaic-id-link@0.5.1) (2022-10-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* proper dependency versions have been aligned ([0fac580](https://dev.azure.com/axinom/CMS/_git/Navy/commit/0fac580f977fee26dce1e99f4581d115da44ecd1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [0.5.0](https://dev.azure.com/axinom/CMS/_git/Navy/branchCompare?baseVersion=GT@axinom/mosaic-id-link@0.4.7&targetVersion=GT@axinom/mosaic-id-link@0.5.0) (2022-09-30)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -17,11 +17,4 @@ export declare const EnsurePermission: React.FC<EnsurePermissionProps>;
|
|
|
17
17
|
* @param requiredPermissions The required permissions.
|
|
18
18
|
*/
|
|
19
19
|
export declare const useHasPermissions: () => (requiredPermissions: UserPermissions) => Promise<boolean>;
|
|
20
|
-
/**
|
|
21
|
-
* Checks whether the `requiredPermissions` are satisfied by the `currentPermissions` or not.
|
|
22
|
-
* Access will be granted if the currentPermissions contain any of the requiredPermissions.
|
|
23
|
-
* @param requiredPermissions The required permissions.
|
|
24
|
-
* @param currentPermissions The current permissions of the user.
|
|
25
|
-
*/
|
|
26
|
-
export declare const checkPermissions: (requiredPermissions: UserPermissions, currentPermissions: UserPermissions) => boolean;
|
|
27
20
|
//# sourceMappingURL=EnsurePermission.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnsurePermission.d.ts","sourceRoot":"","sources":["../../../src/components/EnsurePermission/EnsurePermission.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"EnsurePermission.d.ts","sourceRoot":"","sources":["../../../src/components/EnsurePermission/EnsurePermission.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,oBAAY,eAAe,GAAG,SAAS,CAAC,aAAa,CAAC,CAAC;AAEvD,MAAM,WAAW,qBAAqB;IACpC,gCAAgC;IAChC,WAAW,EAAE,eAAe,CAAC;IAC7B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAuB5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,8BACP,eAAe,KACjC,QAAQ,OAAO,CAanB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from '@axinom/mosaic-id-utils';
|
|
2
|
-
export { ConfigStatusResponseCode, IdentityProvider, LogoutResponseCode, TokenResponseCode, } from '@axinom/mosaic-id-utils';
|
|
2
|
+
export { ConfigStatusResponseCode, IdentityProvider, LogoutResponseCode, requiredPermissionsExists, TokenResponseCode, } from '@axinom/mosaic-id-utils';
|
|
3
3
|
export { EnsureAuthentication } from './components/EnsureAuthentication/EnsureAuthentication';
|
|
4
4
|
export * from './components/EnsurePermission/EnsurePermission';
|
|
5
5
|
export * from './components/IdentityServiceProvider/IdentityServiceProvider';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8DAA8D,CAAC;AAC7E,cAAc,+CAA+C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8DAA8D,CAAC;AAC7E,cAAc,+CAA+C,CAAC"}
|