@newskit-render/core 4.58.8-132a38b46.3 → 4.59.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 +19 -0
- package/next.config.js +8 -0
- package/package.json +6 -6
- package/pages/account/sun-cancel/index.tsx +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.59.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.58.8...@newskit-render/core@4.59.0) (2026-02-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **SVRS-5827:** OCJ Display Retention Offers Hardcoded ([#1997](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/1997)) ([f7a538d](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/f7a538d2bd181219dee1e5ae2cbdfed9cb878c86))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.58.8](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.58.7...@newskit-render/core@4.58.8) (2026-02-11)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [4.58.7](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@4.58.6...@newskit-render/core@4.58.7) (2026-02-06)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @newskit-render/core
|
package/next.config.js
CHANGED
|
@@ -87,6 +87,14 @@ module.exports = (phase) => {
|
|
|
87
87
|
source: '/robots.txt',
|
|
88
88
|
destination: '/api/robots',
|
|
89
89
|
},
|
|
90
|
+
{
|
|
91
|
+
source: '/api/gateway/:path*',
|
|
92
|
+
destination: `${process.env.API_GATEWAY_URL}/:path*`,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
source: '/api/tron/:path*',
|
|
96
|
+
destination: `${process.env.TRON_API_URL}/:path*`,
|
|
97
|
+
},
|
|
90
98
|
]
|
|
91
99
|
},
|
|
92
100
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.59.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.18.0",
|
|
46
46
|
"@newskit-render/auth": "^1.10.0",
|
|
47
|
-
"@newskit-render/checkout": "^3.13.
|
|
47
|
+
"@newskit-render/checkout": "^3.13.20",
|
|
48
48
|
"@newskit-render/feature-flags": "^1.15.0",
|
|
49
49
|
"@newskit-render/feed": "^1.10.0",
|
|
50
|
-
"@newskit-render/my-account": "^7.
|
|
51
|
-
"@newskit-render/shared-components": "^4.72.
|
|
52
|
-
"@newskit-render/standalone-components": "^3.28.
|
|
50
|
+
"@newskit-render/my-account": "^7.170.0",
|
|
51
|
+
"@newskit-render/shared-components": "^4.72.1",
|
|
52
|
+
"@newskit-render/standalone-components": "^3.28.7",
|
|
53
53
|
"@newskit-render/validation": "^1.23.0",
|
|
54
54
|
"cross-fetch": "3.1.5",
|
|
55
55
|
"graphql": "16.6.0",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"@types/pino-std-serializers": "2.4.1",
|
|
124
124
|
"@types/pino-pretty": "4.7.5"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "fed9d1dd5f160739c8318339b4fbd747d6ebcb20"
|
|
127
127
|
}
|
|
@@ -7,8 +7,14 @@ const AccountSunCancellation = (props) => <SunCancellationFlow {...props} />
|
|
|
7
7
|
|
|
8
8
|
export default AccountSunCancellation
|
|
9
9
|
|
|
10
|
+
// Example promo codes - consumer projects should configure these from environment/config
|
|
11
|
+
const RETENTION_PROMO_CODES = ['SMSC108', 'SMSC101']
|
|
12
|
+
|
|
10
13
|
export const getServerSideProps = async (context) => {
|
|
11
14
|
replaceConsoleAndSetTransactionName('Account: Sun Cancellation')
|
|
12
15
|
|
|
13
|
-
return getProviderPropsUtil(
|
|
16
|
+
return getProviderPropsUtil(
|
|
17
|
+
{ ...context, provider: 'SunCancellation' },
|
|
18
|
+
{ retentionPromoCodes: RETENTION_PROMO_CODES }
|
|
19
|
+
)
|
|
14
20
|
}
|