sass-template-common 0.3.26 → 0.3.28
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 +13 -42
- package/dist/sass-template-common.js +2970 -2945
- package/dist/sass-template-common.umd.cjs +30 -30
- package/package.json +1 -1
|
@@ -51,21 +51,6 @@ export declare type Analytics = {
|
|
|
51
51
|
comscore: string | undefined;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
declare type APIEnvConfig = {
|
|
55
|
-
PUBLIC_ENV: string;
|
|
56
|
-
PUBLIC_LNG: string;
|
|
57
|
-
DATE_TIMEZONE: string;
|
|
58
|
-
PUBLIC_ASSETS_URL: string;
|
|
59
|
-
PUBLIC_API_HOST: string;
|
|
60
|
-
PUBLIC_API_FRONT?: string;
|
|
61
|
-
PUBLIC_X_SECURITY_TOKEN?: string;
|
|
62
|
-
PUBLIC_API_PATH_VERSION?: string;
|
|
63
|
-
PUBLIC_PUBLICATION_ID?: string;
|
|
64
|
-
SHOW_TAG_BY_SECTION?: boolean;
|
|
65
|
-
newsType?: string;
|
|
66
|
-
imgSizes?: string;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
54
|
export declare const AssetsPreconnect: () => false | "" | JSX.Element | undefined;
|
|
70
55
|
|
|
71
56
|
export declare interface Author {
|
|
@@ -539,6 +524,11 @@ declare interface External_2 {
|
|
|
539
524
|
|
|
540
525
|
export declare function extractRealtedNews(article: NewListResponseData): Array<Array<string>>;
|
|
541
526
|
|
|
527
|
+
declare type FetchConfig = {
|
|
528
|
+
imgSizes: string;
|
|
529
|
+
newsType: string;
|
|
530
|
+
};
|
|
531
|
+
|
|
542
532
|
export declare const Font: ({ config }: {
|
|
543
533
|
config: Config;
|
|
544
534
|
}) => JSX.Element;
|
|
@@ -707,7 +697,7 @@ export declare function GenerateHead({ axiosApi, headConfig, meta, imgSizes, def
|
|
|
707
697
|
*/
|
|
708
698
|
export declare const getCaptchaToken: (captchaAction: captchaActionType, siteKey: string) => Promise<string>;
|
|
709
699
|
|
|
710
|
-
export declare function getComments({ publication, path, size, sizereply, id, lastid, state, apiToken, }: GetCommentsParams): Promise<any>;
|
|
700
|
+
export declare function getComments({ publication, path, size, sizereply, id, lastid, state, apiToken, API_ENV, }: GetCommentsParams): Promise<any>;
|
|
711
701
|
|
|
712
702
|
export declare interface GetCommentsParams {
|
|
713
703
|
publication: string;
|
|
@@ -718,6 +708,7 @@ export declare interface GetCommentsParams {
|
|
|
718
708
|
lastid?: string;
|
|
719
709
|
state?: string;
|
|
720
710
|
apiToken: string;
|
|
711
|
+
API_ENV: LibraryConfig;
|
|
721
712
|
}
|
|
722
713
|
|
|
723
714
|
export declare function getConfig(): LibraryConfig;
|
|
@@ -785,7 +776,7 @@ export declare function getVideoRealPath(pathname: string): {
|
|
|
785
776
|
|
|
786
777
|
export declare const GTM: () => "" | JSX.Element | undefined;
|
|
787
778
|
|
|
788
|
-
export declare function handleGetComments({ publication, path, size, sizereply, id, lastid, state, apiToken, }: GetCommentsParams): Promise<any>;
|
|
779
|
+
export declare function handleGetComments({ publication, path, size, sizereply, id, lastid, state, apiToken, API_ENV, }: GetCommentsParams): Promise<any>;
|
|
789
780
|
|
|
790
781
|
export declare interface Hascontent {
|
|
791
782
|
hasgalleryvideosflash: boolean;
|
|
@@ -1011,34 +1002,21 @@ export declare const JournalistGroup: FC<Props_48>;
|
|
|
1011
1002
|
|
|
1012
1003
|
export declare const LayoutNewsComponent: FC<Props_45>;
|
|
1013
1004
|
|
|
1014
|
-
export declare const LazyLoader: ({ render, internalPath, section, currentNews, stylesConfig, icon, isVisibleDefault, paths,
|
|
1005
|
+
export declare const LazyLoader: ({ render, internalPath, section, currentNews, stylesConfig, icon, isVisibleDefault, paths, API_ENV, fetchConfig, }: LazyLoaderProps) => JSX.Element;
|
|
1015
1006
|
|
|
1016
1007
|
declare type LazyLoaderProps = {
|
|
1017
1008
|
render: 'more' | 'comment';
|
|
1018
1009
|
section?: string;
|
|
1019
1010
|
currentNews?: NewListResponseData;
|
|
1020
|
-
config?: {
|
|
1021
|
-
apiUrl: string;
|
|
1022
|
-
publication: number;
|
|
1023
|
-
imagesizes: string;
|
|
1024
|
-
apiToken: string;
|
|
1025
|
-
};
|
|
1026
1011
|
stylesConfig?: {
|
|
1027
1012
|
[key: string]: any;
|
|
1028
1013
|
};
|
|
1029
1014
|
internalPath?: string;
|
|
1030
1015
|
icon?: ReactNode;
|
|
1031
1016
|
isVisibleDefault?: boolean;
|
|
1032
|
-
COMMENTS_VARS?: {
|
|
1033
|
-
COGNITO_AUTH_PREFIX: string;
|
|
1034
|
-
CAPTCHA_KEY_V2: string;
|
|
1035
|
-
};
|
|
1036
1017
|
paths: RoutePathConfig;
|
|
1037
|
-
API_ENV
|
|
1038
|
-
|
|
1039
|
-
PUBLIC_LNG: string;
|
|
1040
|
-
DATE_TIMEZONE: string;
|
|
1041
|
-
};
|
|
1018
|
+
API_ENV: LibraryConfig;
|
|
1019
|
+
fetchConfig: FetchConfig;
|
|
1042
1020
|
};
|
|
1043
1021
|
|
|
1044
1022
|
export declare type LibraryConfig = {
|
|
@@ -1632,15 +1610,8 @@ declare type Props_10 = {
|
|
|
1632
1610
|
internalPath: string;
|
|
1633
1611
|
showComments?: boolean;
|
|
1634
1612
|
commonServices: CommonServices;
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
CAPTCHA_KEY_V2: string;
|
|
1638
|
-
};
|
|
1639
|
-
API_ENV: APIEnvConfig;
|
|
1640
|
-
DATE_CONFIG?: {
|
|
1641
|
-
PUBLIC_LNG: string;
|
|
1642
|
-
DATE_TIMEZONE: string;
|
|
1643
|
-
};
|
|
1613
|
+
API_ENV: LibraryConfig;
|
|
1614
|
+
fetchConfig: FetchConfig;
|
|
1644
1615
|
headerSectionStyles?: {
|
|
1645
1616
|
common: CSSProperties;
|
|
1646
1617
|
liveblogs: CSSProperties;
|