@times-components/ssr 2.43.0 → 2.43.2

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.43.0",
4
+ "version": "2.43.2",
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,15 +52,15 @@
52
52
  "webpack": "4.30.0"
53
53
  },
54
54
  "dependencies": {
55
- "@times-components/article": "7.13.55",
56
- "@times-components/author-profile": "6.13.1",
57
- "@times-components/context": "1.10.16",
55
+ "@times-components/article": "7.13.57",
56
+ "@times-components/author-profile": "6.13.2",
57
+ "@times-components/context": "1.10.17",
58
58
  "@times-components/provider": "1.35.0",
59
59
  "@times-components/schema": "0.7.3",
60
60
  "@times-components/tealium": "1.15.1",
61
- "@times-components/topic": "5.9.9",
62
- "@times-components/ts-styleguide": "1.40.1",
63
- "@times-components/utils": "6.15.17",
61
+ "@times-components/topic": "5.9.10",
62
+ "@times-components/ts-styleguide": "1.40.2",
63
+ "@times-components/utils": "6.15.18",
64
64
  "apollo-cache-inmemory": "1.5.1",
65
65
  "apollo-client": "2.5.1",
66
66
  "apollo-link": "1.2.4",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "7ee5d8e5fbedb7f560d4c795752db24cd4818453"
82
+ "gitHead": "0878cc4028084fd56a9c182d32ff74d147fb2358"
83
83
  }
@@ -15,7 +15,9 @@ if (window.nuk && window.nuk.ssr && window.nuk.article) {
15
15
  isPreview,
16
16
  swgProductId,
17
17
  commentCount,
18
- zephrDivs
18
+ zephrDivs,
19
+ sharingSavingFlag = true,
20
+ commentingFlag = true
19
21
  } = window.nuk.article;
20
22
  const { getCookieValue } = window.nuk;
21
23
 
@@ -32,7 +34,9 @@ if (window.nuk && window.nuk.ssr && window.nuk.article) {
32
34
  isPreview,
33
35
  swgProductId,
34
36
  commentCount,
35
- zephrDivs
37
+ zephrDivs,
38
+ sharingSavingFlag,
39
+ commentingFlag
36
40
  };
37
41
 
38
42
  const clientOptions = {
@@ -31,7 +31,9 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
31
31
  isPreview,
32
32
  swgProductId,
33
33
  getFallbackThumbnailUrl169,
34
- zephrDivs
34
+ zephrDivs,
35
+ sharingSavingFlag,
36
+ commentingFlag
35
37
  } = data;
36
38
 
37
39
  return React.createElement(
@@ -77,7 +79,10 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
77
79
  ...article,
78
80
  section: article
79
81
  ? getSectionNameForAnalytics(article)
80
- : "unknown section"
82
+ : "unknown section",
83
+ isSavingEnabled: sharingSavingFlag,
84
+ isSharingEnabled: sharingSavingFlag,
85
+ isCommentEnabled: commentingFlag
81
86
  },
82
87
  error,
83
88
  isLoading,
@@ -23,7 +23,9 @@ module.exports = (
23
23
  swgProductId,
24
24
  getFallbackThumbnailUrl169,
25
25
  commentCount,
26
- zephrDivs
26
+ zephrDivs,
27
+ sharingSavingFlag = true,
28
+ commentingFlag = true
27
29
  },
28
30
  userState
29
31
  ) => {
@@ -74,7 +76,9 @@ module.exports = (
74
76
  isPreview,
75
77
  swgProductId,
76
78
  commentCount,
77
- zephrDivs
79
+ zephrDivs,
80
+ sharingSavingFlag,
81
+ commentingFlag
78
82
  },
79
83
  name: "article"
80
84
  };