@cuby-ui/core 0.0.297 → 0.0.299
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/components/sidebar/sidebar-container/sidebar-container.component.d.ts +1 -0
- package/components/sidebar/sidebar.service.d.ts +4 -0
- package/esm2022/components/sidebar/sidebar-container/sidebar-container.component.mjs +4 -3
- package/esm2022/components/sidebar/sidebar.service.mjs +9 -1
- package/esm2022/services/auth.service.mjs +5 -5
- package/esm2022/services/token.service.mjs +46 -38
- package/esm2022/widgets/general-control-error-hint/general-control-error-hint.component.mjs +3 -3
- package/fesm2022/cuby-ui-core.mjs +62 -45
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/package.json +4 -4
- package/services/token.service.d.ts +8 -4
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuby-ui/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.299",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
7
7
|
"@angular/elements": ">=18.0.0",
|
|
8
8
|
"@angular/forms": ">=18.0.0",
|
|
9
|
-
"@cuby-ui/api": "^0.0.
|
|
10
|
-
"@cuby-ui/cdk": "^0.0.
|
|
11
|
-
"@cuby-ui/icons": "^0.0.
|
|
9
|
+
"@cuby-ui/api": "^0.0.299",
|
|
10
|
+
"@cuby-ui/cdk": "^0.0.299",
|
|
11
|
+
"@cuby-ui/icons": "^0.0.299",
|
|
12
12
|
"@editorjs/editorjs": "2.29.1",
|
|
13
13
|
"@editorjs/header": "^2.8.1",
|
|
14
14
|
"@editorjs/list": "^1.9.0",
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import { CuiTokenExchangeRequestBody } from '@cuby-ui/api';
|
|
1
|
+
import type { CuiTokenExchangeRequestBody } from '@cuby-ui/api';
|
|
2
2
|
import type { TokenResponse } from 'angular-oauth2-oidc';
|
|
3
3
|
import { OAuthService } from 'angular-oauth2-oidc';
|
|
4
|
+
import type { Observable } from 'rxjs';
|
|
4
5
|
declare abstract class CuiToken extends OAuthService {
|
|
5
6
|
private readonly tokenData;
|
|
7
|
+
getRefreshTokenExpiration(): number;
|
|
8
|
+
getAccessTokenData<T extends TokenResponse = TokenResponse>(): T;
|
|
9
|
+
checkIsTokenExpired(): boolean;
|
|
10
|
+
checkIsRefreshTokenExpired(): boolean;
|
|
6
11
|
protected getTokenDataFromStore(token: string): TokenResponse;
|
|
7
12
|
private parseToken;
|
|
13
|
+
private checkTokenExpired;
|
|
8
14
|
}
|
|
9
15
|
export declare class CuiTokenBase extends CuiToken {
|
|
10
16
|
private readonly exchangeContextApiService;
|
|
11
17
|
private readonly EXCHANGE_TOKEN_VALUE;
|
|
12
|
-
getAccessTokenData<T extends TokenResponse = TokenResponse>(): T;
|
|
13
|
-
checkIsTokenExpired(): boolean;
|
|
14
|
-
exchangeToken(params: CuiTokenExchangeRequestBody): Promise<TokenResponse>;
|
|
15
18
|
refreshToken(): Promise<TokenResponse>;
|
|
16
19
|
refreshExchangedToken(): Promise<TokenResponse>;
|
|
20
|
+
exchangeToken(params: CuiTokenExchangeRequestBody): Observable<TokenResponse>;
|
|
17
21
|
private setTokenResponse;
|
|
18
22
|
private setIdToken;
|
|
19
23
|
}
|