@times-components/ssr 2.59.35-alpha.9 → 2.59.36-alpha.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.59.35-alpha.9+4059a6de50",
4
+ "version": "2.59.36-alpha.10+0027742a05",
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,7 +52,7 @@
52
52
  "webpack": "4.30.0"
53
53
  },
54
54
  "dependencies": {
55
- "@times-components/article": "^7.17.54-alpha.9+4059a6de50",
55
+ "@times-components/article": "^7.17.54",
56
56
  "@times-components/author-profile": "^6.19.19",
57
57
  "@times-components/context": "^1.24.0",
58
58
  "@times-components/provider": "^1.41.5",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "4059a6de50d0492eb2e32cda353f20b9ba5b6613"
82
+ "gitHead": "0027742a051e484e066d705cf6c21afc4c011fe4"
83
83
  }
@@ -20,7 +20,7 @@ if (window.nuk && window.nuk.ssr && window.nuk.article) {
20
20
  commentingFlag = true,
21
21
  showAudioPlayer,
22
22
  storefrontConfig,
23
- hasCommentingEntitlement
23
+ isEntitlementFeatureEnabled
24
24
  } = window.nuk.article;
25
25
 
26
26
  const { getCookieValue } = window.nuk;
@@ -43,7 +43,7 @@ if (window.nuk && window.nuk.ssr && window.nuk.article) {
43
43
  commentingFlag,
44
44
  showAudioPlayer,
45
45
  storefrontConfig,
46
- hasCommentingEntitlement
46
+ isEntitlementFeatureEnabled
47
47
  };
48
48
 
49
49
  const clientOptions = {
@@ -37,9 +37,12 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
37
37
  commentingFlag,
38
38
  showAudioPlayer,
39
39
  storefrontConfig,
40
- hasCommentingEntitlement
40
+ isEntitlementFeatureEnabled
41
41
  } = data;
42
42
 
43
+ // eslint-disable-next-line no-console
44
+ console.log("[SSR Article] Data: ", data);
45
+
43
46
  return React.createElement(
44
47
  HelmetProvider,
45
48
  { context: helmetContext },
@@ -60,6 +63,9 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
60
63
  : providerData.article;
61
64
  const articleTemplate = article ? article.template : null;
62
65
 
66
+ // eslint-disable-next-line no-console
67
+ console.log("Provider data: ", article);
68
+
63
69
  return React.createElement(
64
70
  ContextProviderWithDefaults,
65
71
  {
@@ -87,7 +93,7 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
87
93
  isSavingEnabled: sharingSavingFlag,
88
94
  isSharingEnabled: sharingSavingFlag,
89
95
  isCommentEnabled: commentingFlag,
90
- hasCommentingEntitlement,
96
+ isEntitlementFeatureEnabled,
91
97
  isPreview
92
98
  },
93
99
  error,
@@ -29,7 +29,7 @@ module.exports = (
29
29
  commentingFlag = true,
30
30
  showAudioPlayer,
31
31
  storefrontConfig,
32
- hasCommentingEntitlement = false
32
+ isEntitlementFeatureEnabled = false
33
33
  },
34
34
  userState
35
35
  ) => {
@@ -86,7 +86,7 @@ module.exports = (
86
86
  commentingFlag,
87
87
  showAudioPlayer,
88
88
  storefrontConfig,
89
- hasCommentingEntitlement
89
+ isEntitlementFeatureEnabled
90
90
  },
91
91
  name: "article"
92
92
  };