@newskit-render/core 2.39.6 → 2.39.7-alpha.1
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 +8 -0
- package/__tests__/pages/__snapshots__/[articleSlug].test.tsx.snap +21 -18
- package/__tests__/pages/__snapshots__/home.test.tsx.snap +21 -18
- package/__tests__/pages/__snapshots__/relatedArticles.test.tsx.snap +21 -18
- package/components/article/__tests__/__snapshots__/index.test.tsx.snap +21 -18
- package/package.json +5 -5
- package/pages/preview/[articleId]/version/[versionId]/index.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.39.6](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.39.6-alpha.6...@newskit-render/core@2.39.6) (2023-01-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.39.5](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.39.5-alpha.0...@newskit-render/core@2.39.5) (2023-01-20)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -104,27 +104,30 @@ exports[`Recommendation render related article page when data is null page 1`] =
|
|
|
104
104
|
<div
|
|
105
105
|
class="css-1k3e0au"
|
|
106
106
|
>
|
|
107
|
-
<
|
|
108
|
-
aria-hidden="true"
|
|
107
|
+
<button
|
|
109
108
|
aria-label="Mobile Menu Button"
|
|
110
|
-
class="css-
|
|
109
|
+
class="css-b1ufx8"
|
|
111
110
|
data-testid="mobile-menu-btn"
|
|
112
|
-
|
|
113
|
-
focusable="false"
|
|
114
|
-
overrides="[object Object]"
|
|
115
|
-
role="button"
|
|
116
|
-
tabindex="0"
|
|
117
|
-
viewBox="0 0 24 24"
|
|
118
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
111
|
+
type="button"
|
|
119
112
|
>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
113
|
+
<svg
|
|
114
|
+
aria-hidden="true"
|
|
115
|
+
class="css-11lepi0 css-18cthx4-EmotionIconBase ex0cdmw0"
|
|
116
|
+
fill="currentColor"
|
|
117
|
+
focusable="false"
|
|
118
|
+
overrides="[object Object]"
|
|
119
|
+
viewBox="0 0 24 24"
|
|
120
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
121
|
+
>
|
|
122
|
+
<path
|
|
123
|
+
d="M0 0h24v24H0z"
|
|
124
|
+
fill="none"
|
|
125
|
+
/>
|
|
126
|
+
<path
|
|
127
|
+
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
128
|
+
/>
|
|
129
|
+
</svg>
|
|
130
|
+
</button>
|
|
128
131
|
</div>
|
|
129
132
|
</div>
|
|
130
133
|
<div
|
|
@@ -104,27 +104,30 @@ exports[`getServerSideProps Homepage 1`] = `
|
|
|
104
104
|
<div
|
|
105
105
|
class="css-1k3e0au"
|
|
106
106
|
>
|
|
107
|
-
<
|
|
108
|
-
aria-hidden="true"
|
|
107
|
+
<button
|
|
109
108
|
aria-label="Mobile Menu Button"
|
|
110
|
-
class="css-
|
|
109
|
+
class="css-b1ufx8"
|
|
111
110
|
data-testid="mobile-menu-btn"
|
|
112
|
-
|
|
113
|
-
focusable="false"
|
|
114
|
-
overrides="[object Object]"
|
|
115
|
-
role="button"
|
|
116
|
-
tabindex="0"
|
|
117
|
-
viewBox="0 0 24 24"
|
|
118
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
111
|
+
type="button"
|
|
119
112
|
>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
113
|
+
<svg
|
|
114
|
+
aria-hidden="true"
|
|
115
|
+
class="css-11lepi0 css-18cthx4-EmotionIconBase ex0cdmw0"
|
|
116
|
+
fill="currentColor"
|
|
117
|
+
focusable="false"
|
|
118
|
+
overrides="[object Object]"
|
|
119
|
+
viewBox="0 0 24 24"
|
|
120
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
121
|
+
>
|
|
122
|
+
<path
|
|
123
|
+
d="M0 0h24v24H0z"
|
|
124
|
+
fill="none"
|
|
125
|
+
/>
|
|
126
|
+
<path
|
|
127
|
+
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
128
|
+
/>
|
|
129
|
+
</svg>
|
|
130
|
+
</button>
|
|
128
131
|
</div>
|
|
129
132
|
</div>
|
|
130
133
|
<div
|
|
@@ -104,27 +104,30 @@ exports[`Recommendation render related article page when data is null page 1`] =
|
|
|
104
104
|
<div
|
|
105
105
|
class="css-1k3e0au"
|
|
106
106
|
>
|
|
107
|
-
<
|
|
108
|
-
aria-hidden="true"
|
|
107
|
+
<button
|
|
109
108
|
aria-label="Mobile Menu Button"
|
|
110
|
-
class="css-
|
|
109
|
+
class="css-b1ufx8"
|
|
111
110
|
data-testid="mobile-menu-btn"
|
|
112
|
-
|
|
113
|
-
focusable="false"
|
|
114
|
-
overrides="[object Object]"
|
|
115
|
-
role="button"
|
|
116
|
-
tabindex="0"
|
|
117
|
-
viewBox="0 0 24 24"
|
|
118
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
111
|
+
type="button"
|
|
119
112
|
>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
113
|
+
<svg
|
|
114
|
+
aria-hidden="true"
|
|
115
|
+
class="css-11lepi0 css-18cthx4-EmotionIconBase ex0cdmw0"
|
|
116
|
+
fill="currentColor"
|
|
117
|
+
focusable="false"
|
|
118
|
+
overrides="[object Object]"
|
|
119
|
+
viewBox="0 0 24 24"
|
|
120
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
121
|
+
>
|
|
122
|
+
<path
|
|
123
|
+
d="M0 0h24v24H0z"
|
|
124
|
+
fill="none"
|
|
125
|
+
/>
|
|
126
|
+
<path
|
|
127
|
+
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
128
|
+
/>
|
|
129
|
+
</svg>
|
|
130
|
+
</button>
|
|
128
131
|
</div>
|
|
129
132
|
</div>
|
|
130
133
|
<div
|
|
@@ -104,27 +104,30 @@ exports[`Article should render tile and sub title 1`] = `
|
|
|
104
104
|
<div
|
|
105
105
|
class="css-1k3e0au"
|
|
106
106
|
>
|
|
107
|
-
<
|
|
108
|
-
aria-hidden="true"
|
|
107
|
+
<button
|
|
109
108
|
aria-label="Mobile Menu Button"
|
|
110
|
-
class="css-
|
|
109
|
+
class="css-b1ufx8"
|
|
111
110
|
data-testid="mobile-menu-btn"
|
|
112
|
-
|
|
113
|
-
focusable="false"
|
|
114
|
-
overrides="[object Object]"
|
|
115
|
-
role="button"
|
|
116
|
-
tabindex="0"
|
|
117
|
-
viewBox="0 0 24 24"
|
|
118
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
111
|
+
type="button"
|
|
119
112
|
>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
113
|
+
<svg
|
|
114
|
+
aria-hidden="true"
|
|
115
|
+
class="css-11lepi0 css-18cthx4-EmotionIconBase ex0cdmw0"
|
|
116
|
+
fill="currentColor"
|
|
117
|
+
focusable="false"
|
|
118
|
+
overrides="[object Object]"
|
|
119
|
+
viewBox="0 0 24 24"
|
|
120
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
121
|
+
>
|
|
122
|
+
<path
|
|
123
|
+
d="M0 0h24v24H0z"
|
|
124
|
+
fill="none"
|
|
125
|
+
/>
|
|
126
|
+
<path
|
|
127
|
+
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
128
|
+
/>
|
|
129
|
+
</svg>
|
|
130
|
+
</button>
|
|
128
131
|
</div>
|
|
129
132
|
</div>
|
|
130
133
|
<div
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "2.39.
|
|
3
|
+
"version": "2.39.7-alpha.1",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@emotion/styled": "11.10.4",
|
|
42
42
|
"@newskit-render/api": "^1.6.3",
|
|
43
43
|
"@newskit-render/auth": "^1.3.9",
|
|
44
|
-
"@newskit-render/checkout": "^2.2.
|
|
44
|
+
"@newskit-render/checkout": "^2.2.5-alpha.1",
|
|
45
45
|
"@newskit-render/feature-flags": "^1.4.10",
|
|
46
46
|
"@newskit-render/feed": "^1.4.13",
|
|
47
|
-
"@newskit-render/my-account": "^4.1.
|
|
48
|
-
"@newskit-render/shared-components": "^2.1
|
|
49
|
-
"@newskit-render/standalone-components": "^2.2.
|
|
47
|
+
"@newskit-render/my-account": "^4.1.6-alpha.1",
|
|
48
|
+
"@newskit-render/shared-components": "^2.2.0-alpha.1",
|
|
49
|
+
"@newskit-render/standalone-components": "^2.2.1-alpha.1",
|
|
50
50
|
"@newskit-render/validation": "^1.5.11",
|
|
51
51
|
"cross-fetch": "3.1.5",
|
|
52
52
|
"graphql": "16.6.0",
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from '@newskit-render/api'
|
|
23
23
|
import { ArticleRecommendationsProvider } from '@newskit-render/standalone-components'
|
|
24
24
|
import { getHost } from '@newskit-render/shared-components'
|
|
25
|
-
import { Info } from '@emotion-icons/material/Info'
|
|
25
|
+
import { Info as FilledInfo } from '@emotion-icons/material/Info'
|
|
26
26
|
import { GET_UNIVERSAL_ARTICLE } from '../../../../../queries'
|
|
27
27
|
import ArticlePage from '../../../../../components/article'
|
|
28
28
|
import { fetchUser } from '../../../../../helpers/getUser'
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
newskitApiXApiKey,
|
|
36
36
|
} from '../../../../../config'
|
|
37
37
|
|
|
38
|
-
const IconFilledInfo = toNewsKitIcon(
|
|
38
|
+
const IconFilledInfo = toNewsKitIcon(FilledInfo)
|
|
39
39
|
|
|
40
40
|
const PreviewArticle = ({
|
|
41
41
|
universalArticle,
|