sass-template-common 0.9.232 → 0.9.233
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 +14 -5
- package/dist/sass-template-common.js +985 -983
- package/dist/sass-template-common.umd.cjs +22 -22
- package/package.json +1 -1
|
@@ -780,6 +780,15 @@ export declare const DebugStore: {
|
|
|
780
780
|
|
|
781
781
|
export declare function decodeApiEnv<T = any>(encoded: Record<string, any>): T;
|
|
782
782
|
|
|
783
|
+
/**
|
|
784
|
+
* Defaults del `headConfig`. `GenerateHead` mergea el `headConfig` recibido
|
|
785
|
+
* sobre estos (`{ ...DEFAULT_HEAD_CONFIG, ...headConfig }`), así el consumidor
|
|
786
|
+
* puede pasar solo los campos que quiere overridear (partial) y la librería
|
|
787
|
+
* rellena el resto. Base: schemas Autor + WebsiteList on, resto off, banner
|
|
788
|
+
* preconnects off.
|
|
789
|
+
*/
|
|
790
|
+
export declare const DEFAULT_HEAD_CONFIG: headConfig;
|
|
791
|
+
|
|
783
792
|
declare type DestacadoDiario = {
|
|
784
793
|
customSectionCardStyles: SectionCardCSS;
|
|
785
794
|
customNewsDescriptionStyles: NewsDescriptionBlockCSS;
|
|
@@ -1085,7 +1094,7 @@ export declare const generalGetData: (promiseArray: PromiseArray) => Promise<{
|
|
|
1085
1094
|
|
|
1086
1095
|
export declare const GenerateBody: ({ children, defaultRouteName, banners, pathname, slug, config, internalPath, currentNew, tagsParsed, scriptReplaces, body_custom_elements, }: Props_5) => JSX.Element;
|
|
1087
1096
|
|
|
1088
|
-
export declare function GenerateHead({ axiosApi, headConfig, meta, imgSizes, defaultMetadataName, pathname, slug, texts, query, autor, listAutor, currentNew, banners, schemasImages, internalPath, meta_info, config, socials, speculationType, preloadImageUrl, custom_Speculation, custom_metadata, custom_scriptReplaces, head_custom_elements, schemasCustomEndpoints, }: Props_4): Promise<ReactNode>;
|
|
1097
|
+
export declare function GenerateHead({ axiosApi, headConfig: headConfigInput, meta, imgSizes, defaultMetadataName, pathname, slug, texts, query, autor, listAutor, currentNew, banners, schemasImages, internalPath, meta_info, config, socials, speculationType, preloadImageUrl, custom_Speculation, custom_metadata, custom_scriptReplaces, head_custom_elements, schemasCustomEndpoints, }: Props_4): Promise<ReactNode>;
|
|
1089
1098
|
|
|
1090
1099
|
/**
|
|
1091
1100
|
* Helper para conseguir el recaptcha token usando grecaptcha.enterprise
|
|
@@ -1235,9 +1244,9 @@ export declare type headConfig = {
|
|
|
1235
1244
|
schemas_WebsiteList: boolean;
|
|
1236
1245
|
schemas_SoftwareApplication: boolean;
|
|
1237
1246
|
/**
|
|
1238
|
-
* Banner/ads preconnect (stack GPT/GAM). Opcionales
|
|
1239
|
-
*
|
|
1240
|
-
* NO emite nada (
|
|
1247
|
+
* Banner/ads preconnect (stack GPT/GAM). Opcionales: `GenerateHead` mergea el
|
|
1248
|
+
* `headConfig` recibido sobre `DEFAULT_HEAD_CONFIG`, así el que no los define
|
|
1249
|
+
* hereda `false` y NO emite nada (retrocompatible). Cada sitio opta por los
|
|
1241
1250
|
* que usa.
|
|
1242
1251
|
*/
|
|
1243
1252
|
/** preconnect a securepubads.g.doubleclick.net (GPT). */
|
|
@@ -2681,7 +2690,7 @@ declare type Props_4 = {
|
|
|
2681
2690
|
'[url_replace]': string;
|
|
2682
2691
|
};
|
|
2683
2692
|
custom_Speculation?: string;
|
|
2684
|
-
headConfig?: headConfig
|
|
2693
|
+
headConfig?: Partial<headConfig>;
|
|
2685
2694
|
head_custom_elements?: any;
|
|
2686
2695
|
schemasCustomEndpoints?: string[];
|
|
2687
2696
|
};
|