valtech-components 2.0.578 → 2.0.579
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/esm2022/lib/services/auth/auth.service.mjs +24 -1
- package/fesm2022/valtech-components.mjs +23 -0
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +1 -1
- package/lib/services/auth/auth.service.d.ts +24 -0
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ export declare class RightsFooterComponent {
|
|
|
43
43
|
/**
|
|
44
44
|
* Computed helper for color prop in template.
|
|
45
45
|
*/
|
|
46
|
-
propsColor: import("@angular/core").Signal<"
|
|
46
|
+
propsColor: import("@angular/core").Signal<"success" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "danger" | "light" | "dark">;
|
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<RightsFooterComponent, never>;
|
|
48
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<RightsFooterComponent, "val-rights-footer", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
49
49
|
}
|
|
@@ -90,7 +90,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
90
90
|
contentInterpolation?: Record<string, string | number>;
|
|
91
91
|
icon?: import("valtech-components").IconMetada;
|
|
92
92
|
shape?: "round";
|
|
93
|
-
size?: "
|
|
93
|
+
size?: "default" | "small" | "large";
|
|
94
94
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
95
95
|
type: "button" | "submit" | "reset";
|
|
96
96
|
token?: string;
|
|
@@ -154,6 +154,30 @@ export declare class AuthService implements OnDestroy {
|
|
|
154
154
|
* que el cliente debe guardar para el próximo refresh.
|
|
155
155
|
*/
|
|
156
156
|
refreshAccessToken(): Observable<RefreshResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* Maneja autenticación exitosa desde fuentes externas (OAuth, Google Native, etc).
|
|
159
|
+
* Guarda tokens, actualiza estado, inicia Firebase si corresponde.
|
|
160
|
+
*
|
|
161
|
+
* @param authResult - Resultado de autenticación con tokens
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```typescript
|
|
165
|
+
* // Desde GoogleAuthService
|
|
166
|
+
* googleAuth.signIn().subscribe({
|
|
167
|
+
* next: (result) => {
|
|
168
|
+
* this.authService.setExternalAuth(result);
|
|
169
|
+
* }
|
|
170
|
+
* });
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
setExternalAuth(authResult: {
|
|
174
|
+
accessToken: string;
|
|
175
|
+
refreshToken: string;
|
|
176
|
+
firebaseToken?: string;
|
|
177
|
+
expiresIn: number;
|
|
178
|
+
roles?: string[];
|
|
179
|
+
permissions?: string[];
|
|
180
|
+
}): void;
|
|
157
181
|
/**
|
|
158
182
|
* Cierra sesión.
|
|
159
183
|
*/
|