@newskit-render/core 0.0.0-d429fe8d6 → 0.0.0-d5e6fac23
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 +224 -0
- package/__tests__/pages/__snapshots__/home.test.tsx.snap +0 -3
- package/components/article/__tests__/__snapshots__/index.test.tsx.snap +0 -3
- package/cypress/e2e/account/newsletters-page.cy.js +10 -9
- package/cypress/e2e/account/subscription-and-billing.cy.js +8 -13
- package/helpers/getProviderPropsUtil.ts +17 -0
- package/package.json +11 -11
- package/pages/account/add/[field].tsx +11 -2
- package/pages/account/cancellation/index.tsx +3 -2
- package/pages/account/delete/confirm/index.tsx +3 -5
- package/pages/account/delete/error/index.tsx +3 -5
- package/pages/account/delete/index.tsx +3 -5
- package/pages/account/delete/success/index.tsx +3 -5
- package/pages/account/dream-team/index.tsx +3 -2
- package/pages/account/edit/[field].tsx +2 -2
- package/pages/account/family/index.tsx +11 -3
- package/pages/account/holiday-stop/index.tsx +3 -2
- package/pages/account/holiday-stop/previous-holiday-stops.tsx +3 -2
- package/pages/account/holiday-stop/upcoming-holiday-stops.tsx +3 -2
- package/pages/account/index.tsx +3 -2
- package/pages/account/newsletters/index.tsx +3 -2
- package/pages/account/newsletters-and-alerts/index.tsx +3 -5
- package/pages/account/payment/[paymentMethod].tsx +2 -2
- package/pages/account/payment/index.tsx +3 -2
- package/pages/account/payment-methods/index.tsx +3 -2
- package/pages/account/subscription-and-billing/index.tsx +3 -5
- package/pages/account/user-hub/index.tsx +3 -5
- package/temp/_document.tsx +1 -0
- /package/cypress/support/{blaizeValues.js → blaizeJwtValues.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,230 @@
|
|
|
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
|
+
## [4.38.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.38.2-alpha.0...@newskit-render/core@4.38.2) (2024-11-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.38.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.38.1-alpha.0...@newskit-render/core@4.38.1) (2024-11-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [4.38.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.38.0-alpha.0...@newskit-render/core@4.38.0) (2024-11-01)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [4.37.10](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.10-alpha.0...@newskit-render/core@4.37.10) (2024-10-29)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [4.37.9](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.9-alpha.0...@newskit-render/core@4.37.9) (2024-10-28)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [4.37.8](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.8-alpha.0...@newskit-render/core@4.37.8) (2024-10-24)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [4.37.7](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.7-alpha.0...@newskit-render/core@4.37.7) (2024-10-23)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [4.37.6](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.6-alpha.0...@newskit-render/core@4.37.6) (2024-10-23)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [4.37.5](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.5-alpha.0...@newskit-render/core@4.37.5) (2024-10-22)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [4.37.4](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.4-alpha.0...@newskit-render/core@4.37.4) (2024-10-21)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## [4.37.3](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.3-alpha.0...@newskit-render/core@4.37.3) (2024-10-21)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## [4.37.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.2-alpha.0...@newskit-render/core@4.37.2) (2024-10-18)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## [4.37.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.1-alpha.0...@newskit-render/core@4.37.1) (2024-10-17)
|
|
103
|
+
|
|
104
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# [4.37.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.37.0-alpha.0...@newskit-render/core@4.37.0) (2024-10-16)
|
|
111
|
+
|
|
112
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## [4.36.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.36.2-alpha.0...@newskit-render/core@4.36.2) (2024-10-16)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [4.36.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.36.1-alpha.0...@newskit-render/core@4.36.1) (2024-10-15)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
# [4.36.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.36.0-alpha.0...@newskit-render/core@4.36.0) (2024-10-15)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## [4.35.3](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.35.3-alpha.0...@newskit-render/core@4.35.3) (2024-10-11)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## [4.35.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.35.2-alpha.0...@newskit-render/core@4.35.2) (2024-10-11)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## [4.35.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.35.1-alpha.2...@newskit-render/core@4.35.1) (2024-10-10)
|
|
159
|
+
|
|
160
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
# [4.35.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.35.0-alpha.0...@newskit-render/core@4.35.0) (2024-10-02)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## [4.34.7](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.34.7-alpha.0...@newskit-render/core@4.34.7) (2024-09-25)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
## [4.34.6](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.34.6-alpha.0...@newskit-render/core@4.34.6) (2024-09-20)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
## [4.34.5](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.34.5-alpha.0...@newskit-render/core@4.34.5) (2024-09-20)
|
|
191
|
+
|
|
192
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
## [4.34.4](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.34.4-alpha.0...@newskit-render/core@4.34.4) (2024-09-19)
|
|
199
|
+
|
|
200
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
## [4.34.3](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.34.3-alpha.0...@newskit-render/core@4.34.3) (2024-09-18)
|
|
207
|
+
|
|
208
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
## [4.34.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.34.2-alpha.1...@newskit-render/core@4.34.2) (2024-09-16)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## [4.34.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.34.1-alpha.0...@newskit-render/core@4.34.1) (2024-09-13)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
6
230
|
# [4.34.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.34.0-alpha.0...@newskit-render/core@4.34.0) (2024-09-12)
|
|
7
231
|
|
|
8
232
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -102,7 +102,6 @@ exports[`getServerSideProps Homepage 1`] = `
|
|
|
102
102
|
aria-label="Section One Link"
|
|
103
103
|
class="css-1ulbpfm"
|
|
104
104
|
href="/section-one"
|
|
105
|
-
type="standalone"
|
|
106
105
|
>
|
|
107
106
|
<span
|
|
108
107
|
class="css-1xnclyu"
|
|
@@ -126,7 +125,6 @@ exports[`getServerSideProps Homepage 1`] = `
|
|
|
126
125
|
aria-label="Section Two Link"
|
|
127
126
|
class="css-1ulbpfm"
|
|
128
127
|
href="/section-two"
|
|
129
|
-
type="standalone"
|
|
130
128
|
>
|
|
131
129
|
<span
|
|
132
130
|
class="css-1xnclyu"
|
|
@@ -150,7 +148,6 @@ exports[`getServerSideProps Homepage 1`] = `
|
|
|
150
148
|
aria-label="Section Three Link"
|
|
151
149
|
class="css-1ulbpfm"
|
|
152
150
|
href="/section-three"
|
|
153
|
-
type="standalone"
|
|
154
151
|
>
|
|
155
152
|
<span
|
|
156
153
|
class="css-1xnclyu"
|
|
@@ -102,7 +102,6 @@ exports[`Article should render tile and sub title 1`] = `
|
|
|
102
102
|
aria-label="Section One Link"
|
|
103
103
|
class="css-1ulbpfm"
|
|
104
104
|
href="/section-one"
|
|
105
|
-
type="standalone"
|
|
106
105
|
>
|
|
107
106
|
<span
|
|
108
107
|
class="css-1xnclyu"
|
|
@@ -126,7 +125,6 @@ exports[`Article should render tile and sub title 1`] = `
|
|
|
126
125
|
aria-label="Section Two Link"
|
|
127
126
|
class="css-1ulbpfm"
|
|
128
127
|
href="/section-two"
|
|
129
|
-
type="standalone"
|
|
130
128
|
>
|
|
131
129
|
<span
|
|
132
130
|
class="css-1xnclyu"
|
|
@@ -150,7 +148,6 @@ exports[`Article should render tile and sub title 1`] = `
|
|
|
150
148
|
aria-label="Section Three Link"
|
|
151
149
|
class="css-1ulbpfm"
|
|
152
150
|
href="/section-three"
|
|
153
|
-
type="standalone"
|
|
154
151
|
>
|
|
155
152
|
<span
|
|
156
153
|
class="css-1xnclyu"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registration_blaize_jwt,
|
|
3
3
|
subscription_blaize_jwt,
|
|
4
|
-
} from '../../support/
|
|
4
|
+
} from '../../support/blaizeJwtValues'
|
|
5
5
|
|
|
6
6
|
describe('Newsletters page', () => {
|
|
7
7
|
beforeEach(() => {
|
|
@@ -18,14 +18,15 @@ describe('Newsletters page', () => {
|
|
|
18
18
|
cy.get('[data-testid="newsletters-grid"] > div').should('have.length', 20)
|
|
19
19
|
})
|
|
20
20
|
|
|
21
|
-
it
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
// Commented out because Optimizely feature flag with tm-my-account key is causing it to fail in this repo. Test should be re-enabled once feature flag is removed.
|
|
22
|
+
// it('Should only display selected newsletters on the newsletters page when user is registered', () => {
|
|
23
|
+
// cy.mockBlaizeJwtAndVisit(registration_blaize_jwt, '/account/newsletters')
|
|
24
|
+
// cy.contains('Newsletters')
|
|
25
|
+
// cy.contains(
|
|
26
|
+
// 'Exclusive content and a curated selection of our top stories straight to your inbox.'
|
|
27
|
+
// )
|
|
28
|
+
// cy.get('[data-testid="newsletters-grid"] > div').should('have.length', 12)
|
|
29
|
+
// })
|
|
29
30
|
|
|
30
31
|
it('Should display all required newsletter text in the first grid card', () => {
|
|
31
32
|
cy.mockBlaizeJwtAndVisit(subscription_blaize_jwt, '/account/newsletters')
|
|
@@ -134,11 +134,12 @@ describe('Subscription and billing details for Digital user', () => {
|
|
|
134
134
|
cy.contains('[data-testid="ContentListIntroduction"]', 'Billing details')
|
|
135
135
|
cy.contains('Payment method')
|
|
136
136
|
cy.get('[data-testid="visa-icon"]').should('exist')
|
|
137
|
-
cy.contains('************
|
|
138
|
-
cy.contains('expiry date
|
|
137
|
+
cy.contains('************4242')
|
|
138
|
+
cy.contains('expiry date 02/27')
|
|
139
139
|
})
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
// Skipped due to graphql changes. To be fixed with TMR-1959
|
|
142
|
+
it.skip('Should display Invoice history section', () => {
|
|
142
143
|
cy.contains('[data-testid="ContentListIntroduction"]', 'Invoice history')
|
|
143
144
|
cy.contains('Digital pack')
|
|
144
145
|
cy.contains('20 Sept 2022')
|
|
@@ -226,7 +227,8 @@ describe('Subscription and billing details for Print user', () => {
|
|
|
226
227
|
)
|
|
227
228
|
})
|
|
228
229
|
|
|
229
|
-
|
|
230
|
+
// Skipped due to graphql changes. To be fixed with TMR-1959
|
|
231
|
+
it.skip('Should display Invoice history section', () => {
|
|
230
232
|
cy.contains('[data-testid="ContentListIntroduction"]', 'Invoice history')
|
|
231
233
|
cy.contains('Print pack')
|
|
232
234
|
cy.contains('24 Apr 2023')
|
|
@@ -278,6 +280,8 @@ describe('Subscription and billing details for Digi-Print user', () => {
|
|
|
278
280
|
//...rest is same as Print user
|
|
279
281
|
})
|
|
280
282
|
|
|
283
|
+
// This test is going to fail on 13.11.2024 due to graphql changes.
|
|
284
|
+
// To be fixed with TMR-1959
|
|
281
285
|
it('Should display Invoice history section', () => {
|
|
282
286
|
cy.contains('[data-testid="ContentListIntroduction"]', 'Invoice history')
|
|
283
287
|
cy.contains('Digi-Print pack')
|
|
@@ -302,15 +306,6 @@ describe('Subscription and billing details for Paypal user', () => {
|
|
|
302
306
|
cy.get('[data-testid="paypal-icon"]').should('exist')
|
|
303
307
|
cy.contains('cmp.paypal.user.verified.test@news.co.uk')
|
|
304
308
|
})
|
|
305
|
-
|
|
306
|
-
it('Should show inline banner for Paypal subscription', () => {
|
|
307
|
-
cy.get('a[href="/account/payment"]').should('be.visible').click()
|
|
308
|
-
cy.contains(
|
|
309
|
-
'[data-testid="Zuora-inline"]',
|
|
310
|
-
'To update your Paypal credentials, please speak to one of our advisors on xxxx-xxx-xxxx or add a new payment method via credit/debit card using the form below.',
|
|
311
|
-
{ timeout: 15000 }
|
|
312
|
-
)
|
|
313
|
-
})
|
|
314
309
|
})
|
|
315
310
|
|
|
316
311
|
describe('Subscription and billing edit pages', () => {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getProviderProps,
|
|
3
|
+
getProviderPropsTimes,
|
|
4
|
+
} from '@newskit-render/my-account'
|
|
5
|
+
import { publisher } from '../config'
|
|
6
|
+
|
|
7
|
+
export const getProviderPropsUtil = (context, options?) => {
|
|
8
|
+
if (process.env.NODE_ENV === 'development' && publisher === 'TIMES') {
|
|
9
|
+
return getProviderPropsTimes(context, {
|
|
10
|
+
...options,
|
|
11
|
+
})
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return getProviderProps(context, {
|
|
15
|
+
...options,
|
|
16
|
+
})
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-d5e6fac23",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"@emotion/styled": "11.9.3",
|
|
43
43
|
"@newrelic/next": "0.5.2",
|
|
44
44
|
"@newrelic/winston-enricher": "4.0.1",
|
|
45
|
-
"@newskit-render/api": "^1.
|
|
46
|
-
"@newskit-render/auth": "^1.8.
|
|
47
|
-
"@newskit-render/checkout": "^3.10.
|
|
48
|
-
"@newskit-render/feature-flags": "^1.
|
|
49
|
-
"@newskit-render/feed": "^1.8.
|
|
50
|
-
"@newskit-render/my-account": "^7.
|
|
51
|
-
"@newskit-render/shared-components": "^4.
|
|
52
|
-
"@newskit-render/standalone-components": "^3.
|
|
53
|
-
"@newskit-render/validation": "^1.
|
|
45
|
+
"@newskit-render/api": "^1.14.1",
|
|
46
|
+
"@newskit-render/auth": "^1.8.2",
|
|
47
|
+
"@newskit-render/checkout": "^3.10.21",
|
|
48
|
+
"@newskit-render/feature-flags": "^1.11.1",
|
|
49
|
+
"@newskit-render/feed": "^1.8.14",
|
|
50
|
+
"@newskit-render/my-account": "^7.83.0-alpha.0",
|
|
51
|
+
"@newskit-render/shared-components": "^4.35.1",
|
|
52
|
+
"@newskit-render/standalone-components": "^3.23.4",
|
|
53
|
+
"@newskit-render/validation": "^1.18.1",
|
|
54
54
|
"cross-fetch": "3.1.5",
|
|
55
55
|
"graphql": "16.6.0",
|
|
56
56
|
"lodash.get": "4.4.2",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"prettier": "2.8.3",
|
|
105
105
|
"prettier-eslint": "15.0.1",
|
|
106
106
|
"prettier-eslint-cli": "7.1.0",
|
|
107
|
-
"typescript": "
|
|
107
|
+
"typescript": "5.6.3",
|
|
108
108
|
"wait-on": "7.0.1"
|
|
109
109
|
},
|
|
110
110
|
"precommit": [
|
|
@@ -3,6 +3,8 @@ import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
|
3
3
|
import { AddField, addComponentMap } from '@newskit-render/my-account'
|
|
4
4
|
import validation from '../../../validation'
|
|
5
5
|
import { DynamicPage } from '@newskit-render/my-account'
|
|
6
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
7
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
8
|
|
|
7
9
|
const AccountAddField = (props) => (
|
|
8
10
|
<DynamicPage
|
|
@@ -28,7 +30,14 @@ export const getServerSideProps = async (context) => {
|
|
|
28
30
|
console.error(`An error ${context.res.statusCode} occurred on server`)
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
const featureFlags = await getAllFeatureFlags()
|
|
34
|
+
const providerProps = (await getProviderPropsUtil(
|
|
35
|
+
{ ...context, provider: 'AddField' },
|
|
36
|
+
{ featureFlags } /* cra-effected */
|
|
37
|
+
)) as unknown as { props: { data: { type: string } } }
|
|
38
|
+
|
|
39
|
+
if (providerProps?.props) {
|
|
40
|
+
providerProps.props = { ...providerProps.props, data: { type: field } }
|
|
33
41
|
}
|
|
42
|
+
return providerProps
|
|
34
43
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Cancellation
|
|
2
|
+
import { Cancellation } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
5
|
import validation from '../../../validation'
|
|
6
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
7
|
|
|
7
8
|
const AccountCancellation = (props) => (
|
|
8
9
|
<Cancellation {...props} validation={validation} />
|
|
@@ -15,7 +16,7 @@ export const getServerSideProps = async (context) => {
|
|
|
15
16
|
/* start cra-effected */
|
|
16
17
|
const featureFlags = await getAllFeatureFlags()
|
|
17
18
|
/* end cra-effected */
|
|
18
|
-
return
|
|
19
|
+
return getProviderPropsUtil(
|
|
19
20
|
{ ...context, provider: 'Cancellation' },
|
|
20
21
|
{ featureFlags } /* cra-effected */
|
|
21
22
|
)
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
ConfirmAccountDeletion,
|
|
4
|
-
getProviderProps,
|
|
5
|
-
} from '@newskit-render/my-account'
|
|
2
|
+
import { ConfirmAccountDeletion } from '@newskit-render/my-account'
|
|
6
3
|
import { replaceConsoleAndSetTransactionName } from '../../../../helpers/logger'
|
|
4
|
+
import { getProviderPropsUtil } from '../../../../helpers/getProviderPropsUtil'
|
|
7
5
|
|
|
8
6
|
const ConfirmDeletion = (props) => <ConfirmAccountDeletion {...props} />
|
|
9
7
|
|
|
@@ -12,5 +10,5 @@ export default ConfirmDeletion
|
|
|
12
10
|
export const getServerSideProps = async (context) => {
|
|
13
11
|
replaceConsoleAndSetTransactionName('Account: Deletion - Confirmation')
|
|
14
12
|
|
|
15
|
-
return
|
|
13
|
+
return getProviderPropsUtil({ ...context })
|
|
16
14
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
AccountDeletionError,
|
|
4
|
-
getProviderProps,
|
|
5
|
-
} from '@newskit-render/my-account'
|
|
2
|
+
import { AccountDeletionError } from '@newskit-render/my-account'
|
|
6
3
|
import { replaceConsoleAndSetTransactionName } from '../../../../helpers/logger'
|
|
4
|
+
import { getProviderPropsUtil } from '../../../../helpers/getProviderPropsUtil'
|
|
7
5
|
|
|
8
6
|
const Error = (props) => <AccountDeletionError {...props} />
|
|
9
7
|
|
|
@@ -12,5 +10,5 @@ export default Error
|
|
|
12
10
|
export const getServerSideProps = async (context) => {
|
|
13
11
|
replaceConsoleAndSetTransactionName('Account: Deletion - Error')
|
|
14
12
|
|
|
15
|
-
return
|
|
13
|
+
return getProviderPropsUtil({ ...context })
|
|
16
14
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
InitiateAccountDeletion,
|
|
4
|
-
getProviderProps,
|
|
5
|
-
} from '@newskit-render/my-account'
|
|
2
|
+
import { InitiateAccountDeletion } from '@newskit-render/my-account'
|
|
6
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
7
5
|
|
|
8
6
|
const AccountDeletion = (props) => <InitiateAccountDeletion {...props} />
|
|
9
7
|
|
|
@@ -12,5 +10,5 @@ export default AccountDeletion
|
|
|
12
10
|
export const getServerSideProps = async (context) => {
|
|
13
11
|
replaceConsoleAndSetTransactionName('Account: Deletion')
|
|
14
12
|
|
|
15
|
-
return
|
|
13
|
+
return getProviderPropsUtil({ ...context })
|
|
16
14
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
AccountDeletionSuccess,
|
|
4
|
-
getProviderProps,
|
|
5
|
-
} from '@newskit-render/my-account'
|
|
2
|
+
import { AccountDeletionSuccess } from '@newskit-render/my-account'
|
|
6
3
|
import { replaceConsoleAndSetTransactionName } from '../../../../helpers/logger'
|
|
4
|
+
import { getProviderPropsUtil } from '../../../../helpers/getProviderPropsUtil'
|
|
7
5
|
|
|
8
6
|
const Success = (props) => <AccountDeletionSuccess {...props} />
|
|
9
7
|
|
|
@@ -12,5 +10,5 @@ export default Success
|
|
|
12
10
|
export const getServerSideProps = async (context) => {
|
|
13
11
|
replaceConsoleAndSetTransactionName('Account: Deletion - Success')
|
|
14
12
|
|
|
15
|
-
return
|
|
13
|
+
return getProviderPropsUtil({ ...context })
|
|
16
14
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { DreamTeam
|
|
2
|
+
import { DreamTeam } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
5
6
|
|
|
6
7
|
const AccountNewslettersAndAlerts = (props) => <DreamTeam {...props} />
|
|
7
8
|
|
|
@@ -12,7 +13,7 @@ export const getServerSideProps = async (context) => {
|
|
|
12
13
|
/* start cra-effected */
|
|
13
14
|
const featureFlags = await getAllFeatureFlags()
|
|
14
15
|
/* end cra-effected */
|
|
15
|
-
return
|
|
16
|
+
return getProviderPropsUtil(
|
|
16
17
|
{ ...context, provider: 'DreamTeam' },
|
|
17
18
|
{ featureFlags } /* cra-effected */
|
|
18
19
|
)
|
|
@@ -2,12 +2,12 @@ import React from 'react'
|
|
|
2
2
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
3
3
|
import {
|
|
4
4
|
EditField,
|
|
5
|
-
getProviderProps,
|
|
6
5
|
editComponentMap,
|
|
7
6
|
DynamicPage,
|
|
8
7
|
} from '@newskit-render/my-account'
|
|
9
8
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
10
9
|
import validation from '../../../validation'
|
|
10
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
11
11
|
|
|
12
12
|
const AccountEditField = (props) => (
|
|
13
13
|
<DynamicPage
|
|
@@ -38,7 +38,7 @@ export const getServerSideProps = async (context) => {
|
|
|
38
38
|
const featureFlags = await getAllFeatureFlags()
|
|
39
39
|
/* end cra-effected */
|
|
40
40
|
|
|
41
|
-
return
|
|
41
|
+
return getProviderPropsUtil(
|
|
42
42
|
{ ...context, provider: 'EditField' },
|
|
43
43
|
{ featureFlags } /* cra-effected */
|
|
44
44
|
)
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Family
|
|
2
|
+
import { Family } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
5
6
|
|
|
6
7
|
const AccountFamily = (props) => <Family {...props} />
|
|
7
8
|
|
|
@@ -11,9 +12,16 @@ export const getServerSideProps = async (context) => {
|
|
|
11
12
|
replaceConsoleAndSetTransactionName('Account: Family')
|
|
12
13
|
/* start cra-effected */
|
|
13
14
|
const featureFlags = await getAllFeatureFlags()
|
|
15
|
+
|
|
16
|
+
const provider = featureFlags?.enable_invite_family_v2_query
|
|
17
|
+
? 'GroupAccountsV2'
|
|
18
|
+
: 'GroupAccounts'
|
|
14
19
|
/* end cra-effected */
|
|
15
|
-
return
|
|
16
|
-
{
|
|
20
|
+
return getProviderPropsUtil(
|
|
21
|
+
{
|
|
22
|
+
...context,
|
|
23
|
+
provider,
|
|
24
|
+
},
|
|
17
25
|
{ featureFlags } /* cra-effected */
|
|
18
26
|
)
|
|
19
27
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { HolidayStop } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
5
6
|
|
|
6
7
|
const AccountHolidayStop = (props) => <HolidayStop {...props} />
|
|
7
8
|
|
|
@@ -12,7 +13,7 @@ export const getServerSideProps = async (context) => {
|
|
|
12
13
|
/* start cra-effected */
|
|
13
14
|
const featureFlags = await getAllFeatureFlags()
|
|
14
15
|
/* end cra-effected */
|
|
15
|
-
return
|
|
16
|
+
return getProviderPropsUtil(
|
|
16
17
|
{ ...context, provider: 'HolidayStop' },
|
|
17
18
|
{ featureFlags } /* cra-effected */
|
|
18
19
|
)
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { HolidayStopList } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
4
|
import { holidayStopListContextOverrides } from '../../../context/app-context/holidayStopListContextOverrides'
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
5
6
|
|
|
6
7
|
const AccountPreviousHolidayStops = (props) => (
|
|
7
8
|
<HolidayStopList
|
|
@@ -15,5 +16,5 @@ export default AccountPreviousHolidayStops
|
|
|
15
16
|
|
|
16
17
|
export const getServerSideProps = async (context) => {
|
|
17
18
|
replaceConsoleAndSetTransactionName('Account: Previous Holiday Stops')
|
|
18
|
-
return
|
|
19
|
+
return getProviderPropsUtil({ ...context, provider: 'HolidayStop' })
|
|
19
20
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { HolidayStopList } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
4
|
import { holidayStopListContextOverrides } from '../../../context/app-context/holidayStopListContextOverrides'
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
5
6
|
|
|
6
7
|
const AccountUpcomingHolidayStops = (props) => (
|
|
7
8
|
<HolidayStopList
|
|
@@ -15,5 +16,5 @@ export default AccountUpcomingHolidayStops
|
|
|
15
16
|
|
|
16
17
|
export const getServerSideProps = async (context) => {
|
|
17
18
|
replaceConsoleAndSetTransactionName('Account: Upcoming Holiday Stops')
|
|
18
|
-
return
|
|
19
|
+
return getProviderPropsUtil({ ...context, provider: 'HolidayStop' })
|
|
19
20
|
}
|
package/pages/account/index.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { PersonalDetails
|
|
2
|
+
import { PersonalDetails } from '@newskit-render/my-account'
|
|
3
3
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
4
4
|
import { AccountDropdown } from '../../components/AccountDropdown' /* cra-disabled */
|
|
5
5
|
import { replaceConsoleAndSetTransactionName } from '../../helpers/logger'
|
|
6
|
+
import { getProviderPropsUtil } from '../../helpers/getProviderPropsUtil'
|
|
6
7
|
|
|
7
8
|
const AccountPersonalDetails = (props) => {
|
|
8
9
|
return (
|
|
@@ -24,7 +25,7 @@ export const getServerSideProps = async (context) => {
|
|
|
24
25
|
|
|
25
26
|
const featureFlags = await getAllFeatureFlags()
|
|
26
27
|
|
|
27
|
-
return
|
|
28
|
+
return getProviderPropsUtil(
|
|
28
29
|
{ ...context, provider: 'PersonalDetails' },
|
|
29
30
|
{ featureFlags } /* cra-effected */
|
|
30
31
|
)
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Newsletters
|
|
2
|
+
import { Newsletters } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
5
6
|
|
|
6
7
|
const AccountNewsletters = (props) => <Newsletters {...props} />
|
|
7
8
|
|
|
@@ -12,7 +13,7 @@ export const getServerSideProps = async (context) => {
|
|
|
12
13
|
/* start cra-effected */
|
|
13
14
|
const featureFlags = await getAllFeatureFlags()
|
|
14
15
|
/* end cra-effected */
|
|
15
|
-
return
|
|
16
|
+
return getProviderPropsUtil(
|
|
16
17
|
{ ...context, provider: 'Newsletters' },
|
|
17
18
|
{ featureFlags } /* cra-effected */
|
|
18
19
|
)
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
NewslettersAndAlerts,
|
|
4
|
-
getProviderProps,
|
|
5
|
-
} from '@newskit-render/my-account'
|
|
2
|
+
import { NewslettersAndAlerts } from '@newskit-render/my-account'
|
|
6
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
7
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
8
6
|
|
|
9
7
|
const AccountNewslettersAndAlerts = (props) => (
|
|
10
8
|
<NewslettersAndAlerts {...props} />
|
|
@@ -17,7 +15,7 @@ export const getServerSideProps = async (context) => {
|
|
|
17
15
|
/* start cra-effected */
|
|
18
16
|
const featureFlags = await getAllFeatureFlags()
|
|
19
17
|
/* end cra-effected */
|
|
20
|
-
return
|
|
18
|
+
return getProviderPropsUtil(
|
|
21
19
|
{ ...context, provider: 'NewslettersAndAlerts' },
|
|
22
20
|
{ featureFlags } /* cra-effected */
|
|
23
21
|
)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
3
3
|
import {
|
|
4
|
-
getProviderProps,
|
|
5
4
|
Payment,
|
|
6
5
|
paymentMethodsMap,
|
|
7
6
|
DynamicPage,
|
|
8
7
|
} from '@newskit-render/my-account'
|
|
9
8
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
9
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
10
10
|
|
|
11
11
|
const PaymentPage = (props) => {
|
|
12
12
|
return (
|
|
@@ -27,7 +27,7 @@ export const getServerSideProps = async (context) => {
|
|
|
27
27
|
const featureFlags = await getAllFeatureFlags()
|
|
28
28
|
/* end cra-effected */
|
|
29
29
|
|
|
30
|
-
return
|
|
30
|
+
return getProviderPropsUtil(
|
|
31
31
|
{
|
|
32
32
|
...context,
|
|
33
33
|
provider: 'Payment',
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
3
|
-
import { Payment
|
|
3
|
+
import { Payment } from '@newskit-render/my-account'
|
|
4
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
5
6
|
|
|
6
7
|
const AccountPayment = (props) => <Payment {...props} />
|
|
7
8
|
|
|
@@ -13,7 +14,7 @@ export const getServerSideProps = async (context) => {
|
|
|
13
14
|
const featureFlags = await getAllFeatureFlags()
|
|
14
15
|
/* end cra-effected */
|
|
15
16
|
|
|
16
|
-
return
|
|
17
|
+
return getProviderPropsUtil(
|
|
17
18
|
{
|
|
18
19
|
...context,
|
|
19
20
|
provider: 'Payment',
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { PaymentMethods } from '@newskit-render/my-account'
|
|
3
3
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' // create-render-app effected
|
|
4
4
|
import { paymentMethodContext } from '../../../context/app-context/paymentMethodContext'
|
|
5
5
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
6
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
7
|
|
|
7
8
|
const AccountPaymentMethods = (props) => (
|
|
8
9
|
<PaymentMethods {...props} context={paymentMethodContext} />
|
|
@@ -14,7 +15,7 @@ export const getServerSideProps = async (context) => {
|
|
|
14
15
|
replaceConsoleAndSetTransactionName('Account: Payment Methods')
|
|
15
16
|
const featureFlags = await getAllFeatureFlags()
|
|
16
17
|
// create-render-app effected
|
|
17
|
-
return
|
|
18
|
+
return getProviderPropsUtil(
|
|
18
19
|
{ ...context, provider: 'PaymentMethods' },
|
|
19
20
|
{ featureFlags } // create-render-app effected
|
|
20
21
|
)
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
SubscriptionAndBilling,
|
|
4
|
-
getProviderProps,
|
|
5
|
-
} from '@newskit-render/my-account'
|
|
2
|
+
import { SubscriptionAndBilling } from '@newskit-render/my-account'
|
|
6
3
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
7
4
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
8
6
|
|
|
9
7
|
const AccountSubscriptionAndBilling = (props) => (
|
|
10
8
|
<SubscriptionAndBilling {...props} />
|
|
@@ -17,7 +15,7 @@ export const getServerSideProps = async (context) => {
|
|
|
17
15
|
/* start cra-effected */
|
|
18
16
|
const featureFlags = await getAllFeatureFlags()
|
|
19
17
|
/* end cra-effected */
|
|
20
|
-
const result = await
|
|
18
|
+
const result = await getProviderPropsUtil(
|
|
21
19
|
{
|
|
22
20
|
...context,
|
|
23
21
|
provider: 'SubscriptionAndBilling',
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
UserHub as UserHubPage,
|
|
4
|
-
getProviderProps,
|
|
5
|
-
} from '@newskit-render/my-account'
|
|
2
|
+
import { UserHub as UserHubPage } from '@newskit-render/my-account'
|
|
6
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
7
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
|
+
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
8
6
|
|
|
9
7
|
const UserHub = (props) => <UserHubPage {...props} />
|
|
10
8
|
|
|
@@ -15,7 +13,7 @@ export const getServerSideProps = async (context) => {
|
|
|
15
13
|
/* start cra-effected */
|
|
16
14
|
const featureFlags = await getAllFeatureFlags()
|
|
17
15
|
/* end cra-effected */
|
|
18
|
-
return
|
|
16
|
+
return getProviderPropsUtil(
|
|
19
17
|
{ ...context, provider: 'PersonalDetails' },
|
|
20
18
|
{ featureFlags } /* cra-effected */
|
|
21
19
|
)
|
package/temp/_document.tsx
CHANGED
|
File without changes
|