sass-template-common 0.1.96 → 0.1.98
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 +30 -0
- package/dist/sass-template-common.js +2507 -2508
- 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;
|
|
@@ -1019,6 +1033,7 @@ export declare type LibraryConfig = {
|
|
|
1019
1033
|
CONFIG_hasSlugRoute?: boolean;
|
|
1020
1034
|
CONFIG_slugAsSection?: boolean;
|
|
1021
1035
|
CONFIG_shareOnlyWhatsApp?: boolean;
|
|
1036
|
+
CONFIG_blockDefaultSectionRoute?: boolean;
|
|
1022
1037
|
ANALYTICS_ga4?: string | undefined;
|
|
1023
1038
|
ANALYTICS_marfeel?: string | undefined;
|
|
1024
1039
|
ANALYTICS_gtm?: string | undefined;
|
|
@@ -1034,6 +1049,9 @@ export declare type LibraryConfig = {
|
|
|
1034
1049
|
SHOW_TAG_BY_SECTION?: boolean;
|
|
1035
1050
|
SHOW_NEWS_MORE_NEWS?: boolean;
|
|
1036
1051
|
SHOW_NEWS_RELATED_NEWS?: boolean;
|
|
1052
|
+
COMPONENTS?: {
|
|
1053
|
+
PlayIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
1054
|
+
};
|
|
1037
1055
|
};
|
|
1038
1056
|
|
|
1039
1057
|
export declare interface Link {
|
|
@@ -2298,6 +2316,18 @@ export declare function TrimPathname(url: string): string;
|
|
|
2298
2316
|
|
|
2299
2317
|
export declare const urlReplaces: (internalPath: string) => string;
|
|
2300
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
|
+
|
|
2301
2331
|
export declare interface UserType {
|
|
2302
2332
|
username: string;
|
|
2303
2333
|
firstname: string;
|