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.
@@ -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<"medium" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "dark">;
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?: "small" | "large" | "default";
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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.578",
3
+ "version": "2.0.579",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"