@times-components/ssr 2.64.2-0b9a86337037dde5403cd10e4857c5a30e8cd6af.5 → 2.64.2-26a834cb0944a7221dc8b2f7581bf2458983b920.10

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-0b9a86337037dde5403cd10e4857c5a30e8cd6af.5+0b9a863370",
4
+ "version": "2.64.2-26a834cb0944a7221dc8b2f7581bf2458983b920.10+26a834cb09",
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-0b9a86337037dde5403cd10e4857c5a30e8cd6af.5+0b9a863370",
56
- "@times-components/author-profile": "^6.22.8-0b9a86337037dde5403cd10e4857c5a30e8cd6af.5+0b9a863370",
55
+ "@times-components/article": "^7.20.2-26a834cb0944a7221dc8b2f7581bf2458983b920.10+26a834cb09",
56
+ "@times-components/author-profile": "^6.22.7",
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": "0b9a86337037dde5403cd10e4857c5a30e8cd6af"
82
+ "gitHead": "26a834cb0944a7221dc8b2f7581bf2458983b920"
83
83
  }
@@ -1,5 +1,7 @@
1
1
  /* eslint-disable import/no-unresolved */
2
2
 
3
+ import { createPageSectionsHelper } from "../../../article-skeleton/src/data-helper";
4
+
3
5
  const React = require("react");
4
6
  const { ApolloProvider } = require("react-apollo");
5
7
  const { HelmetProvider } = require("react-helmet-async");
@@ -37,6 +39,11 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
37
39
  removeTeaserContent
38
40
  } = data;
39
41
 
42
+ const enhancedArticleData = {
43
+ ...articleDataFromRender,
44
+ pageSections: createPageSectionsHelper(articleDataFromRender)
45
+ };
46
+
40
47
  return React.createElement(
41
48
  HelmetProvider,
42
49
  { context: helmetContext },
@@ -89,7 +96,7 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
89
96
  onTopicPress: () => {},
90
97
  refetch,
91
98
  commentingConfig,
92
- articleDataFromRender,
99
+ articleDataFromRender: enhancedArticleData,
93
100
  paidContentClassName,
94
101
  swgProductId,
95
102
  getFallbackThumbnailUrl169,