sass-template-common 0.10.36 → 0.10.37

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.
@@ -203,32 +203,6 @@ export declare const bannersReplace: (bannerLineAd: string, replaces?: {
203
203
  [key: string]: string;
204
204
  }) => string;
205
205
 
206
- /**
207
- * Variante metadata: mismo split que `createBatchedFetch` pero devuelve
208
- * `hasNextPage` (último batch lleno) y el primer response crudo, para derivar
209
- * next/prev y el título de sección. Lee el conteo de batches del MISMO
210
- * `CONFIG_batchedFetch` que el render (vía `resolveBatchCount`), de modo que la
211
- * paginación de metadata y la lista visible nunca discrepan.
212
- *
213
- * `ceil` (antes `floor`) alinea la matemática con `createBatchedFetch`; para los
214
- * totales usados en prod (45, 15) ambos coinciden por ser divisibles.
215
- */
216
- export declare function batchedNewsFetch({ fetchFn, baseParams, userPage, newsListLimit, batchCount, }: BatchFetchParams): Promise<BatchFetchResult>;
217
-
218
- declare type BatchFetchParams = {
219
- fetchFn: (params: Params) => Promise<any> | undefined;
220
- baseParams: Params;
221
- userPage: number;
222
- newsListLimit: number;
223
- batchCount?: number;
224
- };
225
-
226
- export declare type BatchFetchResult = {
227
- data: any[];
228
- hasNextPage: boolean;
229
- firstBatchResponse: any;
230
- };
231
-
232
206
  export declare const becomeVideoObject: (video: VideoResponseData, showtime?: boolean, showsubtitle?: boolean, showauthor?: boolean) => NewListResponseData;
233
207
 
234
208
  export declare interface BlockSaasResponse {
@@ -889,25 +863,6 @@ declare interface CreateAssessmentParams {
889
863
  userIpAddress?: string;
890
864
  }
891
865
 
892
- /**
893
- * Divide un fetch de lista en `batches` requests paralelos de `ceil(totalSize/
894
- * batches)` ítems cada uno (páginas contiguas del upstream) y concatena los
895
- * resultados en orden, devolviendo el MISMO envelope que un fetch único
896
- * (`{ data: { data: [] } }`) para que caiga directo en un `PromiseArray` con
897
- * `custom_extractData: getResponse`.
898
- *
899
- * Mapeo de páginas (batches=5, totalSize=45 → batchSize=9):
900
- * userPage=1 → API pages 1..5 (ítems 1–45)
901
- * userPage=2 → API pages 6..10 (ítems 46–90)
902
- *
903
- * `fetchFn` recibe `(size, page)` y devuelve la respuesta del CMS o `undefined`.
904
- */
905
- export declare function createBatchedFetch(fetchFn: (size: number, page: number) => Promise<any> | undefined, totalSize: number, userPage: number, batches?: number): Promise<{
906
- data: {
907
- data: any[];
908
- };
909
- }>;
910
-
911
866
  export declare const cutString: (text: string, length?: number) => string;
912
867
 
913
868
  export declare interface DataNews {
@@ -1177,18 +1132,6 @@ export declare type FetchConfig = {
1177
1132
  newsType: string;
1178
1133
  };
1179
1134
 
1180
- /**
1181
- * Envuelve `fetchFn` con batch SI la ruta está activada en config; si no, hace
1182
- * el fetch único (comportamiento de master). Behavior-preserving cuando el batch
1183
- * está off, así que es seguro envolver todas las rutas de lista de una — solo
1184
- * las que estén en `CONFIG_batchedFetch.routes` cambian de comportamiento.
1185
- */
1186
- export declare function fetchMaybeBatched(route: string, fetchFn: (size: number, page: number) => Promise<any> | undefined, totalSize: number, userPage: number): Promise<{
1187
- data: {
1188
- data: any[];
1189
- };
1190
- }>;
1191
-
1192
1135
  /**
1193
1136
  * Cache in-memory + deduplicación de requests en vuelo (misma clave → misma promesa).
1194
1137
  * TTL corto pensado para SSR: evita 4–5 GETs repetidos de menú/banners por instancia.
@@ -1778,14 +1721,6 @@ export declare const isHomePath: (pathname?: string) => boolean;
1778
1721
 
1779
1722
  export declare const isPhotoGallery: (news: NewListResponseData) => boolean | undefined;
1780
1723
 
1781
- /**
1782
- * ¿La ruta tiene batch activo? Precedencia:
1783
- * 1. `CONFIG_batchedFetch.routes[route]` explícito (true/false) gana.
1784
- * 2. Retro-compat: el legacy `CONFIG_sectionBatchedFetch` solo cubría `seccion`.
1785
- * 3. Off por default.
1786
- */
1787
- export declare function isRouteBatched(route: string): boolean;
1788
-
1789
1724
  export declare class IssuuServices {
1790
1725
  private issuuApi;
1791
1726
  private api;
@@ -1891,37 +1826,6 @@ export declare type LibraryConfig = {
1891
1826
  CONFIG_videoClipUrl?: string;
1892
1827
  CONFIG_newNoteBannersIndexing?: boolean;
1893
1828
  CONFIG_buscar_html?: boolean;
1894
- /**
1895
- * @deprecated Reemplazado por `CONFIG_batchedFetch.routes.seccion`. Se mantiene
1896
- * como shim de retro-compatibilidad: si `CONFIG_batchedFetch` no está seteado y
1897
- * este flag es `true`, el batch de sección (solo metadata next/prev) sigue
1898
- * funcionando con el conteo default. Cuando ambos están, `CONFIG_batchedFetch`
1899
- * gana. Remover cuando todos los sitios migren a `CONFIG_batchedFetch`.
1900
- */
1901
- CONFIG_sectionBatchedFetch?: boolean;
1902
- /**
1903
- * [renderizado] Formaliza el fetch de listas de noticias por batches: divide un
1904
- * único fetch de `config.newsListLimit` ítems en `batches` fetches paralelos
1905
- * (páginas contiguas del upstream) y los concatena, devolviendo el MISMO
1906
- * envelope que un fetch único. Es la versión canónica del sistema que vivía
1907
- * suelto en soyfutbol (`newsListBatches` + `batchFetchRoutes`).
1908
- *
1909
- * - `batches`: número de fetches paralelos por lista. Sin la key (o 1) → un
1910
- * único fetch = comportamiento de master (aditivo, cero cambio por default).
1911
- * - `routes`: opt-in por ruta (`home`/`seccion`/`tema`/`ultimas-noticias`/
1912
- * `autor`/...). Solo las rutas en `true` se batchean; el resto hace fetch único.
1913
- *
1914
- * Unifica render y metadata: cuando una ruta está activa acá, tanto la lista
1915
- * visible como la derivación next/prev usan el MISMO `batches`, evitando el
1916
- * desajuste "next dice que hay más pero la página muestra un solo fetch".
1917
- * Reemplaza al legacy `CONFIG_sectionBatchedFetch`.
1918
- */
1919
- CONFIG_batchedFetch?: {
1920
- /** N fetches paralelos por lista. Default efectivo 3 si algo lo activa sin fijarlo. */
1921
- batches?: number;
1922
- /** Opt-in por ruta. Claves = route keys de `MetadataDefaultsKeys`. */
1923
- routes?: Record<string, boolean>;
1924
- };
1925
1829
  /**
1926
1830
  * [render] Cuando es `true`, `LandingTemplate` renderiza las cards de tipo
1927
1831
  * `imagen` con el fast-render HTML-string (`homeCardImagenToHTMLString`) en
@@ -3465,13 +3369,6 @@ export declare interface ResilientFetchOptions {
3465
3369
  maxDelayMs?: number;
3466
3370
  }
3467
3371
 
3468
- /**
3469
- * Conteo de batches efectivo leído de `getConfig().CONFIG_batchedFetch.batches`.
3470
- * Default `3` cuando algo activa el batch sin fijar el número (preserva el
3471
- * comportamiento histórico del path de metadata, cuyo default era 3).
3472
- */
3473
- export declare function resolveBatchCount(): number;
3474
-
3475
3372
  export declare function resolveBucketMenuSubtype(path?: string): string;
3476
3373
 
3477
3374
  /**