sass-template-common 0.1.11 → 0.1.13
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 +8 -36
- package/dist/sass-template-common.js +3489 -3592
- package/dist/sass-template-common.umd.cjs +37 -43
- package/package.json +1 -1
|
@@ -12,17 +12,12 @@ import { ReactNode } from 'react';
|
|
|
12
12
|
import { RefAttributes } from 'react';
|
|
13
13
|
import { TextareaHTMLAttributes } from 'react';
|
|
14
14
|
|
|
15
|
-
export declare function addComment({ publication, path, username, comment, id,
|
|
15
|
+
export declare function addComment({ publication, path, username, comment, id, recaptchaResponse, baseUrl, apiToken, securityToken, }: {
|
|
16
16
|
publication: string;
|
|
17
17
|
path: string;
|
|
18
18
|
username: string;
|
|
19
19
|
comment: string;
|
|
20
20
|
id?: string;
|
|
21
|
-
captchaEnvVars: {
|
|
22
|
-
CAPTCHA_PROJECT: string;
|
|
23
|
-
CAPTCHA_KEY_V2: string;
|
|
24
|
-
COMMENTS_CAPTCHA_API_KEY: string;
|
|
25
|
-
};
|
|
26
21
|
recaptchaResponse: string;
|
|
27
22
|
baseUrl: string;
|
|
28
23
|
apiToken: string;
|
|
@@ -285,9 +280,7 @@ export declare const compileStyleProps: (data: {
|
|
|
285
280
|
[key: string]: any;
|
|
286
281
|
};
|
|
287
282
|
|
|
288
|
-
export declare const Comscore: (
|
|
289
|
-
id?: string;
|
|
290
|
-
}) => "" | JSX.Element | undefined;
|
|
283
|
+
export declare const Comscore: () => any;
|
|
291
284
|
|
|
292
285
|
export declare type Config = {
|
|
293
286
|
paginationLimit: number;
|
|
@@ -655,7 +648,7 @@ export declare interface FreeZoneResponse {
|
|
|
655
648
|
};
|
|
656
649
|
}
|
|
657
650
|
|
|
658
|
-
export declare const GA4: ({ id, dimensionValues }: Props_2) =>
|
|
651
|
+
export declare const GA4: ({ id, dimensionValues }: Props_2) => any;
|
|
659
652
|
|
|
660
653
|
export declare const GalleryHeader: ({ newsformated, internal, }: {
|
|
661
654
|
newsformated: NewListResponseData;
|
|
@@ -666,7 +659,7 @@ export declare const generalGetData: (promiseArray: PromiseArray) => Promise<{
|
|
|
666
659
|
[key: string]: any;
|
|
667
660
|
}>;
|
|
668
661
|
|
|
669
|
-
export declare const GenerateBody: ({ children, defaultRouteName, banners, pathname, slug, config, internalPath,
|
|
662
|
+
export declare const GenerateBody: ({ children, defaultRouteName, banners, pathname, slug, config, internalPath, currentNew, tagsParsed, scriptReplaces, body_custom_elements, }: Props_4) => JSX.Element;
|
|
670
663
|
|
|
671
664
|
export declare function GenerateHead({ axiosApi, headConfig, meta, imgSizes, defaultMetadataName, pathname, slug, texts, query, currentNew, banners, internalPath, config, socials, speculationType, preloadImageUrl, custom_Speculation, custom_metadata, custom_scriptReplaces, head_custom_elements, }: Props_3): Promise<ReactNode>;
|
|
672
665
|
|
|
@@ -742,9 +735,7 @@ export declare function getVideoRealPath(pathname: string): {
|
|
|
742
735
|
op: string;
|
|
743
736
|
};
|
|
744
737
|
|
|
745
|
-
export declare const GTM: (
|
|
746
|
-
id?: string;
|
|
747
|
-
}) => JSX.Element;
|
|
738
|
+
export declare const GTM: () => JSX.Element;
|
|
748
739
|
|
|
749
740
|
export declare interface Hascontent {
|
|
750
741
|
hasgalleryvideosflash: boolean;
|
|
@@ -946,7 +937,7 @@ export declare const JournalistGroup: FC<Props_48>;
|
|
|
946
937
|
|
|
947
938
|
export declare const LayoutNewsComponent: FC<Props_45>;
|
|
948
939
|
|
|
949
|
-
export declare const LazyLoader: ({ render, internalPath, section, currentNews, stylesConfig, icon,
|
|
940
|
+
export declare const LazyLoader: ({ render, internalPath, section, currentNews, stylesConfig, icon, }: LazyLoaderProps) => JSX.Element;
|
|
950
941
|
|
|
951
942
|
declare type LazyLoaderProps = {
|
|
952
943
|
render: 'more' | 'comment';
|
|
@@ -963,11 +954,6 @@ declare type LazyLoaderProps = {
|
|
|
963
954
|
};
|
|
964
955
|
internalPath?: string;
|
|
965
956
|
icon?: ReactNode;
|
|
966
|
-
COGNITO_AUTH_PREFIX?: string;
|
|
967
|
-
captchaVars?: {
|
|
968
|
-
CAPTCHA_KEY_V2: string;
|
|
969
|
-
CAPTCHA_KEY: string;
|
|
970
|
-
};
|
|
971
957
|
};
|
|
972
958
|
|
|
973
959
|
export declare type LibraryConfig = {
|
|
@@ -1060,9 +1046,7 @@ export declare class MainComponentServices {
|
|
|
1060
1046
|
}>;
|
|
1061
1047
|
}
|
|
1062
1048
|
|
|
1063
|
-
export declare const Marfeel: (
|
|
1064
|
-
id?: string;
|
|
1065
|
-
}) => "" | JSX.Element | undefined;
|
|
1049
|
+
export declare const Marfeel: () => any;
|
|
1066
1050
|
|
|
1067
1051
|
export declare interface MenuResponse {
|
|
1068
1052
|
description: string;
|
|
@@ -1740,7 +1724,6 @@ declare type Props_4 = {
|
|
|
1740
1724
|
children: ReactNode;
|
|
1741
1725
|
defaultRouteName: MetadataDefaultsKeys;
|
|
1742
1726
|
banners: BannerResponse[];
|
|
1743
|
-
analytics: Analytics;
|
|
1744
1727
|
pathname: string;
|
|
1745
1728
|
config: Config;
|
|
1746
1729
|
slug?: string;
|
|
@@ -1872,7 +1855,6 @@ declare type Props_9 = {
|
|
|
1872
1855
|
schema: Function;
|
|
1873
1856
|
};
|
|
1874
1857
|
autorIcon: ReactNode;
|
|
1875
|
-
shareOnlyWhatsApp?: boolean;
|
|
1876
1858
|
noteShare?: NoteShare;
|
|
1877
1859
|
stylesConfig: {
|
|
1878
1860
|
[key: string]: any;
|
|
@@ -1882,11 +1864,6 @@ declare type Props_9 = {
|
|
|
1882
1864
|
paths: RoutePathConfig;
|
|
1883
1865
|
internalPath: string;
|
|
1884
1866
|
showComments?: boolean;
|
|
1885
|
-
COGNITO_AUTH_PREFIX?: string;
|
|
1886
|
-
captchaVars?: {
|
|
1887
|
-
CAPTCHA_KEY_V2: string;
|
|
1888
|
-
CAPTCHA_KEY: string;
|
|
1889
|
-
};
|
|
1890
1867
|
};
|
|
1891
1868
|
|
|
1892
1869
|
export declare const Readest: FC<Props_27>;
|
|
@@ -1928,7 +1905,7 @@ export declare const REPORT_REASONS: {
|
|
|
1928
1905
|
readonly bullying: "Bullying o acoso";
|
|
1929
1906
|
};
|
|
1930
1907
|
|
|
1931
|
-
export declare function reportComment({ publication, username, id, type, baseUrl, captchaToken,
|
|
1908
|
+
export declare function reportComment({ publication, username, id, type, baseUrl, captchaToken, apiToken, }: ReportCommentParams): Promise<{
|
|
1932
1909
|
type: string;
|
|
1933
1910
|
message: string;
|
|
1934
1911
|
status: number;
|
|
@@ -1943,11 +1920,6 @@ export declare interface ReportCommentParams {
|
|
|
1943
1920
|
baseUrl: string;
|
|
1944
1921
|
captchaToken: string;
|
|
1945
1922
|
apiToken: string;
|
|
1946
|
-
captchaEnvVars: {
|
|
1947
|
-
CAPTCHA_PROJECT: string;
|
|
1948
|
-
CAPTCHA_KEY_V2: string;
|
|
1949
|
-
COMMENTS_CAPTCHA_API_KEY: string;
|
|
1950
|
-
};
|
|
1951
1923
|
}
|
|
1952
1924
|
|
|
1953
1925
|
export declare type ReportReasonKey = keyof typeof REPORT_REASONS;
|