sass-template-common 0.9.231 → 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 +53 -2
- package/dist/sass-template-common.js +1310 -1263
- package/dist/sass-template-common.umd.cjs +23 -23
- package/package.json +1 -1
|
@@ -144,6 +144,34 @@ export declare type BannerScope = {
|
|
|
144
144
|
value: number;
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
+
export declare const BannersPreconnect: ({ gpt, googleAds, syndication, adsense, }: BannersPreconnectProps) => JSX.Element;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* BannersPreconnect — resource hints (preconnect / dns-prefetch) para el stack
|
|
151
|
+
* de publicidad de Google Ad Manager (GPT). Migrado desde el preconnect
|
|
152
|
+
* hardcodeado que vivía en los sitios (ej. saas-redmas-astro
|
|
153
|
+
* `components/temporal/BannersPreconnect.astro`).
|
|
154
|
+
*
|
|
155
|
+
* NO incluye el preconnect a `PUBLIC_ASSETS_URL`: eso ya lo emite
|
|
156
|
+
* `AssetsPreconnect` dentro de `GenerateHead`. Este componente es SOLO de
|
|
157
|
+
* banners/ads.
|
|
158
|
+
*
|
|
159
|
+
* Cada dominio se controla con su propio flag de `headConfig`. Base = todo en
|
|
160
|
+
* `false`; cada sitio prende los que usa (un sitio con GAM completo los prende
|
|
161
|
+
* todos). Sin gate de entorno: al igual que el resto de flags de `headConfig`
|
|
162
|
+
* (schemas, preloadImages, amp), lo que se configura es lo que se emite.
|
|
163
|
+
*/
|
|
164
|
+
declare type BannersPreconnectProps = {
|
|
165
|
+
/** securepubads.g.doubleclick.net — requests de GPT (googletag). */
|
|
166
|
+
gpt?: boolean;
|
|
167
|
+
/** googleads.g.doubleclick.net — serving / clicks de Google Ads. */
|
|
168
|
+
googleAds?: boolean;
|
|
169
|
+
/** tpc.googlesyndication.com — render de creatividades (SafeFrame). */
|
|
170
|
+
syndication?: boolean;
|
|
171
|
+
/** pagead2.googlesyndication.com — AdSense/GPT (hint liviano: dns-prefetch). */
|
|
172
|
+
adsense?: boolean;
|
|
173
|
+
};
|
|
174
|
+
|
|
147
175
|
export declare const bannersReplace: (bannerLineAd: string, replaces?: {
|
|
148
176
|
[key: string]: string;
|
|
149
177
|
}) => string;
|
|
@@ -752,6 +780,15 @@ export declare const DebugStore: {
|
|
|
752
780
|
|
|
753
781
|
export declare function decodeApiEnv<T = any>(encoded: Record<string, any>): T;
|
|
754
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
|
+
|
|
755
792
|
declare type DestacadoDiario = {
|
|
756
793
|
customSectionCardStyles: SectionCardCSS;
|
|
757
794
|
customNewsDescriptionStyles: NewsDescriptionBlockCSS;
|
|
@@ -1057,7 +1094,7 @@ export declare const generalGetData: (promiseArray: PromiseArray) => Promise<{
|
|
|
1057
1094
|
|
|
1058
1095
|
export declare const GenerateBody: ({ children, defaultRouteName, banners, pathname, slug, config, internalPath, currentNew, tagsParsed, scriptReplaces, body_custom_elements, }: Props_5) => JSX.Element;
|
|
1059
1096
|
|
|
1060
|
-
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>;
|
|
1061
1098
|
|
|
1062
1099
|
/**
|
|
1063
1100
|
* Helper para conseguir el recaptcha token usando grecaptcha.enterprise
|
|
@@ -1206,6 +1243,20 @@ export declare type headConfig = {
|
|
|
1206
1243
|
schemas_Videos: boolean;
|
|
1207
1244
|
schemas_WebsiteList: boolean;
|
|
1208
1245
|
schemas_SoftwareApplication: boolean;
|
|
1246
|
+
/**
|
|
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
|
|
1250
|
+
* que usa.
|
|
1251
|
+
*/
|
|
1252
|
+
/** preconnect a securepubads.g.doubleclick.net (GPT). */
|
|
1253
|
+
bannersPreconnect_gpt?: boolean;
|
|
1254
|
+
/** preconnect a googleads.g.doubleclick.net (Google Ads). */
|
|
1255
|
+
bannersPreconnect_googleAds?: boolean;
|
|
1256
|
+
/** preconnect a tpc.googlesyndication.com (SafeFrame). */
|
|
1257
|
+
bannersPreconnect_syndication?: boolean;
|
|
1258
|
+
/** dns-prefetch a pagead2.googlesyndication.com (AdSense/GPT). */
|
|
1259
|
+
bannersPreconnect_adsense?: boolean;
|
|
1209
1260
|
};
|
|
1210
1261
|
|
|
1211
1262
|
export declare const Header: default_2.FC<HeaderProps>;
|
|
@@ -2639,7 +2690,7 @@ declare type Props_4 = {
|
|
|
2639
2690
|
'[url_replace]': string;
|
|
2640
2691
|
};
|
|
2641
2692
|
custom_Speculation?: string;
|
|
2642
|
-
headConfig?: headConfig
|
|
2693
|
+
headConfig?: Partial<headConfig>;
|
|
2643
2694
|
head_custom_elements?: any;
|
|
2644
2695
|
schemasCustomEndpoints?: string[];
|
|
2645
2696
|
};
|