@20minutes/tyr 0.1.85 → 0.1.87
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/assets/scripts/helpers/ajax.d.ts +3 -0
- package/dist/components/organisms/TagPage/TagPageArticlesList.d.ts +10 -3
- package/dist/containers/ArticleListBottomContainer/ArticleListBottomContainer.d.ts +3 -0
- package/dist/containers/ArticleListBottomContainer/index.d.ts +1 -0
- package/dist/css/articlePage-desktop-critical.css +1 -1
- package/dist/css/articlePage-mobile-critical.css +1 -1
- package/dist/css/articlePage-mobile-no-critical.css +1 -1
- package/dist/css/errorPage-desktop-critical.css +1 -1
- package/dist/css/errorPage-desktop-no-critical.css +1 -1
- package/dist/css/errorPage-mobile-no-critical.css +1 -1
- package/dist/css/global.css +1 -1
- package/dist/css/horoscopePage-desktop-critical.css +1 -1
- package/dist/css/horoscopePage-desktop-no-critical.css +1 -1
- package/dist/css/horoscopePage-mobile-no-critical.css +1 -1
- package/dist/css/horoscopehomePage-desktop-critical.css +1 -1
- package/dist/css/horoscopehomePage-desktop-no-critical.css +1 -1
- package/dist/css/horoscopehomePage-mobile-no-critical.css +1 -1
- package/dist/css/searchPage-desktop-critical.css +1 -1
- package/dist/css/searchPage-desktop-no-critical.css +1 -1
- package/dist/css/searchPage-mobile-no-critical.css +1 -1
- package/dist/css/tagPage-desktop-critical.css +1 -1
- package/dist/css/tagPage-desktop-no-critical.css +1 -1
- package/dist/css/tagPage-mobile-no-critical.css +1 -1
- package/dist/helpers/assetsHelper.d.ts +10 -0
- package/dist/helpers/base64Helper.d.ts +2 -0
- package/dist/helpers/dateHelper.d.ts +2 -0
- package/dist/helpers/globalIdHelper.d.ts +2 -0
- package/dist/helpers/helaHelper.d.ts +3 -0
- package/dist/helpers/index.d.ts +1 -3
- package/dist/helpers/transformQueryResultIntoPropsHelper.d.ts +9 -0
- package/dist/helpers/url.d.ts +3 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +13671 -13458
- package/dist/index.umd.js +134 -134
- package/dist/js/atinternet.min.js +1 -1
- package/dist/js/awsRum.min.js +5 -5
- package/dist/js/datalayer.min.js +1 -1
- package/dist/js/main.min.js +38 -38
- package/dist/js/react-and-react-dom.min.js +33212 -397
- package/dist/managers/article/ArticlePageManager.d.ts +1 -1
- package/dist/templates/HtmlTemplate/HtmlTemplate.d.ts +2 -2
- package/dist/types/{ThirdParties/DataLayer → DataLayer}/DataLayerType.d.ts +2 -2
- package/dist/types/DataLayer/VariablesDataLayerType.d.ts +23 -0
- package/dist/types/EnvVariablesType.d.ts +2 -0
- package/dist/types/PageConfig.d.ts +1 -1
- package/dist/types/graphql.d.ts +13386 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +16 -10
- package/dist/types/ThirdParties/Ads/AdSizesType.d.ts +0 -83
- package/dist/types/ThirdParties/Ads/SlotType.d.ts +0 -5
- package/dist/types/ThirdParties/Ads/TargetingType.d.ts +0 -26
- package/dist/types/ThirdParties/Ads/index.d.ts +0 -3
- package/dist/types/ThirdParties/AtInternet.d.ts +0 -56
- package/dist/types/ThirdParties/Cmp/Didomi.d.ts +0 -31
- package/dist/types/ThirdParties/Cmp/VariablesCmpType.d.ts +0 -8
- package/dist/types/ThirdParties/Cmp/index.d.ts +0 -2
- package/dist/types/ThirdParties/DataLayer/VariablesDataLayerType.d.ts +0 -14
- package/dist/types/ThirdParties/Digiteka.d.ts +0 -6
- package/dist/types/ThirdParties/Hubvisor.d.ts +0 -4
- package/dist/types/ThirdParties/index.d.ts +0 -6
- package/dist/types/Window.d.ts +0 -28
- /package/dist/types/{ThirdParties/DataLayer → DataLayer}/DefaultDataLayerType.d.ts +0 -0
- /package/dist/types/{ThirdParties/DataLayer → DataLayer}/UserDataLayerType.d.ts +0 -0
- /package/dist/types/{ThirdParties/DataLayer → DataLayer}/index.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LayoutType } from '@20minutes/hela';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ArticlePageProps } from '../..';
|
|
4
3
|
import { PageManagerHelper } from '../PageManagerHelper';
|
|
4
|
+
import type { ArticlePageProps } from '../../pages/ArticlePage';
|
|
5
5
|
type ArticlePageTemplatingActivators = 'HeaderAd';
|
|
6
6
|
type SelectedProps = 'articleContent' | 'articleCover';
|
|
7
7
|
export type ArticlePageFilteredProps = Pick<ArticlePageProps, SelectedProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { LayoutType } from '@20minutes/hela';
|
|
3
|
-
import
|
|
3
|
+
import { VariablesDataLayerType } from '@DataLayerTypes';
|
|
4
4
|
import type { AwsRumVariablesType } from '../../types/AwsRumVariablesType';
|
|
5
5
|
import type { EnvVariablesType } from '../../types/EnvVariablesType';
|
|
6
6
|
export interface HtmlTemplateProps {
|
|
@@ -35,7 +35,7 @@ export interface HtmlTemplateProps {
|
|
|
35
35
|
inlineScript: string;
|
|
36
36
|
};
|
|
37
37
|
meta?: React.ReactNode;
|
|
38
|
-
datalayerInfo?: VariablesDataLayerType
|
|
38
|
+
datalayerInfo?: Partial<Pick<VariablesDataLayerType, 'section' | 'tag' | 'content_title' | 'content_id' | 'pageType' | 'nbParagraphs' | 'signature' | 'horoscopeKey' | 'horoscopeSubKey'>>;
|
|
39
39
|
children?: React.ReactNode;
|
|
40
40
|
envVariables?: EnvVariablesType;
|
|
41
41
|
novaHost?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultDataLayerType } from './DefaultDataLayerType';
|
|
2
2
|
import { UserDataLayerType } from './UserDataLayerType';
|
|
3
|
-
import {
|
|
4
|
-
export interface DataLayerType extends DefaultDataLayerType, UserDataLayerType,
|
|
3
|
+
import { VariablesDataLayerInfoType, VariablesDataLayerType } from './VariablesDataLayerType';
|
|
4
|
+
export interface DataLayerType extends DefaultDataLayerType, UserDataLayerType, VariablesDataLayerInfoType, VariablesDataLayerType {
|
|
5
5
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface VariablesDataLayerType {
|
|
2
|
+
signature?: string;
|
|
3
|
+
nbParagraphs?: number;
|
|
4
|
+
pageType?: string;
|
|
5
|
+
tags?: string;
|
|
6
|
+
article_section?: string;
|
|
7
|
+
content_id?: string;
|
|
8
|
+
libelle?: string;
|
|
9
|
+
chapter1?: string;
|
|
10
|
+
chapter2?: string;
|
|
11
|
+
has_instream_video?: boolean;
|
|
12
|
+
content_type?: string;
|
|
13
|
+
section?: string;
|
|
14
|
+
tag?: string;
|
|
15
|
+
content_title?: string;
|
|
16
|
+
page_label?: string;
|
|
17
|
+
horoscopeKey?: string;
|
|
18
|
+
horoscopeSubKey?: string;
|
|
19
|
+
}
|
|
20
|
+
export type DatalayerInfoType = Pick<VariablesDataLayerType, 'section' | 'tag' | 'content_title' | 'content_id' | 'pageType' | 'nbParagraphs' | 'signature' | 'horoscopeKey' | 'horoscopeSubKey'>;
|
|
21
|
+
export interface VariablesDataLayerInfoType {
|
|
22
|
+
datalayerInfo: DatalayerInfoType;
|
|
23
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { PageTemplateProps } from '@templates';
|
|
1
2
|
import { ArticlePage, ArticlePageProps } from '../pages/ArticlePage';
|
|
2
3
|
import { HoroscopePage, HoroscopePageProps } from '../pages/HoroscopePage';
|
|
3
4
|
import { HoroscopeHomePage, HoroscopeHomePageProps } from '../pages/HoroscopeHomePage';
|
|
4
5
|
import { ErrorPage, ErrorPageProps } from '../pages/ErrorPage';
|
|
5
6
|
import { TagPage, TagPageProps } from '../pages/TagPage';
|
|
6
7
|
import { ComponentNameArticle, ComponentNameCommon, ComponentNameError, ComponentNameHoroscope, ComponentNameRubric, ComponentNameSearch, ComponentNameTag } from './ComponentConfig';
|
|
7
|
-
import { PageTemplateProps } from '../templates';
|
|
8
8
|
import { SearchPage, SearchPageProps } from '../pages/SearchPage/SearchPage';
|
|
9
9
|
export type PageComponentConfig<TComponentName = string, TPropName = string> = {
|
|
10
10
|
name: TComponentName;
|