@newskit-render/core 1.13.3 → 1.22.1
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/.eslintignore +5 -1
- package/.eslintrc +1 -1
- package/CHANGELOG.md +212 -0
- package/__tests__/pages/[articleSlug].test.tsx +1 -1
- package/__tests__/pages/__snapshots__/home.test.tsx.snap +175 -324
- package/__tests__/pages/home.test.tsx +1 -0
- package/applitools.config.js +9 -0
- package/components/article/__tests__/__snapshots__/index.test.tsx.snap +279 -517
- package/components/footer/__snapshots__/index.test.tsx.snap +7 -11
- package/components/header/index.test.tsx +1 -1
- package/components/header/index.tsx +60 -30
- package/components/section/__tests__/ArticleSlice.test.tsx +32 -24
- package/components/section/layouts/__tests__/__snapshots__/Lead.test.tsx.snap +30 -50
- package/components/section/layouts/__tests__/__snapshots__/SectionRow.test.tsx.snap +205 -358
- package/cypress/config/config.e2e.json +14 -0
- package/cypress/config/config.visual.json +8 -0
- package/cypress/e2e/account/SkipToContent.spec.js +12 -0
- package/cypress/e2e/account/accessibility.spec.js +69 -0
- package/cypress/e2e/account/account-page.spec.js +339 -0
- package/cypress/e2e/account/commenting-notifications.spec.js +44 -0
- package/cypress/e2e/account/main-api.spec.js +93 -0
- package/cypress/e2e/account/payment-page.spec.js +42 -0
- package/cypress/{integration → e2e/core}/home-page.spec.js +0 -0
- package/cypress/plugins/index.js +31 -0
- package/cypress/support/commands.js +48 -25
- package/cypress/support/index.js +2 -0
- package/cypress/visual/account/visual-regression.spec.js +31 -0
- package/helpers/a11y.ts +8 -6
- package/helpers/mocks/articleMock.ts +8 -4
- package/helpers/mocks/getRadioPostMock.ts +4 -2
- package/helpers/mocks/getUniversalArticleMock.ts +8 -4
- package/infrastructure/.circleci/config.yml +2 -2
- package/package.json +60 -54
- package/pages/[section]/[articleId]/[articleSlug].tsx +1 -0
- package/pages/[section]/index.tsx +1 -0
- package/pages/_app.tsx +216 -13
- package/pages/_document.tsx +27 -14
- package/pages/checkout/account-creation/index.tsx +9 -1
- package/pages/index.tsx +1 -0
- package/public/MyAccount/primary-navigation-logo-white.svg +6 -0
- package/public/fonts/bitter-medium.woff +0 -0
- package/public/fonts/bitter-medium.woff2 +0 -0
- package/public/fonts/bitter-mediumitalic.woff +0 -0
- package/public/fonts/bitter-mediumitalic.woff2 +0 -0
- package/public/fonts/bitter-regular.woff +0 -0
- package/public/fonts/bitter-regular.woff2 +0 -0
- package/public/fonts/bitter-semibold.woff +0 -0
- package/public/fonts/bitter-semibold.woff2 +0 -0
- package/public/fonts/dmmono-medium.woff +0 -0
- package/public/fonts/dmmono-medium.woff2 +0 -0
- package/public/fonts/dmsans-bold-webfont.woff +0 -0
- package/public/fonts/dmsans-bold-webfont.woff2 +0 -0
- package/public/fonts/dmsans-bolditalic-webfont.woff +0 -0
- package/public/fonts/dmsans-bolditalic-webfont.woff2 +0 -0
- package/public/fonts/dmsans-italic-webfont.woff +0 -0
- package/public/fonts/dmsans-italic-webfont.woff2 +0 -0
- package/public/fonts/dmsans-medium-webfont.woff +0 -0
- package/public/fonts/dmsans-medium-webfont.woff2 +0 -0
- package/public/fonts/dmsans-mediumitalic-webfont.woff +0 -0
- package/public/fonts/dmsans-mediumitalic-webfont.woff2 +0 -0
- package/public/fonts/dmsans-regular-webfont.woff +0 -0
- package/public/fonts/dmsans-regular-webfont.woff2 +0 -0
- package/public/fonts/notosans-bold-webfont.woff +0 -0
- package/public/fonts/notosans-bold-webfont.woff2 +0 -0
- package/public/fonts/notosans-italic-webfont.woff +0 -0
- package/public/fonts/notosans-italic-webfont.woff2 +0 -0
- package/public/fonts/notosans-medium-webfont.woff +0 -0
- package/public/fonts/notosans-medium-webfont.woff2 +0 -0
- package/public/fonts/notosans-regular-webfont.woff +0 -0
- package/public/fonts/notosans-regular-webfont.woff2 +0 -0
- package/public/fonts/poppins-bold-webfont.woff +0 -0
- package/public/fonts/poppins-bold-webfont.woff2 +0 -0
- package/public/fonts/poppins-bolditalic-webfont.woff +0 -0
- package/public/fonts/poppins-bolditalic-webfont.woff2 +0 -0
- package/public/fonts/poppins-extrabold-webfont.woff +0 -0
- package/public/fonts/poppins-extrabold-webfont.woff2 +0 -0
- package/public/fonts/poppins-extrabolditalic-webfont.woff +0 -0
- package/public/fonts/poppins-extrabolditalic-webfont.woff2 +0 -0
- package/public/fonts/poppins-italic-webfont.woff +0 -0
- package/public/fonts/poppins-italic-webfont.woff2 +0 -0
- package/public/fonts/poppins-light-webfont.woff +0 -0
- package/public/fonts/poppins-light-webfont.woff2 +0 -0
- package/public/fonts/poppins-lightitalic-webfont.woff +0 -0
- package/public/fonts/poppins-lightitalic-webfont.woff2 +0 -0
- package/public/fonts/poppins-medium-webfont.woff +0 -0
- package/public/fonts/poppins-medium-webfont.woff2 +0 -0
- package/public/fonts/poppins-mediumitalic-webfont.woff +0 -0
- package/public/fonts/poppins-mediumitalic-webfont.woff2 +0 -0
- package/public/fonts/poppins-regular-webfont.woff +0 -0
- package/public/fonts/poppins-regular-webfont.woff2 +0 -0
- package/public/fonts/poppins-semibold-webfont.woff +0 -0
- package/public/fonts/poppins-semibold-webfont.woff2 +0 -0
- package/public/fonts/poppins-semibolditalic-webfont.woff +0 -0
- package/public/fonts/poppins-semibolditalic-webfont.woff2 +0 -0
- package/public/fonts/source-serif-pro-600.woff +0 -0
- package/public/fonts/source-serif-pro-600.woff2 +0 -0
- package/public/fonts/source-serif-pro-600italic.woff +0 -0
- package/public/fonts/source-serif-pro-600italic.woff2 +0 -0
- package/public/fonts/source-serif-pro-700.woff +0 -0
- package/public/fonts/source-serif-pro-700.woff2 +0 -0
- package/public/fonts/source-serif-pro-700italic.woff +0 -0
- package/public/fonts/source-serif-pro-700italic.woff2 +0 -0
- package/public/fonts/source-serif-pro-italic.woff +0 -0
- package/public/fonts/source-serif-pro-italic.woff2 +0 -0
- package/public/fonts/source-serif-pro-regular.woff +0 -0
- package/public/fonts/source-serif-pro-regular.woff2 +0 -0
- package/public/prebid.min.js +1 -0
- package/temp/_document.tsx +1 -1
- package/theme/colours.json +4 -0
- package/theme/render-custom-theme.ts +5 -2
- package/tsconfig.json +4 -1
- package/helpers/articleUtil.ts +0 -4
package/pages/_document.tsx
CHANGED
|
@@ -32,6 +32,13 @@ export default class MyDocument extends Document {
|
|
|
32
32
|
|
|
33
33
|
render() {
|
|
34
34
|
const helmet = Helmet.rewind()
|
|
35
|
+
const showAds =
|
|
36
|
+
this.props.__NEXT_DATA__.props.pageProps &&
|
|
37
|
+
this.props.__NEXT_DATA__.props.pageProps.showAds
|
|
38
|
+
? this.props.__NEXT_DATA__.props.pageProps.showAds
|
|
39
|
+
: false
|
|
40
|
+
|
|
41
|
+
const { featureFlags } = this.props.__NEXT_DATA__.props
|
|
35
42
|
return (
|
|
36
43
|
<Html lang="en">
|
|
37
44
|
<Head>
|
|
@@ -46,12 +53,14 @@ export default class MyDocument extends Document {
|
|
|
46
53
|
),
|
|
47
54
|
}}
|
|
48
55
|
/>
|
|
49
|
-
{EXPERIMENTATION_WEB &&
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
{EXPERIMENTATION_WEB &&
|
|
57
|
+
featureFlags &&
|
|
58
|
+
featureFlags.experimentation_web_flag && (
|
|
59
|
+
<ExperimentationWeb
|
|
60
|
+
optimizelyWebConfig={{ scriptCdn: EXPERIMENTATION_WEB }}
|
|
61
|
+
reactHelmet={Helmet}
|
|
62
|
+
/>
|
|
63
|
+
)}
|
|
55
64
|
{helmet.script.toComponent()}
|
|
56
65
|
{SOURCEPOINT_ACCOUNT_ID && (
|
|
57
66
|
<Consent
|
|
@@ -62,14 +71,18 @@ export default class MyDocument extends Document {
|
|
|
62
71
|
/>
|
|
63
72
|
)}
|
|
64
73
|
<meta name="robots" content="noindex" />
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
{showAds && (
|
|
75
|
+
<>
|
|
76
|
+
<script
|
|
77
|
+
type="text/javascript"
|
|
78
|
+
src="https://ads.newskit.co.uk/prebid.newskit.min.js"
|
|
79
|
+
/>
|
|
80
|
+
<script
|
|
81
|
+
type="text/javascript"
|
|
82
|
+
src="https://ads.newskit.co.uk/ads.newskit.min.js"
|
|
83
|
+
/>
|
|
84
|
+
</>
|
|
85
|
+
)}
|
|
73
86
|
</Head>
|
|
74
87
|
<body>
|
|
75
88
|
{TEALIUM_ACCOUNT_ID && (
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { AccountCreation, getProviderProps } from '@newskit-render/checkout'
|
|
2
2
|
import React, { useContext } from 'react'
|
|
3
3
|
import { AppContext } from '../../../app-context/AppContext'
|
|
4
|
+
import validation from '../../../validation'
|
|
4
5
|
|
|
5
6
|
const AccountCreationPage = (props) => {
|
|
6
7
|
const { theme, setTheme } = useContext(AppContext)
|
|
7
|
-
return
|
|
8
|
+
return (
|
|
9
|
+
<AccountCreation
|
|
10
|
+
{...props}
|
|
11
|
+
customTheme={theme}
|
|
12
|
+
setTheme={setTheme}
|
|
13
|
+
validation={validation}
|
|
14
|
+
/>
|
|
15
|
+
)
|
|
8
16
|
}
|
|
9
17
|
|
|
10
18
|
export default AccountCreationPage
|
package/pages/index.tsx
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="1556" height="250" viewBox="0 0 1556 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M557.244 208.26V112.968L633.653 210.723C634.411 211.693 635.573 212.26 636.804 212.26H674.574C676.783 212.26 678.574 210.469 678.574 208.26V35.2598C678.574 33.0506 676.783 31.2598 674.574 31.2598H632.904C630.695 31.2598 628.904 33.0506 628.904 35.2598V126.931L555.6 32.8021C554.842 31.8289 553.677 31.2598 552.444 31.2598H511.574C509.365 31.2598 507.574 33.0506 507.574 35.2598V208.26C507.574 210.469 509.365 212.26 511.574 212.26H553.244C555.453 212.26 557.244 210.469 557.244 208.26ZM1410.57 79.7598C1425.76 79.7598 1438.07 67.4476 1438.07 52.2598C1438.07 37.0719 1425.76 24.7598 1410.57 24.7598C1395.39 24.7598 1383.07 37.0719 1383.07 52.2598C1383.07 67.4476 1395.39 79.7598 1410.57 79.7598ZM770.601 215.26C796.878 215.26 815.695 205.034 829.045 189.435C829.759 188.6 830.295 186.186 828.902 185.035L806.727 166.716C805.032 165.316 802.332 166.011 801.518 166.741C792.385 174.934 783.857 178.631 772.93 178.631C757.666 178.631 746.541 170.892 742.66 155.673H831.356C833.009 155.673 836.574 154.356 836.574 151.64V145.613C836.574 104.599 814.324 69.2598 766.203 69.2598C724.809 69.2598 695.574 101.504 695.574 142.26V142.776C695.574 185.853 726.62 215.26 770.601 215.26ZM791.574 130.26H742.574C745.167 114.954 753.981 105.26 766.944 105.26C780.426 105.26 789.759 114.954 791.574 130.26ZM921.952 209.479L943.352 142.58C943.521 142.054 944.084 141.764 944.61 141.932C944.92 142.031 945.162 142.275 945.259 142.586L966.175 209.454C966.697 211.123 968.243 212.26 969.992 212.26H1006.47C1008.23 212.26 1009.78 211.114 1010.29 209.434L1050.98 76.9497C1051.63 74.8379 1050.45 72.6002 1048.34 71.9516C1047.95 71.8347 1047.56 71.7753 1047.16 71.7753H1008.36C1006.55 71.7753 1004.97 72.9929 1004.5 74.7433L987.333 139.026C987.19 139.559 986.642 139.876 986.108 139.734C985.775 139.645 985.511 139.39 985.41 139.059L965.591 74.0926C965.078 72.4096 963.525 71.2598 961.765 71.2598H927.376C925.62 71.2598 924.069 72.4058 923.553 74.0848L903.751 138.527C903.588 139.055 903.029 139.351 902.501 139.189C902.17 139.087 901.915 138.821 901.827 138.486L885.155 74.7628C884.694 73.0029 883.104 71.7753 881.285 71.7753H841.968C839.759 71.7753 837.968 73.5662 837.968 75.7753C837.968 76.1689 838.026 76.5603 838.14 76.9368L878.344 209.421C878.856 211.107 880.41 212.26 882.172 212.26H918.142C919.881 212.26 921.422 211.135 921.952 209.479ZM1117.47 215.26C1151.58 215.26 1174.57 199.21 1174.57 168.405V167.887C1174.57 143.425 1156.78 133.22 1133.07 125.763L1131.48 125.269C1130.95 125.106 1130.41 124.944 1129.87 124.783L1128.25 124.304L1126.61 123.831L1124.96 123.363L1120.57 122.02L1118.76 121.454L1117.46 121.039L1116.21 120.631L1115.01 120.229L1113.85 119.831L1113.11 119.568L1112.4 119.306L1111.7 119.045L1111.03 118.784L1110.38 118.523L1109.76 118.262L1109.16 117.999C1109.06 117.956 1108.96 117.912 1108.87 117.868L1108.3 117.604C1108.12 117.516 1107.94 117.428 1107.76 117.339L1107.24 117.072C1107.16 117.027 1107.08 116.982 1106.99 116.937L1106.51 116.666C1106.36 116.575 1106.21 116.484 1106.06 116.392L1105.63 116.115C1103.39 114.627 1102.22 112.984 1102.22 110.937V110.419C1102.22 106.277 1106.1 103.43 1113.59 103.43C1123.96 103.43 1138.37 107.71 1152 115.009L1152.74 115.407L1152.85 115.447L1153 115.492L1153.19 115.534C1153.26 115.548 1153.33 115.56 1153.4 115.571L1153.64 115.597C1154.43 115.656 1155.49 115.479 1155.94 114.382L1157.06 110.993L1157.99 108.123L1159.64 102.962L1161.38 97.4313L1162.8 92.8423L1165.48 84.12C1165.91 82.7315 1165.35 81.9883 1164.92 81.6458L1164.8 81.5548L1164.69 81.4863L1164.64 81.4601C1149.68 73.5718 1131.75 69.2598 1114.11 69.2598C1081.81 69.2598 1058.03 85.8271 1058.03 115.597V116.114C1058.03 139.878 1073.9 150.176 1095.64 157.182L1097.19 157.671L1098.75 158.15C1099.28 158.308 1099.8 158.465 1100.33 158.62L1101.93 159.081L1103.54 159.534L1105.17 159.981L1106.82 160.421C1107.1 160.494 1107.37 160.567 1107.65 160.639L1111.15 161.628L1113.48 162.3L1115.24 162.82L1116.5 163.203L1117.31 163.455L1118.49 163.831L1119.24 164.079L1119.97 164.327L1120.68 164.575L1121.36 164.823L1122.01 165.071C1122.12 165.112 1122.23 165.154 1122.33 165.195L1122.96 165.445C1123.06 165.487 1123.16 165.528 1123.26 165.57L1123.84 165.822L1124.4 166.076L1124.94 166.333L1125.45 166.592C1128.7 168.288 1130.39 170.193 1130.39 172.806V173.324C1130.39 178.242 1126.25 180.831 1117.73 180.831C1104.01 180.831 1087.75 175.951 1072.46 166.411L1071.72 165.945C1071.67 165.915 1071.61 165.883 1071.56 165.851L1071.37 165.754L1071.17 165.661C1070.49 165.379 1069.57 165.25 1069.06 166.163L1059.35 195.529L1059.02 196.498C1058.37 198.363 1059.72 199.683 1060.38 200.07C1077.63 210.196 1097.45 215.26 1117.47 215.26ZM1247.66 207.26V164.586C1247.66 164.338 1247.75 164.098 1247.92 163.914L1265.13 144.97C1265.5 144.562 1266.14 144.532 1266.55 144.903C1266.6 144.956 1266.66 145.016 1266.7 145.081L1310.49 209.508C1311.23 210.604 1312.47 211.26 1313.8 211.26H1363.99C1366.2 211.26 1367.99 209.469 1367.99 207.26C1367.99 206.454 1367.75 205.667 1367.29 205.002L1301.28 108.474C1301.02 108.096 1301.05 107.591 1301.35 107.248L1363.39 36.9055C1364.85 35.2487 1364.69 32.721 1363.04 31.2598C1362.3 30.6154 1361.36 30.2598 1360.39 30.2598H1311.98C1310.81 30.2598 1309.69 30.7745 1308.93 31.6678L1249.42 101.623C1249.06 102.044 1248.43 102.095 1248.01 101.737C1247.79 101.547 1247.66 101.269 1247.66 100.975V34.2598C1247.66 32.0506 1245.87 30.2598 1243.66 30.2598H1201.57C1199.36 30.2598 1197.57 32.0506 1197.57 34.2598V207.26C1197.57 209.469 1199.36 211.26 1201.57 211.26H1243.66C1245.87 211.26 1247.66 209.469 1247.66 207.26ZM1435.57 207.26V99.8423C1435.57 97.6331 1433.78 95.8423 1431.57 95.8423H1390.57C1388.36 95.8423 1386.57 97.6331 1386.57 99.8423V207.26C1386.57 209.469 1388.36 211.26 1390.57 211.26H1431.57C1433.78 211.26 1435.57 209.469 1435.57 207.26ZM1520.92 214.26C1533.29 214.26 1543.98 211.524 1552.4 207.383L1553.02 207.077L1553.18 206.987L1553.36 206.88C1554.1 206.413 1555.06 205.475 1555.06 203.346V170.614C1555.06 168.925 1553.71 168.752 1552.71 168.922L1552.48 168.966C1552.45 168.975 1552.41 168.983 1552.38 168.992L1552.18 169.049C1552.12 169.069 1552.06 169.09 1552.01 169.11L1551.93 169.141C1546.95 171.173 1541.78 172.408 1536.44 172.408C1527.39 172.408 1522.99 168.274 1522.99 158.457V111.922C1522.99 111.369 1523.44 110.922 1523.99 110.922H1551.57C1553.78 110.922 1555.57 109.131 1555.57 106.922V75.6531C1555.57 73.4439 1553.78 71.6531 1551.57 71.6531H1523.99C1523.44 71.6531 1522.99 71.2054 1522.99 70.6531V40.2598C1522.99 38.0506 1521.2 36.2598 1518.99 36.2598H1478.12C1475.91 36.2598 1474.12 38.0506 1474.12 40.2598V70.6531C1474.12 71.2054 1473.68 71.6531 1473.12 71.6531H1461.57C1459.36 71.6531 1457.57 73.4439 1457.57 75.6531V106.922C1457.57 109.131 1459.36 110.922 1461.57 110.922H1473.12C1473.68 110.922 1474.12 111.369 1474.12 111.922V168.016C1474.12 201.342 1491.45 214.26 1520.92 214.26Z" fill="white"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M383.862 13.333C404.208 16.5486 413.171 38.6271 412.025 67.322L412.129 67.2446C377.657 93.0853 310.983 109.258 247.34 71.8529L247.411 71.7588C256.796 77.1321 266.765 81.3716 278.594 83.2411C293.086 85.5315 305.059 77.9633 316.063 67.0373L316.848 66.2513C316.978 66.1194 317.109 65.987 317.239 65.8541L318.018 65.0519L318.795 64.2396L319.569 63.4178L320.34 62.5868C320.469 62.4476 320.597 62.3081 320.725 62.1681L321.492 61.3246L322.257 60.4734L323.187 59.4255C323.341 59.2501 323.496 59.0742 323.65 58.8979L324.806 57.5689L325.958 56.2273L326.876 55.1461L327.792 54.059L328.706 52.9669L330.074 51.3215L332.422 48.4758L335.255 45.0337L337.029 42.8889L338.36 41.2919L339.693 39.708L340.582 38.6609L341.473 37.6219L342.365 36.5919L343.258 35.5718L344.154 34.5625L344.871 33.7634L345.59 32.9723L346.31 32.1896L347.033 31.4157C347.153 31.2875 347.274 31.1597 347.394 31.0323L348.119 30.2726C348.24 30.1468 348.361 30.0214 348.482 29.8964L349.209 29.1519C349.574 28.7823 349.939 28.4166 350.304 28.0553L351.037 27.3384C351.404 26.9828 351.772 26.6317 352.141 26.2853L352.879 25.5988C362.253 16.9849 372.246 11.4972 383.862 13.333Z" fill="white"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M163.957 175.623L164.025 175.702C155.543 171.341 146.688 167.967 136.755 166.397C126.204 164.729 116.862 168.809 108.131 175.726L107.443 176.278C107.099 176.557 106.757 176.84 106.415 177.128L105.733 177.708L105.053 178.298C104.488 178.795 103.925 179.302 103.364 179.82L102.692 180.445L102.021 181.08L101.353 181.724C101.242 181.832 101.131 181.94 101.02 182.049L100.354 182.705C100.244 182.815 100.133 182.926 100.022 183.037L99.2336 183.833C98.971 184.101 98.7089 184.37 98.4471 184.641L97.663 185.459C97.5324 185.596 97.402 185.733 97.2717 185.871L96.4907 186.703L95.7116 187.544L94.9345 188.393L94.1591 189.251L93.772 189.682L92.8179 190.754L92.3418 191.294L91.3909 192.38L90.9163 192.927L89.9682 194.025L89.0218 195.13L87.6046 196.797L85.7187 199.035L81.4441 204.132L80.0317 205.809L78.6179 207.477L77.6743 208.582L76.2567 210.228L75.3098 211.315L74.3614 212.393L73.411 213.461L72.4586 214.518L71.7142 215.333L70.9683 216.142L70.2208 216.941L69.4717 217.732L68.7207 218.514L67.9679 219.286L67.2131 220.048L66.835 220.424L66.0771 221.17L65.4463 221.78L64.8139 222.382L64.1799 222.975C63.8625 223.27 63.5445 223.561 63.2258 223.849L62.5874 224.42L61.9472 224.982C61.8404 225.075 61.7334 225.167 61.6264 225.259L60.9834 225.806C60.554 226.168 60.1233 226.522 59.6912 226.87L59.0421 227.386C58.9337 227.471 58.8252 227.556 58.7167 227.64L58.0643 228.14C49.8951 234.316 41.2018 237.841 31.4875 236.305C11.3156 233.117 1.94054 211.456 2.41646 183.162L1.80678 183.684C41.8037 148.938 107.868 146.439 163.957 175.623Z" fill="white" fill-opacity="0.4"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M256.736 220.952C239.37 217.933 225.213 212.125 212.687 205.363L211.553 204.746C211.176 204.539 210.801 204.332 210.427 204.124L209.31 203.497L207.925 202.707L206.553 201.911L205.463 201.27L204.111 200.465L202.771 199.655L201.705 199.004L200.646 198.351L199.07 197.368L196.987 196.053L195.325 194.991L193.676 193.929L191.222 192.336L185.574 188.649L183.976 187.609L181.984 186.32L179.997 185.046C174.703 181.671 169.44 178.485 164.024 175.702L163.957 175.623C108.429 146.731 43.124 148.891 3.01447 182.651L2.41647 183.161C3.5431 116.202 59.8374 12.0917 158.766 27.7268C176.096 30.4658 189.872 35.9416 201.851 42.451L202.919 43.0367C203.274 43.2328 203.627 43.4298 203.978 43.6276L205.028 44.2235L205.549 44.5232L206.586 45.1261L207.614 45.7332L208.635 46.3444L209.142 46.6514L210.401 47.4229L211.65 48.1994L212.641 48.824L213.625 49.4513L214.603 50.0809L215.574 50.7127L216.54 51.3464L217.501 51.9816L218.456 52.6182L220.011 53.6638L220.784 54.1873L222.321 55.2349L223.849 56.2823L230.627 60.9611L232.12 61.986L233.611 63.0029L235.473 64.2611L237.336 65.5025C240.43 67.5473 243.537 69.5135 246.707 71.3531L247.899 72.0369C310.774 108.743 376.41 93.3425 411.088 68.0151L412.025 67.322C409.365 133.887 352.303 236.056 256.736 220.952Z" fill="white" fill-opacity="0.701961"/>
|
|
6
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log('Please speak to commercial to get a link to your ad library CDN link')
|
package/temp/_document.tsx
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { createTheme, newskitLightTheme, newskitDarkTheme } from 'newskit'
|
|
2
|
+
import colors from './colours.json'
|
|
2
3
|
|
|
3
4
|
export const renderCustomLightTheme = createTheme({
|
|
4
|
-
name: '
|
|
5
|
+
name: 'Newskit-Light',
|
|
5
6
|
baseTheme: newskitLightTheme,
|
|
6
7
|
overrides: {
|
|
8
|
+
colors,
|
|
7
9
|
stylePresets: {
|
|
8
10
|
dividerFooterHorizontal: {
|
|
9
11
|
base: {
|
|
@@ -47,9 +49,10 @@ export const renderCustomLightTheme = createTheme({
|
|
|
47
49
|
})
|
|
48
50
|
|
|
49
51
|
export const renderCustomDarkTheme = createTheme({
|
|
50
|
-
name: '
|
|
52
|
+
name: 'Newskit-Dark',
|
|
51
53
|
baseTheme: newskitDarkTheme,
|
|
52
54
|
overrides: {
|
|
55
|
+
colors,
|
|
53
56
|
stylePresets: {
|
|
54
57
|
cardContainer: {
|
|
55
58
|
base: {
|
package/tsconfig.json
CHANGED
package/helpers/articleUtil.ts
DELETED