@financial-times/dotcom-ui-shell 8.2.5 → 8.2.6

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.
@@ -1,23 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
22
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
23
4
  };
@@ -35,17 +16,15 @@ const dotcom_ui_app_context_1 = require("@financial-times/dotcom-ui-app-context"
35
16
  const dotcom_ui_base_styles_1 = require("@financial-times/dotcom-ui-base-styles");
36
17
  const dotcom_ui_flags_1 = require("@financial-times/dotcom-ui-flags");
37
18
  const dotcom_ui_bootstrap_1 = require("@financial-times/dotcom-ui-bootstrap");
38
- const polyfillService = __importStar(require("@financial-times/dotcom-ui-polyfill-service"));
39
19
  const formatAttributeNames_1 = __importDefault(require("../lib/formatAttributeNames"));
40
20
  const GTMHead_1 = __importDefault(require("./GTMHead"));
41
21
  const GTMBody_1 = __importDefault(require("./GTMBody"));
42
22
  function Shell(props) {
43
23
  const bootstrapProps = {
44
- coreScripts: [polyfillService.core()],
45
- enhancedScripts: [polyfillService.enhanced(), ...props.scripts]
24
+ coreScripts: [],
25
+ enhancedScripts: props.scripts
46
26
  };
47
27
  const resourceHints = [
48
- polyfillService.enhanced(),
49
28
  // There is no need to include stylesheets here as any <link rel="stylesheet" /> tags
50
29
  // should be found by the browser's speculative parser.
51
30
  ...props.scripts,
@@ -328,14 +328,6 @@
328
328
  "version": "3873d0d18e82b885f259eac11ea3848de7228b97442482e1c6e9a6adc5fa2fe5",
329
329
  "affectsGlobalScope": false
330
330
  },
331
- "../../dotcom-ui-polyfill-service/src/polyfillServiceURLs.ts": {
332
- "version": "5f0bdfb340a833649397912f8ec8eb65e6130540fdad3dc277b3dcd59ac57eef",
333
- "affectsGlobalScope": false
334
- },
335
- "../../dotcom-ui-polyfill-service/src/index.ts": {
336
- "version": "f9509ec75466f9aa60347418e2f12030e2105fc273adf3cdf33d2dd9b8362312",
337
- "affectsGlobalScope": false
338
- },
339
331
  "../src/lib/formatAttributeNames.ts": {
340
332
  "version": "1ad9aaa96fe6913d1c730506a86768952ba35f36bb355c1d1e5e84db4834931e",
341
333
  "signature": "f2663ca808749cbaca4d62c46468429c18a679b616f8b15ff6d49021214985d7",
@@ -352,7 +344,7 @@
352
344
  "affectsGlobalScope": false
353
345
  },
354
346
  "../src/components/Shell.tsx": {
355
- "version": "9c5a12a85f2155793a9dfcd4fa88764d62dc204f6df9820100ac93d7f7c47c5e",
347
+ "version": "76917de5eed240f62f23a1a8df609130f47b530c8efc65ab52bc6fbe67e9f289",
356
348
  "signature": "8503067605939e17910e71f5f7452861b833f65b1feb9443045f996f0b4f962e",
357
349
  "affectsGlobalScope": false
358
350
  },
@@ -2009,12 +2001,6 @@
2009
2001
  "../../dotcom-ui-flags/src/server/index.ts": [
2010
2002
  "../../dotcom-ui-flags/src/server/formatFlagsJSON.ts"
2011
2003
  ],
2012
- "../../dotcom-ui-polyfill-service/src/index.ts": [
2013
- "../../dotcom-ui-polyfill-service/src/polyfillServiceURLs.ts"
2014
- ],
2015
- "../../dotcom-ui-polyfill-service/src/polyfillServiceURLs.ts": [
2016
- "../../../node_modules/@types/node/querystring.d.ts"
2017
- ],
2018
2004
  "../src/components/Content.tsx": [
2019
2005
  "../../../node_modules/@types/react/index.d.ts"
2020
2006
  ],
@@ -2049,7 +2035,6 @@
2049
2035
  "../../dotcom-ui-base-styles/src/index.ts",
2050
2036
  "../../dotcom-ui-bootstrap/src/index.ts",
2051
2037
  "../../dotcom-ui-flags/src/index.ts",
2052
- "../../dotcom-ui-polyfill-service/src/index.ts",
2053
2038
  "../src/components/Content.tsx",
2054
2039
  "../src/components/DocumentHead.tsx",
2055
2040
  "../src/components/GTMBody.tsx",
@@ -3053,8 +3038,6 @@
3053
3038
  "../../dotcom-ui-flags/src/server/formatFlagsJSON.ts",
3054
3039
  "../../dotcom-ui-flags/src/server/index.ts",
3055
3040
  "../../dotcom-ui-flags/src/types.d.ts",
3056
- "../../dotcom-ui-polyfill-service/src/index.ts",
3057
- "../../dotcom-ui-polyfill-service/src/polyfillServiceURLs.ts",
3058
3041
  "../src/components/Content.tsx",
3059
3042
  "../src/components/DocumentHead.tsx",
3060
3043
  "../src/components/GTMBody.tsx",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-ui-shell",
3
- "version": "8.2.5",
3
+ "version": "8.2.6",
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.5",
24
- "@financial-times/dotcom-ui-base-styles": "^8.2.5",
25
- "@financial-times/dotcom-ui-bootstrap": "^8.2.5",
26
- "@financial-times/dotcom-ui-flags": "^8.2.5",
27
- "@financial-times/dotcom-ui-polyfill-service": "^8.2.5",
23
+ "@financial-times/dotcom-ui-app-context": "^8.2.6",
24
+ "@financial-times/dotcom-ui-base-styles": "^8.2.6",
25
+ "@financial-times/dotcom-ui-bootstrap": "^8.2.6",
26
+ "@financial-times/dotcom-ui-flags": "^8.2.6",
27
+ "@financial-times/dotcom-ui-polyfill-service": "^8.2.6",
28
28
  "mime-types": "^2.1.26"
29
29
  },
30
30
  "peerDependencies": {
@@ -99,12 +99,6 @@ exports[`dotcom-ui-shell/src/components/Shell renders the GTM script when the en
99
99
  href="https://securepubads.g.doubleclick.net"
100
100
  rel="preconnect"
101
101
  />
102
- <link
103
- as="script"
104
- href="https://polyfill.io/v3/polyfill.min.js?features=default%2Ces5%2Ces2015%2Ces2016%2Ces2017%2CEventSource%2Cfetch%2CHTMLPictureElement%2CIntersectionObserver%2CNodeList.prototype.forEach&source=next"
105
- rel="preload"
106
- type={null}
107
- />
108
102
  <link
109
103
  as="font"
110
104
  crossOrigin="anonymous"
@@ -145,7 +139,7 @@ exports[`dotcom-ui-shell/src/components/Shell renders the GTM script when the en
145
139
  <script
146
140
  dangerouslySetInnerHTML={
147
141
  Object {
148
- "__html": "{\\"trackErrors\\":true,\\"core\\":[\\"https://polyfill.io/v3/polyfill.min.js?features=HTMLPictureElement&source=next\\"],\\"enhanced\\":[\\"https://polyfill.io/v3/polyfill.min.js?features=default%2Ces5%2Ces2015%2Ces2016%2Ces2017%2CEventSource%2Cfetch%2CHTMLPictureElement%2CIntersectionObserver%2CNodeList.prototype.forEach&source=next\\"]}",
142
+ "__html": "{\\"trackErrors\\":true,\\"core\\":[],\\"enhanced\\":[]}",
149
143
  }
150
144
  }
151
145
  id="page-kit-bootstrap-config"
@@ -12,7 +12,6 @@ import {
12
12
  } from '@financial-times/dotcom-ui-base-styles'
13
13
  import { FlagsEmbed, TFlagsEmbedProps } from '@financial-times/dotcom-ui-flags'
14
14
  import { Bootstrap, TBootstrapProps } from '@financial-times/dotcom-ui-bootstrap'
15
- import * as polyfillService from '@financial-times/dotcom-ui-polyfill-service'
16
15
  import formatAttributeNames, { TAttributeData } from '../lib/formatAttributeNames'
17
16
  import GTMHead from './GTMHead'
18
17
  import GTMBody from './GTMBody'
@@ -32,12 +31,11 @@ type TShellProps = TDocumentHeadProps &
32
31
 
33
32
  function Shell(props: TShellProps) {
34
33
  const bootstrapProps: TBootstrapProps = {
35
- coreScripts: [polyfillService.core()],
36
- enhancedScripts: [polyfillService.enhanced(), ...props.scripts]
34
+ coreScripts: [],
35
+ enhancedScripts: props.scripts
37
36
  }
38
37
 
39
38
  const resourceHints = [
40
- polyfillService.enhanced(),
41
39
  // There is no need to include stylesheets here as any <link rel="stylesheet" /> tags
42
40
  // should be found by the browser's speculative parser.
43
41
  ...props.scripts,