sass-template-common 0.10.26 → 0.10.28
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/dist/ficha-video.css +1 -1
- package/dist/sass-template-common.css +1 -1
- package/dist/sass-template-common.d.ts +13 -1
- package/dist/sass-template-common.js +2362 -2315
- package/dist/sass-template-common.umd.cjs +25 -25
- package/dist/ui/components/common/cards/section-card-1/cards-section-card-1.css +1 -1
- package/dist/ui/components/common/news-description/news-description.css +1 -1
- package/package.json +1 -1
|
@@ -806,6 +806,7 @@ export declare type ConfigOriginAuditReport = {
|
|
|
806
806
|
network: number;
|
|
807
807
|
cacheHit: number;
|
|
808
808
|
dedup: number;
|
|
809
|
+
stale: number;
|
|
809
810
|
api: number;
|
|
810
811
|
bucket: number;
|
|
811
812
|
networkMs: number;
|
|
@@ -833,7 +834,7 @@ export declare type ConfigOriginComparisonRow = {
|
|
|
833
834
|
deltaMs: number;
|
|
834
835
|
};
|
|
835
836
|
|
|
836
|
-
export declare type ConfigOriginOutcome = 'network' | 'cache-hit' | 'dedup';
|
|
837
|
+
export declare type ConfigOriginOutcome = 'network' | 'cache-hit' | 'dedup' | 'stale';
|
|
837
838
|
|
|
838
839
|
export declare type ConfigOriginTimingStats = {
|
|
839
840
|
ok: boolean;
|
|
@@ -1184,10 +1185,14 @@ export declare function fetchMaybeBatched(route: string, fetchFn: (size: number,
|
|
|
1184
1185
|
/**
|
|
1185
1186
|
* Cache in-memory + deduplicación de requests en vuelo (misma clave → misma promesa).
|
|
1186
1187
|
* TTL corto pensado para SSR: evita 4–5 GETs repetidos de menú/banners por instancia.
|
|
1188
|
+
*
|
|
1189
|
+
* Con `staleOnError: true`, un fallo de red/timeout no cachea vacío: sirve el último
|
|
1190
|
+
* valor OK de esa clave (si existe) y deja que el caller decida el fallback final.
|
|
1187
1191
|
*/
|
|
1188
1192
|
export declare function fetchWithConfigCache<T>(cacheKey: string, fetchFn: () => Promise<T>, options?: number | {
|
|
1189
1193
|
ttlMs?: number;
|
|
1190
1194
|
shouldCache?: (value: T) => boolean;
|
|
1195
|
+
staleOnError?: boolean;
|
|
1191
1196
|
}): Promise<T>;
|
|
1192
1197
|
|
|
1193
1198
|
export declare const Font: ({ config }: {
|
|
@@ -1824,6 +1829,13 @@ export declare const JournalistGroup: FC<Props_50>;
|
|
|
1824
1829
|
|
|
1825
1830
|
export declare const LayoutNewsComponent: FC<Props_47>;
|
|
1826
1831
|
|
|
1832
|
+
/**
|
|
1833
|
+
* Timeout del fetch legacy CMS (`/config/menu`, `/config/banners`).
|
|
1834
|
+
* Sin esto, un socket colgado envenena la promesa in-flight del cache y tumba
|
|
1835
|
+
* todos los renders de esa instancia hasta que el Lambda se recicle.
|
|
1836
|
+
*/
|
|
1837
|
+
export declare const LEGACY_CONFIG_FETCH_TIMEOUT_MS = 5000;
|
|
1838
|
+
|
|
1827
1839
|
export declare type LibraryConfig = {
|
|
1828
1840
|
PUBLIC_API_HOST?: string;
|
|
1829
1841
|
PUBLIC_API_FRONT?: string;
|