@financial-times/dotcom-ui-shell 8.2.2 → 8.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node/components/DocumentHead.js +1 -1
- package/dist/node/components/GTMBody.d.ts +0 -1
- package/dist/node/components/GTMHead.d.ts +0 -1
- package/dist/node/components/LinkedData.d.ts +0 -1
- package/dist/node/components/OpenGraph.d.ts +0 -1
- package/dist/node/components/ResourceHints.d.ts +0 -1
- package/dist/node/components/Shell.d.ts +0 -1
- package/dist/node/components/Shell.js +1 -1
- package/dist/node/components/StyleSheets.d.ts +0 -1
- package/dist/node/index.js +1 -1
- package/dist/tsconfig.tsbuildinfo +788 -82
- package/package.json +6 -6
- package/src/__test__/components/__snapshots__/DocumentHead.test.tsx.snap +1 -1
- package/src/__test__/components/__snapshots__/Shell.test.tsx.snap +7 -7
- package/src/components/DocumentHead.tsx +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@financial-times/dotcom-ui-shell",
|
3
|
-
"version": "8.2.
|
3
|
+
"version": "8.2.3",
|
4
4
|
"description": "",
|
5
5
|
"main": "component.js",
|
6
6
|
"browser": "browser.js",
|
@@ -20,11 +20,11 @@
|
|
20
20
|
"author": "",
|
21
21
|
"license": "MIT",
|
22
22
|
"dependencies": {
|
23
|
-
"@financial-times/dotcom-ui-app-context": "^8.2.
|
24
|
-
"@financial-times/dotcom-ui-base-styles": "^8.2.
|
25
|
-
"@financial-times/dotcom-ui-bootstrap": "^8.2.
|
26
|
-
"@financial-times/dotcom-ui-flags": "^8.2.
|
27
|
-
"@financial-times/dotcom-ui-polyfill-service": "^8.2.
|
23
|
+
"@financial-times/dotcom-ui-app-context": "^8.2.3",
|
24
|
+
"@financial-times/dotcom-ui-base-styles": "^8.2.3",
|
25
|
+
"@financial-times/dotcom-ui-bootstrap": "^8.2.3",
|
26
|
+
"@financial-times/dotcom-ui-flags": "^8.2.3",
|
27
|
+
"@financial-times/dotcom-ui-polyfill-service": "^8.2.3",
|
28
28
|
"mime-types": "^2.1.26"
|
29
29
|
},
|
30
30
|
"peerDependencies": {
|
@@ -26,7 +26,7 @@ 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
31
|
<meta
|
32
32
|
content="index,follow,max-snippet:200,max-image-preview:large"
|
@@ -264,13 +264,13 @@ exports[`dotcom-ui-shell/src/components/Shell renders the GTM script when the en
|
|
264
264
|
dangerouslySetInnerHTML={
|
265
265
|
Object {
|
266
266
|
"__html": "(function loadCustomFonts() {
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
}
|
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], '');
|
273
272
|
}
|
273
|
+
}
|
274
274
|
}());",
|
275
275
|
}
|
276
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
|
|