@times-components/ssr 2.64.2-26a834cb0944a7221dc8b2f7581bf2458983b920.10 → 2.64.2-2f999eb4544a71c4c6c338700077c2cbd60cc1a0.1

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.64.2-26a834cb0944a7221dc8b2f7581bf2458983b920.10+26a834cb09",
4
+ "version": "2.64.2-2f999eb4544a71c4c6c338700077c2cbd60cc1a0.1+2f999eb454",
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",
@@ -52,8 +52,8 @@
52
52
  "webpack": "4.30.0"
53
53
  },
54
54
  "dependencies": {
55
- "@times-components/article": "^7.20.2-26a834cb0944a7221dc8b2f7581bf2458983b920.10+26a834cb09",
56
- "@times-components/author-profile": "^6.22.7",
55
+ "@times-components/article": "^7.20.2-2f999eb4544a71c4c6c338700077c2cbd60cc1a0.1+2f999eb454",
56
+ "@times-components/author-profile": "^6.22.8-2f999eb4544a71c4c6c338700077c2cbd60cc1a0.1+2f999eb454",
57
57
  "@times-components/context": "^1.27.0",
58
58
  "@times-components/provider": "^1.48.7",
59
59
  "@times-components/schema": "^0.7.5",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "26a834cb0944a7221dc8b2f7581bf2458983b920"
82
+ "gitHead": "2f999eb4544a71c4c6c338700077c2cbd60cc1a0"
83
83
  }
@@ -1,10 +1,9 @@
1
1
  /* eslint-disable import/no-unresolved */
2
2
 
3
- import { createPageSectionsHelper } from "../../../article-skeleton/src/data-helper";
4
-
5
3
  const React = require("react");
6
4
  const { ApolloProvider } = require("react-apollo");
7
5
  const { HelmetProvider } = require("react-helmet-async");
6
+ const { getSectionNameForAnalytics } = require("@times-components/utils/rnw");
8
7
  const { getSectionFromTiles } = require("@times-components/utils/rnw");
9
8
  const { ArticleProvider } = require("@times-components/provider/rnw");
10
9
  const { DraftArticleProvider } = require("@times-components/provider/rnw");
@@ -39,11 +38,6 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
39
38
  removeTeaserContent
40
39
  } = data;
41
40
 
42
- const enhancedArticleData = {
43
- ...articleDataFromRender,
44
- pageSections: createPageSectionsHelper(articleDataFromRender)
45
- };
46
-
47
41
  return React.createElement(
48
42
  HelmetProvider,
49
43
  { context: helmetContext },
@@ -85,6 +79,9 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
85
79
  analyticsStream,
86
80
  article: {
87
81
  ...article,
82
+ section: article
83
+ ? getSectionNameForAnalytics(article)
84
+ : "unknown section",
88
85
  isPreview
89
86
  },
90
87
  error,
@@ -96,7 +93,7 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
96
93
  onTopicPress: () => {},
97
94
  refetch,
98
95
  commentingConfig,
99
- articleDataFromRender: enhancedArticleData,
96
+ articleDataFromRender,
100
97
  paidContentClassName,
101
98
  swgProductId,
102
99
  getFallbackThumbnailUrl169,