@newskit-render/core 0.0.0-c4b3a7e24 → 0.0.0-c66ef843b
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 +16 -0
- package/cypress/e2e/account/newsletters-page.cy.js +2 -1
- package/package.json +10 -10
- package/pages/account/add/[field].tsx +1 -2
- package/pages/account/bonus-accounts/index.tsx +1 -2
- package/pages/account/cancellation/index.tsx +1 -2
- package/pages/account/dream-team/index.tsx +1 -2
- package/pages/account/edit/[field].tsx +1 -1
- package/pages/account/holiday-stop/index.tsx +1 -2
- package/pages/account/index.tsx +1 -2
- package/pages/account/newsletters/index.tsx +1 -2
- package/pages/account/newsletters-and-alerts/index.tsx +1 -2
- package/pages/account/payment/[paymentMethod].tsx +1 -2
- package/pages/account/payment/index.tsx +1 -2
- package/pages/account/payment-methods/index.tsx +1 -2
- package/pages/account/subscription-and-billing/index.tsx +1 -2
- package/pages/account/user-hub/index.tsx +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.46.4](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.46.4-alpha.0...@newskit-render/core@4.46.4) (2025-07-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.46.3](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.46.3-alpha.0...@newskit-render/core@4.46.3) (2025-07-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [4.46.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.46.2-alpha.0...@newskit-render/core@4.46.2) (2025-06-17)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -4,7 +4,8 @@ describe('Newsletters page', () => {
|
|
|
4
4
|
cy.mockConsent()
|
|
5
5
|
})
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// will be fixed in TMR-2284
|
|
8
|
+
it.skip('Should display all the newsletters on the newsletters page when user has a subscription', () => {
|
|
8
9
|
cy.mockConsentAndVisit('/account/newsletters')
|
|
9
10
|
cy.contains('Newsletters')
|
|
10
11
|
cy.contains(
|
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-c66ef843b",
|
|
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.16.
|
|
46
|
-
"@newskit-render/auth": "^1.8.
|
|
47
|
-
"@newskit-render/checkout": "^3.10.
|
|
48
|
-
"@newskit-render/feature-flags": "^1.11.
|
|
49
|
-
"@newskit-render/feed": "^1.8.
|
|
50
|
-
"@newskit-render/my-account": "^7.110.
|
|
51
|
-
"@newskit-render/shared-components": "^4.47.
|
|
52
|
-
"@newskit-render/standalone-components": "^3.25.
|
|
53
|
-
"@newskit-render/validation": "^1.19.
|
|
45
|
+
"@newskit-render/api": "^1.16.7",
|
|
46
|
+
"@newskit-render/auth": "^1.8.26",
|
|
47
|
+
"@newskit-render/checkout": "^3.10.63",
|
|
48
|
+
"@newskit-render/feature-flags": "^1.11.23",
|
|
49
|
+
"@newskit-render/feed": "^1.8.42",
|
|
50
|
+
"@newskit-render/my-account": "^7.110.2",
|
|
51
|
+
"@newskit-render/shared-components": "^4.47.16",
|
|
52
|
+
"@newskit-render/standalone-components": "^3.25.33",
|
|
53
|
+
"@newskit-render/validation": "^1.19.23",
|
|
54
54
|
"cross-fetch": "3.1.5",
|
|
55
55
|
"graphql": "16.6.0",
|
|
56
56
|
"lodash.get": "4.4.2",
|
|
@@ -5,7 +5,6 @@ import validation from '../../../validation'
|
|
|
5
5
|
import { DynamicPage } from '@newskit-render/my-account'
|
|
6
6
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
7
7
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
8
|
-
import { publisher } from '../../../config'
|
|
9
8
|
|
|
10
9
|
const AccountAddField = (props) => (
|
|
11
10
|
<DynamicPage
|
|
@@ -31,7 +30,7 @@ export const getServerSideProps = async (context) => {
|
|
|
31
30
|
console.error(`An error ${context.res.statusCode} occurred on server`)
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
const featureFlags =
|
|
33
|
+
const featureFlags = await getAllFeatureFlags()
|
|
35
34
|
const providerProps = (await getProviderPropsUtil(
|
|
36
35
|
{ ...context, provider: 'AddField' },
|
|
37
36
|
{ featureFlags } /* cra-effected */
|
|
@@ -3,7 +3,6 @@ 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
5
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
|
-
import { publisher } from '../../../config'
|
|
7
6
|
|
|
8
7
|
const AccountFamily = (props) => <Family {...props} />
|
|
9
8
|
|
|
@@ -12,7 +11,7 @@ export default AccountFamily
|
|
|
12
11
|
export const getServerSideProps = async (context) => {
|
|
13
12
|
replaceConsoleAndSetTransactionName('Account: Bonus Accounts')
|
|
14
13
|
/* start cra-effected */
|
|
15
|
-
const featureFlags =
|
|
14
|
+
const featureFlags = await getAllFeatureFlags()
|
|
16
15
|
|
|
17
16
|
/* end cra-effected */
|
|
18
17
|
return getProviderPropsUtil(
|
|
@@ -4,7 +4,6 @@ import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
|
4
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
5
|
import validation from '../../../validation'
|
|
6
6
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
7
|
-
import { publisher } from '../../../config'
|
|
8
7
|
|
|
9
8
|
const AccountCancellation = (props) => (
|
|
10
9
|
<Cancellation {...props} validation={validation} />
|
|
@@ -15,7 +14,7 @@ export default AccountCancellation
|
|
|
15
14
|
export const getServerSideProps = async (context) => {
|
|
16
15
|
replaceConsoleAndSetTransactionName('Account: Cancellation')
|
|
17
16
|
/* start cra-effected */
|
|
18
|
-
const featureFlags =
|
|
17
|
+
const featureFlags = await getAllFeatureFlags()
|
|
19
18
|
/* end cra-effected */
|
|
20
19
|
return getProviderPropsUtil(
|
|
21
20
|
{ ...context, provider: 'Cancellation' },
|
|
@@ -3,7 +3,6 @@ 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
5
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
|
-
import { publisher } from '../../../config'
|
|
7
6
|
|
|
8
7
|
const AccountNewslettersAndAlerts = (props) => <DreamTeam {...props} />
|
|
9
8
|
|
|
@@ -12,7 +11,7 @@ export default AccountNewslettersAndAlerts
|
|
|
12
11
|
export const getServerSideProps = async (context) => {
|
|
13
12
|
replaceConsoleAndSetTransactionName('Account: Dream Team')
|
|
14
13
|
/* start cra-effected */
|
|
15
|
-
const featureFlags =
|
|
14
|
+
const featureFlags = await getAllFeatureFlags()
|
|
16
15
|
/* end cra-effected */
|
|
17
16
|
return getProviderPropsUtil(
|
|
18
17
|
{ ...context, provider: 'DreamTeam' },
|
|
@@ -45,7 +45,7 @@ export const getServerSideProps = async (context) => {
|
|
|
45
45
|
console.error(`An error ${context.res.statusCode} occurred on server`)
|
|
46
46
|
}
|
|
47
47
|
/* start cra-effected */
|
|
48
|
-
const featureFlags =
|
|
48
|
+
const featureFlags = await getAllFeatureFlags()
|
|
49
49
|
/* end cra-effected */
|
|
50
50
|
|
|
51
51
|
return getProviderPropsUtil(
|
|
@@ -3,7 +3,6 @@ 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
5
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
|
-
import { publisher } from '../../../config'
|
|
7
6
|
|
|
8
7
|
const AccountHolidayStop = (props) => <HolidayStop {...props} />
|
|
9
8
|
|
|
@@ -12,7 +11,7 @@ export default AccountHolidayStop
|
|
|
12
11
|
export const getServerSideProps = async (context) => {
|
|
13
12
|
replaceConsoleAndSetTransactionName('Account: Book a Holiday Stop')
|
|
14
13
|
/* start cra-effected */
|
|
15
|
-
const featureFlags =
|
|
14
|
+
const featureFlags = await getAllFeatureFlags()
|
|
16
15
|
/* end cra-effected */
|
|
17
16
|
return getProviderPropsUtil(
|
|
18
17
|
{ ...context, provider: 'HolidayStop' },
|
package/pages/account/index.tsx
CHANGED
|
@@ -4,7 +4,6 @@ import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effect
|
|
|
4
4
|
import { AccountDropdown } from '../../components/AccountDropdown' /* cra-disabled */
|
|
5
5
|
import { replaceConsoleAndSetTransactionName } from '../../helpers/logger'
|
|
6
6
|
import { getProviderPropsUtil } from '../../helpers/getProviderPropsUtil'
|
|
7
|
-
import { publisher } from '../../config'
|
|
8
7
|
|
|
9
8
|
const AccountPersonalDetails = (props) => {
|
|
10
9
|
return (
|
|
@@ -24,7 +23,7 @@ export default AccountPersonalDetails
|
|
|
24
23
|
export const getServerSideProps = async (context) => {
|
|
25
24
|
replaceConsoleAndSetTransactionName('Account: Personal details')
|
|
26
25
|
|
|
27
|
-
const featureFlags =
|
|
26
|
+
const featureFlags = await getAllFeatureFlags()
|
|
28
27
|
|
|
29
28
|
return getProviderPropsUtil(
|
|
30
29
|
{ ...context, provider: 'PersonalDetails' },
|
|
@@ -3,7 +3,6 @@ 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
5
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
|
-
import { publisher } from '../../../config'
|
|
7
6
|
|
|
8
7
|
const AccountNewsletters = (props) => <Newsletters {...props} />
|
|
9
8
|
|
|
@@ -12,7 +11,7 @@ export default AccountNewsletters
|
|
|
12
11
|
export const getServerSideProps = async (context) => {
|
|
13
12
|
replaceConsoleAndSetTransactionName('Account: Newsletters')
|
|
14
13
|
/* start cra-effected */
|
|
15
|
-
const featureFlags =
|
|
14
|
+
const featureFlags = await getAllFeatureFlags()
|
|
16
15
|
/* end cra-effected */
|
|
17
16
|
return getProviderPropsUtil(
|
|
18
17
|
{ ...context, provider: 'Newsletters' },
|
|
@@ -3,7 +3,6 @@ import { NewslettersAndAlerts } 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 { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
|
-
import { publisher } from '../../../config'
|
|
7
6
|
|
|
8
7
|
const AccountNewslettersAndAlerts = (props) => (
|
|
9
8
|
<NewslettersAndAlerts {...props} />
|
|
@@ -14,7 +13,7 @@ export default AccountNewslettersAndAlerts
|
|
|
14
13
|
export const getServerSideProps = async (context) => {
|
|
15
14
|
replaceConsoleAndSetTransactionName('Account: Newsletters and Alerts')
|
|
16
15
|
/* start cra-effected */
|
|
17
|
-
const featureFlags =
|
|
16
|
+
const featureFlags = await getAllFeatureFlags()
|
|
18
17
|
/* end cra-effected */
|
|
19
18
|
return getProviderPropsUtil(
|
|
20
19
|
{ ...context, provider: 'NewslettersAndAlerts' },
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
} from '@newskit-render/my-account'
|
|
8
8
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
9
9
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
10
|
-
import { publisher } from '../../../config'
|
|
11
10
|
|
|
12
11
|
const PaymentPage = (props) => {
|
|
13
12
|
return (
|
|
@@ -25,7 +24,7 @@ export default PaymentPage
|
|
|
25
24
|
export const getServerSideProps = async (context) => {
|
|
26
25
|
replaceConsoleAndSetTransactionName('Payment method')
|
|
27
26
|
/* start cra-effected */
|
|
28
|
-
const featureFlags =
|
|
27
|
+
const featureFlags = await getAllFeatureFlags()
|
|
29
28
|
/* end cra-effected */
|
|
30
29
|
|
|
31
30
|
return getProviderPropsUtil(
|
|
@@ -3,7 +3,6 @@ import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
|
3
3
|
import { Payment } from '@newskit-render/my-account'
|
|
4
4
|
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
5
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
|
-
import { publisher } from '../../../config'
|
|
7
6
|
|
|
8
7
|
const AccountPayment = (props) => <Payment {...props} />
|
|
9
8
|
|
|
@@ -12,7 +11,7 @@ export default AccountPayment
|
|
|
12
11
|
export const getServerSideProps = async (context) => {
|
|
13
12
|
replaceConsoleAndSetTransactionName('Edit Payment method')
|
|
14
13
|
/* start cra-effected */
|
|
15
|
-
const featureFlags =
|
|
14
|
+
const featureFlags = await getAllFeatureFlags()
|
|
16
15
|
/* end cra-effected */
|
|
17
16
|
|
|
18
17
|
return getProviderPropsUtil(
|
|
@@ -4,7 +4,6 @@ import { getAllFeatureFlags } from '@newskit-render/feature-flags' // create-ren
|
|
|
4
4
|
import { paymentMethodContext } from '../../../context/app-context/paymentMethodContext'
|
|
5
5
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
6
6
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
7
|
-
import { publisher } from '../../../config'
|
|
8
7
|
|
|
9
8
|
const AccountPaymentMethods = (props) => (
|
|
10
9
|
<PaymentMethods {...props} context={paymentMethodContext} />
|
|
@@ -14,7 +13,7 @@ export default AccountPaymentMethods
|
|
|
14
13
|
|
|
15
14
|
export const getServerSideProps = async (context) => {
|
|
16
15
|
replaceConsoleAndSetTransactionName('Account: Payment Methods')
|
|
17
|
-
const featureFlags =
|
|
16
|
+
const featureFlags = await getAllFeatureFlags()
|
|
18
17
|
// create-render-app effected
|
|
19
18
|
return getProviderPropsUtil(
|
|
20
19
|
{ ...context, provider: 'PaymentMethods' },
|
|
@@ -8,7 +8,6 @@ import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effect
|
|
|
8
8
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
9
9
|
import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
10
10
|
import { Publisher } from '@newskit-render/api'
|
|
11
|
-
import { publisher } from '../../../config'
|
|
12
11
|
|
|
13
12
|
const AccountSubscriptionAndBilling = (props) => {
|
|
14
13
|
const context =
|
|
@@ -24,7 +23,7 @@ export default AccountSubscriptionAndBilling
|
|
|
24
23
|
export const getServerSideProps = async (context) => {
|
|
25
24
|
replaceConsoleAndSetTransactionName('Account: Subscription and Billing')
|
|
26
25
|
/* start cra-effected */
|
|
27
|
-
const featureFlags =
|
|
26
|
+
const featureFlags = await getAllFeatureFlags()
|
|
28
27
|
/* end cra-effected */
|
|
29
28
|
const result = await getProviderPropsUtil(
|
|
30
29
|
{
|
|
@@ -3,7 +3,6 @@ import { UserHub as UserHubPage } 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 { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
|
|
6
|
-
import { publisher } from '../../../config'
|
|
7
6
|
|
|
8
7
|
const UserHub = (props) => <UserHubPage {...props} />
|
|
9
8
|
|
|
@@ -12,7 +11,7 @@ export default UserHub
|
|
|
12
11
|
export const getServerSideProps = async (context) => {
|
|
13
12
|
replaceConsoleAndSetTransactionName('Account: UserHub')
|
|
14
13
|
/* start cra-effected */
|
|
15
|
-
const featureFlags =
|
|
14
|
+
const featureFlags = await getAllFeatureFlags()
|
|
16
15
|
/* end cra-effected */
|
|
17
16
|
return getProviderPropsUtil(
|
|
18
17
|
{ ...context, provider: 'UserHub' },
|