@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.
@@ -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
- AuthorProfileProvider,
30
- {
31
- debounceTimeMs,
32
- page,
33
- pageSize,
34
- slug: authorSlug
35
- },
36
- ({ author, isLoading, error, refetch }) =>
37
- React.createElement(
38
- ContextProviderWithDefaults,
39
- { value: { makeArticleUrl, makeTopicUrl } },
40
- React.createElement(AuthorProfile, {
41
- analyticsStream,
42
- author,
43
- error,
44
- isLoading,
45
- onArticlePress: () => {},
46
- onTwitterLinkPress: () => {},
47
- page,
48
- pageSize,
49
- refetch,
50
- slug: authorSlug
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
  );
@@ -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
- TopicProvider,
34
- {
35
- debounceTimeMs,
36
- page,
37
- pageSize,
38
- slug: topicSlug
39
- },
40
- ({ isLoading, error, refetch, topic }) =>
41
- React.createElement(
42
- ContextProviderWithDefaults,
43
- {
44
- value: {
45
- makeArticleUrl,
46
- makeTopicUrl,
47
- theme: { scale, sectionColour }
48
- }
49
- },
50
- React.createElement(Topic, {
51
- analyticsStream,
52
- error,
53
- isLoading,
54
- onArticlePress: () => {},
55
- onTwitterLinkPress: () => {},
56
- page,
57
- pageSize,
58
- refetch,
59
- slug: topicSlug,
60
- topic
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
  );