sass-template-common 0.9.131 → 0.9.132
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 +28 -2
- package/dist/sass-template-common.js +3920 -3888
- package/dist/sass-template-common.umd.cjs +34 -34
- package/package.json +1 -1
|
@@ -104,9 +104,9 @@ export declare interface AutorInfo {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
export declare const BannerAdvertising: ({ banners, name }: Props_28) => JSX.Element | null;
|
|
107
|
+
export declare const BannerAdvertising: ({ banners, name, scope }: Props_28) => JSX.Element | null;
|
|
108
108
|
|
|
109
|
-
export declare const BannerAdvertisingMiddle: ({ banners, index }: Props_27) => JSX.Element | null;
|
|
109
|
+
export declare const BannerAdvertisingMiddle: ({ banners, index, scope }: Props_27) => JSX.Element | null;
|
|
110
110
|
|
|
111
111
|
export declare interface BannerResponse {
|
|
112
112
|
key: string;
|
|
@@ -120,6 +120,16 @@ export declare interface BannerResponse {
|
|
|
120
120
|
show: boolean;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
export declare type BannerScope = {
|
|
124
|
+
type: 'general';
|
|
125
|
+
} | {
|
|
126
|
+
type: 'seccion';
|
|
127
|
+
value: string;
|
|
128
|
+
} | {
|
|
129
|
+
type: 'tema';
|
|
130
|
+
value: number;
|
|
131
|
+
};
|
|
132
|
+
|
|
123
133
|
export declare const bannersReplace: (bannerLineAd: string, replaces?: {
|
|
124
134
|
[key: string]: string;
|
|
125
135
|
}) => string;
|
|
@@ -978,6 +988,8 @@ export declare const getEnvironmentUrl: () => string | undefined;
|
|
|
978
988
|
|
|
979
989
|
export declare const getEnvironmentUrlFront: () => string | undefined;
|
|
980
990
|
|
|
991
|
+
export declare function getFrontPrefix(): string;
|
|
992
|
+
|
|
981
993
|
export declare const getHydratorPath: (props: Props_3) => string;
|
|
982
994
|
|
|
983
995
|
export declare const getImageUrl: (imageUrl: string) => Promise<string>;
|
|
@@ -1020,6 +1032,8 @@ export declare const getScriptReplaces: {
|
|
|
1020
1032
|
[key in MetadataDefaultsKeys]: (props: Props_6) => replaces | undefined;
|
|
1021
1033
|
};
|
|
1022
1034
|
|
|
1035
|
+
export declare function getServicePrefix(): string;
|
|
1036
|
+
|
|
1023
1037
|
export declare const getSlugs: {
|
|
1024
1038
|
[key in MetadataDefaultsKeys]: any;
|
|
1025
1039
|
};
|
|
@@ -1300,6 +1314,7 @@ export declare type LibraryConfig = {
|
|
|
1300
1314
|
PUBLIC_LNG?: string;
|
|
1301
1315
|
PUBLIC_SERVICE_PREFIX?: string;
|
|
1302
1316
|
PUBLIC_IS_SUB_PUBLICATION?: string;
|
|
1317
|
+
FORCE_SUB_PUBLICATION_PREFIX?: string;
|
|
1303
1318
|
PUBLIC_USERNAME_OFFLINE?: string;
|
|
1304
1319
|
PUBLIC_PASSWORD_OFFLINE?: string;
|
|
1305
1320
|
PUBLIC_IS_OFFLINE?: string;
|
|
@@ -1325,6 +1340,7 @@ export declare type LibraryConfig = {
|
|
|
1325
1340
|
CONFIG_shareOnlyWhatsApp?: boolean;
|
|
1326
1341
|
CONFIG_blockDefaultSectionRoute?: boolean;
|
|
1327
1342
|
CONFIG_videoClipUrl?: string;
|
|
1343
|
+
CONFIG_newNoteBannersIndexing?: boolean;
|
|
1328
1344
|
PAGE_SWIPER?: {
|
|
1329
1345
|
home: boolean;
|
|
1330
1346
|
autor: boolean;
|
|
@@ -2052,6 +2068,14 @@ export declare const pathnameSplit: (pathname: string) => {
|
|
|
2052
2068
|
path: string;
|
|
2053
2069
|
};
|
|
2054
2070
|
|
|
2071
|
+
/**
|
|
2072
|
+
* Selecciona la variante de HTML del banner según el scope.
|
|
2073
|
+
* - Si el value no tiene markers [tag]...[/tag] → devuelve value as-is (legacy).
|
|
2074
|
+
* - Si tiene markers → busca match exacto por scope; fallback a [general]; si no hay nada, ''.
|
|
2075
|
+
* Los markers se eliminan del output: solo se devuelve el contenido interno.
|
|
2076
|
+
*/
|
|
2077
|
+
export declare const pickBannerVariant: (value: string, scope?: BannerScope) => string;
|
|
2078
|
+
|
|
2055
2079
|
export declare interface PreloadImage {
|
|
2056
2080
|
href: string;
|
|
2057
2081
|
media?: string;
|
|
@@ -2268,11 +2292,13 @@ declare type Props_26 = {
|
|
|
2268
2292
|
declare type Props_27 = {
|
|
2269
2293
|
banners: Array<BannerResponse>;
|
|
2270
2294
|
index: string | number;
|
|
2295
|
+
scope?: BannerScope;
|
|
2271
2296
|
};
|
|
2272
2297
|
|
|
2273
2298
|
declare type Props_28 = {
|
|
2274
2299
|
banners: Array<BannerResponse>;
|
|
2275
2300
|
name: string;
|
|
2301
|
+
scope?: BannerScope;
|
|
2276
2302
|
};
|
|
2277
2303
|
|
|
2278
2304
|
declare type Props_29 = {
|