@newskit-render/core 0.0.0-d55b7d88 → 0.0.0-dacb59508

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 (31) hide show
  1. package/CHANGELOG.md +400 -0
  2. package/__tests__/pages/__snapshots__/home.test.tsx.snap +1 -4
  3. package/components/article/__tests__/__snapshots__/index.test.tsx.snap +1 -4
  4. package/cypress/e2e/account/newsletters-page.cy.js +21 -2
  5. package/cypress/e2e/account/personal-details.cy.js +57 -39
  6. package/cypress/e2e/account/subscription-and-billing.cy.js +6 -5
  7. package/cypress/support/blaizeJwtValues.js +3 -0
  8. package/cypress/support/commands.js +8 -3
  9. package/cypress/support/users.js +7 -7
  10. package/helpers/getProviderPropsUtil.ts +17 -0
  11. package/package.json +10 -10
  12. package/pages/account/add/[field].tsx +11 -2
  13. package/pages/account/cancellation/index.tsx +5 -4
  14. package/pages/account/delete/confirm/index.tsx +3 -5
  15. package/pages/account/delete/error/index.tsx +3 -5
  16. package/pages/account/delete/index.tsx +3 -5
  17. package/pages/account/delete/success/index.tsx +3 -5
  18. package/pages/account/dream-team/index.tsx +5 -4
  19. package/pages/account/edit/[field].tsx +4 -4
  20. package/pages/account/family/index.tsx +9 -5
  21. package/pages/account/holiday-stop/index.tsx +5 -4
  22. package/pages/account/holiday-stop/previous-holiday-stops.tsx +3 -2
  23. package/pages/account/holiday-stop/upcoming-holiday-stops.tsx +3 -2
  24. package/pages/account/index.tsx +5 -6
  25. package/pages/account/newsletters/index.tsx +5 -4
  26. package/pages/account/newsletters-and-alerts/index.tsx +5 -7
  27. package/pages/account/payment/[paymentMethod].tsx +4 -4
  28. package/pages/account/payment/index.tsx +5 -4
  29. package/pages/account/payment-methods/index.tsx +5 -4
  30. package/pages/account/subscription-and-billing/index.tsx +5 -7
  31. package/pages/account/user-hub/index.tsx +20 -0
@@ -0,0 +1,20 @@
1
+ import React from 'react'
2
+ import { UserHub as UserHubPage } from '@newskit-render/my-account'
3
+ import { replaceConsoleAndSetTransactionName } from '../../../helpers/logger'
4
+ import { getAllFeatureFlags } from '@newskit-render/feature-flags' /* cra-effected */
5
+ import { getProviderPropsUtil } from '../../../helpers/getProviderPropsUtil'
6
+
7
+ const UserHub = (props) => <UserHubPage {...props} />
8
+
9
+ export default UserHub
10
+
11
+ export const getServerSideProps = async (context) => {
12
+ replaceConsoleAndSetTransactionName('Account: UserHub')
13
+ /* start cra-effected */
14
+ const featureFlags = await getAllFeatureFlags()
15
+ /* end cra-effected */
16
+ return getProviderPropsUtil(
17
+ { ...context, provider: 'PersonalDetails' },
18
+ { featureFlags } /* cra-effected */
19
+ )
20
+ }