valtech-components 2.0.749 → 2.0.751
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/firebase/messaging.service.mjs +24 -14
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +24 -14
- 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/components/organisms/toolbar/toolbar.component.d.ts +1 -1
- package/lib/services/firebase/messaging.service.d.ts +13 -0
- package/lib/version.d.ts +1 -1
- 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
|
/**
|
|
48
48
|
* Computed helper for withMargin prop in template.
|
|
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;
|
|
@@ -72,7 +72,7 @@ export declare class ToolbarComponent implements OnInit {
|
|
|
72
72
|
};
|
|
73
73
|
showFlags?: boolean;
|
|
74
74
|
color: import("@ionic/core").Color;
|
|
75
|
-
size?: "
|
|
75
|
+
size?: "default" | "small" | "large";
|
|
76
76
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
77
77
|
shape?: "round";
|
|
78
78
|
expand?: "full" | "block";
|
|
@@ -65,6 +65,19 @@ export declare class MessagingService {
|
|
|
65
65
|
* Obtiene la instancia de Messaging de forma perezosa.
|
|
66
66
|
* Esto evita el error de APP_INITIALIZER de AngularFire.
|
|
67
67
|
*/
|
|
68
|
+
/**
|
|
69
|
+
* Obtiene la instancia de Messaging de forma async-safe.
|
|
70
|
+
*
|
|
71
|
+
* Angular Fire requiere que `await isSupported()` (Firebase SDK) se haya
|
|
72
|
+
* resuelto antes de inyectar `Messaging`. Si llamamos `injector.get(Messaging)`
|
|
73
|
+
* antes de eso, AngularFire lanza:
|
|
74
|
+
* "The APP_INITIALIZER that is 'making' isSupported() sync ... has not resolved"
|
|
75
|
+
*
|
|
76
|
+
* Por eso esta función:
|
|
77
|
+
* 1. Cachea el resultado de `fcmIsSupported()` (Firebase SDK web check).
|
|
78
|
+
* 2. Solo después de await, intenta `injector.get(Messaging)`.
|
|
79
|
+
*/
|
|
80
|
+
private fcmSupportPromise?;
|
|
68
81
|
private getMessagingInstance;
|
|
69
82
|
/**
|
|
70
83
|
* Inicializa el servicio de messaging
|
package/lib/version.d.ts
CHANGED