@newskit-render/core 4.21.5 → 4.22.0-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/cypress/e2e/account/holiday-stop.cy.js +2 -2
- package/package.json +5 -5
- package/pages/account/delete/confirm/index.tsx +16 -0
- package/pages/account/delete/error/index.tsx +16 -0
- package/pages/account/delete/index.tsx +16 -0
- package/pages/account/delete/success/index.tsx +16 -0
- package/pages/account/family/index.tsx +20 -0
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.21.5](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.21.5-alpha.0...@newskit-render/core@4.21.5) (2024-01-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.21.4](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.21.4-alpha.0...@newskit-render/core@4.21.4) (2024-01-15)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @newskit-render/core
|
|
@@ -36,7 +36,7 @@ describe('Upcoming Holiday Stops', () => {
|
|
|
36
36
|
})
|
|
37
37
|
})
|
|
38
38
|
|
|
39
|
-
describe('Cancel Holiday Stop', () => {
|
|
39
|
+
describe.skip('Cancel Holiday Stop', () => {
|
|
40
40
|
beforeEach(() => {
|
|
41
41
|
cy.clock(Date.UTC(2022, 10, 30), ['Date'])
|
|
42
42
|
cy.GetTnlAcsSession('tnl')
|
|
@@ -61,7 +61,7 @@ describe('Cancel Holiday Stop', () => {
|
|
|
61
61
|
})
|
|
62
62
|
})
|
|
63
63
|
|
|
64
|
-
describe('Edit button Holiday Stop', () => {
|
|
64
|
+
describe.skip('Edit button Holiday Stop', () => {
|
|
65
65
|
beforeEach(() => {
|
|
66
66
|
cy.clock(Date.UTC(2022, 10, 30), ['Date'])
|
|
67
67
|
cy.GetTnlAcsSession('tnl')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.22.0-alpha.1",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@newrelic/winston-enricher": "4.0.1",
|
|
45
45
|
"@newskit-render/api": "^1.11.0",
|
|
46
46
|
"@newskit-render/auth": "^1.8.0",
|
|
47
|
-
"@newskit-render/checkout": "^3.9.
|
|
47
|
+
"@newskit-render/checkout": "^3.9.4-alpha.1",
|
|
48
48
|
"@newskit-render/feature-flags": "^1.7.0",
|
|
49
49
|
"@newskit-render/feed": "^1.8.5",
|
|
50
|
-
"@newskit-render/my-account": "^7.
|
|
51
|
-
"@newskit-render/shared-components": "^4.
|
|
52
|
-
"@newskit-render/standalone-components": "^3.19.
|
|
50
|
+
"@newskit-render/my-account": "^7.23.0-alpha.1",
|
|
51
|
+
"@newskit-render/shared-components": "^4.12.0-alpha.1",
|
|
52
|
+
"@newskit-render/standalone-components": "^3.19.4-alpha.1",
|
|
53
53
|
"@newskit-render/validation": "^1.13.0",
|
|
54
54
|
"cross-fetch": "3.1.5",
|
|
55
55
|
"graphql": "16.6.0",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import {
|
|
3
|
+
ConfirmAccountDeletion,
|
|
4
|
+
getProviderProps,
|
|
5
|
+
} from '@newskit-render/my-account'
|
|
6
|
+
import { replaceConsoleAndSetTransactionName } from '../../../../helpers/logger'
|
|
7
|
+
|
|
8
|
+
const ConfirmDeletion = (props) => <ConfirmAccountDeletion {...props} />
|
|
9
|
+
|
|
10
|
+
export default ConfirmDeletion
|
|
11
|
+
|
|
12
|
+
export const getServerSideProps = async (context) => {
|
|
13
|
+
replaceConsoleAndSetTransactionName('Account: Deletion - Confirmation')
|
|
14
|
+
|
|
15
|
+
return getProviderProps({ ...context })
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import {
|
|
3
|
+
AccountDeletionError,
|
|
4
|
+
getProviderProps,
|
|
5
|
+
} from '@newskit-render/my-account'
|
|
6
|
+
import { replaceConsoleAndSetTransactionName } from '../../../../helpers/logger'
|
|
7
|
+
|
|
8
|
+
const Error = (props) => <AccountDeletionError {...props} />
|
|
9
|
+
|
|
10
|
+
export default Error
|
|
11
|
+
|
|
12
|
+
export const getServerSideProps = async (context) => {
|
|
13
|
+
replaceConsoleAndSetTransactionName('Account: Deletion - Error')
|
|
14
|
+
|
|
15
|
+
return getProviderProps({ ...context })
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import {
|
|
3
|
+
InitiateAccountDeletion,
|
|
4
|
+
getProviderProps,
|
|
5
|
+
} from '@newskit-render/my-account'
|
|
6
|
+
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
7
|
+
|
|
8
|
+
const AccountDeletion = (props) => <InitiateAccountDeletion {...props} />
|
|
9
|
+
|
|
10
|
+
export default AccountDeletion
|
|
11
|
+
|
|
12
|
+
export const getServerSideProps = async (context) => {
|
|
13
|
+
replaceConsoleAndSetTransactionName('Account: Deletion')
|
|
14
|
+
|
|
15
|
+
return getProviderProps({ ...context })
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import {
|
|
3
|
+
AccountDeletionSuccess,
|
|
4
|
+
getProviderProps,
|
|
5
|
+
} from '@newskit-render/my-account'
|
|
6
|
+
import { replaceConsoleAndSetTransactionName } from '../../../../helpers/logger'
|
|
7
|
+
|
|
8
|
+
const Success = (props) => <AccountDeletionSuccess {...props} />
|
|
9
|
+
|
|
10
|
+
export default Success
|
|
11
|
+
|
|
12
|
+
export const getServerSideProps = async (context) => {
|
|
13
|
+
replaceConsoleAndSetTransactionName('Account: Deletion - Success')
|
|
14
|
+
|
|
15
|
+
return getProviderProps({ ...context })
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Family, getProviderProps } from '@newskit-render/my-account'
|
|
3
|
+
import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
|
|
4
|
+
import { initAndGetFeatureFlag } from '@newskit-render/feature-flags' /* cra-effected */
|
|
5
|
+
import { optimizelysdkKey } from '../../../config' /* cra-effected */
|
|
6
|
+
|
|
7
|
+
const AccountFamily = (props) => <Family {...props} />
|
|
8
|
+
|
|
9
|
+
export default AccountFamily
|
|
10
|
+
|
|
11
|
+
export const getServerSideProps = async (context) => {
|
|
12
|
+
replaceConsoleAndSetTransactionName('Account: Family')
|
|
13
|
+
/* start cra-effected */
|
|
14
|
+
const featureFlags = await initAndGetFeatureFlag(optimizelysdkKey)
|
|
15
|
+
/* end cra-effected */
|
|
16
|
+
return getProviderProps(
|
|
17
|
+
{ ...context, provider: 'GroupAccounts' },
|
|
18
|
+
{ featureFlags } /* cra-effected */
|
|
19
|
+
)
|
|
20
|
+
}
|