@times-components/ssr 2.63.22-f5a8e735333bca27c106b3fd5323c919c5b1801e.27 → 2.64.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@times-components/ssr",
3
3
  "main": "src",
4
- "version": "2.63.22-f5a8e735333bca27c106b3fd5323c919c5b1801e.27+f5a8e73533",
4
+ "version": "2.64.0",
5
5
  "scripts": {
6
6
  "bundle:dev": "yarn cleanup-dist && webpack --config=webpack.config.js",
7
7
  "bundle:prod": "yarn cleanup-dist && NODE_ENV=production webpack --config=webpack.config.js -p",
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "homepage": "https://github.com/newsuk/times-components#readme",
37
37
  "devDependencies": {
38
- "@times-components/eslint-config-thetimes": "^0.8.18",
39
- "@times-components/fixture-generator": "^0.36.0",
40
- "@times-components/mock-tpa-server": "^0.4.18",
38
+ "@times-components/eslint-config-thetimes": "0.8.18",
39
+ "@times-components/fixture-generator": "0.36.0",
40
+ "@times-components/mock-tpa-server": "0.4.18",
41
41
  "axe-core": "3.3.1",
42
42
  "cypress-axe": "0.13.0",
43
43
  "cypress-failed-log": "2.5.1",
@@ -52,14 +52,14 @@
52
52
  "webpack": "4.30.0"
53
53
  },
54
54
  "dependencies": {
55
- "@times-components/article": "^7.19.50-f5a8e735333bca27c106b3fd5323c919c5b1801e.27+f5a8e73533",
56
- "@times-components/author-profile": "^6.22.6-f5a8e735333bca27c106b3fd5323c919c5b1801e.27+f5a8e73533",
57
- "@times-components/context": "^1.26.1",
58
- "@times-components/provider": "^1.48.5",
59
- "@times-components/schema": "^0.7.5",
60
- "@times-components/tealium": "^1.15.3",
61
- "@times-components/ts-styleguide": "^1.56.6",
62
- "@times-components/utils": "^6.34.0",
55
+ "@times-components/article": "7.20.0",
56
+ "@times-components/author-profile": "6.22.6",
57
+ "@times-components/context": "1.27.0",
58
+ "@times-components/provider": "1.48.6",
59
+ "@times-components/schema": "0.7.5",
60
+ "@times-components/tealium": "1.15.3",
61
+ "@times-components/ts-styleguide": "1.56.7",
62
+ "@times-components/utils": "6.34.0",
63
63
  "apollo-cache-inmemory": "1.5.1",
64
64
  "apollo-client": "2.5.1",
65
65
  "apollo-link": "1.2.4",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "f5a8e735333bca27c106b3fd5323c919c5b1801e"
82
+ "gitHead": "a2ec49e3aa6074eba47a2b7374fb3ce417983571"
83
83
  }
@@ -3,6 +3,7 @@
3
3
  const React = require("react");
4
4
  const { ApolloProvider } = require("react-apollo");
5
5
  const { HelmetProvider } = require("react-helmet-async");
6
+ const { getSectionNameForAnalytics } = require("@times-components/utils/rnw");
6
7
  const { getSectionFromTiles } = require("@times-components/utils/rnw");
7
8
  const { ArticleProvider } = require("@times-components/provider/rnw");
8
9
  const { DraftArticleProvider } = require("@times-components/provider/rnw");
@@ -79,7 +80,7 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
79
80
  article: {
80
81
  ...article,
81
82
  section: article
82
- ? articleDataFromRender.commercialSection
83
+ ? getSectionNameForAnalytics(article)
83
84
  : "unknown section",
84
85
  isPreview
85
86
  },
@@ -94,7 +95,6 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
94
95
  commentingConfig,
95
96
  articleDataFromRender,
96
97
  paidContentClassName,
97
- isPreview,
98
98
  swgProductId,
99
99
  getFallbackThumbnailUrl169,
100
100
  zephrDivs,