@newskit-render/core 1.32.0 → 1.34.0
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 +60 -0
- package/components/header/index.tsx +1 -1
- package/cypress/e2e/account/main-api.spec.js +1 -1
- package/package.json +10 -10
- package/pages/api/news-sitemap.ts +1 -1
- package/pages/api/sitemap.ts +1 -1
- package/temp/header.tsx +14 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,66 @@
|
|
|
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
|
+
# [1.34.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.33.3...@newskit-render/core@1.34.0) (2022-03-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **PPDSR-702:** update-next-version ([#629](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/629)) ([74dccae](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/74dccaec9102dd334fdae91e2138a08d10148195))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.33.3](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.33.2...@newskit-render/core@1.33.3) (2022-03-15)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **PPDSR-719:** update subscription query property ([#631](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/631)) ([09bb279](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/09bb279cbcf4078c21a01457fd02716ce9e6c6bf))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [1.33.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.33.1...@newskit-render/core@1.33.2) (2022-03-14)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [1.33.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.33.0...@newskit-render/core@1.33.1) (2022-03-14)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# [1.33.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.32.1...@newskit-render/core@1.33.0) (2022-03-14)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Features
|
|
48
|
+
|
|
49
|
+
* **PPDSR-678:** Update Readme & core package ([#623](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/623)) ([5f04661](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/5f046614f765b5bb8a155e2258ca29c3a389bf1c))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [1.32.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.32.0...@newskit-render/core@1.32.1) (2022-03-09)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* **PPDSR-633:** update temp header ([#622](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/622)) ([dc77a3a](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/dc77a3ae4e946523817a67a210516c88fc43f768))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
6
66
|
# [1.32.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.31.0...@newskit-render/core@1.32.0) (2022-03-09)
|
|
7
67
|
|
|
8
68
|
|
|
@@ -84,7 +84,7 @@ const pastDueBanner = {
|
|
|
84
84
|
title: 'Your subscription will end soon.',
|
|
85
85
|
phoneNumber: '0800 555 1234',
|
|
86
86
|
text:
|
|
87
|
-
'You have
|
|
87
|
+
'You have cancelled your subscription and will lose access to all benefits on ##DATE##. To re-activate your subscription call ##PHONE_NUMBER##.',
|
|
88
88
|
},
|
|
89
89
|
treshold: {
|
|
90
90
|
firstNotice: 26,
|
|
@@ -85,7 +85,7 @@ describe('MAIN API', () => {
|
|
|
85
85
|
}).as('userSubscription')
|
|
86
86
|
cy.get('@userSubscription').then((response) => {
|
|
87
87
|
expect(response.status).to.eq(200)
|
|
88
|
-
expect(response.body.cpn).to.eq('
|
|
88
|
+
expect(response.body.cpn).to.eq('4AAA038732032')
|
|
89
89
|
assert.isArray(response.body.subscriptions)
|
|
90
90
|
})
|
|
91
91
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@apollo/client": "3.4.16",
|
|
36
|
-
"@newskit-render/api": "^0.
|
|
37
|
-
"@newskit-render/auth": "^0.
|
|
38
|
-
"@newskit-render/checkout": "^0.
|
|
36
|
+
"@newskit-render/api": "^0.16.0",
|
|
37
|
+
"@newskit-render/auth": "^0.30.0",
|
|
38
|
+
"@newskit-render/checkout": "^0.25.0",
|
|
39
39
|
"@newskit-render/feature-flags": "^0.11.0",
|
|
40
|
-
"@newskit-render/
|
|
41
|
-
"@newskit-render/
|
|
42
|
-
"@newskit-render/
|
|
43
|
-
"@newskit-render/validation": "^0.
|
|
40
|
+
"@newskit-render/feed": "^0.4.0",
|
|
41
|
+
"@newskit-render/my-account": "^0.145.0",
|
|
42
|
+
"@newskit-render/shared-components": "^0.39.0",
|
|
43
|
+
"@newskit-render/validation": "^0.38.0",
|
|
44
44
|
"cross-fetch": "3.1.5",
|
|
45
45
|
"graphql": "15.6.0",
|
|
46
46
|
"newrelic": "7.1.0",
|
|
47
47
|
"newskit": "5.1.1",
|
|
48
|
-
"next": "12.0
|
|
48
|
+
"next": "12.1.0",
|
|
49
49
|
"react": "17.0.2",
|
|
50
50
|
"react-dom": "17.0.2",
|
|
51
51
|
"react-helmet": "6.1.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"jest-junit": "12.0.0",
|
|
87
87
|
"jest-watch-typeahead": "0.6.3",
|
|
88
88
|
"lint-staged": "12.1.7",
|
|
89
|
-
"next-transpile-modules": "
|
|
89
|
+
"next-transpile-modules": "9.0.0",
|
|
90
90
|
"prettier": "2.0.5",
|
|
91
91
|
"prettier-eslint": "11.0.0",
|
|
92
92
|
"prettier-eslint-cli": "5.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextApiRequest, NextApiResponse } from 'next'
|
|
2
|
-
import { newsSitemap, PublisherGroup } from '@newskit-render/
|
|
2
|
+
import { newsSitemap, PublisherGroup } from '@newskit-render/feed'
|
|
3
3
|
|
|
4
4
|
const handler = async (req: NextApiRequest, res: NextApiResponse) =>
|
|
5
5
|
newsSitemap({
|
package/pages/api/sitemap.ts
CHANGED
package/temp/header.tsx
CHANGED
|
@@ -88,21 +88,31 @@ const Navigation = styled.div`
|
|
|
88
88
|
const pastDueBanner = {
|
|
89
89
|
firstNotice: {
|
|
90
90
|
title: "We haven't been able to take payment",
|
|
91
|
-
text:
|
|
91
|
+
text:
|
|
92
|
+
'You may need to update your payment details to keep your subscription.',
|
|
92
93
|
button: 'Update payment details',
|
|
93
94
|
},
|
|
94
95
|
secondNotice: {
|
|
95
96
|
title: 'Act now to keep your subscription',
|
|
96
|
-
text:
|
|
97
|
+
text:
|
|
98
|
+
'We’ve tried several times, but haven’t been able to take payment. Please update your payment details to keep your subscription.',
|
|
97
99
|
button: 'Update payment details',
|
|
98
100
|
},
|
|
99
101
|
terminated: {
|
|
100
102
|
title: 'Your subscription has been terminated',
|
|
101
|
-
text:
|
|
103
|
+
text:
|
|
104
|
+
'We didn’t receive payment for your subscription. To reactivate it, please call 0800 018 5177.',
|
|
102
105
|
},
|
|
103
106
|
cancelled: {
|
|
104
107
|
title: 'Your subscription has been cancelled.',
|
|
105
|
-
text:
|
|
108
|
+
text:
|
|
109
|
+
'You’ll no longer have access to subscription benefits. To re-activate call 0800 555 1234.',
|
|
110
|
+
},
|
|
111
|
+
toBeCancelled: {
|
|
112
|
+
title: 'Your subscription will end soon.',
|
|
113
|
+
phoneNumber: '0800 555 1234',
|
|
114
|
+
text:
|
|
115
|
+
'You have cancelled your subscription and will lose access to all benefits on ##DATE##. To re-activate your subscription call ##PHONE_NUMBER##.',
|
|
106
116
|
},
|
|
107
117
|
treshold: {
|
|
108
118
|
firstNotice: 26,
|