@financial-times/dotcom-ui-shell 9.0.0-beta.9 → 9.0.2

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-ui-shell",
3
- "version": "9.0.0-beta.9",
3
+ "version": "9.0.2",
4
4
  "description": "",
5
5
  "main": "component.js",
6
6
  "browser": "browser.js",
7
- "types": "src/index.ts",
7
+ "types": "dist/node/index.d.ts",
8
8
  "scripts": {
9
9
  "test": "echo \"Error: no test specified\" && exit 1",
10
10
  "clean": "npm run clean:dist && npm run clean:node_modules",
@@ -20,15 +20,16 @@
20
20
  "author": "",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@financial-times/dotcom-ui-app-context": "^9.0.0-beta.9",
24
- "@financial-times/dotcom-ui-base-styles": "^9.0.0-beta.9",
25
- "@financial-times/dotcom-ui-bootstrap": "^9.0.0-beta.9",
26
- "@financial-times/dotcom-ui-flags": "^9.0.0-beta.9",
27
- "@financial-times/dotcom-ui-polyfill-service": "^9.0.0-beta.9",
23
+ "@financial-times/dotcom-ui-app-context": "^9.0.2",
24
+ "@financial-times/dotcom-ui-base-styles": "^9.0.2",
25
+ "@financial-times/dotcom-ui-bootstrap": "^9.0.2",
26
+ "@financial-times/dotcom-ui-flags": "^9.0.2",
27
+ "@financial-times/dotcom-ui-polyfill-service": "^9.0.2",
28
28
  "mime-types": "^2.1.26"
29
29
  },
30
30
  "peerDependencies": {
31
- "react": "16.x || 17.x"
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
  }
@@ -14,7 +14,7 @@ Array [
14
14
  name="viewport"
15
15
  />,
16
16
  <title>
17
- Page title | Website title
17
+ Page title
18
18
  </title>,
19
19
  <meta
20
20
  content="Website description."
@@ -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 | Financial Times
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
- var rootElement = document.documentElement;
272
- if (/(^|\\\\s)o-typography-fonts-loaded=1(;|$)/.test(document.cookie)) {
273
- var fontLabels = ['sans', 'sans-bold', 'display', 'display-bold'];
274
- for (var i = 0; i < fontLabels.length; i++) {
275
- rootElement.className = rootElement.className.replace('o-typography--loading-' + fontLabels[i], '');
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} | ${props.siteTitle}` : props.siteTitle}</title>
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: [],