@20minutes/tyr 1.2.0 → 1.3.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.
- package/dist/css/videosPage-desktop-critical.css +1 -0
- package/dist/css/videosPage-desktop-no-critical.css +1 -0
- package/dist/css/videosPage-mobile-critical.css +1 -0
- package/dist/css/videosPage-mobile-no-critical.css +1 -0
- package/dist/index.es.js +7605 -7506
- package/dist/index.umd.js +94 -94
- package/dist/js/main.min.js +6 -6
- package/dist/src/assets/thirdParties/ownpage.d.ts +1 -0
- package/dist/src/config/componentConfigs/componentVideosConfigs.d.ts +2 -0
- package/dist/src/config/pageConfigs/videosPageConfig.d.ts +2 -0
- package/dist/src/pages/VideosPage/VideosPage.d.ts +8 -0
- package/dist/src/pages/VideosPage/VideosPage.stories.d.ts +7 -0
- package/dist/src/pages/VideosPage/index.d.ts +1 -0
- package/dist/src/pages/index.d.ts +1 -0
- package/dist/src/types/ComponentConfig.d.ts +6 -1
- package/dist/src/types/PageConfig.d.ts +4 -2
- package/dist/src/types/ThirdParties/Ownpage.d.ts +3 -0
- package/dist/src/types/ThirdParties/index.d.ts +4 -1
- package/dist/src/types/Window.d.ts +2 -3
- package/dist/src/types/graphql.d.ts +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initOwnpage: () => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PageTemplateProps } from '../../templates';
|
|
3
|
+
export interface VideosPageProps extends PageTemplateProps {
|
|
4
|
+
breadcrumb: React.ReactNode;
|
|
5
|
+
headerPage: React.ReactNode;
|
|
6
|
+
tvBlock: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const VideosPage: React.FC<VideosPageProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VideosPage } from './VideosPage';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: Meta<typeof VideosPage>;
|
|
4
|
+
type Story = StoryObj<typeof VideosPage>;
|
|
5
|
+
export declare const VideosPageDesktop: Story;
|
|
6
|
+
export declare const VideosPageMobile: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './VideosPage';
|
|
@@ -80,6 +80,11 @@ export declare const enum ComponentNameHome {
|
|
|
80
80
|
HOME_CITY_BY_CITY = "home/city-by-city",
|
|
81
81
|
HOME_PARTNERS = "home/partners"
|
|
82
82
|
}
|
|
83
|
+
export declare const enum ComponentNameVideos {
|
|
84
|
+
VIDEOS_HEADER_PAGE = "videos/header-page",
|
|
85
|
+
VIDEOS_BREADCRUMB = "videos/breadcrumb",
|
|
86
|
+
VIDEOS_TV_BLOCK = "videos/tv-block"
|
|
87
|
+
}
|
|
83
88
|
export declare const enum ComponentNameContact {
|
|
84
89
|
CONTACT_BREADCRUMB = "contact/breadcrumb",
|
|
85
90
|
CONTACT_ADDRESSES = "contact/addresses",
|
|
@@ -156,7 +161,7 @@ export declare const enum ComponentNameWeather {
|
|
|
156
161
|
WEATHER_JSON_LD_BREADCRUMB = "weather/json-ld-breadcrumb",
|
|
157
162
|
WEATHER_META = "weather/meta"
|
|
158
163
|
}
|
|
159
|
-
export interface ComponentConfig<TComponentName = ComponentNameArticle | ComponentNameCommon | ComponentNameContact | ComponentNameContent | ComponentNameDirect | ComponentNameElections | ComponentNameError | ComponentNameHome | ComponentNameHoroscope | ComponentNameJobs | ComponentNameLive | ComponentNameRubric | ComponentNameSearch | ComponentNameTag | ComponentNameTraffic | ComponentNameWeather, TComponent = React.FC<any>> {
|
|
164
|
+
export interface ComponentConfig<TComponentName = ComponentNameArticle | ComponentNameCommon | ComponentNameContact | ComponentNameContent | ComponentNameDirect | ComponentNameElections | ComponentNameError | ComponentNameHome | ComponentNameHoroscope | ComponentNameJobs | ComponentNameLive | ComponentNameRubric | ComponentNameSearch | ComponentNameTag | ComponentNameTraffic | ComponentNameVideos | ComponentNameWeather, TComponent = React.FC<any>> {
|
|
160
165
|
componentName: TComponentName;
|
|
161
166
|
component: TComponent;
|
|
162
167
|
expiration?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ArticlePage, ArticlePageProps, ContactPage, ContactPageProps, DirectPage, DirectPageProps, ElectionsPage, ElectionsPageProps, ErrorPage, ErrorPageProps, HomePage, HomePageProps, HoroscopeHomePage, HoroscopeHomePageProps, HoroscopePage, HoroscopePageProps, JobDetailsPage, JobDetailsPageProps, JobsPage, JobsPageProps, LivePage, LivePageProps, PartnerPage, SearchPage, SearchPageProps, TagPage, TagPageProps, TrafficPage, TrafficPageProps, WeatherPage, WeatherPageProps } from '../pages';
|
|
1
|
+
import type { ArticlePage, ArticlePageProps, ContactPage, ContactPageProps, DirectPage, DirectPageProps, ElectionsPage, ElectionsPageProps, ErrorPage, ErrorPageProps, HomePage, HomePageProps, HoroscopeHomePage, HoroscopeHomePageProps, HoroscopePage, HoroscopePageProps, JobDetailsPage, JobDetailsPageProps, JobsPage, JobsPageProps, LivePage, LivePageProps, PartnerPage, SearchPage, SearchPageProps, TagPage, TagPageProps, TrafficPage, TrafficPageProps, VideosPage, VideosPageProps, WeatherPage, WeatherPageProps } from '../pages';
|
|
2
2
|
import type { PageTemplateProps } from '../templates';
|
|
3
|
-
import type { ComponentNameArticle, ComponentNameCommon, ComponentNameContact, ComponentNameContent, ComponentNameDirect, ComponentNameElections, ComponentNameError, ComponentNameHome, ComponentNameHoroscope, ComponentNameJobs, ComponentNameLive, ComponentNameRubric, ComponentNameSearch, ComponentNameTag, ComponentNameTraffic, ComponentNameWeather } from './ComponentConfig';
|
|
3
|
+
import type { ComponentNameArticle, ComponentNameCommon, ComponentNameContact, ComponentNameContent, ComponentNameDirect, ComponentNameElections, ComponentNameError, ComponentNameHome, ComponentNameHoroscope, ComponentNameJobs, ComponentNameLive, ComponentNameRubric, ComponentNameSearch, ComponentNameTag, ComponentNameTraffic, ComponentNameVideos, ComponentNameWeather } from './ComponentConfig';
|
|
4
4
|
export interface PageComponentConfig<TComponentName = string, TPropName = string> {
|
|
5
5
|
name: TComponentName;
|
|
6
6
|
propName: TPropName;
|
|
@@ -29,6 +29,7 @@ export type SearchPageConfig = PageConfig<'search', typeof SearchPage, Component
|
|
|
29
29
|
export type TagPageConfig = PageConfig<'tag', typeof TagPage, ComponentNameCommon | ComponentNameTag, keyof TagPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload' | 'preload'>;
|
|
30
30
|
export type TrafficPageConfig = PageConfig<'traffic', typeof TrafficPage, ComponentNameCommon | ComponentNameRubric | ComponentNameTraffic, keyof TrafficPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload'>;
|
|
31
31
|
export type WeatherPageConfig = PageConfig<'weather', typeof WeatherPage, ComponentNameCommon | ComponentNameRubric | ComponentNameWeather, keyof WeatherPageProps | 'meta' | 'jsonLdBreadcrumb' | 'defaultPreload'>;
|
|
32
|
+
export type VideosPageConfig = PageConfig<'videos', typeof VideosPage, ComponentNameCommon | ComponentNameVideos, keyof VideosPageProps | 'meta' | 'defaultPreload'>;
|
|
32
33
|
export type PageConfigs = [
|
|
33
34
|
ArticlePageConfig,
|
|
34
35
|
ContactPageConfig,
|
|
@@ -45,6 +46,7 @@ export type PageConfigs = [
|
|
|
45
46
|
SearchPageConfig,
|
|
46
47
|
TagPageConfig,
|
|
47
48
|
TrafficPageConfig,
|
|
49
|
+
VideosPageConfig,
|
|
48
50
|
WeatherPageConfig
|
|
49
51
|
];
|
|
50
52
|
export type PageConfigAvailable = PageConfigs[number];
|
|
@@ -8,11 +8,9 @@ import type { LivePostsThreadProps } from '../components/organisms/LivePostsThre
|
|
|
8
8
|
import type { LocalNewsProps } from '../components/organisms/LocalNews';
|
|
9
9
|
import type { MostReadArticlesProps } from '../components/organisms/MostReadArticles';
|
|
10
10
|
import type { VariablesSmartPlayerDigitekaType } from './Digiteka';
|
|
11
|
-
import type { ATInternetType, ATPageInfo, CmpType, HubvisorType, Tag, ThirdPartiesConfigType, VariablesCmpType } from './ThirdParties';
|
|
12
|
-
import type { ChartbeatConfigType } from './ThirdParties/Chartbeat';
|
|
11
|
+
import type { ATInternetType, ATPageInfo, ChartbeatConfigType, CmpType, HubvisorType, OwnpageType, PayWallAccess, Tag, ThirdPartiesConfigType, VariablesCmpType } from './ThirdParties';
|
|
13
12
|
import type { AwsRumVariablesType } from './AwsRumVariablesType';
|
|
14
13
|
import type { EnvVariablesType } from './EnvVariablesType';
|
|
15
|
-
import type { PayWallAccess } from './ThirdParties/Paywall';
|
|
16
14
|
import type { LayoutType } from '@20minutes/hela';
|
|
17
15
|
import type { AwsRum } from 'aws-rum-web';
|
|
18
16
|
import type ReactDOMClient from 'react-dom/client';
|
|
@@ -33,6 +31,7 @@ declare global {
|
|
|
33
31
|
cmpVariables: CmpType;
|
|
34
32
|
ATInternet: ATInternetType;
|
|
35
33
|
Hubvisor: HubvisorType;
|
|
34
|
+
Ownpage: OwnpageType;
|
|
36
35
|
ATTag: Tag;
|
|
37
36
|
ATPageInfo: ATPageInfo;
|
|
38
37
|
adsapp: boolean;
|
|
@@ -742,7 +742,7 @@ export type TBlockLink = TNode & TTimestampable & {
|
|
|
742
742
|
public_id?: Maybe<Scalars['Int']['output']>;
|
|
743
743
|
theme?: Maybe<Scalars['String']['output']>;
|
|
744
744
|
themeColor?: Maybe<TThemeColorSingleConnection>;
|
|
745
|
-
theme_color_id
|
|
745
|
+
theme_color_id?: Maybe<Scalars['ID']['output']>;
|
|
746
746
|
title?: Maybe<Scalars['String']['output']>;
|
|
747
747
|
type?: Maybe<BlockLinkTypes>;
|
|
748
748
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"repository": "git@github.com:20minutes/tyr.git",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "20 Minutes",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"node": ">=20"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@20minutes/hela": "^1.0.
|
|
58
|
+
"@20minutes/hela": "^1.0.1",
|
|
59
59
|
"aws-rum-web": "^1.17.0",
|
|
60
60
|
"classnames": "^2.5.1",
|
|
61
61
|
"draft-convert": "^2.1.13",
|
|
@@ -91,18 +91,18 @@
|
|
|
91
91
|
"@testing-library/react": "^14.2.1",
|
|
92
92
|
"@types/draft-convert": "^2.1.8",
|
|
93
93
|
"@types/draft-js": "^0.11.17",
|
|
94
|
-
"@types/googletag": "^3.1.
|
|
94
|
+
"@types/googletag": "^3.1.3",
|
|
95
95
|
"@types/jsdom": "^21.1.6",
|
|
96
|
-
"@types/react": "^18.2.
|
|
96
|
+
"@types/react": "^18.2.56",
|
|
97
97
|
"@types/react-dom": "^18.2.19",
|
|
98
98
|
"@types/sinon": "^17.0.3",
|
|
99
99
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
100
100
|
"@typescript-eslint/parser": "^7.0.1",
|
|
101
101
|
"@vitejs/plugin-react": "^4.2.1",
|
|
102
|
-
"@vitest/coverage-v8": "^1.
|
|
102
|
+
"@vitest/coverage-v8": "^1.3.0",
|
|
103
103
|
"babel-loader": "^9.1.3",
|
|
104
104
|
"cypress": "13.6.4",
|
|
105
|
-
"cypress-each": "^1.
|
|
105
|
+
"cypress-each": "^1.14.0",
|
|
106
106
|
"eslint": "^8.56.0",
|
|
107
107
|
"eslint-config-airbnb": "^19.0.4",
|
|
108
108
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"eslint-plugin-prettier": "^5.1.3",
|
|
116
116
|
"eslint-plugin-react": "^7.33.2",
|
|
117
117
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
118
|
-
"eslint-plugin-storybook": "^0.
|
|
118
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
119
119
|
"graphql": "^16.8.1",
|
|
120
120
|
"http-server": "^14.1.1",
|
|
121
121
|
"husky": "^9.0.11",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"prettier": "^3.2.5",
|
|
125
125
|
"purgecss": "^5.0.0",
|
|
126
126
|
"purgecss-from-html": "^5.0.0",
|
|
127
|
-
"rollup": "^4.
|
|
127
|
+
"rollup": "^4.12.0",
|
|
128
128
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
129
129
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
130
130
|
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
@@ -138,6 +138,6 @@
|
|
|
138
138
|
"vite": "^4.5.2",
|
|
139
139
|
"vite-plugin-dts": "^3.7.2",
|
|
140
140
|
"vite-tsconfig-paths": "^4.3.1",
|
|
141
|
-
"vitest": "1.
|
|
141
|
+
"vitest": "1.3.0"
|
|
142
142
|
}
|
|
143
143
|
}
|