@newskit-render/core 1.34.0 → 1.42.3

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/__tests__/pages/__snapshots__/home.test.tsx.snap +42 -45
  3. package/app-context/AppContext.test.tsx +0 -12
  4. package/components/{404/404.tsx → ErrorPage/ErrorPage.tsx} +10 -6
  5. package/components/article/__tests__/index.test.tsx +2 -2
  6. package/components/article/index.tsx +5 -3
  7. package/components/header/index.tsx +7 -3
  8. package/components/section/ArticleSlice.tsx +1 -1
  9. package/components/section/__tests__/ArticleSlice.test.tsx +12 -11
  10. package/components/section/__tests__/CollectionBlock.test.tsx +1 -1
  11. package/components/section/__tests__/sectionUtils.test.ts +12 -9
  12. package/components/section/layouts/__tests__/Lead.test.tsx +2 -1
  13. package/components/section/layouts/__tests__/SectionRow.test.tsx +6 -5
  14. package/components/section/layouts/__tests__/__snapshots__/Lead.test.tsx.snap +2 -2
  15. package/components/section/layouts/__tests__/__snapshots__/SectionRow.test.tsx.snap +143 -58
  16. package/components/section/sectionUtils.ts +6 -6
  17. package/cypress/e2e/account/account-subscription.spec.js +222 -0
  18. package/cypress/e2e/account/payment-failer.spec.js +137 -0
  19. package/cypress/support/commands.js +28 -3
  20. package/helpers/global-types.ts +2 -2
  21. package/helpers/mocks/getPageMock.ts +59 -35
  22. package/infrastructure/.circleci/config.yml +3 -2
  23. package/package.json +9 -9
  24. package/pages/[section]/index.tsx +18 -7
  25. package/pages/_error.tsx +18 -2
  26. package/pages/preview/[articleId]/version/[versionId]/index.tsx +17 -15
  27. package/public/MyAccount/pending-activation.svg +16 -0
  28. package/queries/getPage.ts +1 -1
  29. package/temp/header.tsx +7 -3
  30. package/app-context/__snapshots__/AppContext.test.tsx.snap +0 -3
package/temp/header.tsx CHANGED
@@ -100,17 +100,21 @@ const pastDueBanner = {
100
100
  },
101
101
  terminated: {
102
102
  title: 'Your subscription has been terminated',
103
+ phoneNumber: 'XXXX-XXX-XXXX',
103
104
  text:
104
- 'We didn’t receive payment for your subscription. To reactivate it, please call 0800 018 5177.',
105
+ 'We didn’t receive payment for your subscription. To reactivate it, please call ##PHONE_NUMBER##.',
106
+ dismissDays: 7,
105
107
  },
106
108
  cancelled: {
107
109
  title: 'Your subscription has been cancelled.',
110
+ phoneNumber: 'XXXX-XXX-XXXX',
108
111
  text:
109
- 'You’ll no longer have access to subscription benefits. To re-activate call 0800 555 1234.',
112
+ 'You’ll no longer have access to subscription benefits. To re-activate call ##PHONE_NUMBER##.',
113
+ dismissDays: 7,
110
114
  },
111
115
  toBeCancelled: {
112
116
  title: 'Your subscription will end soon.',
113
- phoneNumber: '0800 555 1234',
117
+ phoneNumber: 'XXXX-XXX-XXXX',
114
118
  text:
115
119
  'You have cancelled your subscription and will lose access to all benefits on ##DATE##. To re-activate your subscription call ##PHONE_NUMBER##.',
116
120
  },
@@ -1,3 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`AppContext tests renders the content without error 1`] = `"<div>Test</div>"`;