@20minutes/tyr 1.40.2 → 1.40.3
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/tagPage-desktop-critical.css +1 -1
- package/dist/css/tagPage-desktop-no-critical.css +1 -1
- package/dist/index.es.js +480 -481
- package/dist/index.umd.js +44 -44
- package/dist/js/ads.min.js +1 -6
- package/dist/js/ads.min.js.map +1 -1
- package/dist/js/main.min.js +6 -6
- package/dist/js/main.min.js.map +1 -1
- package/dist/src/assets/datalayer/types/DatalayerInfoType.d.ts +0 -1
- package/dist/src/assets/thirdParties/ads/adManager.d.ts +1 -0
- package/dist/src/assets/thirdParties/ads/dfpDatalayerAdapter.d.ts +1 -1
- package/dist/src/assets/thirdParties/ads/dfpPublisherId.d.ts +1 -1
- package/dist/src/assets/thirdParties/ads/multiPlacementSlots.d.ts +1 -0
- package/dist/src/assets/thirdParties/ads/targeting.d.ts +1 -0
- package/dist/src/assets/thirdParties/ads/types/adsizes/index.d.ts +0 -10
- package/dist/src/components/organisms/TagPage/ArticlesListTop/ArticlesListTop.stories.d.ts +1 -1
- package/dist/src/types/ThirdParties/index.d.ts +0 -1
- package/dist/src/types/Window.d.ts +1 -6
- package/package.json +10 -10
- package/dist/src/assets/thirdParties/ads/adManagerTest.d.ts +0 -1
- package/dist/src/assets/thirdParties/ads/adSlotsKeyValues.d.ts +0 -1
- package/dist/src/assets/thirdParties/ads/dfpAdSlots.d.ts +0 -18
- package/dist/src/assets/thirdParties/ads/dfpCall.d.ts +0 -9
- package/dist/src/assets/thirdParties/ads/dfpConfig.d.ts +0 -1
- package/dist/src/assets/thirdParties/ads/intrastitial.d.ts +0 -1
- package/dist/src/assets/thirdParties/ads/ppid.d.ts +0 -1
- package/dist/src/types/ThirdParties/Hubvisor.d.ts +0 -4
|
@@ -31,7 +31,6 @@ export interface DatalayerInfoType {
|
|
|
31
31
|
pageName?: PageType;
|
|
32
32
|
pageUri?: string;
|
|
33
33
|
publicationDate?: string;
|
|
34
|
-
currentAdmConfig?: 'default' | 'pubstack' | 'hubvisor';
|
|
35
34
|
sectionId?: string;
|
|
36
35
|
sectionLabel?: string;
|
|
37
36
|
sentiment?: 'neutral' | 'positive' | 'negative' | 'mixed';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initAdManager: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const handlePPID: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handleMultiplacementAds: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const exposeAdTargeting: () => void;
|
|
@@ -131,17 +131,7 @@ export declare const adSizesList: {
|
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
declare enum AdPagesTypeEnum {
|
|
135
|
-
'article' = 0,
|
|
136
|
-
'divers' = 1,
|
|
137
|
-
'tag' = 2,
|
|
138
|
-
'horoscope' = 3,
|
|
139
|
-
'live' = 4,
|
|
140
|
-
'brand_publishing' = 5
|
|
141
|
-
}
|
|
142
134
|
export interface AdSizesType {
|
|
143
135
|
desktop: keyof (typeof adSizesList)['desktop']['article'] & keyof (typeof adSizesList)['desktop']['divers'] & keyof (typeof adSizesList)['desktop']['tag'] & keyof (typeof adSizesList)['desktop']['horoscope'] & keyof (typeof adSizesList)['desktop']['live'] & keyof (typeof adSizesList)['desktop']['brand_publishing'];
|
|
144
136
|
mobile: keyof (typeof adSizesList)['mobile']['article'] & keyof (typeof adSizesList)['mobile']['divers'] & keyof (typeof adSizesList)['mobile']['tag'] & keyof (typeof adSizesList)['mobile']['horoscope'] & keyof (typeof adSizesList)['mobile']['live'] & keyof (typeof adSizesList)['mobile']['brand_publishing'];
|
|
145
137
|
}
|
|
146
|
-
export type AdPagesType = keyof typeof AdPagesTypeEnum;
|
|
147
|
-
export {};
|
|
@@ -26,7 +26,7 @@ export declare const Mobile: {
|
|
|
26
26
|
export declare const Desktop: {
|
|
27
27
|
args: {
|
|
28
28
|
articles: (import('@20minutes/hela').CardExtraLargeProps | import('@20minutes/hela').CardExtraSmallProps | import('@20minutes/hela').CardMediumProps)[];
|
|
29
|
-
|
|
29
|
+
idalgoCarouselArticles: {
|
|
30
30
|
link: string;
|
|
31
31
|
title: string;
|
|
32
32
|
cardImageProps: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DatalayerInfoType } from '../assets/datalayer/types';
|
|
2
2
|
import { PartnerFeaturesType } from '../assets/features/partnerFeaturesType';
|
|
3
|
-
import { initDfpSlot } from '../assets/thirdParties/ads/dfpAdSlots';
|
|
4
3
|
import { GlobalTargetingType, SlotType } from '../assets/thirdParties/ads/types';
|
|
5
4
|
import { LastArticlesBlockProps } from '../components/molecules/LastArticlesBlock';
|
|
6
5
|
import { LatestContentsCarouselProps } from '../components/organisms/ArticlePage/LatestContentsCarousel';
|
|
@@ -11,7 +10,7 @@ import { LivePostsThreadProps } from '../components/organisms/LivePostsThread';
|
|
|
11
10
|
import { LocalNewsProps } from '../components/organisms/LocalNews';
|
|
12
11
|
import { MostReadArticlesProps } from '../components/organisms/MostReadArticles';
|
|
13
12
|
import { VariablesSmartPlayerDigitekaType } from './Digiteka';
|
|
14
|
-
import { ATInternetType, ATPageInfo, CmpType,
|
|
13
|
+
import { ATInternetType, ATPageInfo, CmpType, MediarithmicsType, OwnpageType, PayWallAccess, Tag, ThirdPartiesConfigType, VariablesCmpType } from './ThirdParties';
|
|
15
14
|
import { AwsRumVariablesType } from './AwsRumVariablesType';
|
|
16
15
|
import { EnvVariablesType } from './EnvVariablesType';
|
|
17
16
|
import { LayoutType, SearchBannerProps } from '@20minutes/hela';
|
|
@@ -26,15 +25,11 @@ declare global {
|
|
|
26
25
|
awsRum?: AwsRum;
|
|
27
26
|
dfp: {
|
|
28
27
|
slotsReady: boolean;
|
|
29
|
-
hubvisorEnd: boolean;
|
|
30
28
|
slots: SlotType[];
|
|
31
29
|
targeting: Partial<GlobalTargetingType>;
|
|
32
|
-
initDfpSlot: typeof initDfpSlot;
|
|
33
|
-
callSlots: (id: string[]) => void;
|
|
34
30
|
} | Record<string, never>;
|
|
35
31
|
cmpVariables: CmpType;
|
|
36
32
|
ATInternet: ATInternetType;
|
|
37
|
-
Hubvisor: HubvisorType;
|
|
38
33
|
Ownpage: OwnpageType;
|
|
39
34
|
ATTag: Tag;
|
|
40
35
|
ATPageInfo: ATPageInfo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "1.40.
|
|
3
|
+
"version": "1.40.3",
|
|
4
4
|
"repository": "git@github.com:20minutes/tyr.git",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "20 Minutes",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@20minutes/eslint-config": "^1.2.6",
|
|
66
|
-
"@aws-sdk/client-s3": "3.
|
|
66
|
+
"@aws-sdk/client-s3": "3.627.0",
|
|
67
67
|
"@babel/core": "^7.25.2",
|
|
68
68
|
"@graphql-codegen/cli": "^5.0.2",
|
|
69
69
|
"@graphql-codegen/typescript": "^4.0.9",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
74
74
|
"@rollup/plugin-replace": "^5.0.7",
|
|
75
75
|
"@rollup/plugin-terser": "^0.4.4",
|
|
76
|
-
"@storybook/addon-actions": "^8.2.
|
|
77
|
-
"@storybook/addon-essentials": "^8.2.
|
|
78
|
-
"@storybook/addon-interactions": "^8.2.
|
|
79
|
-
"@storybook/addon-links": "^8.2.
|
|
80
|
-
"@storybook/react": "^8.2.
|
|
81
|
-
"@storybook/react-vite": "^8.2.
|
|
76
|
+
"@storybook/addon-actions": "^8.2.8",
|
|
77
|
+
"@storybook/addon-essentials": "^8.2.8",
|
|
78
|
+
"@storybook/addon-interactions": "^8.2.8",
|
|
79
|
+
"@storybook/addon-links": "^8.2.8",
|
|
80
|
+
"@storybook/react": "^8.2.8",
|
|
81
|
+
"@storybook/react-vite": "^8.2.8",
|
|
82
82
|
"@testing-library/dom": "^10.4.0",
|
|
83
83
|
"@testing-library/jest-dom": "^6.4.8",
|
|
84
84
|
"@testing-library/react": "^16.0.0",
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
120
120
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
121
121
|
"schema-dts": "^1.1.2",
|
|
122
|
-
"storybook": "^8.2.
|
|
122
|
+
"storybook": "^8.2.8",
|
|
123
123
|
"ts-node": "^10.9.2",
|
|
124
124
|
"tsconfig-paths": "^4.2.0",
|
|
125
125
|
"typescript": "^4.9.5",
|
|
126
|
-
"vite": "^5.
|
|
126
|
+
"vite": "^5.4.0",
|
|
127
127
|
"vite-plugin-dts": "^3.9.1",
|
|
128
128
|
"vite-tsconfig-paths": "^4.3.2",
|
|
129
129
|
"vitest": "2.0.5"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const initAdmTest: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const setAdSlotsGlobalKeyValues: () => void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { GlobalTargetingType, SlotType } from './types';
|
|
2
|
-
|
|
3
|
-
export type DeviceTargeting = '20minutes_desktop' | '20minutes_webmobile';
|
|
4
|
-
export declare const multiPlacementSlots: string[];
|
|
5
|
-
export declare const adDefinedEvent = "adDefined";
|
|
6
|
-
export declare const getSlotParent: ({ pathParts }: {
|
|
7
|
-
pathParts?: string[] | undefined;
|
|
8
|
-
}) => "article" | "horoscope" | "live" | "divers" | "tag" | "brand_publishing";
|
|
9
|
-
export declare const getSpecificTargeting: (slot: SlotType) => {
|
|
10
|
-
pos: string;
|
|
11
|
-
posp3: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const exposeSlots: (slots: SlotType[] | SlotType) => void;
|
|
14
|
-
export declare const initDfpSlot: ({ slot, globalTargeting, }: {
|
|
15
|
-
slot: HTMLDivElement;
|
|
16
|
-
globalTargeting?: Partial<GlobalTargetingType> | undefined;
|
|
17
|
-
}) => string | undefined;
|
|
18
|
-
export declare const setDfpSlots: (globalTargeting?: Partial<GlobalTargetingType>) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const setDfpConfig: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const handleInstrastitial: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const handleDeletePPID: () => void;
|