@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.
Files changed (97) hide show
  1. package/dist/assets/main/concern.d.ts +3 -0
  2. package/dist/assets/main/digiteka.d.ts +1 -0
  3. package/dist/assets/main/fingerPrint.d.ts +2 -0
  4. package/dist/assets/main/gcse.d.ts +1 -0
  5. package/dist/assets/main/headerMini.d.ts +1 -0
  6. package/dist/assets/main/initMainScripts.d.ts +6 -0
  7. package/dist/assets/main/lazy.d.ts +4 -0
  8. package/dist/assets/main/outbrain.d.ts +1 -0
  9. package/dist/assets/thirdParties/ads/adSlotsKeyValues.d.ts +1 -0
  10. package/dist/assets/thirdParties/ads/dfpAdSlots.d.ts +7 -0
  11. package/dist/assets/thirdParties/ads/dfpCall.d.ts +2 -0
  12. package/dist/assets/thirdParties/ads/dfpConfig.d.ts +1 -0
  13. package/dist/assets/thirdParties/ads/dfpDatalayerAdapter.d.ts +2 -0
  14. package/dist/assets/thirdParties/ads/initAds.d.ts +6 -0
  15. package/dist/assets/thirdParties/ads/placeholderHandler.d.ts +1 -0
  16. package/dist/assets/thirdParties/ads/types/AdSizesType.d.ts +84 -0
  17. package/dist/assets/thirdParties/ads/types/SlotType.d.ts +5 -0
  18. package/dist/assets/thirdParties/ads/types/TargetingType.d.ts +26 -0
  19. package/dist/assets/thirdParties/ads/types/index.d.ts +3 -0
  20. package/dist/assets/thirdParties/atinternet/eventTracking.d.ts +8 -0
  21. package/dist/assets/thirdParties/cmp/consentListeners.d.ts +1 -0
  22. package/dist/assets/thirdParties/cmp/dailyConsent.d.ts +1 -0
  23. package/dist/assets/thirdParties/cmp/initCmp.d.ts +3 -0
  24. package/dist/assets/thirdParties/cmp/items.d.ts +3 -0
  25. package/dist/assets/thirdParties/cmp/noticeListeners.d.ts +1 -0
  26. package/dist/assets/thirdParties/cmp/partnersHandler.d.ts +1 -0
  27. package/dist/components/atoms/Didomi/Didomi.d.ts +1 -1
  28. package/dist/components/atoms/DraftToHtml/DraftToHtml.d.ts +7 -0
  29. package/dist/components/atoms/DraftToHtml/index.d.ts +1 -0
  30. package/dist/components/atoms/GooglePublisherTags/GooglePublisherTags.d.ts +1 -1
  31. package/dist/components/atoms/Hubvisor/Hubvisor.d.ts +1 -1
  32. package/dist/components/atoms/index.d.ts +1 -0
  33. package/dist/components/molecules/ArticleContent/ArticleContent.d.ts +8 -0
  34. package/dist/components/molecules/ArticleContent/index.d.ts +1 -0
  35. package/dist/components/molecules/ArticleSummary/ArticleSummary.d.ts +7 -0
  36. package/dist/components/molecules/ArticleSummary/index.d.ts +1 -0
  37. package/dist/components/molecules/HeaderPage/HeaderPage.d.ts +7 -0
  38. package/dist/components/molecules/HeaderPage/index.d.ts +1 -0
  39. package/dist/components/molecules/HoroscopeHomepageContent/HoroscopeHomepageContent.d.ts +1 -1
  40. package/dist/components/molecules/InfoBanner/InfoBanner.d.ts +7 -0
  41. package/dist/components/molecules/InfoBanner/index.d.ts +1 -0
  42. package/dist/components/molecules/index.d.ts +4 -0
  43. package/dist/components/organisms/ArticlePage/ArticleMobileHeader/ArticleMobileHeader.d.ts +1 -1
  44. package/dist/components/organisms/ArticlePage/LiveBlock/LiveBlock.d.ts +1 -1
  45. package/dist/components/organisms/ArticlePage/ReadAlsoBlock/ReadAlsoBlock.d.ts +1 -1
  46. package/dist/components/organisms/ArticlePage/RubricsCarousels/RubricsCarousels.d.ts +1 -1
  47. package/dist/components/organisms/ArticlePage/SideBrandsArticles/SideBrandsArticles.d.ts +1 -1
  48. package/dist/containers/BreakingNewsBannerContainer/BreakingNewsBannerContainer.d.ts +2 -0
  49. package/dist/containers/BreakingNewsBannerContainer/index.d.ts +1 -0
  50. package/dist/containers/SmartBannerContainer/SmartBannerContainer.d.ts +2 -0
  51. package/dist/containers/SmartBannerContainer/index.d.ts +1 -0
  52. package/dist/css/articlePage-desktop-critical.css +1 -1
  53. package/dist/css/articlePage-desktop-no-critical.css +1 -1
  54. package/dist/css/articlePage-mobile-critical.css +1 -1
  55. package/dist/css/articlePage-mobile-no-critical.css +1 -1
  56. package/dist/css/errorPage-desktop-critical.css +1 -1
  57. package/dist/css/errorPage-desktop-no-critical.css +1 -1
  58. package/dist/css/errorPage-mobile-critical.css +1 -1
  59. package/dist/css/errorPage-mobile-no-critical.css +1 -1
  60. package/dist/css/global.css +1 -1
  61. package/dist/css/horoscopePage-desktop-critical.css +1 -1
  62. package/dist/css/horoscopePage-desktop-no-critical.css +1 -1
  63. package/dist/css/horoscopePage-mobile-critical.css +1 -1
  64. package/dist/css/horoscopePage-mobile-no-critical.css +1 -1
  65. package/dist/css/horoscopehomePage-desktop-critical.css +1 -1
  66. package/dist/css/horoscopehomePage-desktop-no-critical.css +1 -1
  67. package/dist/css/horoscopehomePage-mobile-critical.css +1 -1
  68. package/dist/css/horoscopehomePage-mobile-no-critical.css +1 -1
  69. package/dist/css/searchPage-desktop-critical.css +1 -1
  70. package/dist/css/searchPage-desktop-no-critical.css +1 -1
  71. package/dist/css/searchPage-mobile-critical.css +1 -1
  72. package/dist/css/searchPage-mobile-no-critical.css +1 -1
  73. package/dist/css/tagPage-desktop-critical.css +1 -1
  74. package/dist/css/tagPage-desktop-no-critical.css +1 -1
  75. package/dist/css/tagPage-mobile-critical.css +1 -1
  76. package/dist/css/tagPage-mobile-no-critical.css +1 -1
  77. package/dist/helpers/assetsHelper.d.ts +2 -2
  78. package/dist/helpers/draftjsHtmlHelper.d.ts +2 -0
  79. package/dist/helpers/hasVideoHelper.d.ts +1 -0
  80. package/dist/helpers/scriptHelper.d.ts +6 -0
  81. package/dist/helpers/string.d.ts +0 -1
  82. package/dist/index.es.js +43487 -53478
  83. package/dist/index.umd.js +135 -261
  84. package/dist/js/atinternet.min.js +1 -1
  85. package/dist/js/cmp.min.js +1 -1
  86. package/dist/js/main.min.js +2 -75
  87. package/dist/templates/HtmlTemplate/HtmlTemplate.d.ts +1 -1
  88. package/dist/templates/PageTemplate/PageTemplate.d.ts +1 -1
  89. package/dist/types/ComponentConfig.d.ts +1 -1
  90. package/dist/types/ThirdParties/AtInternet.d.ts +56 -0
  91. package/dist/types/ThirdParties/Cmp/Didomi.d.ts +31 -0
  92. package/dist/types/ThirdParties/Cmp/VariablesCmpType.d.ts +8 -0
  93. package/dist/types/ThirdParties/Cmp/index.d.ts +2 -0
  94. package/dist/types/ThirdParties/Hubvisor.d.ts +4 -0
  95. package/dist/types/ThirdParties/index.d.ts +3 -0
  96. package/package.json +6 -2
  97. package/dist/assets/thirdParties/helpers.d.ts +0 -5
@@ -0,0 +1,3 @@
1
+ export declare const loadBreakingNews: () => void;
2
+ export declare const loadAppBanner: () => void;
3
+ export declare const loadArticleListBottomContainer: () => void;
@@ -0,0 +1 @@
1
+ export declare const initUltimedia: () => void;
@@ -0,0 +1,2 @@
1
+ export declare const deleteFingerPrint: () => void;
2
+ export declare const handleDeleteFingerPrint: () => void;
@@ -0,0 +1 @@
1
+ export declare const initSearchInput: () => void;
@@ -0,0 +1 @@
1
+ export declare const loadHeaderMini: () => void;
@@ -0,0 +1,6 @@
1
+ export declare const getDigitekaSmartPlayerInlineScript: (options?: {
2
+ id: string;
3
+ zone: number;
4
+ }) => string;
5
+ export declare const loadDigitekaSmartPlayerScripts: () => void;
6
+ export declare const initMainScripts: () => void;
@@ -0,0 +1,4 @@
1
+ type CallbackFunction = () => void;
2
+ export declare const throttle: (callback: CallbackFunction, limit: number) => () => void;
3
+ export declare const registerLazyElements: () => void;
4
+ export {};
@@ -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,2 @@
1
+ export declare const callSlots: (ids: string[]) => void;
2
+ export declare const callDfp: () => void;
@@ -0,0 +1 @@
1
+ export declare const setDfpConfig: () => void;
@@ -0,0 +1,2 @@
1
+ import { type TargetingType } from '../../../assets/thirdParties/ads/types';
2
+ export declare const dfpDatalayerAdapter: (targetKey: keyof TargetingType) => any;
@@ -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,5 @@
1
+ export type SlotType = {
2
+ slotElementId: string;
3
+ path: string;
4
+ sizes: string;
5
+ };
@@ -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,3 @@
1
+ export * from './SlotType';
2
+ export * from './AdSizesType';
3
+ export * from './TargetingType';
@@ -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,3 @@
1
+ export declare const didomiInlineScript: string;
2
+ export declare const loadDidomiScript: () => void;
3
+ export declare const initCmp: () => void;
@@ -0,0 +1,3 @@
1
+ export declare const cookieItemsToKeep: string[];
2
+ export declare const localItemsToKeep: string[];
3
+ export declare const sessionItemsToKeep: string[];
@@ -0,0 +1 @@
1
+ export declare const initNoticeListeners: () => void;
@@ -0,0 +1 @@
1
+ export declare const connectPartnersToCmp: () => void;
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
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 * as React from 'react';
1
+ import React from 'react';
2
2
  export declare const GooglePublisherTags: React.FC;
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export declare const Hubvisor: React.FC;
@@ -2,3 +2,4 @@ export * from './Didomi';
2
2
  export * from './Digiteka';
3
3
  export * from './Hubvisor';
4
4
  export * from './GooglePublisherTags';
5
+ export * from './DraftToHtml';
@@ -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 * as React from 'react';
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';
@@ -1 +1,5 @@
1
+ export * from './ArticleContent';
2
+ export * from './ArticleSummary';
3
+ export * from './HeaderPage';
1
4
  export * from './HoroscopeHomepageContent';
5
+ export * from './InfoBanner';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import type { ArticleCoverProps, ArticleHeaderProps, SignatureProps } from '@20minutes/hela';
3
3
  export interface ArticleMobileHeaderProps {
4
4
  articleHeaderProps: ArticleHeaderProps;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import type { CardMediumProps, FlexProps, LinkProps } from '@20minutes/hela';
3
3
  export interface LiveBlockProps extends FlexProps {
4
4
  articles: CardMediumProps[];
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import type { CardExtraSmallProps, FlexProps, LayoutType } from '@20minutes/hela';
3
3
  export interface ReadAlsoBlockProps extends FlexProps {
4
4
  articles: CardExtraSmallProps[];
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import type { LayoutType, RubricCardsProps } from '@20minutes/hela';
3
3
  export interface RubricsCarouselsProps {
4
4
  carousels: RubricCardsProps[];
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import type { CardMediumProps, FlexProps } from '@20minutes/hela';
3
3
  export interface SideBrandsArticlesProps extends FlexProps {
4
4
  articles: CardMediumProps[];
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const BreakingNewsBannerContainer: React.FC;
@@ -0,0 +1 @@
1
+ export * from './BreakingNewsBannerContainer';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SmartBannerContainer: React.FC;
@@ -0,0 +1 @@
1
+ export * from './SmartBannerContainer';