@20minutes/tyr 0.1.92 → 0.1.94
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/assets/main/concern.d.ts +3 -0
- package/dist/assets/main/digiteka.d.ts +1 -0
- package/dist/assets/main/fingerPrint.d.ts +2 -0
- package/dist/assets/main/gcse.d.ts +1 -0
- package/dist/assets/main/headerMini.d.ts +1 -0
- package/dist/assets/main/initMainScripts.d.ts +6 -0
- package/dist/assets/main/lazy.d.ts +4 -0
- package/dist/assets/main/outbrain.d.ts +1 -0
- package/dist/assets/thirdParties/ads/adSlotsKeyValues.d.ts +1 -0
- package/dist/assets/thirdParties/ads/dfpAdSlots.d.ts +7 -0
- package/dist/assets/thirdParties/ads/dfpCall.d.ts +2 -0
- package/dist/assets/thirdParties/ads/dfpConfig.d.ts +1 -0
- package/dist/assets/thirdParties/ads/dfpDatalayerAdapter.d.ts +2 -0
- package/dist/assets/thirdParties/ads/initAds.d.ts +6 -0
- package/dist/assets/thirdParties/ads/placeholderHandler.d.ts +1 -0
- package/dist/assets/thirdParties/ads/types/AdSizesType.d.ts +84 -0
- package/dist/assets/thirdParties/ads/types/SlotType.d.ts +5 -0
- package/dist/assets/thirdParties/ads/types/TargetingType.d.ts +26 -0
- package/dist/assets/thirdParties/ads/types/index.d.ts +3 -0
- package/dist/assets/thirdParties/atinternet/eventTracking.d.ts +8 -0
- package/dist/assets/thirdParties/cmp/consentListeners.d.ts +1 -0
- package/dist/assets/thirdParties/cmp/dailyConsent.d.ts +1 -0
- package/dist/assets/thirdParties/cmp/initCmp.d.ts +3 -0
- package/dist/assets/thirdParties/cmp/items.d.ts +3 -0
- package/dist/assets/thirdParties/cmp/noticeListeners.d.ts +1 -0
- package/dist/assets/thirdParties/cmp/partnersHandler.d.ts +1 -0
- package/dist/components/atoms/Didomi/Didomi.d.ts +1 -1
- package/dist/components/atoms/DraftToHtml/DraftToHtml.d.ts +7 -0
- package/dist/components/atoms/DraftToHtml/index.d.ts +1 -0
- package/dist/components/atoms/GooglePublisherTags/GooglePublisherTags.d.ts +1 -1
- package/dist/components/atoms/Hubvisor/Hubvisor.d.ts +1 -1
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/molecules/ArticleContent/ArticleContent.d.ts +8 -0
- package/dist/components/molecules/ArticleContent/index.d.ts +1 -0
- package/dist/components/molecules/ArticleSummary/ArticleSummary.d.ts +7 -0
- package/dist/components/molecules/ArticleSummary/index.d.ts +1 -0
- package/dist/components/molecules/HeaderPage/HeaderPage.d.ts +7 -0
- package/dist/components/molecules/HeaderPage/index.d.ts +1 -0
- package/dist/components/molecules/HoroscopeHomepageContent/HoroscopeHomepageContent.d.ts +1 -1
- package/dist/components/molecules/InfoBanner/InfoBanner.d.ts +7 -0
- package/dist/components/molecules/InfoBanner/index.d.ts +1 -0
- package/dist/components/molecules/index.d.ts +4 -0
- package/dist/components/organisms/ArticlePage/ArticleMobileHeader/ArticleMobileHeader.d.ts +1 -1
- package/dist/components/organisms/ArticlePage/LiveBlock/LiveBlock.d.ts +1 -1
- package/dist/components/organisms/ArticlePage/ReadAlsoBlock/ReadAlsoBlock.d.ts +1 -1
- package/dist/components/organisms/ArticlePage/RubricsCarousels/RubricsCarousels.d.ts +1 -1
- package/dist/components/organisms/ArticlePage/SideBrandsArticles/SideBrandsArticles.d.ts +1 -1
- package/dist/containers/BreakingNewsBannerContainer/BreakingNewsBannerContainer.d.ts +2 -0
- package/dist/containers/BreakingNewsBannerContainer/index.d.ts +1 -0
- package/dist/containers/SmartBannerContainer/SmartBannerContainer.d.ts +2 -0
- package/dist/containers/SmartBannerContainer/index.d.ts +1 -0
- package/dist/css/articlePage-desktop-critical.css +1 -1
- package/dist/css/articlePage-desktop-no-critical.css +1 -1
- package/dist/css/articlePage-mobile-critical.css +1 -1
- package/dist/css/articlePage-mobile-no-critical.css +1 -1
- package/dist/css/errorPage-desktop-critical.css +1 -1
- package/dist/css/errorPage-desktop-no-critical.css +1 -1
- package/dist/css/errorPage-mobile-critical.css +1 -1
- package/dist/css/errorPage-mobile-no-critical.css +1 -1
- package/dist/css/global.css +1 -1
- package/dist/css/horoscopePage-desktop-critical.css +1 -1
- package/dist/css/horoscopePage-desktop-no-critical.css +1 -1
- package/dist/css/horoscopePage-mobile-critical.css +1 -1
- package/dist/css/horoscopePage-mobile-no-critical.css +1 -1
- package/dist/css/horoscopehomePage-desktop-critical.css +1 -1
- package/dist/css/horoscopehomePage-desktop-no-critical.css +1 -1
- package/dist/css/horoscopehomePage-mobile-critical.css +1 -1
- package/dist/css/horoscopehomePage-mobile-no-critical.css +1 -1
- package/dist/css/searchPage-desktop-critical.css +1 -1
- package/dist/css/searchPage-desktop-no-critical.css +1 -1
- package/dist/css/searchPage-mobile-critical.css +1 -1
- package/dist/css/searchPage-mobile-no-critical.css +1 -1
- package/dist/css/tagPage-desktop-critical.css +1 -1
- package/dist/css/tagPage-desktop-no-critical.css +1 -1
- package/dist/css/tagPage-mobile-critical.css +1 -1
- package/dist/css/tagPage-mobile-no-critical.css +1 -1
- package/dist/helpers/assetsHelper.d.ts +2 -2
- package/dist/helpers/draftjsHtmlHelper.d.ts +2 -0
- package/dist/helpers/hasVideoHelper.d.ts +1 -0
- package/dist/helpers/scriptHelper.d.ts +6 -0
- package/dist/helpers/string.d.ts +0 -1
- package/dist/index.es.js +43487 -53478
- package/dist/index.umd.js +135 -261
- package/dist/js/atinternet.min.js +1 -1
- package/dist/js/cmp.min.js +1 -1
- package/dist/js/main.min.js +2 -75
- package/dist/templates/HtmlTemplate/HtmlTemplate.d.ts +1 -1
- package/dist/templates/PageTemplate/PageTemplate.d.ts +1 -1
- package/dist/types/ComponentConfig.d.ts +1 -1
- package/dist/types/ThirdParties/AtInternet.d.ts +56 -0
- package/dist/types/ThirdParties/Cmp/Didomi.d.ts +31 -0
- package/dist/types/ThirdParties/Cmp/VariablesCmpType.d.ts +8 -0
- package/dist/types/ThirdParties/Cmp/index.d.ts +2 -0
- package/dist/types/ThirdParties/Hubvisor.d.ts +4 -0
- package/dist/types/ThirdParties/index.d.ts +3 -0
- package/package.json +6 -2
- package/dist/assets/thirdParties/helpers.d.ts +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initUltimedia: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initSearchInput: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const loadHeaderMini: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initOutbrain: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const setAdSlotsKeyValues: () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TargetingType } from '../../../assets/thirdParties/ads/types';
|
|
2
|
+
export declare const adDefinedEvent = "adDefined";
|
|
3
|
+
export declare const initDfpSlot: ({ slot, targeting, }: {
|
|
4
|
+
slot: HTMLDivElement;
|
|
5
|
+
targeting?: Partial<TargetingType> | undefined;
|
|
6
|
+
}) => string | undefined;
|
|
7
|
+
export declare const setDfpSlots: (targeting?: Partial<TargetingType>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const setDfpConfig: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const getHubvisorInlineScript: (options?: {
|
|
2
|
+
pubId: string;
|
|
3
|
+
}) => string;
|
|
4
|
+
export declare const googlePublisherTagsInlineScript = "window.googletag = window.googletag || { cmd: [] };";
|
|
5
|
+
export declare const loadHubvisorAndgooglePublisherTagsScript: () => void;
|
|
6
|
+
export declare const initAds: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const placeholderHandler: () => void;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare const adSizesList: {
|
|
2
|
+
desktop: {
|
|
3
|
+
article: {
|
|
4
|
+
BAN_ATF: string;
|
|
5
|
+
BAN_BTF: string;
|
|
6
|
+
BAN_MTF: string;
|
|
7
|
+
INREAD: string;
|
|
8
|
+
INSTREAM_DESKTOP: string;
|
|
9
|
+
PAVE_ARTICLE: string;
|
|
10
|
+
PAVE_ATF: string;
|
|
11
|
+
PAVE_BTF: string;
|
|
12
|
+
PAVE_COM: string;
|
|
13
|
+
PAVE_MTF: string;
|
|
14
|
+
};
|
|
15
|
+
divers: {
|
|
16
|
+
BAN_ATF: string;
|
|
17
|
+
BAN_BTF: string;
|
|
18
|
+
BAN_MTF: string;
|
|
19
|
+
INREAD: string;
|
|
20
|
+
PAVE_ARTICLE: string;
|
|
21
|
+
PAVE_ATF: string;
|
|
22
|
+
PAVE_BTF: string;
|
|
23
|
+
PAVE_COM: string;
|
|
24
|
+
PAVE_MTF: string;
|
|
25
|
+
};
|
|
26
|
+
horoscope: {
|
|
27
|
+
BAN_ATF: string;
|
|
28
|
+
BAN_BTF: string;
|
|
29
|
+
BAN_MTF: string;
|
|
30
|
+
INREAD: string;
|
|
31
|
+
PAVE_ARTICLE: string;
|
|
32
|
+
PAVE_ATF: string;
|
|
33
|
+
PAVE_BTF: string;
|
|
34
|
+
PAVE_COM: string;
|
|
35
|
+
PAVE_MTF: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
mobile: {
|
|
39
|
+
article: {
|
|
40
|
+
ARTICLE_ATF: string;
|
|
41
|
+
ARTICLE_BTF: string;
|
|
42
|
+
ARTICLE_MTF: string;
|
|
43
|
+
HEADER_AD: string;
|
|
44
|
+
INREAD: string;
|
|
45
|
+
INSTREAM_DESKTOP: string;
|
|
46
|
+
INTRASTITIEL_GAG: string;
|
|
47
|
+
INTRASTITIEL_PROG: string;
|
|
48
|
+
PAVE_COM: string;
|
|
49
|
+
};
|
|
50
|
+
divers: {
|
|
51
|
+
ARTICLE_ATF: string;
|
|
52
|
+
ARTICLE_BTF: string;
|
|
53
|
+
ARTICLE_MTF: string;
|
|
54
|
+
HEADER_AD: string;
|
|
55
|
+
INREAD: string;
|
|
56
|
+
INTRASTITIEL_GAG: string;
|
|
57
|
+
INTRASTITIEL_PROG: string;
|
|
58
|
+
NFB_1: string;
|
|
59
|
+
NFB_2: string;
|
|
60
|
+
};
|
|
61
|
+
horoscope: {
|
|
62
|
+
ARTICLE_ATF: string;
|
|
63
|
+
ARTICLE_BTF: string;
|
|
64
|
+
ARTICLE_MTF: string;
|
|
65
|
+
HEADER_AD: string;
|
|
66
|
+
INREAD: string;
|
|
67
|
+
INTRASTITIEL_GAG: string;
|
|
68
|
+
INTRASTITIEL_PROG: string;
|
|
69
|
+
NFB_1: string;
|
|
70
|
+
NFB_2: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
declare enum AdPagesTypeEnum {
|
|
75
|
+
'article' = 0,
|
|
76
|
+
'divers' = 1,
|
|
77
|
+
'horoscope' = 2
|
|
78
|
+
}
|
|
79
|
+
export type AdSizesType = {
|
|
80
|
+
desktop: keyof (typeof adSizesList)['desktop']['article'] & keyof (typeof adSizesList)['desktop']['divers'] & keyof (typeof adSizesList)['desktop']['horoscope'];
|
|
81
|
+
mobile: keyof (typeof adSizesList)['mobile']['article'] & keyof (typeof adSizesList)['mobile']['divers'] & keyof (typeof adSizesList)['mobile']['horoscope'];
|
|
82
|
+
};
|
|
83
|
+
export type AdPagesType = keyof typeof AdPagesTypeEnum;
|
|
84
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum PageType {
|
|
2
|
+
UNKNOWN = "Non connu",
|
|
3
|
+
SLIDESHOW_COVER = "Slideshow cover",
|
|
4
|
+
SLIDESHOW_COVER_LISTING_PAGE = "Slideshow listing page",
|
|
5
|
+
SLIDESHOW_PAGE = "Slideshow page",
|
|
6
|
+
ARTICLE = "article",
|
|
7
|
+
MISC = "divers",
|
|
8
|
+
HOME = "home",
|
|
9
|
+
LIVE = "live",
|
|
10
|
+
SECTION = "section",
|
|
11
|
+
TAG = "tag"
|
|
12
|
+
}
|
|
13
|
+
export declare enum TagsType {
|
|
14
|
+
MISC = "divers",
|
|
15
|
+
HOME = "home",
|
|
16
|
+
LOCAL = "local",
|
|
17
|
+
PLANET = "plan\u00E8te"
|
|
18
|
+
}
|
|
19
|
+
export declare enum TargetingKeys {
|
|
20
|
+
PAGETYPE = "pageType",
|
|
21
|
+
TAGS = "tags"
|
|
22
|
+
}
|
|
23
|
+
export type TargetingType = {
|
|
24
|
+
pageType: string;
|
|
25
|
+
tags: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const sendClickTracking: ({ element, name, type, chapter1, chapter3, chapter2, }: {
|
|
2
|
+
element: HTMLElement;
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
chapter1?: string | undefined;
|
|
6
|
+
chapter2?: string | undefined;
|
|
7
|
+
chapter3?: string | undefined;
|
|
8
|
+
}) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initCommonListeners: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dailyConsentHandler: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initNoticeListeners: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const connectPartnersToCmp: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const Didomi: React.FC;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BoxProps } from '@20minutes/hela';
|
|
2
|
+
import type { RawDraftContentState } from 'draft-js';
|
|
3
|
+
export type DraftToHtmlOptions = {
|
|
4
|
+
draftContent: RawDraftContentState;
|
|
5
|
+
};
|
|
6
|
+
export type DraftToHtmlProps = BoxProps & DraftToHtmlOptions;
|
|
7
|
+
export declare const DraftToHtml: import("@20minutes/hela").ComponentWithAs<"div", DraftToHtmlProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DraftToHtml';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const GooglePublisherTags: React.FC;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const Hubvisor: React.FC;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ColorSchemeBrand, ColorSchemeTheme } from '@20minutes/hela';
|
|
3
|
+
import type { RawDraftContentState } from 'draft-js';
|
|
4
|
+
export interface ArticleContentProps {
|
|
5
|
+
content: RawDraftContentState;
|
|
6
|
+
colorScheme?: ColorSchemeTheme | ColorSchemeBrand;
|
|
7
|
+
}
|
|
8
|
+
export declare const ArticleContent: React.FC<ArticleContentProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ArticleContent';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ArticleSummaryProps as ArticleSummaryUIProps } from '@20minutes/hela';
|
|
3
|
+
import type { RawDraftContentState } from 'draft-js';
|
|
4
|
+
export interface ArticleSummaryProps extends Omit<ArticleSummaryUIProps, 'summary'> {
|
|
5
|
+
summary?: RawDraftContentState;
|
|
6
|
+
}
|
|
7
|
+
export declare const ArticleSummary: React.FC<ArticleSummaryProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ArticleSummary';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HeaderPageProps as HeaderPagePropsUIProps } from '@20minutes/hela';
|
|
3
|
+
import type { RawDraftContentState } from 'draft-js';
|
|
4
|
+
export interface HeaderPageProps extends Omit<HeaderPagePropsUIProps, 'subtitle'> {
|
|
5
|
+
subtitle?: string | RawDraftContentState;
|
|
6
|
+
}
|
|
7
|
+
export declare const HeaderPage: React.FC<HeaderPageProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HeaderPage';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayoutType } from '@20minutes/hela';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import type { HeaderBannerProps, HoroscopeTopicCardProps, LinkProps } from '@20minutes/hela';
|
|
4
4
|
export interface HoroscopeHomepageContentProps {
|
|
5
5
|
signsContent: {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { InfoBannerProps as InfoBannerUIProps } from '@20minutes/hela';
|
|
3
|
+
import type { RawDraftContentState } from 'draft-js';
|
|
4
|
+
export interface InfoBannerProps extends Omit<InfoBannerUIProps, 'description'> {
|
|
5
|
+
description: string | RawDraftContentState;
|
|
6
|
+
}
|
|
7
|
+
export declare const InfoBanner: React.FC<InfoBannerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoBanner';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BreakingNewsBannerContainer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SmartBannerContainer';
|