sass-template-common 0.1.95 → 0.1.97
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 +37 -3
- package/dist/sass-template-common.js +2679 -2654
- package/dist/sass-template-common.umd.cjs +19 -19
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { AxiosResponse } from 'axios';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
3
4
|
import { CSSProperties } from 'react';
|
|
4
5
|
import { default as default_2 } from 'react';
|
|
5
6
|
import { DetailedHTMLProps } from 'react';
|
|
@@ -10,6 +11,7 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
10
11
|
import { JSX as JSX_2 } from 'react';
|
|
11
12
|
import { ReactNode } from 'react';
|
|
12
13
|
import { RefAttributes } from 'react';
|
|
14
|
+
import { SVGProps } from 'react';
|
|
13
15
|
import { TextareaHTMLAttributes } from 'react';
|
|
14
16
|
|
|
15
17
|
export declare function addComment({ publication, path, username, comment, id, recaptchaResponse, baseUrl, apiToken, securityToken, COMMENTS_VARS, }: {
|
|
@@ -712,6 +714,18 @@ export declare const getNextMeta: (config: Config, paths: Array<string>, page: n
|
|
|
712
714
|
|
|
713
715
|
export declare const getPage: (pathname: string) => number;
|
|
714
716
|
|
|
717
|
+
/**
|
|
718
|
+
* Get the custom Play icon component if configured, otherwise return the default Play component
|
|
719
|
+
*
|
|
720
|
+
* @example
|
|
721
|
+
* // Server components
|
|
722
|
+
* const PlayIcon = getPlayIcon();
|
|
723
|
+
* return <PlayIcon className="my-class" />
|
|
724
|
+
*
|
|
725
|
+
* @returns ComponentType<SVGProps<SVGSVGElement>>
|
|
726
|
+
*/
|
|
727
|
+
export declare function getPlayIcon(): ComponentType<SVGProps<SVGSVGElement>>;
|
|
728
|
+
|
|
715
729
|
export declare const getPreloadImages: (list: NewListResponseData[], PRELOADED_IMAGES_AMOUNT?: number) => PreloadImage[];
|
|
716
730
|
|
|
717
731
|
export declare const getPrevMeta: (config: Config, paths: Array<string>, page: number) => string;
|
|
@@ -830,9 +844,10 @@ export declare type IDestacadoNoticias = {
|
|
|
830
844
|
'--news-section-news-content-gap-mobile'?: string;
|
|
831
845
|
} & OutstandingNewsCSS & SectionCardCSS & SectionCSS;
|
|
832
846
|
|
|
833
|
-
export declare const IframeHeader: ({ newsformated, internal, }: {
|
|
847
|
+
export declare const IframeHeader: ({ newsformated, internal, commonServices, }: {
|
|
834
848
|
newsformated: NewListResponseData;
|
|
835
849
|
internal?: string;
|
|
850
|
+
commonServices: CommonServices;
|
|
836
851
|
}) => Promise<JSX.Element | undefined>;
|
|
837
852
|
|
|
838
853
|
declare interface Image_2 {
|
|
@@ -1018,6 +1033,7 @@ export declare type LibraryConfig = {
|
|
|
1018
1033
|
CONFIG_hasSlugRoute?: boolean;
|
|
1019
1034
|
CONFIG_slugAsSection?: boolean;
|
|
1020
1035
|
CONFIG_shareOnlyWhatsApp?: boolean;
|
|
1036
|
+
CONFIG_blockDefaultSectionRoute?: boolean;
|
|
1021
1037
|
ANALYTICS_ga4?: string | undefined;
|
|
1022
1038
|
ANALYTICS_marfeel?: string | undefined;
|
|
1023
1039
|
ANALYTICS_gtm?: string | undefined;
|
|
@@ -1033,6 +1049,9 @@ export declare type LibraryConfig = {
|
|
|
1033
1049
|
SHOW_TAG_BY_SECTION?: boolean;
|
|
1034
1050
|
SHOW_NEWS_MORE_NEWS?: boolean;
|
|
1035
1051
|
SHOW_NEWS_RELATED_NEWS?: boolean;
|
|
1052
|
+
COMPONENTS?: {
|
|
1053
|
+
PlayIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
1054
|
+
};
|
|
1036
1055
|
};
|
|
1037
1056
|
|
|
1038
1057
|
export declare interface Link {
|
|
@@ -1568,6 +1587,7 @@ declare type Props_10 = {
|
|
|
1568
1587
|
paths: RoutePathConfig;
|
|
1569
1588
|
internalPath: string;
|
|
1570
1589
|
showComments?: boolean;
|
|
1590
|
+
commonServices?: CommonServices;
|
|
1571
1591
|
COMMENTS_VARS?: {
|
|
1572
1592
|
COGNITO_AUTH_PREFIX: string;
|
|
1573
1593
|
CAPTCHA_KEY_V2: string;
|
|
@@ -2296,6 +2316,18 @@ export declare function TrimPathname(url: string): string;
|
|
|
2296
2316
|
|
|
2297
2317
|
export declare const urlReplaces: (internalPath: string) => string;
|
|
2298
2318
|
|
|
2319
|
+
/**
|
|
2320
|
+
* Hook to get the Play icon component (for use in client components)
|
|
2321
|
+
*
|
|
2322
|
+
* @example
|
|
2323
|
+
* // Client components ('use client')
|
|
2324
|
+
* const PlayIcon = usePlayIcon();
|
|
2325
|
+
* return <PlayIcon className="my-class" />
|
|
2326
|
+
*
|
|
2327
|
+
* @returns ComponentType<SVGProps<SVGSVGElement>>
|
|
2328
|
+
*/
|
|
2329
|
+
export declare function usePlayIcon(): ComponentType<SVGProps<SVGSVGElement>>;
|
|
2330
|
+
|
|
2299
2331
|
export declare interface UserType {
|
|
2300
2332
|
username: string;
|
|
2301
2333
|
firstname: string;
|
|
@@ -2323,9 +2355,10 @@ export declare const VideoBlock3: FC<Props_34>;
|
|
|
2323
2355
|
|
|
2324
2356
|
export declare const VideoBlock4: FC<Props_47>;
|
|
2325
2357
|
|
|
2326
|
-
export declare const VideoEmbeddedHeader: ({ newsformated, internal, }: {
|
|
2358
|
+
export declare const VideoEmbeddedHeader: ({ newsformated, internal, commonServices, }: {
|
|
2327
2359
|
newsformated: NewListResponseData;
|
|
2328
2360
|
internal?: string;
|
|
2361
|
+
commonServices: CommonServices;
|
|
2329
2362
|
}) => Promise<JSX.Element | undefined>;
|
|
2330
2363
|
|
|
2331
2364
|
export declare interface VideoItem {
|
|
@@ -2387,9 +2420,10 @@ export declare const VideoSection: FC<Props_14>;
|
|
|
2387
2420
|
|
|
2388
2421
|
export declare const VideosSchemas: ({ realPath, config, axiosApi }: VideoSchemasProps) => Promise<JSX.Element | null | undefined>;
|
|
2389
2422
|
|
|
2390
|
-
export declare const VideoYoutubeHeader: ({ newsformated, internal, }: {
|
|
2423
|
+
export declare const VideoYoutubeHeader: ({ newsformated, internal, commonServices, }: {
|
|
2391
2424
|
newsformated: NewListResponseData;
|
|
2392
2425
|
internal?: string;
|
|
2426
|
+
commonServices: CommonServices;
|
|
2393
2427
|
}) => Promise<JSX.Element | undefined>;
|
|
2394
2428
|
|
|
2395
2429
|
export declare const WebsiteList: ({ config }: {
|