@20minutes/hela 0.0.13 → 0.0.14

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/index.d.ts CHANGED
@@ -25,7 +25,7 @@ interface ContentDataLayerType {
25
25
 
26
26
  interface DefaultDataLayerType {
27
27
  page_uri: string;
28
- page_type: string;
28
+ page_type?: string;
29
29
  }
30
30
 
31
31
  interface UserDataLayerType {
@@ -88,8 +88,61 @@ declare type Targeting = {
88
88
 
89
89
  declare type DfpDataLayerType = Targeting;
90
90
 
91
+ declare type Purposes = {
92
+ Cookies: string;
93
+ CookiesAnalytics: string;
94
+ CookiesMarketing: string;
95
+ CookiesSocial: string;
96
+ AdvertisingPersonalization: string;
97
+ Analytics: string;
98
+ ContentPersonalization: string;
99
+ AdDelivery: string;
100
+ DeviceAccess: string;
101
+ OfflineMatch: string;
102
+ LinkDevices: string;
103
+ PreciseGeo: string;
104
+ SelectBasicAds: string;
105
+ CreateAdsProfile: string;
106
+ SelectPersonalizedAds: string;
107
+ CreateContentProfile: string;
108
+ SelectPersonalizedContent: string;
109
+ MeasureAdPerformance: string;
110
+ MeasureContentPerformance: string;
111
+ MarketResearch: string;
112
+ ImproveProducts: string;
113
+ };
114
+ declare type Notice = {
115
+ show: () => void;
116
+ };
117
+ interface Didomi {
118
+ CCPA: string[];
119
+ Purposes: Purposes;
120
+ notice: Notice;
121
+ preferences: string[];
122
+ theme: string[];
123
+ version: string;
124
+ getUserConsentStatusForPurpose: (purpose: keyof Purposes) => boolean;
125
+ reset: () => void;
126
+ }
127
+ declare type DidomiOnReady = (() => void)[];
128
+ declare type EventListener = {
129
+ event: string;
130
+ listener(): void;
131
+ };
132
+ declare type DidomiEventListeners = EventListener[];
133
+ declare type CmpType = {
134
+ consentEventsCount: number;
135
+ };
136
+
137
+ declare type VariablesCmpType = {
138
+ Didomi: Didomi;
139
+ didomiOnReady: DidomiOnReady;
140
+ disapproveDidomiGTMEvents: boolean;
141
+ didomiEventListeners: DidomiEventListeners;
142
+ };
143
+
91
144
  declare global {
92
- interface Window extends VariablesDataLayerType {
145
+ interface Window extends VariablesDataLayerType, VariablesCmpType {
93
146
  datalayer: Partial<DataLayerType>;
94
147
  awsRumVariables: AwsRumVariablesType;
95
148
  dfpVariables: DfpDataLayerType;
@@ -99,6 +152,7 @@ declare global {
99
152
  slots: Slot[];
100
153
  targeting: Partial<Targeting>;
101
154
  } | Record<string, never>;
155
+ cmpVariables: CmpType;
102
156
  }
103
157
  }
104
158
 
@@ -145,14 +199,15 @@ interface PageTemplateProps {
145
199
  url: string;
146
200
  }[];
147
201
  criticalCss?: string;
202
+ didomiScript: string;
148
203
  mainInlineScript?: string;
149
204
  awsRum?: {
150
205
  variables: AwsRumVariablesType;
151
206
  inlineScript: string;
152
207
  };
153
208
  datalayerInlineScript?: string;
154
- callCriticalScripts?: string;
155
209
  dfpInlineScript?: string;
210
+ callCriticalScripts?: string;
156
211
  children: React$1.ReactNode;
157
212
  datalayerVariables?: VariablesDataLayerType;
158
213
  header: React$1.ReactNode;
@@ -209,6 +264,8 @@ declare type HoroscopePageConfig = PageConfig<'horoscope', typeof HoroscopePage,
209
264
  declare type PageConfigs = [ArticlePageConfig, HoroscopePageConfig];
210
265
  declare type PageConfigAvailable = PageConfigs[number];
211
266
 
267
+ declare type HeaderScriptsType = 'callCriticalScripts' | 'dfpInlineScript' | 'datalayerInlineScript' | 'didomiScript';
268
+
212
269
  declare const COMPONENT_CONFIGS: ComponentConfig[];
213
270
 
214
271
  declare const PAGE_CONFIGS: PageConfigs;
@@ -352,7 +409,9 @@ interface TypographyProps<HTMLElementType> extends React__default.HTMLAttributes
352
409
  }
353
410
 
354
411
  declare type HeadingHTMLElementType = Pick<JSX.IntrinsicElements, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
355
- declare type HeadingProps = TypographyProps<HeadingHTMLElementType>;
412
+ interface HeadingProps extends TypographyProps<HeadingHTMLElementType> {
413
+ variant?: 'default' | 'secondary';
414
+ }
356
415
  declare const Heading: React__default.FC<HeadingProps>;
357
416
 
358
417
  declare type TextHTMLElementType = Pick<JSX.IntrinsicElements, 'p' | 'span' | 'strong' | 'em'>;
@@ -453,7 +512,7 @@ interface MediumCardProps {
453
512
  headline: string;
454
513
  cover: string;
455
514
  socialBarProps: SocialBarProps;
456
- signatureProps: SignatureProps;
515
+ signatureProps?: SignatureProps;
457
516
  layout?: LayoutType;
458
517
  }
459
518
  declare function MediumCard({ link, title, cover, headline, socialBarProps, signatureProps, layout, }: MediumCardProps): JSX.Element;
@@ -485,7 +544,7 @@ interface NewsCardProps {
485
544
  cover: string;
486
545
  headline: string;
487
546
  title: string;
488
- link: 'https://www.20minutes.fr/';
547
+ link: string;
489
548
  layout?: LayoutType;
490
549
  }
491
550
  declare function NewsCard({ link, cover, headline, title, layout, }: NewsCardProps): JSX.Element;
@@ -644,6 +703,7 @@ interface FooterLinksProps {
644
703
  links: {
645
704
  name: string;
646
705
  url: string;
706
+ javascript: string;
647
707
  }[];
648
708
  }[];
649
709
  }
@@ -773,4 +833,4 @@ interface HeaderProps extends HeaderDesktopProps {
773
833
  }
774
834
  declare const Header: React$1.FC<HeaderProps>;
775
835
 
776
- export { Ad, AdProps, AdSizesType, AdSizesTypeKey, Alert, AlertProps, ArticleContent, ArticleContentProps, ArticleHeader, ArticleHeaderProps, ArticleImageCover, ArticleImageCoverProps, ArticlePage, ArticlePageConfig, ArticlePageProps, ArticleSummary, ArticleSummaryProps, ArticleVideoCover, ArticleVideoCoverProps, Avatar, AvatarProps, Breadcrumb, BreadcrumbProps, Button, ButtonProps, COMPONENT_CONFIGS, CategoryCard, CategoryCardProps, CategoryCards, CategoryCardsProps, Color, ColorSchemeBrand, ColorSchemeGeneric, ColorSchemeTheme, ComponentConfig, ComponentNameArticle, ComponentNameCommon, ComponentNameHoroscope, ComponentNameRubric, ContentDataLayerType, DataLayerType, DefaultDataLayerType, DfpDataLayerType, Divider, DividerProps, DividerSection, DividerSectionProps, Footer, FooterCategories, FooterCategoriesProps, FooterLinks, FooterLinksProps, FooterProps, GameCard, GameCardProps, Header, HeaderBanner, HeaderBannerProps, HeaderPage, HeaderPageProps, HeaderProps, Heading, HeadingProps, HomeLiveCard, HomeLiveCardProps, HoroscopeContent, HoroscopeContentProps, HoroscopePage, HoroscopePageConfig, HoroscopePageProps, HoroscopeTiles, HoroscopeTilesProps, HoroscopeTopicCard, HoroscopeTopicCardProps, Icon, IconHoroscopeName, IconName, IconProps, Img, ImgProps, InfoBanner, InfoBannerProps, Input, InputProps, Label, LabelProps, LabelSection, LabelSectionProps, LargeCard, LargeCardProps, LayoutType, Link, LinkProps, LiveCard, LiveCardProps, MediumCard, MediumCardProps, MenuCard, MenuCardProps, MostReadArticles, MostReadArticlesProps, MostReadCard, MostReadCardProps, NewsCard, NewsCardProps, NewsCards, NewsCardsProps, Newsletter, NewsletterProps, OverviewBar, OverviewBarProps, OverviewCard, OverviewCardProps, PAGE_CONFIGS, PageComponentConfig, PageConfig, PageConfigAvailable, PageConfigs, PageTemplate, PageTemplateComponentConfigs, PageTemplateProps, PartnerCards, PartnerCardsProps, Pipe, PodcastCard, PodcastCardProps, ReadAlso, ReadAlsoProps, RegionalCard, RegionalCardProps, RubricCard, RubricCardProps, Section, SectionProps, Signature, SignatureProps, Slot, SmallCard, SmallCardProps, SmallCategoryCard, SmallCategoryCardProps, SmallGameCard, SmallGameCardProps, SmallLiveCard, SmallLiveCardProps, SocialBar, SocialBarProps, SocialIcon, SocialIconProps, Switch, SwitchDarkMode, SwitchDarkModeProps, SwitchProps, Tab, TabPanel, TabPanelProps, TabProps, Tag, TagBar, TagBarProps, TagProps, Targeting, TargetingKeys, Text, TextProps, ThemeType, UserDataLayerType, VariablesDataLayerType, pageType, tagsType };
836
+ export { Ad, AdProps, AdSizesType, AdSizesTypeKey, Alert, AlertProps, ArticleContent, ArticleContentProps, ArticleHeader, ArticleHeaderProps, ArticleImageCover, ArticleImageCoverProps, ArticlePage, ArticlePageConfig, ArticlePageProps, ArticleSummary, ArticleSummaryProps, ArticleVideoCover, ArticleVideoCoverProps, Avatar, AvatarProps, Breadcrumb, BreadcrumbProps, Button, ButtonProps, COMPONENT_CONFIGS, CategoryCard, CategoryCardProps, CategoryCards, CategoryCardsProps, CmpType, Color, ColorSchemeBrand, ColorSchemeGeneric, ColorSchemeTheme, ComponentConfig, ComponentNameArticle, ComponentNameCommon, ComponentNameHoroscope, ComponentNameRubric, ContentDataLayerType, DataLayerType, DefaultDataLayerType, DfpDataLayerType, Didomi, DidomiEventListeners, DidomiOnReady, Divider, DividerProps, DividerSection, DividerSectionProps, Footer, FooterCategories, FooterCategoriesProps, FooterLinks, FooterLinksProps, FooterProps, GameCard, GameCardProps, Header, HeaderBanner, HeaderBannerProps, HeaderPage, HeaderPageProps, HeaderProps, HeaderScriptsType, Heading, HeadingProps, HomeLiveCard, HomeLiveCardProps, HoroscopeContent, HoroscopeContentProps, HoroscopePage, HoroscopePageConfig, HoroscopePageProps, HoroscopeTiles, HoroscopeTilesProps, HoroscopeTopicCard, HoroscopeTopicCardProps, Icon, IconHoroscopeName, IconName, IconProps, Img, ImgProps, InfoBanner, InfoBannerProps, Input, InputProps, Label, LabelProps, LabelSection, LabelSectionProps, LargeCard, LargeCardProps, LayoutType, Link, LinkProps, LiveCard, LiveCardProps, MediumCard, MediumCardProps, MenuCard, MenuCardProps, MostReadArticles, MostReadArticlesProps, MostReadCard, MostReadCardProps, NewsCard, NewsCardProps, NewsCards, NewsCardsProps, Newsletter, NewsletterProps, OverviewBar, OverviewBarProps, OverviewCard, OverviewCardProps, PAGE_CONFIGS, PageComponentConfig, PageConfig, PageConfigAvailable, PageConfigs, PageTemplate, PageTemplateComponentConfigs, PageTemplateProps, PartnerCards, PartnerCardsProps, Pipe, PodcastCard, PodcastCardProps, ReadAlso, ReadAlsoProps, RegionalCard, RegionalCardProps, RubricCard, RubricCardProps, Section, SectionProps, Signature, SignatureProps, Slot, SmallCard, SmallCardProps, SmallCategoryCard, SmallCategoryCardProps, SmallGameCard, SmallGameCardProps, SmallLiveCard, SmallLiveCardProps, SocialBar, SocialBarProps, SocialIcon, SocialIconProps, Switch, SwitchDarkMode, SwitchDarkModeProps, SwitchProps, Tab, TabPanel, TabPanelProps, TabProps, Tag, TagBar, TagBarProps, TagProps, Targeting, TargetingKeys, Text, TextProps, ThemeType, UserDataLayerType, VariablesCmpType, VariablesDataLayerType, pageType, tagsType };