sass-template-common 0.11.1 → 0.11.11
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/sass-template-common.d.ts +32 -0
- package/dist/sass-template-common.js +1420 -1407
- package/dist/sass-template-common.umd.cjs +24 -24
- package/package.json +1 -1
|
@@ -2617,6 +2617,17 @@ export declare const normalizeRankingList: (list: unknown, options?: NormalizeRa
|
|
|
2617
2617
|
export declare type NormalizeRankingOptions = {
|
|
2618
2618
|
/** Prefijo de la ruta de ficha de video. Default: `video`. */
|
|
2619
2619
|
videoPath?: string;
|
|
2620
|
+
/**
|
|
2621
|
+
* Sección sintética para las entradas de video, que no tienen una propia (el
|
|
2622
|
+
* bucket las manda como `section: { name: null }`). `name` sale de los textos
|
|
2623
|
+
* del sitio y `url` de `paths.videos`; si falta cualquiera de los dos el video
|
|
2624
|
+
* queda sin chip en vez de enlazar a una ruta inventada.
|
|
2625
|
+
*/
|
|
2626
|
+
videoSection?: {
|
|
2627
|
+
name?: string;
|
|
2628
|
+
url?: string;
|
|
2629
|
+
slug?: string;
|
|
2630
|
+
};
|
|
2620
2631
|
};
|
|
2621
2632
|
|
|
2622
2633
|
/**
|
|
@@ -3020,6 +3031,11 @@ declare type Props_29 = {
|
|
|
3020
3031
|
speculationPrerenderClass?: string;
|
|
3021
3032
|
/** Prefijo de la ficha de video para las entradas de video del ranking. */
|
|
3022
3033
|
videoPath?: string;
|
|
3034
|
+
/**
|
|
3035
|
+
* Label del chip de video. Default: `videosSectionTitle` de los textos del
|
|
3036
|
+
* idioma activo. Los sitios lo pasan desde su propio `getTexts()`.
|
|
3037
|
+
*/
|
|
3038
|
+
videosSectionLabel?: string;
|
|
3023
3039
|
};
|
|
3024
3040
|
|
|
3025
3041
|
declare type Props_3 = {
|
|
@@ -3211,6 +3227,8 @@ declare type Props_47 = {
|
|
|
3211
3227
|
ranking: Array<NewListResponseData>;
|
|
3212
3228
|
paths: RoutePathConfig;
|
|
3213
3229
|
readestCustomStyles?: CSSProperties;
|
|
3230
|
+
/** Label del chip de sección de los videos del ranking (textos del sitio). */
|
|
3231
|
+
videosSectionLabel?: string;
|
|
3214
3232
|
};
|
|
3215
3233
|
|
|
3216
3234
|
declare type Props_48 = {
|
|
@@ -3515,6 +3533,12 @@ export declare interface RoutePathConfig {
|
|
|
3515
3533
|
contacto?: string | 'contacto';
|
|
3516
3534
|
anuncia?: string | 'anuncia';
|
|
3517
3535
|
'ultimas-noticias': string | 'ultimas-noticias';
|
|
3536
|
+
/**
|
|
3537
|
+
* Segmento del listado de videos. Opcional a propósito: es lo que habilita el
|
|
3538
|
+
* chip de sección en las entradas de video del ranking, y no todos los sitios
|
|
3539
|
+
* tienen la ruta. Sin él no se inventa un `/videos` que daría 404.
|
|
3540
|
+
*/
|
|
3541
|
+
videos?: string | 'videos';
|
|
3518
3542
|
}
|
|
3519
3543
|
|
|
3520
3544
|
export declare function runConfigOriginComparison(params: {
|
|
@@ -3844,6 +3868,12 @@ export declare type TextsListsAndSearch = {
|
|
|
3844
3868
|
relatedNewsTitle: string;
|
|
3845
3869
|
moreNewsTitle: string;
|
|
3846
3870
|
searchKeyWord: string;
|
|
3871
|
+
/**
|
|
3872
|
+
* Label del chip de sección de las entradas de video del ranking (las notas
|
|
3873
|
+
* traen la sección del CMS; los videos no tienen una). Opcional: sin valor el
|
|
3874
|
+
* video queda sin chip en vez de mostrar un texto inventado.
|
|
3875
|
+
*/
|
|
3876
|
+
videosSectionTitle?: string;
|
|
3847
3877
|
};
|
|
3848
3878
|
|
|
3849
3879
|
/** Etiquetas de segmentos de URL (paths) */
|
|
@@ -3853,6 +3883,8 @@ export declare type TextsPathLabels = {
|
|
|
3853
3883
|
buscar: string;
|
|
3854
3884
|
seccion: string;
|
|
3855
3885
|
'ultimas-noticias': string;
|
|
3886
|
+
/** Listado de videos. Opcional: no todos los sitios tienen la ruta. */
|
|
3887
|
+
videos?: string;
|
|
3856
3888
|
};
|
|
3857
3889
|
|
|
3858
3890
|
/** Cinta de ediciones y copyright */
|