@20minutes/tyr 2.47.14 → 2.47.16
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/main/googleSourceButton.d.ts +11 -0
- package/dist/assets/thirdParties/helpers/scriptHelper.d.ts +2 -1
- package/dist/assets/thirdParties/helpers/scriptsScheduler.d.ts +1 -0
- package/dist/components/atoms/GoogleSourceButton/GoogleSourceButton.d.ts +3 -0
- package/dist/components/atoms/GoogleSourceButton/index.d.ts +1 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/organisms/ArticlePage/ArticleMobileHeader/ArticleMobileHeader.d.ts +1 -0
- package/dist/index.es.js +7318 -7246
- package/dist/js/cmp.min.js +2 -2
- package/dist/js/main.min.js +5 -5
- package/dist/js/script-helpers.min.js +1 -1
- package/dist/types/ComponentConfig.d.ts +2 -1
- package/dist/types/ThirdParties/Helpers.d.ts +1 -0
- package/package.json +24 -25
- package/dist/index.umd.js +0 -244
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){"use strict";var e=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(e||{});e.up,e.down,e.sad,e.heart,e.laughing,e.shock;const r=e=>{const r=document.createElement("script");if(
|
|
1
|
+
!function(){"use strict";var e=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(e||{});e.up,e.down,e.sad,e.heart,e.laughing,e.shock;const r=(e,r)=>{let t=e.toLowerCase().replace(/[\s-]+/g,"-");return t=(e=>{let r=e;const t="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)r=r.replace(new RegExp(t.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return r})(t),t.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},t=e=>{e?.waitCMP?(e=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(r=>{window.__tcfapi("addEventListener",2,(t,i)=>{if(!i||!window.__tcfapi||"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus)return void console.warn(`Issue with ${e.name} callback`);const n=(e=>{const r=e.name?.toLowerCase()??"",t="src"in e?e.src?.toLowerCase()??"":"";if(r.includes("lemrock")||t.includes("lemrock"))return"lemrock-RC4kdpii"})(e);if(!n||!0===r.getCurrentUserStatus().vendors[n]?.enabled)return"src"in e&&o(e),void window.__tcfapi("removeEventListener",2,null,t.listenerId);"useractioncomplete"===t.eventStatus&&window.__tcfapi("removeEventListener",2,null,t.listenerId)})})})(e):o(e)},o=e=>{const t=document.createElement("script");if(t.type="text/javascript","async"===e.load?t.async=!0:"defer"===e.load&&(t.defer=!0),"src"in e&&e.src){const r=eval;t.src=e.src?.replace(/%(.*?)%/,(e,t)=>r(t))}if(e.name&&(performance.mark(`20mn:${e.name}:Start`),t.onerror=r=>{performance.mark(`20mn:${e.name}:Error`),console.error(`Script failed to load: ${e.name}${t.src?` (${t.src})`:""}`,r)}),(e.name||e.onLoad)&&(t.onload=()=>{e.name&&performance.mark(`20mn:${e.name}:End`),e.onLoad&&e.onLoad()}),e.fallBackSrc){const i=e.fallBackSrc;t.onerror=()=>{((e,t)=>{const i=window.thirdPartiesConfig?.conditional?.find(t=>r(t.name)===e);if(!i)throw new Error(`Script with name ${e} not found`);o({...i,...t})})(i)}}"text"in e&&e.text&&(t.innerHTML=e.text),e.id&&(t.id=e.id),e.dataAttributes&&Object.entries(e.dataAttributes).forEach(([e,r])=>{var o;t.setAttribute(`data-${o=e,o.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}`,r)}),"head"===e.target&&document.head?document.head.appendChild(t):document.body?document.body.appendChild(t):(window.bodyScripts=window.bodyScripts||[],window.bodyScripts.push(t))};(()=>{const e=new MutationObserver(()=>{document.body&&((window.bodyScripts||[]).forEach(e=>{document.body.appendChild(e)}),e.disconnect())});e.observe(document.documentElement,{childList:!0})})(),(()=>{if(!window.thirdPartiesConfig)return;const{thirdPartiesConfig:e}=window;(({veryHighPriority:e,highPriority:r,mediumPriority:o,lowPriority:i})=>{e?.forEach(e=>{t({...e,target:"head"})}),r?.forEach(e=>{t({...e,target:"head"})}),o?.forEach(e=>{t(e)}),i?.forEach(e=>{t(e)})})({veryHighPriority:(e?.veryHighPriority??[]).sort((e,r)=>e.priority-r.priority),highPriority:(e?.highPriority??[]).sort((e,r)=>e.priority-r.priority),mediumPriority:(e?.mediumPriority??[]).sort((e,r)=>e.priority-r.priority),lowPriority:(e?.lowPriority??[]).sort((e,r)=>e.priority-r.priority)})})()}();
|
|
2
2
|
//# sourceMappingURL=script-helpers.min.js.map
|
|
@@ -216,7 +216,8 @@ export declare enum ComponentNameLegalNotice {
|
|
|
216
216
|
LEGAL_NOTICE_CARDS_LIST = "legal-notice/cards-list",
|
|
217
217
|
LEGAL_NOTICE_CARDS_LIST_DETAIL = "legal-notice/cards-list-detail",
|
|
218
218
|
LEGAL_NOTICE_CARDS_LIST_DEPARTMENT = "legal-notice/cards-list-department",
|
|
219
|
-
LEGAL_NOTICE_CONTENT = "legal-notice/content"
|
|
219
|
+
LEGAL_NOTICE_CONTENT = "legal-notice/content",
|
|
220
|
+
LEGAL_NOTICE_PUBLISH_BANNER = "legal-notice/publish-banner"
|
|
220
221
|
}
|
|
221
222
|
export declare enum ComponentNameLive {
|
|
222
223
|
LIVE_INDICATOR = "live/indicator",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "2.47.
|
|
3
|
+
"version": "2.47.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@github.com/20minutes/tyr.git"
|
|
@@ -14,15 +14,14 @@
|
|
|
14
14
|
"storybook": {
|
|
15
15
|
"url": "https://developers.20minutes.fr/tyr/"
|
|
16
16
|
},
|
|
17
|
-
"main": "./dist/index.
|
|
17
|
+
"main": "./dist/index.es.js",
|
|
18
18
|
"module": "./dist/index.es.js",
|
|
19
19
|
"source": "src/index.ts",
|
|
20
20
|
"types": "./dist/index.d.ts",
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
|
-
"import": "./dist/index.es.js"
|
|
25
|
-
"require": "./dist/index.umd.js"
|
|
24
|
+
"import": "./dist/index.es.js"
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
"files": [
|
|
@@ -50,7 +49,7 @@
|
|
|
50
49
|
"engines": {
|
|
51
50
|
"npm": "please-use-yarn-instead",
|
|
52
51
|
"yarn": ">= 1.22.22",
|
|
53
|
-
"node": ">= 24"
|
|
52
|
+
"node": ">= 24.15"
|
|
54
53
|
},
|
|
55
54
|
"dependencies": {
|
|
56
55
|
"@20minutes/draft-convert": "^3.1.3",
|
|
@@ -65,30 +64,30 @@
|
|
|
65
64
|
"react": "^18.3.1",
|
|
66
65
|
"react-dom": "^18.3.1",
|
|
67
66
|
"uri-js": "npm:uri-js-replace",
|
|
68
|
-
"web-vitals": "^6.2.
|
|
67
|
+
"web-vitals": "^6.2.3",
|
|
69
68
|
"whatwg-url": "^16.0.0"
|
|
70
69
|
},
|
|
71
70
|
"devDependencies": {
|
|
72
71
|
"@20minutes/eslint-config": "^3.0.9",
|
|
73
|
-
"@aws-sdk/client-s3": "3.
|
|
74
|
-
"@graphql-codegen/cli": "^7.4.
|
|
75
|
-
"@graphql-codegen/typescript": "^6.1.
|
|
76
|
-
"@graphql-codegen/typescript-operations": "^6.1.
|
|
72
|
+
"@aws-sdk/client-s3": "3.1146.0",
|
|
73
|
+
"@graphql-codegen/cli": "^7.4.4",
|
|
74
|
+
"@graphql-codegen/typescript": "^6.1.1",
|
|
75
|
+
"@graphql-codegen/typescript-operations": "^6.1.10",
|
|
77
76
|
"@octokit/core": "7.0.8",
|
|
78
77
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
79
78
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
80
79
|
"@rollup/plugin-replace": "^6.0.3",
|
|
81
80
|
"@rollup/plugin-terser": "^1.0.0",
|
|
82
|
-
"@storybook/addon-a11y": "^10.6.
|
|
83
|
-
"@storybook/addon-docs": "^10.6.
|
|
84
|
-
"@storybook/addon-links": "^10.6.
|
|
85
|
-
"@storybook/react-vite": "^10.6.
|
|
81
|
+
"@storybook/addon-a11y": "^10.6.1",
|
|
82
|
+
"@storybook/addon-docs": "^10.6.1",
|
|
83
|
+
"@storybook/addon-links": "^10.6.1",
|
|
84
|
+
"@storybook/react-vite": "^10.6.1",
|
|
86
85
|
"@testing-library/dom": "^10.4.2",
|
|
87
86
|
"@testing-library/react": "^16.3.3",
|
|
88
87
|
"@types/draft-js": "^0.11.20",
|
|
89
88
|
"@types/googletag": "^3.3.0",
|
|
90
|
-
"@types/jsdom": "^
|
|
91
|
-
"@types/node": "^26.6.
|
|
89
|
+
"@types/jsdom": "^30.0.0",
|
|
90
|
+
"@types/node": "^26.6.4",
|
|
92
91
|
"@types/poool-access": "^5.18.1",
|
|
93
92
|
"@types/poool-engage": "^2.3.0",
|
|
94
93
|
"@types/react": "^18.3.13",
|
|
@@ -96,26 +95,26 @@
|
|
|
96
95
|
"@typescript/typescript6": "^6.0.2",
|
|
97
96
|
"@vitejs/plugin-react": "^5.1.4",
|
|
98
97
|
"@vitest/coverage-v8": "4.0.18",
|
|
99
|
-
"dotenv": "^18.0.
|
|
98
|
+
"dotenv": "^18.0.5",
|
|
100
99
|
"esbuild": "^0.28.2",
|
|
101
|
-
"globals": "^17.
|
|
100
|
+
"globals": "^17.13.0",
|
|
102
101
|
"graphql": "^16.14.2",
|
|
103
102
|
"husky": "^9.1.7",
|
|
104
103
|
"jest-worker": "^30.5.1",
|
|
105
|
-
"jsdom": "^
|
|
104
|
+
"jsdom": "^30.1.2",
|
|
106
105
|
"mockdate": "^3.0.5",
|
|
107
|
-
"postcss": "^8.5.
|
|
106
|
+
"postcss": "^8.5.29",
|
|
108
107
|
"purgecss": "^8.0.0",
|
|
109
108
|
"purgecss-from-html": "^8.0.0",
|
|
110
|
-
"rollup": "^4.
|
|
109
|
+
"rollup": "^4.64.0",
|
|
111
110
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
112
111
|
"rollup-plugin-visualizer": "^7.1.1",
|
|
113
|
-
"schema-dts": "^2.
|
|
114
|
-
"storybook": "^10.6.
|
|
112
|
+
"schema-dts": "^2.1.0",
|
|
113
|
+
"storybook": "^10.6.1",
|
|
115
114
|
"tsx": "^4.23.15",
|
|
116
|
-
"typed-query-selector": "^2.12.
|
|
115
|
+
"typed-query-selector": "^2.12.3",
|
|
117
116
|
"typescript": "^7.0.2",
|
|
118
|
-
"unplugin-dts": "^1.1.
|
|
117
|
+
"unplugin-dts": "^1.1.2",
|
|
119
118
|
"vite": "^7.3.1",
|
|
120
119
|
"vite-tsconfig-paths": "^6.1.1",
|
|
121
120
|
"vitest": "4.0.18"
|