@newskit-render/core 1.54.0 → 1.66.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 +291 -0
- package/__pacts__/spec/newskitApi.consumer.pact.ts +19 -32
- package/__tests__/pages/[articleSlug].test.tsx +6 -8
- package/__tests__/pages/__snapshots__/brightcove.test.tsx.snap +20 -0
- package/__tests__/pages/__snapshots__/home.test.tsx.snap +139 -139
- package/__tests__/pages/brightcove.test.tsx +34 -0
- package/__tests__/pages/home.test.tsx +22 -18
- package/__tests__/pages/mocks.ts +29 -0
- package/__tests__/pages/relatedArticles.test.tsx +76 -0
- package/components/article/RelatedArticles.tsx +48 -55
- package/components/article/__tests__/__snapshots__/index.test.tsx.snap +305 -308
- package/components/article/__tests__/index.test.tsx +46 -2
- package/components/article/index.tsx +28 -15
- package/components/footer/__snapshots__/index.test.tsx.snap +29 -29
- package/components/section/layouts/Rows.tsx +36 -17
- package/components/section/layouts/__tests__/Rows.test.tsx +12 -0
- package/components/section/layouts/__tests__/__snapshots__/Lead.test.tsx.snap +17 -17
- package/components/section/layouts/__tests__/__snapshots__/SectionTitle.test.tsx.snap +23 -23
- package/components/section/layouts/types.ts +3 -0
- package/config/index.ts +85 -0
- package/constants/index.ts +3 -1
- package/cypress/e2e/account/accessibility.spec.js +14 -17
- package/helpers/logger.ts +3 -1
- package/helpers/mocks/articleMock.ts +1 -1
- package/helpers/mocks/getUniversalArticleMock.ts +13 -0
- package/infrastructure/helm/values-dev.yaml +1 -1
- package/infrastructure/helm/values-pr.yaml +1 -1
- package/infrastructure/helm/values-prod.yaml +1 -1
- package/jest.config.js +1 -0
- package/package.json +11 -11
- package/pages/[section]/[articleId]/[articleSlug].tsx +9 -4
- package/pages/[section]/[articleId]/relatedArticles.tsx +85 -0
- package/pages/_app.tsx +5 -3
- package/pages/_document.tsx +17 -18
- package/pages/api/auth/[...nextauth].ts +2 -3
- package/pages/api/feed.ts +3 -5
- package/pages/api/news-sitemap.ts +4 -6
- package/pages/api/sitemap.ts +10 -7
- package/pages/index.tsx +1 -0
- package/pages/player/brightcove.tsx +19 -0
- package/pages/preview/[articleId]/version/[versionId]/index.tsx +9 -4
- package/queries/getRadioPosts.ts +1 -1
- package/queries/getUniversalArticle.ts +13 -0
- package/temp/header.tsx +7 -0
package/temp/header.tsx
CHANGED
|
@@ -121,6 +121,13 @@ const pastDueBanner = {
|
|
|
121
121
|
text:
|
|
122
122
|
'You have cancelled your subscription and will lose access to all benefits on ##DATE##. To re-activate your subscription call ##PHONE_NUMBER##.',
|
|
123
123
|
},
|
|
124
|
+
toBeCancelledWithRefund: {
|
|
125
|
+
title: 'Your subscription will end soon.',
|
|
126
|
+
phoneNumber: '0800 xxxx xxxxx',
|
|
127
|
+
text:
|
|
128
|
+
'We have successfully cancelled your subscription and will be processing your refund shortly. If you have any question please call ##PHONE_NUMBER##.',
|
|
129
|
+
dismissDays: 7,
|
|
130
|
+
},
|
|
124
131
|
treshold: {
|
|
125
132
|
firstNotice: 26,
|
|
126
133
|
secondNotice: 30,
|