@descope/angular-sdk 0.22.3 → 0.23.0
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/README.md +1 -1
- package/dist/esm2022/environment.mjs +2 -2
- package/dist/esm2022/lib/base/base-lazy-widget.component.mjs +50 -0
- package/dist/esm2022/lib/components/access-key-management/access-key-management.component.mjs +27 -19
- package/dist/esm2022/lib/components/applications-portal/applications-portal.component.mjs +27 -19
- package/dist/esm2022/lib/components/audit-management/audit-management.component.mjs +27 -19
- package/dist/esm2022/lib/components/descope/descope.component.mjs +52 -27
- package/dist/esm2022/lib/components/role-management/role-management.component.mjs +27 -19
- package/dist/esm2022/lib/components/sign-in-flow/sign-in-flow.component.mjs +1 -1
- package/dist/esm2022/lib/components/sign-up-flow/sign-up-flow.component.mjs +1 -1
- package/dist/esm2022/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.mjs +1 -1
- package/dist/esm2022/lib/components/user-management/user-management.component.mjs +27 -19
- package/dist/esm2022/lib/components/user-profile/user-profile.component.mjs +27 -19
- package/dist/esm2022/lib/types/types.mjs +1 -1
- package/dist/fesm2022/descope-angular-sdk.mjs +242 -128
- package/dist/fesm2022/descope-angular-sdk.mjs.map +1 -1
- package/dist/lib/base/base-lazy-widget.component.d.ts +45 -0
- package/dist/lib/components/access-key-management/access-key-management.component.d.ts +8 -12
- package/dist/lib/components/applications-portal/applications-portal.component.d.ts +8 -12
- package/dist/lib/components/audit-management/audit-management.component.d.ts +8 -12
- package/dist/lib/components/descope/descope.component.d.ts +7 -4
- package/dist/lib/components/role-management/role-management.component.d.ts +8 -12
- package/dist/lib/components/sign-in-flow/sign-in-flow.component.d.ts +1 -2
- package/dist/lib/components/sign-up-flow/sign-up-flow.component.d.ts +1 -2
- package/dist/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.d.ts +1 -2
- package/dist/lib/components/user-management/user-management.component.d.ts +8 -12
- package/dist/lib/components/user-profile/user-profile.component.d.ts +8 -12
- package/dist/lib/types/types.d.ts +1 -2
- package/package.json +11 -11
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnChanges, OnInit, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { ILogger, type CustomStorage } from '@descope/web-component';
|
|
3
2
|
import { DescopeAuthService } from '../../services/descope-auth.service';
|
|
4
|
-
import { DescopeAuthConfig } from '../../types/types';
|
|
3
|
+
import { DescopeAuthConfig, ILogger } from '../../types/types';
|
|
4
|
+
import type { CustomStorage } from '@descope/web-component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DescopeComponent implements OnInit, OnChanges, AfterViewInit {
|
|
7
7
|
private elementRef;
|
|
8
8
|
private authService;
|
|
9
|
+
private platformId;
|
|
9
10
|
private readonly descopeWc;
|
|
10
11
|
get clientString(): string | undefined;
|
|
11
12
|
get nonceString(): string | undefined;
|
|
@@ -42,8 +43,10 @@ export declare class DescopeComponent implements OnInit, OnChanges, AfterViewIni
|
|
|
42
43
|
error: EventEmitter<CustomEvent>;
|
|
43
44
|
ready: EventEmitter<void>;
|
|
44
45
|
private webComponent?;
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
private isWebComponentLoaded;
|
|
47
|
+
constructor(elementRef: ElementRef, authService: DescopeAuthService, descopeConfig: DescopeAuthConfig, platformId: object);
|
|
48
|
+
ngOnInit(): Promise<void>;
|
|
49
|
+
private loadWebComponent;
|
|
47
50
|
ngAfterViewInit(): void;
|
|
48
51
|
ngOnChanges(): void;
|
|
49
52
|
private setupNonAttributeProperties;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ElementRef,
|
|
2
|
-
import { ILogger } from '
|
|
3
|
-
import {
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DescopeAuthConfig, ILogger } from '../../types/types';
|
|
3
|
+
import { BaseLazyWidgetComponent } from '../../base/base-lazy-widget.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class RoleManagementComponent
|
|
6
|
-
private elementRef;
|
|
5
|
+
export declare class RoleManagementComponent extends BaseLazyWidgetComponent {
|
|
7
6
|
projectId: string;
|
|
8
7
|
baseUrl?: string;
|
|
9
8
|
baseStaticUrl?: string;
|
|
@@ -15,13 +14,10 @@ export declare class RoleManagementComponent implements OnInit, OnChanges, After
|
|
|
15
14
|
logger: ILogger;
|
|
16
15
|
styleId: string;
|
|
17
16
|
ready: EventEmitter<void>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ngAfterViewInit(): void;
|
|
23
|
-
private setupWebComponent;
|
|
24
|
-
private setupEventListeners;
|
|
17
|
+
constructor(elementRef: ElementRef, descopeConfig: DescopeAuthConfig, platformId: object);
|
|
18
|
+
protected loadWidget(): Promise<HTMLElement | null>;
|
|
19
|
+
protected setupWebComponent(): void;
|
|
20
|
+
protected setupEventListeners(): void;
|
|
25
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<RoleManagementComponent, never>;
|
|
26
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<RoleManagementComponent, "role-management[tenant]", never, { "tenant": { "alias": "tenant"; "required": false; }; "widgetId": { "alias": "widgetId"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "logger": { "alias": "logger"; "required": false; }; "styleId": { "alias": "styleId"; "required": false; }; }, { "ready": "ready"; }, never, never, true, never>;
|
|
27
23
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ILogger } from '
|
|
3
|
-
import { DescopeAuthConfig } from '../../types/types';
|
|
2
|
+
import { DescopeAuthConfig, ILogger } from '../../types/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class SignInFlowComponent {
|
|
6
5
|
projectId: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ILogger } from '
|
|
3
|
-
import { DescopeAuthConfig } from '../../types/types';
|
|
2
|
+
import { DescopeAuthConfig, ILogger } from '../../types/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class SignUpFlowComponent {
|
|
6
5
|
projectId: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ILogger } from '
|
|
3
|
-
import { DescopeAuthConfig } from '../../types/types';
|
|
2
|
+
import { DescopeAuthConfig, ILogger } from '../../types/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class SignUpOrInFlowComponent {
|
|
6
5
|
projectId: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ElementRef,
|
|
2
|
-
import { ILogger } from '
|
|
3
|
-
import {
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DescopeAuthConfig, ILogger } from '../../types/types';
|
|
3
|
+
import { BaseLazyWidgetComponent } from '../../base/base-lazy-widget.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UserManagementComponent
|
|
6
|
-
private elementRef;
|
|
5
|
+
export declare class UserManagementComponent extends BaseLazyWidgetComponent {
|
|
7
6
|
projectId: string;
|
|
8
7
|
baseUrl?: string;
|
|
9
8
|
baseStaticUrl?: string;
|
|
@@ -15,13 +14,10 @@ export declare class UserManagementComponent implements OnInit, OnChanges, After
|
|
|
15
14
|
logger: ILogger;
|
|
16
15
|
styleId: string;
|
|
17
16
|
ready: EventEmitter<void>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ngAfterViewInit(): void;
|
|
23
|
-
private setupWebComponent;
|
|
24
|
-
private setupEventListeners;
|
|
17
|
+
constructor(elementRef: ElementRef, descopeConfig: DescopeAuthConfig, platformId: object);
|
|
18
|
+
protected loadWidget(): Promise<HTMLElement | null>;
|
|
19
|
+
protected setupWebComponent(): void;
|
|
20
|
+
protected setupEventListeners(): void;
|
|
25
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserManagementComponent, never>;
|
|
26
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserManagementComponent, "user-management[tenant]", never, { "tenant": { "alias": "tenant"; "required": false; }; "widgetId": { "alias": "widgetId"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "logger": { "alias": "logger"; "required": false; }; "styleId": { "alias": "styleId"; "required": false; }; }, { "ready": "ready"; }, never, never, true, never>;
|
|
27
23
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter
|
|
2
|
-
import { ILogger } from '
|
|
3
|
-
import { DescopeAuthConfig } from '../../types/types';
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DescopeAuthConfig, ILogger } from '../../types/types';
|
|
4
3
|
import { DescopeAuthService } from '../../services/descope-auth.service';
|
|
4
|
+
import { BaseLazyWidgetComponent } from '../../base/base-lazy-widget.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class UserProfileComponent
|
|
7
|
-
private elementRef;
|
|
6
|
+
export declare class UserProfileComponent extends BaseLazyWidgetComponent {
|
|
8
7
|
private descopeAuthService;
|
|
9
8
|
projectId: string;
|
|
10
9
|
baseUrl?: string;
|
|
@@ -17,13 +16,10 @@ export declare class UserProfileComponent implements OnInit, OnChanges, AfterVie
|
|
|
17
16
|
styleId: string;
|
|
18
17
|
logout: EventEmitter<CustomEvent>;
|
|
19
18
|
ready: EventEmitter<void>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
ngAfterViewInit(): void;
|
|
25
|
-
private setupWebComponent;
|
|
26
|
-
private setupEventListeners;
|
|
19
|
+
constructor(elementRef: ElementRef, descopeConfig: DescopeAuthConfig, descopeAuthService: DescopeAuthService, platformId: object);
|
|
20
|
+
protected loadWidget(): Promise<HTMLElement | null>;
|
|
21
|
+
protected setupWebComponent(): void;
|
|
22
|
+
protected setupEventListeners(): void;
|
|
27
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
|
|
28
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "user-profile", never, { "widgetId": { "alias": "widgetId"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "logger": { "alias": "logger"; "required": false; }; "styleId": { "alias": "styleId"; "required": false; }; }, { "logout": "logout"; "ready": "ready"; }, never, never, true, never>;
|
|
29
25
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ILogger } from '@descope/web-component';
|
|
2
1
|
import { CookieConfig, OidcConfig } from '@descope/web-js-sdk';
|
|
3
|
-
import type { CustomStorage } from '@descope/web-component';
|
|
2
|
+
import type { CustomStorage, ILogger } from '@descope/web-component';
|
|
4
3
|
export declare class DescopeAuthConfig {
|
|
5
4
|
projectId: string;
|
|
6
5
|
baseUrl?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/angular-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=16.0.0",
|
|
6
6
|
"@angular/core": ">=16.0.0"
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"tslib": "^2.3.0",
|
|
28
|
-
"@descope/access-key-management-widget": "0.5.
|
|
29
|
-
"@descope/audit-management-widget": "0.5.
|
|
30
|
-
"@descope/user-management-widget": "0.10.
|
|
31
|
-
"@descope/
|
|
32
|
-
"@descope/
|
|
33
|
-
"@descope/
|
|
34
|
-
"@descope/
|
|
35
|
-
"@descope/
|
|
36
|
-
"@descope/
|
|
37
|
-
"@descope/
|
|
28
|
+
"@descope/access-key-management-widget": "0.5.28",
|
|
29
|
+
"@descope/audit-management-widget": "0.5.28",
|
|
30
|
+
"@descope/user-management-widget": "0.10.11",
|
|
31
|
+
"@descope/role-management-widget": "0.5.20",
|
|
32
|
+
"@descope/user-profile-widget": "0.8.11",
|
|
33
|
+
"@descope/tenant-profile-widget": "0.5.11",
|
|
34
|
+
"@descope/web-component": "3.52.4",
|
|
35
|
+
"@descope/web-js-sdk": "1.42.0",
|
|
36
|
+
"@descope/applications-portal-widget": "0.5.11",
|
|
37
|
+
"@descope/core-js-sdk": "2.54.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@angular-devkit/build-angular": "^19.0.0",
|