@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.
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  export declare type TContentProps = {
3
3
  contents?: string | React.ReactNode;
4
4
  };
5
- declare function Content({ contents }: TContentProps): JSX.Element;
5
+ declare function Content({ contents }: TContentProps): React.JSX.Element;
6
6
  export default Content;
@@ -18,9 +18,8 @@ export declare type TDocumentHeadProps = TOpenGraphProps & TLinkedDataProps & {
18
18
  showSmartBanner?: boolean;
19
19
  };
20
20
  declare const DocumentHead: {
21
- (props: TDocumentHeadProps): JSX.Element;
21
+ (props: TDocumentHeadProps): React.JSX.Element;
22
22
  defaultProps: {
23
- description: string;
24
23
  facebookPage: string;
25
24
  googleSiteVerification: string;
26
25
  metaTags: any[];
@@ -11,7 +11,7 @@ const DocumentHead = (props) => (react_1.default.createElement(react_1.default.F
11
11
  react_1.default.createElement("meta", { charSet: "utf-8" }),
12
12
  react_1.default.createElement("meta", { httpEquiv: "X-UA-Compatible", content: "IE=edge" }),
13
13
  react_1.default.createElement("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }),
14
- react_1.default.createElement("title", null, props.pageTitle ? `${props.pageTitle} | ${props.siteTitle}` : props.siteTitle),
14
+ react_1.default.createElement("title", null, props.pageTitle ? `${props.pageTitle}` : props.siteTitle),
15
15
  props.description && react_1.default.createElement("meta", { name: "description", content: props.description }),
16
16
  props.canonicalURL && react_1.default.createElement("link", { rel: "canonical", href: props.canonicalURL }),
17
17
  react_1.default.createElement("meta", { name: "robots", content: props.robots }),
@@ -30,7 +30,6 @@ const DocumentHead = (props) => (react_1.default.createElement(react_1.default.F
30
30
  props.manifestFile ? react_1.default.createElement("link", { rel: "manifest", href: props.manifestFile }) : null,
31
31
  props.additionalMetadata));
32
32
  DocumentHead.defaultProps = {
33
- description: 'News, analysis and comment from the Financial Times, the worldʼs leading global business publication',
34
33
  facebookPage: '8860325749',
35
34
  googleSiteVerification: '4-t8sFaPvpO5FH_Gnw1dkM28CQepjzo8UjjAkdDflTw',
36
35
  metaTags: [],
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TFlagsData } from '@financial-times/dotcom-ui-flags/src/types';
3
3
  declare const GTMBody: {
4
4
  ({ flags }: {
5
5
  flags: TFlagsData;
6
- }): JSX.Element;
6
+ }): React.JSX.Element;
7
7
  defaultProps: {
8
8
  flags: {};
9
9
  };
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TFlagsData } from '@financial-times/dotcom-ui-flags/src/types';
3
3
  declare const GTMHead: {
4
4
  ({ flags }: {
5
5
  flags: TFlagsData;
6
- }): JSX.Element;
6
+ }): React.JSX.Element;
7
7
  defaultProps: {
8
8
  flags: {};
9
9
  };
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TLinkedDataProps = {
3
3
  jsonLd?: {
4
4
  [key: string]: any;
5
5
  };
6
6
  };
7
7
  declare const LinkedData: {
8
- ({ jsonLd }: TLinkedDataProps): JSX.Element;
8
+ ({ jsonLd }: TLinkedDataProps): React.JSX.Element;
9
9
  defaultProps: {
10
10
  jsonLd: any[];
11
11
  };
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TOpenGraphData } from '../lib/flattenOpenGraphData';
3
3
  export declare type TOpenGraphProps = {
4
4
  openGraph?: TOpenGraphData;
5
5
  };
6
6
  declare const OpenGraph: {
7
- ({ openGraph }: TOpenGraphProps): JSX.Element;
7
+ ({ openGraph }: TOpenGraphProps): React.JSX.Element;
8
8
  defaultProps: {
9
9
  openGraph: {};
10
10
  };
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TResourceHintsProps = {
3
3
  resourceHints?: string[];
4
4
  };
5
5
  declare const ResourceHints: {
6
- (props: TResourceHintsProps): JSX.Element;
6
+ (props: TResourceHintsProps): React.JSX.Element;
7
7
  defaultProps: {
8
8
  resourceHints: any[];
9
9
  };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import Content, { TContentProps } from './Content';
3
3
  import DocumentHead, { TDocumentHeadProps } from './DocumentHead';
4
4
  import { TStylesheetProps } from './StyleSheets';
@@ -13,7 +13,7 @@ declare type TShellProps = TDocumentHeadProps & TAppContextProps & TStylesheetPr
13
13
  bodyAttributes?: TAttributeData;
14
14
  htmlAttributes?: TAttributeData;
15
15
  };
16
- declare function Shell(props: TShellProps): JSX.Element;
16
+ declare function Shell(props: TShellProps): React.JSX.Element;
17
17
  declare namespace Shell {
18
18
  var defaultProps: {
19
19
  scripts: any[];
@@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  var __importStar = (this && this.__importStar) || function (mod) {
15
15
  if (mod && mod.__esModule) return mod;
16
16
  var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
18
  __setModuleDefault(result, mod);
19
19
  return result;
20
20
  };
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type TStylesheetProps = {
3
3
  criticalStyles?: string;
4
4
  stylesheets?: string[];
5
5
  asyncStylesheets?: string[];
6
6
  };
7
7
  declare const Stylesheets: {
8
- ({ criticalStyles, stylesheets, asyncStylesheets }: TStylesheetProps): JSX.Element;
8
+ ({ criticalStyles, stylesheets, asyncStylesheets }: TStylesheetProps): React.JSX.Element;
9
9
  defaultProps: {
10
10
  stylesheets: any[];
11
11
  asyncStylesheets: any[];
@@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
7
7
  o[k2] = m[k];
8
8
  }));
9
9
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./components/Shell"), exports);