sass-template-common 0.17.2 → 0.18.0
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/README.md +36 -36
- package/dist/sass-template-common.css +1 -1
- package/dist/sass-template-common.d.ts +62 -1
- package/dist/sass-template-common.js +2127 -2071
- package/dist/sass-template-common.umd.cjs +43 -43
- package/dist/ui/components/blocks_dynamic/blocks_dynamic.css +1 -1
- package/dist/ui/components/blocks_dynamic/destacadoNoticiasFullWidth/components-blocks_dynamic-destacadoNoticiasFullWidth.css +1 -1
- package/package.json +71 -71
|
@@ -260,6 +260,17 @@ export declare interface BlockSaasResponseData {
|
|
|
260
260
|
news?: NewListResponse | undefined;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
export declare type BreadcrumbListSchema = {
|
|
264
|
+
'@context': 'https://schema.org';
|
|
265
|
+
'@type': 'BreadcrumbList';
|
|
266
|
+
itemListElement: Array<{
|
|
267
|
+
'@type': 'ListItem';
|
|
268
|
+
position: number;
|
|
269
|
+
name: string;
|
|
270
|
+
item?: string;
|
|
271
|
+
}>;
|
|
272
|
+
};
|
|
273
|
+
|
|
263
274
|
/**
|
|
264
275
|
* Ruta del recurso en el bucket: `${clientName}/${site}/${type}/${subtype}/${subtype}.json`,
|
|
265
276
|
* donde `site` = `forceSite` ?? `servicePrefix` ?? `clientName` (ver `forceSite`).
|
|
@@ -823,6 +834,7 @@ export declare type Config = {
|
|
|
823
834
|
configVersion?: string;
|
|
824
835
|
cookieName?: string;
|
|
825
836
|
clipUrl?: string;
|
|
837
|
+
newsArticuleId?: string;
|
|
826
838
|
schemasNewsParams?: {
|
|
827
839
|
includebody?: boolean;
|
|
828
840
|
includedatecreated?: boolean;
|
|
@@ -835,6 +847,18 @@ export declare type Config = {
|
|
|
835
847
|
addressCountry: string;
|
|
836
848
|
};
|
|
837
849
|
orgSoftware?: Array<SoftwareApplicationData>;
|
|
850
|
+
/**
|
|
851
|
+
* Opt-in: JSON-LD completo de la organización. Si está seteado, OrgList lo
|
|
852
|
+
* emite tal cual en lugar de construir el schema a partir de name/siteUrl/socials.
|
|
853
|
+
*/
|
|
854
|
+
NewsMediaOrganization?: NewsMediaOrganizationSchema;
|
|
855
|
+
/**
|
|
856
|
+
* Opt-in: BreadcrumbList de la nota. Si está seteado, NewsArticle lo usa en
|
|
857
|
+
* lugar de pedir `/news-breadcrumb`. Placeholders soportados en `name`/`item`:
|
|
858
|
+
* [SITE_NAME], [SECCION_NAME], [SECCION], [TAG_NAME], [TAG_URL],
|
|
859
|
+
* [NEWS_TITLE], [NEWS_URL].
|
|
860
|
+
*/
|
|
861
|
+
BreadcrumbList?: BreadcrumbListSchema;
|
|
838
862
|
};
|
|
839
863
|
|
|
840
864
|
declare type Config_2 = {
|
|
@@ -3178,7 +3202,7 @@ declare interface News {
|
|
|
3178
3202
|
|
|
3179
3203
|
export declare const News_Content: (props: Props_12) => Promise<JSX.Element | undefined>;
|
|
3180
3204
|
|
|
3181
|
-
export declare const NewsArticle: ({ realPath, config, BASE_URL, axiosApi, schemasCustomEndpoints, }: NewsArticleProps) => Promise<JSX.Element[]>;
|
|
3205
|
+
export declare const NewsArticle: ({ realPath, config, BASE_URL, axiosApi, schemasCustomEndpoints, currentNew, }: NewsArticleProps) => Promise<JSX.Element[]>;
|
|
3182
3206
|
|
|
3183
3207
|
declare interface NewsArticleProps {
|
|
3184
3208
|
realPath: string;
|
|
@@ -3186,6 +3210,7 @@ declare interface NewsArticleProps {
|
|
|
3186
3210
|
BASE_URL: string;
|
|
3187
3211
|
axiosApi: AxiosInstance;
|
|
3188
3212
|
schemasCustomEndpoints?: string[];
|
|
3213
|
+
currentNew?: NewListResponseData;
|
|
3189
3214
|
}
|
|
3190
3215
|
|
|
3191
3216
|
export declare const NewsComponent: (props: Props_11) => Promise<JSX.Element | undefined>;
|
|
@@ -3239,6 +3264,42 @@ declare type NewsDescriptionProps = {
|
|
|
3239
3264
|
speculationPrerenderClass?: string;
|
|
3240
3265
|
} & NewListResponseData;
|
|
3241
3266
|
|
|
3267
|
+
export declare type NewsMediaOrganizationNode = {
|
|
3268
|
+
'@type': 'NewsMediaOrganization';
|
|
3269
|
+
'@id': string;
|
|
3270
|
+
name?: string;
|
|
3271
|
+
description?: string;
|
|
3272
|
+
url?: string;
|
|
3273
|
+
email?: string;
|
|
3274
|
+
logo?: {
|
|
3275
|
+
'@type': 'ImageObject';
|
|
3276
|
+
url: string;
|
|
3277
|
+
width?: number;
|
|
3278
|
+
height?: number;
|
|
3279
|
+
};
|
|
3280
|
+
address?: {
|
|
3281
|
+
'@type': 'PostalAddress';
|
|
3282
|
+
streetAddress?: string;
|
|
3283
|
+
addressLocality?: string;
|
|
3284
|
+
postalCode?: string;
|
|
3285
|
+
addressCountry?: string;
|
|
3286
|
+
};
|
|
3287
|
+
parentOrganization?: {
|
|
3288
|
+
'@id': string;
|
|
3289
|
+
};
|
|
3290
|
+
subOrganization?: Array<NewsMediaOrganizationNode>;
|
|
3291
|
+
sameAs?: Array<string>;
|
|
3292
|
+
[key: string]: unknown;
|
|
3293
|
+
};
|
|
3294
|
+
|
|
3295
|
+
/** Soporta un @graph con varios nodos o un único nodo en la raíz. */
|
|
3296
|
+
export declare type NewsMediaOrganizationSchema = {
|
|
3297
|
+
'@context': 'https://schema.org';
|
|
3298
|
+
'@graph': Array<NewsMediaOrganizationNode>;
|
|
3299
|
+
} | ({
|
|
3300
|
+
'@context': 'https://schema.org';
|
|
3301
|
+
} & NewsMediaOrganizationNode);
|
|
3302
|
+
|
|
3242
3303
|
export declare interface NewsResponse {
|
|
3243
3304
|
success: boolean;
|
|
3244
3305
|
site: string;
|