@20minutes/tyr 2.26.3 → 2.26.4
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/js/piano.min.js +1 -1
- package/dist/src/types/graphql.d.ts +17 -8
- package/package.json +20 -19
package/dist/js/piano.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){"use strict";var e=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.HOROSCOPE="horoscope",e.HOROSCOPE_HOME="horoscopehome",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(e||{});const n=(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,"")},t=()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())},a=()=>document.querySelectorAll(".c-content > p").length,o=()=>[...document.querySelectorAll(".c-content > p")].reduce((e,n)=>e+n.innerHTML.length,0),r=()=>{const e={},n=t();return("utm_source"in n||"utm_campaign"in n||"utm_medium"in n)&&("utm_source"in n||(e.utm_source=n.utm_medium??n.utm_campaign),"utm_campaign"in n||(e.utm_campaign=n.utm_source??n.utm_medium),"utm_medium"in n||(e.utm_medium=n.utm_source??n.utm_campaign)),e},c=()=>{const e=window.datalayerInfo,t={};return e.breadcrumb?.forEach((e,t)=>{let a=n(e);"diaporamas"===a&&(a="diaporama"),"actualite"===a&&(a="actu-generale"),window.PianoPageInfo[`chapter${t+1}`]=a}),Number.isNaN(Number(e.contentId))||(t["n:content_id"]=Number(e.contentId)),t.content_type=e.pageName??"other",t["s:page_type"]="content",t["d:content_published_date"]=e.modificationDate?new Date(e.modificationDate).toISOString():"",t["d:content_modified_date"]=e.publicationDate?new Date(e.publicationDate).toISOString():"",Number.isNaN(Number(e.journalist?.id))||(t["n:content_id_journaliste"]=Number(e.journalist?.id)),t["s:content_tags"]=e.tagsSlug??"",t["s:content_signature"]=n(e.signature??""),t["s:content_title"]=n(e.contentTitle??""),t["n:content_title_characters_number"]=Number(e.contentTitle?.length),t["s:content_subtype"]="texte",t["n:content_video_number"]=e.videoCount??0,t["n:content_20min_video_number"]=e.video20mnCount??0,t["n:content_embed_number"]=e.embedCount??0,e.podcastCount&&e.podcastCount>0?t["s:content_subtype"]="podcast":t["n:content_video_number"]>0&&(t["s:content_subtype"]="video"),t},i=(e,n,t,a)=>(window.PianoPageInfo&&(n&&(window.PianoPageInfo.chapter1=n),t&&(window.PianoPageInfo.chapter2=t),a&&(window.PianoPageInfo.chapter3=a)),e?{"s:page_type":e}:{}),s=()=>{const e=window.datalayerInfo,n={};n["b:user_adblock"]=!window.adsapp,n.page_url=e.pageUri??"",e.pageUri&&window.PianoPageInfo&&(window.PianoPageInfo.name=new URL(e.pageUri).pathname),e.contentSource&&(n["s:content_source"]=e.contentSource),document.referrer&&(n["s:misc_referrer"]=document.referrer),n["s:page_type"]=e.pageName||"other";const a=document.querySelector("link[rel='canonical']");if(a&&(n["s:page_canonical"]=a.getAttribute("href")??""),"/search"===e.pageUri){const e=t();n["s:misc_search"]=e.q||""}return{...n,...r()}},u=()=>{switch(window.datalayerInfo.pageName||"other"){case e.ARCHIVE_BY_DAY:case e.ARCHIVE_BY_YEAR:return i("divers");case e.ARTICLE:return(()=>{const e=c();return e["n:content_characters_number"]=Number(o()),e["n:content_paragraphs_number"]=a(),e})();case e.DIRECT:return i("divers","le-direct");case e.ELECTIONS:case e.ELECTIONSHOME:return(()=>{const{national:e,region:n,department:t,constituency:a,town:o}=window.datalayerInfo?.elections||{};return window.PianoPageInfo&&(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 e.HOME:return window.PianoPageInfo&&(window.PianoPageInfo.chapter1="accueil",window.PianoPageInfo.chapter2=""),{"s:page_type":"home","s:content_source":"20mn"};case e.GAME:return i(void 0,"services","jeux",window.datalayerInfo?.pageKey);case e.GAMEHOME:return i("home_game","services","jeux");case e.HOROSCOPE_HOME:return i("home_horoscope","services","horoscope");case e.HOROSCOPE:return i("horoscope","services","horoscope");case e.JOB_DETAILS:return(()=>{const{pageKey:e,tagsSlug:n="",contentTitle:t="",embedCount:r=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":r,"n:content_characters_number":Number(o()),"n:content_paragraphs_number":a(),"d:content_published_date":"","d:content_modified_date":""}})();case e.JOBS:return i("home_tag",window.datalayerInfo?.pageKey,"");case e.JOURNALIST:return(()=>{const{firstName:e,lastName:n}=window.datalayerInfo.journalist||{};return e&&n&&window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`journaliste--${e}-${n}`),{"s:page_type":"journalist"}})();case e.LA21E:return i("divers","focus--accueil");case e.LEGALNOTICE:return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return e&&window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`legal-announcement--${e}`),{"s:page_type":"legal_notice"}})();case e.LEGALNOTICEDEPARTMENT:return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`legal-announcement-list--${e}`),{"s:page_type":"legal_notice_department"}})();case e.LEGALNOTICEHOME:return i("legal_notice_home","legal-announcement-list");case e.LEGAL:return(()=>{const{pageKey:e}=window.datalayerInfo;if(window.PianoPageInfo)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 e.LIVE:return(()=>{const e=c();return e["n:content_paragraphs_number"]=window.datalayerInfo?.livePosts??0,e})();case e.MOBILE_APPS:return i("divers","mobile");case e.MOST_COMMENTED:return i("most_commented");case e.MOST_READ:return i("most_read");case e.MOST_SHARED:return i("most_shared");case e.MOST_VIEWED:return i("home_tag");case e.MOVIES:return i("divers","entertainment","cinema");case e.NEWS:return i("divers","a-la-une");case e.TAG:return i("home_tag",window.datalayerInfo?.pageKey,"");case e.SITEMAP:return i("divers","plan-site");case e.SPORT:return(()=>{const{breadcrumb:e=[]}=window.datalayerInfo;return window.PianoPageInfo&&(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 e.STORY:return(()=>{const e=c();return e["s:content_subtype"]=window.datalayerInfo?.subType??"",e})();case e.SERVICE:return i("divers","pratique");case e.TRAFFIC:return i("infos_trafic");case e.TV_HOME:return i("home_tv","tv");case e.TV_LIVE:return i("home_tv_live","tv");case e.TV_MOST_RECENT:return i("tv_divers","tv","videos-recentes");case e.TV_MOST_VIEWED:return i("tv_divers","tv","videos-plus-vues");case e.TV_SHOW:return i("home_tv_show","tv",window.datalayerInfo?.pageKey);case e.TV_SHOWS:return i("tv_divers","tv","emissions");case e.TV_VIDEO:return(()=>{window.PianoPageInfo&&(window.PianoPageInfo.chapter1="tv");const e=c();return e.content_type="page",e["s:content_subtype"]="video",e})();case e.WEATHER:return i("previsions-meteo-france");default:return{}}},d=()=>{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"])return e;const n=(e=>{const n=document.cookie.split(";").filter(n=>-1!==n.indexOf(e))[0];return n?n.split("=")[1]:"{}"})("20mnUserDataLayer"),t=n?(()=>{try{return JSON.parse(decodeURIComponent(n))}catch{return null}})():null;return 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))),e},_=e=>{const t={click:n(e.name),click_chapter1:e?.chapter1||null,click_chapter2:e?.chapter2||null,click_chapter3:e?.chapter3||null},a=`click.${e.type}`;if(window.pa?(e.customProps&&Object.keys(e.customProps).length>0&&window.pa.setProperties(e.customProps,{persistent:!1,events:[a]}),window.pa.sendEvent(a,t)):window._paq&&(e.customProps&&Object.keys(e.customProps).length>0&&window._paq.push(["setProperties",e.customProps,{persistent:!1,events:[a]}]),window._paq.push(["sendEvent",a,t])),!window.edgee?.track)return;const o=document.getElementById("__EDGEE_DATA_LAYER__");let r={};if(o)try{const e=JSON.parse(o.textContent||"");e.data_collection.context=e.data_collection.context||{},r=e.data_collection.context.page?.properties||{}}catch{r={}}window.edgee.track({name:a,properties:{...r,click:t.click,click_chapter1:t.click_chapter1,click_chapter2:t.click_chapter2,click_chapter3:t.click_chapter3,click_type:e?.type??"navigation",...e.customProps}},{"edgee/piano-analytics":!0})},p=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}]),window.edgee?.page&&!1!==e?.enableEdgee&&window.edgee.page()};window.sendPageTracking=p,window.sendClickTracking=_,window._paq=window._paq||[],window._paq.push(["privacy.setMode","exempt"]),window._paq.push(["privacy.include.properties",["content_type","s:page_type","d:content_published_date","d:content_modified_date","n:content_id","n:content_id_journaliste","s:content_tags","s:content_signature","s:content_title","n:content_title_characters_number","s:content_subtype","n:content_video_number","n:content_20min_video_number","n:content_embed_number","s:content_subtype","s:content_subtype","n:content_characters_number","n:content_paragraphs_number","s:content_source","s:misc_referrer","s:page_canonical","s:misc_search","s:site_level2","b:user_darkmode","b:user_status"]]),window.PianoPageInfo={name:"",chapter1:"",chapter2:""},window._paq.push(["setProperties",{...s(),...u(),...d(),"s:site_level2":window.location.hostname},{persistent:!0}]),p({enableEdgee:!1})}();
|
|
1
|
+
!function(){"use strict";var e=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.HOROSCOPE="horoscope",e.HOROSCOPE_HOME="horoscopehome",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(e||{});const n=(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,"")},t=()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())},a=()=>document.querySelectorAll(".c-content > p").length,o=()=>[...document.querySelectorAll(".c-content > p")].reduce((e,n)=>e+n.innerHTML.length,0),r=()=>{const e={},n=t();return("utm_source"in n||"utm_campaign"in n||"utm_medium"in n)&&("utm_source"in n||(e.utm_source=n.utm_medium??n.utm_campaign),"utm_campaign"in n||(e.utm_campaign=n.utm_source??n.utm_medium),"utm_medium"in n||(e.utm_medium=n.utm_source??n.utm_campaign)),e},c=()=>{const e=window.datalayerInfo,t={};return e.breadcrumb?.forEach((e,t)=>{let a=n(e);"diaporamas"===a&&(a="diaporama"),"actualite"===a&&(a="actu-generale"),window.PianoPageInfo[`chapter${t+1}`]=a}),Number.isNaN(Number(e.contentId))||(t["n:content_id"]=Number(e.contentId)),t.content_type=e.pageName??"other",t["s:page_type"]="content",t["d:content_published_date"]=e.modificationDate?new Date(e.modificationDate).toISOString():"",t["d:content_modified_date"]=e.publicationDate?new Date(e.publicationDate).toISOString():"",Number.isNaN(Number(e.journalist?.id))||(t["n:content_id_journaliste"]=Number(e.journalist?.id)),t["s:content_tags"]=e.tagsSlug??"",t["s:content_signature"]=n(e.signature??""),t["s:content_title"]=n(e.contentTitle??""),t["n:content_title_characters_number"]=Number(e.contentTitle?.length),t["s:content_subtype"]="texte",t["n:content_video_number"]=e.videoCount??0,t["n:content_20min_video_number"]=e.video20mnCount??0,t["n:content_embed_number"]=e.embedCount??0,e.podcastCount&&e.podcastCount>0?t["s:content_subtype"]="podcast":t["n:content_video_number"]>0&&(t["s:content_subtype"]="video"),t},i=(e,n,t,a)=>(window.PianoPageInfo&&(n&&(window.PianoPageInfo.chapter1=n),t&&(window.PianoPageInfo.chapter2=t),a&&(window.PianoPageInfo.chapter3=a)),e?{"s:page_type":e}:{}),s=()=>{const e=window.datalayerInfo,n={};n["b:user_adblock"]=!window.adsapp,n.page_url=e.pageUri??"",e.pageUri&&window.PianoPageInfo&&(window.PianoPageInfo.name=new URL(e.pageUri).pathname),e.contentSource&&(n["s:content_source"]=e.contentSource),document.referrer&&(n["s:misc_referrer"]=document.referrer),n["s:page_type"]=e.pageName||"other";const a=document.querySelector("link[rel='canonical']");if(a&&(n["s:page_canonical"]=a.getAttribute("href")??""),"/search"===e.pageUri){const e=t();n["s:misc_search"]=e.q||""}return{...n,...r()}},u=()=>{switch(window.datalayerInfo.pageName||"other"){case e.ARCHIVE_BY_DAY:case e.ARCHIVE_BY_YEAR:return i("divers");case e.ARTICLE:return(()=>{const e=c();return e["n:content_characters_number"]=Number(o()),e["n:content_paragraphs_number"]=a(),e})();case e.DIRECT:return i("divers","le-direct");case e.ELECTIONS:case e.ELECTIONSHOME:return(()=>{const{national:e,region:n,department:t,constituency:a,town:o}=window.datalayerInfo?.elections||{};return window.PianoPageInfo&&(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 e.HOME:return window.PianoPageInfo&&(window.PianoPageInfo.chapter1="accueil",window.PianoPageInfo.chapter2=""),{"s:page_type":"home","s:content_source":"20mn"};case e.GAME:return i(void 0,"services","jeux",window.datalayerInfo?.pageKey);case e.GAMEHOME:return i("home_game","services","jeux");case e.HOROSCOPE_HOME:return i("home_horoscope","services","horoscope");case e.HOROSCOPE:return i("horoscope","services","horoscope");case e.JOB_DETAILS:return(()=>{const{pageKey:e,tagsSlug:n="",contentTitle:t="",embedCount:r=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":r,"n:content_characters_number":Number(o()),"n:content_paragraphs_number":a(),"d:content_published_date":"","d:content_modified_date":""}})();case e.JOBS:return i("home_tag",window.datalayerInfo?.pageKey,"");case e.JOURNALIST:return(()=>{const{firstName:e,lastName:n}=window.datalayerInfo.journalist||{};return e&&n&&window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`journaliste--${e}-${n}`),{"s:page_type":"journalist"}})();case e.LA21E:return i("divers","focus--accueil");case e.LEGALNOTICE:return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return e&&window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`legal-announcement--${e}`),{"s:page_type":"legal_notice"}})();case e.LEGALNOTICEDEPARTMENT:return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`legal-announcement-list--${e}`),{"s:page_type":"legal_notice_department"}})();case e.LEGALNOTICEHOME:return i("legal_notice_home","legal-announcement-list");case e.LEGAL:return(()=>{const{pageKey:e}=window.datalayerInfo;if(window.PianoPageInfo)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 e.LIVE:return(()=>{const e=c();return e["n:content_paragraphs_number"]=window.datalayerInfo?.livePosts??0,e})();case e.MOBILE_APPS:return i("divers","mobile");case e.MOST_COMMENTED:return i("most_commented");case e.MOST_READ:return i("most_read");case e.MOST_SHARED:return i("most_shared");case e.MOST_VIEWED:return i("home_tag");case e.MOVIES:return i("divers","entertainment","cinema");case e.NEWS:return i("divers","a-la-une");case e.TAG:return i("home_tag",window.datalayerInfo?.pageKey,"");case e.SITEMAP:return i("divers","plan-site");case e.SPORT:return(()=>{const{breadcrumb:e=[]}=window.datalayerInfo;return window.PianoPageInfo&&(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 e.STORY:return(()=>{const e=c();return e["s:content_subtype"]=window.datalayerInfo?.subType??"",e})();case e.SERVICE:return i("divers","pratique");case e.TRAFFIC:return i("infos_trafic");case e.TV_HOME:return i("home_tv","tv");case e.TV_LIVE:return i("home_tv_live","tv");case e.TV_MOST_RECENT:return i("tv_divers","tv","videos-recentes");case e.TV_MOST_VIEWED:return i("tv_divers","tv","videos-plus-vues");case e.TV_SHOW:return i("home_tv_show","tv",window.datalayerInfo?.pageKey);case e.TV_SHOWS:return i("tv_divers","tv","emissions");case e.TV_VIDEO:return(()=>{window.PianoPageInfo&&(window.PianoPageInfo.chapter1="tv");const e=c();return e.content_type="page",e["s:content_subtype"]="video",e})();case e.WEATHER:return i("previsions-meteo-france");default:return{}}},d=()=>{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"])return e;const n=(e=>{const n=document.cookie.split(";").filter(n=>-1!==n.indexOf(e))[0];return n?n.split("=")[1]:"{}"})("20mnUserDataLayer"),t=n?(()=>{try{return JSON.parse(decodeURIComponent(n))}catch{return null}})():null;return 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))),e},_=e=>{const t={click:n(e.name),click_chapter1:e?.chapter1||null,click_chapter2:e?.chapter2||null,click_chapter3:e?.chapter3||null},a=`click.${e.type}`;if(window.pa?(e.customProps&&Object.keys(e.customProps).length>0&&window.pa.setProperties(e.customProps,{persistent:!1,events:[a]}),window.pa.sendEvent(a,t)):window._paq&&(e.customProps&&Object.keys(e.customProps).length>0&&window._paq.push(["setProperties",e.customProps,{persistent:!1,events:[a]}]),window._paq.push(["sendEvent",a,t])),!window.edgee?.track)return;const o=document.getElementById("__EDGEE_DATA_LAYER__");let r={};if(o)try{const e=JSON.parse(o.textContent||"");e.data_collection.context=e.data_collection.context||{},r=e.data_collection.context.page?.properties||{}}catch{r={}}window.edgee.track({name:a,properties:{...r,click:t.click,click_chapter1:t.click_chapter1,click_chapter2:t.click_chapter2,click_chapter3:t.click_chapter3,click_type:e?.type??"navigation",...e.customProps}},{"edgee/piano-analytics":!0})},p=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}]),window.edgee?.page&&!1!==e?.enableEdgee&&window.edgee.page()};window.sendPageTracking=p,window.sendClickTracking=_,window._paq=window._paq||[],window._paq.push(["privacy.include.properties",["content_type","s:page_type","d:content_published_date","d:content_modified_date","n:content_id","n:content_id_journaliste","s:content_tags","s:content_signature","s:content_title","n:content_title_characters_number","s:content_subtype","n:content_video_number","n:content_20min_video_number","n:content_embed_number","s:content_subtype","s:content_subtype","n:content_characters_number","n:content_paragraphs_number","s:content_source","s:misc_referrer","s:page_canonical","s:misc_search","s:site_level2","b:user_darkmode","b:user_status"]]),window.PianoPageInfo={name:"",chapter1:"",chapter2:""},window._paq.push(["setProperties",{...s(),...u(),...d(),"s:site_level2":window.location.hostname},{persistent:!0}]),p({enableEdgee:!1})}();
|
|
2
2
|
//# sourceMappingURL=piano.min.js.map
|
|
@@ -316,8 +316,8 @@ export type TArticle = TCounting & TCrawlable & TLockable & TNode & TProofreadab
|
|
|
316
316
|
};
|
|
317
317
|
export type TArticleCommentArgs = {
|
|
318
318
|
comment_id?: InputMaybe<Scalars['ID']['input']>;
|
|
319
|
+
external_id?: InputMaybe<Scalars['String']['input']>;
|
|
319
320
|
options?: InputMaybe<TCommentSingleConnectionOptions>;
|
|
320
|
-
viafoura_uuid?: InputMaybe<Scalars['String']['input']>;
|
|
321
321
|
};
|
|
322
322
|
export type TArticleCommentsArgs = {
|
|
323
323
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1848,6 +1848,7 @@ export type TComment = TNode & TTimestampable & {
|
|
|
1848
1848
|
created_at?: Maybe<Scalars['DateTime']['output']>;
|
|
1849
1849
|
deleted_at?: Maybe<Scalars['DateTime']['output']>;
|
|
1850
1850
|
edited_at?: Maybe<Scalars['DateTime']['output']>;
|
|
1851
|
+
external_id?: Maybe<Scalars['String']['output']>;
|
|
1851
1852
|
id: Scalars['ID']['output'];
|
|
1852
1853
|
num_dislikes?: Maybe<Scalars['Int']['output']>;
|
|
1853
1854
|
num_likes?: Maybe<Scalars['Int']['output']>;
|
|
@@ -1855,7 +1856,6 @@ export type TComment = TNode & TTimestampable & {
|
|
|
1855
1856
|
status?: Maybe<CommentStatus>;
|
|
1856
1857
|
userFront?: Maybe<TUserFrontSingleConnection>;
|
|
1857
1858
|
user_front_id?: Maybe<Scalars['ID']['output']>;
|
|
1858
|
-
viafoura_uuid?: Maybe<Scalars['String']['output']>;
|
|
1859
1859
|
};
|
|
1860
1860
|
export type TCommentUserFrontArgs = {
|
|
1861
1861
|
options?: InputMaybe<TUserFrontSingleConnectionOptions>;
|
|
@@ -2688,12 +2688,12 @@ export type TCreateCommentType = {
|
|
|
2688
2688
|
clientMutationId?: InputMaybe<Scalars['String']['input']>;
|
|
2689
2689
|
content: Scalars['String']['input'];
|
|
2690
2690
|
databaseId?: InputMaybe<Scalars['UUID']['input']>;
|
|
2691
|
+
external_id?: InputMaybe<Scalars['String']['input']>;
|
|
2691
2692
|
num_dislikes?: InputMaybe<Scalars['Int']['input']>;
|
|
2692
2693
|
num_likes?: InputMaybe<Scalars['Int']['input']>;
|
|
2693
2694
|
parent_id?: InputMaybe<Scalars['ID']['input']>;
|
|
2694
2695
|
status: CommentStatus;
|
|
2695
2696
|
user_front_id: Scalars['ID']['input'];
|
|
2696
|
-
viafoura_uuid?: InputMaybe<Scalars['String']['input']>;
|
|
2697
2697
|
};
|
|
2698
2698
|
export type TCreateConsentType = {
|
|
2699
2699
|
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -5870,8 +5870,8 @@ export type TLive = TCounting & TCrawlable & TLockable & TNode & TPublishable &
|
|
|
5870
5870
|
};
|
|
5871
5871
|
export type TLiveCommentArgs = {
|
|
5872
5872
|
comment_id?: InputMaybe<Scalars['ID']['input']>;
|
|
5873
|
+
external_id?: InputMaybe<Scalars['String']['input']>;
|
|
5873
5874
|
options?: InputMaybe<TCommentSingleConnectionOptions>;
|
|
5874
|
-
viafoura_uuid?: InputMaybe<Scalars['String']['input']>;
|
|
5875
5875
|
};
|
|
5876
5876
|
export type TLiveCommentsArgs = {
|
|
5877
5877
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -7408,6 +7408,7 @@ export type TMutation = {
|
|
|
7408
7408
|
undeleteUserFront?: Maybe<TUserFrontPayload>;
|
|
7409
7409
|
undeleteVideo?: Maybe<TVideoPayload>;
|
|
7410
7410
|
unsaveArticleUserFront?: Maybe<TUserFrontArticlesSavedPayload>;
|
|
7411
|
+
unsubscribeAllNewsletterUserFront?: Maybe<TActionIdPayload>;
|
|
7411
7412
|
unsubscribeNewsletterUserFront?: Maybe<TActionIdPayload>;
|
|
7412
7413
|
unsubscribeUserFrontPaidAccount?: Maybe<TUserFrontIdPayload>;
|
|
7413
7414
|
unsubscriptionNewsletterUserFront?: Maybe<TActionIdPayload>;
|
|
@@ -8276,6 +8277,9 @@ export type TMutationUndeleteVideoArgs = {
|
|
|
8276
8277
|
export type TMutationUnsaveArticleUserFrontArgs = {
|
|
8277
8278
|
input?: InputMaybe<TUnsaveArticleUserFrontType>;
|
|
8278
8279
|
};
|
|
8280
|
+
export type TMutationUnsubscribeAllNewsletterUserFrontArgs = {
|
|
8281
|
+
input?: InputMaybe<TUnsubscribeAllNewsletterUserFrontType>;
|
|
8282
|
+
};
|
|
8279
8283
|
export type TMutationUnsubscribeNewsletterUserFrontArgs = {
|
|
8280
8284
|
input?: InputMaybe<TUnsubscribeNewsletterUserFrontType>;
|
|
8281
8285
|
};
|
|
@@ -9883,8 +9887,8 @@ export type TPage = TCounting & TCrawlable & TLockable & TNode & TProofreadable
|
|
|
9883
9887
|
};
|
|
9884
9888
|
export type TPageCommentArgs = {
|
|
9885
9889
|
comment_id?: InputMaybe<Scalars['ID']['input']>;
|
|
9890
|
+
external_id?: InputMaybe<Scalars['String']['input']>;
|
|
9886
9891
|
options?: InputMaybe<TCommentSingleConnectionOptions>;
|
|
9887
|
-
viafoura_uuid?: InputMaybe<Scalars['String']['input']>;
|
|
9888
9892
|
};
|
|
9889
9893
|
export type TPageCommentsArgs = {
|
|
9890
9894
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -11133,8 +11137,8 @@ export type TPublishableContent = TCounting & TNode & TProofreadable & TPublisha
|
|
|
11133
11137
|
};
|
|
11134
11138
|
export type TPublishableContentCommentArgs = {
|
|
11135
11139
|
comment_id?: InputMaybe<Scalars['ID']['input']>;
|
|
11140
|
+
external_id?: InputMaybe<Scalars['String']['input']>;
|
|
11136
11141
|
options?: InputMaybe<TCommentSingleConnectionOptions>;
|
|
11137
|
-
viafoura_uuid?: InputMaybe<Scalars['String']['input']>;
|
|
11138
11142
|
};
|
|
11139
11143
|
export type TPublishableContentCommentsArgs = {
|
|
11140
11144
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -13323,8 +13327,8 @@ export type TStory = TCounting & TCrawlable & TLockable & TNode & TProofreadable
|
|
|
13323
13327
|
};
|
|
13324
13328
|
export type TStoryCommentArgs = {
|
|
13325
13329
|
comment_id?: InputMaybe<Scalars['ID']['input']>;
|
|
13330
|
+
external_id?: InputMaybe<Scalars['String']['input']>;
|
|
13326
13331
|
options?: InputMaybe<TCommentSingleConnectionOptions>;
|
|
13327
|
-
viafoura_uuid?: InputMaybe<Scalars['String']['input']>;
|
|
13328
13332
|
};
|
|
13329
13333
|
export type TStoryCommentsArgs = {
|
|
13330
13334
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -14945,13 +14949,13 @@ export type TUpdateCommentType = {
|
|
|
14945
14949
|
associated_content?: InputMaybe<TEditorialContentInput>;
|
|
14946
14950
|
clientMutationId?: InputMaybe<Scalars['String']['input']>;
|
|
14947
14951
|
content?: InputMaybe<Scalars['String']['input']>;
|
|
14952
|
+
external_id?: InputMaybe<Scalars['String']['input']>;
|
|
14948
14953
|
id: Scalars['ID']['input'];
|
|
14949
14954
|
num_dislikes?: InputMaybe<Scalars['Int']['input']>;
|
|
14950
14955
|
num_likes?: InputMaybe<Scalars['Int']['input']>;
|
|
14951
14956
|
parent_id?: InputMaybe<Scalars['ID']['input']>;
|
|
14952
14957
|
status?: InputMaybe<CommentStatus>;
|
|
14953
14958
|
user_front_id?: InputMaybe<Scalars['ID']['input']>;
|
|
14954
|
-
viafoura_uuid?: InputMaybe<Scalars['String']['input']>;
|
|
14955
14959
|
};
|
|
14956
14960
|
export type TUpdateConsentType = {
|
|
14957
14961
|
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -18284,6 +18288,11 @@ export type TUnsaveArticleUserFrontType = {
|
|
|
18284
18288
|
clientMutationId?: InputMaybe<Scalars['String']['input']>;
|
|
18285
18289
|
id: Scalars['ID']['input'];
|
|
18286
18290
|
};
|
|
18291
|
+
export type TUnsubscribeAllNewsletterUserFrontType = {
|
|
18292
|
+
brand_id: Scalars['ID']['input'];
|
|
18293
|
+
clientMutationId?: InputMaybe<Scalars['String']['input']>;
|
|
18294
|
+
unsubscribe_newsletter_token: Scalars['String']['input'];
|
|
18295
|
+
};
|
|
18287
18296
|
export type TUnsubscribeNewsletterUserFrontType = {
|
|
18288
18297
|
brand_id: Scalars['ID']['input'];
|
|
18289
18298
|
clientMutationId?: InputMaybe<Scalars['String']['input']>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@github.com/20minutes/tyr.git"
|
|
@@ -66,40 +66,41 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@20minutes/eslint-config": "^1.2.7",
|
|
69
|
-
"@aws-sdk/client-s3": "3.
|
|
70
|
-
"@babel/core": "^7.28.
|
|
71
|
-
"@babel/eslint-parser": "^7.
|
|
69
|
+
"@aws-sdk/client-s3": "3.884.0",
|
|
70
|
+
"@babel/core": "^7.28.4",
|
|
71
|
+
"@babel/eslint-parser": "^7.28.4",
|
|
72
72
|
"@eslint/compat": "^1.3.2",
|
|
73
73
|
"@eslint/eslintrc": "^3.3.1",
|
|
74
|
-
"@eslint/js": "^9.
|
|
75
|
-
"@graphql-codegen/cli": "^
|
|
76
|
-
"@graphql-codegen/typescript": "^
|
|
77
|
-
"@graphql-codegen/typescript-operations": "^
|
|
74
|
+
"@eslint/js": "^9.35.0",
|
|
75
|
+
"@graphql-codegen/cli": "^6.0.0",
|
|
76
|
+
"@graphql-codegen/typescript": "^5.0.0",
|
|
77
|
+
"@graphql-codegen/typescript-operations": "^5.0.0",
|
|
78
78
|
"@octokit/core": "5.1.0",
|
|
79
79
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
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.1.
|
|
84
|
-
"@storybook/addon-links": "^9.1.
|
|
85
|
-
"@storybook/react-vite": "^9.1.
|
|
83
|
+
"@storybook/addon-docs": "^9.1.5",
|
|
84
|
+
"@storybook/addon-links": "^9.1.5",
|
|
85
|
+
"@storybook/react-vite": "^9.1.5",
|
|
86
86
|
"@testing-library/dom": "^10.4.1",
|
|
87
87
|
"@testing-library/jest-dom": "^6.8.0",
|
|
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.3.
|
|
92
|
+
"@types/node": "^24.3.1",
|
|
93
93
|
"@types/poool-access": "^5.18.1",
|
|
94
94
|
"@types/poool-engage": "^2.2.0",
|
|
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": "^
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
99
|
+
"@typescript-eslint/parser": "^8.43.0",
|
|
100
|
+
"@vitejs/plugin-react": "^5.0.2",
|
|
101
101
|
"@vitest/coverage-v8": "^3.2.4",
|
|
102
102
|
"babel-loader": "^10.0.0",
|
|
103
|
+
"dotenv": "^17.2.2",
|
|
103
104
|
"eslint": "^8.57.1",
|
|
104
105
|
"eslint-config-airbnb": "^19.0.4",
|
|
105
106
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -112,8 +113,8 @@
|
|
|
112
113
|
"eslint-plugin-prettier": "^5.5.4",
|
|
113
114
|
"eslint-plugin-react": "^7.37.5",
|
|
114
115
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
115
|
-
"eslint-plugin-storybook": "^9.1.
|
|
116
|
-
"globals": "^16.
|
|
116
|
+
"eslint-plugin-storybook": "^9.1.5",
|
|
117
|
+
"globals": "^16.4.0",
|
|
117
118
|
"graphql": "^16.11.0",
|
|
118
119
|
"husky": "^9.1.7",
|
|
119
120
|
"jest-worker": "^30.1.0",
|
|
@@ -123,13 +124,13 @@
|
|
|
123
124
|
"prettier": "3.6.2",
|
|
124
125
|
"purgecss": "^7.0.2",
|
|
125
126
|
"purgecss-from-html": "^7.0.2",
|
|
126
|
-
"rollup": "^4.50.
|
|
127
|
+
"rollup": "^4.50.1",
|
|
127
128
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
128
129
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
129
130
|
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
130
131
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
131
132
|
"schema-dts": "^1.1.5",
|
|
132
|
-
"storybook": "^9.1.
|
|
133
|
+
"storybook": "^9.1.5",
|
|
133
134
|
"ts-node": "^10.9.2",
|
|
134
135
|
"tsconfig-paths": "^4.2.0",
|
|
135
136
|
"typed-query-selector": "^2.12.0",
|