@axinom/mosaic-id-link 0.8.1 → 0.8.2
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/dist/IdentityServiceClient/IdentityServiceClient.d.ts +2 -2
- package/dist/IdentityServiceClient/IdentityServiceClient.d.ts.map +1 -1
- package/dist/components/EnsurePermission/EnsurePermission.d.ts +1 -1
- package/dist/components/EnsurePermission/EnsurePermission.d.ts.map +1 -1
- package/dist/index.es.js +3328 -204
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3360 -219
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/components/EnsureAuthentication/EnsureAuthentication.spec.tsx +5 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigStatusResponseCode, IdentityProvider, IdentityProviderInfo, IdentityServiceConfig, TokenResponse } from '@axinom/mosaic-id-utils';
|
|
2
|
-
export
|
|
2
|
+
export type IdServiceConfiguration = ({
|
|
3
3
|
status: ConfigStatusResponseCode.SUCCESS;
|
|
4
4
|
providers: IdentityProviderInfo[];
|
|
5
5
|
} | {
|
|
@@ -16,7 +16,7 @@ export interface IdentityServiceClient {
|
|
|
16
16
|
addTokenChangedHandler: (callback: TokenChangedCallback) => void;
|
|
17
17
|
removeTokenChangedHandler: (callback: TokenChangedCallback) => void;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type TokenChangedCallback = (token: TokenResponse | null) => void;
|
|
20
20
|
/**
|
|
21
21
|
* Creates a configuration service client. For performance reasons there should only be a single client instance created by an application
|
|
22
22
|
* @param config The configuration values for the identity service that should be used.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityServiceClient.d.ts","sourceRoot":"","sources":["../../src/IdentityServiceClient/IdentityServiceClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EACxB,gBAAgB,EAEhB,oBAAoB,EACpB,qBAAqB,EAGrB,aAAa,EACd,MAAM,yBAAyB,CAAC;AAEjC,
|
|
1
|
+
{"version":3,"file":"IdentityServiceClient.d.ts","sourceRoot":"","sources":["../../src/IdentityServiceClient/IdentityServiceClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EACxB,gBAAgB,EAEhB,oBAAoB,EACpB,qBAAqB,EAGrB,aAAa,EACd,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,sBAAsB,GAAG,CACjC;IACE,MAAM,EAAE,wBAAwB,CAAC,OAAO,CAAC;IACzC,SAAS,EAAE,oBAAoB,EAAE,CAAC;CACnC,GACD;IACE,MAAM,EACF,wBAAwB,CAAC,iBAAiB,GAC1C,wBAAwB,CAAC,sBAAsB,GAC/C,wBAAwB,CAAC,oBAAoB,GAC7C,wBAAwB,CAAC,KAAK,CAAC;CACpC,CACJ,GAAG;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACxD,QAAQ,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC,UAAU,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,aAAa,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IACtE,sBAAsB,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACjE,yBAAyB,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;CACrE;AAED,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,2BAA2B,WAC9B,qBAAqB,KAC5B,qBAgMF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserToken } from '@axinom/mosaic-id-utils';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type UserPermissions = UserToken['permissions'];
|
|
4
4
|
export interface EnsurePermissionProps {
|
|
5
5
|
/** The required permissions. */
|
|
6
6
|
permissions: UserPermissions;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,MAAM,MAAM,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"}
|