@20minutes/hela 0.0.3 → 0.0.4

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
@@ -14,6 +14,28 @@ declare enum LayoutType {
14
14
 
15
15
  declare type ThemeType = 'light' | 'dark';
16
16
 
17
+ declare type DefaultDataType = {
18
+ page_uri: string;
19
+ };
20
+ declare type UserDataType = {
21
+ darkmode: number;
22
+ };
23
+ declare type ContentDataType = {
24
+ signature?: string;
25
+ nbParagraphs?: number;
26
+ };
27
+ declare type DatalayerType = DefaultDataType & UserDataType & ContentDataType;
28
+
29
+ declare type CustomWindow = Window & typeof globalThis & {
30
+ datalayer: {
31
+ signature?: string;
32
+ nbParagraphs?: number;
33
+ darkmode?: number;
34
+ page_uri?: string;
35
+ };
36
+ };
37
+ declare const myWindow: CustomWindow;
38
+
17
39
  interface AlertProps {
18
40
  variant?: 'success' | 'warning' | 'error';
19
41
  title: string;
@@ -445,14 +467,21 @@ interface TagBarProps {
445
467
  }
446
468
  declare const TagBar: React__default.FC<TagBarProps>;
447
469
 
470
+ interface DatalayerProps {
471
+ signature?: string;
472
+ nbParagraphs?: number;
473
+ }
474
+
448
475
  interface PageTemplateProps {
449
476
  stylesheets?: {
450
477
  name: string;
451
478
  url: string;
452
479
  }[];
453
480
  criticalCss?: string;
454
- inlineScript?: string;
481
+ mainInlineScript?: string;
482
+ datalayerInlineScript?: string;
455
483
  children: React.ReactNode;
484
+ datalayerVariables?: DatalayerProps;
456
485
  }
457
486
  declare const PageTemplate: React.FC<PageTemplateProps>;
458
487
 
@@ -475,4 +504,4 @@ interface ArticlePageProps extends PageTemplateProps {
475
504
  }
476
505
  declare const ArticlePage: React.FC<ArticlePageProps>;
477
506
 
478
- export { Alert, AlertProps, ArticleContent, ArticleContentProps, ArticleHeader, ArticleHeaderProps, ArticleImageCover, ArticleImageCoverProps, ArticlePage, ArticlePageProps, ArticleSummary, ArticleSummaryProps, ArticleVideoCover, ArticleVideoCoverProps, Avatar, AvatarProps, Breadcrumb, BreadcrumbProps, Button, ButtonProps, CategoryCard, CategoryCardProps, CategoryCards, CategoryCardsProps, Color, ColorSchemeBrand, ColorSchemeTheme, Divider, DividerProps, GameCard, GameCardProps, Heading, HeadingProps, HomeLiveCard, HomeLiveCardProps, Icon, IconName, IconProps, Img, ImgProps, Input, InputProps, Label, LabelProps, 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, PageTemplate, PageTemplateProps, PartnerCards, PartnerCardsProps, Pipe, PodcastCard, PodcastCardProps, RegionalCard, RegionalCardProps, RubricCard, RubricCardProps, Section, SectionProps, Signature, SignatureProps, SmallCard, SmallCardProps, SmallCategoryCard, SmallCategoryCardProps, SmallGameCard, SmallGameCardProps, SmallLiveCard, SmallLiveCardProps, SocialBar, SocialBarProps, Switch, SwitchDarkMode, SwitchDarkModeProps, SwitchProps, Tab, TabPanel, TabPanelProps, TabProps, Tag, TagBar, TagBarProps, TagProps, Text, TextProps, ThemeType };
507
+ export { Alert, AlertProps, ArticleContent, ArticleContentProps, ArticleHeader, ArticleHeaderProps, ArticleImageCover, ArticleImageCoverProps, ArticlePage, ArticlePageProps, ArticleSummary, ArticleSummaryProps, ArticleVideoCover, ArticleVideoCoverProps, Avatar, AvatarProps, Breadcrumb, BreadcrumbProps, Button, ButtonProps, CategoryCard, CategoryCardProps, CategoryCards, CategoryCardsProps, Color, ColorSchemeBrand, ColorSchemeTheme, ContentDataType, CustomWindow, DatalayerType, DefaultDataType, Divider, DividerProps, GameCard, GameCardProps, Heading, HeadingProps, HomeLiveCard, HomeLiveCardProps, Icon, IconName, IconProps, Img, ImgProps, Input, InputProps, Label, LabelProps, 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, PageTemplate, PageTemplateProps, PartnerCards, PartnerCardsProps, Pipe, PodcastCard, PodcastCardProps, RegionalCard, RegionalCardProps, RubricCard, RubricCardProps, Section, SectionProps, Signature, SignatureProps, SmallCard, SmallCardProps, SmallCategoryCard, SmallCategoryCardProps, SmallGameCard, SmallGameCardProps, SmallLiveCard, SmallLiveCardProps, SocialBar, SocialBarProps, Switch, SwitchDarkMode, SwitchDarkModeProps, SwitchProps, Tab, TabPanel, TabPanelProps, TabProps, Tag, TagBar, TagBarProps, TagProps, Text, TextProps, ThemeType, UserDataType, myWindow };