@financial-times/dotcom-ui-shell 9.0.0-beta.8 → 9.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node/components/Content.d.ts +1 -1
- package/dist/node/components/DocumentHead.d.ts +1 -2
- package/dist/node/components/DocumentHead.js +1 -2
- package/dist/node/components/GTMBody.d.ts +2 -2
- package/dist/node/components/GTMHead.d.ts +2 -2
- package/dist/node/components/LinkedData.d.ts +2 -2
- package/dist/node/components/OpenGraph.d.ts +2 -2
- package/dist/node/components/ResourceHints.d.ts +2 -2
- package/dist/node/components/Shell.d.ts +2 -2
- package/dist/node/components/Shell.js +1 -1
- package/dist/node/components/StyleSheets.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1405 -562
- package/package.json +9 -9
- package/src/__test__/components/__snapshots__/DocumentHead.test.tsx.snap +1 -1
- package/src/__test__/components/__snapshots__/Shell.test.tsx.snap +7 -11
- package/src/components/DocumentHead.tsx +2 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@financial-times/dotcom-ui-shell",
|
3
|
-
"version": "9.0.
|
3
|
+
"version": "9.0.1",
|
4
4
|
"description": "",
|
5
5
|
"main": "component.js",
|
6
6
|
"browser": "browser.js",
|
@@ -20,15 +20,16 @@
|
|
20
20
|
"author": "",
|
21
21
|
"license": "MIT",
|
22
22
|
"dependencies": {
|
23
|
-
"@financial-times/dotcom-ui-app-context": "^9.0.
|
24
|
-
"@financial-times/dotcom-ui-base-styles": "^9.0.
|
25
|
-
"@financial-times/dotcom-ui-bootstrap": "^9.0.
|
26
|
-
"@financial-times/dotcom-ui-flags": "^9.0.
|
27
|
-
"@financial-times/dotcom-ui-polyfill-service": "^9.0.
|
23
|
+
"@financial-times/dotcom-ui-app-context": "^9.0.1",
|
24
|
+
"@financial-times/dotcom-ui-base-styles": "^9.0.1",
|
25
|
+
"@financial-times/dotcom-ui-bootstrap": "^9.0.1",
|
26
|
+
"@financial-times/dotcom-ui-flags": "^9.0.1",
|
27
|
+
"@financial-times/dotcom-ui-polyfill-service": "^9.0.1",
|
28
28
|
"mime-types": "^2.1.26"
|
29
29
|
},
|
30
30
|
"peerDependencies": {
|
31
|
-
"react": "
|
31
|
+
"react": "17.x || 18.x",
|
32
|
+
"react-dom": "17.x || 18.x"
|
32
33
|
},
|
33
34
|
"engines": {
|
34
35
|
"node": "16.x || 18.x",
|
@@ -51,7 +52,6 @@
|
|
51
52
|
"extends": "../../package.json"
|
52
53
|
},
|
53
54
|
"devDependencies": {
|
54
|
-
"check-engine": "^1.10.1"
|
55
|
-
"react": "^16.8.6"
|
55
|
+
"check-engine": "^1.10.1"
|
56
56
|
}
|
57
57
|
}
|
@@ -26,12 +26,8 @@ exports[`dotcom-ui-shell/src/components/Shell renders the GTM script when the en
|
|
26
26
|
name="viewport"
|
27
27
|
/>
|
28
28
|
<title>
|
29
|
-
Foo
|
29
|
+
Foo
|
30
30
|
</title>
|
31
|
-
<meta
|
32
|
-
content="News, analysis and comment from the Financial Times, the worldʼs leading global business publication"
|
33
|
-
name="description"
|
34
|
-
/>
|
35
31
|
<meta
|
36
32
|
content="index,follow,max-snippet:200,max-image-preview:large"
|
37
33
|
name="robots"
|
@@ -268,13 +264,13 @@ exports[`dotcom-ui-shell/src/components/Shell renders the GTM script when the en
|
|
268
264
|
dangerouslySetInnerHTML={
|
269
265
|
Object {
|
270
266
|
"__html": "(function loadCustomFonts() {
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
}
|
267
|
+
var rootElement = document.documentElement;
|
268
|
+
if (/(^|\\\\s)o-typography-fonts-loaded=1(;|$)/.test(document.cookie)) {
|
269
|
+
var fontLabels = ['sans', 'sans-bold', 'display', 'display-bold'];
|
270
|
+
for (var i = 0; i < fontLabels.length; i++) {
|
271
|
+
rootElement.className = rootElement.className.replace('o-typography--loading-' + fontLabels[i], '');
|
277
272
|
}
|
273
|
+
}
|
278
274
|
}());",
|
279
275
|
}
|
280
276
|
}
|
@@ -25,7 +25,7 @@ const DocumentHead = (props: TDocumentHeadProps) => (
|
|
25
25
|
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
|
26
26
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
27
27
|
|
28
|
-
<title>{props.pageTitle ? `${props.pageTitle}
|
28
|
+
<title>{props.pageTitle ? `${props.pageTitle}` : props.siteTitle}</title>
|
29
29
|
|
30
30
|
{props.description && <meta name="description" content={props.description} />}
|
31
31
|
|
@@ -45,7 +45,7 @@ const DocumentHead = (props: TDocumentHeadProps) => (
|
|
45
45
|
<OpenGraph openGraph={props.openGraph} />
|
46
46
|
|
47
47
|
{/* native apps */}
|
48
|
-
{props.showSmartBanner &&
|
48
|
+
{props.showSmartBanner &&
|
49
49
|
(
|
50
50
|
<meta
|
51
51
|
name="apple-itunes-app"
|
@@ -86,8 +86,6 @@ const DocumentHead = (props: TDocumentHeadProps) => (
|
|
86
86
|
)
|
87
87
|
|
88
88
|
DocumentHead.defaultProps = {
|
89
|
-
description:
|
90
|
-
'News, analysis and comment from the Financial Times, the worldʼs leading global business publication',
|
91
89
|
facebookPage: '8860325749',
|
92
90
|
googleSiteVerification: '4-t8sFaPvpO5FH_Gnw1dkM28CQepjzo8UjjAkdDflTw',
|
93
91
|
metaTags: [],
|