sass-template-common 0.19.2 → 0.19.4
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.css +1 -1
- package/dist/sass-template-common.d.ts +42 -3
- package/dist/sass-template-common.js +2780 -2631
- package/dist/sass-template-common.umd.cjs +39 -39
- package/dist/ui/components/block_main_dynamic/block_main_dynamic.css +1 -1
- package/dist/ui/components/block_main_dynamic/destacado-diario/components-block_main_dynamic-destacado-diario.css +1 -1
- package/dist/ui/components/block_main_dynamic/destacado-diario-live/components-block_main_dynamic-destacado-diario-live.css +1 -1
- package/dist/ui/components/blocks_dynamic/blocks_dynamic.css +1 -1
- package/dist/ui/components/blocks_static/moduloBlockNews/components-blocks_static-moduloBlockNews.css +1 -1
- package/dist/ui/components/blocks_static/moduloOpinion/components-blocks_static-moduloOpinion.css +1 -1
- package/dist/ui/components/common/cards/option-card-1/cards-option-card-1.css +1 -1
- package/dist/ui/components/common/cards/section-card-6/cards-section-card-6.css +1 -1
- package/dist/ui/components/common/social-follow/social-follow.css +1 -0
- package/package.json +1 -1
|
@@ -1178,6 +1178,11 @@ export declare interface DestacadoDiarioLiveProps extends SectionCardProps, NewD
|
|
|
1178
1178
|
heightImageOverwrite?: string;
|
|
1179
1179
|
heightImageOverwriteMobile?: string;
|
|
1180
1180
|
texts?: textsType;
|
|
1181
|
+
/** Muestra la barra "Seguinos" debajo de la nota principal. Apagada por defecto. */
|
|
1182
|
+
showSocialFollow?: boolean;
|
|
1183
|
+
/** Redes que pinta la barra (solo con `showSocialFollow`). */
|
|
1184
|
+
socials?: Socials;
|
|
1185
|
+
socialFollowTitle?: string;
|
|
1181
1186
|
}
|
|
1182
1187
|
|
|
1183
1188
|
export declare const DestacadoNoticias: FC<DestacadoNoticiasProps>;
|
|
@@ -1296,6 +1301,19 @@ export declare function emptyNewListResponse(): NewListResponse;
|
|
|
1296
1301
|
|
|
1297
1302
|
export declare function encodeApiEnv<T extends Record<string, any>>(env: T): Record<string, any>;
|
|
1298
1303
|
|
|
1304
|
+
/**
|
|
1305
|
+
* Fallbacks de la nota de detalle. Los tipos declaran estos campos requeridos,
|
|
1306
|
+
* pero el CMS real los manda con otro tipo en notas mal cargadas:
|
|
1307
|
+
* - `authors: false` (visto en geek: DEFAULT-el-podcast-GEEK-...-20220129-0001)
|
|
1308
|
+
* → `(authors ?? []).filter` tira TypeError, `commonNewsServices` rechaza y
|
|
1309
|
+
* el sitio ve la nota como ausente (404).
|
|
1310
|
+
* - `main.subtitle` ausente → el render lo lee sin `?.` con `showsubtitle`.
|
|
1311
|
+
* - `keywords.tags[i].name` ausente → `buildTagUrl` hace `name.normalize`.
|
|
1312
|
+
* `??` no cubre `false`, por eso se valida el tipo. Muta y devuelve la misma
|
|
1313
|
+
* entidad para que `news[0]` y `currentNew` sigan siendo el mismo objeto.
|
|
1314
|
+
*/
|
|
1315
|
+
export declare function ensureNewsEntity<T>(entity: T): T;
|
|
1316
|
+
|
|
1299
1317
|
/** El CMS manda `preview: false` cuando la nota no tiene imagen. `??` no lo cubre. */
|
|
1300
1318
|
export declare function ensurePreview(value: unknown): Preview;
|
|
1301
1319
|
|
|
@@ -2202,7 +2220,7 @@ export declare function joinFrontPrefix(base: string | undefined, prefix: string
|
|
|
2202
2220
|
|
|
2203
2221
|
export declare const JournalistArticule2: FC<Props_50>;
|
|
2204
2222
|
|
|
2205
|
-
export declare const JournalistArticule5: FC<
|
|
2223
|
+
export declare const JournalistArticule5: FC<Props_56>;
|
|
2206
2224
|
|
|
2207
2225
|
export declare const JournalistGroup: FC<Props_51>;
|
|
2208
2226
|
|
|
@@ -2709,6 +2727,11 @@ export declare interface MainBlock1Props extends SectionCardProps, NewDescriptio
|
|
|
2709
2727
|
heightImageOverwrite?: string;
|
|
2710
2728
|
heightImageOverwriteMobile?: string;
|
|
2711
2729
|
speculationPrerenderClass?: string;
|
|
2730
|
+
/** Muestra la barra "Seguinos" debajo de la nota principal. Apagada por defecto. */
|
|
2731
|
+
showSocialFollow?: boolean;
|
|
2732
|
+
/** Redes que pinta la barra (solo con `showSocialFollow`). */
|
|
2733
|
+
socials?: Socials;
|
|
2734
|
+
socialFollowTitle?: string;
|
|
2712
2735
|
}
|
|
2713
2736
|
|
|
2714
2737
|
export declare class MainComponentServices {
|
|
@@ -4134,13 +4157,20 @@ declare type Props_53 = {
|
|
|
4134
4157
|
};
|
|
4135
4158
|
|
|
4136
4159
|
declare type Props_54 = {
|
|
4160
|
+
socials?: Socials;
|
|
4161
|
+
/** Texto a la izquierda de los iconos. */
|
|
4162
|
+
title?: string;
|
|
4163
|
+
className?: string;
|
|
4164
|
+
};
|
|
4165
|
+
|
|
4166
|
+
declare type Props_55 = {
|
|
4137
4167
|
googleSourceShare?: string;
|
|
4138
4168
|
googleProfile?: string;
|
|
4139
4169
|
whatsAppShare?: string;
|
|
4140
4170
|
text: textsType;
|
|
4141
4171
|
};
|
|
4142
4172
|
|
|
4143
|
-
declare type
|
|
4173
|
+
declare type Props_56 = {
|
|
4144
4174
|
news: NewListResponseData;
|
|
4145
4175
|
socials: any;
|
|
4146
4176
|
autorIcon: ReactNode;
|
|
@@ -4636,6 +4666,8 @@ declare interface SectionCardCarouselProps extends Omit<SectionProps, 'children'
|
|
|
4636
4666
|
autorIcon: ReactNode;
|
|
4637
4667
|
paths: RoutePathConfig;
|
|
4638
4668
|
speculationPrerenderClass?: string;
|
|
4669
|
+
/** Foto y nombre del autor en la misma fila en cada card. Apagado por defecto. */
|
|
4670
|
+
authorInline?: boolean;
|
|
4639
4671
|
}
|
|
4640
4672
|
|
|
4641
4673
|
declare interface SectionCardChipCSS {
|
|
@@ -4786,6 +4818,13 @@ declare interface Social {
|
|
|
4786
4818
|
tags: boolean;
|
|
4787
4819
|
}
|
|
4788
4820
|
|
|
4821
|
+
/**
|
|
4822
|
+
* Barra "Seguinos:" con las redes del sitio. Pinta solo las redes con
|
|
4823
|
+
* `show` y `url`, en el orden de la config. Las que no tienen icono propio
|
|
4824
|
+
* caen al set general de `SocialIcons`. Sin redes visibles no pinta nada.
|
|
4825
|
+
*/
|
|
4826
|
+
export declare const SocialFollow: FC<Props_54>;
|
|
4827
|
+
|
|
4789
4828
|
export declare const socialIcons: {
|
|
4790
4829
|
[key: string]: any;
|
|
4791
4830
|
};
|
|
@@ -4835,7 +4874,7 @@ export declare type SoftwareApplicationData = {
|
|
|
4835
4874
|
contentRating?: string;
|
|
4836
4875
|
};
|
|
4837
4876
|
|
|
4838
|
-
export declare function SourceButtons({ googleSourceShare, googleProfile, whatsAppShare, text, }:
|
|
4877
|
+
export declare function SourceButtons({ googleSourceShare, googleProfile, whatsAppShare, text, }: Props_55): JSX.Element;
|
|
4839
4878
|
|
|
4840
4879
|
export declare type SourceButtonsType = {
|
|
4841
4880
|
sourceButtons?: {
|