@20minutes/tyr 2.36.5 → 2.37.0

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.
@@ -20,3 +20,4 @@ export declare const loadMoviesContainer: () => void;
20
20
  export declare const loadMainMostReadContainer: () => void;
21
21
  export declare const loadQuizContainer: () => void;
22
22
  export declare const loadTvExtractsAndReplaysContainer: () => void;
23
+ export declare const loadElectionsAiArticlesContainer: () => void;
@@ -1,4 +1,4 @@
1
- import { GridProps, LinkProps } from '@20minutes/hela';
1
+ import { ButtonProps, GridProps, LinkProps } from '@20minutes/hela';
2
2
  import { default as React } from 'react';
3
3
  export interface AIArticlesListProps extends GridProps {
4
4
  articles: {
@@ -6,6 +6,13 @@ export interface AIArticlesListProps extends GridProps {
6
6
  url: string;
7
7
  }[];
8
8
  linksSize?: LinkProps['size'];
9
- seeMoreLink?: LinkProps;
9
+ seeMoreButton?: ButtonProps;
10
+ variablesForQuery?: {
11
+ brandId?: string;
12
+ slug?: string;
13
+ first?: number;
14
+ endCursor: string | null;
15
+ hasNextPage: boolean;
16
+ };
10
17
  }
11
18
  export declare const AIArticlesList: React.FC<AIArticlesListProps>;
@@ -7,8 +7,8 @@ declare const meta: {
7
7
  title: string;
8
8
  url: string;
9
9
  }[];
10
- seeMoreLink: {
11
- href: string;
10
+ seeMoreButton: {
11
+ children: string;
12
12
  };
13
13
  };
14
14
  };
@@ -1,7 +1,12 @@
1
1
  import { MapTownsByDepartmentsProps } from '@20minutes/hela';
2
2
  import { default as React } from 'react';
3
3
  import { SectionProps } from '../Section';
4
+ type MapTownsByDepartmentsExtendedProps = MapTownsByDepartmentsProps & {
5
+ electionName?: string;
6
+ electionYear?: string;
7
+ };
4
8
  export interface ElectionsMapTownsByDepartmentsProps extends SectionProps {
5
- mapTownsByDepartmentsProps: MapTownsByDepartmentsProps;
9
+ mapTownsByDepartmentsProps: MapTownsByDepartmentsExtendedProps;
6
10
  }
7
11
  export declare const ElectionsMapTownsByDepartments: React.FC<ElectionsMapTownsByDepartmentsProps>;
12
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { AIArticlesListProps } from '../../components/molecules/AIArticlesList';
3
+ export declare const ElectionsAiArticlesContainer: React.FC<Required<AIArticlesListProps> & {
4
+ isSSR?: boolean;
5
+ }>;
@@ -0,0 +1 @@
1
+ export * from './ElectionsAiArticlesContainer';
@@ -0,0 +1,6 @@
1
+ import { AIArticlesListProps } from '../../components/molecules/AIArticlesList';
2
+ import { TGetTagArticlesWithCursorQuery } from '../../types/graphql';
3
+ export declare const transformArticlesForElectionsAiArticlesPage: ({ pageEndpoint, data, }: {
4
+ pageEndpoint: string;
5
+ data: TGetTagArticlesWithCursorQuery | never[];
6
+ }) => AIArticlesListProps["articles"];
@@ -0,0 +1,11 @@
1
+ import { AIArticlesListProps } from '../../components';
2
+ export interface UseElectionsAiArticlesContainer {
3
+ isLoading: boolean;
4
+ articles: AIArticlesListProps['articles'];
5
+ hasNextPage: boolean;
6
+ onLoadMore: () => void;
7
+ }
8
+ export declare const useElectionsAiArticlesContainer: (options: {
9
+ defaultArticles: AIArticlesListProps["articles"];
10
+ defaultVariablesForQuery: Required<AIArticlesListProps>["variablesForQuery"];
11
+ }) => UseElectionsAiArticlesContainer;
@@ -7,6 +7,7 @@ import { DatalayerInfoType } from '../assets/datalayer/types';
7
7
  import { PartnerFeaturesType } from '../assets/features/partnerFeaturesType';
8
8
  import { GlobalTargetingType, SlotType } from '../assets/thirdParties/ads/types';
9
9
  import { ArchivePdfListProps, LegalNoticeCardsListProps, QuizListProps } from '../components';
10
+ import { AIArticlesListProps } from '../components/molecules/AIArticlesList/AIArticlesList';
10
11
  import { LastArticlesBlockProps } from '../components/molecules/LastArticlesBlock';
11
12
  import { LatestContentsCarouselProps } from '../components/organisms/ArticlePage/LatestContentsCarousel';
12
13
  import { CardsListProps } from '../components/organisms/CardsList';
@@ -47,6 +48,7 @@ declare global {
47
48
  __staticHydrationData?: {
48
49
  archivePdfListContainer?: Required<ArchivePdfListProps>;
49
50
  articleListBottomContainer?: Required<CardsListProps>;
51
+ electionsAiArticlesContainer?: Required<AIArticlesListProps>;
50
52
  electionsConstituenciesMapContainer?: Required<ElectionsMapConstituenciesProps>;
51
53
  electionsDepartmentsMapContainer?: Required<ElectionsMapDepartmentsProps>;
52
54
  electionsEuropeanMapContainer?: Required<ElectionsMapEuropeProps>;
@@ -16818,6 +16818,7 @@ export type TUserFront = TNode & TTimestampable & {
16818
16818
  force_reset_password?: Maybe<Scalars['Boolean']['output']>;
16819
16819
  gender?: Maybe<Gender>;
16820
16820
  grades?: Maybe<Array<Maybe<Grade>>>;
16821
+ greeting?: Maybe<Scalars['String']['output']>;
16821
16822
  id: Scalars['ID']['output'];
16822
16823
  inseecode?: Maybe<Scalars['String']['output']>;
16823
16824
  last_login_at?: Maybe<Scalars['DateTime']['output']>;
@@ -17787,6 +17788,7 @@ export declare enum Game {
17787
17788
  g_kakuro = "g_kakuro",
17788
17789
  g_kemaru = "g_kemaru",
17789
17790
  g_le_mot_du_jour = "g_le_mot_du_jour",
17791
+ g_le_mot_du_jour_6_lettres = "g_le_mot_du_jour_6_lettres",
17790
17792
  g_matoku = "g_matoku",
17791
17793
  g_mots_codes = "g_mots_codes",
17792
17794
  g_mots_coupes = "g_mots_coupes",
@@ -18375,6 +18377,10 @@ export declare enum Origin {
18375
18377
  vingtminutes_web_membre_google = "vingtminutes_web_membre_google",
18376
18378
  vingtminutes_web_membre_organique = "vingtminutes_web_membre_organique",
18377
18379
  vingtminutes_web_membre_passmedia = "vingtminutes_web_membre_passmedia",
18380
+ vingtminutes_web_notification_bell_apple = "vingtminutes_web_notification_bell_apple",
18381
+ vingtminutes_web_notification_bell_facebook = "vingtminutes_web_notification_bell_facebook",
18382
+ vingtminutes_web_notification_bell_google = "vingtminutes_web_notification_bell_google",
18383
+ vingtminutes_web_notification_bell_organique = "vingtminutes_web_notification_bell_organique",
18378
18384
  vingtminutes_web_old_newsletters = "vingtminutes_web_old_newsletters",
18379
18385
  vingtminutes_web_openask = "vingtminutes_web_openask",
18380
18386
  vingtminutes_web_page_newsletters_apple = "vingtminutes_web_page_newsletters_apple",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20minutes/tyr",
3
- "version": "2.36.5",
3
+ "version": "2.37.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/20minutes/tyr.git"
@@ -37,6 +37,8 @@
37
37
  "build:storybook": "storybook build",
38
38
  "lint": "biome check --max-diagnostics=none",
39
39
  "lint:fix": "biome check --write --unsafe --max-diagnostics=none",
40
+ "lint:staged": "biome check --error-on-warnings --no-errors-on-unmatched --staged --max-diagnostics=none",
41
+ "lint:ci": "biome ci --max-diagnostics=none",
40
42
  "test": "NODE_ENV=test vitest --silent=true",
41
43
  "test:coverage": "NODE_ENV=test vitest --coverage --silent=true",
42
44
  "test:watch": "NODE_ENV=test vitest --watch",
@@ -44,11 +46,6 @@
44
46
  "upload:storybook:start": "tsx scripts/uploadStorybook start",
45
47
  "upload:storybook:end": "tsx scripts/uploadStorybook end"
46
48
  },
47
- "lint-staged": {
48
- "*.{js,ts,jsx,tsx}": [
49
- "biome check"
50
- ]
51
- },
52
49
  "engines": {
53
50
  "npm": "please-use-yarn-instead",
54
51
  "yarn": ">= 1.22.22",
@@ -72,24 +69,24 @@
72
69
  },
73
70
  "devDependencies": {
74
71
  "@20minutes/eslint-config": "^3.0.1",
75
- "@aws-sdk/client-s3": "3.1003.0",
72
+ "@aws-sdk/client-s3": "3.1006.0",
76
73
  "@graphql-codegen/cli": "^6.1.3",
77
74
  "@graphql-codegen/typescript": "^5.0.9",
78
75
  "@graphql-codegen/typescript-operations": "^5.0.9",
79
76
  "@octokit/core": "7.0.6",
80
- "@rollup/plugin-commonjs": "^29.0.1",
77
+ "@rollup/plugin-commonjs": "^29.0.2",
81
78
  "@rollup/plugin-node-resolve": "^16.0.3",
82
79
  "@rollup/plugin-replace": "^6.0.3",
83
80
  "@rollup/plugin-terser": "^1.0.0",
84
- "@storybook/addon-docs": "^10.2.15",
85
- "@storybook/addon-links": "^10.2.15",
86
- "@storybook/react-vite": "^10.2.15",
81
+ "@storybook/addon-docs": "^10.2.17",
82
+ "@storybook/addon-links": "^10.2.17",
83
+ "@storybook/react-vite": "^10.2.17",
87
84
  "@testing-library/dom": "^10.4.1",
88
85
  "@testing-library/react": "^16.3.2",
89
86
  "@types/draft-js": "^0.11.20",
90
87
  "@types/googletag": "^3.3.0",
91
88
  "@types/jsdom": "^27.0.0",
92
- "@types/node": "^25.3.5",
89
+ "@types/node": "^25.4.0",
93
90
  "@types/poool-access": "^5.18.1",
94
91
  "@types/poool-engage": "^2.2.0",
95
92
  "@types/react": "^18.3.13",
@@ -101,9 +98,8 @@
101
98
  "globals": "^17.4.0",
102
99
  "graphql": "^16.13.1",
103
100
  "husky": "^9.1.7",
104
- "jest-worker": "^30.2.0",
101
+ "jest-worker": "^30.3.0",
105
102
  "jsdom": "^28.1.0",
106
- "lint-staged": "^16.3.2",
107
103
  "mockdate": "^3.0.5",
108
104
  "prettier": "3.8.1",
109
105
  "purgecss": "^8.0.0",
@@ -114,7 +110,7 @@
114
110
  "rollup-plugin-typescript-paths": "^1.5.0",
115
111
  "rollup-plugin-visualizer": "^7.0.1",
116
112
  "schema-dts": "^1.1.5",
117
- "storybook": "^10.2.15",
113
+ "storybook": "^10.2.17",
118
114
  "tsx": "^4.21.0",
119
115
  "typed-query-selector": "^2.12.1",
120
116
  "typescript": "^5.9.3",