@cuby-ui/core 0.0.274 → 0.0.276
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/editor/editor.component.d.ts +8 -6
- package/esm2022/editor/editor.component.mjs +16 -13
- package/esm2022/editor/widgets/editor-block/editor-block.component.mjs +4 -4
- package/esm2022/editor/widgets/editor-modal/editor-modal.component.mjs +3 -3
- package/esm2022/editor/widgets/editor-readonly/editor-readonly.component.mjs +3 -3
- package/esm2022/interceptors/auth.interceptor.mjs +2 -2
- package/esm2022/providers/auth.options.mjs +3 -2
- package/esm2022/providers/auth.provider.mjs +18 -24
- package/esm2022/providers/index.mjs +2 -1
- package/esm2022/services/auth.service.mjs +17 -15
- package/esm2022/services/browser-auth.service.mjs +30 -0
- package/esm2022/services/index.mjs +1 -2
- package/esm2022/services/mobile-auth.service.mjs +18 -0
- package/fesm2022/cuby-ui-core.mjs +124 -83
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/package.json +4 -4
- package/providers/auth.options.d.ts +6 -0
- package/providers/auth.provider.d.ts +1 -1
- package/providers/index.d.ts +1 -1
- package/services/auth.service.d.ts +3 -5
- package/services/browser-auth.service.d.ts +10 -0
- package/services/index.d.ts +0 -1
- package/services/mobile-auth.service.d.ts +8 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuby-ui/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.276",
|
|
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.276",
|
|
10
|
+
"@cuby-ui/cdk": "^0.0.276",
|
|
11
|
+
"@cuby-ui/icons": "^0.0.276",
|
|
12
12
|
"@editorjs/editorjs": "2.29.1",
|
|
13
13
|
"@editorjs/header": "^2.8.1",
|
|
14
14
|
"@editorjs/list": "^1.9.0",
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
1
2
|
import type { AuthConfig, OAuthModuleConfig } from 'angular-oauth2-oidc';
|
|
3
|
+
import type { CuiBrowserAuthService } from '../services/browser-auth.service';
|
|
4
|
+
import type { CuiMobileAuthService } from '../services/mobile-auth.service';
|
|
5
|
+
export type cuiAuthPlatform = 'mobile' | 'browser';
|
|
2
6
|
export interface CuiAuthConfig {
|
|
3
7
|
readonly authConfig: AuthConfig;
|
|
4
8
|
readonly moduleConfig?: OAuthModuleConfig;
|
|
9
|
+
readonly platform?: cuiAuthPlatform;
|
|
5
10
|
}
|
|
11
|
+
export declare const CuiAuthService: InjectionToken<CuiBrowserAuthService | CuiMobileAuthService>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Provider } from '@angular/core';
|
|
2
2
|
import type { CuiAuthConfig } from './auth.options';
|
|
3
|
-
export declare function provideCuiAuth({ authConfig, moduleConfig }: CuiAuthConfig): Provider;
|
|
3
|
+
export declare function provideCuiAuth({ authConfig, moduleConfig, platform }: CuiAuthConfig): Provider;
|
package/providers/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CuiAuthConfig } from './auth.options';
|
|
1
|
+
export { CuiAuthConfig, cuiAuthPlatform, CuiAuthService } from './auth.options';
|
|
2
2
|
export { provideCuiAuth } from './auth.provider';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { OAuthService } from 'angular-oauth2-oidc';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
useCheckTokenFlow(): void;
|
|
2
|
+
export declare class CuiAuthBase extends OAuthService {
|
|
3
|
+
useCheckTokenFlow(loginCallback: () => void): void;
|
|
5
4
|
checkIsTokenExpired(): boolean;
|
|
6
5
|
refreshTokenWithExpiredChecking(): void;
|
|
7
|
-
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CuiAuthService>;
|
|
6
|
+
initAuthRefreshEvents(loginCallback: () => void): void;
|
|
9
7
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AuthConfig } from 'angular-oauth2-oidc';
|
|
2
|
+
import { CuiAuthBase } from './auth.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiBrowserAuthService extends CuiAuthBase {
|
|
5
|
+
private readonly router;
|
|
6
|
+
private readonly location;
|
|
7
|
+
initAuth(authConfig: AuthConfig): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiBrowserAuthService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiBrowserAuthService>;
|
|
10
|
+
}
|
package/services/index.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AuthConfig } from 'angular-oauth2-oidc';
|
|
2
|
+
import { CuiAuthBase } from './auth.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CuiMobileAuthService extends CuiAuthBase {
|
|
5
|
+
initAuth(authConfig: AuthConfig): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiMobileAuthService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiMobileAuthService>;
|
|
8
|
+
}
|