@20minutes/tyr 2.34.4 → 2.35.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.
Files changed (23) hide show
  1. package/dist/css/electionsaiarticlesPage-desktop-critical.css +1 -0
  2. package/dist/css/electionsaiarticlesPage-desktop-no-critical.css +1 -0
  3. package/dist/css/electionsaiarticlesPage-mobile-critical.css +1 -0
  4. package/dist/css/electionsaiarticlesPage-mobile-no-critical.css +1 -0
  5. package/dist/index.es.js +10478 -10366
  6. package/dist/index.umd.js +82 -82
  7. package/dist/src/components/molecules/AIArticlesList/AIArticlesList.d.ts +11 -0
  8. package/dist/src/components/molecules/AIArticlesList/AIArticlesList.stories.d.ts +17 -0
  9. package/dist/src/components/molecules/AIArticlesList/index.d.ts +1 -0
  10. package/dist/src/components/molecules/index.d.ts +1 -1
  11. package/dist/src/components/organisms/index.d.ts +1 -0
  12. package/dist/src/config/componentConfigs/componentElectionsAiArticlesConfigs.d.ts +2 -0
  13. package/dist/src/config/pageConfigs/electionsAiArticlesPageConfig.d.ts +2 -0
  14. package/dist/src/pages/ElectionsAIArticlesPage/ElectionsAIArticlesPage.d.ts +8 -0
  15. package/dist/src/pages/ElectionsAIArticlesPage/ElectionsAIArticlesPage.stories.d.ts +15 -0
  16. package/dist/src/pages/ElectionsAIArticlesPage/index.d.ts +1 -0
  17. package/dist/src/pages/index.d.ts +1 -0
  18. package/dist/src/types/ComponentConfig.d.ts +8 -1
  19. package/dist/src/types/PageConfig.d.ts +4 -2
  20. package/package.json +1 -1
  21. /package/dist/src/components/{molecules → organisms}/BulletedListMap/BulletedListMap.d.ts +0 -0
  22. /package/dist/src/components/{molecules → organisms}/BulletedListMap/BulletedListMap.stories.d.ts +0 -0
  23. /package/dist/src/components/{molecules → organisms}/BulletedListMap/index.d.ts +0 -0
@@ -0,0 +1,11 @@
1
+ import { GridProps, LinkProps } from '@20minutes/hela';
2
+ import { default as React } from 'react';
3
+ export interface AIArticlesListProps extends GridProps {
4
+ articles: {
5
+ title: string;
6
+ url: string;
7
+ }[];
8
+ linksSize?: LinkProps['size'];
9
+ seeMoreLink?: LinkProps;
10
+ }
11
+ export declare const AIArticlesList: React.FC<AIArticlesListProps>;
@@ -0,0 +1,17 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').FC<import('./AIArticlesList').AIArticlesListProps>;
5
+ args: {
6
+ articles: {
7
+ title: string;
8
+ url: string;
9
+ }[];
10
+ seeMoreLink: {
11
+ href: string;
12
+ };
13
+ };
14
+ };
15
+ export default meta;
16
+ type Story = StoryObj<typeof meta>;
17
+ export declare const Overview: Story;
@@ -0,0 +1 @@
1
+ export * from './AIArticlesList';
@@ -1,10 +1,10 @@
1
1
  export * from './Accordion';
2
+ export * from './AIArticlesList';
2
3
  export * from './ArticlesBlockHeader';
3
4
  export * from './ArticleSummary';
4
5
  export * from './BackgroundImage';
5
6
  export * from './CardExtraLarge';
6
7
  export * from './Content';
7
- export * from './BulletedListMap';
8
8
  export * from './ElectionDisclaimer';
9
9
  export * from './EntertainmentBlock';
10
10
  export * from './Faq';
@@ -1,5 +1,6 @@
1
1
  export * from './ArchivesPage';
2
2
  export * from './ArticlePage';
3
+ export * from './BulletedListMap';
3
4
  export * from './CardsList';
4
5
  export * from './ContactPage';
5
6
  export * from './ContentCover';
@@ -0,0 +1,2 @@
1
+ import { ComponentConfig, ComponentNameElectionsAiArticles } from '../../types';
2
+ export declare const COMPONENT_ELECTIONS_AI_ARTICLES_CONFIGS: ComponentConfig<ComponentNameElectionsAiArticles>[];
@@ -0,0 +1,2 @@
1
+ import { ElectionsAIArticlesPageConfig } from '../../types';
2
+ export declare const ELECTIONS_AI_ARTICLES_PAGE_CONFIG: ElectionsAIArticlesPageConfig;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { PageTemplateProps } from '../../templates';
3
+ export interface ElectionsAIArticlesPageProps extends PageTemplateProps {
4
+ breadcrumb: React.ReactNode;
5
+ headerPage: React.ReactNode;
6
+ articles: React.ReactNode;
7
+ }
8
+ export declare const ElectionsAIArticlesPage: React.FC<ElectionsAIArticlesPageProps>;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ import { ElectionsAIArticlesPageProps } from './ElectionsAIArticlesPage';
3
+ import { StoryObj } from '@storybook/react-vite';
4
+ declare const meta: {
5
+ title: string;
6
+ component: React.FC<ElectionsAIArticlesPageProps>;
7
+ args: ElectionsAIArticlesPageProps;
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const ElectionsAIArticlesPageMobile: Story;
15
+ export declare const ElectionsAIArticlesPageDesktop: Story;
@@ -0,0 +1 @@
1
+ export * from './ElectionsAIArticlesPage';
@@ -4,6 +4,7 @@ export * from './ArchiveByYearPage';
4
4
  export * from './ArticlePage';
5
5
  export * from './ContactPage';
6
6
  export * from './DirectPage';
7
+ export * from './ElectionsAIArticlesPage';
7
8
  export * from './ElectionsEmbedPage';
8
9
  export * from './ElectionsHomePage';
9
10
  export * from './ElectionsPage';
@@ -93,6 +93,13 @@ export declare const enum ComponentNameElections {
93
93
  ELECTIONS_RESULTS_FILTERED = "elections/results-filtered",
94
94
  ELECTIONS_SEARCH_BANNER = "elections/search-banner"
95
95
  }
96
+ export declare const enum ComponentNameElectionsAiArticles {
97
+ ELECTIONS_AI_ARTICLES_JSON_LD_BREADCRUMB = "elections-ai-articles/json-ld-breadcrumb",
98
+ ELECTIONS_AI_ARTICLES_META = "elections-ai-articles/meta",
99
+ ELECTIONS_AI_ARTICLES_BREADCRUMB = "elections-ai-articles/breadcrumb",
100
+ ELECTIONS_AI_ARTICLES_HEADER_PAGE = "elections-ai-articles/header-page",
101
+ ELECTIONS_AI_ARTICLES_LIST = "elections-ai-articles/list"
102
+ }
96
103
  export declare const enum ComponentNameError {
97
104
  ERROR_CONTENT = "error/content",
98
105
  ERROR_META = "error/meta"
@@ -403,7 +410,7 @@ export declare const enum ComponentNameWhyCreateAccount {
403
410
  WHY_CREATE_ACCOUNT_HEADER_PAGE = "why-create-account/header-page",
404
411
  WHY_CREATE_ACCOUNT_JSON_LD_BREADCRUMB = "why-create-account/json-ld-breadcrumb"
405
412
  }
406
- export interface ComponentConfig<TComponentName = ComponentNameAdIframe | ComponentNameArchives | ComponentNameArticle | ComponentNameCommon | ComponentNameContact | ComponentNameContent | ComponentNameDirect | ComponentNameElections | ComponentNameError | ComponentNameGame | ComponentNameHome | ComponentNameHoroscope | ComponentNameJobs | ComponentNameJournalist | ComponentNameLa21e | ComponentNameLegal | ComponentNameLegalNotice | ComponentNameLive | ComponentNameMobileApps | ComponentNameMostCommented | ComponentNameMostRead | ComponentNameMostShared | ComponentNameMovies | ComponentNameNews | ComponentNameQuiz | ComponentNameRewind | ComponentNameRubric | ComponentNameSearch | ComponentNameService | ComponentNameShoppingGuide | ComponentNameSitemap | ComponentNameSlideshow | ComponentNameSport | ComponentNameStatic | ComponentNameStory | ComponentNameTag | ComponentNameTraffic | ComponentNameTvHome | ComponentNameTvLive | ComponentNameTvMostRecent | ComponentNameTvMostViewed | ComponentNameTvVideo | ComponentNameTvShow | ComponentNameTvShows | ComponentNameUtiq | ComponentNameWeather | ComponentNameWhyCreateAccount, TComponent = React.FC<any>> {
413
+ export interface ComponentConfig<TComponentName = ComponentNameAdIframe | ComponentNameArchives | ComponentNameArticle | ComponentNameCommon | ComponentNameContact | ComponentNameContent | ComponentNameDirect | ComponentNameElections | ComponentNameElectionsAiArticles | ComponentNameError | ComponentNameGame | ComponentNameHome | ComponentNameHoroscope | ComponentNameJobs | ComponentNameJournalist | ComponentNameLa21e | ComponentNameLegal | ComponentNameLegalNotice | ComponentNameLive | ComponentNameMobileApps | ComponentNameMostCommented | ComponentNameMostRead | ComponentNameMostShared | ComponentNameMovies | ComponentNameNews | ComponentNameQuiz | ComponentNameRewind | ComponentNameRubric | ComponentNameSearch | ComponentNameService | ComponentNameShoppingGuide | ComponentNameSitemap | ComponentNameSlideshow | ComponentNameSport | ComponentNameStatic | ComponentNameStory | ComponentNameTag | ComponentNameTraffic | ComponentNameTvHome | ComponentNameTvLive | ComponentNameTvMostRecent | ComponentNameTvMostViewed | ComponentNameTvVideo | ComponentNameTvShow | ComponentNameTvShows | ComponentNameUtiq | ComponentNameWeather | ComponentNameWhyCreateAccount, TComponent = React.FC<any>> {
407
414
  componentName: TComponentName;
408
415
  component: TComponent;
409
416
  expiration?: number;
@@ -1,7 +1,7 @@
1
- import { AdIframePage, AdIframePageProps, ArchiveByDayPage, ArchiveByDayPageProps, ArchiveByYearPage, ArchiveByYearPageProps, ArticlePage, ArticlePageProps, ContactPage, ContactPageProps, DirectPage, DirectPageProps, ElectionsHomePage, ElectionsHomePageProps, ElectionsPage, ElectionsPageProps, ErrorPage, ErrorPageProps, GameAppPage, GameAppPageProps, GameHomePage, GameHomePageProps, GamePage, GamePageProps, HomePage, HomePageProps, HoroscopeHomePage, HoroscopeHomePageProps, HoroscopePage, HoroscopePageProps, JobDetailsPage, JobDetailsPageProps, JobsPage, JobsPageProps, JournalistPage, JournalistPageProps, La21ePage, La21ePageProps, LegalNoticeDepartmentPage, LegalNoticeDepartmentPageProps, LegalNoticeHomePage, LegalNoticeHomePageProps, LegalNoticePage, LegalNoticePageProps, LegalPage, LegalPageProps, LivePage, LivePageProps, MobileAppsPage, MobileAppsPageProps, MostCommentedPage, MostCommentedPageProps, MostReadPage, MostReadPageProps, MostSharedPage, MostSharedPageProps, MoviesPage, MoviesPageProps, NewsPage, NewsPageProps, PartnerPage, QuizPage, QuizPageProps, RewindPage, RewindPageProps, SearchPage, SearchPageProps, ServicePage, ServicePageProps, ShoppingGuidePage, ShoppingGuidePageProps, SitemapPage, SitemapPageProps, SlideshowPage, SlideshowPageProps, SportPage, SportPageProps, StaticPage, StaticPageProps, TagPage, TagPageProps, TrafficPage, TrafficPageProps, TvHomePage, TvHomePageProps, TvLivePage, TvLivePageProps, TvMostRecentPage, TvMostRecentPageProps, TvMostViewedPage, TvMostViewedPageProps, TvShowPage, TvShowPageProps, TvShowsPage, TvShowsPageProps, UtiqPage, UtiqPageProps, WeatherPage, WeatherPageProps, WhyCreateAccountPage, WhyCreateAccountPageProps } from '../pages';
1
+ import { AdIframePage, AdIframePageProps, ArchiveByDayPage, ArchiveByDayPageProps, ArchiveByYearPage, ArchiveByYearPageProps, ArticlePage, ArticlePageProps, ContactPage, ContactPageProps, DirectPage, DirectPageProps, ElectionsAIArticlesPage, ElectionsAIArticlesPageProps, ElectionsHomePage, ElectionsHomePageProps, ElectionsPage, ElectionsPageProps, ErrorPage, ErrorPageProps, GameAppPage, GameAppPageProps, GameHomePage, GameHomePageProps, GamePage, GamePageProps, HomePage, HomePageProps, HoroscopeHomePage, HoroscopeHomePageProps, HoroscopePage, HoroscopePageProps, JobDetailsPage, JobDetailsPageProps, JobsPage, JobsPageProps, JournalistPage, JournalistPageProps, La21ePage, La21ePageProps, LegalNoticeDepartmentPage, LegalNoticeDepartmentPageProps, LegalNoticeHomePage, LegalNoticeHomePageProps, LegalNoticePage, LegalNoticePageProps, LegalPage, LegalPageProps, LivePage, LivePageProps, MobileAppsPage, MobileAppsPageProps, MostCommentedPage, MostCommentedPageProps, MostReadPage, MostReadPageProps, MostSharedPage, MostSharedPageProps, MoviesPage, MoviesPageProps, NewsPage, NewsPageProps, PartnerPage, QuizPage, QuizPageProps, RewindPage, RewindPageProps, SearchPage, SearchPageProps, ServicePage, ServicePageProps, ShoppingGuidePage, ShoppingGuidePageProps, SitemapPage, SitemapPageProps, SlideshowPage, SlideshowPageProps, SportPage, SportPageProps, StaticPage, StaticPageProps, TagPage, TagPageProps, TrafficPage, TrafficPageProps, TvHomePage, TvHomePageProps, TvLivePage, TvLivePageProps, TvMostRecentPage, TvMostRecentPageProps, TvMostViewedPage, TvMostViewedPageProps, TvShowPage, TvShowPageProps, TvShowsPage, TvShowsPageProps, UtiqPage, UtiqPageProps, WeatherPage, WeatherPageProps, WhyCreateAccountPage, WhyCreateAccountPageProps } from '../pages';
2
2
  import { TvVideoPage, TvVideoPageProps } from '../pages/TvVideoPage';
3
3
  import { PageTemplateProps } from '../templates';
4
- import { ComponentNameAdIframe, ComponentNameArchives, ComponentNameArticle, ComponentNameCommon, ComponentNameContact, ComponentNameContent, ComponentNameDirect, ComponentNameElections, ComponentNameError, ComponentNameGame, ComponentNameHome, ComponentNameHoroscope, ComponentNameJobs, ComponentNameJournalist, ComponentNameLa21e, ComponentNameLegal, ComponentNameLegalNotice, ComponentNameLive, ComponentNameMobileApps, ComponentNameMostCommented, ComponentNameMostRead, ComponentNameMostShared, ComponentNameMovies, ComponentNameNews, ComponentNameQuiz, ComponentNameRewind, ComponentNameRubric, ComponentNameSearch, ComponentNameService, ComponentNameShoppingGuide, ComponentNameSitemap, ComponentNameSlideshow, ComponentNameSport, ComponentNameStatic, ComponentNameStory, ComponentNameTag, ComponentNameTraffic, ComponentNameTvHome, ComponentNameTvLive, ComponentNameTvMostRecent, ComponentNameTvMostViewed, ComponentNameTvShow, ComponentNameTvShows, ComponentNameTvVideo, ComponentNameUtiq, ComponentNameWeather, ComponentNameWhyCreateAccount } from './ComponentConfig';
4
+ import { ComponentNameAdIframe, ComponentNameArchives, ComponentNameArticle, ComponentNameCommon, ComponentNameContact, ComponentNameContent, ComponentNameDirect, ComponentNameElections, ComponentNameElectionsAiArticles, ComponentNameError, ComponentNameGame, ComponentNameHome, ComponentNameHoroscope, ComponentNameJobs, ComponentNameJournalist, ComponentNameLa21e, ComponentNameLegal, ComponentNameLegalNotice, ComponentNameLive, ComponentNameMobileApps, ComponentNameMostCommented, ComponentNameMostRead, ComponentNameMostShared, ComponentNameMovies, ComponentNameNews, ComponentNameQuiz, ComponentNameRewind, ComponentNameRubric, ComponentNameSearch, ComponentNameService, ComponentNameShoppingGuide, ComponentNameSitemap, ComponentNameSlideshow, ComponentNameSport, ComponentNameStatic, ComponentNameStory, ComponentNameTag, ComponentNameTraffic, ComponentNameTvHome, ComponentNameTvLive, ComponentNameTvMostRecent, ComponentNameTvMostViewed, ComponentNameTvShow, ComponentNameTvShows, ComponentNameTvVideo, ComponentNameUtiq, ComponentNameWeather, ComponentNameWhyCreateAccount } from './ComponentConfig';
5
5
  export interface PageComponentConfig<TComponentName = string, TPropName = string> {
6
6
  name: TComponentName;
7
7
  propName: TPropName;
@@ -20,6 +20,7 @@ export type ArchiveByYearPageConfig = PageConfig<'archiveByYear', typeof Archive
20
20
  export type ArticlePageConfig = PageConfig<'article', typeof ArticlePage, ComponentNameCommon | ComponentNameRubric | ComponentNameArticle | ComponentNameContent, keyof ArticlePageProps | 'meta' | 'jsonLdBreadcrumb' | 'jsonLdClaimReview' | 'jsonLdNewsArticle' | 'defaultPreload' | 'preload'>;
21
21
  export type ContactPageConfig = PageConfig<'contact', typeof ContactPage, ComponentNameCommon | ComponentNameRubric | ComponentNameContact | ComponentNameContent, keyof ContactPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload' | 'preload'>;
22
22
  export type DirectPageConfig = PageConfig<'direct', typeof DirectPage, ComponentNameCommon | ComponentNameDirect, keyof DirectPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload' | 'preload' | 'lastArticlesBlock'>;
23
+ export type ElectionsAIArticlesPageConfig = PageConfig<'electionsAiArticles', typeof ElectionsAIArticlesPage, ComponentNameCommon | ComponentNameElectionsAiArticles, keyof ElectionsAIArticlesPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload'>;
23
24
  export type ElectionsEmbedPageConfig = PageConfig<'electionsEmbed', typeof ElectionsHomePage, ComponentNameCommon | ComponentNameElections, keyof ElectionsHomePageProps | 'meta' | 'defaultPreload'>;
24
25
  export type ElectionsHomePageConfig = PageConfig<'electionsHome', typeof ElectionsHomePage, ComponentNameCommon | ComponentNameElections, keyof ElectionsHomePageProps | 'meta' | 'jsonLdBreadcrumb' | 'jsonLdFaq' | 'defaultPreload'>;
25
26
  export type ElectionsPageConfig = PageConfig<'elections', typeof ElectionsPage, ComponentNameCommon | ComponentNameElections, keyof ElectionsPageProps | 'meta' | 'jsonLdBreadcrumb' | 'jsonLdFaq' | 'defaultPreload'>;
@@ -74,6 +75,7 @@ export type PageConfigs = [
74
75
  ArticlePageConfig,
75
76
  ContactPageConfig,
76
77
  DirectPageConfig,
78
+ ElectionsAIArticlesPageConfig,
77
79
  ElectionsEmbedPageConfig,
78
80
  ElectionsHomePageConfig,
79
81
  ElectionsPageConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20minutes/tyr",
3
- "version": "2.34.4",
3
+ "version": "2.35.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/20minutes/tyr.git"