@times-components/ssr 2.54.12-alpha.18 → 2.54.12-alpha.3
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/CHANGELOG.md +0 -8
- package/dist/4.react.bundle.js +2 -0
- package/dist/4.react.bundle.js.map +1 -0
- package/dist/article.react.bundle.js +4 -4
- package/dist/article.react.bundle.js.map +1 -1
- package/dist/author-profile.react.bundle.js +1 -1
- package/dist/author-profile.react.bundle.js.map +1 -1
- package/dist/common.react.bundle.js +31 -23
- package/dist/common.react.bundle.js.map +1 -1
- package/dist/topic.react.bundle.js +1 -1
- package/dist/topic.react.bundle.js.map +1 -1
- package/package.json +10 -9
- package/src/component/article.js +64 -59
- package/src/component/author-profile.js +29 -24
- package/src/component/topic.js +35 -30
|
@@ -8,6 +8,7 @@ const {
|
|
|
8
8
|
ContextProviderWithDefaults
|
|
9
9
|
} = require("@times-components/context/rnw");
|
|
10
10
|
const AuthorProfile = require("@times-components/author-profile/rnw").default;
|
|
11
|
+
const { TCThemeProvider } = require("@times-components/ts-newskit/rnw");
|
|
11
12
|
|
|
12
13
|
module.exports = (client, analyticsStream, data, helmetContext) => {
|
|
13
14
|
const {
|
|
@@ -26,30 +27,34 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
|
|
|
26
27
|
ApolloProvider,
|
|
27
28
|
{ client },
|
|
28
29
|
React.createElement(
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
React.createElement(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
30
|
+
TCThemeProvider,
|
|
31
|
+
{},
|
|
32
|
+
React.createElement(
|
|
33
|
+
AuthorProfileProvider,
|
|
34
|
+
{
|
|
35
|
+
debounceTimeMs,
|
|
36
|
+
page,
|
|
37
|
+
pageSize,
|
|
38
|
+
slug: authorSlug
|
|
39
|
+
},
|
|
40
|
+
({ author, isLoading, error, refetch }) =>
|
|
41
|
+
React.createElement(
|
|
42
|
+
ContextProviderWithDefaults,
|
|
43
|
+
{ value: { makeArticleUrl, makeTopicUrl } },
|
|
44
|
+
React.createElement(AuthorProfile, {
|
|
45
|
+
analyticsStream,
|
|
46
|
+
author,
|
|
47
|
+
error,
|
|
48
|
+
isLoading,
|
|
49
|
+
onArticlePress: () => {},
|
|
50
|
+
onTwitterLinkPress: () => {},
|
|
51
|
+
page,
|
|
52
|
+
pageSize,
|
|
53
|
+
refetch,
|
|
54
|
+
slug: authorSlug
|
|
55
|
+
})
|
|
56
|
+
)
|
|
57
|
+
)
|
|
53
58
|
)
|
|
54
59
|
)
|
|
55
60
|
);
|
package/src/component/topic.js
CHANGED
|
@@ -9,6 +9,7 @@ const {
|
|
|
9
9
|
} = require("@times-components/context/rnw");
|
|
10
10
|
const { scales } = require("@times-components/ts-styleguide/rnw");
|
|
11
11
|
const Topic = require("@times-components/topic/rnw").default;
|
|
12
|
+
const { TCThemeProvider } = require("@times-components/ts-newskit/rnw");
|
|
12
13
|
|
|
13
14
|
const scale = scales.large;
|
|
14
15
|
const sectionColour = "#FFFFFF";
|
|
@@ -30,36 +31,40 @@ module.exports = (client, analyticsStream, data, helmetContext) => {
|
|
|
30
31
|
ApolloProvider,
|
|
31
32
|
{ client },
|
|
32
33
|
React.createElement(
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
34
|
+
TCThemeProvider,
|
|
35
|
+
{},
|
|
36
|
+
React.createElement(
|
|
37
|
+
TopicProvider,
|
|
38
|
+
{
|
|
39
|
+
debounceTimeMs,
|
|
40
|
+
page,
|
|
41
|
+
pageSize,
|
|
42
|
+
slug: topicSlug
|
|
43
|
+
},
|
|
44
|
+
({ isLoading, error, refetch, topic }) =>
|
|
45
|
+
React.createElement(
|
|
46
|
+
ContextProviderWithDefaults,
|
|
47
|
+
{
|
|
48
|
+
value: {
|
|
49
|
+
makeArticleUrl,
|
|
50
|
+
makeTopicUrl,
|
|
51
|
+
theme: { scale, sectionColour }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
React.createElement(Topic, {
|
|
55
|
+
analyticsStream,
|
|
56
|
+
error,
|
|
57
|
+
isLoading,
|
|
58
|
+
onArticlePress: () => {},
|
|
59
|
+
onTwitterLinkPress: () => {},
|
|
60
|
+
page,
|
|
61
|
+
pageSize,
|
|
62
|
+
refetch,
|
|
63
|
+
slug: topicSlug,
|
|
64
|
+
topic
|
|
65
|
+
})
|
|
66
|
+
)
|
|
67
|
+
)
|
|
63
68
|
)
|
|
64
69
|
)
|
|
65
70
|
);
|