@20minutes/tyr 2.1.7 → 2.2.1

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.
@@ -80,4 +80,5 @@ export interface DatalayerInfoType {
80
80
  podcastCount?: number;
81
81
  videoCount?: number;
82
82
  video20mnCount?: number;
83
+ enableSponsoredContents?: boolean;
83
84
  }
@@ -2,7 +2,7 @@ import { LayoutType } from '@20minutes/hela';
2
2
  import { default as React } from 'react';
3
3
  import { CommonTemplateActivators, PageManager } from './PageManager';
4
4
  import { ArticlePageProps } from '../pages/ArticlePage';
5
- type ArticlePageTemplateActivators = 'DisplayOnHeaderAd' | 'InArticleAds' | 'Audion' | 'SponsoredContent' | 'Podcast' | 'Newsletter' | 'HeaderAd' | CommonTemplateActivators;
5
+ type ArticlePageTemplateActivators = 'DisplayOnHeaderAd' | 'InArticleAds' | 'Audion' | 'SponsoredContents' | 'Podcast' | 'Newsletter' | 'HeaderAd' | CommonTemplateActivators;
6
6
  type SelectedProps = 'articleContent' | 'cover' | 'htmlTemplateProps';
7
7
  type ArticlePageFilteredProps = Pick<ArticlePageProps, SelectedProps>;
8
8
  interface ArticleContent {
@@ -2,7 +2,7 @@ import { CommonTemplateActivators, PageManager } from './PageManager';
2
2
  import { LivePageProps } from '../pages';
3
3
  import { LayoutType } from '@20minutes/hela';
4
4
  import { default as React } from 'react';
5
- type LivePageTemplateActivators = 'DisplayOnHeaderAd' | 'MostReadSmallFeed' | 'HeaderAd' | CommonTemplateActivators;
5
+ type LivePageTemplateActivators = 'DisplayOnHeaderAd' | 'MostReadSmallFeed' | 'HeaderAd' | 'SponsoredContents' | CommonTemplateActivators;
6
6
  type SelectedProps = 'livePostsThread' | 'topContent';
7
7
  type LivePageFilteredProps = Pick<LivePageProps, SelectedProps>;
8
8
  interface LiveContent {
@@ -7,7 +7,7 @@ export declare abstract class PageManager<PageProps = Record<string, unknown>, S
7
7
  protected templateActivators: {
8
8
  enableDisplayOnHeaderAd: boolean;
9
9
  enableAudion: boolean;
10
- enableSponsoredContent: boolean;
10
+ enableSponsoredContents: boolean;
11
11
  enableMostReadSmallFeed: boolean;
12
12
  enableNewsletter: boolean;
13
13
  } & Record<NonNullable<Prefix<"enable", PageFeatures>>, boolean>;
@@ -23,7 +23,7 @@ export declare abstract class PageManager<PageProps = Record<string, unknown>, S
23
23
  templateActivators: {
24
24
  enableDisplayOnHeaderAd: boolean;
25
25
  enableAudion: boolean;
26
- enableSponsoredContent: boolean;
26
+ enableSponsoredContents: boolean;
27
27
  enableMostReadSmallFeed: boolean;
28
28
  enableNewsletter: boolean;
29
29
  } & Record<NonNullable<Prefix<"enable", PageFeatures>>, boolean>;
@@ -2,7 +2,7 @@ import { LayoutType } from '@20minutes/hela';
2
2
  import { default as React } from 'react';
3
3
  import { CommonTemplateActivators, PageManager } from './PageManager';
4
4
  import { SlideshowPageProps } from '../pages/SlideshowPage';
5
- type SlideshowPageTemplateActivators = 'DisplayOnHeaderAd' | 'InSlideshowAds' | 'Audion' | 'SponsoredContent' | 'HeaderAd' | CommonTemplateActivators;
5
+ type SlideshowPageTemplateActivators = 'DisplayOnHeaderAd' | 'InSlideshowAds' | 'Audion' | 'SponsoredContents' | 'HeaderAd' | CommonTemplateActivators;
6
6
  type SelectedProps = 'slideshowContent' | 'cover' | 'htmlTemplateProps';
7
7
  type SlideshowPageFilteredProps = Pick<SlideshowPageProps, SelectedProps>;
8
8
  interface SlideshowContent {
@@ -25,5 +25,6 @@ export interface HomePageProps extends PageTemplateProps {
25
25
  conso: React.ReactNode;
26
26
  movies: React.ReactNode;
27
27
  streamingTv: React.ReactNode;
28
+ shows: React.ReactNode;
28
29
  }
29
30
  export declare const HomePage: React.FC<HomePageProps>;
@@ -57,6 +57,7 @@ declare const meta: {
57
57
  partners: React.FunctionComponentElement<import('@20minutes/hela').ThreeColumnsArticlesProps>;
58
58
  movies: React.FunctionComponentElement<EntertainmentCarouselProps>;
59
59
  streamingTv: React.FunctionComponentElement<EntertainmentCarouselProps>;
60
+ shows: React.FunctionComponentElement<EntertainmentCarouselProps>;
60
61
  headerMini?: React.ReactNode;
61
62
  menu: React.ReactNode;
62
63
  adTopPage?: React.ReactNode;
@@ -32,7 +32,7 @@ export interface ContentTemplateProps extends PageTemplateProps {
32
32
  buyersGuide?: React.ReactNode;
33
33
  templating?: {
34
34
  enableAds: boolean;
35
- enableSponsoredContent: boolean;
35
+ enableSponsoredContents: boolean;
36
36
  enableBlockLinks: boolean;
37
37
  enableAudion: boolean;
38
38
  enableMostReadSmallFeed: boolean;
@@ -44,7 +44,7 @@ export declare const ContentTemplateDesktop: {
44
44
  partnerCards: React.ReactNode;
45
45
  templating?: {
46
46
  enableAds: boolean;
47
- enableSponsoredContent: boolean;
47
+ enableSponsoredContents: boolean;
48
48
  enableBlockLinks: boolean;
49
49
  enableAudion: boolean;
50
50
  enableMostReadSmallFeed: boolean;
@@ -128,7 +128,8 @@ export declare const enum ComponentNameHome {
128
128
  HOME_CITY_BY_CITY = "home/city-by-city",
129
129
  HOME_PARTNERS = "home/partners",
130
130
  HOME_MOVIES = "home/movies",
131
- HOME_STREAMING_TV = "home/streaming-tv"
131
+ HOME_STREAMING_TV = "home/streaming-tv",
132
+ HOME_SHOWS = "home/shows"
132
133
  }
133
134
  export declare const enum ComponentNameHoroscope {
134
135
  HOROSCOPE_JSON_LD_BREADCRUMB = "horoscope/json-ld-breadcrumb",
@@ -228,6 +228,7 @@ export type TArticle = TCounting & TCrawlable & TLockable & TNode & TProofreadab
228
228
  deleted_at?: Maybe<Scalars['DateTime']['output']>;
229
229
  edited_at?: Maybe<Scalars['DateTime']['output']>;
230
230
  enable_comments?: Maybe<Scalars['Boolean']['output']>;
231
+ enable_sponsored_contents?: Maybe<Scalars['Boolean']['output']>;
231
232
  enclose?: Maybe<Scalars['JSONObject']['output']>;
232
233
  facebook_count?: Maybe<Scalars['Int']['output']>;
233
234
  fact_check?: Maybe<TFactCheck>;
@@ -2426,6 +2427,7 @@ export type TCreateArticleFromSynchroType = {
2426
2427
  databaseId?: InputMaybe<Scalars['UUID']['input']>;
2427
2428
  edited_at?: InputMaybe<Scalars['DateTime']['input']>;
2428
2429
  enable_comments?: InputMaybe<Scalars['Boolean']['input']>;
2430
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
2429
2431
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
2430
2432
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
2431
2433
  fact_checked?: InputMaybe<Scalars['Boolean']['input']>;
@@ -2481,6 +2483,7 @@ export type TCreateArticleType = {
2481
2483
  databaseId?: InputMaybe<Scalars['UUID']['input']>;
2482
2484
  edited_at?: InputMaybe<Scalars['DateTime']['input']>;
2483
2485
  enable_comments?: InputMaybe<Scalars['Boolean']['input']>;
2486
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
2484
2487
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
2485
2488
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
2486
2489
  fact_checked?: InputMaybe<Scalars['Boolean']['input']>;
@@ -2537,6 +2540,7 @@ export type TCreateArticleWithAiType = {
2537
2540
  databaseId?: InputMaybe<Scalars['UUID']['input']>;
2538
2541
  edited_at?: InputMaybe<Scalars['DateTime']['input']>;
2539
2542
  enable_comments?: InputMaybe<Scalars['Boolean']['input']>;
2543
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
2540
2544
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
2541
2545
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
2542
2546
  fact_checked?: InputMaybe<Scalars['Boolean']['input']>;
@@ -2905,6 +2909,7 @@ export type TCreateLiveFromSynchroType = {
2905
2909
  databaseId?: InputMaybe<Scalars['UUID']['input']>;
2906
2910
  edited_at?: InputMaybe<Scalars['DateTime']['input']>;
2907
2911
  enable_comments?: InputMaybe<Scalars['Boolean']['input']>;
2912
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
2908
2913
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
2909
2914
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
2910
2915
  fpe_edited_at?: InputMaybe<Scalars['DateTime']['input']>;
@@ -3006,6 +3011,7 @@ export type TCreateLiveType = {
3006
3011
  crawl_options?: InputMaybe<TCrawlOptionsInput>;
3007
3012
  databaseId?: InputMaybe<Scalars['UUID']['input']>;
3008
3013
  enable_comments?: InputMaybe<Scalars['Boolean']['input']>;
3014
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
3009
3015
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
3010
3016
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
3011
3017
  label?: InputMaybe<Scalars['String']['input']>;
@@ -3420,6 +3426,7 @@ export type TCreateStoryType = {
3420
3426
  correction_made_at?: InputMaybe<Scalars['DateTime']['input']>;
3421
3427
  crawl_options?: InputMaybe<TCrawlOptionsInput>;
3422
3428
  databaseId?: InputMaybe<Scalars['UUID']['input']>;
3429
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
3423
3430
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
3424
3431
  label?: InputMaybe<Scalars['String']['input']>;
3425
3432
  lead?: InputMaybe<Scalars['String']['input']>;
@@ -3628,7 +3635,7 @@ export type TCreateVideoType = {
3628
3635
  duration?: InputMaybe<Scalars['Int']['input']>;
3629
3636
  external_id?: InputMaybe<Scalars['String']['input']>;
3630
3637
  player?: InputMaybe<Array<InputMaybe<TPlayerInput>>>;
3631
- ratio?: InputMaybe<Scalars['String']['input']>;
3638
+ ratio?: InputMaybe<VideoRatio>;
3632
3639
  service?: InputMaybe<VideoSource>;
3633
3640
  src?: InputMaybe<Scalars['String']['input']>;
3634
3641
  thumbnail?: InputMaybe<Scalars['String']['input']>;
@@ -5702,6 +5709,7 @@ export type TLive = TCounting & TCrawlable & TLockable & TNode & TPublishable &
5702
5709
  deleted_at?: Maybe<Scalars['DateTime']['output']>;
5703
5710
  edited_at?: Maybe<Scalars['DateTime']['output']>;
5704
5711
  enable_comments?: Maybe<Scalars['Boolean']['output']>;
5712
+ enable_sponsored_contents?: Maybe<Scalars['Boolean']['output']>;
5705
5713
  enclose?: Maybe<Scalars['JSONObject']['output']>;
5706
5714
  facebook_count?: Maybe<Scalars['Int']['output']>;
5707
5715
  fpe_edited_at?: Maybe<Scalars['DateTime']['output']>;
@@ -10905,6 +10913,7 @@ export type TPublishableContent = TCounting & TNode & TProofreadable & TPublisha
10905
10913
  edited_at?: Maybe<Scalars['DateTime']['output']>;
10906
10914
  editorial_model?: Maybe<EditorialContentModelType>;
10907
10915
  enable_comments?: Maybe<Scalars['Boolean']['output']>;
10916
+ enable_sponsored_contents?: Maybe<Scalars['Boolean']['output']>;
10908
10917
  enclose?: Maybe<Scalars['JSONObject']['output']>;
10909
10918
  facebook_count?: Maybe<Scalars['Int']['output']>;
10910
10919
  fact_check?: Maybe<TFactCheck>;
@@ -13007,6 +13016,7 @@ export type TStory = TCounting & TCrawlable & TLockable & TNode & TProofreadable
13007
13016
  created_at?: Maybe<Scalars['DateTime']['output']>;
13008
13017
  deleted_at?: Maybe<Scalars['DateTime']['output']>;
13009
13018
  edited_at?: Maybe<Scalars['DateTime']['output']>;
13019
+ enable_sponsored_contents?: Maybe<Scalars['Boolean']['output']>;
13010
13020
  facebook_count?: Maybe<Scalars['Int']['output']>;
13011
13021
  fpe_edited_at?: Maybe<Scalars['DateTime']['output']>;
13012
13022
  google_notif_at?: Maybe<Scalars['DateTime']['output']>;
@@ -14405,6 +14415,7 @@ export type TUpdateArticleFromSynchroType = {
14405
14415
  crawl_options?: InputMaybe<TCrawlOptionsInput>;
14406
14416
  edited_at?: InputMaybe<Scalars['DateTime']['input']>;
14407
14417
  enable_comments?: InputMaybe<Scalars['Boolean']['input']>;
14418
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
14408
14419
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
14409
14420
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
14410
14421
  fact_checked?: InputMaybe<Scalars['Boolean']['input']>;
@@ -14459,6 +14470,7 @@ export type TUpdateArticleType = {
14459
14470
  crawl_options?: InputMaybe<TCrawlOptionsInput>;
14460
14471
  edited_at?: InputMaybe<Scalars['DateTime']['input']>;
14461
14472
  enable_comments?: InputMaybe<Scalars['Boolean']['input']>;
14473
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
14462
14474
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
14463
14475
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
14464
14476
  fact_checked?: InputMaybe<Scalars['Boolean']['input']>;
@@ -14830,6 +14842,7 @@ export type TUpdateLiveFromSynchroType = {
14830
14842
  crawl_options?: InputMaybe<TCrawlOptionsInput>;
14831
14843
  edited_at?: InputMaybe<Scalars['DateTime']['input']>;
14832
14844
  enable_comments?: InputMaybe<Scalars['Boolean']['input']>;
14845
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
14833
14846
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
14834
14847
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
14835
14848
  fpe_edited_at?: InputMaybe<Scalars['DateTime']['input']>;
@@ -14930,6 +14943,7 @@ export type TUpdateLiveType = {
14930
14943
  coverage_start_time?: InputMaybe<Scalars['DateTime']['input']>;
14931
14944
  crawl_options?: InputMaybe<TCrawlOptionsInput>;
14932
14945
  enable_comments?: InputMaybe<Scalars['Boolean']['input']>;
14946
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
14933
14947
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
14934
14948
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
14935
14949
  id: Scalars['ID']['input'];
@@ -15333,6 +15347,7 @@ export type TUpdateStoryType = {
15333
15347
  content_source_id?: InputMaybe<Scalars['ID']['input']>;
15334
15348
  correction_made_at?: InputMaybe<Scalars['DateTime']['input']>;
15335
15349
  crawl_options?: InputMaybe<TCrawlOptionsInput>;
15350
+ enable_sponsored_contents?: InputMaybe<Scalars['Boolean']['input']>;
15336
15351
  facebook_count?: InputMaybe<Scalars['Int']['input']>;
15337
15352
  id: Scalars['ID']['input'];
15338
15353
  label?: InputMaybe<Scalars['String']['input']>;
@@ -15531,7 +15546,7 @@ export type TUpdateVideoType = {
15531
15546
  external_id?: InputMaybe<Scalars['String']['input']>;
15532
15547
  id: Scalars['ID']['input'];
15533
15548
  player?: InputMaybe<Array<InputMaybe<TPlayerInput>>>;
15534
- ratio?: InputMaybe<Scalars['String']['input']>;
15549
+ ratio?: InputMaybe<VideoRatio>;
15535
15550
  service?: InputMaybe<VideoSource>;
15536
15551
  src?: InputMaybe<Scalars['String']['input']>;
15537
15552
  thumbnail?: InputMaybe<Scalars['String']['input']>;
@@ -15698,6 +15713,7 @@ export declare enum UserBackOrderField {
15698
15713
  EMAIL = "EMAIL",
15699
15714
  FIRSTNAME = "FIRSTNAME",
15700
15715
  INITIALS = "INITIALS",
15716
+ KEEP_ORDER = "KEEP_ORDER",
15701
15717
  LASTNAME = "LASTNAME",
15702
15718
  USERNAME = "USERNAME"
15703
15719
  }
@@ -16119,7 +16135,7 @@ export type TVideo = TNode & TTimestampable & {
16119
16135
  id: Scalars['ID']['output'];
16120
16136
  page?: Maybe<TPageSingleConnection>;
16121
16137
  player?: Maybe<Array<Maybe<TPlayer>>>;
16122
- ratio?: Maybe<Scalars['String']['output']>;
16138
+ ratio?: Maybe<VideoRatio>;
16123
16139
  service?: Maybe<VideoSource>;
16124
16140
  src?: Maybe<Scalars['String']['output']>;
16125
16141
  thumbnail?: Maybe<Scalars['String']['output']>;
@@ -16168,6 +16184,11 @@ export type TVideoPayload = {
16168
16184
  resolveInfo?: Maybe<TResolveInfo>;
16169
16185
  video?: Maybe<TVideo>;
16170
16186
  };
16187
+ export declare enum VideoRatio {
16188
+ horizontal = "horizontal",
16189
+ square = "square",
16190
+ vertical = "vertical"
16191
+ }
16171
16192
  export type TVideoSearchFilter = {
16172
16193
  catalogs?: InputMaybe<Array<InputMaybe<CatalogDigiteka>>>;
16173
16194
  date_after?: InputMaybe<Scalars['DateTime']['input']>;
@@ -16928,7 +16949,7 @@ export type TMediaVideo = {
16928
16949
  duration?: Maybe<Scalars['Int']['output']>;
16929
16950
  external_id?: Maybe<Scalars['String']['output']>;
16930
16951
  player?: Maybe<Array<Maybe<TPlayer>>>;
16931
- ratio?: Maybe<Scalars['String']['output']>;
16952
+ ratio?: Maybe<VideoRatio>;
16932
16953
  service?: Maybe<VideoSource>;
16933
16954
  src?: Maybe<Scalars['String']['output']>;
16934
16955
  thumbnail?: Maybe<Scalars['String']['output']>;
@@ -17725,7 +17746,7 @@ export type TVideoInput = {
17725
17746
  duration?: InputMaybe<Scalars['Int']['input']>;
17726
17747
  external_id?: InputMaybe<Scalars['String']['input']>;
17727
17748
  player?: InputMaybe<Array<InputMaybe<TPlayerInput>>>;
17728
- ratio?: InputMaybe<Scalars['String']['input']>;
17749
+ ratio?: InputMaybe<VideoRatio>;
17729
17750
  service?: InputMaybe<VideoSource>;
17730
17751
  src?: InputMaybe<Scalars['String']['input']>;
17731
17752
  thumbnail?: InputMaybe<Scalars['String']['input']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20minutes/tyr",
3
- "version": "2.1.7",
3
+ "version": "2.2.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/20minutes/tyr.git"
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@20minutes/eslint-config": "^1.2.6",
69
- "@aws-sdk/client-s3": "3.744.0",
69
+ "@aws-sdk/client-s3": "3.750.0",
70
70
  "@babel/core": "^7.26.9",
71
71
  "@babel/eslint-parser": "^7.26.8",
72
72
  "@eslint/compat": "^1.2.6",
@@ -100,8 +100,8 @@
100
100
  "@types/react": "^18.3.13",
101
101
  "@types/react-dom": "^18.3.1",
102
102
  "@types/sinon": "^17.0.3",
103
- "@typescript-eslint/eslint-plugin": "^8.24.0",
104
- "@typescript-eslint/parser": "^8.24.0",
103
+ "@typescript-eslint/eslint-plugin": "^8.24.1",
104
+ "@typescript-eslint/parser": "^8.24.1",
105
105
  "@vitejs/plugin-react": "^4.3.4",
106
106
  "@vitest/coverage-v8": "^3.0.5",
107
107
  "babel-loader": "^9.2.1",
@@ -109,7 +109,7 @@
109
109
  "eslint-config-airbnb": "^19.0.4",
110
110
  "eslint-config-prettier": "^9.1.0",
111
111
  "eslint-import-resolver-alias": "^1.1.2",
112
- "eslint-import-resolver-typescript": "^3.8.0",
112
+ "eslint-import-resolver-typescript": "^3.8.1",
113
113
  "eslint-plugin-babel": "^5.3.1",
114
114
  "eslint-plugin-import": "^2.31.0",
115
115
  "eslint-plugin-jsx-a11y": "^6.10.2",
@@ -117,7 +117,7 @@
117
117
  "eslint-plugin-prettier": "^5.2.3",
118
118
  "eslint-plugin-react": "^7.37.4",
119
119
  "eslint-plugin-simple-import-sort": "^12.1.1",
120
- "eslint-plugin-storybook": "^0.11.2",
120
+ "eslint-plugin-storybook": "^0.11.3",
121
121
  "globals": "^15.15.0",
122
122
  "graphql": "^16.10.0",
123
123
  "husky": "^9.1.7",
@@ -128,7 +128,7 @@
128
128
  "prettier": "3.5.1",
129
129
  "purgecss": "^7.0.2",
130
130
  "purgecss-from-html": "^7.0.2",
131
- "rollup": "^4.34.7",
131
+ "rollup": "^4.34.8",
132
132
  "rollup-plugin-cleanup": "^3.2.1",
133
133
  "rollup-plugin-esbuild": "^6.2.0",
134
134
  "rollup-plugin-typescript-paths": "^1.5.0",