@newskit-render/core 4.22.0-alpha.0 → 4.22.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "4.22.0
|
|
3
|
+
"version": "4.22.0",
|
|
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.4
|
|
47
|
+
"@newskit-render/checkout": "^3.9.4",
|
|
48
48
|
"@newskit-render/feature-flags": "^1.7.0",
|
|
49
49
|
"@newskit-render/feed": "^1.8.5",
|
|
50
|
-
"@newskit-render/my-account": "^7.23.0
|
|
51
|
-
"@newskit-render/shared-components": "^4.12.0
|
|
52
|
-
"@newskit-render/standalone-components": "^3.19.4
|
|
50
|
+
"@newskit-render/my-account": "^7.23.0",
|
|
51
|
+
"@newskit-render/shared-components": "^4.12.0",
|
|
52
|
+
"@newskit-render/standalone-components": "^3.19.4",
|
|
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
|
+
}
|