@20minutes/tyr 2.17.6 → 2.19.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.
- package/dist/css/tvshowsPage-desktop-critical.css +1 -0
- package/dist/css/tvshowsPage-desktop-no-critical.css +1 -0
- package/dist/css/tvshowsPage-mobile-critical.css +1 -0
- package/dist/css/tvshowsPage-mobile-no-critical.css +1 -0
- package/dist/css/tvvideoPage-desktop-critical.css +1 -0
- package/dist/css/tvvideoPage-desktop-no-critical.css +1 -0
- package/dist/css/tvvideoPage-mobile-critical.css +1 -0
- package/dist/css/tvvideoPage-mobile-no-critical.css +1 -0
- package/dist/index.es.js +16811 -16461
- package/dist/index.umd.js +97 -97
- package/dist/js/main.min.js +1 -1
- package/dist/src/assets/main/digiteka.d.ts +2 -0
- package/dist/src/components/molecules/BackgroundImage/BackgroundImage.d.ts +6 -0
- package/dist/src/components/molecules/BackgroundImage/BackgroundImage.stories.d.ts +16 -0
- package/dist/src/components/molecules/BackgroundImage/index.d.ts +1 -0
- package/dist/src/components/molecules/ImagesGrid/ImagesGrid.d.ts +10 -0
- package/dist/src/components/molecules/ImagesGrid/ImagesGrid.stories.d.ts +16 -0
- package/dist/src/components/molecules/ImagesGrid/index.d.ts +1 -0
- package/dist/src/components/molecules/TvLiveTopBlock/TvLiveTopBlock.d.ts +1 -1
- package/dist/src/components/molecules/TvVideoTopBlock/TvVideoTopBlock.d.ts +13 -0
- package/dist/src/components/molecules/TvVideoTopBlock/TvVideoTopBlock.stories.d.ts +80 -0
- package/dist/src/components/molecules/TvVideoTopBlock/index.d.ts +1 -0
- package/dist/src/components/molecules/index.d.ts +4 -1
- package/dist/src/components/organisms/TvExtractsAndReplaysBlock/TvExtractsAndReplaysBlock.d.ts +8 -0
- package/dist/src/components/organisms/TvExtractsAndReplaysBlock/TvExtractsAndReplaysBlock.stories.d.ts +27 -0
- package/dist/src/components/organisms/TvExtractsAndReplaysBlock/index.d.ts +1 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/config/componentConfigs/componentTvShowsConfigs.d.ts +2 -0
- package/dist/src/config/componentConfigs/componentTvVideoConfigs.d.ts +2 -0
- package/dist/src/config/pageConfigs/tvShowsPageConfig.d.ts +2 -0
- package/dist/src/config/pageConfigs/tvVideoPageConfig.d.ts +2 -0
- package/dist/src/managers/ArticlePageManager.d.ts +2 -0
- package/dist/src/pages/TvShowsPage/TvShowsPage.d.ts +7 -0
- package/dist/src/pages/TvShowsPage/TvShowsPage.stories.d.ts +62 -0
- package/dist/src/pages/TvShowsPage/index.d.ts +1 -0
- package/dist/src/pages/TvVideoPage/TvVideoPage.d.ts +10 -0
- package/dist/src/pages/TvVideoPage/TvVideoPage.stories.d.ts +65 -0
- package/dist/src/pages/TvVideoPage/index.d.ts +1 -0
- package/dist/src/pages/index.d.ts +1 -0
- package/dist/src/types/ComponentConfig.d.ts +17 -2
- package/dist/src/types/PageConfig.d.ts +7 -2
- package/package.json +6 -6
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { LayoutType } from '@20minutes/hela';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import('react').FC<import('./TvVideoTopBlock').TvVideoTopBlockProps>;
|
|
6
|
+
args: {
|
|
7
|
+
mediaSrc: string;
|
|
8
|
+
cardHeaderProps: {
|
|
9
|
+
headline: {
|
|
10
|
+
text: string;
|
|
11
|
+
};
|
|
12
|
+
rightSubheader: {
|
|
13
|
+
text: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
heading: {
|
|
17
|
+
children: string;
|
|
18
|
+
};
|
|
19
|
+
subtitle: {
|
|
20
|
+
children: string;
|
|
21
|
+
};
|
|
22
|
+
showTitle: {
|
|
23
|
+
children: string;
|
|
24
|
+
};
|
|
25
|
+
signatureProps: {
|
|
26
|
+
layout: LayoutType.MOBILE;
|
|
27
|
+
avatars: {
|
|
28
|
+
title: string;
|
|
29
|
+
}[];
|
|
30
|
+
authors: string;
|
|
31
|
+
publishedAt: string;
|
|
32
|
+
editedAt: string;
|
|
33
|
+
};
|
|
34
|
+
mostWatchVideos: {
|
|
35
|
+
layout: LayoutType.MOBILE;
|
|
36
|
+
tabItems: {
|
|
37
|
+
name: string;
|
|
38
|
+
title: string;
|
|
39
|
+
body: {
|
|
40
|
+
title: string;
|
|
41
|
+
url: string;
|
|
42
|
+
cover: string;
|
|
43
|
+
themeColor?: string | undefined;
|
|
44
|
+
rubricName?: string | undefined;
|
|
45
|
+
lazyLoad?: boolean | undefined;
|
|
46
|
+
}[];
|
|
47
|
+
seeMoreLink: {
|
|
48
|
+
variant: "has-dark-bg";
|
|
49
|
+
borderColor: "white";
|
|
50
|
+
bg: string;
|
|
51
|
+
href: string;
|
|
52
|
+
children: string;
|
|
53
|
+
};
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
relatedTags: {
|
|
57
|
+
layout: LayoutType.MOBILE;
|
|
58
|
+
hasBackground: false;
|
|
59
|
+
tags: {
|
|
60
|
+
children: string;
|
|
61
|
+
}[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
parameters: {
|
|
65
|
+
controls: {
|
|
66
|
+
exclude: string[];
|
|
67
|
+
};
|
|
68
|
+
layout: string;
|
|
69
|
+
viewport: {
|
|
70
|
+
defaultViewport: string;
|
|
71
|
+
};
|
|
72
|
+
backgrounds: {
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export default meta;
|
|
78
|
+
type Story = StoryObj<typeof meta>;
|
|
79
|
+
export declare const Mobile: Story;
|
|
80
|
+
export declare const Desktop: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TvVideoTopBlock';
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
export * from './Accordion';
|
|
2
2
|
export * from './ArticlesBlockHeader';
|
|
3
3
|
export * from './ArticleSummary';
|
|
4
|
+
export * from './BackgroundImage';
|
|
4
5
|
export * from './CardExtraLarge';
|
|
5
6
|
export * from './Content';
|
|
6
7
|
export * from './BulletedListMap';
|
|
7
8
|
export * from './EntertainmentBlock';
|
|
8
9
|
export * from './Faq';
|
|
10
|
+
export * from './FaqList';
|
|
9
11
|
export * from './GameIframe';
|
|
10
12
|
export * from './GamesAccordion';
|
|
11
13
|
export * from './HeaderPage';
|
|
12
14
|
export * from './HoroscopeHomepageContent';
|
|
15
|
+
export * from './ImagesGrid';
|
|
13
16
|
export * from './InfoBanner';
|
|
14
|
-
export * from './FaqList';
|
|
15
17
|
export * from './InfoLine';
|
|
16
18
|
export * from './LastArticlesBlock';
|
|
17
19
|
export * from './LegalNoticeCardsList';
|
|
@@ -25,4 +27,5 @@ export * from './SearchBanner';
|
|
|
25
27
|
export * from './SlideshowStory';
|
|
26
28
|
export * from './SponsoredBlock';
|
|
27
29
|
export * from './TvLiveTopBlock';
|
|
30
|
+
export * from './TvVideoTopBlock';
|
|
28
31
|
export * from './YearsList';
|
package/dist/src/components/organisms/TvExtractsAndReplaysBlock/TvExtractsAndReplaysBlock.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxProps, CardSmallProps, LayoutType } from '@20minutes/hela';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface TvExtractsAndReplaysBlockProps extends BoxProps {
|
|
4
|
+
layout: LayoutType;
|
|
5
|
+
extracts: CardSmallProps[];
|
|
6
|
+
replays: CardSmallProps[];
|
|
7
|
+
}
|
|
8
|
+
export declare const TvExtractsAndReplaysBlock: React.FC<TvExtractsAndReplaysBlockProps>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LayoutType } from '@20minutes/hela';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import('react').FC<import('../..').TvExtractsAndReplaysBlockProps>;
|
|
6
|
+
args: {
|
|
7
|
+
layout: LayoutType.MOBILE;
|
|
8
|
+
extracts: import('@20minutes/hela').CardSmallProps[];
|
|
9
|
+
replays: import('@20minutes/hela').CardSmallProps[];
|
|
10
|
+
};
|
|
11
|
+
parameters: {
|
|
12
|
+
controls: {
|
|
13
|
+
exclude: string[];
|
|
14
|
+
};
|
|
15
|
+
layout: string;
|
|
16
|
+
backgrounds: {
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
viewport: {
|
|
20
|
+
defaultViewport: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
export declare const Mobile: Story;
|
|
27
|
+
export declare const Desktop: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TvExtractsAndReplaysBlock';
|
|
@@ -23,6 +23,7 @@ export * from './StaticCardList';
|
|
|
23
23
|
export * from './TagPage';
|
|
24
24
|
export * from './TvBlock';
|
|
25
25
|
export * from './TvPages';
|
|
26
|
+
export * from './TvExtractsAndReplaysBlock';
|
|
26
27
|
export * from './TvMostVideosBlock';
|
|
27
28
|
export * from './VideosCarousel';
|
|
28
29
|
export * from './VideosPage';
|
|
@@ -20,5 +20,7 @@ export declare class ArticlePageManager extends PageManager<ArticlePageProps, Se
|
|
|
20
20
|
private insertInreadDesktop;
|
|
21
21
|
private insertInreadMobile;
|
|
22
22
|
static insertHeadliner(content: React.ReactNode): React.ReactElement;
|
|
23
|
+
static transformContentVideos(content: React.ReactNode): React.ReactElement;
|
|
24
|
+
static transformCover(cover: React.ReactNode): React.ReactNode;
|
|
23
25
|
}
|
|
24
26
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PageTemplateProps } from '../../templates';
|
|
3
|
+
export interface TvShowsPageProps extends PageTemplateProps {
|
|
4
|
+
breadcrumb: React.ReactNode;
|
|
5
|
+
programs: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const TvShowsPage: React.FC<TvShowsPageProps>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { BreadcrumbProps, HeaderProps, LayoutType } from '@20minutes/hela';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { ImagesGridProps, MetaProps } from '../../components';
|
|
4
|
+
import { StoryObj } from '@storybook/react';
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: React.FC<import('..').TvShowsPageProps>;
|
|
8
|
+
args: {
|
|
9
|
+
htmlTemplateProps: {
|
|
10
|
+
meta: React.FunctionComponentElement<MetaProps>;
|
|
11
|
+
layout: LayoutType;
|
|
12
|
+
stylesheets?: {
|
|
13
|
+
name: string;
|
|
14
|
+
url: string;
|
|
15
|
+
isCritical?: boolean | undefined;
|
|
16
|
+
}[] | undefined;
|
|
17
|
+
inlineCss?: string | undefined;
|
|
18
|
+
firstPartyScripts: import('../..').FirstPartyScriptsType;
|
|
19
|
+
thirdPartiesConfig: import('../..').ThirdPartiesConfigType;
|
|
20
|
+
gtmNoScript?: string | undefined;
|
|
21
|
+
jsonLdBreadcrumb?: React.ReactNode;
|
|
22
|
+
jsonLdFaq?: React.ReactNode;
|
|
23
|
+
jsonLdClaimReview?: React.ReactNode;
|
|
24
|
+
jsonLdLiveBlogPosting?: React.ReactNode;
|
|
25
|
+
jsonLdNewsArticle?: React.ReactNode;
|
|
26
|
+
defaultPreload: React.ReactNode;
|
|
27
|
+
preload?: React.ReactNode;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
envVariables?: import('../../types/EnvVariablesType').EnvVariablesType | undefined;
|
|
30
|
+
novaHost?: string | undefined;
|
|
31
|
+
goomHost?: string | undefined;
|
|
32
|
+
imgHost?: string | undefined;
|
|
33
|
+
staticHost?: string | undefined;
|
|
34
|
+
pageMetaData?: import('../../templates').PageMetaDataType | undefined;
|
|
35
|
+
customPrint?: boolean | undefined;
|
|
36
|
+
backgroundPageColor?: import('@20minutes/hela').ColorType | undefined;
|
|
37
|
+
};
|
|
38
|
+
header: React.FunctionComponentElement<HeaderProps>;
|
|
39
|
+
breadcrumb: React.FunctionComponentElement<BreadcrumbProps>;
|
|
40
|
+
programs: React.FunctionComponentElement<ImagesGridProps>;
|
|
41
|
+
headerMini?: React.ReactNode;
|
|
42
|
+
menu: React.ReactNode;
|
|
43
|
+
overviewBar?: React.ReactNode;
|
|
44
|
+
adTopPage?: React.ReactNode;
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
footer: React.ReactNode;
|
|
47
|
+
toolbar?: React.ReactNode;
|
|
48
|
+
comment?: React.ReactNode;
|
|
49
|
+
backgroundPageColor?: import('@20minutes/hela').ColorType | undefined;
|
|
50
|
+
hasArch?: boolean | undefined;
|
|
51
|
+
};
|
|
52
|
+
parameters: {
|
|
53
|
+
layout: string;
|
|
54
|
+
backgrounds: {
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default meta;
|
|
60
|
+
type Story = StoryObj<typeof meta>;
|
|
61
|
+
export declare const ShowsPageMobile: Story;
|
|
62
|
+
export declare const ShowsPageDesktop: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TvShowsPage';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PageTemplateProps } from '../../templates';
|
|
3
|
+
export interface TvVideoPageProps extends PageTemplateProps {
|
|
4
|
+
breadcrumb: React.ReactNode;
|
|
5
|
+
topBlock: React.ReactNode;
|
|
6
|
+
extractsAndReplays: React.ReactNode;
|
|
7
|
+
showsReplaysCarousel: React.ReactNode;
|
|
8
|
+
backgroundImg: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const TvVideoPage: React.FC<TvVideoPageProps>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BreadcrumbProps, HeaderProps, LayoutType } from '@20minutes/hela';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { BackgroundImageProps, MetaProps, ShowsReplaysCarouselProps, TvExtractsAndReplaysBlockProps, TvVideoTopBlockProps } from '../../components';
|
|
4
|
+
import { StoryObj } from '@storybook/react';
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: React.FC<import('./TvVideoPage').TvVideoPageProps>;
|
|
8
|
+
args: {
|
|
9
|
+
htmlTemplateProps: {
|
|
10
|
+
meta: React.FunctionComponentElement<MetaProps>;
|
|
11
|
+
layout: LayoutType;
|
|
12
|
+
stylesheets?: {
|
|
13
|
+
name: string;
|
|
14
|
+
url: string;
|
|
15
|
+
isCritical?: boolean | undefined;
|
|
16
|
+
}[] | undefined;
|
|
17
|
+
inlineCss?: string | undefined;
|
|
18
|
+
firstPartyScripts: import('../..').FirstPartyScriptsType;
|
|
19
|
+
thirdPartiesConfig: import('../..').ThirdPartiesConfigType;
|
|
20
|
+
gtmNoScript?: string | undefined;
|
|
21
|
+
jsonLdBreadcrumb?: React.ReactNode;
|
|
22
|
+
jsonLdFaq?: React.ReactNode;
|
|
23
|
+
jsonLdClaimReview?: React.ReactNode;
|
|
24
|
+
jsonLdLiveBlogPosting?: React.ReactNode;
|
|
25
|
+
jsonLdNewsArticle?: React.ReactNode;
|
|
26
|
+
defaultPreload: React.ReactNode;
|
|
27
|
+
preload?: React.ReactNode;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
envVariables?: import('../../types/EnvVariablesType').EnvVariablesType | undefined;
|
|
30
|
+
novaHost?: string | undefined;
|
|
31
|
+
goomHost?: string | undefined;
|
|
32
|
+
imgHost?: string | undefined;
|
|
33
|
+
staticHost?: string | undefined;
|
|
34
|
+
pageMetaData?: import('../../templates').PageMetaDataType | undefined;
|
|
35
|
+
customPrint?: boolean | undefined;
|
|
36
|
+
backgroundPageColor?: import('@20minutes/hela').ColorType | undefined;
|
|
37
|
+
};
|
|
38
|
+
header: React.FunctionComponentElement<HeaderProps>;
|
|
39
|
+
breadcrumb: React.FunctionComponentElement<BreadcrumbProps>;
|
|
40
|
+
topBlock: React.FunctionComponentElement<TvVideoTopBlockProps>;
|
|
41
|
+
extractsAndReplays: React.FunctionComponentElement<TvExtractsAndReplaysBlockProps>;
|
|
42
|
+
showsReplaysCarousel: React.FunctionComponentElement<ShowsReplaysCarouselProps>;
|
|
43
|
+
backgroundImg: React.FunctionComponentElement<BackgroundImageProps>;
|
|
44
|
+
headerMini?: React.ReactNode;
|
|
45
|
+
menu: React.ReactNode;
|
|
46
|
+
overviewBar?: React.ReactNode;
|
|
47
|
+
adTopPage?: React.ReactNode;
|
|
48
|
+
children: React.ReactNode;
|
|
49
|
+
footer: React.ReactNode;
|
|
50
|
+
toolbar?: React.ReactNode;
|
|
51
|
+
comment?: React.ReactNode;
|
|
52
|
+
backgroundPageColor?: import('@20minutes/hela').ColorType | undefined;
|
|
53
|
+
hasArch?: boolean | undefined;
|
|
54
|
+
};
|
|
55
|
+
parameters: {
|
|
56
|
+
layout: string;
|
|
57
|
+
backgrounds: {
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export default meta;
|
|
63
|
+
type Story = StoryObj<typeof meta>;
|
|
64
|
+
export declare const VideoPageMobile: Story;
|
|
65
|
+
export declare const VideoPageDesktop: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TvVideoPage';
|
|
@@ -43,6 +43,7 @@ export * from './TrafficPage';
|
|
|
43
43
|
export * from './TvHomeVideosPage';
|
|
44
44
|
export * from './TvLivePage';
|
|
45
45
|
export * from './TvShowPage';
|
|
46
|
+
export * from './TvShowsPage';
|
|
46
47
|
export * from './UtiqPage';
|
|
47
48
|
export * from './VideoPage';
|
|
48
49
|
export * from './VideosPage';
|
|
@@ -28,7 +28,8 @@ export declare const enum ComponentNameCommon {
|
|
|
28
28
|
COMMON_PRELOAD = "common/preload",
|
|
29
29
|
COMMON_LATEST_CONTENTS_CARROUSEL = "common/latest-contents-carousel",
|
|
30
30
|
COMMON_TOOLBAR = "common/toolbar",
|
|
31
|
-
COMMON_TV_SHOWS_REPLAYS_CAROUSEL = "common/tv-shows-replays-carousel"
|
|
31
|
+
COMMON_TV_SHOWS_REPLAYS_CAROUSEL = "common/tv-shows-replays-carousel",
|
|
32
|
+
COMMON_TV_MOST_WATCH_VIDEOS = "common/tv-most-watch-videos"
|
|
32
33
|
}
|
|
33
34
|
export declare const enum ComponentNameContact {
|
|
34
35
|
CONTACT_BREADCRUMB = "contact/breadcrumb",
|
|
@@ -346,11 +347,25 @@ export declare const enum ComponentNameTvLive {
|
|
|
346
347
|
TV_LIVE_TOP_BLOCK = "tv-live/top-block",
|
|
347
348
|
TV_LIVE_TIMELINE = "tv-live/timeline"
|
|
348
349
|
}
|
|
350
|
+
export declare const enum ComponentNameTvVideo {
|
|
351
|
+
TV_VIDEO_JSON_LD_BREADCRUMB = "tv-video/json-ld-breadcrumb",
|
|
352
|
+
TV_VIDEO_META = "tv-video/meta",
|
|
353
|
+
TV_VIDEO_BREADCRUMB = "tv-video/breadcrumb",
|
|
354
|
+
TV_VIDEO_TOP_BLOCK = "tv-video/top-block",
|
|
355
|
+
TV_VIDEO_EXTRACTS_AND_REPLAYS = "tv-video/extracts-and-replays",
|
|
356
|
+
TV_VIDEO_BACKGROUND_IMAGE = "tv-video/background-img"
|
|
357
|
+
}
|
|
349
358
|
export declare const enum ComponentNameTvShow {
|
|
350
359
|
TV_SHOW_JSON_LD_BREADCRUMB = "tv-show/json-ld-breadcrumb",
|
|
351
360
|
TV_SHOW_META = "tv-show/meta",
|
|
352
361
|
TV_SHOW_TOP_BLOCK = "tv-show/top-block"
|
|
353
362
|
}
|
|
363
|
+
export declare const enum ComponentNameTvShows {
|
|
364
|
+
TV_SHOWS_JSON_LD_BREADCRUMB = "tv-shows/json-ld-breadcrumb",
|
|
365
|
+
TV_SHOWS_META = "tv-shows/meta",
|
|
366
|
+
TV_SHOWS_BREADCRUMB = "tv-shows/breadcrumb",
|
|
367
|
+
TV_SHOWS_PROGRAMS = "tv-shows/programs"
|
|
368
|
+
}
|
|
354
369
|
export declare const enum ComponentNameUtiq {
|
|
355
370
|
UTIQ_BREADCRUMB = "utiq/breadcrumb",
|
|
356
371
|
UTIQ_HEADER_PAGE = "utiq/header-page",
|
|
@@ -379,7 +394,7 @@ export declare const enum ComponentNameWeather {
|
|
|
379
394
|
WEATHER_JSON_LD_BREADCRUMB = "weather/json-ld-breadcrumb",
|
|
380
395
|
WEATHER_META = "weather/meta"
|
|
381
396
|
}
|
|
382
|
-
export interface ComponentConfig<TComponentName = ComponentNameArchives | ComponentNameArticle | ComponentNameCommon | ComponentNameContact | ComponentNameContent | ComponentNameDirect | ComponentNameElections | ComponentNameError | ComponentNameGame | ComponentNameHome | ComponentNameHoroscope | ComponentNameJobs | ComponentNameJournalist | ComponentNameLa21e | ComponentNameLegal | ComponentNameLegalNotice | ComponentNameLive | ComponentNameMobileApps | ComponentNameMostCommented | ComponentNameMostRead | ComponentNameMostRecentVideos | ComponentNameMostShared | ComponentNameMostViewed | ComponentNameMovies | ComponentNameNews | ComponentNameProgram | ComponentNameRubric | ComponentNameSearch | ComponentNameService | ComponentNameShoppingGuide | ComponentNameSitemap | ComponentNameSlideshow | ComponentNameSport | ComponentNameStory | ComponentNameTag | ComponentNameTraffic | ComponentNameTvHomeVideos | ComponentNameTvLive | ComponentNameTvShow | ComponentNameUtiq | ComponentNameVideo | ComponentNameVideos | ComponentNameWeather, TComponent = React.FC<any>> {
|
|
397
|
+
export interface ComponentConfig<TComponentName = ComponentNameArchives | ComponentNameArticle | ComponentNameCommon | ComponentNameContact | ComponentNameContent | ComponentNameDirect | ComponentNameElections | ComponentNameError | ComponentNameGame | ComponentNameHome | ComponentNameHoroscope | ComponentNameJobs | ComponentNameJournalist | ComponentNameLa21e | ComponentNameLegal | ComponentNameLegalNotice | ComponentNameLive | ComponentNameMobileApps | ComponentNameMostCommented | ComponentNameMostRead | ComponentNameMostRecentVideos | ComponentNameMostShared | ComponentNameMostViewed | ComponentNameMovies | ComponentNameNews | ComponentNameProgram | ComponentNameRubric | ComponentNameSearch | ComponentNameService | ComponentNameShoppingGuide | ComponentNameSitemap | ComponentNameSlideshow | ComponentNameSport | ComponentNameStory | ComponentNameTag | ComponentNameTraffic | ComponentNameTvHomeVideos | ComponentNameTvLive | ComponentNameTvVideo | ComponentNameTvShow | ComponentNameTvShows | ComponentNameUtiq | ComponentNameVideo | ComponentNameVideos | ComponentNameWeather, TComponent = React.FC<any>> {
|
|
383
398
|
componentName: TComponentName;
|
|
384
399
|
component: TComponent;
|
|
385
400
|
expiration?: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { 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, MostRecentVideosPage, MostRecentVideosPageProps, MostSharedPage, MostSharedPageProps, MostViewedPage, MostViewedPageProps, MoviesPage, MoviesPageProps, NewsPage, NewsPageProps, PartnerPage, ProgramPage, ProgramPageProps, SearchPage, SearchPageProps, ServicePage, ServicePageProps, ShoppingGuidePage, ShoppingGuidePageProps, SitemapPage, SitemapPageProps, SlideshowPage, SlideshowPageProps, SportPage, SportPageProps, TagPage, TagPageProps, TrafficPage, TrafficPageProps, TvHomeVideosPage, TvHomeVideosPageProps, TvLivePage, TvLivePageProps, TvShowPage, TvShowPageProps, UtiqPage, UtiqPageProps, VideoPage, VideoPageProps, VideosPage, VideosPageProps, WeatherPage, WeatherPageProps } from '../pages';
|
|
1
|
+
import { 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, MostRecentVideosPage, MostRecentVideosPageProps, MostSharedPage, MostSharedPageProps, MostViewedPage, MostViewedPageProps, MoviesPage, MoviesPageProps, NewsPage, NewsPageProps, PartnerPage, ProgramPage, ProgramPageProps, SearchPage, SearchPageProps, ServicePage, ServicePageProps, ShoppingGuidePage, ShoppingGuidePageProps, SitemapPage, SitemapPageProps, SlideshowPage, SlideshowPageProps, SportPage, SportPageProps, TagPage, TagPageProps, TrafficPage, TrafficPageProps, TvHomeVideosPage, TvHomeVideosPageProps, TvLivePage, TvLivePageProps, TvShowPage, TvShowPageProps, TvShowsPage, TvShowsPageProps, UtiqPage, UtiqPageProps, VideoPage, VideoPageProps, VideosPage, VideosPageProps, WeatherPage, WeatherPageProps } from '../pages';
|
|
2
|
+
import { TvVideoPage, TvVideoPageProps } from '../pages/TvVideoPage';
|
|
2
3
|
import { PageTemplateProps } from '../templates';
|
|
3
|
-
import { ComponentNameArchives, ComponentNameArticle, ComponentNameCommon, ComponentNameContact, ComponentNameContent, ComponentNameDirect, ComponentNameElections, ComponentNameError, ComponentNameGame, ComponentNameHome, ComponentNameHoroscope, ComponentNameJobs, ComponentNameJournalist, ComponentNameLa21e, ComponentNameLegal, ComponentNameLegalNotice, ComponentNameLive, ComponentNameMobileApps, ComponentNameMostCommented, ComponentNameMostRead, ComponentNameMostRecentVideos, ComponentNameMostShared, ComponentNameMostViewed, ComponentNameMovies, ComponentNameNews, ComponentNameProgram, ComponentNameRubric, ComponentNameSearch, ComponentNameService, ComponentNameShoppingGuide, ComponentNameSitemap, ComponentNameSlideshow, ComponentNameSport, ComponentNameStory, ComponentNameTag, ComponentNameTraffic, ComponentNameTvHomeVideos, ComponentNameTvLive, ComponentNameTvShow, ComponentNameUtiq, ComponentNameVideo, ComponentNameVideos, ComponentNameWeather } from './ComponentConfig';
|
|
4
|
+
import { ComponentNameArchives, ComponentNameArticle, ComponentNameCommon, ComponentNameContact, ComponentNameContent, ComponentNameDirect, ComponentNameElections, ComponentNameError, ComponentNameGame, ComponentNameHome, ComponentNameHoroscope, ComponentNameJobs, ComponentNameJournalist, ComponentNameLa21e, ComponentNameLegal, ComponentNameLegalNotice, ComponentNameLive, ComponentNameMobileApps, ComponentNameMostCommented, ComponentNameMostRead, ComponentNameMostRecentVideos, ComponentNameMostShared, ComponentNameMostViewed, ComponentNameMovies, ComponentNameNews, ComponentNameProgram, ComponentNameRubric, ComponentNameSearch, ComponentNameService, ComponentNameShoppingGuide, ComponentNameSitemap, ComponentNameSlideshow, ComponentNameSport, ComponentNameStory, ComponentNameTag, ComponentNameTraffic, ComponentNameTvHomeVideos, ComponentNameTvLive, ComponentNameTvShow, ComponentNameTvShows, ComponentNameTvVideo, ComponentNameUtiq, ComponentNameVideo, ComponentNameVideos, ComponentNameWeather } from './ComponentConfig';
|
|
4
5
|
export interface PageComponentConfig<TComponentName = string, TPropName = string> {
|
|
5
6
|
name: TComponentName;
|
|
6
7
|
propName: TPropName;
|
|
@@ -58,6 +59,8 @@ export type TrafficPageConfig = PageConfig<'traffic', typeof TrafficPage, Compon
|
|
|
58
59
|
export type TvHomeVideosPageConfig = PageConfig<'tvHomeVideos', typeof TvHomeVideosPage, ComponentNameCommon | ComponentNameTvHomeVideos, keyof TvHomeVideosPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload'>;
|
|
59
60
|
export type TvLivePageConfig = PageConfig<'tvLive', typeof TvLivePage, ComponentNameCommon | ComponentNameTvLive, keyof TvLivePageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload'>;
|
|
60
61
|
export type TvShowPageConfig = PageConfig<'tvShow', typeof TvShowPage, ComponentNameCommon | ComponentNameTvShow, keyof TvShowPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload'>;
|
|
62
|
+
export type TvShowsPageConfig = PageConfig<'tvShows', typeof TvShowsPage, ComponentNameCommon | ComponentNameTvShows, keyof TvShowsPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload'>;
|
|
63
|
+
export type TvVideoPageConfig = PageConfig<'tvVideo', typeof TvVideoPage, ComponentNameCommon | ComponentNameTvVideo, keyof TvVideoPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload'>;
|
|
61
64
|
export type UtiqPageConfig = PageConfig<'utiq', typeof UtiqPage, ComponentNameCommon | ComponentNameRubric | ComponentNameUtiq, keyof UtiqPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload'>;
|
|
62
65
|
export type VideoPageConfig = PageConfig<'page', typeof VideoPage, ComponentNameCommon | ComponentNameVideo, keyof VideoPageProps | 'meta' | 'jsonLdNewsArticle' | 'defaultPreload'>;
|
|
63
66
|
export type VideosPageConfig = PageConfig<'pages', typeof VideosPage, ComponentNameCommon | ComponentNameVideos, keyof VideosPageProps | 'meta' | 'defaultPreload'>;
|
|
@@ -108,6 +111,8 @@ export type PageConfigs = [
|
|
|
108
111
|
TvHomeVideosPageConfig,
|
|
109
112
|
TvLivePageConfig,
|
|
110
113
|
TvShowPageConfig,
|
|
114
|
+
TvShowsPageConfig,
|
|
115
|
+
TvVideoPageConfig,
|
|
111
116
|
UtiqPageConfig,
|
|
112
117
|
VideoPageConfig,
|
|
113
118
|
VideosPageConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@github.com/20minutes/tyr.git"
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@20minutes/eslint-config": "^1.2.7",
|
|
69
|
-
"@aws-sdk/client-s3": "3.
|
|
69
|
+
"@aws-sdk/client-s3": "3.823.0",
|
|
70
70
|
"@babel/core": "^7.27.4",
|
|
71
|
-
"@babel/eslint-parser": "^7.27.
|
|
71
|
+
"@babel/eslint-parser": "^7.27.5",
|
|
72
72
|
"@eslint/compat": "^1.2.9",
|
|
73
73
|
"@eslint/eslintrc": "^3.3.1",
|
|
74
74
|
"@eslint/js": "^9.28.0",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"@types/sinon": "^17.0.4",
|
|
103
103
|
"@typescript-eslint/eslint-plugin": "^8.33.1",
|
|
104
104
|
"@typescript-eslint/parser": "^8.33.1",
|
|
105
|
-
"@vitejs/plugin-react": "^4.5.
|
|
106
|
-
"@vitest/coverage-v8": "^3.2.
|
|
105
|
+
"@vitejs/plugin-react": "^4.5.1",
|
|
106
|
+
"@vitest/coverage-v8": "^3.2.1",
|
|
107
107
|
"babel-loader": "^10.0.0",
|
|
108
108
|
"eslint": "^8.57.1",
|
|
109
109
|
"eslint-config-airbnb": "^19.0.4",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"vite": "^6.3.5",
|
|
143
143
|
"vite-plugin-dts": "^4.5.4",
|
|
144
144
|
"vite-tsconfig-paths": "^5.1.4",
|
|
145
|
-
"vitest": "3.2.
|
|
145
|
+
"vitest": "3.2.1"
|
|
146
146
|
},
|
|
147
147
|
"resolutions": {
|
|
148
148
|
"uri-js": "npm:uri-js-replace",
|