@newskit-render/core 1.13.2 → 1.20.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/.eslintignore +5 -1
- package/CHANGELOG.md +163 -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/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/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/package.json +53 -52
- package/pages/[section]/[articleId]/[articleSlug].tsx +1 -0
- package/pages/[section]/index.tsx +1 -0
- package/pages/_app.tsx +211 -13
- package/pages/_document.tsx +27 -14
- package/pages/checkout/account-creation/index.tsx +9 -1
- package/pages/index.tsx +1 -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/helpers/articleUtil.ts +0 -4
|
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/helpers/articleUtil.ts
DELETED