@newskit-render/core 4.30.8 → 4.31.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 +8 -0
- package/package.json +2 -2
- package/pages/account/cancellation/index.tsx +2 -2
- package/pages/account/dream-team/index.tsx +2 -2
- package/pages/account/edit/[field].tsx +2 -2
- package/pages/account/family/index.tsx +2 -2
- package/pages/account/holiday-stop/index.tsx +2 -2
- package/pages/account/index.tsx +2 -2
- package/pages/account/newsletters/index.tsx +2 -2
- package/pages/account/newsletters-and-alerts/index.tsx +2 -2
- package/pages/account/payment/[paymentMethod].tsx +2 -2
- package/pages/account/payment/index.tsx +2 -2
- package/pages/account/payment-methods/index.tsx +2 -2
- package/pages/account/subscription-and-billing/index.tsx +2 -2
- package/pages/account/user-hub/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
|
+
## [4.30.8](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.30.8-alpha.0...@newskit-render/core@4.30.8) (2024-08-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.30.7](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.30.7-alpha.0...@newskit-render/core@4.30.7) (2024-08-07)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @newskit-render/core
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.31.0",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@newskit-render/api": "^1.12.2",
|
|
46
46
|
"@newskit-render/auth": "^1.8.1",
|
|
47
47
|
"@newskit-render/checkout": "^3.10.6",
|
|
48
|
-
"@newskit-render/feature-flags": "^1.
|
|
48
|
+
"@newskit-render/feature-flags": "^1.10.0",
|
|
49
49
|
"@newskit-render/feed": "^1.8.10",
|
|
50
50
|
"@newskit-render/my-account": "^7.62.2",
|
|
51
51
|
"@newskit-render/shared-components": "^4.31.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Cancellation, getProviderProps } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
|
-
import {
|
|
4
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
5
|
import validation from '../../../validation'
|
|
6
6
|
|
|
7
7
|
const AccountCancellation = (props) => (
|
|
@@ -13,7 +13,7 @@ export default AccountCancellation
|
|
|
13
13
|
export const getServerSideProps = async (context) => {
|
|
14
14
|
replaceConsoleAndSetTransactionName('Account: Cancellation')
|
|
15
15
|
/* start cra-effected */
|
|
16
|
-
const featureFlags = await
|
|
16
|
+
const featureFlags = await getAllFeatureFlags()
|
|
17
17
|
/* end cra-effected */
|
|
18
18
|
return getProviderProps(
|
|
19
19
|
{ ...context, provider: 'Cancellation' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { DreamTeam, getProviderProps } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
|
-
import {
|
|
4
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
5
|
|
|
6
6
|
const AccountNewslettersAndAlerts = (props) => <DreamTeam {...props} />
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ export default AccountNewslettersAndAlerts
|
|
|
10
10
|
export const getServerSideProps = async (context) => {
|
|
11
11
|
replaceConsoleAndSetTransactionName('Account: Dream Team')
|
|
12
12
|
/* start cra-effected */
|
|
13
|
-
const featureFlags = await
|
|
13
|
+
const featureFlags = await getAllFeatureFlags()
|
|
14
14
|
/* end cra-effected */
|
|
15
15
|
return getProviderProps(
|
|
16
16
|
{ ...context, provider: 'DreamTeam' },
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
editComponentMap,
|
|
7
7
|
DynamicPage,
|
|
8
8
|
} from '@newskit-render/my-account'
|
|
9
|
-
import {
|
|
9
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
10
10
|
import validation from '../../../validation'
|
|
11
11
|
|
|
12
12
|
const AccountEditField = (props) => (
|
|
@@ -35,7 +35,7 @@ export const getServerSideProps = async (context) => {
|
|
|
35
35
|
console.error(`An error ${context.res.statusCode} occurred on server`)
|
|
36
36
|
}
|
|
37
37
|
/* start cra-effected */
|
|
38
|
-
const featureFlags = await
|
|
38
|
+
const featureFlags = await getAllFeatureFlags()
|
|
39
39
|
/* end cra-effected */
|
|
40
40
|
|
|
41
41
|
return getProviderProps(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Family, getProviderProps } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
|
-
import {
|
|
4
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
5
|
|
|
6
6
|
const AccountFamily = (props) => <Family {...props} />
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ export default AccountFamily
|
|
|
10
10
|
export const getServerSideProps = async (context) => {
|
|
11
11
|
replaceConsoleAndSetTransactionName('Account: Family')
|
|
12
12
|
/* start cra-effected */
|
|
13
|
-
const featureFlags = await
|
|
13
|
+
const featureFlags = await getAllFeatureFlags()
|
|
14
14
|
/* end cra-effected */
|
|
15
15
|
return getProviderProps(
|
|
16
16
|
{ ...context, provider: 'GroupAccounts' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { getProviderProps, HolidayStop } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
|
-
import {
|
|
4
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
5
|
|
|
6
6
|
const AccountHolidayStop = (props) => <HolidayStop {...props} />
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ export default AccountHolidayStop
|
|
|
10
10
|
export const getServerSideProps = async (context) => {
|
|
11
11
|
replaceConsoleAndSetTransactionName('Account: Book a Holiday Stop')
|
|
12
12
|
/* start cra-effected */
|
|
13
|
-
const featureFlags = await
|
|
13
|
+
const featureFlags = await getAllFeatureFlags()
|
|
14
14
|
/* end cra-effected */
|
|
15
15
|
return getProviderProps(
|
|
16
16
|
{ ...context, provider: 'HolidayStop' },
|
package/pages/account/index.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { PersonalDetails, getProviderProps } from '@newskit-render/my-account'
|
|
3
|
-
import {
|
|
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
6
|
|
|
@@ -22,7 +22,7 @@ export default AccountPersonalDetails
|
|
|
22
22
|
export const getServerSideProps = async (context) => {
|
|
23
23
|
replaceConsoleAndSetTransactionName('Account: Personal details')
|
|
24
24
|
|
|
25
|
-
const featureFlags = await
|
|
25
|
+
const featureFlags = await getAllFeatureFlags()
|
|
26
26
|
|
|
27
27
|
return getProviderProps(
|
|
28
28
|
{ ...context, provider: 'PersonalDetails' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Newsletters, getProviderProps } from '@newskit-render/my-account'
|
|
3
3
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
|
-
import {
|
|
4
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
5
|
|
|
6
6
|
const AccountNewsletters = (props) => <Newsletters {...props} />
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ export default AccountNewsletters
|
|
|
10
10
|
export const getServerSideProps = async (context) => {
|
|
11
11
|
replaceConsoleAndSetTransactionName('Account: Newsletters')
|
|
12
12
|
/* start cra-effected */
|
|
13
|
-
const featureFlags = await
|
|
13
|
+
const featureFlags = await getAllFeatureFlags()
|
|
14
14
|
/* end cra-effected */
|
|
15
15
|
return getProviderProps(
|
|
16
16
|
{ ...context, provider: 'Newsletters' },
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getProviderProps,
|
|
5
5
|
} from '@newskit-render/my-account'
|
|
6
6
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
7
|
-
import {
|
|
7
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
8
8
|
|
|
9
9
|
const AccountNewslettersAndAlerts = (props) => (
|
|
10
10
|
<NewslettersAndAlerts {...props} />
|
|
@@ -15,7 +15,7 @@ export default AccountNewslettersAndAlerts
|
|
|
15
15
|
export const getServerSideProps = async (context) => {
|
|
16
16
|
replaceConsoleAndSetTransactionName('Account: Newsletters and Alerts')
|
|
17
17
|
/* start cra-effected */
|
|
18
|
-
const featureFlags = await
|
|
18
|
+
const featureFlags = await getAllFeatureFlags()
|
|
19
19
|
/* end cra-effected */
|
|
20
20
|
return getProviderProps(
|
|
21
21
|
{ ...context, provider: 'NewslettersAndAlerts' },
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
paymentMethodsMap,
|
|
7
7
|
DynamicPage,
|
|
8
8
|
} from '@newskit-render/my-account'
|
|
9
|
-
import {
|
|
9
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
10
10
|
|
|
11
11
|
const PaymentPage = (props) => {
|
|
12
12
|
return (
|
|
@@ -24,7 +24,7 @@ export default PaymentPage
|
|
|
24
24
|
export const getServerSideProps = async (context) => {
|
|
25
25
|
replaceConsoleAndSetTransactionName('Payment method')
|
|
26
26
|
/* start cra-effected */
|
|
27
|
-
const featureFlags = await
|
|
27
|
+
const featureFlags = await getAllFeatureFlags()
|
|
28
28
|
/* end cra-effected */
|
|
29
29
|
|
|
30
30
|
return getProviderProps(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
3
3
|
import { Payment, getProviderProps } from '@newskit-render/my-account'
|
|
4
|
-
import {
|
|
4
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
5
|
|
|
6
6
|
const AccountPayment = (props) => <Payment {...props} />
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ export default AccountPayment
|
|
|
10
10
|
export const getServerSideProps = async (context) => {
|
|
11
11
|
replaceConsoleAndSetTransactionName('Edit Payment method')
|
|
12
12
|
/* start cra-effected */
|
|
13
|
-
const featureFlags = await
|
|
13
|
+
const featureFlags = await getAllFeatureFlags()
|
|
14
14
|
/* end cra-effected */
|
|
15
15
|
|
|
16
16
|
return getProviderProps(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { getProviderProps, PaymentMethods } from '@newskit-render/my-account'
|
|
3
|
-
import {
|
|
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
6
|
|
|
@@ -12,7 +12,7 @@ export default AccountPaymentMethods
|
|
|
12
12
|
|
|
13
13
|
export const getServerSideProps = async (context) => {
|
|
14
14
|
replaceConsoleAndSetTransactionName('Account: Payment Methods')
|
|
15
|
-
const featureFlags = await
|
|
15
|
+
const featureFlags = await getAllFeatureFlags()
|
|
16
16
|
// create-render-app effected
|
|
17
17
|
return getProviderProps(
|
|
18
18
|
{ ...context, provider: 'PaymentMethods' },
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
SubscriptionAndBilling,
|
|
4
4
|
getProviderProps,
|
|
5
5
|
} from '@newskit-render/my-account'
|
|
6
|
-
import {
|
|
6
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
7
7
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
8
8
|
|
|
9
9
|
const AccountSubscriptionAndBilling = (props) => (
|
|
@@ -15,7 +15,7 @@ export default AccountSubscriptionAndBilling
|
|
|
15
15
|
export const getServerSideProps = async (context) => {
|
|
16
16
|
replaceConsoleAndSetTransactionName('Account: Subscription and Billing')
|
|
17
17
|
/* start cra-effected */
|
|
18
|
-
const featureFlags = await
|
|
18
|
+
const featureFlags = await getAllFeatureFlags()
|
|
19
19
|
/* end cra-effected */
|
|
20
20
|
const result = await getProviderProps(
|
|
21
21
|
{
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getProviderProps,
|
|
5
5
|
} from '@newskit-render/my-account'
|
|
6
6
|
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
7
|
-
import {
|
|
7
|
+
import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
|
|
8
8
|
|
|
9
9
|
const UserHub = (props) => <UserHubPage {...props} />
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ export default UserHub
|
|
|
13
13
|
export const getServerSideProps = async (context) => {
|
|
14
14
|
replaceConsoleAndSetTransactionName('Account: UserHub')
|
|
15
15
|
/* start cra-effected */
|
|
16
|
-
const featureFlags = await
|
|
16
|
+
const featureFlags = await getAllFeatureFlags()
|
|
17
17
|
/* end cra-effected */
|
|
18
18
|
return getProviderProps(
|
|
19
19
|
{ ...context, provider: 'PersonalDetails' },
|