sass-template-common 0.9.194 → 0.9.195
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 +17 -2
- package/dist/sass-template-common.js +201 -201
- package/dist/sass-template-common.umd.cjs +12 -12
- package/package.json +1 -1
|
@@ -1010,7 +1010,7 @@ export declare const getEnvironmentUrl: () => string | undefined;
|
|
|
1010
1010
|
|
|
1011
1011
|
export declare const getEnvironmentUrlFront: () => string | undefined;
|
|
1012
1012
|
|
|
1013
|
-
export declare function getFrontPrefix(): string;
|
|
1013
|
+
export declare function getFrontPrefix(cfg?: PrefixConfig): string;
|
|
1014
1014
|
|
|
1015
1015
|
export declare const getHydratorPath: (props: Props_3) => string;
|
|
1016
1016
|
|
|
@@ -1054,7 +1054,7 @@ export declare const getScriptReplaces: {
|
|
|
1054
1054
|
[key in MetadataDefaultsKeys]: (props: Props_6) => replaces | undefined;
|
|
1055
1055
|
};
|
|
1056
1056
|
|
|
1057
|
-
export declare function getServicePrefix(): string;
|
|
1057
|
+
export declare function getServicePrefix(cfg?: PrefixConfig): string;
|
|
1058
1058
|
|
|
1059
1059
|
export declare const getSlugs: {
|
|
1060
1060
|
[key in MetadataDefaultsKeys]: any;
|
|
@@ -2116,6 +2116,18 @@ export declare const pathnameSplit: (pathname: string) => {
|
|
|
2116
2116
|
*/
|
|
2117
2117
|
export declare const pickBannerVariant: (value: string, scope?: BannerScope) => string;
|
|
2118
2118
|
|
|
2119
|
+
/**
|
|
2120
|
+
* Subconjunto de config necesario para resolver prefijos.
|
|
2121
|
+
* Se acepta como argumento opcional para poder usar estos helpers en
|
|
2122
|
+
* componentes client (donde `getConfig()` no está inicializado y la config
|
|
2123
|
+
* llega vía prop `API_ENV`). Si no se pasa, cae en `getConfig()` (server).
|
|
2124
|
+
*/
|
|
2125
|
+
declare type PrefixConfig = {
|
|
2126
|
+
PUBLIC_SERVICE_PREFIX?: string;
|
|
2127
|
+
PUBLIC_IS_SUB_PUBLICATION?: string;
|
|
2128
|
+
FORCE_SUB_PUBLICATION_PREFIX?: string;
|
|
2129
|
+
};
|
|
2130
|
+
|
|
2119
2131
|
export declare interface PreloadImage {
|
|
2120
2132
|
href: string;
|
|
2121
2133
|
media?: string;
|
|
@@ -2247,6 +2259,9 @@ declare type Props_14 = {
|
|
|
2247
2259
|
COGNITO_AUTH_PREFIX: string;
|
|
2248
2260
|
PUBLIC_ENV: string;
|
|
2249
2261
|
CAPTCHA_KEY: string;
|
|
2262
|
+
PUBLIC_SERVICE_PREFIX?: string;
|
|
2263
|
+
PUBLIC_IS_SUB_PUBLICATION?: string;
|
|
2264
|
+
FORCE_SUB_PUBLICATION_PREFIX?: string;
|
|
2250
2265
|
};
|
|
2251
2266
|
texts?: textsType;
|
|
2252
2267
|
};
|