@20minutes/tyr 2.16.0 → 2.17.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/tvhomevideosPage-desktop-critical.css +1 -1
- package/dist/css/tvhomevideosPage-desktop-no-critical.css +1 -1
- package/dist/css/tvhomevideosPage-mobile-critical.css +1 -1
- package/dist/css/tvhomevideosPage-mobile-no-critical.css +1 -1
- package/dist/css/tvlivePage-desktop-critical.css +1 -1
- package/dist/css/tvlivePage-desktop-no-critical.css +1 -1
- package/dist/index.es.js +4854 -4809
- package/dist/index.umd.js +74 -74
- package/dist/src/components/organisms/TvMostVideosBlock/TvMostVideosBlock.d.ts +8 -0
- package/dist/src/components/organisms/TvMostVideosBlock/TvMostVideosBlock.stories.d.ts +44 -0
- package/dist/src/components/organisms/TvMostVideosBlock/index.d.ts +1 -0
- package/dist/src/components/organisms/VideosPage/VideosTopBlock/VideosTopBlock.d.ts +1 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/pages/TvHomeVideosPage/TvHomeVideosPage.d.ts +1 -0
- package/dist/src/pages/TvHomeVideosPage/TvHomeVideosPage.stories.d.ts +2 -1
- package/dist/src/types/ComponentConfig.d.ts +2 -1
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxProps } from '@20minutes/hela';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { CardsListProps } from '../CardsList';
|
|
4
|
+
export interface TvMostVideosBlockProps extends BoxProps {
|
|
5
|
+
mostViewed: CardsListProps;
|
|
6
|
+
mostRecent: CardsListProps;
|
|
7
|
+
}
|
|
8
|
+
export declare const TvMostVideosBlock: React.FC<TvMostVideosBlockProps>;
|
|
@@ -0,0 +1,44 @@
|
|
|
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('../..').TvMostVideosBlockProps>;
|
|
6
|
+
args: {
|
|
7
|
+
mostRecent: {
|
|
8
|
+
columnsNumber: 3;
|
|
9
|
+
layout: LayoutType.MOBILE;
|
|
10
|
+
articles: (import('@20minutes/hela').CardExtraSmallProps | import('@20minutes/hela').CardMediumProps | import('@20minutes/hela').CardLargeProps)[];
|
|
11
|
+
hideFirstDivider: true;
|
|
12
|
+
seeMoreLink: {
|
|
13
|
+
href: string;
|
|
14
|
+
children: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
mostViewed: {
|
|
18
|
+
columnsNumber: 3;
|
|
19
|
+
layout: LayoutType.MOBILE;
|
|
20
|
+
articles: (import('@20minutes/hela').CardExtraSmallProps | import('@20minutes/hela').CardMediumProps | import('@20minutes/hela').CardLargeProps)[];
|
|
21
|
+
hideFirstDivider: true;
|
|
22
|
+
seeMoreLink: {
|
|
23
|
+
href: string;
|
|
24
|
+
children: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
parameters: {
|
|
29
|
+
controls: {
|
|
30
|
+
exclude: string[];
|
|
31
|
+
};
|
|
32
|
+
layout: string;
|
|
33
|
+
backgrounds: {
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
viewport: {
|
|
37
|
+
defaultViewport: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default meta;
|
|
42
|
+
type Story = StoryObj<typeof meta>;
|
|
43
|
+
export declare const Mobile: Story;
|
|
44
|
+
export declare const Desktop: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TvMostVideosBlock';
|
|
@@ -3,5 +3,6 @@ import { PageTemplateProps } from '../../templates';
|
|
|
3
3
|
export interface TvHomeVideosPageProps extends PageTemplateProps {
|
|
4
4
|
topBlock: React.ReactNode;
|
|
5
5
|
showsReplaysCarousel: React.ReactNode;
|
|
6
|
+
mostVideosBlock: React.ReactNode;
|
|
6
7
|
}
|
|
7
8
|
export declare const TvHomeVideosPage: React.FC<TvHomeVideosPageProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HeaderProps, LayoutType } from '@20minutes/hela';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import { HomeVideosTopBlockProps, MetaProps, ShowsReplaysCarouselProps } from '../../components';
|
|
3
|
+
import { HomeVideosTopBlockProps, MetaProps, ShowsReplaysCarouselProps, TvMostVideosBlockProps } from '../../components';
|
|
4
4
|
import { StoryObj } from '@storybook/react';
|
|
5
5
|
declare const meta: {
|
|
6
6
|
title: string;
|
|
@@ -38,6 +38,7 @@ declare const meta: {
|
|
|
38
38
|
header: React.FunctionComponentElement<HeaderProps>;
|
|
39
39
|
topBlock: React.FunctionComponentElement<HomeVideosTopBlockProps>;
|
|
40
40
|
showsReplaysCarousel: React.FunctionComponentElement<ShowsReplaysCarouselProps>;
|
|
41
|
+
mostVideosBlock: React.FunctionComponentElement<TvMostVideosBlockProps>;
|
|
41
42
|
headerMini?: React.ReactNode;
|
|
42
43
|
menu: React.ReactNode;
|
|
43
44
|
overviewBar?: React.ReactNode;
|
|
@@ -340,7 +340,8 @@ export declare const enum ComponentNameTraffic {
|
|
|
340
340
|
export declare const enum ComponentNameTvHomeVideos {
|
|
341
341
|
TV_HOME_VIDEOS_JSON_LD_BREADCRUMB = "tv-home-videos/json-ld-breadcrumb",
|
|
342
342
|
TV_HOME_VIDEOS_META = "tv-home-videos/meta",
|
|
343
|
-
TV_HOME_VIDEOS_TOP_BLOCK = "tv-home-videos/top-block"
|
|
343
|
+
TV_HOME_VIDEOS_TOP_BLOCK = "tv-home-videos/top-block",
|
|
344
|
+
TV_HOME_VIDEOS_MOST_VIDEOS_BLOCK = "tv-home-videos/most-videos-block"
|
|
344
345
|
}
|
|
345
346
|
export declare const enum ComponentNameTvLive {
|
|
346
347
|
TV_LIVE_JSON_LD_BREADCRUMB = "tv-live/json-ld-breadcrumb",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
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.7",
|
|
69
|
-
"@aws-sdk/client-s3": "3.
|
|
69
|
+
"@aws-sdk/client-s3": "3.808.0",
|
|
70
70
|
"@babel/core": "^7.27.1",
|
|
71
71
|
"@babel/eslint-parser": "^7.27.1",
|
|
72
72
|
"@eslint/compat": "^1.2.9",
|
|
@@ -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.4",
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "^8.32.
|
|
104
|
-
"@typescript-eslint/parser": "^8.32.
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
104
|
+
"@typescript-eslint/parser": "^8.32.1",
|
|
105
105
|
"@vitejs/plugin-react": "^4.4.1",
|
|
106
106
|
"@vitest/coverage-v8": "^3.1.3",
|
|
107
107
|
"babel-loader": "^10.0.0",
|