@20minutes/tyr 0.1.69 → 0.1.71
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/thirdParties/ads/adSlotsKeyValues.d.ts +1 -0
- package/dist/assets/scripts/thirdParties/ads/dfpAdSlots.d.ts +4 -0
- package/dist/assets/scripts/thirdParties/ads/dfpCall.d.ts +2 -0
- package/dist/assets/scripts/thirdParties/ads/dfpConfig.d.ts +1 -0
- package/dist/assets/scripts/thirdParties/ads/dfpDatalayerAdapter.d.ts +2 -0
- package/dist/assets/scripts/thirdParties/ads/index.d.ts +7 -0
- package/dist/assets/scripts/thirdParties/ads/placeholderHandler.d.ts +1 -0
- package/dist/components/organisms/{LiveBlock → ArticlePage/LiveBlock}/LiveBlock.d.ts +0 -0
- package/dist/components/organisms/{LiveBlock → ArticlePage/LiveBlock}/index.d.ts +0 -0
- package/dist/components/organisms/ArticlePage/RubricsCarousels/RubricsCarousels.d.ts +7 -0
- package/dist/components/organisms/ArticlePage/RubricsCarousels/index.d.ts +1 -0
- package/dist/components/organisms/ArticlePage/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +1 -1
- package/dist/css/articlePage-desktop-critical.css +1 -1
- package/dist/css/articlePage-desktop-no-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-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-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-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-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-critical.css +1 -1
- package/dist/css/tagPage-mobile-no-critical.css +1 -1
- package/dist/index.es.js +7249 -7201
- package/dist/index.umd.js +122 -122
- package/dist/js/ads.min.js +1 -1
- package/dist/js/awsRum.min.js +5 -5
- package/dist/js/main.min.js +1 -1
- package/dist/types/ComponentConfig.d.ts +1 -1
- package/package.json +14 -14
package/dist/js/main.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";const
|
|
1
|
+
(function(){"use strict";const d=e=>document.cookie.indexOf(e)!==-1,l=e=>{const t=document.cookie.split(";").filter(n=>n.indexOf(e)!==-1)[0];return t?t.split("=")[1]:"{}"},u=e=>{const t=[`${e.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];e.domain&&t.push(`domain=${e.domain}`),document.cookie=t.join("; ")},m=(e,t=100)=>{const n=e.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),V=i+o,x=n.top+i;return V>x-t};var p=(e=>(e[e.article=0]="article",e[e.divers=1]="divers",e[e.horoscope=2]="horoscope",e))(p||{}),g=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e))(g||{}),h=(e=>(e.MISC="divers",e.HOME="home",e.LOCAL="local",e.PLANET="plan\xE8te",e))(h||{}),v=(e=>(e.PAGETYPE="pageType",e.TAGS="tags",e))(v||{});const f="adDefined",E=()=>{if(d("20min_fp")){const e=l("20min_fp");fetch(`https://securepubads.g.doubleclick.net/user_data_deletion?ppid=${e}&iu=49926454`,{referrerPolicy:"strict-origin-when-cross-origin"}).then(t=>{t.ok&&alert("La demande de suppression a bien \xE9t\xE9 prise en compte")}),u({name:"20min_fp"})}},b=()=>{const e=document.getElementById("delete-fingerprint");e&&e.addEventListener("click",E)};let r=[],a;const w=(e,t)=>{let n=!1;return()=>{n||(e(),n=!0,a=setTimeout(()=>{n=!1},t))}},S=e=>e.event&&m(e.elem,Number(e.distance))?(e.elem.dispatchEvent(new Event(e.event)),e.elem.dataset.lazyLoaded="true",!1):!0,s=()=>{w(()=>{r=r.filter(S),r.length<=0&&(clearTimeout(a),window.removeEventListener("scroll",s))},50)()},y=()=>{r.length<=0||window.addEventListener("scroll",s)},c=e=>{r.push(e),y()},T=()=>{document.addEventListener(f,e=>{const t=e,{elem:n}=t.detail[0];if(n.getAttribute("data-delayed")!=="true")return;const i={elem:n,event:n.getAttribute("id"),distance:n.dataset.distanceVisible};c(i)})},I=()=>{document.querySelectorAll('[data-delayed="true"]:not([data-dfp-name])').forEach(e=>{const t={elem:e,event:e.getAttribute("id"),distance:e.dataset.distanceVisible};c(t)})},L=()=>{T(),I()},O=(e,t,n=()=>{})=>{performance.mark(`20mn:${e}:Start`);const i=document.getElementsByTagName("script")[0],o=document.createElement("script");o.async=!0,o.src=t,o.onload=()=>{n(),performance.mark(`20mn:${e}:End`)},i&&i.parentNode&&i.parentNode.insertBefore(o,i)},A=()=>{var e;!document.querySelector(".gcse-search")||!((e=window.envVariables)!=null&&e.googleSearchCode)||O("googlesearch",`https://cse.google.com/cse.js?cx=${window.envVariables.googleSearchCode}`)},C=()=>{A()},N=e=>{const t={},n=document.createElement("a");return n.href=e,n.search.substring(1).split("&").forEach(i=>{const o=i.split("=");t[o[0]]=decodeURIComponent(o[1])}),t},_=()=>{var e,t;const n=N(window.location.href),i=document.createElement("div");i.className="OUTBRAIN",i.setAttribute("data-widget-id","type|default('AR_1')"),i.setAttribute("data-src","https://www.20minutes.fr"),"advertisingId"in n&&"appVersion"in n&&(i.setAttribute("data-ob-user-id",n.advertisingId),i.setAttribute("data-ob-app-ver",n.appVersion),i.setAttribute("data-ob-installation-key","{{ outbrain_ios_id }}")),(t=(e=document?.currentScript)==null?void 0:e.parentNode)==null||t.insertBefore(i,document.currentScript)},k=()=>{_()};(()=>{b(),L(),C(),k()})()})();
|
|
@@ -9,7 +9,7 @@ export declare const enum ComponentNameCommon {
|
|
|
9
9
|
COMMON_MOST_READ_ARTICLES = "common/most-read-articles"
|
|
10
10
|
}
|
|
11
11
|
export declare const enum ComponentNameRubric {
|
|
12
|
-
|
|
12
|
+
RUBRIC_RUBRIC_CAROUSELS = "rubric/rubric-carousels",
|
|
13
13
|
RUBRIC_MOST_READ_ARTICLES = "rubric/most-read-articles",
|
|
14
14
|
RUBRIC_PARTNER_CARDS = "rubric/partner-cards",
|
|
15
15
|
ARTICLE_SCROLL_PROGRESS_BAR = "rubric/scroll-progress-bar"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.71",
|
|
4
4
|
"repository": "git@github.com:20minutes/tyr.git",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "20 Minutes",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"node": ">=16"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@20minutes/hela": "^0.1.
|
|
46
|
+
"@20minutes/hela": "^0.1.63",
|
|
47
47
|
"aws-rum-web": "^1.12.0",
|
|
48
48
|
"node-html-parser": "^6.1.4",
|
|
49
49
|
"react": "^18.2.0",
|
|
@@ -56,18 +56,18 @@
|
|
|
56
56
|
"@storybook/addon-essentials": "^6.5.16",
|
|
57
57
|
"@storybook/addon-interactions": "^6.5.16",
|
|
58
58
|
"@storybook/addon-links": "^6.5.16",
|
|
59
|
-
"@storybook/builder-vite": "^0.4.
|
|
59
|
+
"@storybook/builder-vite": "^0.4.2",
|
|
60
60
|
"@storybook/react": "^6.5.16",
|
|
61
61
|
"@storybook/testing-library": "0.0.13",
|
|
62
|
-
"@types/googletag": "^3.0.
|
|
62
|
+
"@types/googletag": "^3.0.3",
|
|
63
63
|
"@types/jest": "^29.4.0",
|
|
64
|
-
"@types/react": "^18.0.
|
|
65
|
-
"@types/react-dom": "^18.0.
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
67
|
-
"@typescript-eslint/parser": "^5.
|
|
64
|
+
"@types/react": "^18.0.28",
|
|
65
|
+
"@types/react-dom": "^18.0.11",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
67
|
+
"@typescript-eslint/parser": "^5.52.0",
|
|
68
68
|
"@vitejs/plugin-react": "^3.1.0",
|
|
69
69
|
"babel-loader": "^9.1.2",
|
|
70
|
-
"eslint": "^8.
|
|
70
|
+
"eslint": "^8.34.0",
|
|
71
71
|
"eslint-config-airbnb": "^19.0.4",
|
|
72
72
|
"eslint-config-prettier": "^8.6.0",
|
|
73
73
|
"eslint-import-resolver-typescript": "^3.5.3",
|
|
@@ -78,19 +78,19 @@
|
|
|
78
78
|
"eslint-plugin-react": "^7.32.2",
|
|
79
79
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
80
80
|
"husky": "^8.0.3",
|
|
81
|
-
"jest": "^29.4.
|
|
82
|
-
"lint-staged": "^13.1.
|
|
81
|
+
"jest": "^29.4.3",
|
|
82
|
+
"lint-staged": "^13.1.2",
|
|
83
83
|
"prettier": "^2.8.4",
|
|
84
84
|
"purgecss": "^5.0.0",
|
|
85
|
-
"rollup": "^3.
|
|
85
|
+
"rollup": "^3.17.1",
|
|
86
86
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
87
87
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
88
88
|
"rollup-plugin-visualizer": "^5.9.0",
|
|
89
89
|
"ts-jest": "^29.0.5",
|
|
90
90
|
"ts-node": "^10.9.1",
|
|
91
91
|
"typescript": "^4.9.5",
|
|
92
|
-
"vite": "^4.1.
|
|
93
|
-
"vite-plugin-dts": "^1.7.
|
|
92
|
+
"vite": "^4.1.2",
|
|
93
|
+
"vite-plugin-dts": "^1.7.3",
|
|
94
94
|
"vite-tsconfig-paths": "^4.0.5"
|
|
95
95
|
}
|
|
96
96
|
}
|