@progalaxyelabs/ngx-stonescriptphp-client 1.3.1 → 1.4.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/index.d.ts
CHANGED
|
@@ -131,6 +131,24 @@ declare class MyEnvironmentModel {
|
|
|
131
131
|
* @default { mode: 'cookie', refreshEndpoint: '/auth/refresh', useCsrf: true }
|
|
132
132
|
*/
|
|
133
133
|
auth?: AuthConfig;
|
|
134
|
+
/**
|
|
135
|
+
* Branding configuration for auth components
|
|
136
|
+
* Allows platforms to customize login/register pages without creating wrappers
|
|
137
|
+
*/
|
|
138
|
+
branding?: {
|
|
139
|
+
/** Application name displayed on auth pages */
|
|
140
|
+
appName: string;
|
|
141
|
+
/** URL to logo image */
|
|
142
|
+
logo?: string;
|
|
143
|
+
/** Primary brand color (hex) */
|
|
144
|
+
primaryColor?: string;
|
|
145
|
+
/** Gradient start color (hex) */
|
|
146
|
+
gradientStart?: string;
|
|
147
|
+
/** Gradient end color (hex) */
|
|
148
|
+
gradientEnd?: string;
|
|
149
|
+
/** Subtitle text displayed on auth pages */
|
|
150
|
+
subtitle?: string;
|
|
151
|
+
};
|
|
134
152
|
}
|
|
135
153
|
|
|
136
154
|
/**
|
|
@@ -428,46 +446,6 @@ declare class NgxStoneScriptPhpClientModule {
|
|
|
428
446
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxStoneScriptPhpClientModule>;
|
|
429
447
|
}
|
|
430
448
|
|
|
431
|
-
declare class LoginDialogComponent implements OnInit {
|
|
432
|
-
private auth;
|
|
433
|
-
/**
|
|
434
|
-
* REQUIRED: Which authentication providers to show in this dialog
|
|
435
|
-
* @example ['google', 'linkedin', 'emailPassword']
|
|
436
|
-
*/
|
|
437
|
-
providers: AuthProvider[];
|
|
438
|
-
email: string;
|
|
439
|
-
password: string;
|
|
440
|
-
error: string;
|
|
441
|
-
loading: boolean;
|
|
442
|
-
oauthProviders: AuthProvider[];
|
|
443
|
-
constructor(auth: AuthService);
|
|
444
|
-
ngOnInit(): void;
|
|
445
|
-
isProviderEnabled(provider: AuthProvider): boolean;
|
|
446
|
-
getProviderLabel(provider: AuthProvider): string;
|
|
447
|
-
getProviderIcon(provider: AuthProvider): string | undefined;
|
|
448
|
-
onEmailLogin(): Promise<void>;
|
|
449
|
-
onOAuthLogin(provider: AuthProvider): Promise<void>;
|
|
450
|
-
onRegisterClick(event: Event): void;
|
|
451
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoginDialogComponent, never>;
|
|
452
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoginDialogComponent, "lib-login-dialog", never, { "providers": { "alias": "providers"; "required": false; }; }, {}, never, never, true, never>;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
declare class RegisterComponent {
|
|
456
|
-
private auth;
|
|
457
|
-
displayName: string;
|
|
458
|
-
email: string;
|
|
459
|
-
password: string;
|
|
460
|
-
confirmPassword: string;
|
|
461
|
-
error: string;
|
|
462
|
-
success: string;
|
|
463
|
-
loading: boolean;
|
|
464
|
-
constructor(auth: AuthService);
|
|
465
|
-
onRegister(): Promise<void>;
|
|
466
|
-
onLoginClick(event: Event): void;
|
|
467
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterComponent, never>;
|
|
468
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterComponent, "lib-register", never, {}, {}, never, never, true, never>;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
449
|
interface TenantMembership {
|
|
472
450
|
tenant_id: string;
|
|
473
451
|
slug: string;
|
|
@@ -487,6 +465,7 @@ declare class TenantLoginComponent implements OnInit {
|
|
|
487
465
|
providers: AuthProvider[];
|
|
488
466
|
showTenantSelector: boolean;
|
|
489
467
|
autoSelectSingleTenant: boolean;
|
|
468
|
+
prefillEmail?: string;
|
|
490
469
|
allowTenantCreation: boolean;
|
|
491
470
|
tenantSelectorTitle: string;
|
|
492
471
|
tenantSelectorDescription: string;
|
|
@@ -501,6 +480,7 @@ declare class TenantLoginComponent implements OnInit {
|
|
|
501
480
|
password: string;
|
|
502
481
|
error: string;
|
|
503
482
|
loading: boolean;
|
|
483
|
+
showPassword: boolean;
|
|
504
484
|
useOAuth: boolean;
|
|
505
485
|
oauthProviders: AuthProvider[];
|
|
506
486
|
showingTenantSelector: boolean;
|
|
@@ -523,7 +503,78 @@ declare class TenantLoginComponent implements OnInit {
|
|
|
523
503
|
formatLastAccessed(dateStr: string): string;
|
|
524
504
|
onCreateTenantClick(event: Event): void;
|
|
525
505
|
static ɵfac: i0.ɵɵFactoryDeclaration<TenantLoginComponent, never>;
|
|
526
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TenantLoginComponent, "lib-tenant-login", never, { "title": { "alias": "title"; "required": false; }; "providers": { "alias": "providers"; "required": false; }; "showTenantSelector": { "alias": "showTenantSelector"; "required": false; }; "autoSelectSingleTenant": { "alias": "autoSelectSingleTenant"; "required": false; }; "allowTenantCreation": { "alias": "allowTenantCreation"; "required": false; }; "tenantSelectorTitle": { "alias": "tenantSelectorTitle"; "required": false; }; "tenantSelectorDescription": { "alias": "tenantSelectorDescription"; "required": false; }; "continueButtonText": { "alias": "continueButtonText"; "required": false; }; "registerLinkText": { "alias": "registerLinkText"; "required": false; }; "registerLinkAction": { "alias": "registerLinkAction"; "required": false; }; "createTenantLinkText": { "alias": "createTenantLinkText"; "required": false; }; "createTenantLinkAction": { "alias": "createTenantLinkAction"; "required": false; }; }, { "tenantSelected": "tenantSelected"; "createTenant": "createTenant"; }, never, never, true, never>;
|
|
506
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TenantLoginComponent, "lib-tenant-login", never, { "title": { "alias": "title"; "required": false; }; "providers": { "alias": "providers"; "required": false; }; "showTenantSelector": { "alias": "showTenantSelector"; "required": false; }; "autoSelectSingleTenant": { "alias": "autoSelectSingleTenant"; "required": false; }; "prefillEmail": { "alias": "prefillEmail"; "required": false; }; "allowTenantCreation": { "alias": "allowTenantCreation"; "required": false; }; "tenantSelectorTitle": { "alias": "tenantSelectorTitle"; "required": false; }; "tenantSelectorDescription": { "alias": "tenantSelectorDescription"; "required": false; }; "continueButtonText": { "alias": "continueButtonText"; "required": false; }; "registerLinkText": { "alias": "registerLinkText"; "required": false; }; "registerLinkAction": { "alias": "registerLinkAction"; "required": false; }; "createTenantLinkText": { "alias": "createTenantLinkText"; "required": false; }; "createTenantLinkAction": { "alias": "createTenantLinkAction"; "required": false; }; }, { "tenantSelected": "tenantSelected"; "createTenant": "createTenant"; }, never, never, true, never>;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
declare class AuthPageComponent implements OnInit {
|
|
510
|
+
private environment;
|
|
511
|
+
providers: AuthProvider[];
|
|
512
|
+
authenticated: EventEmitter<TenantSelectedEvent>;
|
|
513
|
+
mode: 'login' | 'register';
|
|
514
|
+
appName: string;
|
|
515
|
+
logo?: string;
|
|
516
|
+
subtitle?: string;
|
|
517
|
+
gradientStyle: string;
|
|
518
|
+
constructor(environment: MyEnvironmentModel);
|
|
519
|
+
ngOnInit(): void;
|
|
520
|
+
onAuthenticated(event: TenantSelectedEvent): void;
|
|
521
|
+
/**
|
|
522
|
+
* Adjust color brightness (simple implementation)
|
|
523
|
+
* @param color Hex color (e.g., '#667eea')
|
|
524
|
+
* @param percent Percentage to darken (negative) or lighten (positive)
|
|
525
|
+
*/
|
|
526
|
+
private adjustColor;
|
|
527
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthPageComponent, never>;
|
|
528
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthPageComponent, "lib-auth-page", never, { "providers": { "alias": "providers"; "required": false; }; }, { "authenticated": "authenticated"; }, never, never, true, never>;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
declare class LoginDialogComponent implements OnInit {
|
|
532
|
+
private auth;
|
|
533
|
+
/**
|
|
534
|
+
* REQUIRED: Which authentication providers to show in this dialog
|
|
535
|
+
* @example ['google', 'linkedin', 'emailPassword']
|
|
536
|
+
*/
|
|
537
|
+
providers: AuthProvider[];
|
|
538
|
+
email: string;
|
|
539
|
+
password: string;
|
|
540
|
+
error: string;
|
|
541
|
+
loading: boolean;
|
|
542
|
+
showPassword: boolean;
|
|
543
|
+
oauthProviders: AuthProvider[];
|
|
544
|
+
constructor(auth: AuthService);
|
|
545
|
+
ngOnInit(): void;
|
|
546
|
+
isProviderEnabled(provider: AuthProvider): boolean;
|
|
547
|
+
getProviderLabel(provider: AuthProvider): string;
|
|
548
|
+
getProviderIcon(provider: AuthProvider): string | undefined;
|
|
549
|
+
onEmailLogin(): Promise<void>;
|
|
550
|
+
onOAuthLogin(provider: AuthProvider): Promise<void>;
|
|
551
|
+
onRegisterClick(event: Event): void;
|
|
552
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginDialogComponent, never>;
|
|
553
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginDialogComponent, "lib-login-dialog", never, { "providers": { "alias": "providers"; "required": false; }; }, {}, never, never, true, never>;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
declare class RegisterComponent {
|
|
557
|
+
private auth;
|
|
558
|
+
private environment;
|
|
559
|
+
navigateToLogin: EventEmitter<string>;
|
|
560
|
+
displayName: string;
|
|
561
|
+
email: string;
|
|
562
|
+
password: string;
|
|
563
|
+
confirmPassword: string;
|
|
564
|
+
error: string;
|
|
565
|
+
success: string;
|
|
566
|
+
loading: boolean;
|
|
567
|
+
showAccountLinkPrompt: boolean;
|
|
568
|
+
existingEmail: string;
|
|
569
|
+
showPassword: boolean;
|
|
570
|
+
showConfirmPassword: boolean;
|
|
571
|
+
constructor(auth: AuthService, environment: MyEnvironmentModel);
|
|
572
|
+
onRegister(): Promise<void>;
|
|
573
|
+
onLoginClick(event: Event): void;
|
|
574
|
+
linkExistingAccount(): void;
|
|
575
|
+
cancelLinking(): void;
|
|
576
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterComponent, never>;
|
|
577
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterComponent, "lib-register", never, {}, { "navigateToLogin": "navigateToLogin"; }, never, never, true, never>;
|
|
527
578
|
}
|
|
528
579
|
|
|
529
580
|
interface TenantCreatedEvent {
|
|
@@ -574,6 +625,8 @@ declare class TenantRegisterComponent implements OnInit {
|
|
|
574
625
|
slugError: string;
|
|
575
626
|
useEmailPassword: boolean;
|
|
576
627
|
oauthProviders: AuthProvider[];
|
|
628
|
+
showPassword: boolean;
|
|
629
|
+
showConfirmPassword: boolean;
|
|
577
630
|
constructor(auth: AuthService);
|
|
578
631
|
ngOnInit(): void;
|
|
579
632
|
isProviderEnabled(provider: AuthProvider): boolean;
|
|
@@ -666,5 +719,5 @@ declare class TenantRegisterDialogComponent {
|
|
|
666
719
|
static ɵcmp: i0.ɵɵComponentDeclaration<TenantRegisterDialogComponent, "lib-tenant-register-dialog", never, {}, {}, never, never, true, never>;
|
|
667
720
|
}
|
|
668
721
|
|
|
669
|
-
export { ApiConnectionService, ApiResponse, AuthService, CsrfService, DbService, LoginDialogComponent, MyEnvironmentModel, NgxStoneScriptPhpClientModule, RegisterComponent, SigninStatusService, TenantLoginComponent, TenantLoginDialogComponent, TenantRegisterComponent, TenantRegisterDialogComponent, TokenService, VerifyStatus };
|
|
722
|
+
export { ApiConnectionService, ApiResponse, AuthPageComponent, AuthService, CsrfService, DbService, LoginDialogComponent, MyEnvironmentModel, NgxStoneScriptPhpClientModule, RegisterComponent, SigninStatusService, TenantLoginComponent, TenantLoginDialogComponent, TenantRegisterComponent, TenantRegisterDialogComponent, TokenService, VerifyStatus };
|
|
670
723
|
export type { AuthConfig, AuthMode, AuthProvider, AuthResult, TenantCreatedEvent, TenantMembership, TenantSelectedEvent, User };
|