@20minutes/tyr 2.24.13 → 2.24.14
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/index.es.js +1197 -1162
- package/dist/index.umd.js +17 -17
- package/dist/js/ads.min.js +1 -1
- package/dist/js/cmp.min.js +1 -1
- package/dist/js/main.min.js +3 -3
- package/dist/js/piano.min.js +1 -1
- package/dist/src/types/ThirdParties/Piano.d.ts +1 -1
- package/dist/src/types/graphql.d.ts +1 -0
- package/package.json +19 -19
package/dist/js/piano.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){"use strict";const e=(e,n)=>{let t=e.toLowerCase().replace(/[\s-]+/g,"-");return t=(e=>{let n=e;const t="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)n=n.replace(new RegExp(t.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return n})(t),t.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},n=()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())},t=n=>{const t={click:e(n.name),click_chapter1:n?.chapter1
|
|
1
|
+
!function(){"use strict";const e=(e,n)=>{let t=e.toLowerCase().replace(/[\s-]+/g,"-");return t=(e=>{let n=e;const t="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)n=n.replace(new RegExp(t.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return n})(t),t.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},n=()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())},t=n=>{const t={click:e(n.name),click_chapter1:n?.chapter1||null,click_chapter2:n?.chapter2||null,click_chapter3:n?.chapter3||null},a=`click.${n?.type??"navigation"}`;window.pa?(n.customProps&&Object.keys(n.customProps).length>0&&window.pa.setProperties(n.customProps,{persistent:!1,events:[a]}),window.pa.sendEvent(a,t)):window._paq&&(n.customProps&&Object.keys(n.customProps).length>0&&window._paq.push(["setProperties",n.customProps,{persistent:!1,events:[a]}]),window._paq.push(["sendEvent",a,t]))},a=e=>{window._paq&&window._paq.push(["sendEvent","page.display",{page:e?.name??window.PianoPageInfo?.name,page_chapter1:e?.chapter1??window.PianoPageInfo?.chapter1,page_chapter2:e?.chapter2??window.PianoPageInfo?.chapter2,page_chapter3:e?.chapter3??window.PianoPageInfo?.chapter3,page_chapter4:e?.chapter4??window.PianoPageInfo?.chapter4}])},o=()=>document.querySelectorAll(".c-content > p").length,r=()=>[...document.querySelectorAll(".c-content > p")].reduce((e,n)=>e+n.innerHTML.length,0),c=()=>{const e={};if(e["b:user_darkmode"]="dark"===document.documentElement.getAttribute("data-theme"),e["b:user_status"]=!!document.cookie.match("(^|;)\\s*20mnUserInfo\\s*=\\s*([^;]+)"),e["b:user_status"]){const n=(e=>{const n=document.cookie.split(";").filter(n=>-1!==n.indexOf(e))[0];return n?n.split("=")[1]:"{}"})("20mnUserDataLayer"),t=n?JSON.parse(decodeURIComponent(n)):null;t&&(e["s:user_id"]=String(t.i),Number.isNaN(t.d)||(e["n:user_a"]=Number(t.d)),Number.isNaN(t.l)||(e["n:user_zip"]=Number(t.l)),Number.isNaN(t.g)||(e["n:user_g"]=Number(t.g)))}return e},i=()=>{const e={},t=n();return("utm_source"in t||"utm_campaign"in t||"utm_medium"in t)&&("utm_source"in t||(e.utm_source=t.utm_medium??t.utm_campaign),"utm_campaign"in t||(e.utm_campaign=t.utm_source??t.utm_medium),"utm_medium"in t||(e.utm_medium=t.utm_source??t.utm_campaign)),e},s=()=>{const n=window.datalayerInfo,t={};return n.breadcrumb?.forEach((n,t)=>{let a=e(n);"diaporamas"===a&&(a="diaporama"),"actualite"===a&&(a="actu-generale"),window.PianoPageInfo[`chapter${t+1}`]=a}),Number.isNaN(Number(n.contentId))||(t["n:content_id"]=Number(n.contentId)),t.content_type=n.pageName??"other",t["s:page_type"]="content",t["d:content_published_date"]=n.modificationDate?new Date(n.modificationDate).toISOString():"",t["d:content_modified_date"]=n.publicationDate?new Date(n.publicationDate).toISOString():"",Number.isNaN(Number(n.journalist?.id))||(t["n:content_id_journaliste"]=Number(n.journalist?.id)),t["s:content_tags"]=n.tagsSlug??"",t["s:content_signature"]=e(n.signature??""),t["s:content_title"]=e(n.contentTitle??""),t["n:content_title_characters_number"]=Number(n.contentTitle?.length),t["s:content_subtype"]="texte",t["n:content_video_number"]=n.videoCount??0,t["n:content_20min_video_number"]=n.video20mnCount??0,t["n:content_embed_number"]=n.embedCount??0,n.podcastCount&&n.podcastCount>0?t["s:content_subtype"]="podcast":t["n:content_video_number"]>0&&(t["s:content_subtype"]="video"),t},u=(e,n,t,a)=>(n&&(window.PianoPageInfo.chapter1=n),t&&(window.PianoPageInfo.chapter2=t),a&&(window.PianoPageInfo.chapter3=a),e?{"s:page_type":e}:{}),d=()=>{const e=window.datalayerInfo,t={};t["b:user_adblock"]=!window.adsapp,t.page_url=e.pageUri??"",e.pageUri&&(window.PianoPageInfo.name=new URL(e.pageUri).pathname),e.contentSource&&(t["s:content_source"]=e.contentSource),document.referrer&&(t["s:misc_referrer"]=document.referrer),t["s:page_type"]=e.pageName||"other";const a=document.querySelector("link[rel='canonical']");if(a&&(t["s:page_canonical"]=a.getAttribute("href")??""),"/search"===e.pageUri){const e=n();t["s:misc_search"]=e.q||""}return{...t,...c(),...i()}},p=()=>{switch(window.datalayerInfo.pageName||"other"){case"archivebyday":case"archivebyyear":return u("divers");case"article":return(()=>{const e=s();return e["n:content_characters_number"]=Number(r()),e["n:content_paragraphs_number"]=o(),e})();case"direct":return u("divers","le-direct");case"elections":case"electionshome":return(()=>{const{national:e,region:n,department:t,constituency:a,town:o}=window.datalayerInfo?.elections||{};return window.PianoPageInfo.chapter1="elections",window.PianoPageInfo.chapter2="resultats",o&&t?(window.PianoPageInfo.chapter3=t,window.PianoPageInfo.chapter4=o):a&&t?(window.PianoPageInfo.chapter3=t,window.PianoPageInfo.chapter4=a):t&&n?(window.PianoPageInfo.chapter3=n,window.PianoPageInfo.chapter4=t):n?(window.PianoPageInfo.chapter3="france",window.PianoPageInfo.chapter4=n):e&&(window.PianoPageInfo.chapter3=e),{"s:page_type":"elections"}})();case"home":return window.PianoPageInfo.chapter1="accueil",window.PianoPageInfo.chapter2="",{"s:page_type":"home","s:content_source":"20mn"};case"game":return u(void 0,"services","jeux",window.datalayerInfo?.pageKey);case"gamehome":return u("home_game","services","jeux");case"horoscopehome":return u("home_horoscope","services","horoscope");case"horoscope":return u("horoscope","services","horoscope");case"jobdetails":return(()=>{const{pageKey:e,tagsSlug:n="",contentTitle:t="",embedCount:a=0,videoCount:c=0,video20mnCount:i=0}=window.datalayerInfo;return{"s:content_source":"labsense","s:page_type":"content",content_type:"card","s:content_tags":n,"s:content_signature":"","s:content_title":t,"s:content_subtype":"job","n:content_id":Number(e),"n:content_id_journaliste":0,"n:content_title_characters_number":Number(t.length),"n:content_video_number":c,"n:content_20min_video_number":i,"n:content_embed_number":a,"n:content_characters_number":Number(r()),"n:content_paragraphs_number":o(),"d:content_published_date":"","d:content_modified_date":""}})();case"jobs":case"tag":return u("home_tag",window.datalayerInfo?.pageKey,"");case"journalist":return(()=>{const{firstName:e,lastName:n}=window.datalayerInfo.journalist||{};return e&&n&&(window.PianoPageInfo.chapter1=`journaliste--${e}-${n}`),{"s:page_type":"journalist"}})();case"la21e":return u("divers","focus--accueil");case"legalnotice":return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return e&&(window.PianoPageInfo.chapter1=`legal-announcement--${e}`),{"s:page_type":"legal_notice"}})();case"legalnoticedepartment":return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return window.PianoPageInfo.chapter1=`legal-announcement-list--${e}`,{"s:page_type":"legal_notice_department"}})();case"legalnoticehome":return u("legal_notice_home","legal-announcement-list");case"legal":return(()=>{const{pageKey:e}=window.datalayerInfo;switch(e){case"cookies":window.PianoPageInfo.chapter1="gestion-cookies";break;case"privacy":window.PianoPageInfo.chapter1="politique-protection-donnees-personnelles";break;default:window.PianoPageInfo.chapter1=e}return{"s:page_type":"divers"}})();case"live":return(()=>{const e=s();return e["n:content_paragraphs_number"]=window.datalayerInfo?.livePosts??0,e})();case"mobileapps":return u("divers","mobile");case"mostcommented":return u("most_commented");case"mostread":return u("most_read");case"mostshared":return u("most_shared");case"mostviewed":return u("home_tag");case"movies":return u("divers","entertainment","cinema");case"news":return u("divers","a-la-une");case"sitemap":return u("divers","plan-site");case"sport":return(()=>{const{breadcrumb:e=[]}=window.datalayerInfo;return window.PianoPageInfo.chapter1=e.shift(),window.PianoPageInfo.chapter2=e.shift(),window.PianoPageInfo.chapter3=e.shift(),window.PianoPageInfo.chapter4=e.shift(),{"s:page_type":"divers"}})();case"story":return(()=>{const e=s();return e["s:content_subtype"]=window.datalayerInfo?.subType??"",e})();case"service":return u("divers","pratique");case"traffic":return u("infos_trafic");case"tvhome":return u("home_tv","tv");case"tvlive":return u("home_tv_live","tv");case"tvmostrecent":return u("tv_divers","tv","videos-recentes");case"tvmostviewed":return u("tv_divers","tv","videos-plus-vues");case"tvshow":return u("home_tv_show","tv",window.datalayerInfo?.pageKey);case"tvshows":return u("tv_divers","tv","emissions");case"tvvideo":return(()=>{window.PianoPageInfo.chapter1="tv";const e=s();return e.content_type="page",e["s:content_subtype"]="video",e})();case"weather":return u("previsions-meteo-france");default:return{}}};window.sendPageTracking=a,window.sendClickTracking=t,window._paq=window._paq||[],window.PianoPageInfo={name:"",chapter1:"",chapter2:""},window._paq.push(["setProperties",{...d(),...p(),"s:site_level2":window.location.hostname},{persistent:!0}]),a()}();
|
|
2
2
|
//# sourceMappingURL=piano.min.js.map
|
|
@@ -9717,6 +9717,7 @@ export type TOptionsUpdateSignType = {
|
|
|
9717
9717
|
};
|
|
9718
9718
|
export type TOptionsUpdateStatsUserFrontActionIdType = {
|
|
9719
9719
|
clientMutationId?: InputMaybe<Scalars['String']['input']>;
|
|
9720
|
+
skip_event?: InputMaybe<Scalars['Boolean']['input']>;
|
|
9720
9721
|
};
|
|
9721
9722
|
export type TOptionsUpdateStormUserFrontType = {
|
|
9722
9723
|
clientMutationId?: InputMaybe<Scalars['String']['input']>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "2.24.
|
|
3
|
+
"version": "2.24.14",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@github.com/20minutes/tyr.git"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@20minutes/draft-convert": "^3.0.2",
|
|
56
|
-
"@20minutes/hela": "^2.9.
|
|
56
|
+
"@20minutes/hela": "^2.9.8",
|
|
57
57
|
"aws-rum-web": "^1.24.0",
|
|
58
58
|
"classnames": "^2.5.1",
|
|
59
59
|
"draft-js": "^0.11.7",
|
|
@@ -66,12 +66,12 @@
|
|
|
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.850.0",
|
|
70
70
|
"@babel/core": "^7.27.4",
|
|
71
71
|
"@babel/eslint-parser": "^7.27.5",
|
|
72
72
|
"@eslint/compat": "^1.3.0",
|
|
73
73
|
"@eslint/eslintrc": "^3.3.1",
|
|
74
|
-
"@eslint/js": "^9.
|
|
74
|
+
"@eslint/js": "^9.31.0",
|
|
75
75
|
"@graphql-codegen/cli": "^5.0.7",
|
|
76
76
|
"@graphql-codegen/typescript": "^4.1.6",
|
|
77
77
|
"@graphql-codegen/typescript-operations": "^4.6.1",
|
|
@@ -80,56 +80,56 @@
|
|
|
80
80
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
81
81
|
"@rollup/plugin-replace": "^6.0.2",
|
|
82
82
|
"@rollup/plugin-terser": "^0.4.4",
|
|
83
|
-
"@storybook/addon-docs": "^9.0.
|
|
84
|
-
"@storybook/addon-links": "^9.0.
|
|
85
|
-
"@storybook/react-vite": "^9.0.
|
|
83
|
+
"@storybook/addon-docs": "^9.0.18",
|
|
84
|
+
"@storybook/addon-links": "^9.0.18",
|
|
85
|
+
"@storybook/react-vite": "^9.0.18",
|
|
86
86
|
"@testing-library/dom": "^10.4.0",
|
|
87
87
|
"@testing-library/jest-dom": "^6.6.3",
|
|
88
88
|
"@testing-library/react": "^16.3.0",
|
|
89
89
|
"@types/draft-js": "^0.11.18",
|
|
90
90
|
"@types/googletag": "^3.3.0",
|
|
91
91
|
"@types/jsdom": "^21.1.7",
|
|
92
|
-
"@types/node": "^24.0
|
|
93
|
-
"@types/poool-access": "^5.18.
|
|
94
|
-
"@types/poool-engage": "^2.1.
|
|
92
|
+
"@types/node": "^24.1.0",
|
|
93
|
+
"@types/poool-access": "^5.18.1",
|
|
94
|
+
"@types/poool-engage": "^2.1.3",
|
|
95
95
|
"@types/react": "^18.3.13",
|
|
96
96
|
"@types/react-dom": "^18.3.1",
|
|
97
97
|
"@types/sinon": "^17.0.4",
|
|
98
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
99
|
-
"@typescript-eslint/parser": "^8.
|
|
100
|
-
"@vitejs/plugin-react": "^4.
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
99
|
+
"@typescript-eslint/parser": "^8.38.0",
|
|
100
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
101
101
|
"@vitest/coverage-v8": "^3.2.4",
|
|
102
102
|
"babel-loader": "^10.0.0",
|
|
103
103
|
"eslint": "^8.57.1",
|
|
104
104
|
"eslint-config-airbnb": "^19.0.4",
|
|
105
|
-
"eslint-config-prettier": "^10.1.
|
|
105
|
+
"eslint-config-prettier": "^10.1.8",
|
|
106
106
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
107
107
|
"eslint-import-resolver-typescript": "^4.4.3",
|
|
108
108
|
"eslint-plugin-babel": "^5.3.1",
|
|
109
109
|
"eslint-plugin-import": "^2.32.0",
|
|
110
110
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
111
111
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
112
|
-
"eslint-plugin-prettier": "^5.5.
|
|
112
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
113
113
|
"eslint-plugin-react": "^7.37.5",
|
|
114
114
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
115
|
-
"eslint-plugin-storybook": "^9.0.
|
|
115
|
+
"eslint-plugin-storybook": "^9.0.18",
|
|
116
116
|
"globals": "^16.2.0",
|
|
117
117
|
"graphql": "^16.11.0",
|
|
118
118
|
"husky": "^9.1.7",
|
|
119
|
-
"jest-worker": "^30.0.
|
|
119
|
+
"jest-worker": "^30.0.5",
|
|
120
120
|
"jsdom": "^26.1.0",
|
|
121
121
|
"lint-staged": "^16.1.2",
|
|
122
122
|
"mockdate": "^3.0.5",
|
|
123
123
|
"prettier": "3.6.2",
|
|
124
124
|
"purgecss": "^7.0.2",
|
|
125
125
|
"purgecss-from-html": "^7.0.2",
|
|
126
|
-
"rollup": "^4.
|
|
126
|
+
"rollup": "^4.45.1",
|
|
127
127
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
128
128
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
129
129
|
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
130
130
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
131
131
|
"schema-dts": "^1.1.5",
|
|
132
|
-
"storybook": "^9.0.
|
|
132
|
+
"storybook": "^9.0.18",
|
|
133
133
|
"ts-node": "^10.9.2",
|
|
134
134
|
"tsconfig-paths": "^4.2.0",
|
|
135
135
|
"typed-query-selector": "^2.12.0",
|